@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,382 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, unref, withCtx, Fragment, renderList, createElementVNode, createVNode, renderSlot, mergeProps, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { AccordionRoot, AccordionItem, AccordionHeader, AccordionTrigger, AccordionContent, DropdownMenuRoot, DropdownMenuTrigger, DropdownMenuPortal } from "reka-ui";
|
|
3
|
+
import { tv } from "@nuxt/ui/utils/tv";
|
|
4
|
+
import theme from "#build/ui/navigation-menu";
|
|
5
|
+
import { useAppConfig } from "#imports";
|
|
6
|
+
import { useUiMenuIconColumn, useUiOverlayTarget } from "@uninterface/uninterface/backend";
|
|
7
|
+
import _sfc_main$1 from "./NavigationCopy2.vue.js";
|
|
8
|
+
import _sfc_main$3 from "./EntryBranch2.vue.js";
|
|
9
|
+
import _sfc_main$2 from "./EntrySurface2.vue.js";
|
|
10
|
+
import { useNativeDirection } from "./nativeDirection.js";
|
|
11
|
+
const _hoisted_1 = ["aria-label", "aria-busy", "data-rail"];
|
|
12
|
+
const _hoisted_2 = { key: 0 };
|
|
13
|
+
const _hoisted_3 = ["data-rail-heading"];
|
|
14
|
+
const _hoisted_4 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
role: "status"
|
|
17
|
+
};
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
|
+
__name: "NavigationVertical",
|
|
20
|
+
props: {
|
|
21
|
+
entries: {},
|
|
22
|
+
status: {},
|
|
23
|
+
label: {},
|
|
24
|
+
presentation: {},
|
|
25
|
+
parentKey: {},
|
|
26
|
+
group: { type: Boolean }
|
|
27
|
+
},
|
|
28
|
+
emits: ["activate", "expand", "retry"],
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const emit = __emit;
|
|
32
|
+
const iconColumn = useUiMenuIconColumn(() => props.entries, {
|
|
33
|
+
group: () => Boolean(props.group),
|
|
34
|
+
reserve: () => props.presentation === "vertical-tree" || props.parentKey === void 0
|
|
35
|
+
});
|
|
36
|
+
const element = ref();
|
|
37
|
+
const direction = useNativeDirection(() => element.value);
|
|
38
|
+
const target = useUiOverlayTarget();
|
|
39
|
+
const config = useAppConfig();
|
|
40
|
+
const tree = computed(() => props.presentation === "vertical-tree");
|
|
41
|
+
const rail = computed(
|
|
42
|
+
() => props.presentation === "icon-popup" && props.parentKey === void 0
|
|
43
|
+
);
|
|
44
|
+
const ui = computed(
|
|
45
|
+
() => tv({ extend: theme, ...config.ui?.navigationMenu })({
|
|
46
|
+
orientation: "vertical",
|
|
47
|
+
collapsed: rail.value
|
|
48
|
+
})
|
|
49
|
+
);
|
|
50
|
+
const opened = computed(
|
|
51
|
+
() => props.entries.filter((node) => node.expanded).map((node) => node.entry.key)
|
|
52
|
+
);
|
|
53
|
+
function expand(keys) {
|
|
54
|
+
for (const node of props.entries)
|
|
55
|
+
if (node.entry.kind === "submenu" && Boolean(node.expanded) !== (Array.isArray(keys) && keys.includes(node.entry.key)))
|
|
56
|
+
emit(
|
|
57
|
+
"expand",
|
|
58
|
+
node.entry.key,
|
|
59
|
+
Array.isArray(keys) && keys.includes(node.entry.key)
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function activate(node, event) {
|
|
63
|
+
if ("disabled" in node.entry && node.entry.disabled) {
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (event.button || event.ctrlKey || event.metaKey || event.shiftKey || event.altKey)
|
|
68
|
+
return;
|
|
69
|
+
if (node.request) node.request(event);
|
|
70
|
+
else emit("activate", node.entry.key);
|
|
71
|
+
}
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
const _component_NavigationVertical = resolveComponent("NavigationVertical", true);
|
|
74
|
+
return openBlock(), createElementBlock("nav", {
|
|
75
|
+
ref_key: "element",
|
|
76
|
+
ref: element,
|
|
77
|
+
"aria-label": __props.label,
|
|
78
|
+
"aria-busy": __props.status?.pending || void 0,
|
|
79
|
+
class: normalizeClass([ui.value.root(), "nuxt-navigation-vertical"]),
|
|
80
|
+
"data-rail": rail.value || void 0
|
|
81
|
+
}, [
|
|
82
|
+
(openBlock(), createBlock(resolveDynamicComponent(tree.value ? unref(AccordionRoot) : "div"), {
|
|
83
|
+
type: "multiple",
|
|
84
|
+
"model-value": opened.value,
|
|
85
|
+
class: normalizeClass(__props.parentKey !== void 0 && !__props.group ? ui.value.childList() : ui.value.list()),
|
|
86
|
+
"onUpdate:modelValue": expand
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx(() => [
|
|
89
|
+
(openBlock(true), createElementBlock(
|
|
90
|
+
Fragment,
|
|
91
|
+
null,
|
|
92
|
+
renderList(__props.entries, (node) => {
|
|
93
|
+
return openBlock(), createElementBlock(
|
|
94
|
+
Fragment,
|
|
95
|
+
{
|
|
96
|
+
key: node.entry.key
|
|
97
|
+
},
|
|
98
|
+
[
|
|
99
|
+
node.entry.kind === "separator" ? (openBlock(), createElementBlock("hr", _hoisted_2)) : node.entry.kind === "group" ? (openBlock(), createElementBlock(
|
|
100
|
+
Fragment,
|
|
101
|
+
{ key: 1 },
|
|
102
|
+
[
|
|
103
|
+
createElementVNode("div", {
|
|
104
|
+
class: normalizeClass(ui.value.label()),
|
|
105
|
+
"data-rail-heading": rail.value || void 0
|
|
106
|
+
}, [
|
|
107
|
+
createVNode(_sfc_main$1, {
|
|
108
|
+
"icon-column": unref(iconColumn),
|
|
109
|
+
node,
|
|
110
|
+
ui: ui.value
|
|
111
|
+
}, {
|
|
112
|
+
entry: withCtx((scope) => [
|
|
113
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
114
|
+
]),
|
|
115
|
+
icon: withCtx((scope) => [
|
|
116
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
117
|
+
]),
|
|
118
|
+
_: 3
|
|
119
|
+
/* FORWARDED */
|
|
120
|
+
}, 8, ["icon-column", "node", "ui"])
|
|
121
|
+
], 10, _hoisted_3),
|
|
122
|
+
createVNode(_component_NavigationVertical, {
|
|
123
|
+
entries: node.children ?? [],
|
|
124
|
+
label: node.entry.label,
|
|
125
|
+
presentation: __props.presentation,
|
|
126
|
+
"parent-key": __props.parentKey,
|
|
127
|
+
group: "",
|
|
128
|
+
onActivate: _cache[0] || (_cache[0] = ($event) => emit("activate", $event)),
|
|
129
|
+
onExpand: _cache[1] || (_cache[1] = (key, open) => emit("expand", key, open)),
|
|
130
|
+
onRetry: _cache[2] || (_cache[2] = ($event) => emit("retry", $event))
|
|
131
|
+
}, {
|
|
132
|
+
entry: withCtx((scope) => [
|
|
133
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
134
|
+
]),
|
|
135
|
+
icon: withCtx((scope) => [
|
|
136
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
137
|
+
]),
|
|
138
|
+
_: 3
|
|
139
|
+
/* FORWARDED */
|
|
140
|
+
}, 8, ["entries", "label", "presentation", "parent-key"])
|
|
141
|
+
],
|
|
142
|
+
64
|
|
143
|
+
/* STABLE_FRAGMENT */
|
|
144
|
+
)) : node.entry.kind === "submenu" && tree.value ? (openBlock(), createBlock(unref(AccordionItem), {
|
|
145
|
+
key: 2,
|
|
146
|
+
value: node.entry.key,
|
|
147
|
+
disabled: node.entry.disabled,
|
|
148
|
+
class: normalizeClass(ui.value.item())
|
|
149
|
+
}, {
|
|
150
|
+
default: withCtx(() => [
|
|
151
|
+
createVNode(
|
|
152
|
+
unref(AccordionHeader),
|
|
153
|
+
{ as: "div" },
|
|
154
|
+
{
|
|
155
|
+
default: withCtx(() => [
|
|
156
|
+
createVNode(unref(AccordionTrigger), {
|
|
157
|
+
class: normalizeClass([
|
|
158
|
+
"nuxt-navigation-link",
|
|
159
|
+
ui.value.link({
|
|
160
|
+
active: Boolean(node.containsCurrent),
|
|
161
|
+
disabled: Boolean(node.entry.disabled),
|
|
162
|
+
level: __props.parentKey !== void 0
|
|
163
|
+
})
|
|
164
|
+
]),
|
|
165
|
+
"data-entry-key": node.entry.key,
|
|
166
|
+
"aria-label": node.entry.label
|
|
167
|
+
}, {
|
|
168
|
+
default: withCtx(() => [
|
|
169
|
+
createVNode(_sfc_main$1, {
|
|
170
|
+
"icon-column": unref(iconColumn),
|
|
171
|
+
node,
|
|
172
|
+
ui: ui.value,
|
|
173
|
+
tree: ""
|
|
174
|
+
}, {
|
|
175
|
+
entry: withCtx((scope) => [
|
|
176
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
177
|
+
]),
|
|
178
|
+
icon: withCtx((scope) => [
|
|
179
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
180
|
+
]),
|
|
181
|
+
_: 3
|
|
182
|
+
/* FORWARDED */
|
|
183
|
+
}, 8, ["icon-column", "node", "ui"])
|
|
184
|
+
]),
|
|
185
|
+
_: 2
|
|
186
|
+
/* DYNAMIC */
|
|
187
|
+
}, 1032, ["class", "data-entry-key", "aria-label"])
|
|
188
|
+
]),
|
|
189
|
+
_: 2
|
|
190
|
+
/* DYNAMIC */
|
|
191
|
+
},
|
|
192
|
+
1024
|
|
193
|
+
/* DYNAMIC_SLOTS */
|
|
194
|
+
),
|
|
195
|
+
createVNode(unref(AccordionContent), {
|
|
196
|
+
class: normalizeClass(ui.value.content()),
|
|
197
|
+
inert: !node.expanded || void 0
|
|
198
|
+
}, {
|
|
199
|
+
default: withCtx(() => [
|
|
200
|
+
createVNode(_component_NavigationVertical, {
|
|
201
|
+
entries: node.children ?? [],
|
|
202
|
+
status: node.status,
|
|
203
|
+
label: node.entry.label,
|
|
204
|
+
presentation: __props.presentation,
|
|
205
|
+
"parent-key": node.entry.key,
|
|
206
|
+
onActivate: _cache[3] || (_cache[3] = ($event) => emit("activate", $event)),
|
|
207
|
+
onExpand: _cache[4] || (_cache[4] = (key, open) => emit("expand", key, open)),
|
|
208
|
+
onRetry: _cache[5] || (_cache[5] = ($event) => emit("retry", $event))
|
|
209
|
+
}, {
|
|
210
|
+
entry: withCtx((scope) => [
|
|
211
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
212
|
+
]),
|
|
213
|
+
icon: withCtx((scope) => [
|
|
214
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
215
|
+
]),
|
|
216
|
+
_: 3
|
|
217
|
+
/* FORWARDED */
|
|
218
|
+
}, 8, ["entries", "status", "label", "presentation", "parent-key"])
|
|
219
|
+
]),
|
|
220
|
+
_: 2
|
|
221
|
+
/* DYNAMIC */
|
|
222
|
+
}, 1032, ["class", "inert"])
|
|
223
|
+
]),
|
|
224
|
+
_: 2
|
|
225
|
+
/* DYNAMIC */
|
|
226
|
+
}, 1032, ["value", "disabled", "class"])) : node.entry.kind === "submenu" ? (openBlock(), createBlock(unref(DropdownMenuRoot), {
|
|
227
|
+
key: 3,
|
|
228
|
+
open: Boolean(node.expanded),
|
|
229
|
+
modal: false,
|
|
230
|
+
dir: unref(direction),
|
|
231
|
+
"onUpdate:open": ($event) => emit("expand", node.entry.key, $event)
|
|
232
|
+
}, {
|
|
233
|
+
default: withCtx(() => [
|
|
234
|
+
createVNode(unref(DropdownMenuTrigger), {
|
|
235
|
+
class: normalizeClass([
|
|
236
|
+
"nuxt-navigation-link",
|
|
237
|
+
ui.value.link({
|
|
238
|
+
active: Boolean(node.containsCurrent),
|
|
239
|
+
disabled: Boolean(node.entry.disabled)
|
|
240
|
+
})
|
|
241
|
+
]),
|
|
242
|
+
disabled: node.entry.disabled,
|
|
243
|
+
"data-entry-key": node.entry.key,
|
|
244
|
+
"aria-label": node.entry.label
|
|
245
|
+
}, {
|
|
246
|
+
default: withCtx(() => [
|
|
247
|
+
createVNode(_sfc_main$1, {
|
|
248
|
+
"icon-column": unref(iconColumn),
|
|
249
|
+
node,
|
|
250
|
+
ui: ui.value,
|
|
251
|
+
rail: rail.value
|
|
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, ["icon-column", "node", "ui", "rail"])
|
|
262
|
+
]),
|
|
263
|
+
_: 2
|
|
264
|
+
/* DYNAMIC */
|
|
265
|
+
}, 1032, ["disabled", "class", "data-entry-key", "aria-label"]),
|
|
266
|
+
createVNode(unref(DropdownMenuPortal), { to: unref(target) }, {
|
|
267
|
+
default: withCtx(() => [
|
|
268
|
+
createVNode(_sfc_main$2, {
|
|
269
|
+
side: unref(direction) === "rtl" ? "left" : "right",
|
|
270
|
+
label: node.entry.label,
|
|
271
|
+
pending: node.status?.pending,
|
|
272
|
+
onClose: ($event) => emit("expand", node.entry.key, false)
|
|
273
|
+
}, {
|
|
274
|
+
default: withCtx(() => [
|
|
275
|
+
createVNode(_sfc_main$3, {
|
|
276
|
+
entries: node.children ?? [],
|
|
277
|
+
status: node.status,
|
|
278
|
+
label: node.entry.label,
|
|
279
|
+
"parent-key": node.entry.key,
|
|
280
|
+
navigation: "",
|
|
281
|
+
direction: unref(direction),
|
|
282
|
+
onActivate: _cache[6] || (_cache[6] = ($event) => emit("activate", $event)),
|
|
283
|
+
onExpand: _cache[7] || (_cache[7] = (key, open) => emit("expand", key, open)),
|
|
284
|
+
onRetry: _cache[8] || (_cache[8] = ($event) => emit("retry", $event))
|
|
285
|
+
}, {
|
|
286
|
+
entry: withCtx((scope) => [
|
|
287
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
288
|
+
]),
|
|
289
|
+
icon: withCtx((scope) => [
|
|
290
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
291
|
+
]),
|
|
292
|
+
_: 3
|
|
293
|
+
/* FORWARDED */
|
|
294
|
+
}, 8, ["entries", "status", "label", "parent-key", "direction"])
|
|
295
|
+
]),
|
|
296
|
+
_: 2
|
|
297
|
+
/* DYNAMIC */
|
|
298
|
+
}, 1032, ["side", "label", "pending", "onClose"])
|
|
299
|
+
]),
|
|
300
|
+
_: 2
|
|
301
|
+
/* DYNAMIC */
|
|
302
|
+
}, 1032, ["to"])
|
|
303
|
+
]),
|
|
304
|
+
_: 2
|
|
305
|
+
/* DYNAMIC */
|
|
306
|
+
}, 1032, ["open", "dir", "onUpdate:open"])) : (openBlock(), createBlock(resolveDynamicComponent(node.entry.href ? "a" : "button"), {
|
|
307
|
+
key: 4,
|
|
308
|
+
class: normalizeClass([
|
|
309
|
+
"nuxt-navigation-link",
|
|
310
|
+
ui.value.link({
|
|
311
|
+
active: Boolean(node.current),
|
|
312
|
+
disabled: Boolean(node.entry.disabled),
|
|
313
|
+
level: __props.parentKey !== void 0
|
|
314
|
+
})
|
|
315
|
+
]),
|
|
316
|
+
type: node.entry.href ? void 0 : "button",
|
|
317
|
+
href: node.entry.disabled ? void 0 : node.entry.href,
|
|
318
|
+
disabled: !node.entry.href ? node.entry.disabled : void 0,
|
|
319
|
+
"aria-disabled": node.entry.disabled || void 0,
|
|
320
|
+
"aria-current": node.current ? "page" : void 0,
|
|
321
|
+
"data-entry-key": node.entry.key,
|
|
322
|
+
"aria-label": node.entry.label,
|
|
323
|
+
onClick: ($event) => activate(node, $event)
|
|
324
|
+
}, {
|
|
325
|
+
default: withCtx(() => [
|
|
326
|
+
createVNode(_sfc_main$1, {
|
|
327
|
+
"icon-column": unref(iconColumn),
|
|
328
|
+
node,
|
|
329
|
+
ui: ui.value,
|
|
330
|
+
rail: rail.value
|
|
331
|
+
}, {
|
|
332
|
+
entry: withCtx((scope) => [
|
|
333
|
+
renderSlot(_ctx.$slots, "entry", mergeProps({ ref_for: true }, scope))
|
|
334
|
+
]),
|
|
335
|
+
icon: withCtx((scope) => [
|
|
336
|
+
renderSlot(_ctx.$slots, "icon", mergeProps({ ref_for: true }, scope))
|
|
337
|
+
]),
|
|
338
|
+
_: 3
|
|
339
|
+
/* FORWARDED */
|
|
340
|
+
}, 8, ["icon-column", "node", "ui", "rail"])
|
|
341
|
+
]),
|
|
342
|
+
_: 2
|
|
343
|
+
/* DYNAMIC */
|
|
344
|
+
}, 1032, ["type", "href", "disabled", "aria-disabled", "aria-current", "class", "data-entry-key", "aria-label", "onClick"]))
|
|
345
|
+
],
|
|
346
|
+
64
|
|
347
|
+
/* STABLE_FRAGMENT */
|
|
348
|
+
);
|
|
349
|
+
}),
|
|
350
|
+
128
|
|
351
|
+
/* KEYED_FRAGMENT */
|
|
352
|
+
))
|
|
353
|
+
]),
|
|
354
|
+
_: 3
|
|
355
|
+
/* FORWARDED */
|
|
356
|
+
}, 8, ["model-value", "class"])),
|
|
357
|
+
__props.status?.message ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
358
|
+
createTextVNode(
|
|
359
|
+
toDisplayString(__props.status.message) + " ",
|
|
360
|
+
1
|
|
361
|
+
/* TEXT */
|
|
362
|
+
),
|
|
363
|
+
__props.status.failed ? (openBlock(), createElementBlock(
|
|
364
|
+
"button",
|
|
365
|
+
{
|
|
366
|
+
key: 0,
|
|
367
|
+
type: "button",
|
|
368
|
+
class: normalizeClass(ui.value.link()),
|
|
369
|
+
onClick: _cache[9] || (_cache[9] = ($event) => emit("retry", __props.parentKey))
|
|
370
|
+
},
|
|
371
|
+
toDisplayString(__props.status.retryLabel),
|
|
372
|
+
3
|
|
373
|
+
/* TEXT, CLASS */
|
|
374
|
+
)) : createCommentVNode("v-if", true)
|
|
375
|
+
])) : createCommentVNode("v-if", true)
|
|
376
|
+
], 10, _hoisted_1);
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
export {
|
|
381
|
+
_sfc_main as default
|
|
382
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, Teleport, unref, createElementVNode, normalizeStyle, createCommentVNode, createVNode, normalizeClass } from "vue";
|
|
2
|
+
import { useUiOverlayTarget, useUiZPopup } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { injectNavigationMenuContext, NavigationMenuViewport } from "reka-ui";
|
|
4
|
+
import { useFloating, autoUpdate, size } from "@floating-ui/vue";
|
|
5
|
+
const _hoisted_1 = ["dir"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "NavigationViewport",
|
|
8
|
+
props: {
|
|
9
|
+
viewportClass: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const { rootNavigationMenu, dir } = injectNavigationMenuContext();
|
|
13
|
+
const target = useUiOverlayTarget();
|
|
14
|
+
const wrapper = ref();
|
|
15
|
+
useUiZPopup(() => wrapper.value);
|
|
16
|
+
const { floatingStyles } = useFloating(rootNavigationMenu, wrapper, {
|
|
17
|
+
placement: "bottom-start",
|
|
18
|
+
strategy: "fixed",
|
|
19
|
+
whileElementsMounted: autoUpdate,
|
|
20
|
+
middleware: [
|
|
21
|
+
size({
|
|
22
|
+
apply({ rects, elements }) {
|
|
23
|
+
elements.floating.style.width = `${rects.reference.width}px`;
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createBlock(Teleport, {
|
|
30
|
+
to: unref(target) ?? "body"
|
|
31
|
+
}, [
|
|
32
|
+
createElementVNode("div", {
|
|
33
|
+
ref_key: "wrapper",
|
|
34
|
+
ref: wrapper,
|
|
35
|
+
dir: unref(dir),
|
|
36
|
+
style: normalizeStyle(unref(floatingStyles)),
|
|
37
|
+
class: "nuxt-navigation-viewport-wrapper"
|
|
38
|
+
}, [
|
|
39
|
+
createCommentVNode(" Reka retains viewport sizing, trigger alignment and screen clamping.\n Floating UI moves the root-relative coordinate space out of layout\n stacking contexts and follows scrolling/resizing. "),
|
|
40
|
+
createVNode(unref(NavigationMenuViewport), {
|
|
41
|
+
class: normalizeClass(__props.viewportClass)
|
|
42
|
+
}, null, 8, ["class"])
|
|
43
|
+
], 12, _hoisted_1)
|
|
44
|
+
], 8, ["to"]);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
_sfc_main as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, unref, normalizeStyle, normalizeClass, withCtx, createElementVNode, createElementBlock, mergeProps, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
2
|
+
import FooterActions from "./FooterActions.vue.js";
|
|
3
|
+
import { useUiOverlayView } from "@uninterface/uninterface/backend";
|
|
4
|
+
import { uiFocusPresentation } from "./focus.js";
|
|
5
|
+
import { tv } from "@nuxt/ui/utils/tv";
|
|
6
|
+
import { useAppConfig } from "#imports";
|
|
7
|
+
import popover from "#build/ui/popover";
|
|
8
|
+
import modalTheme from "#build/ui/modal";
|
|
9
|
+
import UButton from "@nuxt/ui/components/Button.vue";
|
|
10
|
+
const _hoisted_1 = { class: "nuxt-overlay-content" };
|
|
11
|
+
const _hoisted_2 = { class: "nuxt-overlay-heading" };
|
|
12
|
+
const _hoisted_3 = ["id"];
|
|
13
|
+
const _hoisted_4 = ["aria-label"];
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
__name: "OverlaySurface",
|
|
16
|
+
props: {
|
|
17
|
+
docked: { type: Boolean },
|
|
18
|
+
drawerSizing: {},
|
|
19
|
+
id: {},
|
|
20
|
+
title: {},
|
|
21
|
+
name: {},
|
|
22
|
+
active: { type: Boolean },
|
|
23
|
+
mounted: { type: Boolean },
|
|
24
|
+
panel: { type: Boolean },
|
|
25
|
+
modal: { type: Boolean },
|
|
26
|
+
edge: {},
|
|
27
|
+
placement: {},
|
|
28
|
+
align: {},
|
|
29
|
+
closeOn: {},
|
|
30
|
+
closeLabel: {},
|
|
31
|
+
pendingClose: { type: Boolean },
|
|
32
|
+
disabled: { type: Boolean },
|
|
33
|
+
kind: {},
|
|
34
|
+
anchor: {},
|
|
35
|
+
trigger: {}
|
|
36
|
+
},
|
|
37
|
+
emits: ["cancel", "update:expanded", "failure"],
|
|
38
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const emit = __emit;
|
|
41
|
+
const {
|
|
42
|
+
surface,
|
|
43
|
+
heading,
|
|
44
|
+
arrow,
|
|
45
|
+
placedSide,
|
|
46
|
+
open,
|
|
47
|
+
close,
|
|
48
|
+
widthStyle,
|
|
49
|
+
cancel,
|
|
50
|
+
pointerdown,
|
|
51
|
+
click
|
|
52
|
+
} = useUiOverlayView(
|
|
53
|
+
() => props,
|
|
54
|
+
props.kind,
|
|
55
|
+
() => props.anchor,
|
|
56
|
+
() => props.trigger,
|
|
57
|
+
emit
|
|
58
|
+
);
|
|
59
|
+
const config = useAppConfig();
|
|
60
|
+
const ui = computed(() => {
|
|
61
|
+
const regions = tv({ extend: modalTheme, ...config.ui?.modal })({ transition: false });
|
|
62
|
+
const surface2 = tv({ extend: popover, ...config.ui?.popover })({ transition: false });
|
|
63
|
+
return { ...regions, ...surface2 };
|
|
64
|
+
});
|
|
65
|
+
__expose({ open, close });
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.modal ? "dialog" : "div"), {
|
|
68
|
+
role: __props.modal ? void 0 : "dialog",
|
|
69
|
+
id: `${__props.id}-surface`,
|
|
70
|
+
ref_key: "surface",
|
|
71
|
+
ref: surface,
|
|
72
|
+
popover: __props.modal ? void 0 : "manual",
|
|
73
|
+
inert: !__props.active || void 0,
|
|
74
|
+
class: normalizeClass(["nuxt-overlay", ui.value.content()]),
|
|
75
|
+
style: normalizeStyle(unref(widthStyle)),
|
|
76
|
+
"data-ui-overlay": __props.kind,
|
|
77
|
+
"data-side": __props.kind === "popover" ? unref(placedSide) : void 0,
|
|
78
|
+
"data-edge": __props.edge,
|
|
79
|
+
"data-panel": __props.panel || void 0,
|
|
80
|
+
"aria-modal": __props.modal ? true : void 0,
|
|
81
|
+
"aria-labelledby": __props.title ? `${__props.id}-title` : void 0,
|
|
82
|
+
"aria-label": __props.title ? void 0 : __props.name,
|
|
83
|
+
onCancel: unref(cancel),
|
|
84
|
+
onPointerdown: unref(pointerdown),
|
|
85
|
+
onClick: unref(click)
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createElementVNode("div", _hoisted_1, [
|
|
89
|
+
__props.title || __props.closeOn.includes("close-button") || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock(
|
|
90
|
+
"header",
|
|
91
|
+
{
|
|
92
|
+
key: 0,
|
|
93
|
+
class: normalizeClass(ui.value.header({ class: "flex-col items-stretch" }))
|
|
94
|
+
},
|
|
95
|
+
[
|
|
96
|
+
createElementVNode("div", _hoisted_2, [
|
|
97
|
+
__props.title ? (openBlock(), createElementBlock("h2", mergeProps({
|
|
98
|
+
key: 0,
|
|
99
|
+
id: `${__props.id}-title`,
|
|
100
|
+
ref_key: "heading",
|
|
101
|
+
ref: heading,
|
|
102
|
+
tabindex: "-1",
|
|
103
|
+
class: ui.value.title()
|
|
104
|
+
}, unref(uiFocusPresentation)), toDisplayString(__props.title), 17, _hoisted_3)) : createCommentVNode("v-if", true),
|
|
105
|
+
__props.closeOn.includes("close-button") ? (openBlock(), createBlock(UButton, {
|
|
106
|
+
key: 1,
|
|
107
|
+
icon: unref(config).ui?.icons.close,
|
|
108
|
+
color: "neutral",
|
|
109
|
+
variant: "ghost",
|
|
110
|
+
"aria-label": __props.closeLabel,
|
|
111
|
+
disabled: __props.pendingClose || __props.disabled,
|
|
112
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("cancel", "close-button"))
|
|
113
|
+
}, null, 8, ["icon", "aria-label", "disabled"])) : createCommentVNode("v-if", true)
|
|
114
|
+
]),
|
|
115
|
+
renderSlot(_ctx.$slots, "header-extra")
|
|
116
|
+
],
|
|
117
|
+
2
|
|
118
|
+
/* CLASS */
|
|
119
|
+
)) : createCommentVNode("v-if", true),
|
|
120
|
+
createElementVNode("div", mergeProps({
|
|
121
|
+
class: ui.value.body(),
|
|
122
|
+
ref: !__props.title ? (el) => heading.value = el?.$el ?? el : void 0,
|
|
123
|
+
role: "region",
|
|
124
|
+
tabindex: "0",
|
|
125
|
+
"aria-label": __props.name
|
|
126
|
+
}, unref(uiFocusPresentation)), [
|
|
127
|
+
renderSlot(_ctx.$slots, "default")
|
|
128
|
+
], 16, _hoisted_4),
|
|
129
|
+
_ctx.$slots.actions || _ctx.$slots.footer ? (openBlock(), createElementBlock(
|
|
130
|
+
"footer",
|
|
131
|
+
{
|
|
132
|
+
key: 1,
|
|
133
|
+
class: normalizeClass(ui.value.footer())
|
|
134
|
+
},
|
|
135
|
+
[
|
|
136
|
+
_ctx.$slots.actions ? (openBlock(), createBlock(FooterActions, { key: 0 }, {
|
|
137
|
+
default: withCtx(() => [
|
|
138
|
+
renderSlot(_ctx.$slots, "actions")
|
|
139
|
+
]),
|
|
140
|
+
_: 3
|
|
141
|
+
/* FORWARDED */
|
|
142
|
+
})) : renderSlot(_ctx.$slots, "footer", {}, void 0, void 0, 1)
|
|
143
|
+
],
|
|
144
|
+
2
|
|
145
|
+
/* CLASS */
|
|
146
|
+
)) : createCommentVNode("v-if", true)
|
|
147
|
+
]),
|
|
148
|
+
__props.kind === "popover" ? (openBlock(), createElementBlock(
|
|
149
|
+
"span",
|
|
150
|
+
{
|
|
151
|
+
key: 0,
|
|
152
|
+
ref_key: "arrow",
|
|
153
|
+
ref: arrow,
|
|
154
|
+
class: "nuxt-overlay-arrow",
|
|
155
|
+
"aria-hidden": "true"
|
|
156
|
+
},
|
|
157
|
+
[
|
|
158
|
+
createCommentVNode(" Reka UI 2.11.0 rounded Arrow artwork (MIT). Its public PopoverArrow\n requires Reka's competing positioning context; retain the artwork\n and Nuxt theme slot with this view's existing placement owner. "),
|
|
159
|
+
(openBlock(), createElementBlock(
|
|
160
|
+
"svg",
|
|
161
|
+
{
|
|
162
|
+
width: "10",
|
|
163
|
+
height: "5",
|
|
164
|
+
viewBox: "0 0 12 6",
|
|
165
|
+
preserveAspectRatio: "none",
|
|
166
|
+
"data-slot": "arrow",
|
|
167
|
+
class: normalizeClass(ui.value.arrow())
|
|
168
|
+
},
|
|
169
|
+
[..._cache[1] || (_cache[1] = [
|
|
170
|
+
createElementVNode(
|
|
171
|
+
"path",
|
|
172
|
+
{ d: "M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0" },
|
|
173
|
+
null,
|
|
174
|
+
-1
|
|
175
|
+
/* CACHED */
|
|
176
|
+
)
|
|
177
|
+
])],
|
|
178
|
+
2
|
|
179
|
+
/* CLASS */
|
|
180
|
+
))
|
|
181
|
+
],
|
|
182
|
+
512
|
|
183
|
+
/* NEED_PATCH */
|
|
184
|
+
)) : createCommentVNode("v-if", true)
|
|
185
|
+
]),
|
|
186
|
+
_: 3
|
|
187
|
+
/* FORWARDED */
|
|
188
|
+
}, 40, ["role", "id", "popover", "inert", "class", "style", "data-ui-overlay", "data-side", "data-edge", "data-panel", "aria-modal", "aria-labelledby", "aria-label", "onCancel", "onPointerdown", "onClick"]);
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
export {
|
|
193
|
+
_sfc_main as default
|
|
194
|
+
};
|