@uninterface/backend-nuxt-ui 0.0.0-stage → 4.12.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/REKA-ARROW-LICENSE +21 -0
- package/capabilities.json +168 -0
- package/docs/README.md +47 -0
- package/docs/collections.md +201 -0
- package/docs/contract-adaptations.md +103 -0
- package/docs/customization.md +262 -0
- package/docs/examples/NativeReference.vue +132 -0
- package/docs/exports.md +39 -0
- package/docs/floating-panels.md +53 -0
- package/docs/font-licenses/noto-sans-sc.txt +93 -0
- package/docs/font-licenses/noto-sans-tc.txt +93 -0
- package/docs/font-licenses/public-sans.txt +93 -0
- package/docs/icon-licenses/Lucide.txt +39 -0
- package/docs/icon-licenses/SOURCES.md +47 -0
- package/docs/modals.md +43 -0
- package/docs/native-html.md +25 -0
- package/docs/navigation.md +21 -0
- package/docs/package-build.md +20 -0
- package/docs/presentation.md +241 -0
- package/docs/progress.md +9 -0
- package/docs/reviewed-components.md +93 -0
- package/docs/segmented-selection.md +22 -0
- package/docs/selection-feedback-panels.md +85 -0
- package/docs/setup.md +157 -0
- package/docs/strategies.md +84 -0
- package/docs/table-columns.md +33 -0
- package/docs/testing.md +29 -0
- package/docs/typography.md +93 -0
- package/esm/_virtual/_plugin-vue_export-helper.js +10 -0
- package/esm/capabilities.json.js +11 -0
- package/esm/package.json.js +14 -0
- package/esm/src/AppProviders.vue.js +4 -0
- package/esm/src/AppProviders2.vue.js +49 -0
- package/esm/src/CheckableFeedback.vue.js +4 -0
- package/esm/src/CheckableFeedback2.vue.js +33 -0
- package/esm/src/ChoiceGroup.vue.js +4 -0
- package/esm/src/ChoiceGroup2.vue.js +218 -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 +90 -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/DrawerSurface.vue.js +4 -0
- package/esm/src/DrawerSurface2.vue.js +344 -0
- package/esm/src/EntryBranch.vue.js +4 -0
- package/esm/src/EntryBranch2.vue.js +321 -0
- package/esm/src/EntryCopy.vue.js +4 -0
- package/esm/src/EntryCopy2.vue.js +125 -0
- package/esm/src/EntrySurface.vue.js +4 -0
- package/esm/src/EntrySurface2.vue.js +114 -0
- package/esm/src/FeedbackItem.vue.js +4 -0
- package/esm/src/FeedbackItem2.vue.js +341 -0
- package/esm/src/FeedbackViewport.vue.js +4 -0
- package/esm/src/FeedbackViewport2.vue.js +42 -0
- package/esm/src/FieldContent.vue.js +4 -0
- package/esm/src/FieldContent2.vue.js +30 -0
- package/esm/src/FieldFailureTooltip.vue.js +4 -0
- package/esm/src/FieldFailureTooltip2.vue.js +82 -0
- package/esm/src/FileTypeIcon.vue.js +4 -0
- package/esm/src/FileTypeIcon2.vue.js +195 -0
- package/esm/src/FooterActions.vue.js +16 -0
- package/esm/src/NavigationCopy.vue.js +4 -0
- package/esm/src/NavigationCopy2.vue.js +80 -0
- package/esm/src/NavigationVertical.vue.js +4 -0
- package/esm/src/NavigationVertical2.vue.js +382 -0
- package/esm/src/NavigationViewport.vue.js +4 -0
- package/esm/src/NavigationViewport2.vue.js +50 -0
- package/esm/src/OverlaySurface.vue.js +4 -0
- package/esm/src/OverlaySurface2.vue.js +194 -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 +36 -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 +61 -0
- package/esm/src/TemporalIcon.vue.js +4 -0
- package/esm/src/TemporalIcon2.vue.js +81 -0
- package/esm/src/TemporalInput.vue.js +4 -0
- package/esm/src/TemporalInput2.vue.js +255 -0
- package/esm/src/TemporalMode.vue.js +4 -0
- package/esm/src/TemporalMode2.vue.js +94 -0
- package/esm/src/TemporalNativeEditor.vue.js +4 -0
- package/esm/src/TemporalNativeEditor2.vue.js +177 -0
- package/esm/src/TemporalNativeRange.vue.js +4 -0
- package/esm/src/TemporalNativeRange2.vue.js +335 -0
- package/esm/src/TemporalPicker.vue.js +4 -0
- package/esm/src/TemporalPicker2.vue.js +153 -0
- package/esm/src/TemporalRangeIcon.vue.js +4 -0
- package/esm/src/TemporalRangeIcon2.vue.js +74 -0
- package/esm/src/TemporalSegments.vue.js +4 -0
- package/esm/src/TemporalSegments2.vue.js +22 -0
- package/esm/src/TemporalTextEditor.vue.js +4 -0
- package/esm/src/TemporalTextEditor2.vue.js +107 -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 +27 -0
- package/esm/src/UiBreadcrumbs.vue.js +4 -0
- package/esm/src/UiBreadcrumbs2.vue.js +159 -0
- package/esm/src/UiButton.vue.js +4 -0
- package/esm/src/UiButton2.vue.js +128 -0
- package/esm/src/UiCard.vue.js +4 -0
- package/esm/src/UiCard2.vue.js +111 -0
- package/esm/src/UiCheckbox.vue.js +4 -0
- package/esm/src/UiCheckbox2.vue.js +71 -0
- package/esm/src/UiCheckboxGroup.vue.js +4 -0
- package/esm/src/UiCheckboxGroup2.vue.js +43 -0
- package/esm/src/UiCollapsible.vue.js +4 -0
- package/esm/src/UiCollapsible2.vue.js +139 -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 +97 -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 +54 -0
- package/esm/src/UiField.vue.js +4 -0
- package/esm/src/UiField2.vue.js +248 -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 +149 -0
- package/esm/src/UiFilePreview.vue.js +4 -0
- package/esm/src/UiFilePreview2.vue.js +82 -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 +37 -0
- package/esm/src/UiIcon.css +8 -0
- package/esm/src/UiIcon.vue.js +8 -0
- package/esm/src/UiIcon2.vue.js +35 -0
- package/esm/src/UiImagePreview.vue.js +4 -0
- package/esm/src/UiImagePreview2.vue.js +72 -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 +37 -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 +49 -0
- package/esm/src/UiLoadingRegion.vue.js +4 -0
- package/esm/src/UiLoadingRegion2.vue.js +70 -0
- package/esm/src/UiMenu.vue.js +4 -0
- package/esm/src/UiMenu2.vue.js +107 -0
- package/esm/src/UiModal.vue.js +4 -0
- package/esm/src/UiModal2.vue.js +200 -0
- package/esm/src/UiMultiSelect.vue.js +4 -0
- package/esm/src/UiMultiSelect2.vue.js +221 -0
- package/esm/src/UiNavMenu.vue.js +4 -0
- package/esm/src/UiNavMenu2.vue.js +400 -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 +109 -0
- package/esm/src/UiPaginator.vue.js +4 -0
- package/esm/src/UiPaginator2.vue.js +254 -0
- package/esm/src/UiPaginatorJumper.vue.js +4 -0
- package/esm/src/UiPaginatorJumper2.vue.js +97 -0
- package/esm/src/UiPaginatorSizeSelect.vue.js +4 -0
- package/esm/src/UiPaginatorSizeSelect2.vue.js +51 -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 +64 -0
- package/esm/src/UiProgressBar.vue.js +4 -0
- package/esm/src/UiProgressBar2.vue.js +46 -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 +10 -0
- package/esm/src/UiSegmentedSelect.vue.js +8 -0
- package/esm/src/UiSegmentedSelect2.vue.js +192 -0
- package/esm/src/UiSelect.vue.js +4 -0
- package/esm/src/UiSelect2.vue.js +188 -0
- package/esm/src/UiSuggestions.vue.js +4 -0
- package/esm/src/UiSuggestions2.vue.js +174 -0
- package/esm/src/UiSwitch.vue.js +4 -0
- package/esm/src/UiSwitch2.vue.js +73 -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 +578 -0
- package/esm/src/UiTabs.vue.js +4 -0
- package/esm/src/UiTabs2.vue.js +63 -0
- package/esm/src/UiTextInput.vue.js +4 -0
- package/esm/src/UiTextInput2.vue.js +130 -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 +70 -0
- package/esm/src/UiUploadProgress.vue.js +4 -0
- package/esm/src/UiUploadProgress2.vue.js +138 -0
- package/esm/src/UiUploadRegion.vue.js +4 -0
- package/esm/src/UiUploadRegion2.vue.js +255 -0
- package/esm/src/controlSize.js +49 -0
- package/esm/src/dateFormat.js +35 -0
- package/esm/src/fieldPresentation.js +39 -0
- package/esm/src/fieldTheme.js +27 -0
- package/esm/src/focus.js +6 -0
- package/esm/src/icons/add.vue.js +32 -0
- package/esm/src/icons/arrow-down.vue.js +32 -0
- package/esm/src/icons/arrow-left.vue.js +32 -0
- package/esm/src/icons/arrow-right.vue.js +32 -0
- package/esm/src/icons/arrow-up.vue.js +32 -0
- package/esm/src/icons/attachment.vue.js +32 -0
- package/esm/src/icons/bookmark.vue.js +32 -0
- package/esm/src/icons/calendar.vue.js +41 -0
- package/esm/src/icons/cancel.vue.js +32 -0
- package/esm/src/icons/clear.vue.js +32 -0
- package/esm/src/icons/close.vue.js +32 -0
- package/esm/src/icons/collapse.vue.js +32 -0
- package/esm/src/icons/confirm.vue.js +32 -0
- package/esm/src/icons/copy.vue.js +41 -0
- package/esm/src/icons/delete.vue.js +32 -0
- package/esm/src/icons/download.vue.js +34 -0
- package/esm/src/icons/edit.vue.js +32 -0
- package/esm/src/icons/email.vue.js +40 -0
- package/esm/src/icons/error.vue.js +38 -0
- package/esm/src/icons/expand.vue.js +32 -0
- package/esm/src/icons/external-link.vue.js +32 -0
- package/esm/src/icons/file.vue.js +34 -0
- package/esm/src/icons/filter.vue.js +32 -0
- package/esm/src/icons/first.vue.js +32 -0
- package/esm/src/icons/globe.vue.js +38 -0
- package/esm/src/icons/help.vue.js +38 -0
- package/esm/src/icons/hide.vue.js +34 -0
- package/esm/src/icons/home.vue.js +34 -0
- package/esm/src/icons/image.vue.js +46 -0
- package/esm/src/icons/index.js +116 -0
- package/esm/src/icons/info.vue.js +38 -0
- package/esm/src/icons/last.vue.js +32 -0
- package/esm/src/icons/link.vue.js +34 -0
- package/esm/src/icons/location.vue.js +38 -0
- package/esm/src/icons/menu.vue.js +32 -0
- package/esm/src/icons/more-vertical.vue.js +47 -0
- package/esm/src/icons/more.vue.js +47 -0
- package/esm/src/icons/next.vue.js +32 -0
- package/esm/src/icons/previous.vue.js +32 -0
- package/esm/src/icons/refresh.vue.js +35 -0
- package/esm/src/icons/remove.vue.js +32 -0
- package/esm/src/icons/reset.vue.js +34 -0
- package/esm/src/icons/retry.vue.js +34 -0
- package/esm/src/icons/save.vue.js +34 -0
- package/esm/src/icons/search.vue.js +38 -0
- package/esm/src/icons/settings.vue.js +38 -0
- package/esm/src/icons/show.vue.js +38 -0
- package/esm/src/icons/sort-ascending.vue.js +32 -0
- package/esm/src/icons/sort-descending.vue.js +32 -0
- package/esm/src/icons/sort.vue.js +32 -0
- package/esm/src/icons/success.vue.js +38 -0
- package/esm/src/icons/time.vue.js +38 -0
- package/esm/src/icons/upload.vue.js +32 -0
- package/esm/src/icons/warning.vue.js +32 -0
- package/esm/src/index.js +16 -0
- package/esm/src/integration.js +43 -0
- package/esm/src/layout.js +13 -0
- package/esm/src/menuTheme.js +15 -0
- package/esm/src/nativeDirection.js +38 -0
- package/esm/src/selectEscape.js +14 -0
- package/esm/src/temporalNative.js +30 -0
- package/esm/src/temporalSegments.js +80 -0
- package/esm/src/zOrder.js +17 -0
- package/esm/testing/browser-control-parts.js +25 -0
- package/esm/testing/dom.js +51 -0
- package/esm/testing/index.js +122 -0
- package/esm/testing/presentation-mapping.js +52 -0
- package/esm/testing/presentation-parts.js +54 -0
- package/font-bundled.css +6 -0
- package/font-family.css +23 -0
- package/font.css +6 -0
- package/hooks/nativeIcons.mjs +73 -0
- package/hooks/vite.d.mts +6 -0
- package/hooks/vite.mjs +115 -0
- package/native-content.css +171 -0
- package/package.json +85 -4
- package/style.css +3039 -0
- package/types/src/AppProviders.vue.d.ts +18 -0
- package/types/src/CheckableFeedback.vue.d.ts +11 -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 +28 -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/DrawerSurface.vue.d.ts +37 -0
- package/types/src/EntryBranch.vue.d.ts +40 -0
- package/types/src/EntryCopy.vue.d.ts +25 -0
- package/types/src/EntrySurface.vue.d.ts +29 -0
- package/types/src/FeedbackItem.vue.d.ts +20 -0
- package/types/src/FeedbackViewport.vue.d.ts +19 -0
- package/types/src/FieldContent.vue.d.ts +16 -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/NavigationCopy.vue.d.ts +29 -0
- package/types/src/NavigationVertical.vue.d.ts +42 -0
- package/types/src/NavigationViewport.vue.d.ts +6 -0
- package/types/src/OverlaySurface.vue.d.ts +37 -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/TemporalIcon.vue.d.ts +6 -0
- package/types/src/TemporalInput.vue.d.ts +9 -0
- package/types/src/TemporalMode.vue.d.ts +20 -0
- package/types/src/TemporalNativeEditor.vue.d.ts +14 -0
- package/types/src/TemporalNativeRange.vue.d.ts +16 -0
- package/types/src/TemporalPicker.vue.d.ts +10 -0
- package/types/src/TemporalRangeIcon.vue.d.ts +7 -0
- package/types/src/TemporalSegments.vue.d.ts +6 -0
- package/types/src/TemporalTextEditor.vue.d.ts +15 -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 +19 -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 +34 -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 +66 -0
- package/types/src/UiTabs.vue.d.ts +29 -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/controlSize.d.ts +20 -0
- package/types/src/dateFormat.d.ts +5 -0
- package/types/src/fieldPresentation.d.ts +31 -0
- package/types/src/fieldTheme.d.ts +5 -0
- package/types/src/focus.d.ts +3 -0
- package/types/src/icons/add.vue.d.ts +3 -0
- package/types/src/icons/arrow-down.vue.d.ts +3 -0
- package/types/src/icons/arrow-left.vue.d.ts +3 -0
- package/types/src/icons/arrow-right.vue.d.ts +3 -0
- package/types/src/icons/arrow-up.vue.d.ts +3 -0
- package/types/src/icons/attachment.vue.d.ts +3 -0
- package/types/src/icons/bookmark.vue.d.ts +3 -0
- package/types/src/icons/calendar.vue.d.ts +3 -0
- package/types/src/icons/cancel.vue.d.ts +3 -0
- package/types/src/icons/clear.vue.d.ts +3 -0
- package/types/src/icons/close.vue.d.ts +3 -0
- package/types/src/icons/collapse.vue.d.ts +3 -0
- package/types/src/icons/confirm.vue.d.ts +3 -0
- package/types/src/icons/copy.vue.d.ts +3 -0
- package/types/src/icons/delete.vue.d.ts +3 -0
- package/types/src/icons/download.vue.d.ts +3 -0
- package/types/src/icons/edit.vue.d.ts +3 -0
- package/types/src/icons/email.vue.d.ts +3 -0
- package/types/src/icons/error.vue.d.ts +3 -0
- package/types/src/icons/expand.vue.d.ts +3 -0
- package/types/src/icons/external-link.vue.d.ts +3 -0
- package/types/src/icons/file.vue.d.ts +3 -0
- package/types/src/icons/filter.vue.d.ts +3 -0
- package/types/src/icons/first.vue.d.ts +3 -0
- package/types/src/icons/globe.vue.d.ts +3 -0
- package/types/src/icons/help.vue.d.ts +3 -0
- package/types/src/icons/hide.vue.d.ts +3 -0
- package/types/src/icons/home.vue.d.ts +3 -0
- package/types/src/icons/image.vue.d.ts +3 -0
- package/types/src/icons/index.d.ts +181 -0
- package/types/src/icons/info.vue.d.ts +3 -0
- package/types/src/icons/last.vue.d.ts +3 -0
- package/types/src/icons/link.vue.d.ts +3 -0
- package/types/src/icons/location.vue.d.ts +3 -0
- package/types/src/icons/menu.vue.d.ts +3 -0
- package/types/src/icons/more-vertical.vue.d.ts +3 -0
- package/types/src/icons/more.vue.d.ts +3 -0
- package/types/src/icons/next.vue.d.ts +3 -0
- package/types/src/icons/previous.vue.d.ts +3 -0
- package/types/src/icons/refresh.vue.d.ts +3 -0
- package/types/src/icons/remove.vue.d.ts +3 -0
- package/types/src/icons/reset.vue.d.ts +3 -0
- package/types/src/icons/retry.vue.d.ts +3 -0
- package/types/src/icons/save.vue.d.ts +3 -0
- package/types/src/icons/search.vue.d.ts +3 -0
- package/types/src/icons/settings.vue.d.ts +3 -0
- package/types/src/icons/show.vue.d.ts +3 -0
- package/types/src/icons/sort-ascending.vue.d.ts +3 -0
- package/types/src/icons/sort-descending.vue.d.ts +3 -0
- package/types/src/icons/sort.vue.d.ts +3 -0
- package/types/src/icons/success.vue.d.ts +3 -0
- package/types/src/icons/time.vue.d.ts +3 -0
- package/types/src/icons/upload.vue.d.ts +3 -0
- package/types/src/icons/warning.vue.d.ts +3 -0
- package/types/src/index.d.ts +2 -0
- package/types/src/integration.d.ts +219 -0
- package/types/src/layout.d.ts +2 -0
- package/types/src/menuTheme.d.ts +1 -0
- package/types/src/nativeDirection.d.ts +2 -0
- package/types/src/selectEscape.d.ts +11 -0
- package/types/src/temporalNative.d.ts +3 -0
- package/types/src/temporalSegments.d.ts +15 -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 +30 -0
- package/types/testing/presentation-parts.d.mts +20 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { defineComponent, useId, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, Fragment, renderList, createBlock, renderSlot, createCommentVNode, createTextVNode, toDisplayString, mergeProps, resolveDynamicComponent, withModifiers } from "vue";
|
|
2
|
+
import { useUiOverlayTarget, useUiMenuIconColumn } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { DropdownMenuGroup, DropdownMenuSeparator, DropdownMenuLabel, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuPortal, DropdownMenuCheckboxItem, DropdownMenuItem } from "reka-ui";
|
|
4
|
+
import UButton from "@nuxt/ui/components/Button.vue";
|
|
5
|
+
import { useMenuTheme } from "./menuTheme.js";
|
|
6
|
+
import _sfc_main$1 from "./EntryCopy2.vue.js";
|
|
7
|
+
import _sfc_main$2 from "./EntrySurface2.vue.js";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "EntryBranch",
|
|
10
|
+
props: {
|
|
11
|
+
entries: {},
|
|
12
|
+
status: {},
|
|
13
|
+
label: {},
|
|
14
|
+
parentKey: {},
|
|
15
|
+
group: { type: Boolean },
|
|
16
|
+
navigation: { type: Boolean },
|
|
17
|
+
direction: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["activate", "expand", "retry"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const overlayTarget = useUiOverlayTarget();
|
|
22
|
+
const props = __props;
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
const iconColumn = useUiMenuIconColumn(() => props.entries, {
|
|
25
|
+
group: () => Boolean(props.group)
|
|
26
|
+
});
|
|
27
|
+
const ui = useMenuTheme();
|
|
28
|
+
const id = useId();
|
|
29
|
+
function activate(event, node) {
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
if (!node.request) emit("activate", node.entry.key);
|
|
32
|
+
}
|
|
33
|
+
function triggerKeyboard(event, node) {
|
|
34
|
+
if (event.key !== "Escape" || !node.expanded) return;
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
event.stopImmediatePropagation();
|
|
37
|
+
emit("expand", node.entry.key, false);
|
|
38
|
+
}
|
|
39
|
+
function linkClick(event, node) {
|
|
40
|
+
if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey || event.button !== 0)
|
|
41
|
+
event.stopPropagation();
|
|
42
|
+
if ("disabled" in node.entry && node.entry.disabled) {
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (!event.ctrlKey && !event.metaKey && !event.shiftKey && !event.altKey && event.button === 0)
|
|
47
|
+
node.request?.(event);
|
|
48
|
+
}
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
const _component_EntryBranch = resolveComponent("EntryBranch", true);
|
|
51
|
+
return openBlock(), createElementBlock(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
"data-slot": "viewport",
|
|
55
|
+
class: normalizeClass(unref(ui).viewport())
|
|
56
|
+
},
|
|
57
|
+
[
|
|
58
|
+
createVNode(unref(DropdownMenuGroup), {
|
|
59
|
+
"data-slot": "group",
|
|
60
|
+
class: normalizeClass(unref(ui).group())
|
|
61
|
+
}, {
|
|
62
|
+
default: withCtx(() => [
|
|
63
|
+
(openBlock(true), createElementBlock(
|
|
64
|
+
Fragment,
|
|
65
|
+
null,
|
|
66
|
+
renderList(__props.entries, (node, index) => {
|
|
67
|
+
return openBlock(), createElementBlock(
|
|
68
|
+
Fragment,
|
|
69
|
+
{
|
|
70
|
+
key: node.entry.key
|
|
71
|
+
},
|
|
72
|
+
[
|
|
73
|
+
node.entry.kind === "separator" ? (openBlock(), createBlock(unref(DropdownMenuSeparator), {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: normalizeClass(unref(ui).separator())
|
|
76
|
+
}, null, 8, ["class"])) : node.entry.kind === "group" ? (openBlock(), createElementBlock(
|
|
77
|
+
Fragment,
|
|
78
|
+
{ key: 1 },
|
|
79
|
+
[
|
|
80
|
+
createVNode(unref(DropdownMenuLabel), {
|
|
81
|
+
id: `${unref(id)}-${index}`,
|
|
82
|
+
class: normalizeClass(unref(ui).label())
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [
|
|
85
|
+
node.entry.icon || unref(iconColumn) ? (openBlock(), createElementBlock(
|
|
86
|
+
"span",
|
|
87
|
+
{
|
|
88
|
+
key: 0,
|
|
89
|
+
class: normalizeClass(["nuxt-entry-icon", unref(ui).itemLeadingIcon()]),
|
|
90
|
+
"aria-hidden": "true"
|
|
91
|
+
},
|
|
92
|
+
[
|
|
93
|
+
node.entry.icon ? renderSlot(_ctx.$slots, "icon", {
|
|
94
|
+
entry: node.entry,
|
|
95
|
+
icon: node.entry.icon
|
|
96
|
+
}, void 0, void 0, 0) : createCommentVNode("v-if", true)
|
|
97
|
+
],
|
|
98
|
+
2
|
|
99
|
+
/* CLASS */
|
|
100
|
+
)) : createCommentVNode("v-if", true),
|
|
101
|
+
renderSlot(_ctx.$slots, "entry", {
|
|
102
|
+
entry: node.entry
|
|
103
|
+
}, () => [
|
|
104
|
+
createTextVNode(
|
|
105
|
+
toDisplayString(node.entry.label),
|
|
106
|
+
1
|
|
107
|
+
/* TEXT */
|
|
108
|
+
)
|
|
109
|
+
])
|
|
110
|
+
]),
|
|
111
|
+
_: 2
|
|
112
|
+
/* DYNAMIC */
|
|
113
|
+
}, 1032, ["id", "class"]),
|
|
114
|
+
createVNode(_component_EntryBranch, {
|
|
115
|
+
entries: node.children ?? [],
|
|
116
|
+
label: node.entry.label,
|
|
117
|
+
"aria-labelledby": `${unref(id)}-${index}`,
|
|
118
|
+
"parent-key": __props.parentKey,
|
|
119
|
+
group: "",
|
|
120
|
+
navigation: __props.navigation,
|
|
121
|
+
direction: __props.direction,
|
|
122
|
+
onActivate: _cache[0] || (_cache[0] = ($event) => emit("activate", $event)),
|
|
123
|
+
onExpand: _cache[1] || (_cache[1] = (key, open) => emit("expand", key, open)),
|
|
124
|
+
onRetry: _cache[2] || (_cache[2] = ($event) => emit("retry", $event))
|
|
125
|
+
}, {
|
|
126
|
+
entry: withCtx((scope) => [
|
|
127
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
128
|
+
]),
|
|
129
|
+
icon: withCtx((scope) => [
|
|
130
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
131
|
+
]),
|
|
132
|
+
_: 3
|
|
133
|
+
/* FORWARDED */
|
|
134
|
+
}, 8, ["entries", "label", "aria-labelledby", "parent-key", "navigation", "direction"])
|
|
135
|
+
],
|
|
136
|
+
64
|
|
137
|
+
/* STABLE_FRAGMENT */
|
|
138
|
+
)) : node.entry.kind === "submenu" ? (openBlock(), createBlock(unref(DropdownMenuSub), {
|
|
139
|
+
key: 2,
|
|
140
|
+
open: Boolean(node.expanded),
|
|
141
|
+
"onUpdate:open": ($event) => emit("expand", node.entry.key, $event)
|
|
142
|
+
}, {
|
|
143
|
+
default: withCtx(() => [
|
|
144
|
+
createVNode(unref(DropdownMenuSubTrigger), {
|
|
145
|
+
as: "button",
|
|
146
|
+
type: "button",
|
|
147
|
+
disabled: node.entry.disabled,
|
|
148
|
+
"text-value": node.entry.label,
|
|
149
|
+
"aria-label": node.entry.label,
|
|
150
|
+
"aria-describedby": node.entry.description ? `${unref(id)}-description-${index}` : void 0,
|
|
151
|
+
"data-entry-key": node.entry.key,
|
|
152
|
+
class: normalizeClass(
|
|
153
|
+
unref(ui).item({ active: Boolean(node.current || node.containsCurrent) })
|
|
154
|
+
),
|
|
155
|
+
onKeydownCapture: ($event) => triggerKeyboard($event, node)
|
|
156
|
+
}, {
|
|
157
|
+
default: withCtx(() => [
|
|
158
|
+
createVNode(_sfc_main$1, {
|
|
159
|
+
"icon-column": unref(iconColumn),
|
|
160
|
+
node,
|
|
161
|
+
"description-id": `${unref(id)}-description-${index}`,
|
|
162
|
+
direction: __props.direction
|
|
163
|
+
}, {
|
|
164
|
+
entry: withCtx((scope) => [
|
|
165
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
166
|
+
]),
|
|
167
|
+
icon: withCtx((scope) => [
|
|
168
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
169
|
+
]),
|
|
170
|
+
_: 3
|
|
171
|
+
/* FORWARDED */
|
|
172
|
+
}, 8, ["icon-column", "node", "description-id", "direction"])
|
|
173
|
+
]),
|
|
174
|
+
_: 2
|
|
175
|
+
/* DYNAMIC */
|
|
176
|
+
}, 1032, ["disabled", "text-value", "aria-label", "aria-describedby", "data-entry-key", "class", "onKeydownCapture"]),
|
|
177
|
+
createVNode(unref(DropdownMenuPortal), { to: unref(overlayTarget) }, {
|
|
178
|
+
default: withCtx(() => [
|
|
179
|
+
createVNode(_sfc_main$2, {
|
|
180
|
+
sub: "",
|
|
181
|
+
label: node.entry.label,
|
|
182
|
+
"parent-key": node.entry.key,
|
|
183
|
+
pending: node.status?.pending,
|
|
184
|
+
onClose: ($event) => emit("expand", node.entry.key, false)
|
|
185
|
+
}, {
|
|
186
|
+
default: withCtx(() => [
|
|
187
|
+
createVNode(_component_EntryBranch, {
|
|
188
|
+
entries: node.children ?? [],
|
|
189
|
+
status: node.status,
|
|
190
|
+
label: node.entry.label,
|
|
191
|
+
"parent-key": node.entry.key,
|
|
192
|
+
navigation: __props.navigation,
|
|
193
|
+
direction: __props.direction,
|
|
194
|
+
onActivate: _cache[3] || (_cache[3] = ($event) => emit("activate", $event)),
|
|
195
|
+
onExpand: _cache[4] || (_cache[4] = (key, open) => emit("expand", key, open)),
|
|
196
|
+
onRetry: _cache[5] || (_cache[5] = ($event) => emit("retry", $event))
|
|
197
|
+
}, {
|
|
198
|
+
entry: withCtx((scope) => [
|
|
199
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
200
|
+
]),
|
|
201
|
+
icon: withCtx((scope) => [
|
|
202
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
203
|
+
]),
|
|
204
|
+
_: 3
|
|
205
|
+
/* FORWARDED */
|
|
206
|
+
}, 8, ["entries", "status", "label", "parent-key", "navigation", "direction"])
|
|
207
|
+
]),
|
|
208
|
+
_: 2
|
|
209
|
+
/* DYNAMIC */
|
|
210
|
+
}, 1032, ["label", "parent-key", "pending", "onClose"])
|
|
211
|
+
]),
|
|
212
|
+
_: 2
|
|
213
|
+
/* DYNAMIC */
|
|
214
|
+
}, 1032, ["to"])
|
|
215
|
+
]),
|
|
216
|
+
_: 2
|
|
217
|
+
/* DYNAMIC */
|
|
218
|
+
}, 1032, ["open", "onUpdate:open"])) : (openBlock(), createBlock(resolveDynamicComponent(
|
|
219
|
+
node.selectionMode === "multiple" ? unref(DropdownMenuCheckboxItem) : unref(DropdownMenuItem)
|
|
220
|
+
), {
|
|
221
|
+
key: 3,
|
|
222
|
+
as: __props.navigation && node.entry.href ? "a" : "button",
|
|
223
|
+
type: __props.navigation && node.entry.href ? void 0 : "button",
|
|
224
|
+
href: __props.navigation && !node.entry.disabled ? node.entry.href : void 0,
|
|
225
|
+
disabled: node.entry.disabled,
|
|
226
|
+
"model-value": node.selectionMode === "multiple" ? Boolean(node.selected) : void 0,
|
|
227
|
+
role: node.selectionMode === "single" ? "menuitemradio" : node.selectionMode === "multiple" ? "menuitemcheckbox" : "menuitem",
|
|
228
|
+
"aria-checked": node.selectionMode ? Boolean(node.selected) : void 0,
|
|
229
|
+
"aria-current": node.current ? "page" : void 0,
|
|
230
|
+
"aria-label": node.entry.label,
|
|
231
|
+
"aria-describedby": node.entry.description ? `${unref(id)}-description-${index}` : void 0,
|
|
232
|
+
"text-value": node.entry.label,
|
|
233
|
+
"data-entry-key": node.entry.key,
|
|
234
|
+
class: normalizeClass([
|
|
235
|
+
"nuxt-entry-link",
|
|
236
|
+
unref(ui).item({ active: Boolean(node.current || node.containsCurrent) })
|
|
237
|
+
]),
|
|
238
|
+
onSelect: ($event) => activate($event, node),
|
|
239
|
+
onClickCapture: ($event) => linkClick($event, node)
|
|
240
|
+
}, {
|
|
241
|
+
default: withCtx(() => [
|
|
242
|
+
createVNode(_sfc_main$1, {
|
|
243
|
+
"icon-column": unref(iconColumn),
|
|
244
|
+
node,
|
|
245
|
+
"description-id": `${unref(id)}-description-${index}`,
|
|
246
|
+
direction: __props.direction
|
|
247
|
+
}, {
|
|
248
|
+
entry: withCtx((scope) => [
|
|
249
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
250
|
+
]),
|
|
251
|
+
icon: withCtx((scope) => [
|
|
252
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
253
|
+
]),
|
|
254
|
+
_: 3
|
|
255
|
+
/* FORWARDED */
|
|
256
|
+
}, 8, ["icon-column", "node", "description-id", "direction"])
|
|
257
|
+
]),
|
|
258
|
+
_: 2
|
|
259
|
+
/* DYNAMIC */
|
|
260
|
+
}, 1064, ["as", "type", "href", "disabled", "model-value", "role", "aria-checked", "aria-current", "aria-label", "aria-describedby", "text-value", "data-entry-key", "class", "onSelect", "onClickCapture"]))
|
|
261
|
+
],
|
|
262
|
+
64
|
|
263
|
+
/* STABLE_FRAGMENT */
|
|
264
|
+
);
|
|
265
|
+
}),
|
|
266
|
+
128
|
|
267
|
+
/* KEYED_FRAGMENT */
|
|
268
|
+
)),
|
|
269
|
+
__props.status?.message ? (openBlock(), createElementBlock(
|
|
270
|
+
"div",
|
|
271
|
+
{
|
|
272
|
+
key: 0,
|
|
273
|
+
role: "status",
|
|
274
|
+
class: normalizeClass(unref(ui).empty())
|
|
275
|
+
},
|
|
276
|
+
toDisplayString(__props.status.message),
|
|
277
|
+
3
|
|
278
|
+
/* TEXT, CLASS */
|
|
279
|
+
)) : createCommentVNode("v-if", true),
|
|
280
|
+
__props.status?.failed ? (openBlock(), createBlock(unref(DropdownMenuItem), {
|
|
281
|
+
key: 1,
|
|
282
|
+
"as-child": "",
|
|
283
|
+
"text-value": __props.status.retryLabel,
|
|
284
|
+
onSelect: _cache[6] || (_cache[6] = withModifiers(($event) => emit("retry", __props.parentKey), ["prevent"]))
|
|
285
|
+
}, {
|
|
286
|
+
default: withCtx(() => [
|
|
287
|
+
createVNode(UButton, {
|
|
288
|
+
type: "button",
|
|
289
|
+
color: "primary",
|
|
290
|
+
variant: "ghost",
|
|
291
|
+
class: "nuxt-control-focus",
|
|
292
|
+
"loading-auto": false
|
|
293
|
+
}, {
|
|
294
|
+
default: withCtx(() => [
|
|
295
|
+
createTextVNode(
|
|
296
|
+
toDisplayString(__props.status.retryLabel),
|
|
297
|
+
1
|
|
298
|
+
/* TEXT */
|
|
299
|
+
)
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
/* STABLE */
|
|
303
|
+
})
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
/* STABLE */
|
|
307
|
+
}, 8, ["text-value"])) : createCommentVNode("v-if", true)
|
|
308
|
+
]),
|
|
309
|
+
_: 3
|
|
310
|
+
/* FORWARDED */
|
|
311
|
+
}, 8, ["class"])
|
|
312
|
+
],
|
|
313
|
+
2
|
|
314
|
+
/* CLASS */
|
|
315
|
+
);
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
export {
|
|
320
|
+
_sfc_main as default
|
|
321
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, Fragment, normalizeClass, unref, renderSlot, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, createBlock, createVNode, withCtx } from "vue";
|
|
2
|
+
import UIcon from "@nuxt/ui/components/Icon.vue";
|
|
3
|
+
import UKbd from "@nuxt/ui/components/Kbd.vue";
|
|
4
|
+
import { useAppConfig } from "#imports";
|
|
5
|
+
import { useMenuTheme } from "./menuTheme.js";
|
|
6
|
+
const _hoisted_1 = ["id"];
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "EntryCopy",
|
|
9
|
+
props: {
|
|
10
|
+
node: {},
|
|
11
|
+
iconColumn: { type: Boolean },
|
|
12
|
+
direction: {},
|
|
13
|
+
descriptionId: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const ui = useMenuTheme();
|
|
17
|
+
const config = useAppConfig();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock(
|
|
20
|
+
Fragment,
|
|
21
|
+
null,
|
|
22
|
+
[
|
|
23
|
+
__props.iconColumn || "icon" in __props.node.entry && __props.node.entry.icon ? (openBlock(), createElementBlock(
|
|
24
|
+
"span",
|
|
25
|
+
{
|
|
26
|
+
key: 0,
|
|
27
|
+
class: normalizeClass(["nuxt-entry-icon", unref(ui).itemLeadingIcon()]),
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
},
|
|
30
|
+
[
|
|
31
|
+
"icon" in __props.node.entry && __props.node.entry.icon ? renderSlot(_ctx.$slots, "icon", {
|
|
32
|
+
entry: __props.node.entry,
|
|
33
|
+
icon: "icon" in __props.node.entry ? __props.node.entry.icon : void 0
|
|
34
|
+
}, void 0, void 0, 0) : createCommentVNode("v-if", true)
|
|
35
|
+
],
|
|
36
|
+
2
|
|
37
|
+
/* CLASS */
|
|
38
|
+
)) : createCommentVNode("v-if", true),
|
|
39
|
+
createElementVNode(
|
|
40
|
+
"span",
|
|
41
|
+
{
|
|
42
|
+
class: normalizeClass(unref(ui).itemWrapper())
|
|
43
|
+
},
|
|
44
|
+
[
|
|
45
|
+
createElementVNode(
|
|
46
|
+
"span",
|
|
47
|
+
{
|
|
48
|
+
class: normalizeClass(unref(ui).itemLabel())
|
|
49
|
+
},
|
|
50
|
+
[
|
|
51
|
+
renderSlot(_ctx.$slots, "entry", {
|
|
52
|
+
entry: __props.node.entry
|
|
53
|
+
}, () => [
|
|
54
|
+
createTextVNode(
|
|
55
|
+
toDisplayString("label" in __props.node.entry ? __props.node.entry.label : ""),
|
|
56
|
+
1
|
|
57
|
+
/* TEXT */
|
|
58
|
+
)
|
|
59
|
+
])
|
|
60
|
+
],
|
|
61
|
+
2
|
|
62
|
+
/* CLASS */
|
|
63
|
+
),
|
|
64
|
+
"description" in __props.node.entry && __props.node.entry.description ? (openBlock(), createElementBlock("span", {
|
|
65
|
+
key: 0,
|
|
66
|
+
id: __props.descriptionId,
|
|
67
|
+
class: normalizeClass(unref(ui).itemDescription())
|
|
68
|
+
}, toDisplayString(__props.node.entry.description), 11, _hoisted_1)) : createCommentVNode("v-if", true)
|
|
69
|
+
],
|
|
70
|
+
2
|
|
71
|
+
/* CLASS */
|
|
72
|
+
),
|
|
73
|
+
__props.node.entry.kind === "submenu" || __props.node.selectionMode && __props.node.selected || "shortcut" in __props.node.entry && __props.node.entry.shortcut ? (openBlock(), createElementBlock(
|
|
74
|
+
"span",
|
|
75
|
+
{
|
|
76
|
+
key: 1,
|
|
77
|
+
class: normalizeClass(unref(ui).itemTrailing()),
|
|
78
|
+
"aria-hidden": "true"
|
|
79
|
+
},
|
|
80
|
+
[
|
|
81
|
+
__props.node.entry.kind === "submenu" ? (openBlock(), createBlock(UIcon, {
|
|
82
|
+
key: 0,
|
|
83
|
+
name: __props.direction === "rtl" ? unref(config).ui?.icons.chevronLeft : unref(config).ui?.icons.chevronRight,
|
|
84
|
+
class: normalizeClass(unref(ui).itemTrailingIcon())
|
|
85
|
+
}, null, 8, ["name", "class"])) : __props.node.selectionMode && __props.node.selected ? (openBlock(), createBlock(UIcon, {
|
|
86
|
+
key: 1,
|
|
87
|
+
name: unref(config).ui?.icons.check,
|
|
88
|
+
class: normalizeClass(unref(ui).itemTrailingIcon())
|
|
89
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("v-if", true),
|
|
90
|
+
"shortcut" in __props.node.entry && __props.node.entry.shortcut ? (openBlock(), createElementBlock(
|
|
91
|
+
"span",
|
|
92
|
+
{
|
|
93
|
+
key: 2,
|
|
94
|
+
class: normalizeClass(unref(ui).itemTrailingKbds())
|
|
95
|
+
},
|
|
96
|
+
[
|
|
97
|
+
createVNode(UKbd, null, {
|
|
98
|
+
default: withCtx(() => [
|
|
99
|
+
createTextVNode(
|
|
100
|
+
toDisplayString(__props.node.entry.shortcut),
|
|
101
|
+
1
|
|
102
|
+
/* TEXT */
|
|
103
|
+
)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
/* STABLE */
|
|
107
|
+
})
|
|
108
|
+
],
|
|
109
|
+
2
|
|
110
|
+
/* CLASS */
|
|
111
|
+
)) : createCommentVNode("v-if", true)
|
|
112
|
+
],
|
|
113
|
+
2
|
|
114
|
+
/* CLASS */
|
|
115
|
+
)) : createCommentVNode("v-if", true)
|
|
116
|
+
],
|
|
117
|
+
64
|
|
118
|
+
/* STABLE_FRAGMENT */
|
|
119
|
+
);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
_sfc_main as default
|
|
125
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, resolveDynamicComponent, unref, withModifiers, normalizeClass, withCtx, renderSlot, nextTick } from "vue";
|
|
2
|
+
import { useUiMenuPopup, useUiZPopup, useUiMenuPoint } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { popupTarget } from "./zOrder.js";
|
|
4
|
+
import { injectNavigationMenuContext, DropdownMenuSubContent, DropdownMenuContent } from "reka-ui";
|
|
5
|
+
import { useMenuTheme } from "./menuTheme.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "EntrySurface",
|
|
8
|
+
props: {
|
|
9
|
+
sub: { type: Boolean },
|
|
10
|
+
label: {},
|
|
11
|
+
parentKey: {},
|
|
12
|
+
pending: { type: Boolean },
|
|
13
|
+
anchor: {},
|
|
14
|
+
point: {},
|
|
15
|
+
inline: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
emits: ["close"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const emit = __emit;
|
|
21
|
+
const element = ref();
|
|
22
|
+
const popup = useUiMenuPopup(element);
|
|
23
|
+
useUiZPopup(() => props.inline ? void 0 : popupTarget(element.value), {
|
|
24
|
+
scope: true,
|
|
25
|
+
scopeActive: () => !props.inline,
|
|
26
|
+
source: "menu popup"
|
|
27
|
+
});
|
|
28
|
+
const navigation = injectNavigationMenuContext(null);
|
|
29
|
+
function pointerEnter(event) {
|
|
30
|
+
if (props.sub && event.pointerType === "mouse")
|
|
31
|
+
navigation?.onContentEnter(navigation.modelValue.value);
|
|
32
|
+
}
|
|
33
|
+
function pointerLeave(event) {
|
|
34
|
+
if (props.sub && event.pointerType === "mouse") navigation?.onContentLeave();
|
|
35
|
+
}
|
|
36
|
+
function itemPointerLeave(event) {
|
|
37
|
+
const surface = element.value;
|
|
38
|
+
const item = event.target;
|
|
39
|
+
if (props.inline || event.pointerType !== "mouse" || !surface || !(item instanceof HTMLElement) || !item.matches('[role^="menuitem"]'))
|
|
40
|
+
return;
|
|
41
|
+
const focused = surface.ownerDocument.activeElement;
|
|
42
|
+
if (!surface.contains(focused) && popup.contains(focused))
|
|
43
|
+
event.stopPropagation();
|
|
44
|
+
}
|
|
45
|
+
const ui = useMenuTheme();
|
|
46
|
+
const effectivePoint = useUiMenuPoint(
|
|
47
|
+
() => props.point,
|
|
48
|
+
() => props.anchor
|
|
49
|
+
);
|
|
50
|
+
const reference = computed(() => {
|
|
51
|
+
const point = effectivePoint.value;
|
|
52
|
+
return point ? {
|
|
53
|
+
getBoundingClientRect: () => new DOMRect(point.x, point.y, 0, 0),
|
|
54
|
+
contextElement: props.anchor
|
|
55
|
+
} : props.anchor;
|
|
56
|
+
});
|
|
57
|
+
function keyboard(event) {
|
|
58
|
+
if (props.sub && event.key === "Escape") {
|
|
59
|
+
if (event.target.closest(
|
|
60
|
+
'[data-entry-key][aria-expanded="true"]'
|
|
61
|
+
))
|
|
62
|
+
return;
|
|
63
|
+
event.preventDefault();
|
|
64
|
+
event.stopImmediatePropagation();
|
|
65
|
+
const trigger = document.getElementById(
|
|
66
|
+
event.currentTarget?.getAttribute("aria-labelledby") ?? ""
|
|
67
|
+
);
|
|
68
|
+
emit("close");
|
|
69
|
+
nextTick(() => trigger?.focus());
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.sub ? unref(DropdownMenuSubContent) : unref(DropdownMenuContent)), {
|
|
74
|
+
ref: (instance) => {
|
|
75
|
+
element.value = instance?.$el;
|
|
76
|
+
},
|
|
77
|
+
reference: __props.sub ? void 0 : reference.value,
|
|
78
|
+
"aria-label": __props.label,
|
|
79
|
+
"aria-busy": __props.pending || void 0,
|
|
80
|
+
"data-parent": __props.parentKey,
|
|
81
|
+
"data-slot": "content",
|
|
82
|
+
class: normalizeClass(unref(ui).content()),
|
|
83
|
+
"side-offset": __props.sub ? 0 : 8,
|
|
84
|
+
"collision-padding": 8,
|
|
85
|
+
loop: "",
|
|
86
|
+
onPointerenter: pointerEnter,
|
|
87
|
+
onPointerleave: pointerLeave,
|
|
88
|
+
onPointerleaveCapture: itemPointerLeave,
|
|
89
|
+
onKeydownCapture: keyboard,
|
|
90
|
+
onEscapeKeyDown: _cache[0] || (_cache[0] = (event) => {
|
|
91
|
+
if (!__props.sub) {
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
emit("close");
|
|
94
|
+
}
|
|
95
|
+
}),
|
|
96
|
+
onCloseAutoFocus: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
97
|
+
}, ["prevent"])),
|
|
98
|
+
onInteractOutside: _cache[2] || (_cache[2] = (event) => {
|
|
99
|
+
if (__props.inline || __props.anchor?.contains(event.target))
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
})
|
|
102
|
+
}, {
|
|
103
|
+
default: withCtx(() => [
|
|
104
|
+
renderSlot(_ctx.$slots, "default")
|
|
105
|
+
]),
|
|
106
|
+
_: 3
|
|
107
|
+
/* FORWARDED */
|
|
108
|
+
}, 40, ["reference", "aria-label", "aria-busy", "data-parent", "class", "side-offset"]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export {
|
|
113
|
+
_sfc_main as default
|
|
114
|
+
};
|