@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
package/docs/setup.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Set up the Nuxt UI backend
|
|
2
|
+
|
|
3
|
+
This guide owns the application integration requirements for `@uninterface/backend-nuxt-ui`. Business components use `@uninterface/uninterface`; toolkit configuration stays at application assembly.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
Use Vue compatible with core's `^3.5.43` peer dependency, Vue-aware TypeScript checking, and Vite with `@vitejs/plugin-vue`. Keep one runtime copy of Vue and core.
|
|
8
|
+
|
|
9
|
+
The adapter pins Nuxt UI 4.12.0 and Reka UI 2.11.0. Nuxt UI, the adapter's direct primitive imports and vaul-vue must resolve the same Reka implementation so their injected contexts agree. Keep the lockfile and these pins coordinated when upgrading; do not independently replace the native primitives.
|
|
10
|
+
|
|
11
|
+
## Select the backend
|
|
12
|
+
|
|
13
|
+
The release package ships compiled ES modules and TypeScript declarations.
|
|
14
|
+
Install a compatible version of `@uninterface/backend-nuxt-ui` under the alias
|
|
15
|
+
`@uninterface/backend`. In the command below, replace `VERSION` with the
|
|
16
|
+
backend version you want to install.
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm install @uninterface/uninterface@0.0.3 @uninterface/backend@npm:@uninterface/backend-nuxt-ui@VERSION
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Use TypeScript's `Bundler` module resolution to resolve the package's type
|
|
23
|
+
exports. See [package build](package-build.md) for a source checkout.
|
|
24
|
+
|
|
25
|
+
## Configure Vite
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
// vite.config.ts
|
|
29
|
+
import { defineConfig } from 'vite'
|
|
30
|
+
import vue from '@vitejs/plugin-vue'
|
|
31
|
+
import backendPlugins from '@uninterface/backend/vite'
|
|
32
|
+
|
|
33
|
+
export default defineConfig({
|
|
34
|
+
plugins: [vue(), backendPlugins()],
|
|
35
|
+
resolve: { dedupe: ['vue', '@uninterface/uninterface'] },
|
|
36
|
+
})
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Initialize the application
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
// src/main.ts
|
|
43
|
+
import { createUiApplication } from '@uninterface/uninterface/setup'
|
|
44
|
+
import '@uninterface/backend/font.css'
|
|
45
|
+
import '@uninterface/backend/style.css'
|
|
46
|
+
import App from './App.vue'
|
|
47
|
+
|
|
48
|
+
const app = createUiApplication(App, { document })
|
|
49
|
+
await app.ui.ready
|
|
50
|
+
app.mount('#app')
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Both integration points are required: `./vite` supplies Tailwind processing, generated themes and guarded native locale/field-identity integration; the `./integration` descriptor is consumed automatically by createUiApplication to create Nuxt UI's per-application context and plugin. Do not pass that descriptor to app.use or install the native plugin separately. The adapter declares Nuxt UI 4.12.0 and its supporting build/icon dependencies. No Nuxt application or router is required. The build hook disables automatic component registration, composable imports, routing integration and automatic color-mode management; views import components explicitly. The stylesheet includes Tailwind and Nuxt UI theme styles, including their global effects. Do not replace this hook with an independently configured toolkit plugin for the same views.
|
|
54
|
+
|
|
55
|
+
The integration descriptor is loaded by core through the selected alias; business components need no backend imports. Import the stylesheet once. The top-level `document` option grants ownership of document language attributes; omit it for an embedded application. Await readiness before mounting. For SSR/hydration, supply the same explicit `idPrefix` on both sides, create a fresh application per request and call `app.ui.dispose()` in `finally`. The core application-isolation guide defines the verified editing baseline and request-owned business-session cleanup.
|
|
56
|
+
|
|
57
|
+
The adapter root installs Nuxt UI's locale, tooltip, portal, and overlay providers. Uninterface mounts its own toast and notification views, so adapter startup needs only these providers from the Nuxt UI application shell. When upgrading the pinned toolkit, review the provider setup alongside Nuxt UI's `App.vue`.
|
|
58
|
+
|
|
59
|
+
Create a minimal `App.vue` to verify the configured application:
|
|
60
|
+
|
|
61
|
+
```vue
|
|
62
|
+
<script setup lang="ts">
|
|
63
|
+
import { ref } from 'vue'
|
|
64
|
+
import { UiApp, UiButton, UiContent } from '@uninterface/uninterface'
|
|
65
|
+
|
|
66
|
+
const acknowledged = ref(false)
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<UiApp>
|
|
71
|
+
<UiContent>
|
|
72
|
+
<h1>Application ready</h1>
|
|
73
|
+
<UiButton
|
|
74
|
+
:disabled="acknowledged"
|
|
75
|
+
@click="acknowledged = true"
|
|
76
|
+
>
|
|
77
|
+
Acknowledge
|
|
78
|
+
</UiButton>
|
|
79
|
+
<p v-if="acknowledged" role="status">Acknowledged.</p>
|
|
80
|
+
</UiContent>
|
|
81
|
+
</UiApp>
|
|
82
|
+
</template>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Mount into the existing Vue application's `#app` element. Use its configured Vite and Vue type-check commands to build/check the source. Confirm that the button responds, becomes disabled and displays the status. This verifies a basic interaction, not every backend capability or browser.
|
|
86
|
+
|
|
87
|
+
## Scope and verification
|
|
88
|
+
|
|
89
|
+
The [presentation reference](presentation.md) documents native mappings and limitations; [exports](exports.md) documents assembly modules. Capability declarations describe supported contracts; they do not certify accessibility. Browser keyboard, focus, popup, contrast and scrolling checks remain necessary in addition to builds and DOM simulation.
|
|
90
|
+
|
|
91
|
+
## Localization and icons
|
|
92
|
+
|
|
93
|
+
Use `createUiApplication` to install this backend's `integration` alongside core resources. Do not separately install a native toolkit plugin. Core's application-localization service owns language selection and synchronizes the native resources supplied by this backend.
|
|
94
|
+
|
|
95
|
+
The initial full message set is English, Simplified Chinese, Traditional Chinese and Arabic. The integration declares native resource aliases; core exposes the effective native locale through `app.ui.i18n.state.value.resolved.backend`. Additional native resources can be supplied by extending the selected integration at assembly through the `backend` option; core/business components need no backend-name branch. Additional languages and full RTL require acceptance before support claims.
|
|
96
|
+
|
|
97
|
+
The catalogue supplies 58 semantic icon names. Application overrides affect UiIcon and menu entry icons; native internal glyphs retain their toolkit defaults. The semantic catalogue and configured native internal glyphs are bundled locally without an external icon service. The Vite hook resolves native collections from the application first, then the backend dependencies, and rejects unresolved configured icons instead of relying on a runtime download. The backend uses a bounded Lucide subset; see [Lucide license](icon-licenses/Lucide.txt).
|
|
98
|
+
|
|
99
|
+
The build hook also guards a Nuxt UI 4.12.0 locale isolation limitation: its client locale composable shares the first injected context. The adapter preserves the native translator but resolves context per caller, enabling multiple applications with independent languages. The transformation checks the pinned declaration and fails on an incompatible toolkit change so upgrades require review. The hook is required for localization isolation as well as native themes.
|
|
100
|
+
|
|
101
|
+
Arabic (`ar`, العربية) uses script-derived RTL direction. The integration lazily loads the toolkit’s native Arabic pack. Some upstream native strings may remain untranslated. `resolved.backend` reports `ar`, including for compatible regional requests. Message and direction support do not certify full RTL layout or browser acceptance.
|
|
102
|
+
|
|
103
|
+
Request a language through the installed service; do not install another native locale manager:
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
await app.ui.i18n.setLocale('zh-Hans')
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Register your own headings, field labels and business messages through `i18n.resources` at createUiApplication setup. Core/native packs translate library-owned text, not arbitrary strings in your application. Resource failures retain the previous language; handle the rejected request. Additional catalogue definitions use the setup `icons` option. Exact resource and icon contracts are documented by `@uninterface/uninterface` under `docs/guides/localization-and-icons.md`.
|
|
110
|
+
|
|
111
|
+
## Color mode
|
|
112
|
+
|
|
113
|
+
This backend supports `theme.color-mode.v1`. To let a top-level application own document mode, include `colorMode` in application setup:
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
const app = createUiApplication(App, {
|
|
117
|
+
document,
|
|
118
|
+
colorMode: {
|
|
119
|
+
document,
|
|
120
|
+
preference: 'system',
|
|
121
|
+
storageKey: 'application-appearance', // Optional persistence.
|
|
122
|
+
},
|
|
123
|
+
})
|
|
124
|
+
await app.ui.ready
|
|
125
|
+
app.mount('#app')
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Core manages preference, system detection and optional persistence; the backend maps the result to native `light`/`dark` classes on html, covering teleported surfaces as well as the app. Do not independently toggle toolkit classes or enable another preference controller. The top-level `document` option for language is separate from `colorMode.document`.
|
|
129
|
+
|
|
130
|
+
Embedded applications omit colorMode to observe the host document without mutating it. For SSR, emit the native html selector matching the resolved server mode and hydrate with the same initial resolution. Independent simultaneous modes in one document are unsupported. Palette changes and accessible contrast still require browser verification; see [presentation](presentation.md#color-mode).
|
|
131
|
+
|
|
132
|
+
## Customize presentation
|
|
133
|
+
|
|
134
|
+
See [customization](customization.md) for supported application-owned styling,
|
|
135
|
+
native configuration possibilities and adapter limitations.
|
|
136
|
+
|
|
137
|
+
See [strategy support](strategies.md) for optional regional preferences, control-size mappings and unsupported values.
|
|
138
|
+
|
|
139
|
+
The pinned native FormField bridge reads the explicit input identity before rendering its label; its generated feedback namespace remains separate. Checkbox integrated-label coordination activates after mount so initial server/client output agrees. Native source changes fail the build guard and require adapter review. The verified editing baseline and its exclusions are documented by core; a successful Nuxt UI installation does not establish general Nuxt application or arbitrary-component SSR support.
|
|
140
|
+
|
|
141
|
+
## Typography: fonts first, backend styles second
|
|
142
|
+
|
|
143
|
+
| Choice | First import: fonts |
|
|
144
|
+
|---|---|
|
|
145
|
+
| **Backend default · Network** (recommended starting setup) | `@uninterface/backend/font.css` |
|
|
146
|
+
| **Backend default · Bundled** | `@uninterface/backend/font-bundled.css` |
|
|
147
|
+
| **Uninterface default · Network** | `@uninterface/fonts/font.css` |
|
|
148
|
+
| **Uninterface default · Bundled** | `@uninterface/fonts/font-bundled.css` |
|
|
149
|
+
|
|
150
|
+
Import one selected font entry before the stable `@uninterface/backend/style.css`, as shown in the setup example. The Uninterface choices require the optional `@uninterface/fonts` package. Omitting the font import uses system fonts without downloads. See [typography and fonts](typography.md) for installation, CSP, deployment, language coverage and verification steps.
|
|
151
|
+
|
|
152
|
+
[Native HTML content defaults](native-html.md): supported element baseline, toolkit mappings, setup, spacing and verification limits.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### Common icon assets
|
|
156
|
+
|
|
157
|
+
The common catalogue supplies 58 semantic names with independent override keys. The November 2026 additions use Lucide via installed `@iconify-json/lucide` 1.2.144. Assets are local, with static component imports; no runtime icon service is introduced. Setup includes this bounded catalogue, which grows from 26 to 58 names; individual name-based tree shaking is not promised. Existing native internal glyphs remain private to the backend. See `@uninterface/uninterface` documentation at `docs/api/constants/uiIconNames.md` and `docs/guides/localization-and-icons.md`. See local [asset sources and mappings](icon-licenses/SOURCES.md).
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Presentation strategies
|
|
2
|
+
|
|
3
|
+
For application authors choosing optional presentation preferences with this backend. Use `UiStrategy` and the common factories from `@uninterface/uninterface`; no backend imports or CSS are needed in business components. Core's strategy contract and usage guide define attachment, custom queries, scope and blocking.
|
|
4
|
+
|
|
5
|
+
```vue
|
|
6
|
+
<UiStrategy :use="uiControlSize(-1)">
|
|
7
|
+
<UiField :field="name" label="Name"><UiTextInput /></UiField>
|
|
8
|
+
<UiButton>Continue</UiButton>
|
|
9
|
+
</UiStrategy>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Import the components and `uiControlSize` from `@uninterface/uninterface`, and create `name` with `createUiFieldControl('')`. Apply strategies to an existing region; UiStrategy adds no DOM wrapper.
|
|
13
|
+
|
|
14
|
+
## Control size
|
|
15
|
+
|
|
16
|
+
| Controls | Native levels and mapping |
|
|
17
|
+
|---|---|
|
|
18
|
+
| UiTextInput, UiSelect, UiCheckbox | -2 / -1 / 0 / 1 / 2 → xs / sm / md / lg / xl |
|
|
19
|
+
| UiButton | -2 / -1 / 0 / 1 / 2 → xs / sm / md / lg / xl |
|
|
20
|
+
|
|
21
|
+
The adapter passes the native size prop. With no strategy decision it preserves native form-size context, where present; ordinary standalone size is md.
|
|
22
|
+
|
|
23
|
+
UiField uses native FormField size, so its label, annotations and feedback inherit the toolkit field text scale. Custom feedback reuses the generated FormField help/error theme slots and application theme configuration, inheriting that scale instead of fixing its own font size. Editors resolve size independently; a blocked editor restores its native theme/default size rather than inheriting a field strategy through toolkit context.
|
|
24
|
+
|
|
25
|
+
Zero requests ordinary size. Levels are ordinal, not multipliers or additive offsets. All five size requests participate in agreement; the adapter maps the agreed level to its native scale. A three-level scale maps -2/-1 to small, 0 to ordinary and 1/2 to large. Common queries require supported contributions to agree; conflicting values preserve ordinary presentation. Omit strategies for normal use.
|
|
26
|
+
|
|
27
|
+
## Field presentation
|
|
28
|
+
|
|
29
|
+
Five common field queries participate, with per-field label support:
|
|
30
|
+
|
|
31
|
+
| Factory | Values and effect |
|
|
32
|
+
|---|---|
|
|
33
|
+
| uiCheckablePresentation | adapt / flushed / control-aligned / separated; checkable labels and group titles stay visible |
|
|
34
|
+
| uiFieldLabels | show / above / beside / beside-far / beside-near / floating / hidden; unsupported detail generalizes to beside/show |
|
|
35
|
+
| uiRequiredAnnotations | prefix / suffix / yes / no; presentation without changing required semantics |
|
|
36
|
+
| uiFieldHelp | together / replace-help; replace help only while a visible error is displayed |
|
|
37
|
+
| uiValidationFailure | none / show / show-below / show-embedded / show-tooltip; select failure visibility and placement |
|
|
38
|
+
|
|
39
|
+
Nuxt UI uses native FormField vertical/horizontal orientation for ordinary above/beside fields. Ordinary fieldset groups support above/hidden; ordinary beside labels, separated checkable labels and aligned/separated checkable group titles all honor explicit near/far. General beside resolves to beside-far before rendering. Omitted/show placement resolves reactive native FormField orientation to above or beside-far, including before checkable adapt selection. Native help/error slots remain in use for ordinary replacement feedback. Coexistence uses shared native theme slots. Checkbox labeling remains coordinated with its native editing surface.
|
|
40
|
+
|
|
41
|
+
Show retains ordinary backend feedback; show-below is supported, show-embedded renders below, and show-tooltip uses an anchored error bubble. The error bubble opens automatically while an issue is present. It appears when at least 50% of the editor anchor is visible after clipping and overlap by known layout regions. The accessible error description persists while the bubble is hidden. In a popover that stacks above its owning modal’s header and footer, the error appears below the field inside the popover. Embedded means the error message itself inside the control surface; this backend does not currently implement it. None suppresses field messages while retaining native invalid-state styling and preserving aria-invalid, requiredness, validation and submission behavior. Hidden message description IDs are removed, and help is restored. Form submission summaries remain independent.
|
|
42
|
+
|
|
43
|
+
All common requests agree before native fulfillment. Unsupported label detail generalizes through beside/show; failure placement generalizes to show. Show enables default visible treatment without imposing a location; omission preserves backend defaults. Core recommendations are not automatically applied declarations. Conflicting supported requests retain ordinary presentation. Reactive changes preserve editor identity, draft and focus. Required annotations yes uses this backend’s default suffix placement; optional annotations remain deferred.
|
|
44
|
+
|
|
45
|
+
Floating generalizes to show. Hidden visually hides ordinary non-checkable FormField labels and legends while retaining naming associations; checkable labels/titles stay visible. Tooltip uses UTooltip with a native reference anchor.
|
|
46
|
+
|
|
47
|
+
Resolution follows agreement on original intent. Before rendering, general show/yes/beside/adapt values, omitted preferences and unsupported detail become concrete supported treatments. Equivalent resolved presentations share native integration and geometry; renderers do not implement a separate backend-default path. Required annotations resolve to prefix/suffix/no and failure messages to a supported visible mode or none. Reactive native configuration is read during resolution.
|
|
48
|
+
|
|
49
|
+
Omitted strategies add no presentation preference. Defaults belong to this backend and its supported application configuration, rather than a fixed common strategy value.
|
|
50
|
+
|
|
51
|
+
## Verification
|
|
52
|
+
|
|
53
|
+
Check every documented level against the ordinary control, then remove the declaration and verify recovery. Change preferences while editing: drafts, control identity and focus must survive. Block `uiControlSizeQuery` in a nested UiStrategy and verify that inherited sizing stops while other concerns remain. Real-browser checks are needed for dimensions, visible focus and responsive arrangements; simulated DOM checks alone do not establish those properties.
|
|
54
|
+
|
|
55
|
+
[Documentation index](README.md) · [Presentation](presentation.md)
|
|
56
|
+
|
|
57
|
+
## Hierarchy
|
|
58
|
+
|
|
59
|
+
uiHierarchyLevel applies to card nodes. Explicit UiCard.level overrides the regional answer; disagreement/no answer uses zero. Agreement compares all five original requests before the permitted -2 to -1 adaptation. Targets, depth, stopAt and family/query blocking remain effective. See [card presentation](presentation.md#cards-and-hierarchy) for native mappings.
|
|
60
|
+
|
|
61
|
+
## Card presentation
|
|
62
|
+
|
|
63
|
+
uiCardPresentation configures all five level treatments independently of uiHierarchyLevel. All shared options are fulfilled; see [cards and hierarchy](presentation.md#cards-and-hierarchy). Partial maps retain core-selected defaults. Whole-profile semantic unanimity governs overlapping declarations; disagreement/no answer or blocking restores the default map. Family/query barriers and target/depth/stopAt scopes apply without native CSS-context leakage. Explicit card color overrides the map for that card; null selects neutral. Changing a profile does not remount content or alter child control sizes.
|
|
64
|
+
|
|
65
|
+
## Layout density
|
|
66
|
+
|
|
67
|
+
UiLayout, UiFlowLayout and UiGridLayout support `uiLayoutDensity(-1 | 0 | 1)` for peer separation. -1 maps to `calc(var(--spacing) * 2)`; 0 preserves `calc(var(--spacing) * 6)`; 1 maps to `calc(var(--spacing) * 8)`. These are backend fulfillment values, not business-author inputs. Zero/no answer uses the original default; supported conflicting answers retain that default. Both grid axes use the selected spacing. Native tokens/classes remain application-theme controlled where used.
|
|
68
|
+
|
|
69
|
+
Density does not resize controls, change typography or content padding, or separate UiRegionLayout allocations. Nested layouts honor logical targets, depth, stopAt and query barriers without inherited CSS density. See `@uninterface/uninterface` documentation at `docs/guides/layout-density.md`. Shared DOM tests verify all levels, restoration, scoped barriers and retained input state/focus; browser geometry is a separate acceptance check.
|
|
70
|
+
|
|
71
|
+
### Checkable-control labels
|
|
72
|
+
|
|
73
|
+
UiCheckbox and UiSwitch use the checkable presentation strategy: adapt by default, or explicit flushed/control-aligned/separated. Adapt first resolves effective ordinary label placement, including reactive native defaults, general values and unsupported requests. It then selects control-aligned for effective beside placement or flushed otherwise. Explicit modes select their own arrangement independently of ordinary placement support. All standalone labels and group titles remain visible under hidden. Radio/checkbox option labels remain adjacent; control-aligned/separated group headings occupy the label area. Separated standalone labels use the outer field label and preserve native input association. Layout columns stack below 40rem; standalone labels stay adjacent in flushed/control-aligned modes. In control-aligned mode, field descriptions and below-control feedback begin at the control area/check control, rather than the adjacent label; adapt uses this rule whenever it resolves to control-aligned, including narrow stacking. Flushed standalone descriptions retain label-text alignment. Size, markers and values retain their own behavior.
|
|
74
|
+
|
|
75
|
+
This implements the shared checkable-control presentation modes. Verify all label modes and restoration, required markers, value/focus retention and label activation; browser checks must also cover narrow/wide widths, wrapping and RTL. DOM integration checks alone do not establish visual geometry.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## Button width
|
|
79
|
+
|
|
80
|
+
uiButtonWidth supports content/full for standalone text-labelled buttons. Full stretches both the containing host and actionable surface to the parent allocation; content retains intrinsic width. Icon-only and parent-input-frame actions keep their geometry. Omission/conflicting answers preserve defaults. Native sizing, focus, disabled/loading and action behavior remain unchanged. The core strategy guide documents scope and barriers.
|
|
81
|
+
|
|
82
|
+
## Docked drawer motion
|
|
83
|
+
|
|
84
|
+
Docked drawers retain their resolved extent while the docking grid track opens or closes. The surface uses the existing backend drawer motion; allocation motion uses the same timing. Exit keeps the surface mounted and visible until motion settles, with interaction disabled. Reduced motion disables both transitions. Resizing uses immediate geometry rather than repeatedly animating the allocation. Popups retain their existing overlay hosting. Verify repeated opening, Close/Escape, focus return, retained content, all edges and responsive panel/docked changes separately from human visual acceptance.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Table columns
|
|
2
|
+
|
|
3
|
+
This adapter implements table.column-sizing.v1 and table.column-alignment.v1. UiTableColumn accepts preferredWidth/minWidth as positive px numbers or px/rem/em lengths, spring/resizable booleans and physical left/center/right align. Defaults are 12em, 3em, true, true and native alignment. At least one spring column is required. Header and cell content use the same alignment; full-width editors retain their own internal alignment.
|
|
4
|
+
|
|
5
|
+
Spring columns absorb container changes; pointer or keyboard resizing redistributes adjacent columns within their minima. Both neighbors must permit resizing. Horizontal overflow requires explicit horizontal/both scrolling. If fixed widths plus spring minima cannot fit without scrolling, a localized status replaces the visible table while keeping editors mounted. Authors must supply responsive allocations suitable for their actual content.
|
|
6
|
+
|
|
7
|
+
Widths survive data/query updates for the mounted view. Arrow keys resize by 10px (Shift: 1px), Home/End reach bounds, Escape cancels a drag and double-click resets authored widths. The core package's docs/guides/table-columns.md provides full consumer semantics.
|
|
8
|
+
|
|
9
|
+
Native integration: UTable stable column style metadata and shared boundary handling, preserving manual query ownership.
|
|
10
|
+
|
|
11
|
+
Verify painted header and cell alignment, pointer and touch resizing, keyboard operation and header associations in the intended browsers and assistive technology.
|
|
12
|
+
|
|
13
|
+
Content width: preferredWidth/minWidth accept content. The adapter measures intrinsic header/cell wrappers plus native insets, so action-button labels and padding determine the allocation. Use content for both with spring=false to prevent resizing below the button's required space. Unmeasured content starts at 3em; hidden content retains its last measurement until measurable. Percentage/full-width editors are not appropriate intrinsic-content requests.
|
|
14
|
+
|
|
15
|
+
UiTable supports a custom footer below the data, anchored horizontally to its scroll host (table.footer.v1). Successful lists/tables are quiet by default; showSummary explicitly opts into a visible ready count. Loading, empty, stale, error, completion and accessibility status remain. Content sizing support is declared through table.column-content.v1.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
See [collection presentation](collections.md#pagination) for native pagination and fallback behavior.
|
|
19
|
+
|
|
20
|
+
## Selection allocation
|
|
21
|
+
|
|
22
|
+
The generated selection-control column reserves `3em` separately from business-column allocation. It does not consume the remainder shared by spring columns. Verify native checkbox fit, header/cell alignment and horizontal scrolling with the application’s control sizes and zoom.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
Custom table supporting footers are siblings of the record scrollport within the existing collection frame. In full-height tables they keep their natural size while rows receive the remaining space; horizontal row scrolling does not move their actions. Summary cells remain in the native table footer. Verify supporting-footer persistence, sticky summary and retained footer/editor identity through edits, insertion and removal. The creation row is separate from this custom footer.
|
|
26
|
+
|
|
27
|
+
## Creation row
|
|
28
|
+
|
|
29
|
+
UiTable supports `addRow`/`addRowLabel` through table.add-row.v1. A private backend preview tints each column’s content area inside its native cell insets using neutral foreground/surface tokens. The insets remain unshaded, separating adjacent areas. The core’s named text-variant action sits over these static, aria-hidden areas. Selection allocation, column resizing/order and horizontal scrolling share the table's geometry. The preview has no control outlines, blur, native editors, sample items or loading animation. It precedes the column summary and is independent of the generic supporting footer.
|
|
30
|
+
|
|
31
|
+
The creation affordance is the final body row after the records and before the summary. It always scrolls vertically with records and is never pinned to the viewport; long tables require reaching the final row. The declared summary retains its independent bottom position. A shorter allocation releases header pinning when necessary. Native scroll padding keeps focused editors clear of sticky regions. The existing modal/body overflow fallback remains available. Check visible action focus, pointer access, unobscured insertion focus, dark/RTL, empty membership and independent pending restrictions.
|
|
32
|
+
|
|
33
|
+
UTable's native body-bottom slot hosts the creation tr before its native footer. The preview and action use this adapter's neutral UI tokens; native footer paint stays opaque.
|
package/docs/testing.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Test with the Nuxt UI backend
|
|
2
|
+
|
|
3
|
+
[Documentation index](README.md)
|
|
4
|
+
|
|
5
|
+
Make `@uninterface/testing` and its Playwright peer dependency available to the test project. Configure the selected backend once in a Playwright fixture:
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { test as base } from '@playwright/test'
|
|
9
|
+
import { createUiTest, type UiTest } from '@uninterface/testing/playwright'
|
|
10
|
+
import { uiTestAdapter } from '@uninterface/backend/testing'
|
|
11
|
+
|
|
12
|
+
export const test = base.extend<{ ui: UiTest }>({
|
|
13
|
+
ui: async ({ page }, use) => {
|
|
14
|
+
await use(createUiTest(page, uiTestAdapter))
|
|
15
|
+
},
|
|
16
|
+
})
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Use the same backend alias as application setup; installing only that alias does not also install the backend under its original package name. Business tests import the fixture and interact by accessible names, labels or application test IDs. Select candidates by semantic key and independently assert saved values. The mapping does not override core behavior or application acceptance policy.
|
|
20
|
+
|
|
21
|
+
The adapter locates actual rendered select/checkbox parts. It must not force clicks, modify state or repair focus to make tests pass. The harness supports single selects, binary/tristate checkboxes and radio/checkbox groups; native select operations do not certify the operating system's picker visuals. Other controls can use ordinary Playwright semantic locators. The testing package's own API reference defines the complete harness contract.
|
|
22
|
+
|
|
23
|
+
## Verify application behavior
|
|
24
|
+
|
|
25
|
+
The backend repository includes native conformance tests and their fixtures. The application Playwright fixture above uses your own app and test runner.
|
|
26
|
+
|
|
27
|
+
Verify shared keyboard, focus, naming, validation feedback, selection retention and layout behavior as well as native presentation. Capability declarations and simulated DOM results do not replace browser or manual accessibility checks. Applications select their own conformance policy; the adapter does not import another project's contrast exceptions.
|
|
28
|
+
|
|
29
|
+
The testing adapter also maps radio/checkbox group options by stable key through choice(group, key, kind). Shared drivers own pointer actions and checked-state verification; adapter mappings preserve native hit targets.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Typography and fonts
|
|
2
|
+
|
|
3
|
+
[Documentation index](README.md) · [Setup](setup.md) · [Customization](customization.md)
|
|
4
|
+
|
|
5
|
+
This backend's recommended set is **Public Sans Variable**, with language-aware Noto Sans SC/TC fallbacks. The alternative Uninterface-default set uses Noto Sans Variable across all backends. Font entries supply selection and delivery; the stable backend stylesheet supplies component styling.
|
|
6
|
+
|
|
7
|
+
## Setup: select fonts, then load backend styles
|
|
8
|
+
|
|
9
|
+
| Choice | First import: fonts |
|
|
10
|
+
|---|---|
|
|
11
|
+
| **Backend default · Network** (recommended starting setup) | `@uninterface/backend/font.css` |
|
|
12
|
+
| **Backend default · Bundled** | `@uninterface/backend/font-bundled.css` |
|
|
13
|
+
| **Uninterface default · Network** | `@uninterface/fonts/font.css` |
|
|
14
|
+
| **Uninterface default · Bundled** | `@uninterface/fonts/font-bundled.css` |
|
|
15
|
+
|
|
16
|
+
1. Follow the backend setup guide to resolve core and the selected backend. Make the optional `@uninterface/fonts` package available to the application for either Uninterface-default choice.
|
|
17
|
+
2. Import **one font entry first**, then always import the same backend stylesheet:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
// Backend default · Network
|
|
21
|
+
import '@uninterface/backend/font.css'
|
|
22
|
+
import '@uninterface/backend/style.css'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
To select Uninterface default · Bundled, change only the first line:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import '@uninterface/fonts/font-bundled.css'
|
|
29
|
+
import '@uninterface/backend/style.css'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
3. For either Network choice, permit `https://cdn.jsdelivr.net` in applicable CSP `style-src`, `style-src-elem` and `font-src` sources, alongside existing application sources. Font CSS and WOFF2 subsets are fetched from this third-party CDN using pinned Fontsource versions. No HTML font link, loader script or API key is required; the build emits no font binaries.
|
|
33
|
+
4. For either Bundled choice, build normally and deploy all generated CSS and font assets. Permit their asset origin in `font-src`. These entries make no CDN font requests. Fontsource dependencies provide the files; no separate font installation is required after the selected packages are installed.
|
|
34
|
+
5. Check actual font requests and rendered faces on ordinary content, controls and popup surfaces. Test network failure: unavailable fonts fall back to system fonts, without guaranteeing the intended appearance.
|
|
35
|
+
|
|
36
|
+
Use the same order when composing an application stylesheet:
|
|
37
|
+
|
|
38
|
+
```css
|
|
39
|
+
@import '@uninterface/fonts/font.css';
|
|
40
|
+
@import '@uninterface/backend/style.css';
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Keep CSS imports before ordinary rules. Font entries own family selection, language fallbacks and delivery; `style.css` owns component styling and native font-token mapping. It consumes the selected set without replacing it. Network and Bundled use identical families for the selected set. Importing multiple font entries is unsupported. The demo explicitly uses Backend default · Network.
|
|
44
|
+
|
|
45
|
+
## System or application-owned fonts
|
|
46
|
+
|
|
47
|
+
For system fonts without downloads, omit the font entry:
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
import '@uninterface/backend/style.css'
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The backend uses `system-ui, sans-serif` for ordinary interface text and controls. No selected font set, remote font stylesheet or bundled font binary is introduced by this import. Explicit code/monospace content retains its semantics.
|
|
54
|
+
|
|
55
|
+
For another provider or your own font files, load its CSS before the backend stylesheet and set an application override after the imports:
|
|
56
|
+
|
|
57
|
+
```css
|
|
58
|
+
/* Put your provider's font CSS import here if needed. */
|
|
59
|
+
@import '@uninterface/backend/style.css';
|
|
60
|
+
|
|
61
|
+
:root {
|
|
62
|
+
--uninterface-font-family: 'Your Application Font', system-ui, sans-serif;
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Supply the matching licensed faces, weights and language coverage yourself. The override replaces the complete stack, including Chinese fallbacks, and takes precedence over either selected set. It is inherited across language boundaries. Scope it to an application-owned language boundary (for example, an element with `lang="en"`) if needed, ensuring it also reaches surfaces teleported outside that scope. Setting this property does not remove an already imported font entry's declarations or network requests; omit that entry when supplying your own fonts.
|
|
67
|
+
|
|
68
|
+
## Language, weights and loading
|
|
69
|
+
|
|
70
|
+
All four choices supply Noto Sans SC/TC Variable upright faces. SC is the default Chinese fallback; zh-Hant, zh-TW, zh-HK and zh-MO boundaries select TC. Set correct document and content `lang` attributes. Teleported content must carry its owning language when different from the document. Font delivery does not inspect business values.
|
|
71
|
+
|
|
72
|
+
Latin normal/italic faces and Chinese upright faces cover weights 100–900. The CSS names include the `Variable` suffix. CJK italics may be synthesized. Fonts use `font-display: swap` and Unicode subsetting; browsers request subsets needed by visible characters. Text can change size after loading, so wait for relevant fonts before measuring layout or capturing screenshots.
|
|
73
|
+
|
|
74
|
+
The shared Uninterface set uses Noto Sans Variable, with Latin, Latin extensions, Greek, Cyrillic, Vietnamese and Devanagari subsets, plus SC/TC. The initial language acceptance target is English, Simplified Chinese and Traditional Chinese. Included subsets do not establish complete shaping/layout acceptance. Japanese/Korean regional selection and Arabic/Hebrew/Thai families are not yet supplied; unsupported scripts use platform fallback. This choice does not introduce a font-role strategy or serif set, and preserves code/monospace semantics.
|
|
75
|
+
|
|
76
|
+
Bundled backend sets emit approximately 8.9–9.4 MB of font assets; the shared set emits approximately 9.7 MB, mostly Chinese subsets. These are deployment sizes, not first-page transfer sizes. Network entries emit no font binaries. Fontsource packages remain installed dependencies of their owning backend/font package regardless of delivery; the shared font package is optional for applications choosing backend fonts. Cache deployed assets and retain licenses.
|
|
77
|
+
|
|
78
|
+
## Licenses and versions
|
|
79
|
+
|
|
80
|
+
- [public-sans license](font-licenses/public-sans.txt): `@fontsource-variable/public-sans` 5.3.0, SIL Open Font License 1.1.
|
|
81
|
+
- [noto-sans-sc license](font-licenses/noto-sans-sc.txt): `@fontsource-variable/noto-sans-sc` 5.3.1, SIL Open Font License 1.1.
|
|
82
|
+
- [noto-sans-tc license](font-licenses/noto-sans-tc.txt): `@fontsource-variable/noto-sans-tc` 5.3.1, SIL Open Font License 1.1.
|
|
83
|
+
|
|
84
|
+
The optional `@uninterface/fonts` package owns the shared Noto Sans/SC/TC licenses and pinned dependencies.
|
|
85
|
+
|
|
86
|
+
## Verification and responsibility
|
|
87
|
+
|
|
88
|
+
Checks cover all four choices with font-first JavaScript imports and CSS imports: Network builds keep remote imports before style rules without emitting fonts; Bundled builds contain only the selected set's resolved WOFF2 assets, weights and italic faces. Backend styles alone emit no fonts or CDN requests. Browser acceptance additionally checks actual face loading, language boundaries, ordinary text/controls, popups, overrides, system-only operation and failed-network fallback. Hosted tests may intercept requests with exact pinned package bytes; these do not establish live CDN availability or visual acceptance.
|
|
89
|
+
|
|
90
|
+
Font providers own family selection, delivery declarations and licenses. Backends map selection into native tokens and preserve component weight semantics. Applications choose a font entry, declare languages, configure CSP/caching, deploy local assets and test real content in their supported browsers. Computed weight alone does not establish that a font loaded; font loading alone does not establish accessibility conformance.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
Arabic interface messages are available through `ar`; the supplied font entries do not yet bundle or download a dedicated Arabic family. Arabic glyphs use system fallback. Applications can supply an Arabic-capable font through their typography configuration; verify actual shaping and loaded fonts in the target browser.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const backend = { "name": "@nuxt/ui", "version": "4.12.0" };
|
|
2
|
+
const provides = ["field.feedback.v1", "input.text.v1", "input.text.readonly.v1", "input.text.password.v1", "input.text.multiline.v1", "input.checkbox.v1", "input.checkbox.tristate.v1", "input.radio-group.v1", "input.segmented-select.v1", "input.checkbox-group.v1", "input.select.single.v1", "actions.v1", "layout.linear.v1", "layout.division.v1", "layout.reactive.v1", "layout.wrap.v1", "layout.scroll.v1", "button.color.v1", "button.variant.v1", "button.loading.v1", "form.reset.v1", "layout.align.v1", "layout.baseline.v1", "app.root.v1", "navbar.v1", "content.inset.v1", "content.scroll.v1", "hosting.viewport.v1", "layout.region-scroll.v1", "input.select.source.v1", "menu.v1", "navigation.menu.v1", "theme.colors.v1", "icon.catalogue.v1", "icon.size.v1", "i18n.native.v1", "layout.spacing.v1", "theme.color-mode.v1", "control.focus.v1", "collection.editor-focus.v1", "strategy.control-size.v1", "strategy.field-labels.v1", "strategy.required-annotations.v1", "strategy.field-help.v1", "strategy.validation-failure.v1", "button.icon.v1", "strategy.button-variant.v1", "strategy.button-width.v1", "card.v1", "strategy.hierarchy-level.v1", "card.color.v1", "strategy.card-presentation.v1", "focus.presentation.v1", "layout.framing.v1", "layout.resize.v1", "stacking.dynamic.v1", "modal.v1", "modal.width.v1", "input.select.multiple.v1", "notice.v1", "notice.color.v1", "notice.variant.v1", "notice.icon.v1", "badge.v1", "key-value.v1", "tabs.v1", "collapsible.v1", "native.content.v1", "input.switch.v1", "input.text.password-reveal.v1", "link.v1", "breadcrumbs.v1", "tooltip.v1", "suggestions.v1", "input.file.v1", "file.preview.v1", "file.collection.v1", "input.temporal.v1", "input.frame.v1", "input.frame.cooperation.v1", "input.frame.sizing.v1", "input.frame.min-width.v1", "input.text.search.v1", "upload.region.v2", "upload.progress.v1", "image.preview.v1", "preview.region.v1", "list.view.v1", "table.view.v1", "table.column-sort.v1", "table.column-filter.v1", "table.column-sizing.v1", "table.column-alignment.v1", "table.column-content.v1", "table.footer.v1", "paginator.view.v1", "paginator.size-select.v1", "paginator.jumper.v1", "collection.view.v1", "collection.footer.v1", "collection.header.v1", "loading.indicator.v1", "empty.v1", "loading.region.v1", "drawer.v1", "popover.v1", "notice.binding.v1", "feedback.floating.v1", "floating.v1", "drawer.docked.v1", "drawer.resize.v1", "strategy.collection-action-variant.v1", "table.summary.v1", "collection.summary.v1", "form.height.v1", "modal.content-scroll.v1", "table.add-row.v1", "progress.bar.v1"];
|
|
3
|
+
const manifest = {
|
|
4
|
+
backend,
|
|
5
|
+
provides
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
backend,
|
|
9
|
+
manifest as default,
|
|
10
|
+
provides
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const name = "@uninterface/backend-nuxt-ui";
|
|
2
|
+
const version = "4.12.0-alpha1";
|
|
3
|
+
const description = "Nuxt UI presentation backend for Uninterface.";
|
|
4
|
+
const metadata = {
|
|
5
|
+
name,
|
|
6
|
+
version,
|
|
7
|
+
description
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
metadata as default,
|
|
11
|
+
description,
|
|
12
|
+
name,
|
|
13
|
+
version
|
|
14
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent, inject, computed, provide, toRef, openBlock, createBlock, unref, useId, withCtx, createVNode, renderSlot } from "vue";
|
|
2
|
+
import { ConfigProvider, TooltipProvider } from "reka-ui";
|
|
3
|
+
import UOverlayProvider from "@nuxt/ui/components/OverlayProvider.vue";
|
|
4
|
+
import { localeContextInjectionKey } from "@nuxt/ui/composables/useLocale";
|
|
5
|
+
import { portalTargetInjectionKey } from "@nuxt/ui/composables/usePortal";
|
|
6
|
+
import en from "@nuxt/ui/runtime/locale/en.js";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "AppProviders",
|
|
9
|
+
props: {
|
|
10
|
+
locale: {},
|
|
11
|
+
dir: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const parentLocale = inject(localeContextInjectionKey, void 0);
|
|
16
|
+
const locale = computed(() => ({
|
|
17
|
+
...props.locale || parentLocale?.value || en,
|
|
18
|
+
dir: props.dir
|
|
19
|
+
}));
|
|
20
|
+
provide(localeContextInjectionKey, locale);
|
|
21
|
+
provide(
|
|
22
|
+
portalTargetInjectionKey,
|
|
23
|
+
toRef(() => "body")
|
|
24
|
+
);
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createBlock(unref(ConfigProvider), {
|
|
27
|
+
"use-id": useId,
|
|
28
|
+
dir: __props.dir,
|
|
29
|
+
locale: locale.value.code
|
|
30
|
+
}, {
|
|
31
|
+
default: withCtx(() => [
|
|
32
|
+
createVNode(unref(TooltipProvider), null, {
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
renderSlot(_ctx.$slots, "default"),
|
|
35
|
+
createVNode(UOverlayProvider)
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
/* FORWARDED */
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
/* FORWARDED */
|
|
43
|
+
}, 8, ["dir", "locale"]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
_sfc_main as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { useFieldTheme } from "./fieldTheme.js";
|
|
3
|
+
const _hoisted_1 = { class: "nuxt-checkable-description" };
|
|
4
|
+
const _hoisted_2 = ["id"];
|
|
5
|
+
const _hoisted_3 = ["id"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "CheckableFeedback",
|
|
8
|
+
props: {
|
|
9
|
+
id: {},
|
|
10
|
+
feedback: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const theme = useFieldTheme(() => props.feedback.size);
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
17
|
+
__props.feedback.help ? (openBlock(), createElementBlock("span", {
|
|
18
|
+
key: 0,
|
|
19
|
+
id: `${__props.id}-help`,
|
|
20
|
+
class: normalizeClass([unref(theme).help(), "nuxt-checkable-help"])
|
|
21
|
+
}, toDisplayString(__props.feedback.help), 11, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
22
|
+
__props.feedback.issue ? (openBlock(), createElementBlock("span", {
|
|
23
|
+
key: 1,
|
|
24
|
+
id: `${__props.id}-issue`,
|
|
25
|
+
class: normalizeClass([unref(theme).error(), "nuxt-checkable-error"])
|
|
26
|
+
}, toDisplayString(__props.feedback.issue), 11, _hoisted_3)) : createCommentVNode("v-if", true)
|
|
27
|
+
]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
_sfc_main as default
|
|
33
|
+
};
|