@uninterface/backend-element-plus 0.0.0-stage → 2.14.0-alpha1
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 +61 -2
- package/THIRD-PARTY-NOTICES.md +37 -0
- package/capabilities.json +168 -0
- package/docs/README.md +47 -0
- package/docs/collections.md +211 -0
- package/docs/contract-adaptations.md +111 -0
- package/docs/customization.md +131 -0
- package/docs/examples/NativeReference.vue +147 -0
- package/docs/exports.md +32 -0
- package/docs/floating-panels.md +53 -0
- package/docs/font-licenses/inter.txt +93 -0
- package/docs/font-licenses/noto-sans-sc.txt +93 -0
- package/docs/font-licenses/noto-sans-tc.txt +93 -0
- package/docs/icon-licenses/Element-Plus.txt +21 -0
- package/docs/icon-licenses/SOURCES.md +47 -0
- package/docs/modals.md +29 -0
- package/docs/native-html.md +21 -0
- package/docs/navigation.md +31 -0
- package/docs/package-build.md +20 -0
- package/docs/presentation.md +291 -0
- package/docs/progress.md +9 -0
- package/docs/reviewed-components.md +76 -0
- package/docs/segmented-selection.md +22 -0
- package/docs/selection-feedback-panels.md +79 -0
- package/docs/setup.md +157 -0
- package/docs/strategies.md +89 -0
- package/docs/table-columns.md +37 -0
- package/docs/testing.md +29 -0
- package/docs/typography.md +93 -0
- package/document.css +102 -0
- package/esm/_virtual/_plugin-vue_export-helper.js +10 -0
- package/esm/capabilities.json.js +14 -0
- package/esm/package.json.js +14 -0
- package/esm/src/ChoiceGroup.css +23 -0
- package/esm/src/ChoiceGroup.vue.js +8 -0
- package/esm/src/ChoiceGroup2.vue.js +221 -0
- package/esm/src/CollectionCard.vue.js +4 -0
- package/esm/src/CollectionCard2.vue.js +199 -0
- package/esm/src/CollectionFilterEditor.vue.js +4 -0
- package/esm/src/CollectionFilterEditor2.vue.js +31 -0
- package/esm/src/CollectionHeaderFlow.vue.js +4 -0
- package/esm/src/CollectionHeaderFlow2.vue.js +33 -0
- package/esm/src/CollectionHeaderPart.vue.js +4 -0
- package/esm/src/CollectionHeaderPart2.vue.js +40 -0
- package/esm/src/CollectionQueryBadge.vue.js +4 -0
- package/esm/src/CollectionQueryBadge2.vue.js +86 -0
- package/esm/src/CollectionSortLayout.vue.js +4 -0
- package/esm/src/CollectionSortLayout2.vue.js +23 -0
- package/esm/src/CollectionStatus.vue.js +4 -0
- package/esm/src/CollectionStatus2.vue.js +135 -0
- package/esm/src/CollectionSummary.vue.js +4 -0
- package/esm/src/CollectionSummary2.vue.js +70 -0
- package/esm/src/CollectionTableActions.vue.js +13 -0
- package/esm/src/DrawerDepth.vue.js +4 -0
- package/esm/src/DrawerDepth2.vue.js +28 -0
- package/esm/src/DrawerDock.vue.js +4 -0
- package/esm/src/DrawerDock2.vue.js +26 -0
- package/esm/src/EntryBranch.vue.js +4 -0
- package/esm/src/EntryBranch2.vue.js +357 -0
- package/esm/src/EntryContent.css +10 -0
- package/esm/src/EntryContent.vue.js +8 -0
- package/esm/src/EntryContent2.vue.js +79 -0
- package/esm/src/EntryPopup.vue.js +4 -0
- package/esm/src/EntryPopup2.vue.js +164 -0
- package/esm/src/FeedbackItem.vue.js +4 -0
- package/esm/src/FeedbackItem2.vue.js +145 -0
- package/esm/src/FeedbackViewport.vue.js +4 -0
- package/esm/src/FeedbackViewport2.vue.js +42 -0
- package/esm/src/FieldError.vue.js +4 -0
- package/esm/src/FieldError2.vue.js +30 -0
- package/esm/src/FieldFailureTooltip.vue.js +4 -0
- package/esm/src/FieldFailureTooltip2.vue.js +96 -0
- package/esm/src/FileTypeIcon.vue.js +4 -0
- package/esm/src/FileTypeIcon2.vue.js +32 -0
- package/esm/src/FooterActions.vue.js +16 -0
- package/esm/src/MenuBridge.vue.js +4 -0
- package/esm/src/MenuBridge2.vue.js +68 -0
- package/esm/src/NativeMenu.vue.js +4 -0
- package/esm/src/NativeMenu2.vue.js +90 -0
- package/esm/src/OverlaySurface.vue.js +4 -0
- package/esm/src/OverlaySurface2.vue.js +195 -0
- package/esm/src/TableAddRow.vue.js +4 -0
- package/esm/src/TableAddRow2.vue.js +66 -0
- package/esm/src/TableFilterButton.vue.js +4 -0
- package/esm/src/TableFilterButton2.vue.js +35 -0
- package/esm/src/TemporalAction.vue.js +4 -0
- package/esm/src/TemporalAction2.vue.js +46 -0
- package/esm/src/TemporalEditor.vue.js +4 -0
- package/esm/src/TemporalEditor2.vue.js +113 -0
- package/esm/src/TemporalInput.vue.js +4 -0
- package/esm/src/TemporalInput2.vue.js +269 -0
- package/esm/src/TemporalMode.vue.js +4 -0
- package/esm/src/TemporalMode2.vue.js +149 -0
- package/esm/src/TemporalPicker.vue.js +4 -0
- package/esm/src/TemporalPicker2.vue.js +155 -0
- package/esm/src/TemporalRangeIcon.vue.js +4 -0
- package/esm/src/TemporalRangeIcon2.vue.js +67 -0
- package/esm/src/TemporalRangePicker.vue.js +4 -0
- package/esm/src/TemporalRangePicker2.vue.js +199 -0
- package/esm/src/TemporalTimePanel.vue.js +4 -0
- package/esm/src/TemporalTimePanel2.vue.js +53 -0
- package/esm/src/UiApp.vue.js +4 -0
- package/esm/src/UiApp2.vue.js +57 -0
- package/esm/src/UiBadge.vue.js +4 -0
- package/esm/src/UiBadge2.vue.js +44 -0
- package/esm/src/UiBreadcrumbs.css +7 -0
- package/esm/src/UiBreadcrumbs.vue.js +8 -0
- package/esm/src/UiBreadcrumbs2.vue.js +110 -0
- package/esm/src/UiButton.vue.js +4 -0
- package/esm/src/UiButton2.vue.js +167 -0
- package/esm/src/UiCard.vue.js +4 -0
- package/esm/src/UiCard2.vue.js +102 -0
- package/esm/src/UiCheckbox.vue.js +4 -0
- package/esm/src/UiCheckbox2.vue.js +105 -0
- package/esm/src/UiCheckboxGroup.vue.js +4 -0
- package/esm/src/UiCheckboxGroup2.vue.js +43 -0
- package/esm/src/UiCollapsible.css +7 -0
- package/esm/src/UiCollapsible.vue.js +8 -0
- package/esm/src/UiCollapsible2.vue.js +59 -0
- package/esm/src/UiCollectionFooter.vue.js +4 -0
- package/esm/src/UiCollectionFooter2.vue.js +64 -0
- package/esm/src/UiCollectionHeader.vue.js +4 -0
- package/esm/src/UiCollectionHeader2.vue.js +24 -0
- package/esm/src/UiCollectionView.vue.js +4 -0
- package/esm/src/UiCollectionView2.vue.js +239 -0
- package/esm/src/UiContent.vue.js +4 -0
- package/esm/src/UiContent2.vue.js +35 -0
- package/esm/src/UiDateInput.vue.js +4 -0
- package/esm/src/UiDateInput2.vue.js +46 -0
- package/esm/src/UiDateTimeInput.vue.js +4 -0
- package/esm/src/UiDateTimeInput2.vue.js +46 -0
- package/esm/src/UiDrawer.vue.js +4 -0
- package/esm/src/UiDrawer2.vue.js +98 -0
- package/esm/src/UiDrawerLayout.vue.js +4 -0
- package/esm/src/UiDrawerLayout2.vue.js +63 -0
- package/esm/src/UiEmpty.vue.js +4 -0
- package/esm/src/UiEmpty2.vue.js +51 -0
- package/esm/src/UiField.vue.js +4 -0
- package/esm/src/UiField2.vue.js +167 -0
- package/esm/src/UiFileCollection.vue.js +4 -0
- package/esm/src/UiFileCollection2.vue.js +54 -0
- package/esm/src/UiFileInput.vue.js +4 -0
- package/esm/src/UiFileInput2.vue.js +138 -0
- package/esm/src/UiFilePreview.vue.js +4 -0
- package/esm/src/UiFilePreview2.vue.js +104 -0
- package/esm/src/UiFloating.vue.js +4 -0
- package/esm/src/UiFloating2.vue.js +108 -0
- package/esm/src/UiForm.vue.js +4 -0
- package/esm/src/UiForm2.vue.js +47 -0
- package/esm/src/UiIcon.css +7 -0
- package/esm/src/UiIcon.vue.js +8 -0
- package/esm/src/UiIcon2.vue.js +27 -0
- package/esm/src/UiImagePreview.vue.js +4 -0
- package/esm/src/UiImagePreview2.vue.js +92 -0
- package/esm/src/UiInputFrame.vue.js +4 -0
- package/esm/src/UiInputFrame2.vue.js +62 -0
- package/esm/src/UiInputFrameSpacer.vue.js +4 -0
- package/esm/src/UiInputFrameSpacer2.vue.js +20 -0
- package/esm/src/UiKeyValueItem.vue.js +4 -0
- package/esm/src/UiKeyValueItem2.vue.js +29 -0
- package/esm/src/UiKeyValueList.vue.js +4 -0
- package/esm/src/UiKeyValueList2.vue.js +17 -0
- package/esm/src/UiLayout.vue.js +4 -0
- package/esm/src/UiLayout2.vue.js +156 -0
- package/esm/src/UiLink.vue.js +4 -0
- package/esm/src/UiLink2.vue.js +43 -0
- package/esm/src/UiList.vue.js +4 -0
- package/esm/src/UiList2.vue.js +247 -0
- package/esm/src/UiLoadingIndicator.vue.js +4 -0
- package/esm/src/UiLoadingIndicator2.vue.js +53 -0
- package/esm/src/UiLoadingRegion.vue.js +4 -0
- package/esm/src/UiLoadingRegion2.vue.js +100 -0
- package/esm/src/UiMenu.vue.js +4 -0
- package/esm/src/UiMenu2.vue.js +70 -0
- package/esm/src/UiModal.vue.js +4 -0
- package/esm/src/UiModal2.vue.js +145 -0
- package/esm/src/UiMultiSelect.vue.js +4 -0
- package/esm/src/UiMultiSelect2.vue.js +224 -0
- package/esm/src/UiNavMenu.vue.js +4 -0
- package/esm/src/UiNavMenu2.vue.js +86 -0
- package/esm/src/UiNavbar.vue.js +4 -0
- package/esm/src/UiNavbar2.vue.js +37 -0
- package/esm/src/UiNotice.vue.js +4 -0
- package/esm/src/UiNotice2.vue.js +186 -0
- package/esm/src/UiPaginator.vue.js +4 -0
- package/esm/src/UiPaginator2.vue.js +260 -0
- package/esm/src/UiPaginatorJumper.vue.js +4 -0
- package/esm/src/UiPaginatorJumper2.vue.js +90 -0
- package/esm/src/UiPaginatorSizeSelect.vue.js +4 -0
- package/esm/src/UiPaginatorSizeSelect2.vue.js +60 -0
- package/esm/src/UiPopover.vue.js +4 -0
- package/esm/src/UiPopover2.vue.js +93 -0
- package/esm/src/UiPreviewRegion.vue.js +4 -0
- package/esm/src/UiPreviewRegion2.vue.js +62 -0
- package/esm/src/UiProgressBar.vue.js +4 -0
- package/esm/src/UiProgressBar2.vue.js +44 -0
- package/esm/src/UiRadioGroup.vue.js +4 -0
- package/esm/src/UiRadioGroup2.vue.js +43 -0
- package/esm/src/UiRegionLayout.vue.js +4 -0
- package/esm/src/UiRegionLayout2.vue.js +106 -0
- package/esm/src/UiSegmentedSelect.css +72 -0
- package/esm/src/UiSegmentedSelect.vue.js +8 -0
- package/esm/src/UiSegmentedSelect2.vue.js +190 -0
- package/esm/src/UiSelect.vue.js +4 -0
- package/esm/src/UiSelect2.vue.js +209 -0
- package/esm/src/UiSuggestions.vue.js +4 -0
- package/esm/src/UiSuggestions2.vue.js +151 -0
- package/esm/src/UiSwitch.vue.js +4 -0
- package/esm/src/UiSwitch2.vue.js +108 -0
- package/esm/src/UiTabPanel.vue.js +4 -0
- package/esm/src/UiTabPanel2.vue.js +40 -0
- package/esm/src/UiTable.vue.js +4 -0
- package/esm/src/UiTable2.vue.js +740 -0
- package/esm/src/UiTabs.vue.js +4 -0
- package/esm/src/UiTabs2.vue.js +85 -0
- package/esm/src/UiTextInput.vue.js +4 -0
- package/esm/src/UiTextInput2.vue.js +108 -0
- package/esm/src/UiTimeInput.vue.js +4 -0
- package/esm/src/UiTimeInput2.vue.js +46 -0
- package/esm/src/UiTooltip.vue.js +4 -0
- package/esm/src/UiTooltip2.vue.js +72 -0
- package/esm/src/UiUploadProgress.vue.js +4 -0
- package/esm/src/UiUploadProgress2.vue.js +134 -0
- package/esm/src/UiUploadRegion.vue.js +4 -0
- package/esm/src/UiUploadRegion2.vue.js +230 -0
- package/esm/src/checkableDescription.js +104 -0
- package/esm/src/controlSize.js +29 -0
- package/esm/src/fieldPresentation.js +50 -0
- package/esm/src/focus.js +6 -0
- package/esm/src/formPresentation.js +6 -0
- package/esm/src/icons/external-link.vue.js +32 -0
- package/esm/src/icons/globe.vue.js +59 -0
- package/esm/src/icons/index.js +67 -0
- package/esm/src/icons/more-vertical.vue.js +13 -0
- package/esm/src/icons/more-vertical2.vue.js +4 -0
- package/esm/src/index.js +18 -0
- package/esm/src/integration.js +45 -0
- package/esm/src/layout.js +13 -0
- package/esm/src/menuPresentation.js +229 -0
- package/esm/src/navigationDropdownHeight.js +43 -0
- package/esm/src/selectEscape.js +11 -0
- package/esm/src/zOrder.js +17 -0
- package/esm/testing/browser-control-parts.js +25 -0
- package/esm/testing/dom.js +48 -0
- package/esm/testing/index.js +120 -0
- package/esm/testing/presentation-mapping.js +45 -0
- package/esm/testing/presentation-parts.js +49 -0
- package/font-bundled.css +6 -0
- package/font-family.css +23 -0
- package/font.css +6 -0
- package/hooks/vite.d.mts +3 -0
- package/hooks/vite.mjs +178 -0
- package/native-content.css +52 -0
- package/package.json +79 -4
- package/style.css +3546 -0
- package/types/src/ChoiceGroup.vue.d.ts +15 -0
- package/types/src/CollectionCard.vue.d.ts +42 -0
- package/types/src/CollectionFilterEditor.vue.d.ts +16 -0
- package/types/src/CollectionHeaderFlow.vue.d.ts +17 -0
- package/types/src/CollectionHeaderPart.vue.d.ts +24 -0
- package/types/src/CollectionQueryBadge.vue.d.ts +26 -0
- package/types/src/CollectionSortLayout.vue.d.ts +17 -0
- package/types/src/CollectionStatus.vue.d.ts +28 -0
- package/types/src/CollectionSummary.vue.d.ts +22 -0
- package/types/src/CollectionTableActions.vue.d.ts +13 -0
- package/types/src/DrawerDepth.vue.d.ts +7 -0
- package/types/src/DrawerDock.vue.d.ts +17 -0
- package/types/src/EntryBranch.vue.d.ts +31 -0
- package/types/src/EntryContent.vue.d.ts +35 -0
- package/types/src/EntryPopup.vue.d.ts +24 -0
- package/types/src/FeedbackItem.vue.d.ts +16 -0
- package/types/src/FeedbackViewport.vue.d.ts +19 -0
- package/types/src/FieldError.vue.d.ts +8 -0
- package/types/src/FieldFailureTooltip.vue.d.ts +17 -0
- package/types/src/FileTypeIcon.vue.d.ts +6 -0
- package/types/src/FooterActions.vue.d.ts +13 -0
- package/types/src/MenuBridge.vue.d.ts +13 -0
- package/types/src/NativeMenu.vue.d.ts +44 -0
- package/types/src/OverlaySurface.vue.d.ts +38 -0
- package/types/src/TableAddRow.vue.d.ts +18 -0
- package/types/src/TableFilterButton.vue.d.ts +7 -0
- package/types/src/TemporalAction.vue.d.ts +13 -0
- package/types/src/TemporalEditor.vue.d.ts +12 -0
- package/types/src/TemporalInput.vue.d.ts +9 -0
- package/types/src/TemporalMode.vue.d.ts +20 -0
- package/types/src/TemporalPicker.vue.d.ts +10 -0
- package/types/src/TemporalRangeIcon.vue.d.ts +7 -0
- package/types/src/TemporalRangePicker.vue.d.ts +17 -0
- package/types/src/TemporalTimePanel.vue.d.ts +14 -0
- package/types/src/UiApp.vue.d.ts +18 -0
- package/types/src/UiBadge.vue.d.ts +14 -0
- package/types/src/UiBreadcrumbs.vue.d.ts +24 -0
- package/types/src/UiButton.vue.d.ts +22 -0
- package/types/src/UiCard.vue.d.ts +24 -0
- package/types/src/UiCheckbox.vue.d.ts +10 -0
- package/types/src/UiCheckboxGroup.vue.d.ts +12 -0
- package/types/src/UiCollapsible.vue.d.ts +20 -0
- package/types/src/UiCollectionFooter.vue.d.ts +15 -0
- package/types/src/UiCollectionHeader.vue.d.ts +14 -0
- package/types/src/UiCollectionView.vue.d.ts +56 -0
- package/types/src/UiContent.vue.d.ts +14 -0
- package/types/src/UiDateInput.vue.d.ts +6 -0
- package/types/src/UiDateTimeInput.vue.d.ts +6 -0
- package/types/src/UiDrawer.vue.d.ts +40 -0
- package/types/src/UiDrawerLayout.vue.d.ts +16 -0
- package/types/src/UiEmpty.vue.d.ts +18 -0
- package/types/src/UiField.vue.d.ts +17 -0
- package/types/src/UiFileCollection.vue.d.ts +16 -0
- package/types/src/UiFileInput.vue.d.ts +6 -0
- package/types/src/UiFilePreview.vue.d.ts +6 -0
- package/types/src/UiFloating.vue.d.ts +14 -0
- package/types/src/UiForm.vue.d.ts +25 -0
- package/types/src/UiIcon.vue.d.ts +14 -0
- package/types/src/UiImagePreview.vue.d.ts +4 -0
- package/types/src/UiInputFrame.vue.d.ts +26 -0
- package/types/src/UiInputFrameSpacer.vue.d.ts +3 -0
- package/types/src/UiKeyValueItem.vue.d.ts +14 -0
- package/types/src/UiKeyValueList.vue.d.ts +13 -0
- package/types/src/UiLayout.vue.d.ts +17 -0
- package/types/src/UiLink.vue.d.ts +16 -0
- package/types/src/UiList.vue.d.ts +49 -0
- package/types/src/UiLoadingIndicator.vue.d.ts +14 -0
- package/types/src/UiLoadingRegion.vue.d.ts +17 -0
- package/types/src/UiMenu.vue.d.ts +59 -0
- package/types/src/UiModal.vue.d.ts +27 -0
- package/types/src/UiMultiSelect.vue.d.ts +16 -0
- package/types/src/UiNavMenu.vue.d.ts +36 -0
- package/types/src/UiNavbar.vue.d.ts +17 -0
- package/types/src/UiNotice.vue.d.ts +18 -0
- package/types/src/UiPaginator.vue.d.ts +4 -0
- package/types/src/UiPaginatorJumper.vue.d.ts +4 -0
- package/types/src/UiPaginatorSizeSelect.vue.d.ts +4 -0
- package/types/src/UiPopover.vue.d.ts +40 -0
- package/types/src/UiPreviewRegion.vue.d.ts +14 -0
- package/types/src/UiProgressBar.vue.d.ts +4 -0
- package/types/src/UiRadioGroup.vue.d.ts +12 -0
- package/types/src/UiRegionLayout.vue.d.ts +21 -0
- package/types/src/UiSegmentedSelect.vue.d.ts +12 -0
- package/types/src/UiSelect.vue.d.ts +14 -0
- package/types/src/UiSuggestions.vue.d.ts +37 -0
- package/types/src/UiSwitch.vue.d.ts +10 -0
- package/types/src/UiTabPanel.vue.d.ts +14 -0
- package/types/src/UiTable.vue.d.ts +90 -0
- package/types/src/UiTabs.vue.d.ts +20 -0
- package/types/src/UiTextInput.vue.d.ts +24 -0
- package/types/src/UiTimeInput.vue.d.ts +6 -0
- package/types/src/UiTooltip.vue.d.ts +25 -0
- package/types/src/UiUploadProgress.vue.d.ts +4 -0
- package/types/src/UiUploadRegion.vue.d.ts +6 -0
- package/types/src/checkableDescription.d.ts +7 -0
- package/types/src/controlSize.d.ts +2 -0
- package/types/src/fieldPresentation.d.ts +49 -0
- package/types/src/focus.d.ts +3 -0
- package/types/src/formPresentation.d.ts +3 -0
- package/types/src/icons/external-link.vue.d.ts +3 -0
- package/types/src/icons/globe.vue.d.ts +3 -0
- package/types/src/icons/index.d.ts +181 -0
- package/types/src/icons/more-vertical.vue.d.ts +3 -0
- package/types/src/index.d.ts +2 -0
- package/types/src/integration.d.ts +1426 -0
- package/types/src/layout.d.ts +2 -0
- package/types/src/menuPresentation.d.ts +30 -0
- package/types/src/navigationDropdownHeight.d.ts +3 -0
- package/types/src/selectEscape.d.ts +1 -0
- package/types/src/zOrder.d.ts +3 -0
- package/types/testing/browser-control-parts.d.ts +2 -0
- package/types/testing/dom.d.mts +3 -0
- package/types/testing/index.d.ts +3 -0
- package/types/testing/presentation-mapping.d.ts +33 -0
- package/types/testing/presentation-parts.d.mts +20 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, Fragment, renderSlot, createVNode, createCommentVNode, createBlock, normalizeStyle, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./UiEmpty2.vue.js";
|
|
3
|
+
import _sfc_main$2 from "./UiLoadingIndicator2.vue.js";
|
|
4
|
+
const _hoisted_1 = ["data-infinity-feedback"];
|
|
5
|
+
const _hoisted_2 = { key: 0 };
|
|
6
|
+
const _hoisted_3 = { key: 2 };
|
|
7
|
+
const _hoisted_4 = {
|
|
8
|
+
key: 3,
|
|
9
|
+
class: "element-collection-announcement",
|
|
10
|
+
"data-ui-loading-status": "",
|
|
11
|
+
role: "status",
|
|
12
|
+
"aria-atomic": "true"
|
|
13
|
+
};
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
__name: "CollectionStatus",
|
|
16
|
+
props: {
|
|
17
|
+
recoverFocus: { type: Function },
|
|
18
|
+
dataSummary: {},
|
|
19
|
+
rows: {},
|
|
20
|
+
label: {},
|
|
21
|
+
height: {},
|
|
22
|
+
scroll: {},
|
|
23
|
+
selection: {},
|
|
24
|
+
disabled: { type: Boolean },
|
|
25
|
+
busy: { type: Boolean },
|
|
26
|
+
loading: { type: Boolean },
|
|
27
|
+
appending: { type: Boolean },
|
|
28
|
+
empty: { type: Boolean },
|
|
29
|
+
failed: { type: Boolean },
|
|
30
|
+
failurePlacement: {},
|
|
31
|
+
error: {},
|
|
32
|
+
message: {},
|
|
33
|
+
showSummary: { type: Boolean },
|
|
34
|
+
summary: { type: Boolean },
|
|
35
|
+
announcement: {},
|
|
36
|
+
retryLabel: {},
|
|
37
|
+
canRetry: { type: Boolean },
|
|
38
|
+
retry: { type: Function },
|
|
39
|
+
infinityComplete: { type: Boolean },
|
|
40
|
+
infinite: { type: Boolean },
|
|
41
|
+
moreLabel: {},
|
|
42
|
+
canLoadMore: { type: Boolean },
|
|
43
|
+
hasMore: { type: Boolean },
|
|
44
|
+
loadMore: { type: Function },
|
|
45
|
+
observe: { type: Function },
|
|
46
|
+
emptyInBody: { type: Boolean },
|
|
47
|
+
suppressAnnouncement: { type: Boolean }
|
|
48
|
+
},
|
|
49
|
+
setup(__props) {
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return openBlock(), createElementBlock("div", {
|
|
52
|
+
class: "element-collection-status",
|
|
53
|
+
"data-infinity-feedback": __props.infinite && (__props.appending || __props.infinityComplete) || void 0
|
|
54
|
+
}, [
|
|
55
|
+
__props.empty ? (openBlock(), createElementBlock(
|
|
56
|
+
Fragment,
|
|
57
|
+
{ key: 0 },
|
|
58
|
+
[
|
|
59
|
+
!__props.emptyInBody ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
60
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
61
|
+
createVNode(_sfc_main$1, { label: __props.message }, null, 8, ["label"])
|
|
62
|
+
])
|
|
63
|
+
])) : createCommentVNode("v-if", true)
|
|
64
|
+
],
|
|
65
|
+
64
|
|
66
|
+
/* STABLE_FRAGMENT */
|
|
67
|
+
)) : __props.appending ? (openBlock(), createBlock(_sfc_main$2, {
|
|
68
|
+
key: 1,
|
|
69
|
+
label: __props.message,
|
|
70
|
+
style: normalizeStyle(__props.infinite ? { fontSize: "inherit" } : void 0)
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
__props.infinite ? renderSlot(_ctx.$slots, "infinity-loading", {
|
|
74
|
+
message: __props.message,
|
|
75
|
+
loadedCount: __props.rows.length
|
|
76
|
+
}, () => [
|
|
77
|
+
createTextVNode(
|
|
78
|
+
toDisplayString(__props.message),
|
|
79
|
+
1
|
|
80
|
+
/* TEXT */
|
|
81
|
+
)
|
|
82
|
+
], void 0, 0) : (openBlock(), createElementBlock(
|
|
83
|
+
Fragment,
|
|
84
|
+
{ key: 1 },
|
|
85
|
+
[
|
|
86
|
+
createTextVNode(
|
|
87
|
+
toDisplayString(__props.message),
|
|
88
|
+
1
|
|
89
|
+
/* TEXT */
|
|
90
|
+
)
|
|
91
|
+
],
|
|
92
|
+
64
|
|
93
|
+
/* STABLE_FRAGMENT */
|
|
94
|
+
))
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
/* FORWARDED */
|
|
98
|
+
}, 8, ["label", "style"])) : !__props.failed && !__props.loading && !__props.appending && (!__props.summary || __props.showSummary === true) ? (openBlock(), createElementBlock("p", _hoisted_3, [
|
|
99
|
+
__props.infinityComplete ? renderSlot(_ctx.$slots, "infinity-complete", {
|
|
100
|
+
message: __props.message,
|
|
101
|
+
loadedCount: __props.rows.length
|
|
102
|
+
}, () => [
|
|
103
|
+
createTextVNode(
|
|
104
|
+
toDisplayString(__props.message),
|
|
105
|
+
1
|
|
106
|
+
/* TEXT */
|
|
107
|
+
)
|
|
108
|
+
], void 0, 0) : (openBlock(), createElementBlock(
|
|
109
|
+
Fragment,
|
|
110
|
+
{ key: 1 },
|
|
111
|
+
[
|
|
112
|
+
createTextVNode(
|
|
113
|
+
toDisplayString(__props.message),
|
|
114
|
+
1
|
|
115
|
+
/* TEXT */
|
|
116
|
+
)
|
|
117
|
+
],
|
|
118
|
+
64
|
|
119
|
+
/* STABLE_FRAGMENT */
|
|
120
|
+
))
|
|
121
|
+
])) : createCommentVNode("v-if", true),
|
|
122
|
+
!__props.suppressAnnouncement ? (openBlock(), createElementBlock(
|
|
123
|
+
"span",
|
|
124
|
+
_hoisted_4,
|
|
125
|
+
toDisplayString(__props.announcement),
|
|
126
|
+
1
|
|
127
|
+
/* TEXT */
|
|
128
|
+
)) : createCommentVNode("v-if", true)
|
|
129
|
+
], 8, _hoisted_1);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
_sfc_main as default
|
|
135
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, Fragment, renderList, toDisplayString, renderSlot } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./UiCard2.vue.js";
|
|
3
|
+
const _hoisted_1 = ["data-summary-status", "aria-label"];
|
|
4
|
+
const _hoisted_2 = { "data-collection-summary-label": "" };
|
|
5
|
+
const _hoisted_3 = { class: "element-collection-summary-content" };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "CollectionSummary",
|
|
8
|
+
props: {
|
|
9
|
+
summary: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createElementBlock("section", {
|
|
14
|
+
class: "element-collection-data-summary",
|
|
15
|
+
"data-collection-summary": "",
|
|
16
|
+
"data-summary-status": __props.summary.status,
|
|
17
|
+
"aria-label": __props.summary.label
|
|
18
|
+
}, [
|
|
19
|
+
createVNode(_sfc_main$1, {
|
|
20
|
+
level: 0,
|
|
21
|
+
color: __props.summary.cardTreatment.color,
|
|
22
|
+
treatment: __props.summary.cardTreatment,
|
|
23
|
+
loading: false,
|
|
24
|
+
"loading-label": ""
|
|
25
|
+
}, {
|
|
26
|
+
title: withCtx(() => [
|
|
27
|
+
createElementVNode(
|
|
28
|
+
"div",
|
|
29
|
+
_hoisted_2,
|
|
30
|
+
toDisplayString(__props.summary.label),
|
|
31
|
+
1
|
|
32
|
+
/* TEXT */
|
|
33
|
+
)
|
|
34
|
+
]),
|
|
35
|
+
default: withCtx(() => [
|
|
36
|
+
createElementVNode("dl", _hoisted_3, [
|
|
37
|
+
(openBlock(true), createElementBlock(
|
|
38
|
+
Fragment,
|
|
39
|
+
null,
|
|
40
|
+
renderList(__props.summary.columns, (column) => {
|
|
41
|
+
return openBlock(), createElementBlock("div", {
|
|
42
|
+
key: column.key
|
|
43
|
+
}, [
|
|
44
|
+
createElementVNode(
|
|
45
|
+
"dt",
|
|
46
|
+
null,
|
|
47
|
+
toDisplayString(column.label),
|
|
48
|
+
1
|
|
49
|
+
/* TEXT */
|
|
50
|
+
),
|
|
51
|
+
createElementVNode("dd", null, [
|
|
52
|
+
renderSlot(_ctx.$slots, "default", { column })
|
|
53
|
+
])
|
|
54
|
+
]);
|
|
55
|
+
}),
|
|
56
|
+
128
|
|
57
|
+
/* KEYED_FRAGMENT */
|
|
58
|
+
))
|
|
59
|
+
])
|
|
60
|
+
]),
|
|
61
|
+
_: 3
|
|
62
|
+
/* FORWARDED */
|
|
63
|
+
}, 8, ["color", "treatment"])
|
|
64
|
+
], 8, _hoisted_1);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
_sfc_main as default
|
|
70
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, renderSlot } from "vue";
|
|
2
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = { class: "element-collection-table-actions" };
|
|
5
|
+
function _sfc_render(_ctx, _cache) {
|
|
6
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
7
|
+
renderSlot(_ctx.$slots, "default")
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
const CollectionTableActions = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
11
|
+
export {
|
|
12
|
+
CollectionTableActions as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = ["data-edge"];
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "DrawerDepth",
|
|
5
|
+
props: {
|
|
6
|
+
edge: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("span", {
|
|
11
|
+
class: "element-drawer-depth",
|
|
12
|
+
"data-edge": __props.edge,
|
|
13
|
+
"aria-hidden": "true"
|
|
14
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
15
|
+
createElementVNode(
|
|
16
|
+
"span",
|
|
17
|
+
{ class: "element-drawer-depth-shadow" },
|
|
18
|
+
null,
|
|
19
|
+
-1
|
|
20
|
+
/* CACHED */
|
|
21
|
+
)
|
|
22
|
+
])], 8, _hoisted_1);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
_sfc_main as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./DrawerDepth2.vue.js";
|
|
3
|
+
const _hoisted_1 = ["data-edge"];
|
|
4
|
+
const _hoisted_2 = { class: "element-drawer-dock-motion" };
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "DrawerDock",
|
|
7
|
+
props: {
|
|
8
|
+
edge: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("div", {
|
|
13
|
+
class: "element-drawer-dock",
|
|
14
|
+
"data-edge": __props.edge
|
|
15
|
+
}, [
|
|
16
|
+
createElementVNode("div", _hoisted_2, [
|
|
17
|
+
renderSlot(_ctx.$slots, "default")
|
|
18
|
+
]),
|
|
19
|
+
createVNode(_sfc_main$1, { edge: __props.edge }, null, 8, ["edge"])
|
|
20
|
+
], 8, _hoisted_1);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
_sfc_main as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { defineComponent, inject, computed, provide, useId, getCurrentInstance, ref, onMounted, watchEffect, onUpdated, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createVNode, unref, createBlock, withCtx, renderSlot, mergeProps, createCommentVNode, normalizeClass, toDisplayString, createElementVNode, createTextVNode } from "vue";
|
|
2
|
+
import { useUiOverlayTarget, useUiMenuIconColumn, useUiMenuPopup, useUiZPopup } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { useLocale, MENU_INJECTION_KEY, ElDivider, ElMenuItemGroup, ElSubMenu, ElMenuItem, ElButton } from "element-plus";
|
|
4
|
+
import { ArrowRight } from "@element-plus/icons-vue";
|
|
5
|
+
import { menuPresentationKey, commandCheckColumnKey, entryIndex } from "./menuPresentation.js";
|
|
6
|
+
import EntryContent from "./EntryContent.vue.js";
|
|
7
|
+
import { useNavigationDropdownHeight } from "./navigationDropdownHeight.js";
|
|
8
|
+
const _hoisted_1 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
role: "none"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_2 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
class: "element-entry-check"
|
|
16
|
+
};
|
|
17
|
+
const _hoisted_3 = {
|
|
18
|
+
key: 0,
|
|
19
|
+
"aria-hidden": "true",
|
|
20
|
+
class: "element-entry-check"
|
|
21
|
+
};
|
|
22
|
+
const _hoisted_4 = {
|
|
23
|
+
key: 0,
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
class: "element-entry-check"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_5 = {
|
|
28
|
+
key: 0,
|
|
29
|
+
role: "none"
|
|
30
|
+
};
|
|
31
|
+
const _hoisted_6 = {
|
|
32
|
+
class: "el-select-dropdown__empty",
|
|
33
|
+
role: "status"
|
|
34
|
+
};
|
|
35
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
|
+
__name: "EntryBranch",
|
|
37
|
+
props: {
|
|
38
|
+
entries: {},
|
|
39
|
+
status: {},
|
|
40
|
+
label: {},
|
|
41
|
+
parentKey: {},
|
|
42
|
+
surfaceId: {},
|
|
43
|
+
group: { type: Boolean }
|
|
44
|
+
},
|
|
45
|
+
setup(__props) {
|
|
46
|
+
const overlayTarget = useUiOverlayTarget();
|
|
47
|
+
const props = __props;
|
|
48
|
+
const presentation = inject(menuPresentationKey);
|
|
49
|
+
const parentCheckColumn = inject(commandCheckColumnKey, void 0);
|
|
50
|
+
function hasCheck(entries) {
|
|
51
|
+
return entries.some(
|
|
52
|
+
(node) => Boolean(node.selectionMode) || node.entry.kind === "group" && hasCheck(node.children ?? [])
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
const checkColumn = computed(
|
|
56
|
+
() => presentation.navigation ? false : props.group && parentCheckColumn ? parentCheckColumn.value : hasCheck(props.entries)
|
|
57
|
+
);
|
|
58
|
+
provide(commandCheckColumnKey, checkColumn);
|
|
59
|
+
const iconColumn = useUiMenuIconColumn(() => props.entries, {
|
|
60
|
+
group: () => Boolean(props.group),
|
|
61
|
+
reserve: () => presentation.navigation && (presentation.persistent() || props.parentKey === void 0 && !presentation.horizontal()),
|
|
62
|
+
enabled: () => !(presentation.navigation && presentation.horizontal() && props.parentKey === void 0)
|
|
63
|
+
});
|
|
64
|
+
const { t } = useLocale();
|
|
65
|
+
const message = computed(
|
|
66
|
+
() => props.status?.pending ? t("el.select.loading") : props.status?.message
|
|
67
|
+
);
|
|
68
|
+
const id = useId();
|
|
69
|
+
const instance = getCurrentInstance();
|
|
70
|
+
const surface = ref();
|
|
71
|
+
const dropdownRoot = ref();
|
|
72
|
+
const nativeMenu = inject(MENU_INJECTION_KEY);
|
|
73
|
+
const dropdownHeight = useNavigationDropdownHeight(
|
|
74
|
+
() => dropdownRoot.value,
|
|
75
|
+
() => presentation.navigation && presentation.horizontal() && props.parentKey === void 0,
|
|
76
|
+
() => nativeMenu.props.popperOffset,
|
|
77
|
+
() => props.entries.some((node) => node.expanded)
|
|
78
|
+
);
|
|
79
|
+
useUiMenuPopup(surface);
|
|
80
|
+
const ownsPopup = () => props.parentKey !== void 0 && !props.group && !presentation.persistent();
|
|
81
|
+
useUiZPopup(
|
|
82
|
+
() => ownsPopup() ? surface.value?.closest(".el-popper") : void 0,
|
|
83
|
+
{ scope: true, scopeActive: ownsPopup }
|
|
84
|
+
);
|
|
85
|
+
let detach;
|
|
86
|
+
onMounted(() => {
|
|
87
|
+
const element = instance.vnode.el.parentElement;
|
|
88
|
+
dropdownRoot.value = element.closest(".element-navigation-menu") ?? void 0;
|
|
89
|
+
if (props.group) {
|
|
90
|
+
element.setAttribute("role", "none");
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
surface.value = element;
|
|
94
|
+
if (!presentation.navigation && props.parentKey !== void 0)
|
|
95
|
+
element.classList.add("element-command-menu");
|
|
96
|
+
detach = presentation.register(props.parentKey, element);
|
|
97
|
+
if (props.parentKey !== void 0) {
|
|
98
|
+
element.id = props.surfaceId;
|
|
99
|
+
element.setAttribute("role", "menu");
|
|
100
|
+
element.setAttribute("aria-label", props.label);
|
|
101
|
+
element.setAttribute("data-parent", props.parentKey);
|
|
102
|
+
element.tabIndex = -1;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
watchEffect(() => {
|
|
106
|
+
const element = surface.value;
|
|
107
|
+
if (element) {
|
|
108
|
+
if (props.status?.pending) element.setAttribute("aria-busy", "true");
|
|
109
|
+
else element.removeAttribute("aria-busy");
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
onUpdated(presentation.tabstops);
|
|
113
|
+
onBeforeUnmount(() => detach?.());
|
|
114
|
+
function current(node) {
|
|
115
|
+
return Boolean(node.current || node.children?.some(current));
|
|
116
|
+
}
|
|
117
|
+
function forwardLink(event, node) {
|
|
118
|
+
if (!presentation.navigation || !("href" in node.entry) || !node.entry.href || node.entry.disabled)
|
|
119
|
+
return;
|
|
120
|
+
const item = event.currentTarget;
|
|
121
|
+
const link = item.querySelector("a[href]");
|
|
122
|
+
if (!link || link.contains(event.target)) return;
|
|
123
|
+
event.preventDefault();
|
|
124
|
+
event.stopImmediatePropagation();
|
|
125
|
+
link.dispatchEvent(
|
|
126
|
+
new MouseEvent("click", {
|
|
127
|
+
bubbles: true,
|
|
128
|
+
cancelable: true,
|
|
129
|
+
button: event.button,
|
|
130
|
+
ctrlKey: event.ctrlKey,
|
|
131
|
+
metaKey: event.metaKey,
|
|
132
|
+
shiftKey: event.shiftKey,
|
|
133
|
+
altKey: event.altKey
|
|
134
|
+
})
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
function clickSubmenu(event, node) {
|
|
138
|
+
if (presentation.rail()) {
|
|
139
|
+
event.stopPropagation();
|
|
140
|
+
if (!node.expanded) presentation.expand(node.entry.key, true);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (event.target === event.currentTarget)
|
|
144
|
+
event.currentTarget.querySelector(":scope > .el-sub-menu__title")?.click();
|
|
145
|
+
}
|
|
146
|
+
return (_ctx, _cache) => {
|
|
147
|
+
const _component_EntryBranch = resolveComponent("EntryBranch", true);
|
|
148
|
+
return openBlock(), createElementBlock(
|
|
149
|
+
Fragment,
|
|
150
|
+
null,
|
|
151
|
+
[
|
|
152
|
+
(openBlock(true), createElementBlock(
|
|
153
|
+
Fragment,
|
|
154
|
+
null,
|
|
155
|
+
renderList(__props.entries, (node, index) => {
|
|
156
|
+
return openBlock(), createElementBlock(
|
|
157
|
+
Fragment,
|
|
158
|
+
{
|
|
159
|
+
key: node.entry.key
|
|
160
|
+
},
|
|
161
|
+
[
|
|
162
|
+
node.entry.kind === "separator" ? (openBlock(), createElementBlock("li", _hoisted_1, [
|
|
163
|
+
createVNode(unref(ElDivider))
|
|
164
|
+
])) : node.entry.kind === "group" ? (openBlock(), createBlock(unref(ElMenuItemGroup), {
|
|
165
|
+
key: 1,
|
|
166
|
+
title: node.entry.label,
|
|
167
|
+
"data-rail-group": unref(presentation).rail() && __props.parentKey === void 0 || void 0,
|
|
168
|
+
role: "group",
|
|
169
|
+
"aria-label": node.entry.label
|
|
170
|
+
}, {
|
|
171
|
+
title: withCtx(() => [
|
|
172
|
+
checkColumn.value ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("v-if", true),
|
|
173
|
+
createVNode(EntryContent, {
|
|
174
|
+
entry: node.entry,
|
|
175
|
+
"icon-column": unref(iconColumn),
|
|
176
|
+
rail: unref(presentation).rail() && __props.parentKey === void 0
|
|
177
|
+
}, {
|
|
178
|
+
entry: withCtx((scope) => [
|
|
179
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
180
|
+
]),
|
|
181
|
+
icon: withCtx((scope) => [
|
|
182
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
183
|
+
]),
|
|
184
|
+
_: 3
|
|
185
|
+
/* FORWARDED */
|
|
186
|
+
}, 8, ["entry", "icon-column", "rail"])
|
|
187
|
+
]),
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createVNode(_component_EntryBranch, {
|
|
190
|
+
entries: node.children ?? [],
|
|
191
|
+
label: node.entry.label,
|
|
192
|
+
group: "",
|
|
193
|
+
"parent-key": __props.parentKey
|
|
194
|
+
}, {
|
|
195
|
+
entry: withCtx((scope) => [
|
|
196
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
197
|
+
]),
|
|
198
|
+
icon: withCtx((scope) => [
|
|
199
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
200
|
+
]),
|
|
201
|
+
_: 3
|
|
202
|
+
/* FORWARDED */
|
|
203
|
+
}, 8, ["entries", "label", "parent-key"])
|
|
204
|
+
]),
|
|
205
|
+
_: 2
|
|
206
|
+
/* DYNAMIC */
|
|
207
|
+
}, 1032, ["title", "data-rail-group", "aria-label"])) : node.entry.kind === "submenu" ? (openBlock(), createBlock(unref(ElSubMenu), {
|
|
208
|
+
key: 2,
|
|
209
|
+
index: unref(entryIndex)(node.entry.key),
|
|
210
|
+
disabled: node.entry.disabled,
|
|
211
|
+
class: normalizeClass({ "is-active": current(node) }),
|
|
212
|
+
"expand-open-icon": unref(presentation).navigation && (unref(presentation).persistent() || unref(presentation).horizontal() && __props.parentKey === void 0) ? void 0 : unref(ArrowRight),
|
|
213
|
+
"expand-close-icon": unref(presentation).navigation && (unref(presentation).persistent() || unref(presentation).horizontal() && __props.parentKey === void 0) ? void 0 : unref(ArrowRight),
|
|
214
|
+
teleported: true,
|
|
215
|
+
"append-to": unref(overlayTarget),
|
|
216
|
+
"popper-class": unref(presentation).navigation ? unref(presentation).persistent() ? void 0 : "element-navigation-popup" : "element-command-popup",
|
|
217
|
+
"popper-style": {
|
|
218
|
+
direction: unref(presentation).direction(),
|
|
219
|
+
maxBlockSize: unref(dropdownHeight)
|
|
220
|
+
},
|
|
221
|
+
"aria-label": node.entry.label,
|
|
222
|
+
"aria-disabled": node.entry.disabled || void 0,
|
|
223
|
+
"aria-controls": node.expanded ? `${unref(id)}-sub-${index}` : void 0,
|
|
224
|
+
"data-entry-key": node.entry.key,
|
|
225
|
+
tabindex: "-1",
|
|
226
|
+
onClick: ($event) => clickSubmenu($event, node)
|
|
227
|
+
}, {
|
|
228
|
+
title: withCtx(() => [
|
|
229
|
+
checkColumn.value ? (openBlock(), createElementBlock("span", _hoisted_3)) : createCommentVNode("v-if", true),
|
|
230
|
+
createVNode(EntryContent, {
|
|
231
|
+
entry: node.entry,
|
|
232
|
+
"icon-column": unref(iconColumn),
|
|
233
|
+
rail: unref(presentation).rail() && __props.parentKey === void 0
|
|
234
|
+
}, {
|
|
235
|
+
entry: withCtx((scope) => [
|
|
236
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
237
|
+
]),
|
|
238
|
+
icon: withCtx((scope) => [
|
|
239
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
240
|
+
]),
|
|
241
|
+
_: 3
|
|
242
|
+
/* FORWARDED */
|
|
243
|
+
}, 8, ["entry", "icon-column", "rail"])
|
|
244
|
+
]),
|
|
245
|
+
default: withCtx(() => [
|
|
246
|
+
createVNode(_component_EntryBranch, {
|
|
247
|
+
entries: node.children ?? [],
|
|
248
|
+
status: node.status,
|
|
249
|
+
label: node.entry.label,
|
|
250
|
+
"parent-key": node.entry.key,
|
|
251
|
+
"surface-id": `${unref(id)}-sub-${index}`
|
|
252
|
+
}, {
|
|
253
|
+
entry: withCtx((scope) => [
|
|
254
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
255
|
+
]),
|
|
256
|
+
icon: withCtx((scope) => [
|
|
257
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
258
|
+
]),
|
|
259
|
+
_: 3
|
|
260
|
+
/* FORWARDED */
|
|
261
|
+
}, 8, ["entries", "status", "label", "parent-key", "surface-id"])
|
|
262
|
+
]),
|
|
263
|
+
_: 2
|
|
264
|
+
/* DYNAMIC */
|
|
265
|
+
}, 1032, ["index", "disabled", "class", "expand-open-icon", "expand-close-icon", "append-to", "popper-class", "popper-style", "aria-label", "aria-disabled", "aria-controls", "data-entry-key", "onClick"])) : (openBlock(), createBlock(unref(ElMenuItem), mergeProps({
|
|
266
|
+
key: 3,
|
|
267
|
+
ref_for: true
|
|
268
|
+
}, {
|
|
269
|
+
onClickCapture: (event) => forwardLink(event, node)
|
|
270
|
+
}, {
|
|
271
|
+
index: unref(entryIndex)(node.entry.key),
|
|
272
|
+
disabled: node.entry.disabled,
|
|
273
|
+
role: node.selectionMode === "multiple" ? "menuitemcheckbox" : node.selectionMode === "single" ? "menuitemradio" : "menuitem",
|
|
274
|
+
"aria-label": node.entry.label,
|
|
275
|
+
"aria-disabled": node.entry.disabled || void 0,
|
|
276
|
+
"aria-checked": node.selectionMode ? Boolean(node.selected) : void 0,
|
|
277
|
+
"aria-current": node.current ? "page" : void 0,
|
|
278
|
+
"data-entry-key": node.entry.key,
|
|
279
|
+
"aria-describedby": node.entry.description ? `${unref(id)}-description-${index}` : void 0
|
|
280
|
+
}), {
|
|
281
|
+
default: withCtx(() => [
|
|
282
|
+
createCommentVNode(" The navigation surface owns hover/focus hints, including Escape and\n overlay containment. A native title slot would add a second tooltip. "),
|
|
283
|
+
checkColumn.value ? (openBlock(), createElementBlock(
|
|
284
|
+
"span",
|
|
285
|
+
_hoisted_4,
|
|
286
|
+
toDisplayString(node.selected ? node.selectionMode === "single" ? "●" : "✓" : ""),
|
|
287
|
+
1
|
|
288
|
+
/* TEXT */
|
|
289
|
+
)) : createCommentVNode("v-if", true),
|
|
290
|
+
createVNode(EntryContent, {
|
|
291
|
+
entry: node.entry,
|
|
292
|
+
"icon-column": unref(iconColumn),
|
|
293
|
+
rail: unref(presentation).rail() && __props.parentKey === void 0,
|
|
294
|
+
"description-id": `${unref(id)}-description-${index}`,
|
|
295
|
+
href: unref(presentation).navigation && !node.entry.disabled ? node.entry.href : void 0,
|
|
296
|
+
onNavigate: ($event) => unref(presentation).link(node.entry.key, $event)
|
|
297
|
+
}, {
|
|
298
|
+
entry: withCtx((scope) => [
|
|
299
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
300
|
+
]),
|
|
301
|
+
icon: withCtx((scope) => [
|
|
302
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
303
|
+
]),
|
|
304
|
+
_: 3
|
|
305
|
+
/* FORWARDED */
|
|
306
|
+
}, 8, ["entry", "icon-column", "rail", "description-id", "href", "onNavigate"])
|
|
307
|
+
]),
|
|
308
|
+
_: 2
|
|
309
|
+
/* DYNAMIC */
|
|
310
|
+
}, 1040, ["index", "disabled", "role", "aria-label", "aria-disabled", "aria-checked", "aria-current", "data-entry-key", "aria-describedby"]))
|
|
311
|
+
],
|
|
312
|
+
64
|
|
313
|
+
/* STABLE_FRAGMENT */
|
|
314
|
+
);
|
|
315
|
+
}),
|
|
316
|
+
128
|
|
317
|
+
/* KEYED_FRAGMENT */
|
|
318
|
+
)),
|
|
319
|
+
message.value ? (openBlock(), createElementBlock("li", _hoisted_5, [
|
|
320
|
+
createCommentVNode(" ElMenu has no async-state slot. Reuse ElSelect's feedback treatment. "),
|
|
321
|
+
createElementVNode(
|
|
322
|
+
"p",
|
|
323
|
+
_hoisted_6,
|
|
324
|
+
toDisplayString(message.value),
|
|
325
|
+
1
|
|
326
|
+
/* TEXT */
|
|
327
|
+
),
|
|
328
|
+
__props.status?.failed ? (openBlock(), createBlock(unref(ElButton), {
|
|
329
|
+
key: 0,
|
|
330
|
+
"native-type": "button",
|
|
331
|
+
type: "primary",
|
|
332
|
+
text: "",
|
|
333
|
+
role: "menuitem",
|
|
334
|
+
tabindex: "-1",
|
|
335
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(presentation).retry(__props.parentKey))
|
|
336
|
+
}, {
|
|
337
|
+
default: withCtx(() => [
|
|
338
|
+
createTextVNode(
|
|
339
|
+
toDisplayString(__props.status.retryLabel),
|
|
340
|
+
1
|
|
341
|
+
/* TEXT */
|
|
342
|
+
)
|
|
343
|
+
]),
|
|
344
|
+
_: 1
|
|
345
|
+
/* STABLE */
|
|
346
|
+
})) : createCommentVNode("v-if", true)
|
|
347
|
+
])) : createCommentVNode("v-if", true)
|
|
348
|
+
],
|
|
349
|
+
64
|
|
350
|
+
/* STABLE_FRAGMENT */
|
|
351
|
+
);
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
export {
|
|
356
|
+
_sfc_main as default
|
|
357
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./EntryContent.css";
|
|
2
|
+
import _sfc_main from "./EntryContent2.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const EntryContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7850a394"]]);
|
|
6
|
+
export {
|
|
7
|
+
EntryContent as default
|
|
8
|
+
};
|