@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,578 @@
|
|
|
1
|
+
import { defineComponent, useSlots, computed, ref, h, watchPostEffect, onMounted, onUpdated, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot, createCommentVNode, mergeProps, unref, withDirectives, createVNode, withCtx, createSlots, normalizeProps, guardReactiveProps, vShow, toDisplayString, createBlock } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./TableFilterButton2.vue.js";
|
|
3
|
+
import _sfc_main$4 from "./TableAddRow2.vue.js";
|
|
4
|
+
import { useUiZView, useUiCollectionView, useUiTableSizing, useUiTableAddRow, useUiLoadingSurface } from "@uninterface/uninterface/backend";
|
|
5
|
+
import _sfc_main$2 from "./UiEmpty2.vue.js";
|
|
6
|
+
import _sfc_main$5 from "./UiLoadingRegion2.vue.js";
|
|
7
|
+
import CommonSort from "./icons/sort.vue.js";
|
|
8
|
+
import CommonSortAscending from "./icons/sort-ascending.vue.js";
|
|
9
|
+
import CommonSortDescending from "./icons/sort-descending.vue.js";
|
|
10
|
+
import UTable from "@nuxt/ui/components/Table.vue";
|
|
11
|
+
import UButton from "@nuxt/ui/components/Button.vue";
|
|
12
|
+
import UCheckbox from "@nuxt/ui/components/Checkbox.vue";
|
|
13
|
+
import _sfc_main$3 from "./CollectionStatus2.vue.js";
|
|
14
|
+
const _hoisted_1 = ["data-collection-full"];
|
|
15
|
+
const _hoisted_2 = ["data-full", "data-loading-empty", "data-scroll", "data-column-fit", "data-add-row-compact", "role", "aria-label", "tabindex"];
|
|
16
|
+
const _hoisted_3 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
"data-collection-continuation": ""
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_4 = ["colspan"];
|
|
21
|
+
const _hoisted_5 = {
|
|
22
|
+
key: 1,
|
|
23
|
+
"data-collection-add-track": "",
|
|
24
|
+
class: "nuxt-table-add-track"
|
|
25
|
+
};
|
|
26
|
+
const _hoisted_6 = ["colspan"];
|
|
27
|
+
const _hoisted_7 = { key: 2 };
|
|
28
|
+
const _hoisted_8 = {
|
|
29
|
+
key: 0,
|
|
30
|
+
role: "status"
|
|
31
|
+
};
|
|
32
|
+
const _hoisted_9 = {
|
|
33
|
+
key: 3,
|
|
34
|
+
class: "nuxt-collection-status"
|
|
35
|
+
};
|
|
36
|
+
const _hoisted_10 = {
|
|
37
|
+
class: "nuxt-collection-announcement",
|
|
38
|
+
"data-ui-loading-status": "",
|
|
39
|
+
role: "status",
|
|
40
|
+
"aria-atomic": "true"
|
|
41
|
+
};
|
|
42
|
+
const _hoisted_11 = {
|
|
43
|
+
key: 1,
|
|
44
|
+
class: "nuxt-table-footer"
|
|
45
|
+
};
|
|
46
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
|
+
...{ inheritAttrs: false },
|
|
48
|
+
__name: "UiTable",
|
|
49
|
+
props: {
|
|
50
|
+
addRow: { type: Boolean },
|
|
51
|
+
showSortPriority: { type: Boolean },
|
|
52
|
+
columns: {},
|
|
53
|
+
sizeConstraintLabel: {},
|
|
54
|
+
selectPageLabel: {},
|
|
55
|
+
pageSelected: { type: Boolean },
|
|
56
|
+
pageMixed: { type: Boolean },
|
|
57
|
+
canSelectPage: { type: Boolean },
|
|
58
|
+
selectPage: { type: Function },
|
|
59
|
+
recoverFocus: { type: Function },
|
|
60
|
+
dataSummary: {},
|
|
61
|
+
rows: {},
|
|
62
|
+
label: {},
|
|
63
|
+
height: {},
|
|
64
|
+
scroll: {},
|
|
65
|
+
selection: {},
|
|
66
|
+
disabled: { type: Boolean },
|
|
67
|
+
busy: { type: Boolean },
|
|
68
|
+
loading: { type: Boolean },
|
|
69
|
+
appending: { type: Boolean },
|
|
70
|
+
empty: { type: Boolean },
|
|
71
|
+
failed: { type: Boolean },
|
|
72
|
+
failurePlacement: {},
|
|
73
|
+
error: {},
|
|
74
|
+
message: {},
|
|
75
|
+
showSummary: { type: Boolean },
|
|
76
|
+
summary: { type: Boolean },
|
|
77
|
+
announcement: {},
|
|
78
|
+
retryLabel: {},
|
|
79
|
+
canRetry: { type: Boolean },
|
|
80
|
+
retry: { type: Function },
|
|
81
|
+
infinityComplete: { type: Boolean },
|
|
82
|
+
infinite: { type: Boolean },
|
|
83
|
+
moreLabel: {},
|
|
84
|
+
canLoadMore: { type: Boolean },
|
|
85
|
+
hasMore: { type: Boolean },
|
|
86
|
+
loadMore: { type: Function },
|
|
87
|
+
observe: { type: Function }
|
|
88
|
+
},
|
|
89
|
+
setup(__props) {
|
|
90
|
+
useUiZView();
|
|
91
|
+
const props = __props;
|
|
92
|
+
const slots = useSlots();
|
|
93
|
+
const { root, target, sentinel, rowRef, id, failure } = useUiCollectionView(props);
|
|
94
|
+
const sizing = useUiTableSizing(props, root, id, { minimumHeader: true });
|
|
95
|
+
const addGeometry = useUiTableAddRow({
|
|
96
|
+
enabled: () => Boolean(props.addRow),
|
|
97
|
+
bounded: () => props.height === "full",
|
|
98
|
+
host: () => root.value,
|
|
99
|
+
summary: () => target.value?.querySelector("[data-collection-summary]"),
|
|
100
|
+
header: () => target.value?.querySelector("thead"),
|
|
101
|
+
row: () => target.value?.querySelector(
|
|
102
|
+
"tbody tr:not([data-collection-add-track])"
|
|
103
|
+
)
|
|
104
|
+
});
|
|
105
|
+
const addTracks = computed(() => [
|
|
106
|
+
...props.selection === "none" ? [] : [sizing.selectionWidth.value],
|
|
107
|
+
...props.columns.map((column) => sizing.width(column.key))
|
|
108
|
+
]);
|
|
109
|
+
const addKeys = computed(() => [
|
|
110
|
+
...props.selection === "none" ? [] : ["selection"],
|
|
111
|
+
...props.columns.map((column) => column.key)
|
|
112
|
+
]);
|
|
113
|
+
const native = ref();
|
|
114
|
+
const rowId = (row) => `${typeof row.key}:${row.key}`;
|
|
115
|
+
const definitions = /* @__PURE__ */ new Map();
|
|
116
|
+
const selectionColumn = {
|
|
117
|
+
id: "selection",
|
|
118
|
+
meta: {
|
|
119
|
+
style: {
|
|
120
|
+
th: () => ({ width: `${sizing.selectionWidth.value}px` }),
|
|
121
|
+
td: () => ({ width: `${sizing.selectionWidth.value}px` })
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
header: () => props.selection === "multiple" ? h(UCheckbox, {
|
|
125
|
+
"aria-label": props.selectPageLabel,
|
|
126
|
+
modelValue: props.pageMixed ? "indeterminate" : props.pageSelected,
|
|
127
|
+
disabled: !props.canSelectPage,
|
|
128
|
+
"onUpdate:modelValue": (value) => props.selectPage(value === true)
|
|
129
|
+
}) : props.selectPageLabel,
|
|
130
|
+
cell: ({ row }) => h(UCheckbox, {
|
|
131
|
+
"aria-label": row.original.selectLabel,
|
|
132
|
+
modelValue: row.original.context.selected,
|
|
133
|
+
disabled: !row.original.context.selectable,
|
|
134
|
+
"onUpdate:modelValue": (value) => row.original.context.requestSelected(value === true)
|
|
135
|
+
})
|
|
136
|
+
};
|
|
137
|
+
const columns = computed(() => [
|
|
138
|
+
...props.selection === "none" ? [] : [selectionColumn],
|
|
139
|
+
...props.columns.map(({ key }) => {
|
|
140
|
+
let definition = definitions.get(key);
|
|
141
|
+
if (!definition) {
|
|
142
|
+
definition = {
|
|
143
|
+
id: `column:${key}`,
|
|
144
|
+
enableSorting: false,
|
|
145
|
+
enableColumnFilter: false,
|
|
146
|
+
meta: {
|
|
147
|
+
style: {
|
|
148
|
+
th: () => sizing.cellStyle(key),
|
|
149
|
+
td: () => sizing.cellStyle(key)
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
header: () => {
|
|
153
|
+
const index = props.columns.findIndex(
|
|
154
|
+
(column2) => column2.key === key
|
|
155
|
+
);
|
|
156
|
+
const column = props.columns[index];
|
|
157
|
+
if (!column) return null;
|
|
158
|
+
return h(
|
|
159
|
+
"div",
|
|
160
|
+
{
|
|
161
|
+
ref: sizing.contentRef(key),
|
|
162
|
+
class: "nuxt-table-header",
|
|
163
|
+
style: { ...sizing.contentStyle(key), display: "inline-flex" }
|
|
164
|
+
},
|
|
165
|
+
[
|
|
166
|
+
column.sortable ? h(
|
|
167
|
+
UButton,
|
|
168
|
+
{
|
|
169
|
+
type: "button",
|
|
170
|
+
variant: "ghost",
|
|
171
|
+
class: "nuxt-table-sort",
|
|
172
|
+
color: "neutral",
|
|
173
|
+
disabled: props.disabled,
|
|
174
|
+
"aria-describedby": column.sortDescription ? `${id}-sort-${index}` : void 0,
|
|
175
|
+
onClick: () => column.requestSort()
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
default: () => [
|
|
179
|
+
slots.label?.({ column }),
|
|
180
|
+
h(
|
|
181
|
+
column.sort === "ascending" ? CommonSortAscending : column.sort === "descending" ? CommonSortDescending : CommonSort,
|
|
182
|
+
{
|
|
183
|
+
"aria-hidden": "true",
|
|
184
|
+
class: "nuxt-table-sort-icon"
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
props.showSortPriority && column.sort ? h(
|
|
188
|
+
"span",
|
|
189
|
+
{
|
|
190
|
+
class: "nuxt-table-sort-priority",
|
|
191
|
+
"data-ui-sort-priority": "",
|
|
192
|
+
"aria-hidden": "true"
|
|
193
|
+
},
|
|
194
|
+
String(column.sortPriority)
|
|
195
|
+
) : null
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
) : slots.label?.({ column }),
|
|
199
|
+
props.showSortPriority && column.sort ? h(
|
|
200
|
+
"span",
|
|
201
|
+
{
|
|
202
|
+
onClick: (event) => event.stopPropagation(),
|
|
203
|
+
onKeydown: (event) => event.stopPropagation()
|
|
204
|
+
},
|
|
205
|
+
slots["sort-actions"]?.({ column })
|
|
206
|
+
) : null,
|
|
207
|
+
column.sortDescription ? h(
|
|
208
|
+
"span",
|
|
209
|
+
{
|
|
210
|
+
id: `${id}-sort-${index}`,
|
|
211
|
+
class: "nuxt-collection-announcement"
|
|
212
|
+
},
|
|
213
|
+
column.sortDescription
|
|
214
|
+
) : null,
|
|
215
|
+
column.filter ? slots.filter?.({ column, trigger: _sfc_main$1 }) : null,
|
|
216
|
+
sizing.handle(key) ? h("span", {
|
|
217
|
+
...sizing.handle(key),
|
|
218
|
+
class: "nuxt-column-resizer"
|
|
219
|
+
}) : null
|
|
220
|
+
]
|
|
221
|
+
);
|
|
222
|
+
},
|
|
223
|
+
cell: ({ row }) => {
|
|
224
|
+
const column = props.columns.find((column2) => column2.key === key);
|
|
225
|
+
return column ? h(
|
|
226
|
+
"div",
|
|
227
|
+
{
|
|
228
|
+
ref: sizing.contentRef(key, row.original.key),
|
|
229
|
+
class: "nuxt-table-cell-content",
|
|
230
|
+
style: sizing.contentStyle(key)
|
|
231
|
+
},
|
|
232
|
+
[
|
|
233
|
+
slots.cell?.({ row: row.original, column }),
|
|
234
|
+
row.original.issue && column.key === props.columns[props.columns.length - 1]?.key ? h("p", row.original.issue) : null
|
|
235
|
+
]
|
|
236
|
+
) : null;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
definitions.set(key, definition);
|
|
240
|
+
}
|
|
241
|
+
if (props.dataSummary)
|
|
242
|
+
definition.footer = () => h(
|
|
243
|
+
"div",
|
|
244
|
+
{
|
|
245
|
+
ref: key === props.columns[0]?.key && (props.dataSummary?.labelColumnSpan ?? 1) > 1 ? void 0 : sizing.summaryRef(key),
|
|
246
|
+
style: key === props.columns[0]?.key && (props.dataSummary?.labelColumnSpan ?? 1) > 1 ? { minWidth: "0" } : sizing.contentStyle(key)
|
|
247
|
+
},
|
|
248
|
+
slots["summary-cell"]?.({
|
|
249
|
+
column: props.columns.find((column) => column.key === key)
|
|
250
|
+
})
|
|
251
|
+
);
|
|
252
|
+
else delete definition.footer;
|
|
253
|
+
return definition;
|
|
254
|
+
})
|
|
255
|
+
]);
|
|
256
|
+
function sync() {
|
|
257
|
+
const table = native.value?.tableRef;
|
|
258
|
+
target.value = table;
|
|
259
|
+
if (!table) return;
|
|
260
|
+
const footer = table.querySelector("tfoot");
|
|
261
|
+
if (footer && props.dataSummary) {
|
|
262
|
+
footer.setAttribute("data-collection-summary", "");
|
|
263
|
+
footer.setAttribute("data-summary-status", props.dataSummary.status);
|
|
264
|
+
footer.setAttribute("aria-label", props.dataSummary.label);
|
|
265
|
+
[...footer.querySelectorAll('tr[data-slot="tr"] > th')].slice(props.selection === "none" ? 0 : 1).forEach((cell, index) => {
|
|
266
|
+
const column = props.columns[index];
|
|
267
|
+
if (column) {
|
|
268
|
+
const span = props.dataSummary?.labelColumnSpan ?? 1;
|
|
269
|
+
cell.colSpan = index === 0 ? span : 1;
|
|
270
|
+
cell.hidden = index > 0 && index < span;
|
|
271
|
+
cell.setAttribute(
|
|
272
|
+
"headers",
|
|
273
|
+
(index === 0 ? props.columns.slice(0, span) : [column]).map((column2) => sizing.columnId(column2.key)).join(" ")
|
|
274
|
+
);
|
|
275
|
+
if (index === 0) {
|
|
276
|
+
cell.style.width = span > 1 ? "" : sizing.cellStyle(column.key).width;
|
|
277
|
+
cell.style.textAlign = span > 1 ? "start" : column.align ?? "";
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
table.setAttribute("aria-label", props.label);
|
|
283
|
+
table.setAttribute("aria-busy", String(props.busy));
|
|
284
|
+
table.tabIndex = -1;
|
|
285
|
+
Object.assign(table.style, sizing.tableStyle.value);
|
|
286
|
+
const headers = [...table.querySelectorAll("thead th")].slice(
|
|
287
|
+
props.selection === "none" ? 0 : 1
|
|
288
|
+
);
|
|
289
|
+
headers.forEach((header, index) => {
|
|
290
|
+
const column = props.columns[index];
|
|
291
|
+
if (column) header.id = sizing.columnId(column.key);
|
|
292
|
+
if (column?.primary && column.sort)
|
|
293
|
+
header.setAttribute("aria-sort", column.sort);
|
|
294
|
+
else header.removeAttribute("aria-sort");
|
|
295
|
+
});
|
|
296
|
+
const elements = [...table.querySelectorAll('tbody tr[data-slot="tr"]')];
|
|
297
|
+
props.rows.forEach((row, index) => rowRef(row.key, elements[index] ?? null));
|
|
298
|
+
}
|
|
299
|
+
watchPostEffect(sync);
|
|
300
|
+
onMounted(sync);
|
|
301
|
+
onUpdated(sync);
|
|
302
|
+
const loadingSurface = {
|
|
303
|
+
...useUiLoadingSurface(() => root.value),
|
|
304
|
+
// Keep header filter anchors available while a live query refreshes rows.
|
|
305
|
+
interactionTarget: computed(
|
|
306
|
+
() => target.value?.querySelector("tbody") ?? root.value
|
|
307
|
+
)
|
|
308
|
+
};
|
|
309
|
+
return (_ctx, _cache) => {
|
|
310
|
+
return openBlock(), createElementBlock(
|
|
311
|
+
Fragment,
|
|
312
|
+
null,
|
|
313
|
+
[
|
|
314
|
+
createElementVNode("div", {
|
|
315
|
+
class: "nuxt-collection-frame",
|
|
316
|
+
"data-collection-full": __props.height === "full" || void 0
|
|
317
|
+
}, [
|
|
318
|
+
__props.failed && __props.failurePlacement === "replacement" && !__props.loading ? (openBlock(), createElementBlock(
|
|
319
|
+
"div",
|
|
320
|
+
{
|
|
321
|
+
key: 0,
|
|
322
|
+
ref_key: "failure",
|
|
323
|
+
ref: failure,
|
|
324
|
+
class: "nuxt-collection-failure",
|
|
325
|
+
"data-collection-failure": "replacement"
|
|
326
|
+
},
|
|
327
|
+
[
|
|
328
|
+
renderSlot(_ctx.$slots, "error", {
|
|
329
|
+
placement: __props.failurePlacement,
|
|
330
|
+
error: __props.error,
|
|
331
|
+
retry: __props.retry,
|
|
332
|
+
canRetry: __props.canRetry
|
|
333
|
+
})
|
|
334
|
+
],
|
|
335
|
+
512
|
|
336
|
+
/* NEED_PATCH */
|
|
337
|
+
)) : createCommentVNode("v-if", true),
|
|
338
|
+
createElementVNode("div", mergeProps({
|
|
339
|
+
ref_key: "root",
|
|
340
|
+
ref: root
|
|
341
|
+
}, _ctx.$attrs, {
|
|
342
|
+
class: "nuxt-collection",
|
|
343
|
+
"data-full": __props.height === "full" || void 0,
|
|
344
|
+
"data-loading-empty": __props.loading && __props.rows.length === 0 || void 0,
|
|
345
|
+
"data-scroll": __props.scroll,
|
|
346
|
+
"data-column-fit": unref(sizing).fits.value,
|
|
347
|
+
"data-add-row-compact": unref(addGeometry).compact.value || void 0,
|
|
348
|
+
role: __props.scroll !== "none" ? "region" : void 0,
|
|
349
|
+
"aria-label": __props.scroll !== "none" ? __props.label : void 0,
|
|
350
|
+
tabindex: __props.scroll !== "none" ? 0 : void 0
|
|
351
|
+
}), [
|
|
352
|
+
createCommentVNode(" UTable has fragment roots; directives must attach to a real element.\n Keep the native table mounted to preserve unfinished cell drafts. "),
|
|
353
|
+
withDirectives(createElementVNode(
|
|
354
|
+
"div",
|
|
355
|
+
null,
|
|
356
|
+
[
|
|
357
|
+
createVNode(UTable, {
|
|
358
|
+
ref_key: "native",
|
|
359
|
+
ref: native,
|
|
360
|
+
class: "nuxt-table",
|
|
361
|
+
caption: __props.label,
|
|
362
|
+
sticky: __props.height === "full" ? __props.dataSummary ? true : "header" : false,
|
|
363
|
+
ui: {
|
|
364
|
+
caption: "sr-only",
|
|
365
|
+
...__props.dataSummary ? { tfoot: "bg-default" } : {}
|
|
366
|
+
},
|
|
367
|
+
data: [...__props.rows],
|
|
368
|
+
columns: columns.value,
|
|
369
|
+
"get-row-id": rowId,
|
|
370
|
+
"get-sub-rows": () => void 0,
|
|
371
|
+
"sorting-options": { manualSorting: true },
|
|
372
|
+
"column-filters-options": { manualFiltering: true },
|
|
373
|
+
"pagination-options": { manualPagination: true },
|
|
374
|
+
"expanded-options": { manualExpanding: true },
|
|
375
|
+
"auto-reset-all": false,
|
|
376
|
+
"watch-options": { deep: false }
|
|
377
|
+
}, {
|
|
378
|
+
"body-bottom": withCtx(() => [
|
|
379
|
+
__props.infinite ? (openBlock(), createElementBlock("tr", _hoisted_3, [
|
|
380
|
+
createElementVNode("td", {
|
|
381
|
+
colspan: Math.max(1, columns.value.length)
|
|
382
|
+
}, [
|
|
383
|
+
__props.failed && __props.failurePlacement === "append" && !__props.loading ? (openBlock(), createElementBlock(
|
|
384
|
+
"div",
|
|
385
|
+
{
|
|
386
|
+
key: 0,
|
|
387
|
+
ref_key: "failure",
|
|
388
|
+
ref: failure,
|
|
389
|
+
class: "nuxt-collection-failure",
|
|
390
|
+
"data-collection-failure": "append"
|
|
391
|
+
},
|
|
392
|
+
[
|
|
393
|
+
renderSlot(_ctx.$slots, "error", {
|
|
394
|
+
placement: __props.failurePlacement,
|
|
395
|
+
error: __props.error,
|
|
396
|
+
retry: __props.retry,
|
|
397
|
+
canRetry: __props.canRetry
|
|
398
|
+
})
|
|
399
|
+
],
|
|
400
|
+
512
|
|
401
|
+
/* NEED_PATCH */
|
|
402
|
+
)) : createCommentVNode("v-if", true),
|
|
403
|
+
createElementVNode(
|
|
404
|
+
"div",
|
|
405
|
+
{
|
|
406
|
+
ref_key: "sentinel",
|
|
407
|
+
ref: sentinel,
|
|
408
|
+
"aria-hidden": "true",
|
|
409
|
+
class: "nuxt-collection-sentinel"
|
|
410
|
+
},
|
|
411
|
+
null,
|
|
412
|
+
512
|
|
413
|
+
/* NEED_PATCH */
|
|
414
|
+
),
|
|
415
|
+
createVNode(
|
|
416
|
+
_sfc_main$3,
|
|
417
|
+
mergeProps(props, {
|
|
418
|
+
"suppress-announcement": "",
|
|
419
|
+
"empty-in-body": ""
|
|
420
|
+
}),
|
|
421
|
+
createSlots({
|
|
422
|
+
_: 2
|
|
423
|
+
/* DYNAMIC */
|
|
424
|
+
}, [
|
|
425
|
+
_ctx.$slots["infinity-loading"] ? {
|
|
426
|
+
name: "infinity-loading",
|
|
427
|
+
fn: withCtx((values) => [
|
|
428
|
+
renderSlot(_ctx.$slots, "infinity-loading", normalizeProps(guardReactiveProps(values)))
|
|
429
|
+
]),
|
|
430
|
+
key: "0"
|
|
431
|
+
} : void 0,
|
|
432
|
+
_ctx.$slots["infinity-complete"] ? {
|
|
433
|
+
name: "infinity-complete",
|
|
434
|
+
fn: withCtx((values) => [
|
|
435
|
+
renderSlot(_ctx.$slots, "infinity-complete", normalizeProps(guardReactiveProps(values)))
|
|
436
|
+
]),
|
|
437
|
+
key: "1"
|
|
438
|
+
} : void 0
|
|
439
|
+
]),
|
|
440
|
+
1040
|
|
441
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
442
|
+
)
|
|
443
|
+
], 8, _hoisted_4)
|
|
444
|
+
])) : createCommentVNode("v-if", true),
|
|
445
|
+
__props.addRow ? (openBlock(), createElementBlock("tr", _hoisted_5, [
|
|
446
|
+
createElementVNode("td", {
|
|
447
|
+
colspan: Math.max(1, columns.value.length + (__props.selection === "none" ? 0 : 1))
|
|
448
|
+
}, [
|
|
449
|
+
createVNode(_sfc_main$4, {
|
|
450
|
+
tracks: addTracks.value,
|
|
451
|
+
keys: addKeys.value,
|
|
452
|
+
viewport: unref(addGeometry).viewportWidth.value
|
|
453
|
+
}, {
|
|
454
|
+
default: withCtx(() => [
|
|
455
|
+
renderSlot(_ctx.$slots, "add-row-action")
|
|
456
|
+
]),
|
|
457
|
+
_: 3
|
|
458
|
+
/* FORWARDED */
|
|
459
|
+
}, 8, ["tracks", "keys", "viewport"])
|
|
460
|
+
], 8, _hoisted_6)
|
|
461
|
+
])) : createCommentVNode("v-if", true)
|
|
462
|
+
]),
|
|
463
|
+
empty: withCtx(() => [
|
|
464
|
+
__props.failed && __props.failurePlacement === "initial" && !__props.loading ? (openBlock(), createElementBlock(
|
|
465
|
+
"div",
|
|
466
|
+
{
|
|
467
|
+
key: 0,
|
|
468
|
+
ref_key: "failure",
|
|
469
|
+
ref: failure,
|
|
470
|
+
class: "nuxt-collection-failure",
|
|
471
|
+
"data-collection-failure": "initial"
|
|
472
|
+
},
|
|
473
|
+
[
|
|
474
|
+
renderSlot(_ctx.$slots, "error", {
|
|
475
|
+
placement: __props.failurePlacement,
|
|
476
|
+
error: __props.error,
|
|
477
|
+
retry: __props.retry,
|
|
478
|
+
canRetry: __props.canRetry
|
|
479
|
+
})
|
|
480
|
+
],
|
|
481
|
+
512
|
|
482
|
+
/* NEED_PATCH */
|
|
483
|
+
)) : createCommentVNode("v-if", true),
|
|
484
|
+
__props.empty ? renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
485
|
+
createVNode(_sfc_main$2, { label: __props.message }, null, 8, ["label"])
|
|
486
|
+
], void 0, 1) : (openBlock(), createElementBlock("span", _hoisted_7))
|
|
487
|
+
]),
|
|
488
|
+
_: 3
|
|
489
|
+
/* FORWARDED */
|
|
490
|
+
}, 8, ["caption", "sticky", "ui", "data", "columns"])
|
|
491
|
+
],
|
|
492
|
+
512
|
|
493
|
+
/* NEED_PATCH */
|
|
494
|
+
), [
|
|
495
|
+
[vShow, unref(sizing).fits.value]
|
|
496
|
+
]),
|
|
497
|
+
!unref(sizing).fits.value ? (openBlock(), createElementBlock(
|
|
498
|
+
"p",
|
|
499
|
+
_hoisted_8,
|
|
500
|
+
toDisplayString(__props.sizeConstraintLabel),
|
|
501
|
+
1
|
|
502
|
+
/* TEXT */
|
|
503
|
+
)) : createCommentVNode("v-if", true),
|
|
504
|
+
!__props.infinite && __props.failed && __props.failurePlacement === "append" && !__props.loading ? (openBlock(), createElementBlock(
|
|
505
|
+
"div",
|
|
506
|
+
{
|
|
507
|
+
key: 1,
|
|
508
|
+
ref_key: "failure",
|
|
509
|
+
ref: failure,
|
|
510
|
+
class: "nuxt-collection-failure",
|
|
511
|
+
"data-collection-failure": "append"
|
|
512
|
+
},
|
|
513
|
+
[
|
|
514
|
+
renderSlot(_ctx.$slots, "error", {
|
|
515
|
+
placement: __props.failurePlacement,
|
|
516
|
+
error: __props.error,
|
|
517
|
+
retry: __props.retry,
|
|
518
|
+
canRetry: __props.canRetry
|
|
519
|
+
})
|
|
520
|
+
],
|
|
521
|
+
512
|
|
522
|
+
/* NEED_PATCH */
|
|
523
|
+
)) : createCommentVNode("v-if", true),
|
|
524
|
+
!__props.infinite ? (openBlock(), createBlock(
|
|
525
|
+
_sfc_main$3,
|
|
526
|
+
mergeProps({ key: 2 }, props, { "empty-in-body": "" }),
|
|
527
|
+
createSlots({
|
|
528
|
+
_: 2
|
|
529
|
+
/* DYNAMIC */
|
|
530
|
+
}, [
|
|
531
|
+
_ctx.$slots["infinity-loading"] ? {
|
|
532
|
+
name: "infinity-loading",
|
|
533
|
+
fn: withCtx((values) => [
|
|
534
|
+
renderSlot(_ctx.$slots, "infinity-loading", normalizeProps(guardReactiveProps(values)))
|
|
535
|
+
]),
|
|
536
|
+
key: "0"
|
|
537
|
+
} : void 0,
|
|
538
|
+
_ctx.$slots["infinity-complete"] ? {
|
|
539
|
+
name: "infinity-complete",
|
|
540
|
+
fn: withCtx((values) => [
|
|
541
|
+
renderSlot(_ctx.$slots, "infinity-complete", normalizeProps(guardReactiveProps(values)))
|
|
542
|
+
]),
|
|
543
|
+
key: "1"
|
|
544
|
+
} : void 0
|
|
545
|
+
]),
|
|
546
|
+
1040
|
|
547
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
548
|
+
)) : (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
549
|
+
createElementVNode(
|
|
550
|
+
"span",
|
|
551
|
+
_hoisted_10,
|
|
552
|
+
toDisplayString(__props.announcement),
|
|
553
|
+
1
|
|
554
|
+
/* TEXT */
|
|
555
|
+
)
|
|
556
|
+
]))
|
|
557
|
+
], 16, _hoisted_2),
|
|
558
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
559
|
+
renderSlot(_ctx.$slots, "footer")
|
|
560
|
+
])) : createCommentVNode("v-if", true)
|
|
561
|
+
], 8, _hoisted_1),
|
|
562
|
+
createVNode(_sfc_main$5, {
|
|
563
|
+
surface: loadingSurface,
|
|
564
|
+
loading: __props.loading,
|
|
565
|
+
label: __props.message,
|
|
566
|
+
announce: false,
|
|
567
|
+
"manage-busy": false
|
|
568
|
+
}, null, 8, ["loading", "label"])
|
|
569
|
+
],
|
|
570
|
+
64
|
|
571
|
+
/* STABLE_FRAGMENT */
|
|
572
|
+
);
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
export {
|
|
577
|
+
_sfc_main as default
|
|
578
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, unref, createVNode, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { useUiZView, useUiNativeTabList } from "@uninterface/uninterface/backend";
|
|
3
|
+
import UTabs from "@nuxt/ui/components/Tabs.vue";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "UiTabs",
|
|
6
|
+
props: {
|
|
7
|
+
items: {},
|
|
8
|
+
label: {},
|
|
9
|
+
orientation: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["select"],
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
useUiZView();
|
|
14
|
+
const props = __props;
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const { root, keydown, focusin } = useUiNativeTabList(
|
|
17
|
+
props,
|
|
18
|
+
(key) => emit("select", key)
|
|
19
|
+
);
|
|
20
|
+
const nativeItems = computed(
|
|
21
|
+
() => props.items.map((item) => ({ ...item, value: item.key }))
|
|
22
|
+
);
|
|
23
|
+
function select(value) {
|
|
24
|
+
emit("select", String(value));
|
|
25
|
+
}
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return openBlock(), createElementBlock(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
ref_key: "root",
|
|
31
|
+
ref: root,
|
|
32
|
+
class: "nuxt-tabs",
|
|
33
|
+
onKeydownCapture: _cache[0] || (_cache[0] = //@ts-ignore
|
|
34
|
+
(...args) => unref(keydown) && unref(keydown)(...args)),
|
|
35
|
+
onFocusin: _cache[1] || (_cache[1] = //@ts-ignore
|
|
36
|
+
(...args) => unref(focusin) && unref(focusin)(...args))
|
|
37
|
+
},
|
|
38
|
+
[
|
|
39
|
+
createVNode(UTabs, {
|
|
40
|
+
items: nativeItems.value,
|
|
41
|
+
"model-value": __props.items.find((item) => item.selected)?.key,
|
|
42
|
+
orientation: __props.orientation,
|
|
43
|
+
"activation-mode": "manual",
|
|
44
|
+
content: false,
|
|
45
|
+
ui: { trigger: "nuxt-control-focus" },
|
|
46
|
+
"onUpdate:modelValue": select
|
|
47
|
+
}, {
|
|
48
|
+
default: withCtx(({ item }) => [
|
|
49
|
+
renderSlot(_ctx.$slots, "default", { item })
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
/* FORWARDED */
|
|
53
|
+
}, 8, ["items", "model-value", "orientation"])
|
|
54
|
+
],
|
|
55
|
+
544
|
|
56
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
_sfc_main as default
|
|
63
|
+
};
|