@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,1479 @@
|
|
|
1
|
+
import "./src-DNBBthjO.js";
|
|
2
|
+
import { s as e, t } from "./foundation-Cawx37mp.js";
|
|
3
|
+
import { t as n } from "./env-BeIzjQx7.js";
|
|
4
|
+
import { t as r } from "./isEnterPress-HTy0eCBp.js";
|
|
5
|
+
import { t as i } from "./Collapsible-DeV0aJ4n.js";
|
|
6
|
+
import { t as a } from "./Tooltip-Bq7HZwnS.js";
|
|
7
|
+
import { i as o, r as s, t as c } from "./dropdown-D0-UWd65.js";
|
|
8
|
+
import { t as l } from "./isNullOrUndefined-Cg6MZ8r3.js";
|
|
9
|
+
import { t as u } from "./config-context-CyynTtDb.js";
|
|
10
|
+
import { n as d, o as f } from "./config-provider-VMfNNSF1.js";
|
|
11
|
+
import { t as p } from "./Button-RCaDTqHh.js";
|
|
12
|
+
import { Comment as m, Fragment as h, Text as g, cloneVNode as _, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createVNode as C, defineComponent as w, getCurrentInstance as T, h as E, inject as ee, isVNode as D, markRaw as te, mergeProps as O, nextTick as k, normalizeClass as A, normalizeProps as j, normalizeStyle as ne, onBeforeUnmount as re, onMounted as ie, openBlock as M, provide as N, renderList as ae, renderSlot as P, resolveComponent as F, resolveDynamicComponent as I, shallowReactive as oe, unref as L, useSlots as se, useTemplateRef as ce, watch as le, withCtx as R } from "vue";
|
|
13
|
+
import { IconChevronDown as ue, IconChevronRight as de, IconSidebar as z } from "@aifuxi/semi-icons-vue";
|
|
14
|
+
//#region bundled-foundation
|
|
15
|
+
var B = "horizontal", V = "vertical";
|
|
16
|
+
`${n}`;
|
|
17
|
+
var fe = {
|
|
18
|
+
MODE: [V, B],
|
|
19
|
+
MODE_VERTICAL: V,
|
|
20
|
+
MODE_HORIZONTAL: B,
|
|
21
|
+
ICON_POS_LEFT: "left",
|
|
22
|
+
ICON_POS_RIGHT: "right",
|
|
23
|
+
DEFAULT_LOGO_ICON_SIZE: "extra-large",
|
|
24
|
+
TOGGLE_ICON_LEFT: "left",
|
|
25
|
+
TOGGLE_ICON_RIGHT: "right"
|
|
26
|
+
}, pe = {
|
|
27
|
+
DEFAULT_SUBNAV_MAX_HEIGHT: 999,
|
|
28
|
+
DEFAULT_TOOLTIP_SHOW_DELAY: 0,
|
|
29
|
+
DEFAULT_TOOLTIP_HIDE_DELAY: 100,
|
|
30
|
+
DEFAULT_SUBNAV_OPEN_DELAY: 0,
|
|
31
|
+
DEFAULT_SUBNAV_CLOSE_DELAY: 100
|
|
32
|
+
}, H = {
|
|
33
|
+
open: "chevron_up",
|
|
34
|
+
closed: "chevron_down"
|
|
35
|
+
}, me = class e {
|
|
36
|
+
constructor(t = {}) {
|
|
37
|
+
(typeof t != "object" || !t) && (t = {
|
|
38
|
+
text: t,
|
|
39
|
+
itemKey: t,
|
|
40
|
+
maxHeight: pe.DEFAULT_SUBNAV_MAX_HEIGHT,
|
|
41
|
+
link: null,
|
|
42
|
+
items: null,
|
|
43
|
+
icon: "",
|
|
44
|
+
indent: !1
|
|
45
|
+
});
|
|
46
|
+
for (let e of Object.keys(t)) this[e] = t[e];
|
|
47
|
+
t.items && Array.isArray(t.items) && t.items.length ? (this.items = t.items.map((t) => new e(t)), this.toggleIcon = "toggleIcon" in t && e.isValidToggleIcon(t.toggleIcon) ? { ...t.toggleIcon } : { ...H }) : this.items = null;
|
|
48
|
+
}
|
|
49
|
+
static isValidToggleIcon(e) {
|
|
50
|
+
return !!(e && typeof e == "object" && typeof e.open == "string" && e.open.length && typeof e.closed == "string" && e.closed.length);
|
|
51
|
+
}
|
|
52
|
+
}, he = class n extends t {
|
|
53
|
+
constructor(e) {
|
|
54
|
+
super({ ...e });
|
|
55
|
+
}
|
|
56
|
+
/* istanbul ignore next */
|
|
57
|
+
static getZeroParentKeys(e = {}, ...t) {
|
|
58
|
+
let n = [];
|
|
59
|
+
if (t.length) {
|
|
60
|
+
for (let r of t) if (Array.isArray(e[r]) && e[r].length) {
|
|
61
|
+
let t = e[r][0];
|
|
62
|
+
l(t) || n.push(t);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return n;
|
|
66
|
+
}
|
|
67
|
+
static buildItemKeysMap(e = [], t = {}, r = [], i = "itemKey") {
|
|
68
|
+
if (Array.isArray(e) && e.length) for (let a of e) if (Array.isArray(a)) n.buildItemKeysMap(a, t, [...r], i);
|
|
69
|
+
else {
|
|
70
|
+
let e;
|
|
71
|
+
if (a && typeof a == "object" && (e = a[i] || a.props && a.props[i]), e) {
|
|
72
|
+
t[e] = [...r];
|
|
73
|
+
let o = a.props?.children;
|
|
74
|
+
if (Array.isArray(a.items) && a.items.length) n.buildItemKeysMap(a.items, t, [...r, e], i);
|
|
75
|
+
else if (o) {
|
|
76
|
+
let a = Array.isArray(o) ? o : [o];
|
|
77
|
+
n.buildItemKeysMap(a, t, [...r, e], i);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return t;
|
|
82
|
+
}
|
|
83
|
+
init(e) {
|
|
84
|
+
let { defaultSelectedKeys: t, selectedKeys: n } = this.getProps(), r = n || t || [], { itemKeysMap: i, willOpenKeys: a, formattedItems: o } = this.getCalcState(), s = this.selectLevelZeroParentKeys(i, r);
|
|
85
|
+
if (r = r.concat(s), e === "constructor") return {
|
|
86
|
+
selectedKeys: r,
|
|
87
|
+
itemKeysMap: i,
|
|
88
|
+
openKeys: a,
|
|
89
|
+
items: o
|
|
90
|
+
};
|
|
91
|
+
this._adapter.updateSelectedKeys(r, !1), this._adapter.setItemKeysMap(i), this._adapter.updateOpenKeys(a), this._adapter.updateItems(o), this._adapter.setItemsChanged(!0);
|
|
92
|
+
}
|
|
93
|
+
getCalcState() {
|
|
94
|
+
let { itemKeysMap: e, formattedItems: t } = this.getFormattedItems();
|
|
95
|
+
return {
|
|
96
|
+
itemKeysMap: e,
|
|
97
|
+
willOpenKeys: this.getWillOpenKeys(e),
|
|
98
|
+
formattedItems: t
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
getFormattedItems() {
|
|
102
|
+
let { items: e, children: t } = this.getProps(), r = this.formatItems(e), i = Array.isArray(e) && e.length ? r : t;
|
|
103
|
+
return {
|
|
104
|
+
itemKeysMap: n.buildItemKeysMap(i),
|
|
105
|
+
formattedItems: r
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
getWillOpenKeys(e) {
|
|
109
|
+
let { defaultOpenKeys: t, openKeys: n, defaultSelectedKeys: r, selectedKeys: i, mode: a } = this.getProps(), { openKeys: o = [] } = this.getStates(), s = n || t || [];
|
|
110
|
+
if (!(Array.isArray(t) || Array.isArray(n)) && a === fe.MODE_VERTICAL && (Array.isArray(r) || Array.isArray(i))) {
|
|
111
|
+
let t = Array.isArray(i) ? i : r;
|
|
112
|
+
s = o.concat(this.getShouldOpenKeys(e, t)), s = Array.from(new Set(s));
|
|
113
|
+
}
|
|
114
|
+
return [...s];
|
|
115
|
+
}
|
|
116
|
+
getShouldOpenKeys(t = {}, n = []) {
|
|
117
|
+
let r = /* @__PURE__ */ new Set();
|
|
118
|
+
return Array.isArray(n) && n.length && n.forEach((n) => {
|
|
119
|
+
if (n) {
|
|
120
|
+
let i = (0, e.default)(t, n);
|
|
121
|
+
Array.isArray(i) && i.forEach((e) => r.add(e));
|
|
122
|
+
}
|
|
123
|
+
}), [...r];
|
|
124
|
+
}
|
|
125
|
+
destroy() {}
|
|
126
|
+
selectLevelZeroParentKeys(e, t) {
|
|
127
|
+
let n = l(e) ? this.getState("itemKeysMap") : e, r = [];
|
|
128
|
+
if (t.length) {
|
|
129
|
+
for (let e of t) if (Array.isArray(n[e]) && n[e].length) {
|
|
130
|
+
let t = n[e][0];
|
|
131
|
+
l(t) || r.push(t);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return r.length ? r : [];
|
|
135
|
+
}
|
|
136
|
+
formatItems(e = []) {
|
|
137
|
+
let t = [];
|
|
138
|
+
for (let n of e) t.push(new me(n));
|
|
139
|
+
return t;
|
|
140
|
+
}
|
|
141
|
+
handleSelect(e) {
|
|
142
|
+
this._adapter.notifySelect(e);
|
|
143
|
+
}
|
|
144
|
+
/* istanbul ignore next */
|
|
145
|
+
judgeIfOpen(e, t) {
|
|
146
|
+
let n = !1, r = Array.isArray(e) ? e : e && [e];
|
|
147
|
+
if (r && Array.isArray(t) && t.length) {
|
|
148
|
+
for (let e of t) if (n = r.includes(e.itemKey) || this.judgeIfOpen(r, e.items), n) break;
|
|
149
|
+
}
|
|
150
|
+
return n;
|
|
151
|
+
}
|
|
152
|
+
handleCollapseChange() {
|
|
153
|
+
let e = !this.getState("isCollapsed");
|
|
154
|
+
this._isControlledComponent("isCollapsed") || this._adapter.setIsCollapsed(e), this._adapter.notifyCollapseChange(e);
|
|
155
|
+
}
|
|
156
|
+
handleItemsChange(e) {
|
|
157
|
+
this._adapter.setItemsChanged(e);
|
|
158
|
+
}
|
|
159
|
+
}, ge = class extends t {
|
|
160
|
+
constructor(e) {
|
|
161
|
+
super({ ...e });
|
|
162
|
+
}
|
|
163
|
+
init() {
|
|
164
|
+
this._timer = null, this._mounted = !0;
|
|
165
|
+
}
|
|
166
|
+
destroy() {
|
|
167
|
+
this._mounted = !1;
|
|
168
|
+
}
|
|
169
|
+
isValidKey(e) {
|
|
170
|
+
return e != null && (typeof e == "string" || typeof e == "number");
|
|
171
|
+
}
|
|
172
|
+
handleClick(e) {
|
|
173
|
+
let { isSubNav: t, itemKey: n, text: r, disabled: i } = this.getProps();
|
|
174
|
+
if (i) return;
|
|
175
|
+
!t && this.isValidKey(n) && !this._adapter.getSelectedKeysIsControlled() && !this._adapter.getSelected() && this._adapter.updateSelected(!0);
|
|
176
|
+
let a = [n];
|
|
177
|
+
if (!t) {
|
|
178
|
+
if (!this._adapter.getSelected()) {
|
|
179
|
+
let t = [this._adapter.cloneDeep(this.getProps())];
|
|
180
|
+
this._adapter.notifyGlobalOnSelect({
|
|
181
|
+
itemKey: n,
|
|
182
|
+
selectedKeys: a,
|
|
183
|
+
selectedItems: t,
|
|
184
|
+
domEvent: e
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
this._adapter.notifyGlobalOnClick({
|
|
188
|
+
itemKey: n,
|
|
189
|
+
text: r,
|
|
190
|
+
domEvent: e
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
this._adapter.notifyClick({
|
|
194
|
+
itemKey: n,
|
|
195
|
+
text: r,
|
|
196
|
+
domEvent: e
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
handleKeyPress(t) {
|
|
200
|
+
if (r(t)) {
|
|
201
|
+
let { link: n, linkOptions: r } = this.getProps(), i = (0, e.default)(r, "target", "_self");
|
|
202
|
+
this.handleClick(t), typeof n == "string" && (i === "_blank" ? window.open(n) : window.location.href = n);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}, _e = function(e = [], ...t) {
|
|
206
|
+
let n = new Set(e);
|
|
207
|
+
return t.forEach((e) => e && n.add(e)), Array.from(n);
|
|
208
|
+
}, ve = function(e = [], ...t) {
|
|
209
|
+
let n = new Set(e);
|
|
210
|
+
return t.forEach((e) => e && n.delete(e)), Array.from(n);
|
|
211
|
+
}, ye = class extends t {
|
|
212
|
+
constructor(e) {
|
|
213
|
+
super({ ...e });
|
|
214
|
+
}
|
|
215
|
+
init() {
|
|
216
|
+
this._timer = null;
|
|
217
|
+
}
|
|
218
|
+
destroy() {
|
|
219
|
+
this.clearDelayTimer();
|
|
220
|
+
}
|
|
221
|
+
clearDelayTimer() {
|
|
222
|
+
this._timer &&= (clearTimeout(this._timer), null);
|
|
223
|
+
}
|
|
224
|
+
isValidKey(e) {
|
|
225
|
+
return e != null && (typeof e == "number" || typeof e == "string");
|
|
226
|
+
}
|
|
227
|
+
handleDropdownVisibleChange(e) {
|
|
228
|
+
let t = this.getProp("itemKey"), n = this._adapter.getOpenKeysIsControlled(), r = this._adapter.getCanUpdateOpenKeys(), i = this._adapter.getOpenKeys(), a = e ? _e(i, t) : ve(i, t);
|
|
229
|
+
this.clearDelayTimer(), n || r && this._adapter.updateOpen(e), this._adapter.notifyGlobalOpenChange({
|
|
230
|
+
itemKey: t,
|
|
231
|
+
openKeys: a,
|
|
232
|
+
isOpen: e
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
handleClick(e, t) {
|
|
236
|
+
let { itemKey: n, disabled: r } = this.getProps();
|
|
237
|
+
if (r) return;
|
|
238
|
+
let i = t && t.contains(e.target), a = !!this._adapter.getIsOpen();
|
|
239
|
+
a = i ? !a : !1;
|
|
240
|
+
let o = {
|
|
241
|
+
itemKey: n,
|
|
242
|
+
openKeys: a ? _e(this._adapter.getOpenKeys(), n) : ve(this._adapter.getOpenKeys(), n),
|
|
243
|
+
isOpen: a,
|
|
244
|
+
domEvent: e
|
|
245
|
+
}, s = this._adapter.getOpenKeysIsControlled(), c = this._adapter.getCanUpdateOpenKeys();
|
|
246
|
+
!s && c && this._adapter.updateOpen(a), this._adapter.notifyGlobalOpenChange(o), this._adapter.notifyGlobalOnClick(o);
|
|
247
|
+
}
|
|
248
|
+
handleKeyPress(e, t) {
|
|
249
|
+
r(e) && this.handleClick(e, t);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/navigation/NavigationNodeRenderer.ts
|
|
254
|
+
function be(e) {
|
|
255
|
+
return typeof e == "function" ? e() : e;
|
|
256
|
+
}
|
|
257
|
+
var U = w({
|
|
258
|
+
name: "NavigationNodeRenderer",
|
|
259
|
+
props: { content: {
|
|
260
|
+
type: null,
|
|
261
|
+
default: void 0
|
|
262
|
+
} },
|
|
263
|
+
setup(e) {
|
|
264
|
+
return () => {
|
|
265
|
+
let t = be(e.content);
|
|
266
|
+
return D(t) ? _(t) : t;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
}), xe = /* @__PURE__ */ w({
|
|
270
|
+
name: "NavigationCollapseButton",
|
|
271
|
+
__name: "CollapseButton",
|
|
272
|
+
props: {
|
|
273
|
+
collapseText: {},
|
|
274
|
+
isCollapsed: {
|
|
275
|
+
type: Boolean,
|
|
276
|
+
default: !1
|
|
277
|
+
},
|
|
278
|
+
locale: { default: () => ({
|
|
279
|
+
collapseText: "收起侧边栏",
|
|
280
|
+
expandText: "展开侧边栏"
|
|
281
|
+
}) },
|
|
282
|
+
prefixCls: { default: "semi-navigation" }
|
|
283
|
+
},
|
|
284
|
+
emits: ["click"],
|
|
285
|
+
setup(e, { emit: t }) {
|
|
286
|
+
let n = e, r = t, i = v(() => n.collapseText ? () => n.collapseText?.(n.isCollapsed) : n.isCollapsed ? n.locale.expandText : n.locale.collapseText);
|
|
287
|
+
return (e, t) => (M(), x("div", { class: A(`${n.prefixCls}-collapse-btn`) }, [n.isCollapsed ? (M(), y(a, {
|
|
288
|
+
key: 0,
|
|
289
|
+
position: "right"
|
|
290
|
+
}, {
|
|
291
|
+
content: R(() => [C(L(U), { content: i.value }, null, 8, ["content"])]),
|
|
292
|
+
default: R(() => [S("span", { class: A(`${n.prefixCls}-collapse-wrapper`) }, [C(p, {
|
|
293
|
+
theme: "borderless",
|
|
294
|
+
type: "tertiary",
|
|
295
|
+
onClick: t[0] ||= (e) => r("click", !n.isCollapsed)
|
|
296
|
+
}, {
|
|
297
|
+
icon: R(() => [C(L(z))]),
|
|
298
|
+
_: 1
|
|
299
|
+
})], 2)]),
|
|
300
|
+
_: 1
|
|
301
|
+
})) : (M(), y(p, {
|
|
302
|
+
key: 1,
|
|
303
|
+
theme: "borderless",
|
|
304
|
+
type: "tertiary",
|
|
305
|
+
onClick: t[1] ||= (e) => r("click", !0)
|
|
306
|
+
}, {
|
|
307
|
+
icon: R(() => [C(L(z))]),
|
|
308
|
+
default: R(() => [C(L(U), { content: i.value }, null, 8, ["content"])]),
|
|
309
|
+
_: 1
|
|
310
|
+
}))], 2));
|
|
311
|
+
}
|
|
312
|
+
}), W = Symbol("navigation"), G = /* @__PURE__ */ w({
|
|
313
|
+
name: "NavFooter",
|
|
314
|
+
inheritAttrs: !1,
|
|
315
|
+
__name: "NavFooter",
|
|
316
|
+
props: {
|
|
317
|
+
class: { type: [
|
|
318
|
+
Boolean,
|
|
319
|
+
null,
|
|
320
|
+
String,
|
|
321
|
+
Object,
|
|
322
|
+
Array
|
|
323
|
+
] },
|
|
324
|
+
className: { type: [
|
|
325
|
+
Boolean,
|
|
326
|
+
null,
|
|
327
|
+
String,
|
|
328
|
+
Object,
|
|
329
|
+
Array
|
|
330
|
+
] },
|
|
331
|
+
collapseButton: { type: [
|
|
332
|
+
Boolean,
|
|
333
|
+
Object,
|
|
334
|
+
String,
|
|
335
|
+
Number,
|
|
336
|
+
null,
|
|
337
|
+
Array,
|
|
338
|
+
Function
|
|
339
|
+
] },
|
|
340
|
+
collapseText: { type: Function },
|
|
341
|
+
style: { type: [
|
|
342
|
+
Boolean,
|
|
343
|
+
null,
|
|
344
|
+
String,
|
|
345
|
+
Object,
|
|
346
|
+
Array
|
|
347
|
+
] }
|
|
348
|
+
},
|
|
349
|
+
emits: ["click"],
|
|
350
|
+
setup(e, { emit: t }) {
|
|
351
|
+
let n = e, r = t, i = se(), a = T(), o = ee(W);
|
|
352
|
+
if (!o) throw Error("please make sure <NavFooter> inside <Nav>");
|
|
353
|
+
function s(e) {
|
|
354
|
+
let t = a?.vnode.props, n = e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
|
355
|
+
return !!(t && (Object.prototype.hasOwnProperty.call(t, e) || Object.prototype.hasOwnProperty.call(t, n)));
|
|
356
|
+
}
|
|
357
|
+
function c(e) {
|
|
358
|
+
return Array.isArray(e) ? e.some(c) : !D(e) || e.type === m || e.type === g ? !1 : e.type !== h || c(e.children);
|
|
359
|
+
}
|
|
360
|
+
let l = v(() => i.default?.() ?? []), u = v(() => i.collapseButton?.() ?? n.collapseButton), d = v(() => i.collapseButton ? !0 : s("collapseButton") ? n.collapseButton !== !1 : !1), f = v(() => d.value && !c(l.value) && o.mode.value !== "horizontal" && !D(u.value)), p = v(() => [
|
|
361
|
+
n.class,
|
|
362
|
+
n.className,
|
|
363
|
+
"semi-navigation-footer",
|
|
364
|
+
o.isCollapsed.value ? "semi-navigation-footer-collapsed" : void 0
|
|
365
|
+
]), _ = v(() => ({
|
|
366
|
+
...n.collapseText ? { collapseText: n.collapseText } : {},
|
|
367
|
+
isCollapsed: o.isCollapsed.value,
|
|
368
|
+
locale: o.locale.value,
|
|
369
|
+
prefixCls: o.prefixCls.value
|
|
370
|
+
}));
|
|
371
|
+
return (e, t) => (M(), x("div", {
|
|
372
|
+
class: A(p.value),
|
|
373
|
+
style: ne(n.style),
|
|
374
|
+
onClick: t[0] ||= (e) => r("click", e)
|
|
375
|
+
}, [f.value ? (M(), y(xe, O({ key: 0 }, _.value, { onClick: L(o).toggleCollapsed }), null, 16, ["onClick"])) : d.value && !c(l.value) && L(o).mode.value !== "horizontal" ? (M(), y(L(U), {
|
|
376
|
+
key: 1,
|
|
377
|
+
content: u.value
|
|
378
|
+
}, null, 8, ["content"])) : P(e.$slots, "default", {}, void 0, void 0, 2)], 6));
|
|
379
|
+
}
|
|
380
|
+
}), Se = ["href"], Ce = {
|
|
381
|
+
key: 0,
|
|
382
|
+
class: "semi-navigation-header-logo"
|
|
383
|
+
}, we = {
|
|
384
|
+
key: 1,
|
|
385
|
+
class: "semi-navigation-header-text"
|
|
386
|
+
}, Te = {
|
|
387
|
+
key: 0,
|
|
388
|
+
class: "semi-navigation-header-logo"
|
|
389
|
+
}, Ee = {
|
|
390
|
+
key: 1,
|
|
391
|
+
class: "semi-navigation-header-text"
|
|
392
|
+
}, K = /* @__PURE__ */ w({
|
|
393
|
+
name: "NavHeader",
|
|
394
|
+
inheritAttrs: !1,
|
|
395
|
+
__name: "NavHeader",
|
|
396
|
+
props: {
|
|
397
|
+
class: { type: [
|
|
398
|
+
Boolean,
|
|
399
|
+
null,
|
|
400
|
+
String,
|
|
401
|
+
Object,
|
|
402
|
+
Array
|
|
403
|
+
] },
|
|
404
|
+
className: { type: [
|
|
405
|
+
Boolean,
|
|
406
|
+
null,
|
|
407
|
+
String,
|
|
408
|
+
Object,
|
|
409
|
+
Array
|
|
410
|
+
] },
|
|
411
|
+
link: {},
|
|
412
|
+
linkOptions: {},
|
|
413
|
+
logo: { type: [
|
|
414
|
+
Object,
|
|
415
|
+
String,
|
|
416
|
+
Number,
|
|
417
|
+
Boolean,
|
|
418
|
+
null,
|
|
419
|
+
Array,
|
|
420
|
+
Function
|
|
421
|
+
] },
|
|
422
|
+
prefixCls: { default: "semi-navigation" },
|
|
423
|
+
style: { type: [
|
|
424
|
+
Boolean,
|
|
425
|
+
null,
|
|
426
|
+
String,
|
|
427
|
+
Object,
|
|
428
|
+
Array
|
|
429
|
+
] },
|
|
430
|
+
text: { type: [
|
|
431
|
+
Object,
|
|
432
|
+
String,
|
|
433
|
+
Number,
|
|
434
|
+
Boolean,
|
|
435
|
+
null,
|
|
436
|
+
Array,
|
|
437
|
+
Function
|
|
438
|
+
] }
|
|
439
|
+
},
|
|
440
|
+
setup(e) {
|
|
441
|
+
let t = e, n = ee(W);
|
|
442
|
+
if (!n) throw Error("please make sure <NavHeader> inside <Nav>");
|
|
443
|
+
let r = v(() => [
|
|
444
|
+
t.class,
|
|
445
|
+
t.className,
|
|
446
|
+
"semi-navigation-header",
|
|
447
|
+
n.isCollapsed.value ? "semi-navigation-header-collapsed" : void 0
|
|
448
|
+
]);
|
|
449
|
+
return (e, i) => (M(), x("div", {
|
|
450
|
+
class: A(r.value),
|
|
451
|
+
style: ne(t.style)
|
|
452
|
+
}, [typeof t.link == "string" ? (M(), x("a", O({
|
|
453
|
+
key: 0,
|
|
454
|
+
class: `${t.prefixCls}-header-link`,
|
|
455
|
+
href: t.link
|
|
456
|
+
}, t.linkOptions), [
|
|
457
|
+
e.$slots.logo || t.logo ? (M(), x("i", Ce, [P(e.$slots, "logo", {}, () => [C(L(U), { content: t.logo }, null, 8, ["content"])])])) : b("", !0),
|
|
458
|
+
(e.$slots.text || t.text !== null && t.text !== void 0) && !L(n).isCollapsed.value ? (M(), x("span", we, [P(e.$slots, "text", {}, () => [C(L(U), { content: t.text }, null, 8, ["content"])])])) : b("", !0),
|
|
459
|
+
P(e.$slots, "default")
|
|
460
|
+
], 16, Se)) : (M(), x(h, { key: 1 }, [
|
|
461
|
+
e.$slots.logo || t.logo ? (M(), x("i", Te, [P(e.$slots, "logo", {}, () => [C(L(U), { content: t.logo }, null, 8, ["content"])])])) : b("", !0),
|
|
462
|
+
(e.$slots.text || t.text !== null && t.text !== void 0) && !L(n).isCollapsed.value ? (M(), x("span", Ee, [P(e.$slots, "text", {}, () => [C(L(U), { content: t.text }, null, 8, ["content"])])])) : b("", !0),
|
|
463
|
+
P(e.$slots, "default")
|
|
464
|
+
], 64))], 6));
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/navigation/NavigationIconRenderer.ts
|
|
469
|
+
function De(e) {
|
|
470
|
+
return typeof e == "function" ? e() : e;
|
|
471
|
+
}
|
|
472
|
+
function q(e) {
|
|
473
|
+
return !D(e) || typeof e.type == "string" ? !1 : e.type.elementType === "Icon";
|
|
474
|
+
}
|
|
475
|
+
var J = w({
|
|
476
|
+
name: "NavigationIconRenderer",
|
|
477
|
+
props: {
|
|
478
|
+
animationClass: {
|
|
479
|
+
type: String,
|
|
480
|
+
default: void 0
|
|
481
|
+
},
|
|
482
|
+
content: {
|
|
483
|
+
type: null,
|
|
484
|
+
default: void 0
|
|
485
|
+
},
|
|
486
|
+
force: {
|
|
487
|
+
type: Boolean,
|
|
488
|
+
default: !1
|
|
489
|
+
},
|
|
490
|
+
size: {
|
|
491
|
+
type: String,
|
|
492
|
+
default: "large"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
setup(e) {
|
|
496
|
+
return () => {
|
|
497
|
+
let t = De(e.content);
|
|
498
|
+
return D(t) ? !q(t) && !e.force ? _(t) : _(t, {
|
|
499
|
+
class: [t.props?.class, e.animationClass],
|
|
500
|
+
size: t.props?.size || e.size
|
|
501
|
+
}) : t;
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region src/navigation/NavItem.ts
|
|
507
|
+
function Y(e) {
|
|
508
|
+
if (!e) return;
|
|
509
|
+
let t = [], n = (e) => {
|
|
510
|
+
if (Array.isArray(e)) {
|
|
511
|
+
e.forEach(n);
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
if (!(!D(e) || e.type === m)) {
|
|
515
|
+
if (e.type === h && Array.isArray(e.children)) {
|
|
516
|
+
e.children.forEach((e) => n(e));
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
(e.type !== g || String(e.children ?? "").trim() !== "") && t.push(e);
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
return e.forEach(n), t;
|
|
523
|
+
}
|
|
524
|
+
function X(e) {
|
|
525
|
+
return Array.isArray(e) ? e.map(X) : D(e) || !e || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([e, t]) => [e, X(t)]));
|
|
526
|
+
}
|
|
527
|
+
var Oe = w({
|
|
528
|
+
name: "NavItem",
|
|
529
|
+
inheritAttrs: !1,
|
|
530
|
+
props: {
|
|
531
|
+
class: {
|
|
532
|
+
type: null,
|
|
533
|
+
default: void 0
|
|
534
|
+
},
|
|
535
|
+
className: {
|
|
536
|
+
type: null,
|
|
537
|
+
default: void 0
|
|
538
|
+
},
|
|
539
|
+
disabled: {
|
|
540
|
+
type: Boolean,
|
|
541
|
+
default: !1
|
|
542
|
+
},
|
|
543
|
+
forwardRef: {
|
|
544
|
+
type: Function,
|
|
545
|
+
default: void 0
|
|
546
|
+
},
|
|
547
|
+
icon: {
|
|
548
|
+
type: null,
|
|
549
|
+
default: void 0
|
|
550
|
+
},
|
|
551
|
+
indent: {
|
|
552
|
+
type: [Boolean, Number],
|
|
553
|
+
default: !1
|
|
554
|
+
},
|
|
555
|
+
isCollapsed: {
|
|
556
|
+
type: Boolean,
|
|
557
|
+
default: !1
|
|
558
|
+
},
|
|
559
|
+
isSubNav: {
|
|
560
|
+
type: Boolean,
|
|
561
|
+
default: !1
|
|
562
|
+
},
|
|
563
|
+
itemKey: {
|
|
564
|
+
type: [String, Number],
|
|
565
|
+
default: void 0
|
|
566
|
+
},
|
|
567
|
+
level: {
|
|
568
|
+
type: Number,
|
|
569
|
+
default: 0
|
|
570
|
+
},
|
|
571
|
+
link: {
|
|
572
|
+
type: String,
|
|
573
|
+
default: void 0
|
|
574
|
+
},
|
|
575
|
+
linkOptions: {
|
|
576
|
+
type: Object,
|
|
577
|
+
default: void 0
|
|
578
|
+
},
|
|
579
|
+
style: {
|
|
580
|
+
type: null,
|
|
581
|
+
default: void 0
|
|
582
|
+
},
|
|
583
|
+
tabIndex: {
|
|
584
|
+
type: Number,
|
|
585
|
+
default: 0
|
|
586
|
+
},
|
|
587
|
+
text: {
|
|
588
|
+
type: null,
|
|
589
|
+
default: void 0
|
|
590
|
+
},
|
|
591
|
+
toggleIcon: {
|
|
592
|
+
type: null,
|
|
593
|
+
default: void 0
|
|
594
|
+
},
|
|
595
|
+
tooltipHideDelay: {
|
|
596
|
+
type: Number,
|
|
597
|
+
default: void 0
|
|
598
|
+
},
|
|
599
|
+
tooltipShowDelay: {
|
|
600
|
+
type: Number,
|
|
601
|
+
default: void 0
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
emits: {
|
|
605
|
+
click: (e) => !!e,
|
|
606
|
+
mouseenter: (e) => !!e,
|
|
607
|
+
mouseleave: (e) => !!e
|
|
608
|
+
},
|
|
609
|
+
setup(e, { attrs: t, emit: n, slots: r }) {
|
|
610
|
+
let i = ee(W);
|
|
611
|
+
if (!i) throw Error("please make sure <NavItem> inside <Nav>");
|
|
612
|
+
let o = i, c = { tooltipShow: !1 }, l = /* @__PURE__ */ new Map(), u = () => e, d = v(() => o.selectedKeys.value.includes(e.itemKey)), f = v(() => o.openKeys.value.includes(e.itemKey)), p = v(() => e.isCollapsed || o.isCollapsed.value), m = te(new ge({
|
|
613
|
+
getContext: () => void 0,
|
|
614
|
+
getContexts: () => void 0,
|
|
615
|
+
getProp: (e) => u()[e],
|
|
616
|
+
getProps: u,
|
|
617
|
+
getState: (e) => c[e],
|
|
618
|
+
getStates: () => c,
|
|
619
|
+
setState: (e, t) => {
|
|
620
|
+
Object.assign(c, e), t?.();
|
|
621
|
+
},
|
|
622
|
+
getCache: (e) => l.get(e),
|
|
623
|
+
getCaches: () => l,
|
|
624
|
+
setCache: (e, t) => l.set(e, t),
|
|
625
|
+
stopPropagation: (e) => e?.stopPropagation?.(),
|
|
626
|
+
persistEvent: () => void 0,
|
|
627
|
+
cloneDeep: X,
|
|
628
|
+
updateTooltipShow: (e) => {
|
|
629
|
+
c.tooltipShow = e;
|
|
630
|
+
},
|
|
631
|
+
updateSelected: () => {
|
|
632
|
+
e.itemKey !== void 0 && k(() => o.setSelectedKeys([e.itemKey]));
|
|
633
|
+
},
|
|
634
|
+
updateGlobalSelectedKeys: (e) => o.setSelectedKeys([...e]),
|
|
635
|
+
getSelectedKeys: () => o.selectedKeys.value,
|
|
636
|
+
getSelectedKeysIsControlled: () => o.selectedKeysControlled.value,
|
|
637
|
+
notifyGlobalOnSelect: (e) => {
|
|
638
|
+
o.notifySelect(e);
|
|
639
|
+
},
|
|
640
|
+
notifyGlobalOnClick: (e) => o.notifyClick(e),
|
|
641
|
+
notifyClick: (e) => n("click", e),
|
|
642
|
+
notifyMouseEnter: (e) => n("mouseenter", e),
|
|
643
|
+
notifyMouseLeave: (e) => n("mouseleave", e),
|
|
644
|
+
getIsCollapsed: () => p.value,
|
|
645
|
+
getSelected: () => d.value,
|
|
646
|
+
getIsOpen: () => f.value
|
|
647
|
+
}));
|
|
648
|
+
ie(() => m.init()), re(() => m.destroy());
|
|
649
|
+
let h = v(() => o.isInSubNav && (p.value || o.mode.value === "horizontal")), g = v(() => p.value && !o.isInSubNav && !e.isSubNav || p.value && e.isSubNav && e.disabled), _ = v(() => o.mode.value !== "vertical" || o.limitIndent.value || p.value || Y(r.default?.()) ? 0 : Math.max(0, (e.icon && !e.indent ? e.level : e.level - 1) || 0));
|
|
650
|
+
function y(t, n, r = !1, i) {
|
|
651
|
+
if (e.isSubNav || !t && o.mode.value === "horizontal") return null;
|
|
652
|
+
let a = {
|
|
653
|
+
class: [`${o.prefixCls.value}-item-icon`, r ? `${o.prefixCls.value}-item-icon-toggle-${o.toggleIconPosition.value}` : `${o.prefixCls.value}-item-icon-info`],
|
|
654
|
+
...i === void 0 ? {} : { key: i }
|
|
655
|
+
};
|
|
656
|
+
return E("i", a, t ? [E(J, {
|
|
657
|
+
content: t,
|
|
658
|
+
size: n === "right" ? "default" : "large"
|
|
659
|
+
})] : []);
|
|
660
|
+
}
|
|
661
|
+
function b() {
|
|
662
|
+
let t = Y(r.default?.());
|
|
663
|
+
if (t) return t;
|
|
664
|
+
let n = r.icon ? () => r.icon?.() : e.icon, i = r.text ? () => r.text?.() : e.text, a = [];
|
|
665
|
+
for (let e = 0; e < _.value; e += 1) {
|
|
666
|
+
let t = y(void 0, "right", !1, e);
|
|
667
|
+
t && a.push(t);
|
|
668
|
+
}
|
|
669
|
+
if (o.toggleIconPosition.value === "left") {
|
|
670
|
+
let t = y(e.toggleIcon, "right", !0, "toggle-left");
|
|
671
|
+
t && a.push(t);
|
|
672
|
+
}
|
|
673
|
+
if (n || e.indent || o.isInSubNav) {
|
|
674
|
+
let e = y(n, "left", !1, "information");
|
|
675
|
+
e && a.push(e);
|
|
676
|
+
}
|
|
677
|
+
if (i != null && a.push(E("span", { class: `${o.prefixCls.value}-item-text` }, [E(U, { content: i })])), o.toggleIconPosition.value === "right") {
|
|
678
|
+
let t = y(e.toggleIcon, "right", !0, "toggle-right");
|
|
679
|
+
t && a.push(t);
|
|
680
|
+
}
|
|
681
|
+
return a;
|
|
682
|
+
}
|
|
683
|
+
function x() {
|
|
684
|
+
let t = b();
|
|
685
|
+
return typeof e.link == "string" ? [E("a", O({
|
|
686
|
+
class: `${o.prefixCls.value}-item-link`,
|
|
687
|
+
href: e.link,
|
|
688
|
+
tabindex: -1
|
|
689
|
+
}, e.linkOptions ?? {}), t)] : t;
|
|
690
|
+
}
|
|
691
|
+
function S(t) {
|
|
692
|
+
e.forwardRef?.(t instanceof HTMLLIElement ? t : null);
|
|
693
|
+
}
|
|
694
|
+
function C(e) {
|
|
695
|
+
m.handleClick(e);
|
|
696
|
+
}
|
|
697
|
+
function w(e) {
|
|
698
|
+
m.handleKeyPress(e);
|
|
699
|
+
}
|
|
700
|
+
function T() {
|
|
701
|
+
let r = `${o.prefixCls.value}-item`, i = Object.fromEntries(Object.entries(t).filter(([e]) => e.startsWith("data-")));
|
|
702
|
+
return h.value ? E(s, {
|
|
703
|
+
active: d.value,
|
|
704
|
+
class: [
|
|
705
|
+
r,
|
|
706
|
+
e.isSubNav ? `${r}-sub` : void 0,
|
|
707
|
+
d.value ? `${r}-selected` : void 0,
|
|
708
|
+
p.value ? `${r}-collapsed` : void 0,
|
|
709
|
+
e.disabled ? `${r}-disabled` : void 0,
|
|
710
|
+
e.class,
|
|
711
|
+
e.className,
|
|
712
|
+
t.class
|
|
713
|
+
],
|
|
714
|
+
disabled: e.disabled,
|
|
715
|
+
forwardRef: S,
|
|
716
|
+
onClick: C,
|
|
717
|
+
onKeydown: w,
|
|
718
|
+
onMouseenter: (e) => n("mouseenter", e),
|
|
719
|
+
onMouseleave: (e) => n("mouseleave", e)
|
|
720
|
+
}, { default: x }) : E("li", {
|
|
721
|
+
...i,
|
|
722
|
+
"aria-disabled": e.disabled,
|
|
723
|
+
...e.isSubNav ? { "aria-expanded": f.value } : {},
|
|
724
|
+
class: [
|
|
725
|
+
e.className || `${r}-normal`,
|
|
726
|
+
r,
|
|
727
|
+
e.isSubNav ? `${r}-sub` : void 0,
|
|
728
|
+
d.value && !e.isSubNav ? `${r}-selected` : void 0,
|
|
729
|
+
p.value ? `${r}-collapsed` : void 0,
|
|
730
|
+
e.disabled ? `${r}-disabled` : void 0,
|
|
731
|
+
typeof e.link == "string" ? `${r}-has-link` : void 0,
|
|
732
|
+
e.class,
|
|
733
|
+
t.class
|
|
734
|
+
],
|
|
735
|
+
onClick: C,
|
|
736
|
+
onKeypress: w,
|
|
737
|
+
onMouseenter: (e) => n("mouseenter", e),
|
|
738
|
+
onMouseleave: (e) => n("mouseleave", e),
|
|
739
|
+
ref: S,
|
|
740
|
+
role: e.isSubNav ? void 0 : "menuitem",
|
|
741
|
+
style: [e.style, t.style],
|
|
742
|
+
tabindex: e.isSubNav ? -1 : e.tabIndex
|
|
743
|
+
}, x());
|
|
744
|
+
}
|
|
745
|
+
return () => {
|
|
746
|
+
let t = T();
|
|
747
|
+
if (g.value) {
|
|
748
|
+
let n = t;
|
|
749
|
+
t = E(a, {
|
|
750
|
+
mouseEnterDelay: e.tooltipShowDelay ?? o.tooltipShowDelay.value,
|
|
751
|
+
mouseLeaveDelay: e.tooltipHideDelay ?? o.tooltipHideDelay.value,
|
|
752
|
+
position: "right",
|
|
753
|
+
trigger: "hover",
|
|
754
|
+
wrapWhenSpecial: !1
|
|
755
|
+
}, {
|
|
756
|
+
content: () => E(U, { content: r.text ? () => r.text?.() : e.text }),
|
|
757
|
+
default: () => n
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
return o.wrapItem({
|
|
761
|
+
isInSubNav: o.isInSubNav,
|
|
762
|
+
isSubNav: e.isSubNav,
|
|
763
|
+
itemElement: t,
|
|
764
|
+
props: e
|
|
765
|
+
});
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
}), ke = w({
|
|
769
|
+
name: "NavigationContextProvider",
|
|
770
|
+
props: { value: {
|
|
771
|
+
type: Object,
|
|
772
|
+
required: !0
|
|
773
|
+
} },
|
|
774
|
+
setup(e, { slots: t }) {
|
|
775
|
+
return N(W, e.value), () => t.default?.();
|
|
776
|
+
}
|
|
777
|
+
}), Z = ["tabindex", "aria-expanded"], Q = ["aria-expanded"], Ae = /* @__PURE__ */ w({
|
|
778
|
+
name: "SubNav",
|
|
779
|
+
inheritAttrs: !1,
|
|
780
|
+
__name: "SubNav",
|
|
781
|
+
props: {
|
|
782
|
+
dropdownProps: {},
|
|
783
|
+
dropdownStyle: { type: [
|
|
784
|
+
Boolean,
|
|
785
|
+
null,
|
|
786
|
+
String,
|
|
787
|
+
Object,
|
|
788
|
+
Array
|
|
789
|
+
] },
|
|
790
|
+
expandIcon: { type: [
|
|
791
|
+
Object,
|
|
792
|
+
String,
|
|
793
|
+
Number,
|
|
794
|
+
Boolean,
|
|
795
|
+
null,
|
|
796
|
+
Array,
|
|
797
|
+
Function
|
|
798
|
+
] },
|
|
799
|
+
isOpen: {
|
|
800
|
+
type: Boolean,
|
|
801
|
+
default: !1
|
|
802
|
+
},
|
|
803
|
+
maxHeight: { default: 999 },
|
|
804
|
+
subDropdownProps: {},
|
|
805
|
+
class: { type: [
|
|
806
|
+
Boolean,
|
|
807
|
+
null,
|
|
808
|
+
String,
|
|
809
|
+
Object,
|
|
810
|
+
Array
|
|
811
|
+
] },
|
|
812
|
+
className: { type: [
|
|
813
|
+
Boolean,
|
|
814
|
+
null,
|
|
815
|
+
String,
|
|
816
|
+
Object,
|
|
817
|
+
Array
|
|
818
|
+
] },
|
|
819
|
+
disabled: {
|
|
820
|
+
type: Boolean,
|
|
821
|
+
default: !1
|
|
822
|
+
},
|
|
823
|
+
icon: { type: [
|
|
824
|
+
Object,
|
|
825
|
+
String,
|
|
826
|
+
Number,
|
|
827
|
+
Boolean,
|
|
828
|
+
null,
|
|
829
|
+
Array,
|
|
830
|
+
Function
|
|
831
|
+
] },
|
|
832
|
+
indent: {
|
|
833
|
+
type: [Boolean, Number],
|
|
834
|
+
default: !1
|
|
835
|
+
},
|
|
836
|
+
isCollapsed: {
|
|
837
|
+
type: Boolean,
|
|
838
|
+
default: !1
|
|
839
|
+
},
|
|
840
|
+
itemKey: {},
|
|
841
|
+
level: { default: 0 },
|
|
842
|
+
style: { type: [
|
|
843
|
+
Boolean,
|
|
844
|
+
null,
|
|
845
|
+
String,
|
|
846
|
+
Object,
|
|
847
|
+
Array
|
|
848
|
+
] },
|
|
849
|
+
text: { type: [
|
|
850
|
+
Object,
|
|
851
|
+
String,
|
|
852
|
+
Number,
|
|
853
|
+
Boolean,
|
|
854
|
+
null,
|
|
855
|
+
Array,
|
|
856
|
+
Function
|
|
857
|
+
] },
|
|
858
|
+
toggleIcon: { type: [
|
|
859
|
+
Object,
|
|
860
|
+
String,
|
|
861
|
+
Number,
|
|
862
|
+
Boolean,
|
|
863
|
+
null,
|
|
864
|
+
Array,
|
|
865
|
+
Function
|
|
866
|
+
] },
|
|
867
|
+
tooltipHideDelay: {},
|
|
868
|
+
tooltipShowDelay: {}
|
|
869
|
+
},
|
|
870
|
+
setup(e) {
|
|
871
|
+
let t = e, n = se(), r = ee(W);
|
|
872
|
+
if (!r) throw Error("please make sure <SubNav> inside <Nav>");
|
|
873
|
+
let a = {
|
|
874
|
+
...r,
|
|
875
|
+
isInSubNav: !0
|
|
876
|
+
}, s = ce("title"), l = oe({ isHovered: !1 }), u = /* @__PURE__ */ new Map(), d = v(() => r.openKeys.value.includes(t.itemKey)), f = v(() => t.isCollapsed || r.isCollapsed.value);
|
|
877
|
+
function p() {
|
|
878
|
+
return t;
|
|
879
|
+
}
|
|
880
|
+
let m = te(new ye({
|
|
881
|
+
getContext: () => void 0,
|
|
882
|
+
getContexts: () => void 0,
|
|
883
|
+
getProp: (e) => p()[e],
|
|
884
|
+
getProps: p,
|
|
885
|
+
getState: (e) => l[e],
|
|
886
|
+
getStates: () => l,
|
|
887
|
+
setState: (e, t) => {
|
|
888
|
+
Object.assign(l, e), t?.();
|
|
889
|
+
},
|
|
890
|
+
getCache: (e) => u.get(e),
|
|
891
|
+
getCaches: () => u,
|
|
892
|
+
setCache: (e, t) => u.set(e, t),
|
|
893
|
+
stopPropagation: (e) => e?.stopPropagation?.(),
|
|
894
|
+
persistEvent: () => void 0,
|
|
895
|
+
updateIsHovered: (e) => {
|
|
896
|
+
l.isHovered = e;
|
|
897
|
+
},
|
|
898
|
+
getOpenKeys: () => r.openKeys.value,
|
|
899
|
+
getOpenKeysIsControlled: () => r.openKeysControlled.value,
|
|
900
|
+
getCanUpdateOpenKeys: () => !0,
|
|
901
|
+
updateOpen: (e) => {
|
|
902
|
+
t.itemKey !== void 0 && (e ? r.addOpenKey(t.itemKey) : r.removeOpenKey(t.itemKey));
|
|
903
|
+
},
|
|
904
|
+
notifyGlobalOpenChange: (e) => r.notifyOpenChange(e),
|
|
905
|
+
notifyGlobalOnSelect: () => void 0,
|
|
906
|
+
notifyGlobalOnClick: (e) => r.notifyClick(e),
|
|
907
|
+
getIsSelected: (e) => r.selectedKeys.value.includes(e),
|
|
908
|
+
getIsOpen: () => d.value
|
|
909
|
+
}));
|
|
910
|
+
ie(() => m.init()), re(() => m.destroy());
|
|
911
|
+
let g = v(() => [
|
|
912
|
+
`${r.prefixCls.value}-sub-title`,
|
|
913
|
+
t.itemKey !== void 0 && r.selectedKeys.value.includes(t.itemKey) ? `${r.prefixCls.value}-sub-title-selected` : void 0,
|
|
914
|
+
t.disabled ? `${r.prefixCls.value}-sub-title-disabled` : void 0
|
|
915
|
+
]), _ = v(() => [
|
|
916
|
+
`${r.prefixCls.value}-sub`,
|
|
917
|
+
d.value ? `${r.prefixCls.value}-sub-open` : void 0,
|
|
918
|
+
f.value || r.mode.value === "horizontal" ? `${r.prefixCls.value}-sub-popover` : void 0
|
|
919
|
+
]), w = v(() => !f.value && r.isInSubNav && r.mode.value === "horizontal" || f.value && r.isInSubNav), T = v(() => f.value ? r.isInSubNav ? () => E(de) : void 0 : r.mode.value === "horizontal" && r.isInSubNav ? () => E(de) : n.expandIcon ? () => n.expandIcon?.() : t.expandIcon ?? r.expandIcon.value ?? (() => E(ue))), D = v(() => T.value !== void 0 && T.value !== null), k = v(() => !!(n.expandIcon || t.expandIcon || r.expandIcon.value)), N = v(() => r.isInSubNav && (f.value || r.mode.value === "horizontal") ? de : ue), F = v(() => n.icon ? () => n.icon?.() : t.icon), le = v(() => n.text ? () => n.text?.() : t.text), z = v(() => r.mode.value !== "vertical" || r.limitIndent.value || f.value ? 0 : Math.max(0, (t.icon && !t.indent ? t.level : t.level - 1) || 0)), B = v(() => r.subNavMotion.value ? `${r.prefixCls.value}-icon-rotate-${d.value ? "180" : "0"}` : void 0);
|
|
920
|
+
function V(e) {
|
|
921
|
+
m.handleClick(e, s.value);
|
|
922
|
+
}
|
|
923
|
+
function fe(e) {
|
|
924
|
+
m.handleKeyPress(e, s.value);
|
|
925
|
+
}
|
|
926
|
+
function pe(e) {
|
|
927
|
+
m.handleDropdownVisibleChange(e);
|
|
928
|
+
}
|
|
929
|
+
let H = v(() => {
|
|
930
|
+
let e = t.dropdownProps ?? r.subDropdownProps.value ?? {}, n = e.onVisibleChange, i = {
|
|
931
|
+
...e,
|
|
932
|
+
class: [f.value ? `${r.prefixCls.value}-popover` : void 0, e.class],
|
|
933
|
+
getPopupContainer: r.getPopupContainer.value,
|
|
934
|
+
mouseEnterDelay: r.subNavOpenDelay.value,
|
|
935
|
+
mouseLeaveDelay: r.subNavCloseDelay.value,
|
|
936
|
+
onVisibleChange: (e) => {
|
|
937
|
+
typeof n == "function" ? n(e) : pe(e);
|
|
938
|
+
},
|
|
939
|
+
position: r.mode.value === "horizontal" && !r.isInSubNav ? "bottomLeft" : "rightTop",
|
|
940
|
+
style: t.dropdownStyle,
|
|
941
|
+
trigger: r.openKeysControlled.value ? "custom" : "hover"
|
|
942
|
+
};
|
|
943
|
+
return r.openKeysControlled.value && (i.visible = d.value), r.getPopupContainer.value || delete i.getPopupContainer, i;
|
|
944
|
+
});
|
|
945
|
+
return (e, n) => (M(), y(L(Oe), {
|
|
946
|
+
"class-name": `${L(r).prefixCls.value}-sub-wrap`,
|
|
947
|
+
disabled: t.disabled,
|
|
948
|
+
"is-collapsed": f.value,
|
|
949
|
+
"is-sub-nav": "",
|
|
950
|
+
"item-key": t.itemKey,
|
|
951
|
+
style: ne(t.style)
|
|
952
|
+
}, {
|
|
953
|
+
default: R(() => [C(L(ke), { value: a }, {
|
|
954
|
+
default: R(() => [f.value || L(r).mode.value === "horizontal" ? (M(), y(L(c), j(O({ key: 0 }, H.value)), {
|
|
955
|
+
content: R(() => [C(L(o), null, {
|
|
956
|
+
default: R(() => [P(e.$slots, "default")]),
|
|
957
|
+
_: 3
|
|
958
|
+
})]),
|
|
959
|
+
default: R(() => [S("div", {
|
|
960
|
+
ref: "title",
|
|
961
|
+
role: "menuitem",
|
|
962
|
+
tabindex: w.value ? -1 : 0,
|
|
963
|
+
class: A(g.value),
|
|
964
|
+
"aria-expanded": d.value ? "true" : "false",
|
|
965
|
+
onClick: V,
|
|
966
|
+
onKeypress: fe
|
|
967
|
+
}, [S("div", { class: A(`${L(r).prefixCls.value}-item-inner`) }, [
|
|
968
|
+
(M(!0), x(h, null, ae(z.value, (e) => (M(), x("i", {
|
|
969
|
+
key: `placeholder-${e}`,
|
|
970
|
+
class: A([`${L(r).prefixCls.value}-item-icon`, `${L(r).prefixCls.value}-item-icon-info`])
|
|
971
|
+
}, null, 2))), 128)),
|
|
972
|
+
L(r).toggleIconPosition.value === "left" && D.value ? (M(), x("i", {
|
|
973
|
+
key: 0,
|
|
974
|
+
class: A([`${L(r).prefixCls.value}-item-icon`, `${L(r).prefixCls.value}-item-icon-toggle-${L(r).toggleIconPosition.value}`])
|
|
975
|
+
}, [k.value ? (M(), y(L(J), {
|
|
976
|
+
key: 1,
|
|
977
|
+
"animation-class": B.value || "",
|
|
978
|
+
content: T.value,
|
|
979
|
+
force: "",
|
|
980
|
+
size: "default"
|
|
981
|
+
}, null, 8, ["animation-class", "content"])) : (M(), y(I(N.value), {
|
|
982
|
+
key: 0,
|
|
983
|
+
class: A(B.value),
|
|
984
|
+
size: "default"
|
|
985
|
+
}, null, 8, ["class"]))], 2)) : b("", !0),
|
|
986
|
+
F.value || t.indent || L(r).isInSubNav && L(r).mode.value !== "horizontal" ? (M(), x("i", {
|
|
987
|
+
key: 1,
|
|
988
|
+
class: A([`${L(r).prefixCls.value}-item-icon`, `${L(r).prefixCls.value}-item-icon-info`])
|
|
989
|
+
}, [C(L(J), {
|
|
990
|
+
content: F.value,
|
|
991
|
+
force: "",
|
|
992
|
+
size: "large"
|
|
993
|
+
}, null, 8, ["content"])], 2)) : b("", !0),
|
|
994
|
+
S("span", { class: A(`${L(r).prefixCls.value}-item-text`) }, [C(L(U), { content: le.value }, null, 8, ["content"])], 2),
|
|
995
|
+
L(r).toggleIconPosition.value === "right" && D.value ? (M(), x("i", {
|
|
996
|
+
key: 2,
|
|
997
|
+
class: A([`${L(r).prefixCls.value}-item-icon`, `${L(r).prefixCls.value}-item-icon-toggle-${L(r).toggleIconPosition.value}`])
|
|
998
|
+
}, [k.value ? (M(), y(L(J), {
|
|
999
|
+
key: 1,
|
|
1000
|
+
"animation-class": B.value || "",
|
|
1001
|
+
content: T.value,
|
|
1002
|
+
force: "",
|
|
1003
|
+
size: "default"
|
|
1004
|
+
}, null, 8, ["animation-class", "content"])) : (M(), y(I(N.value), {
|
|
1005
|
+
key: 0,
|
|
1006
|
+
class: A(B.value),
|
|
1007
|
+
size: "default"
|
|
1008
|
+
}, null, 8, ["class"]))], 2)) : b("", !0)
|
|
1009
|
+
], 2)], 42, Z)]),
|
|
1010
|
+
_: 3
|
|
1011
|
+
}, 16)) : (M(), x(h, { key: 1 }, [S("div", {
|
|
1012
|
+
ref: "title",
|
|
1013
|
+
role: "menuitem",
|
|
1014
|
+
tabindex: "0",
|
|
1015
|
+
class: A(g.value),
|
|
1016
|
+
"aria-expanded": d.value ? "true" : "false",
|
|
1017
|
+
onClick: V,
|
|
1018
|
+
onKeypress: fe
|
|
1019
|
+
}, [S("div", { class: A(`${L(r).prefixCls.value}-item-inner`) }, [
|
|
1020
|
+
(M(!0), x(h, null, ae(z.value, (e) => (M(), x("i", {
|
|
1021
|
+
key: `placeholder-${e}`,
|
|
1022
|
+
class: A([`${L(r).prefixCls.value}-item-icon`, `${L(r).prefixCls.value}-item-icon-info`])
|
|
1023
|
+
}, null, 2))), 128)),
|
|
1024
|
+
L(r).toggleIconPosition.value === "left" && D.value ? (M(), x("i", {
|
|
1025
|
+
key: 0,
|
|
1026
|
+
class: A([`${L(r).prefixCls.value}-item-icon`, `${L(r).prefixCls.value}-item-icon-toggle-${L(r).toggleIconPosition.value}`])
|
|
1027
|
+
}, [k.value ? (M(), y(L(J), {
|
|
1028
|
+
key: 1,
|
|
1029
|
+
"animation-class": B.value || "",
|
|
1030
|
+
content: T.value,
|
|
1031
|
+
force: "",
|
|
1032
|
+
size: "default"
|
|
1033
|
+
}, null, 8, ["animation-class", "content"])) : (M(), y(I(N.value), {
|
|
1034
|
+
key: 0,
|
|
1035
|
+
class: A(B.value),
|
|
1036
|
+
size: "default"
|
|
1037
|
+
}, null, 8, ["class"]))], 2)) : b("", !0),
|
|
1038
|
+
F.value || t.indent || L(r).isInSubNav ? (M(), x("i", {
|
|
1039
|
+
key: 1,
|
|
1040
|
+
class: A([`${L(r).prefixCls.value}-item-icon`, `${L(r).prefixCls.value}-item-icon-info`])
|
|
1041
|
+
}, [C(L(J), {
|
|
1042
|
+
content: F.value,
|
|
1043
|
+
force: "",
|
|
1044
|
+
size: "large"
|
|
1045
|
+
}, null, 8, ["content"])], 2)) : b("", !0),
|
|
1046
|
+
S("span", { class: A(`${L(r).prefixCls.value}-item-text`) }, [C(L(U), { content: le.value }, null, 8, ["content"])], 2),
|
|
1047
|
+
L(r).toggleIconPosition.value === "right" && D.value ? (M(), x("i", {
|
|
1048
|
+
key: 2,
|
|
1049
|
+
class: A([`${L(r).prefixCls.value}-item-icon`, `${L(r).prefixCls.value}-item-icon-toggle-${L(r).toggleIconPosition.value}`])
|
|
1050
|
+
}, [k.value ? (M(), y(L(J), {
|
|
1051
|
+
key: 1,
|
|
1052
|
+
"animation-class": B.value || "",
|
|
1053
|
+
content: T.value,
|
|
1054
|
+
force: "",
|
|
1055
|
+
size: "default"
|
|
1056
|
+
}, null, 8, ["animation-class", "content"])) : (M(), y(I(N.value), {
|
|
1057
|
+
key: 0,
|
|
1058
|
+
class: A(B.value),
|
|
1059
|
+
size: "default"
|
|
1060
|
+
}, null, 8, ["class"]))], 2)) : b("", !0)
|
|
1061
|
+
], 2)], 42, Q), L(r).subNavMotion.value ? (M(), y(i, {
|
|
1062
|
+
key: 0,
|
|
1063
|
+
fade: !0,
|
|
1064
|
+
"is-open": d.value,
|
|
1065
|
+
"keep-d-o-m": !1,
|
|
1066
|
+
motion: L(r).subNavMotion.value
|
|
1067
|
+
}, {
|
|
1068
|
+
default: R(() => [S("ul", { class: A(_.value) }, [P(e.$slots, "default")], 2)]),
|
|
1069
|
+
_: 3
|
|
1070
|
+
}, 8, ["is-open", "motion"])) : d.value ? (M(), x("ul", {
|
|
1071
|
+
key: 1,
|
|
1072
|
+
class: A(_.value)
|
|
1073
|
+
}, [P(e.$slots, "default")], 2)) : b("", !0)], 64))]),
|
|
1074
|
+
_: 3
|
|
1075
|
+
})]),
|
|
1076
|
+
_: 3
|
|
1077
|
+
}, 8, [
|
|
1078
|
+
"class-name",
|
|
1079
|
+
"disabled",
|
|
1080
|
+
"is-collapsed",
|
|
1081
|
+
"item-key",
|
|
1082
|
+
"style"
|
|
1083
|
+
]));
|
|
1084
|
+
}
|
|
1085
|
+
}), je = /* @__PURE__ */ w({
|
|
1086
|
+
name: "NavigationItemTree",
|
|
1087
|
+
inheritAttrs: !1,
|
|
1088
|
+
__name: "NavigationItemTree",
|
|
1089
|
+
props: {
|
|
1090
|
+
item: {},
|
|
1091
|
+
level: {}
|
|
1092
|
+
},
|
|
1093
|
+
setup(e) {
|
|
1094
|
+
let t = e;
|
|
1095
|
+
function n(e) {
|
|
1096
|
+
return typeof e == "string" ? {
|
|
1097
|
+
itemKey: e,
|
|
1098
|
+
text: e
|
|
1099
|
+
} : { ...e };
|
|
1100
|
+
}
|
|
1101
|
+
let r = v(() => Array.isArray(t.item.items) ? t.item.items.map(n) : []), i = v(() => {
|
|
1102
|
+
let e = {
|
|
1103
|
+
...t.item,
|
|
1104
|
+
level: t.level
|
|
1105
|
+
};
|
|
1106
|
+
return delete e.items, e;
|
|
1107
|
+
});
|
|
1108
|
+
return (e, n) => {
|
|
1109
|
+
let a = F("NavigationItemTree", !0);
|
|
1110
|
+
return r.value.length ? (M(), y(Ae, j(O({ key: 0 }, i.value)), {
|
|
1111
|
+
default: R(() => [(M(!0), x(h, null, ae(r.value, (e, n) => (M(), y(a, {
|
|
1112
|
+
key: e.itemKey ?? `${t.level + 1}-${n}`,
|
|
1113
|
+
item: e,
|
|
1114
|
+
level: t.level + 1
|
|
1115
|
+
}, null, 8, ["item", "level"]))), 128))]),
|
|
1116
|
+
_: 1
|
|
1117
|
+
}, 16)) : (M(), y(L(Oe), j(O({ key: 1 }, i.value)), null, 16));
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
}), Me = ["aria-orientation"], Ne = /* @__PURE__ */ w({
|
|
1121
|
+
name: "Navigation",
|
|
1122
|
+
inheritAttrs: !1,
|
|
1123
|
+
__name: "Navigation",
|
|
1124
|
+
props: {
|
|
1125
|
+
bodyStyle: { type: [
|
|
1126
|
+
Boolean,
|
|
1127
|
+
null,
|
|
1128
|
+
String,
|
|
1129
|
+
Object,
|
|
1130
|
+
Array
|
|
1131
|
+
] },
|
|
1132
|
+
class: { type: [
|
|
1133
|
+
Boolean,
|
|
1134
|
+
null,
|
|
1135
|
+
String,
|
|
1136
|
+
Object,
|
|
1137
|
+
Array
|
|
1138
|
+
] },
|
|
1139
|
+
className: { type: [
|
|
1140
|
+
Boolean,
|
|
1141
|
+
null,
|
|
1142
|
+
String,
|
|
1143
|
+
Object,
|
|
1144
|
+
Array
|
|
1145
|
+
] },
|
|
1146
|
+
defaultIsCollapsed: { type: Boolean },
|
|
1147
|
+
defaultOpenKeys: {},
|
|
1148
|
+
defaultSelectedKeys: {},
|
|
1149
|
+
expandIcon: { type: [
|
|
1150
|
+
Object,
|
|
1151
|
+
String,
|
|
1152
|
+
Number,
|
|
1153
|
+
Boolean,
|
|
1154
|
+
null,
|
|
1155
|
+
Array,
|
|
1156
|
+
Function
|
|
1157
|
+
] },
|
|
1158
|
+
footer: { type: [
|
|
1159
|
+
Object,
|
|
1160
|
+
String,
|
|
1161
|
+
Number,
|
|
1162
|
+
Boolean,
|
|
1163
|
+
null,
|
|
1164
|
+
Array,
|
|
1165
|
+
Function
|
|
1166
|
+
] },
|
|
1167
|
+
getPopupContainer: { type: Function },
|
|
1168
|
+
header: { type: [
|
|
1169
|
+
Object,
|
|
1170
|
+
String,
|
|
1171
|
+
Number,
|
|
1172
|
+
Boolean,
|
|
1173
|
+
null,
|
|
1174
|
+
Array,
|
|
1175
|
+
Function
|
|
1176
|
+
] },
|
|
1177
|
+
isCollapsed: { type: Boolean },
|
|
1178
|
+
items: {},
|
|
1179
|
+
limitIndent: { type: Boolean },
|
|
1180
|
+
mode: {},
|
|
1181
|
+
multiple: { type: Boolean },
|
|
1182
|
+
openKeys: {},
|
|
1183
|
+
prefixCls: {},
|
|
1184
|
+
renderWrapper: { type: Function },
|
|
1185
|
+
selectedKeys: {},
|
|
1186
|
+
style: { type: [
|
|
1187
|
+
Boolean,
|
|
1188
|
+
null,
|
|
1189
|
+
String,
|
|
1190
|
+
Object,
|
|
1191
|
+
Array
|
|
1192
|
+
] },
|
|
1193
|
+
subDropdownProps: {},
|
|
1194
|
+
subNavCloseDelay: {},
|
|
1195
|
+
subNavMotion: { type: Boolean },
|
|
1196
|
+
subNavOpenDelay: {},
|
|
1197
|
+
toggleIconPosition: {},
|
|
1198
|
+
tooltipHideDelay: {},
|
|
1199
|
+
tooltipShowDelay: {}
|
|
1200
|
+
},
|
|
1201
|
+
emits: [
|
|
1202
|
+
"click",
|
|
1203
|
+
"collapseChange",
|
|
1204
|
+
"deselect",
|
|
1205
|
+
"openChange",
|
|
1206
|
+
"select",
|
|
1207
|
+
"update:isCollapsed",
|
|
1208
|
+
"update:openKeys",
|
|
1209
|
+
"update:selectedKeys"
|
|
1210
|
+
],
|
|
1211
|
+
setup(e, { emit: t }) {
|
|
1212
|
+
let n = Object.freeze({
|
|
1213
|
+
collapseText: "收起侧边栏",
|
|
1214
|
+
expandText: "展开侧边栏"
|
|
1215
|
+
}), r = Object.freeze({
|
|
1216
|
+
collapseText: "Collapse Sidebar",
|
|
1217
|
+
expandText: "Expand Sidebar"
|
|
1218
|
+
}), i = e, a = t, o = se(), s = T(), c = ee(u, void 0), l = v(() => c ? c.value : {
|
|
1219
|
+
direction: "ltr",
|
|
1220
|
+
locale: f
|
|
1221
|
+
});
|
|
1222
|
+
function p(e) {
|
|
1223
|
+
let t = s?.vnode.props, n = String(e).replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
|
1224
|
+
return !!(t && (Object.prototype.hasOwnProperty.call(t, e) || Object.prototype.hasOwnProperty.call(t, n)));
|
|
1225
|
+
}
|
|
1226
|
+
function _(e, t) {
|
|
1227
|
+
if (p(e) && i[e] !== void 0) return i[e];
|
|
1228
|
+
let n = d.config.overrideDefaultProps?.Navigation?.[e];
|
|
1229
|
+
return n === void 0 ? t : n;
|
|
1230
|
+
}
|
|
1231
|
+
let w = v(() => _("mode", "vertical")), E = v(() => _("prefixCls", "semi-navigation")), k = v(() => _("limitIndent", !0)), F = v(() => _("subNavMotion", !0)), I = v(() => _("subNavCloseDelay", 100)), ce = v(() => _("subNavOpenDelay", 0)), ue = v(() => _("tooltipShowDelay", 0)), de = v(() => _("tooltipHideDelay", 100)), z = v(() => _("toggleIconPosition", "right")), B = v(() => l.value.direction), V = v(() => l.value.locale.Navigation ?? (l.value.locale.code === "en-US" ? r : n)), fe = v(() => i.getPopupContainer ?? l.value.getPopupContainer);
|
|
1232
|
+
function pe(e) {
|
|
1233
|
+
if (typeof e == "string") return {
|
|
1234
|
+
itemKey: e,
|
|
1235
|
+
text: e
|
|
1236
|
+
};
|
|
1237
|
+
let t = { ...e };
|
|
1238
|
+
return Array.isArray(e.items) && (t.items = e.items.map(pe)), t;
|
|
1239
|
+
}
|
|
1240
|
+
let H = v(() => (i.items ?? []).map(pe));
|
|
1241
|
+
function me(e) {
|
|
1242
|
+
let t = [], n = (e) => {
|
|
1243
|
+
if (Array.isArray(e)) {
|
|
1244
|
+
e.forEach(n);
|
|
1245
|
+
return;
|
|
1246
|
+
}
|
|
1247
|
+
if (!(!D(e) || e.type === m)) {
|
|
1248
|
+
if (e.type === h && Array.isArray(e.children)) {
|
|
1249
|
+
e.children.forEach((e) => n(e));
|
|
1250
|
+
return;
|
|
1251
|
+
}
|
|
1252
|
+
(e.type !== g || String(e.children ?? "").trim() !== "") && t.push(e);
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
return n(e), t;
|
|
1256
|
+
}
|
|
1257
|
+
function ge(e) {
|
|
1258
|
+
if (typeof e.type == "string") return;
|
|
1259
|
+
let t = e.type;
|
|
1260
|
+
return t.name ?? t.__name;
|
|
1261
|
+
}
|
|
1262
|
+
function _e(e) {
|
|
1263
|
+
return e.type === K || ge(e) === "NavHeader";
|
|
1264
|
+
}
|
|
1265
|
+
function ve(e) {
|
|
1266
|
+
return e.type === G || ge(e) === "NavFooter";
|
|
1267
|
+
}
|
|
1268
|
+
let ye = v(() => me(o.default?.() ?? [])), be = v(() => ye.value.filter(_e)), xe = v(() => ye.value.filter(ve)), Se = v(() => ye.value.filter((e) => !_e(e) && !ve(e)));
|
|
1269
|
+
function Ce(e) {
|
|
1270
|
+
let t = e.props?.itemKey ?? e.props?.["item-key"];
|
|
1271
|
+
return typeof t == "string" || typeof t == "number" ? t : void 0;
|
|
1272
|
+
}
|
|
1273
|
+
function we(e) {
|
|
1274
|
+
if (!e.children || typeof e.children != "object" || Array.isArray(e.children)) return [];
|
|
1275
|
+
let t = e.children.default;
|
|
1276
|
+
return typeof t == "function" ? me(t()) : [];
|
|
1277
|
+
}
|
|
1278
|
+
function Te(e, t = [], n = {}) {
|
|
1279
|
+
for (let r of e) {
|
|
1280
|
+
let e = ge(r);
|
|
1281
|
+
if (r.type !== Oe && r.type !== Ae && e !== "NavItem" && e !== "SubNav") continue;
|
|
1282
|
+
let i = Ce(r);
|
|
1283
|
+
i != null && i !== "" && (n[String(i)] = [...t], (r.type === Ae || e === "SubNav") && Te(we(r), [...t, i], n));
|
|
1284
|
+
}
|
|
1285
|
+
return n;
|
|
1286
|
+
}
|
|
1287
|
+
let Ee = v(() => he.buildItemKeysMap(H.value)), De = v(() => ({
|
|
1288
|
+
...Ee.value,
|
|
1289
|
+
...Te(Se.value)
|
|
1290
|
+
})), q = v(() => p("selectedKeys")), J = v(() => p("isCollapsed")), Y = oe([...i.defaultSelectedKeys ?? []]), X = oe([...i.openKeys ?? i.defaultOpenKeys ?? []]), ke = oe({ isCollapsed: !!i.defaultIsCollapsed }), Z = v(() => q.value ? [...i.selectedKeys ?? []] : [...Y]), Q = v(() => J.value ? !!i.isCollapsed : ke.isCollapsed), Ne = v(() => p("openKeys") && w.value === "vertical" && !Q.value), Pe = v(() => Ne.value ? [...i.openKeys ?? []] : [...X]), Fe = v(() => {
|
|
1291
|
+
let e = he.getZeroParentKeys(De.value, ...Z.value);
|
|
1292
|
+
return Array.from(/* @__PURE__ */ new Set([...Z.value, ...e]));
|
|
1293
|
+
});
|
|
1294
|
+
function $(e, t) {
|
|
1295
|
+
e.splice(0, e.length, ...t);
|
|
1296
|
+
}
|
|
1297
|
+
function Ie(e, t = De.value) {
|
|
1298
|
+
if (p("openKeys") || p("defaultOpenKeys") || w.value !== "vertical") return;
|
|
1299
|
+
let n = he.getZeroParentKeys(t, ...e);
|
|
1300
|
+
$(X, Array.from(/* @__PURE__ */ new Set([...X, ...n])));
|
|
1301
|
+
}
|
|
1302
|
+
Ie(Z.value, Ee.value), ie(() => Ie(Z.value)), le(() => i.openKeys, (e) => {
|
|
1303
|
+
p("openKeys") && $(X, e ?? []);
|
|
1304
|
+
}), le(() => i.selectedKeys, (e) => {
|
|
1305
|
+
q.value && Ie(e ?? []);
|
|
1306
|
+
});
|
|
1307
|
+
let Le = v(() => ({
|
|
1308
|
+
isCollapsed: Q.value,
|
|
1309
|
+
itemKeysMap: De.value,
|
|
1310
|
+
items: H.value,
|
|
1311
|
+
openKeys: Pe.value,
|
|
1312
|
+
selectedKeys: Fe.value
|
|
1313
|
+
})), Re = /* @__PURE__ */ new Map();
|
|
1314
|
+
function ze() {
|
|
1315
|
+
let e = {
|
|
1316
|
+
...i,
|
|
1317
|
+
items: H.value,
|
|
1318
|
+
mode: w.value
|
|
1319
|
+
};
|
|
1320
|
+
return J.value || delete e.isCollapsed, q.value || delete e.selectedKeys, p("openKeys") || delete e.openKeys, e;
|
|
1321
|
+
}
|
|
1322
|
+
let Be = te(new he({
|
|
1323
|
+
getContext: () => void 0,
|
|
1324
|
+
getContexts: () => void 0,
|
|
1325
|
+
getProp: (e) => ze()[e],
|
|
1326
|
+
getProps: ze,
|
|
1327
|
+
getState: (e) => Le.value[e],
|
|
1328
|
+
getStates: () => Le.value,
|
|
1329
|
+
setState: () => void 0,
|
|
1330
|
+
getCache: (e) => Re.get(e),
|
|
1331
|
+
getCaches: () => Re,
|
|
1332
|
+
setCache: (e, t) => Re.set(e, t),
|
|
1333
|
+
stopPropagation: (e) => e?.stopPropagation?.(),
|
|
1334
|
+
persistEvent: () => void 0,
|
|
1335
|
+
notifySelect: (e) => {
|
|
1336
|
+
let t = [e.itemKey];
|
|
1337
|
+
a("update:selectedKeys", t);
|
|
1338
|
+
let n = {
|
|
1339
|
+
...e,
|
|
1340
|
+
domEvent: e.domEvent,
|
|
1341
|
+
itemKey: e.itemKey,
|
|
1342
|
+
selectedItems: e.selectedItems ?? [],
|
|
1343
|
+
selectedKeys: t,
|
|
1344
|
+
text: e.text
|
|
1345
|
+
};
|
|
1346
|
+
a("select", n);
|
|
1347
|
+
},
|
|
1348
|
+
notifyOpenChange: (e) => a("openChange", e),
|
|
1349
|
+
setIsCollapsed: (e) => {
|
|
1350
|
+
ke.isCollapsed = e;
|
|
1351
|
+
},
|
|
1352
|
+
notifyCollapseChange: (e) => {
|
|
1353
|
+
a("update:isCollapsed", e), a("collapseChange", e);
|
|
1354
|
+
},
|
|
1355
|
+
updateItems: () => void 0,
|
|
1356
|
+
setItemKeysMap: () => void 0,
|
|
1357
|
+
addSelectedKeys: (...e) => $(Y, Array.from(/* @__PURE__ */ new Set([...Y, ...e]))),
|
|
1358
|
+
removeSelectedKeys: (...e) => $(Y, Y.filter((t) => !e.includes(t))),
|
|
1359
|
+
updateSelectedKeys: (e) => $(Y, e),
|
|
1360
|
+
updateOpenKeys: (e) => $(X, e),
|
|
1361
|
+
addOpenKeys: (...e) => $(X, Array.from(/* @__PURE__ */ new Set([...X, ...e]))),
|
|
1362
|
+
removeOpenKeys: (...e) => $(X, X.filter((t) => !e.includes(t))),
|
|
1363
|
+
setItemsChanged: (e) => {}
|
|
1364
|
+
}));
|
|
1365
|
+
re(() => Be.destroy());
|
|
1366
|
+
function Ve(e) {
|
|
1367
|
+
q.value || $(Y, e);
|
|
1368
|
+
}
|
|
1369
|
+
function He(e) {
|
|
1370
|
+
Be.handleSelect(e);
|
|
1371
|
+
}
|
|
1372
|
+
function Ue(e) {
|
|
1373
|
+
a("click", e);
|
|
1374
|
+
}
|
|
1375
|
+
function We(e) {
|
|
1376
|
+
a("update:openKeys", [...e.openKeys]), a("openChange", e);
|
|
1377
|
+
}
|
|
1378
|
+
function Ge(e) {
|
|
1379
|
+
Ne.value || $(X, Array.from(/* @__PURE__ */ new Set([...X, e])));
|
|
1380
|
+
}
|
|
1381
|
+
function Ke(e) {
|
|
1382
|
+
Ne.value || $(X, X.filter((t) => t !== e));
|
|
1383
|
+
}
|
|
1384
|
+
function qe() {
|
|
1385
|
+
Be.handleCollapseChange();
|
|
1386
|
+
}
|
|
1387
|
+
function Je(e) {
|
|
1388
|
+
return o.itemWrapper?.(e) ?? i.renderWrapper?.(e) ?? e.itemElement;
|
|
1389
|
+
}
|
|
1390
|
+
let Ye = {
|
|
1391
|
+
addOpenKey: Ge,
|
|
1392
|
+
direction: B,
|
|
1393
|
+
expandIcon: v(() => i.expandIcon),
|
|
1394
|
+
getPopupContainer: fe,
|
|
1395
|
+
isCollapsed: Q,
|
|
1396
|
+
isInSubNav: !1,
|
|
1397
|
+
limitIndent: k,
|
|
1398
|
+
locale: V,
|
|
1399
|
+
mode: w,
|
|
1400
|
+
notifyClick: Ue,
|
|
1401
|
+
notifyOpenChange: We,
|
|
1402
|
+
notifySelect: He,
|
|
1403
|
+
openKeys: Pe,
|
|
1404
|
+
openKeysControlled: Ne,
|
|
1405
|
+
prefixCls: E,
|
|
1406
|
+
removeOpenKey: Ke,
|
|
1407
|
+
selectedKeys: Fe,
|
|
1408
|
+
selectedKeysControlled: q,
|
|
1409
|
+
setSelectedKeys: Ve,
|
|
1410
|
+
subDropdownProps: v(() => i.subDropdownProps),
|
|
1411
|
+
subNavCloseDelay: I,
|
|
1412
|
+
subNavMotion: F,
|
|
1413
|
+
subNavOpenDelay: ce,
|
|
1414
|
+
toggleCollapsed: qe,
|
|
1415
|
+
toggleIconPosition: z,
|
|
1416
|
+
tooltipHideDelay: de,
|
|
1417
|
+
tooltipShowDelay: ue,
|
|
1418
|
+
wrapItem: Je
|
|
1419
|
+
};
|
|
1420
|
+
N(W, Ye);
|
|
1421
|
+
let Xe = v(() => [
|
|
1422
|
+
E.value,
|
|
1423
|
+
Q.value ? `${E.value}-collapsed` : void 0,
|
|
1424
|
+
`${E.value}-${w.value}`,
|
|
1425
|
+
i.class,
|
|
1426
|
+
i.className
|
|
1427
|
+
]), Ze = v(() => [`${E.value}-header-list-outer`, Q.value ? `${E.value}-header-list-outer-collapsed` : void 0]), Qe = v(() => Object.fromEntries(Object.entries(s?.attrs ?? {}).filter(([e]) => e.startsWith("data-"))));
|
|
1428
|
+
function $e(e) {
|
|
1429
|
+
if (!e || typeof e != "object" || Array.isArray(e) || D(e)) return !1;
|
|
1430
|
+
let t = Object.getPrototypeOf(e);
|
|
1431
|
+
return t === Object.prototype || t === null;
|
|
1432
|
+
}
|
|
1433
|
+
let et = v(() => $e(i.header) ? i.header : void 0), tt = v(() => $e(i.footer) ? i.footer : void 0), nt = v(() => et.value ? void 0 : i.header), rt = v(() => tt.value ? void 0 : i.footer);
|
|
1434
|
+
return (e, t) => (M(), x("div", O(Qe.value, {
|
|
1435
|
+
class: Xe.value,
|
|
1436
|
+
style: i.style
|
|
1437
|
+
}), [S("div", { class: A(`${E.value}-inner`) }, [
|
|
1438
|
+
S("div", { class: A(Ze.value) }, [
|
|
1439
|
+
et.value ? (M(), y(K, j(O({ key: 0 }, et.value)), null, 16)) : nt.value ? (M(), y(K, { key: 1 }, {
|
|
1440
|
+
default: R(() => [C(L(U), { content: nt.value }, null, 8, ["content"])]),
|
|
1441
|
+
_: 1
|
|
1442
|
+
})) : b("", !0),
|
|
1443
|
+
e.$slots.header ? (M(), y(K, { key: 2 }, {
|
|
1444
|
+
default: R(() => [P(e.$slots, "header")]),
|
|
1445
|
+
_: 3
|
|
1446
|
+
})) : b("", !0),
|
|
1447
|
+
C(L(U), { content: be.value }, null, 8, ["content"]),
|
|
1448
|
+
S("div", {
|
|
1449
|
+
style: ne(i.bodyStyle),
|
|
1450
|
+
class: A(`${E.value}-list-wrapper`)
|
|
1451
|
+
}, [S("ul", {
|
|
1452
|
+
role: "menu",
|
|
1453
|
+
"aria-orientation": w.value,
|
|
1454
|
+
class: A(`${E.value}-list`)
|
|
1455
|
+
}, [(M(!0), x(h, null, ae(H.value, (e, t) => (M(), y(je, {
|
|
1456
|
+
key: e.itemKey ?? `0-${t}`,
|
|
1457
|
+
item: e,
|
|
1458
|
+
level: 0
|
|
1459
|
+
}, null, 8, ["item"]))), 128)), C(L(U), { content: Se.value }, null, 8, ["content"])], 10, Me)], 6)
|
|
1460
|
+
], 2),
|
|
1461
|
+
tt.value ? (M(), y(G, j(O({ key: 0 }, tt.value)), null, 16)) : rt.value ? (M(), y(G, { key: 1 }, {
|
|
1462
|
+
default: R(() => [C(L(U), { content: rt.value }, null, 8, ["content"])]),
|
|
1463
|
+
_: 1
|
|
1464
|
+
})) : b("", !0),
|
|
1465
|
+
e.$slots.footer ? (M(), y(G, { key: 2 }, {
|
|
1466
|
+
default: R(() => [P(e.$slots, "footer")]),
|
|
1467
|
+
_: 3
|
|
1468
|
+
})) : b("", !0),
|
|
1469
|
+
C(L(U), { content: xe.value }, null, 8, ["content"])
|
|
1470
|
+
], 2)], 16));
|
|
1471
|
+
}
|
|
1472
|
+
}), Pe = G, Fe = K, $ = Oe, Ie = Ae, Le = Object.assign(Ne, {
|
|
1473
|
+
Footer: Pe,
|
|
1474
|
+
Header: Fe,
|
|
1475
|
+
Item: $,
|
|
1476
|
+
Sub: Ie
|
|
1477
|
+
});
|
|
1478
|
+
//#endregion
|
|
1479
|
+
export { $ as n, Ie as r, Le as t };
|