@uninterface/backend-vuetify 0.0.0-stage → 4.2.0
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 +60 -2
- package/capabilities.json +169 -0
- package/docs/README.md +47 -0
- package/docs/collections.md +214 -0
- package/docs/contract-adaptations.md +99 -0
- package/docs/customization.md +112 -0
- package/docs/examples/NativeReference.vue +203 -0
- package/docs/exports.md +30 -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/roboto.txt +93 -0
- package/docs/icon-licenses/Apache-2.0.txt +202 -0
- package/docs/icon-licenses/NOTICE.txt +3 -0
- package/docs/icon-licenses/SOURCES.md +49 -0
- package/docs/modals.md +31 -0
- package/docs/native-html.md +21 -0
- package/docs/navigation.md +25 -0
- package/docs/package-build.md +20 -0
- package/docs/presentation.md +227 -0
- package/docs/progress.md +9 -0
- package/docs/reviewed-components.md +104 -0
- package/docs/segmented-selection.md +22 -0
- package/docs/selection-feedback-panels.md +77 -0
- package/docs/setup.md +133 -0
- package/docs/strategies.md +92 -0
- package/docs/table-columns.md +33 -0
- package/docs/testing.md +44 -0
- package/docs/typography.md +93 -0
- package/esm/_virtual/_plugin-vue_export-helper.js +10 -0
- package/esm/capabilities.json.js +14 -0
- package/esm/package.json.js +14 -0
- package/esm/src/ChoiceGroup.vue.js +4 -0
- package/esm/src/ChoiceGroup2.vue.js +185 -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 +85 -0
- package/esm/src/CollectionSortLayout.vue.js +4 -0
- package/esm/src/CollectionSortLayout2.vue.js +23 -0
- package/esm/src/CollectionStatus.vue.js +4 -0
- package/esm/src/CollectionStatus2.vue.js +135 -0
- package/esm/src/CollectionSummary.vue.js +4 -0
- package/esm/src/CollectionSummary2.vue.js +70 -0
- package/esm/src/CollectionTableActions.vue.js +13 -0
- package/esm/src/DrawerDepth.vue.js +4 -0
- package/esm/src/DrawerDepth2.vue.js +28 -0
- package/esm/src/DrawerDock.vue.js +4 -0
- package/esm/src/DrawerDock2.vue.js +26 -0
- package/esm/src/EntryBranch.css +9 -0
- package/esm/src/EntryBranch.vue.js +10 -0
- package/esm/src/EntryBranch2.css +4 -0
- package/esm/src/EntryBranch2.vue.js +383 -0
- package/esm/src/EntryIcon.vue.js +4 -0
- package/esm/src/EntryIcon2.vue.js +31 -0
- package/esm/src/EntryPopup.vue.js +4 -0
- package/esm/src/EntryPopup2.vue.js +101 -0
- package/esm/src/FeedbackItem.vue.js +4 -0
- package/esm/src/FeedbackItem2.vue.js +252 -0
- package/esm/src/FeedbackViewport.vue.js +4 -0
- package/esm/src/FeedbackViewport2.vue.js +42 -0
- package/esm/src/FieldFailureTooltip.vue.js +4 -0
- package/esm/src/FieldFailureTooltip2.vue.js +101 -0
- package/esm/src/FileTypeIcon.vue.js +4 -0
- package/esm/src/FileTypeIcon2.vue.js +73 -0
- package/esm/src/FooterActions.vue.js +16 -0
- package/esm/src/NavigationTree.vue.js +4 -0
- package/esm/src/NavigationTree2.vue.js +73 -0
- package/esm/src/NavigationTreeBranch.vue.js +4 -0
- package/esm/src/NavigationTreeBranch2.vue.js +297 -0
- package/esm/src/OverlaySurface.vue.js +4 -0
- package/esm/src/OverlaySurface2.vue.js +172 -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 +47 -0
- package/esm/src/TemporalEditor.vue.js +4 -0
- package/esm/src/TemporalEditor2.vue.js +112 -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 +248 -0
- package/esm/src/TemporalMode.vue.js +4 -0
- package/esm/src/TemporalMode2.vue.js +127 -0
- package/esm/src/TemporalPicker.vue.js +4 -0
- package/esm/src/TemporalPicker2.vue.js +177 -0
- package/esm/src/TemporalRangeIcon.vue.js +4 -0
- package/esm/src/TemporalRangeIcon2.vue.js +72 -0
- package/esm/src/TemporalRangePicker.vue.js +4 -0
- package/esm/src/TemporalRangePicker2.vue.js +150 -0
- package/esm/src/UiApp.vue.js +4 -0
- package/esm/src/UiApp2.vue.js +62 -0
- package/esm/src/UiBadge.vue.js +4 -0
- package/esm/src/UiBadge2.vue.js +30 -0
- package/esm/src/UiBreadcrumbs.vue.js +4 -0
- package/esm/src/UiBreadcrumbs2.vue.js +105 -0
- package/esm/src/UiButton.vue.js +4 -0
- package/esm/src/UiButton2.vue.js +135 -0
- package/esm/src/UiCard.vue.js +4 -0
- package/esm/src/UiCard2.vue.js +117 -0
- package/esm/src/UiCheckbox.vue.js +4 -0
- package/esm/src/UiCheckbox2.vue.js +87 -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 +77 -0
- package/esm/src/UiCollectionFooter.vue.js +4 -0
- package/esm/src/UiCollectionFooter2.vue.js +64 -0
- package/esm/src/UiCollectionHeader.vue.js +4 -0
- package/esm/src/UiCollectionHeader2.vue.js +24 -0
- package/esm/src/UiCollectionView.vue.js +4 -0
- package/esm/src/UiCollectionView2.vue.js +239 -0
- package/esm/src/UiContent.vue.js +4 -0
- package/esm/src/UiContent2.vue.js +35 -0
- package/esm/src/UiDateInput.vue.js +4 -0
- package/esm/src/UiDateInput2.vue.js +46 -0
- package/esm/src/UiDateTimeInput.vue.js +4 -0
- package/esm/src/UiDateTimeInput2.vue.js +46 -0
- package/esm/src/UiDrawer.vue.js +4 -0
- package/esm/src/UiDrawer2.vue.js +98 -0
- package/esm/src/UiDrawerLayout.vue.js +4 -0
- package/esm/src/UiDrawerLayout2.vue.js +63 -0
- package/esm/src/UiEmpty.vue.js +4 -0
- package/esm/src/UiEmpty2.vue.js +51 -0
- package/esm/src/UiField.vue.js +4 -0
- package/esm/src/UiField2.vue.js +157 -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 +187 -0
- package/esm/src/UiFilePreview.vue.js +4 -0
- package/esm/src/UiFilePreview2.vue.js +107 -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 +27 -0
- package/esm/src/UiImagePreview.vue.js +4 -0
- package/esm/src/UiImagePreview2.vue.js +104 -0
- package/esm/src/UiInputFrame.vue.js +4 -0
- package/esm/src/UiInputFrame2.vue.js +87 -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 +30 -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 +48 -0
- package/esm/src/UiLoadingRegion.vue.js +4 -0
- package/esm/src/UiLoadingRegion2.vue.js +90 -0
- package/esm/src/UiMenu.vue.js +4 -0
- package/esm/src/UiMenu2.vue.js +97 -0
- package/esm/src/UiModal.vue.js +4 -0
- package/esm/src/UiModal2.vue.js +166 -0
- package/esm/src/UiMultiSelect.css +21 -0
- package/esm/src/UiMultiSelect.vue.js +8 -0
- package/esm/src/UiMultiSelect2.vue.js +248 -0
- package/esm/src/UiNavMenu.vue.js +4 -0
- package/esm/src/UiNavMenu2.vue.js +92 -0
- package/esm/src/UiNavbar.vue.js +4 -0
- package/esm/src/UiNavbar2.vue.js +44 -0
- package/esm/src/UiNotice.vue.js +4 -0
- package/esm/src/UiNotice2.vue.js +93 -0
- package/esm/src/UiPaginator.vue.js +4 -0
- package/esm/src/UiPaginator2.vue.js +213 -0
- package/esm/src/UiPaginatorJumper.vue.js +4 -0
- package/esm/src/UiPaginatorJumper2.vue.js +90 -0
- package/esm/src/UiPaginatorSizeSelect.vue.js +4 -0
- package/esm/src/UiPaginatorSizeSelect2.vue.js +47 -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 +83 -0
- package/esm/src/UiProgressBar.vue.js +4 -0
- package/esm/src/UiProgressBar2.vue.js +34 -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 +129 -0
- package/esm/src/UiSegmentedSelect.vue.js +8 -0
- package/esm/src/UiSegmentedSelect2.vue.js +300 -0
- package/esm/src/UiSelect.vue.js +4 -0
- package/esm/src/UiSelect2.vue.js +238 -0
- package/esm/src/UiSuggestions.vue.js +4 -0
- package/esm/src/UiSuggestions2.vue.js +156 -0
- package/esm/src/UiSwitch.vue.js +4 -0
- package/esm/src/UiSwitch2.vue.js +84 -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 +704 -0
- package/esm/src/UiTabs.vue.js +4 -0
- package/esm/src/UiTabs2.vue.js +78 -0
- package/esm/src/UiTextInput.vue.js +4 -0
- package/esm/src/UiTextInput2.vue.js +154 -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 +75 -0
- package/esm/src/UiUploadProgress.vue.js +4 -0
- package/esm/src/UiUploadProgress2.vue.js +136 -0
- package/esm/src/UiUploadRegion.vue.js +4 -0
- package/esm/src/UiUploadRegion2.vue.js +262 -0
- package/esm/src/checkableDescription.js +104 -0
- package/esm/src/controlSize.js +22 -0
- package/esm/src/fieldLayout.js +52 -0
- package/esm/src/focus.js +6 -0
- package/esm/src/icons/add.vue.js +28 -0
- package/esm/src/icons/arrow-down.vue.js +28 -0
- package/esm/src/icons/arrow-left.vue.js +28 -0
- package/esm/src/icons/arrow-right.vue.js +28 -0
- package/esm/src/icons/arrow-up.vue.js +28 -0
- package/esm/src/icons/attachment.vue.js +28 -0
- package/esm/src/icons/bookmark.vue.js +28 -0
- package/esm/src/icons/calendar.vue.js +28 -0
- package/esm/src/icons/cancel.vue.js +28 -0
- package/esm/src/icons/clear.vue.js +28 -0
- package/esm/src/icons/close.vue.js +28 -0
- package/esm/src/icons/collapse.vue.js +28 -0
- package/esm/src/icons/confirm.vue.js +28 -0
- package/esm/src/icons/copy.vue.js +28 -0
- package/esm/src/icons/delete.vue.js +28 -0
- package/esm/src/icons/download.vue.js +28 -0
- package/esm/src/icons/edit.vue.js +28 -0
- package/esm/src/icons/email.vue.js +28 -0
- package/esm/src/icons/error.vue.js +28 -0
- package/esm/src/icons/expand.vue.js +28 -0
- package/esm/src/icons/external-link.vue.js +28 -0
- package/esm/src/icons/file.vue.js +28 -0
- package/esm/src/icons/filter.vue.js +28 -0
- package/esm/src/icons/first.vue.js +28 -0
- package/esm/src/icons/globe.vue.js +28 -0
- package/esm/src/icons/help.vue.js +28 -0
- package/esm/src/icons/hide.vue.js +28 -0
- package/esm/src/icons/home.vue.js +28 -0
- package/esm/src/icons/image.vue.js +28 -0
- package/esm/src/icons/index.js +116 -0
- package/esm/src/icons/info.vue.js +28 -0
- package/esm/src/icons/last.vue.js +28 -0
- package/esm/src/icons/link.vue.js +28 -0
- package/esm/src/icons/location.vue.js +28 -0
- package/esm/src/icons/menu.vue.js +28 -0
- package/esm/src/icons/more-vertical.vue.js +28 -0
- package/esm/src/icons/more.vue.js +28 -0
- package/esm/src/icons/next.vue.js +28 -0
- package/esm/src/icons/previous.vue.js +28 -0
- package/esm/src/icons/refresh.vue.js +28 -0
- package/esm/src/icons/remove.vue.js +28 -0
- package/esm/src/icons/reset.vue.js +28 -0
- package/esm/src/icons/retry.vue.js +28 -0
- package/esm/src/icons/save.vue.js +28 -0
- package/esm/src/icons/search.vue.js +28 -0
- package/esm/src/icons/settings.vue.js +28 -0
- package/esm/src/icons/show.vue.js +28 -0
- package/esm/src/icons/sort-ascending.vue.js +28 -0
- package/esm/src/icons/sort-descending.vue.js +28 -0
- package/esm/src/icons/sort.vue.js +28 -0
- package/esm/src/icons/success.vue.js +28 -0
- package/esm/src/icons/time.vue.js +28 -0
- package/esm/src/icons/upload.vue.js +28 -0
- package/esm/src/icons/warning.vue.js +28 -0
- package/esm/src/index.js +17 -0
- package/esm/src/integration.js +62 -0
- package/esm/src/layout.js +13 -0
- package/esm/src/nativeDirection.js +38 -0
- package/esm/src/selectEscape.js +14 -0
- package/esm/src/targetListeners.js +38 -0
- package/esm/src/zOrder.js +17 -0
- package/esm/testing/browser-control-parts.js +25 -0
- package/esm/testing/dom.js +43 -0
- package/esm/testing/index.js +125 -0
- package/esm/testing/presentation-mapping.js +50 -0
- package/esm/testing/presentation-parts.js +50 -0
- package/font-bundled.css +6 -0
- package/font-family.css +23 -0
- package/font.css +6 -0
- package/native-content.css +75 -0
- package/package.json +75 -4
- package/style.css +2850 -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/EntryBranch.vue.d.ts +41 -0
- package/types/src/EntryIcon.vue.d.ts +13 -0
- package/types/src/EntryPopup.vue.d.ts +26 -0
- package/types/src/FeedbackItem.vue.d.ts +20 -0
- package/types/src/FeedbackViewport.vue.d.ts +19 -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/NavigationTree.vue.d.ts +38 -0
- package/types/src/NavigationTreeBranch.vue.d.ts +38 -0
- package/types/src/OverlaySurface.vue.d.ts +38 -0
- package/types/src/TableAddRow.vue.d.ts +18 -0
- package/types/src/TableFilterButton.vue.d.ts +7 -0
- package/types/src/TemporalAction.vue.d.ts +13 -0
- package/types/src/TemporalEditor.vue.d.ts +12 -0
- package/types/src/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/TemporalPicker.vue.d.ts +10 -0
- package/types/src/TemporalRangeIcon.vue.d.ts +7 -0
- package/types/src/TemporalRangePicker.vue.d.ts +16 -0
- package/types/src/UiApp.vue.d.ts +18 -0
- package/types/src/UiBadge.vue.d.ts +14 -0
- package/types/src/UiBreadcrumbs.vue.d.ts +24 -0
- package/types/src/UiButton.vue.d.ts +22 -0
- package/types/src/UiCard.vue.d.ts +24 -0
- package/types/src/UiCheckbox.vue.d.ts +10 -0
- package/types/src/UiCheckboxGroup.vue.d.ts +12 -0
- package/types/src/UiCollapsible.vue.d.ts +20 -0
- package/types/src/UiCollectionFooter.vue.d.ts +15 -0
- package/types/src/UiCollectionHeader.vue.d.ts +14 -0
- package/types/src/UiCollectionView.vue.d.ts +56 -0
- package/types/src/UiContent.vue.d.ts +14 -0
- package/types/src/UiDateInput.vue.d.ts +6 -0
- package/types/src/UiDateTimeInput.vue.d.ts +6 -0
- package/types/src/UiDrawer.vue.d.ts +40 -0
- package/types/src/UiDrawerLayout.vue.d.ts +16 -0
- package/types/src/UiEmpty.vue.d.ts +18 -0
- package/types/src/UiField.vue.d.ts +17 -0
- package/types/src/UiFileCollection.vue.d.ts +16 -0
- package/types/src/UiFileInput.vue.d.ts +6 -0
- package/types/src/UiFilePreview.vue.d.ts +6 -0
- package/types/src/UiFloating.vue.d.ts +14 -0
- package/types/src/UiForm.vue.d.ts +25 -0
- package/types/src/UiIcon.vue.d.ts +14 -0
- package/types/src/UiImagePreview.vue.d.ts +4 -0
- package/types/src/UiInputFrame.vue.d.ts +26 -0
- package/types/src/UiInputFrameSpacer.vue.d.ts +3 -0
- package/types/src/UiKeyValueItem.vue.d.ts +14 -0
- package/types/src/UiKeyValueList.vue.d.ts +13 -0
- package/types/src/UiLayout.vue.d.ts +17 -0
- package/types/src/UiLink.vue.d.ts +16 -0
- package/types/src/UiList.vue.d.ts +49 -0
- package/types/src/UiLoadingIndicator.vue.d.ts +14 -0
- package/types/src/UiLoadingRegion.vue.d.ts +17 -0
- package/types/src/UiMenu.vue.d.ts +59 -0
- package/types/src/UiModal.vue.d.ts +27 -0
- package/types/src/UiMultiSelect.vue.d.ts +16 -0
- package/types/src/UiNavMenu.vue.d.ts +45 -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 +94 -0
- package/types/src/UiTabs.vue.d.ts +20 -0
- package/types/src/UiTextInput.vue.d.ts +24 -0
- package/types/src/UiTimeInput.vue.d.ts +6 -0
- package/types/src/UiTooltip.vue.d.ts +25 -0
- package/types/src/UiUploadProgress.vue.d.ts +4 -0
- package/types/src/UiUploadRegion.vue.d.ts +6 -0
- package/types/src/checkableDescription.d.ts +7 -0
- package/types/src/controlSize.d.ts +2 -0
- package/types/src/fieldLayout.d.ts +27 -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 +1323 -0
- package/types/src/layout.d.ts +2 -0
- package/types/src/nativeDirection.d.ts +2 -0
- package/types/src/selectEscape.d.ts +2 -0
- package/types/src/targetListeners.d.ts +9 -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 +31 -0
- package/types/testing/presentation-parts.d.mts +20 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, provide, openBlock, createElementBlock, mergeProps, unref, createBlock, normalizeClass, withCtx, toDisplayString, Fragment, createTextVNode, createCommentVNode, createVNode, renderSlot } from "vue";
|
|
2
|
+
import { uiFocusPresentation } from "./focus.js";
|
|
3
|
+
import { useUiZView, useUiCollectionHeaderField, useUiFieldStrategies } from "@uninterface/uninterface/backend";
|
|
4
|
+
import _sfc_main$1 from "./FieldFailureTooltip2.vue.js";
|
|
5
|
+
import { VLabel } from "vuetify/components/VLabel";
|
|
6
|
+
import { needsCustomFeedback, fieldLayoutKey } from "./fieldLayout.js";
|
|
7
|
+
import { useCheckableDescriptionAlignment } from "./checkableDescription.js";
|
|
8
|
+
const _hoisted_1 = ["data-ui-label-align", "data-ui-checkable", "data-ui-checkable-group", "data-ui-checkable-label-align", "role", "aria-labelledby", "aria-describedby", "aria-busy", "aria-invalid"];
|
|
9
|
+
const _hoisted_2 = { key: 0 };
|
|
10
|
+
const _hoisted_3 = ["id"];
|
|
11
|
+
const _hoisted_4 = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "vuetify-field-feedback text-caption mt-1"
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_5 = ["id"];
|
|
16
|
+
const _hoisted_6 = ["id"];
|
|
17
|
+
const _hoisted_7 = ["id"];
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
|
+
__name: "UiField",
|
|
20
|
+
props: {
|
|
21
|
+
binding: {}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
useUiZView();
|
|
25
|
+
const element = ref();
|
|
26
|
+
useUiCollectionHeaderField(element, ".v-field");
|
|
27
|
+
const props = __props;
|
|
28
|
+
const policy = useUiFieldStrategies(() => props.binding, {
|
|
29
|
+
...{ feedbackRoot: element },
|
|
30
|
+
help: "replace-help",
|
|
31
|
+
checkableModes: ["flushed"],
|
|
32
|
+
defaultLabels: () => props.binding.group && !frameLabel.value || !controls.value || frameControls.value > 0 && !frameLabel.value ? "above" : "integrated",
|
|
33
|
+
failureModes: ["show-below", "show-tooltip"],
|
|
34
|
+
labels: (value) => value === "above" && (props.binding.group || !checkableControls.value) || value === "floating" && (!props.binding.group || frameLabel.value) && floatingControls.value === 1 && controls.value === 1
|
|
35
|
+
});
|
|
36
|
+
const deferredIssue = computed(
|
|
37
|
+
() => "inlineFeedbackDeferred" in policy.value && policy.value.inlineFeedbackDeferred === true && policy.value.failure !== "show-tooltip" ? policy.value.issue : null
|
|
38
|
+
);
|
|
39
|
+
const customFeedback = computed(() => needsCustomFeedback(policy.value));
|
|
40
|
+
const controls = ref(0);
|
|
41
|
+
const checkableControls = ref(0);
|
|
42
|
+
const floatingControls = ref(0);
|
|
43
|
+
const frameControls = ref(0);
|
|
44
|
+
const frameLabel = computed(
|
|
45
|
+
() => frameControls.value === 1 && controls.value === 1
|
|
46
|
+
);
|
|
47
|
+
useCheckableDescriptionAlignment(
|
|
48
|
+
element,
|
|
49
|
+
() => !props.binding.group && controls.value === 1 && checkableControls.value === 1 && policy.value.checkableMode === "flushed"
|
|
50
|
+
);
|
|
51
|
+
provide(fieldLayoutKey, {
|
|
52
|
+
binding: computed(() => props.binding),
|
|
53
|
+
frameLabel,
|
|
54
|
+
deferredIssue,
|
|
55
|
+
registerControl(floating, frame = false, checkable = false) {
|
|
56
|
+
controls.value++;
|
|
57
|
+
if (checkable) checkableControls.value++;
|
|
58
|
+
if (frame) frameControls.value++;
|
|
59
|
+
if (floating) floatingControls.value++;
|
|
60
|
+
return () => {
|
|
61
|
+
controls.value--;
|
|
62
|
+
if (checkable) checkableControls.value--;
|
|
63
|
+
if (frame) frameControls.value--;
|
|
64
|
+
if (floating) floatingControls.value--;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
return (_ctx, _cache) => {
|
|
69
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
70
|
+
ref_key: "element",
|
|
71
|
+
ref: element,
|
|
72
|
+
"data-ui-label-align": unref(policy).labelAlignment,
|
|
73
|
+
"data-ui-checkable": unref(policy).checkableMode,
|
|
74
|
+
"data-ui-checkable-group": __props.binding.checkable && __props.binding.group ? true : void 0,
|
|
75
|
+
"data-ui-checkable-label-align": __props.binding.checkable ? unref(policy).checkableLabelAlignment : void 0,
|
|
76
|
+
class: "vuetify-field",
|
|
77
|
+
role: __props.binding.group ? "group" : void 0,
|
|
78
|
+
"aria-labelledby": __props.binding.group ? `${__props.binding.id}-label` : void 0,
|
|
79
|
+
"aria-describedby": __props.binding.group ? [
|
|
80
|
+
unref(policy).describedBy,
|
|
81
|
+
__props.binding.requiredLabel ? `${__props.binding.id}-required` : void 0
|
|
82
|
+
].filter(Boolean).join(" ") || void 0 : void 0,
|
|
83
|
+
"aria-busy": __props.binding.group && __props.binding.validating ? true : void 0,
|
|
84
|
+
"aria-invalid": __props.binding.group && __props.binding.issue ? true : void 0
|
|
85
|
+
}, __props.binding.group ? unref(uiFocusPresentation) : {}), [
|
|
86
|
+
__props.binding.group && !frameLabel.value || !controls.value || frameControls.value > 0 && !frameLabel.value || unref(policy).labels !== "floating" && unref(policy).labels !== "integrated" && unref(policy).labels !== "adjacent" ? (openBlock(), createBlock(unref(VLabel), {
|
|
87
|
+
key: 0,
|
|
88
|
+
id: `${__props.binding.id}-label`,
|
|
89
|
+
for: __props.binding.group ? void 0 : __props.binding.id,
|
|
90
|
+
class: normalizeClass([{
|
|
91
|
+
"vuetify-sr-only": unref(policy).labels === "hidden",
|
|
92
|
+
"vuetify-required": unref(policy).marker === "required",
|
|
93
|
+
"vuetify-required-prefix": unref(policy).marker === "required" && unref(policy).markerPosition === "prefix"
|
|
94
|
+
}, "mb-2"])
|
|
95
|
+
}, {
|
|
96
|
+
default: withCtx(() => [
|
|
97
|
+
__props.binding.checkable ? (openBlock(), createElementBlock(
|
|
98
|
+
"span",
|
|
99
|
+
_hoisted_2,
|
|
100
|
+
toDisplayString(__props.binding.label),
|
|
101
|
+
1
|
|
102
|
+
/* TEXT */
|
|
103
|
+
)) : (openBlock(), createElementBlock(
|
|
104
|
+
Fragment,
|
|
105
|
+
{ key: 1 },
|
|
106
|
+
[
|
|
107
|
+
createTextVNode(
|
|
108
|
+
toDisplayString(__props.binding.label),
|
|
109
|
+
1
|
|
110
|
+
/* TEXT */
|
|
111
|
+
)
|
|
112
|
+
],
|
|
113
|
+
64
|
|
114
|
+
/* STABLE_FRAGMENT */
|
|
115
|
+
))
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
/* STABLE */
|
|
119
|
+
}, 8, ["id", "for", "class"])) : createCommentVNode("v-if", true),
|
|
120
|
+
__props.binding.group && __props.binding.requiredLabel ? (openBlock(), createElementBlock("span", {
|
|
121
|
+
key: 1,
|
|
122
|
+
id: `${__props.binding.id}-required`,
|
|
123
|
+
class: "vuetify-sr-only vuetify-required-description"
|
|
124
|
+
}, toDisplayString(__props.binding.requiredLabel), 9, _hoisted_3)) : createCommentVNode("v-if", true),
|
|
125
|
+
createVNode(_sfc_main$1, {
|
|
126
|
+
message: unref(policy).failure === "show-tooltip" ? unref(policy).issue : null,
|
|
127
|
+
id: `${__props.binding.id}-issue`
|
|
128
|
+
}, {
|
|
129
|
+
default: withCtx(() => [
|
|
130
|
+
renderSlot(_ctx.$slots, "default")
|
|
131
|
+
]),
|
|
132
|
+
_: 3
|
|
133
|
+
/* FORWARDED */
|
|
134
|
+
}, 8, ["message", "id"]),
|
|
135
|
+
(__props.binding.group || frameControls.value > 0 || !controls.value || customFeedback.value) && (unref(policy).showHelp || unref(policy).issue && !deferredIssue.value && unref(policy).failure !== "show-tooltip") ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
136
|
+
unref(policy).showHelp ? (openBlock(), createElementBlock("div", {
|
|
137
|
+
key: 0,
|
|
138
|
+
id: `${__props.binding.id}-help`
|
|
139
|
+
}, toDisplayString(__props.binding.help), 9, _hoisted_5)) : createCommentVNode("v-if", true),
|
|
140
|
+
unref(policy).issue && !deferredIssue.value && unref(policy).failure !== "show-tooltip" ? (openBlock(), createElementBlock("div", {
|
|
141
|
+
key: 1,
|
|
142
|
+
id: `${__props.binding.id}-issue`,
|
|
143
|
+
class: "text-error"
|
|
144
|
+
}, toDisplayString(unref(policy).issue), 9, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
145
|
+
])) : createCommentVNode("v-if", true),
|
|
146
|
+
deferredIssue.value ? (openBlock(), createElementBlock("span", {
|
|
147
|
+
key: 3,
|
|
148
|
+
id: `${__props.binding.id}-issue`,
|
|
149
|
+
class: "vuetify-sr-only"
|
|
150
|
+
}, toDisplayString(deferredIssue.value), 9, _hoisted_7)) : createCommentVNode("v-if", true)
|
|
151
|
+
], 16, _hoisted_1);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
export {
|
|
156
|
+
_sfc_main as default
|
|
157
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, Fragment, renderList, renderSlot, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { useUiZView } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { VBtn } from "vuetify/components/VBtn";
|
|
4
|
+
const _hoisted_1 = { class: "vuetify-file-collection" };
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "UiFileCollection",
|
|
7
|
+
props: {
|
|
8
|
+
files: {},
|
|
9
|
+
removable: { type: Boolean },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
removeLabel: {},
|
|
12
|
+
remove: { type: Function }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
useUiZView();
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("ul", _hoisted_1, [
|
|
18
|
+
(openBlock(true), createElementBlock(
|
|
19
|
+
Fragment,
|
|
20
|
+
null,
|
|
21
|
+
renderList(__props.files, (file) => {
|
|
22
|
+
return openBlock(), createElementBlock("li", {
|
|
23
|
+
key: file.key
|
|
24
|
+
}, [
|
|
25
|
+
renderSlot(_ctx.$slots, "default", { file }),
|
|
26
|
+
__props.removable ? (openBlock(), createBlock(unref(VBtn), {
|
|
27
|
+
key: 0,
|
|
28
|
+
type: "button",
|
|
29
|
+
disabled: __props.disabled,
|
|
30
|
+
"aria-label": `${__props.removeLabel}: ${file.name}`,
|
|
31
|
+
onClick: ($event) => __props.remove(file.key)
|
|
32
|
+
}, {
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
createTextVNode(
|
|
35
|
+
toDisplayString(__props.removeLabel),
|
|
36
|
+
1
|
|
37
|
+
/* TEXT */
|
|
38
|
+
)
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
/* STABLE */
|
|
42
|
+
}, 8, ["disabled", "aria-label", "onClick"])) : createCommentVNode("v-if", true)
|
|
43
|
+
]);
|
|
44
|
+
}),
|
|
45
|
+
128
|
|
46
|
+
/* KEYED_FRAGMENT */
|
|
47
|
+
))
|
|
48
|
+
]);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
_sfc_main as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { defineComponent, ref, useAttrs, computed, onMounted, onUpdated, openBlock, createElementBlock, createVNode, unref, withCtx, mergeProps, createSlots, createElementVNode, toDisplayString, withModifiers, createCommentVNode, nextTick } from "vue";
|
|
2
|
+
import { useUiZView, useUiFieldFailure, useUiFieldDescription, syncUiTargetAttributes, focusUiTarget } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { VFileInput } from "vuetify/components/VFileInput";
|
|
4
|
+
import { VIcon } from "vuetify/components/VIcon";
|
|
5
|
+
import { VLocaleProvider } from "vuetify/components/VLocaleProvider";
|
|
6
|
+
import { useFieldPresentation } from "./fieldLayout.js";
|
|
7
|
+
import { useControlSize } from "./controlSize.js";
|
|
8
|
+
import { useNativeDirection } from "./nativeDirection.js";
|
|
9
|
+
const _hoisted_1 = ["id", "title"];
|
|
10
|
+
const _hoisted_2 = ["id"];
|
|
11
|
+
const _hoisted_3 = ["id"];
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
...{ inheritAttrs: false },
|
|
14
|
+
__name: "UiFileInput",
|
|
15
|
+
props: {
|
|
16
|
+
label: {},
|
|
17
|
+
binding: {},
|
|
18
|
+
file: {},
|
|
19
|
+
readonly: { type: Boolean },
|
|
20
|
+
accept: {},
|
|
21
|
+
capture: {},
|
|
22
|
+
pending: { type: Boolean },
|
|
23
|
+
rejection: {},
|
|
24
|
+
chooseLabel: {},
|
|
25
|
+
clearLabel: {},
|
|
26
|
+
select: { type: Function },
|
|
27
|
+
clear: { type: Function }
|
|
28
|
+
},
|
|
29
|
+
setup(__props, { expose: __expose }) {
|
|
30
|
+
useUiZView();
|
|
31
|
+
const props = __props;
|
|
32
|
+
const root = ref();
|
|
33
|
+
const attrs = useAttrs();
|
|
34
|
+
const focused = ref(false);
|
|
35
|
+
const { presentation, messageId, requiredMarker, requiredPrefix } = useFieldPresentation();
|
|
36
|
+
const size = useControlSize("UiFileInput");
|
|
37
|
+
const direction = useNativeDirection(() => root.value);
|
|
38
|
+
const invalid = useUiFieldFailure(() => props.binding);
|
|
39
|
+
const fieldDescription = useUiFieldDescription(
|
|
40
|
+
() => props.binding,
|
|
41
|
+
"replace-help"
|
|
42
|
+
);
|
|
43
|
+
const description = computed(
|
|
44
|
+
() => [
|
|
45
|
+
fieldDescription.value,
|
|
46
|
+
attrs["aria-describedby"],
|
|
47
|
+
props.file ? props.binding.id + "-filename" : "",
|
|
48
|
+
props.rejection ? props.binding.id + "-rejection" : ""
|
|
49
|
+
].filter(Boolean).join(" ") || void 0
|
|
50
|
+
);
|
|
51
|
+
const input = () => root.value?.querySelector("input[type=file]");
|
|
52
|
+
function sync() {
|
|
53
|
+
const target = input();
|
|
54
|
+
if (target)
|
|
55
|
+
syncUiTargetAttributes(target, {
|
|
56
|
+
...attrs,
|
|
57
|
+
id: props.binding.id,
|
|
58
|
+
accept: props.accept,
|
|
59
|
+
capture: props.capture,
|
|
60
|
+
"aria-label": attrs["aria-label"] ?? (props.label || props.chooseLabel),
|
|
61
|
+
"aria-describedby": description.value,
|
|
62
|
+
"aria-required": props.binding.required || void 0,
|
|
63
|
+
"aria-invalid": props.binding.invalid || !!props.rejection || void 0,
|
|
64
|
+
"aria-busy": props.pending || props.binding.validating || void 0
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
onMounted(sync);
|
|
68
|
+
onUpdated(sync);
|
|
69
|
+
const focus = () => focusUiTarget(input, () => props.binding.disabled);
|
|
70
|
+
async function changed(value) {
|
|
71
|
+
const target = input();
|
|
72
|
+
if (target) target.value = "";
|
|
73
|
+
const files = Array.isArray(value) ? value : value ? [value] : [];
|
|
74
|
+
if (files.length) await props.select(files);
|
|
75
|
+
}
|
|
76
|
+
function choose(event) {
|
|
77
|
+
const target = event.target;
|
|
78
|
+
if (target.type !== "file") return;
|
|
79
|
+
event.stopPropagation();
|
|
80
|
+
void changed([...target.files ?? []]);
|
|
81
|
+
}
|
|
82
|
+
async function clearFile() {
|
|
83
|
+
if (props.binding.disabled || props.readonly) return;
|
|
84
|
+
await props.clear();
|
|
85
|
+
await nextTick();
|
|
86
|
+
await focus();
|
|
87
|
+
}
|
|
88
|
+
function leave(event) {
|
|
89
|
+
if (root.value?.contains(event.relatedTarget)) return;
|
|
90
|
+
focused.value = false;
|
|
91
|
+
}
|
|
92
|
+
__expose({ focus });
|
|
93
|
+
return (_ctx, _cache) => {
|
|
94
|
+
return openBlock(), createElementBlock(
|
|
95
|
+
"div",
|
|
96
|
+
{
|
|
97
|
+
ref_key: "root",
|
|
98
|
+
ref: root,
|
|
99
|
+
class: "vuetify-file-input",
|
|
100
|
+
"data-ui-file-input": "",
|
|
101
|
+
onFocusin: _cache[1] || (_cache[1] = ($event) => focused.value = true),
|
|
102
|
+
onFocusout: leave,
|
|
103
|
+
onChangeCapture: choose
|
|
104
|
+
},
|
|
105
|
+
[
|
|
106
|
+
createVNode(unref(VLocaleProvider), {
|
|
107
|
+
rtl: unref(direction) === "rtl"
|
|
108
|
+
}, {
|
|
109
|
+
default: withCtx(() => [
|
|
110
|
+
createVNode(unref(VFileInput), mergeProps(unref(presentation), {
|
|
111
|
+
id: __props.binding.id,
|
|
112
|
+
density: unref(size),
|
|
113
|
+
class: {
|
|
114
|
+
"vuetify-required-control": unref(requiredMarker),
|
|
115
|
+
"vuetify-required-prefix": unref(requiredPrefix)
|
|
116
|
+
},
|
|
117
|
+
"model-value": __props.file?.value ?? null,
|
|
118
|
+
multiple: false,
|
|
119
|
+
clearable: !!__props.file && !__props.readonly,
|
|
120
|
+
"persistent-clear": "",
|
|
121
|
+
disabled: __props.binding.disabled,
|
|
122
|
+
readonly: __props.readonly,
|
|
123
|
+
error: unref(invalid) || !!__props.rejection,
|
|
124
|
+
loading: __props.pending || __props.binding.validating,
|
|
125
|
+
focused: focused.value,
|
|
126
|
+
"onUpdate:focused": _cache[0] || (_cache[0] = (value) => {
|
|
127
|
+
if (value) focused.value = true;
|
|
128
|
+
}),
|
|
129
|
+
"prepend-icon": "",
|
|
130
|
+
"prepend-inner-icon": "$file",
|
|
131
|
+
placeholder: __props.chooseLabel,
|
|
132
|
+
accept: __props.accept,
|
|
133
|
+
capture: __props.capture,
|
|
134
|
+
"filter-by-type": "",
|
|
135
|
+
rules: [],
|
|
136
|
+
"onUpdate:modelValue": changed
|
|
137
|
+
}), createSlots({
|
|
138
|
+
selection: withCtx(() => [
|
|
139
|
+
createElementVNode("span", {
|
|
140
|
+
id: __props.binding.id + "-filename",
|
|
141
|
+
class: "vuetify-file-name",
|
|
142
|
+
"data-ui-file-name": "",
|
|
143
|
+
title: __props.file?.name
|
|
144
|
+
}, toDisplayString(__props.file?.name), 9, _hoisted_1)
|
|
145
|
+
]),
|
|
146
|
+
message: withCtx(({ message }) => [
|
|
147
|
+
createElementVNode("span", { id: unref(messageId) }, toDisplayString(message), 9, _hoisted_2)
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
/* DYNAMIC */
|
|
151
|
+
}, [
|
|
152
|
+
__props.file && !__props.readonly ? {
|
|
153
|
+
name: "clear",
|
|
154
|
+
fn: withCtx(() => [
|
|
155
|
+
createVNode(unref(VIcon), {
|
|
156
|
+
tag: "button",
|
|
157
|
+
type: "button",
|
|
158
|
+
icon: "$clear",
|
|
159
|
+
class: "vuetify-file-clear",
|
|
160
|
+
disabled: __props.binding.disabled || __props.readonly,
|
|
161
|
+
"aria-label": __props.clearLabel,
|
|
162
|
+
"data-ui-file-clear": "",
|
|
163
|
+
onClick: withModifiers(clearFile, ["stop"])
|
|
164
|
+
}, null, 8, ["disabled", "aria-label"])
|
|
165
|
+
]),
|
|
166
|
+
key: "0"
|
|
167
|
+
} : void 0
|
|
168
|
+
]), 1040, ["id", "density", "class", "model-value", "clearable", "disabled", "readonly", "error", "loading", "focused", "placeholder", "accept", "capture"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
/* STABLE */
|
|
172
|
+
}, 8, ["rtl"]),
|
|
173
|
+
__props.rejection ? (openBlock(), createElementBlock("div", {
|
|
174
|
+
key: 0,
|
|
175
|
+
id: __props.binding.id + "-rejection",
|
|
176
|
+
role: "status"
|
|
177
|
+
}, toDisplayString(__props.rejection), 9, _hoisted_3)) : createCommentVNode("v-if", true)
|
|
178
|
+
],
|
|
179
|
+
544
|
|
180
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
export {
|
|
186
|
+
_sfc_main as default
|
|
187
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, createElementBlock, createElementVNode, unref, mergeProps, toHandlers, withCtx, resolveDynamicComponent, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { useUiZView, useUiFilePreviewView } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { VImg } from "vuetify/components/VImg";
|
|
4
|
+
import _sfc_main$1 from "./UiImagePreview2.vue.js";
|
|
5
|
+
import _sfc_main$2 from "./FileTypeIcon2.vue.js";
|
|
6
|
+
const _hoisted_1 = ["data-presentation"];
|
|
7
|
+
const _hoisted_2 = ["data-file-kind"];
|
|
8
|
+
const _hoisted_3 = { class: "vuetify-file-details" };
|
|
9
|
+
const _hoisted_4 = ["title"];
|
|
10
|
+
const _hoisted_5 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "vuetify-file-size",
|
|
13
|
+
"data-file-size": ""
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
__name: "UiFilePreview",
|
|
17
|
+
props: {
|
|
18
|
+
thumbnail: { type: Boolean },
|
|
19
|
+
presentation: { default: "tile" },
|
|
20
|
+
mediaType: {},
|
|
21
|
+
name: {},
|
|
22
|
+
size: {},
|
|
23
|
+
url: {},
|
|
24
|
+
image: { type: Boolean },
|
|
25
|
+
alt: {}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
useUiZView();
|
|
29
|
+
const props = __props;
|
|
30
|
+
const { kind, sizeLabel, icon, thumbnailImage } = useUiFilePreviewView(props);
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return __props.image && !__props.thumbnail ? (openBlock(), createBlock(_sfc_main$1, {
|
|
33
|
+
key: 0,
|
|
34
|
+
url: __props.url,
|
|
35
|
+
alt: __props.alt
|
|
36
|
+
}, null, 8, ["url", "alt"])) : (openBlock(), createElementBlock("div", {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "vuetify-file-preview",
|
|
39
|
+
"data-ui-file-preview": "",
|
|
40
|
+
"data-presentation": __props.presentation
|
|
41
|
+
}, [
|
|
42
|
+
createElementVNode("span", {
|
|
43
|
+
class: "vuetify-file-icon",
|
|
44
|
+
"data-file-icon": "",
|
|
45
|
+
"data-file-kind": unref(kind),
|
|
46
|
+
"aria-hidden": "true"
|
|
47
|
+
}, [
|
|
48
|
+
unref(thumbnailImage) ? (openBlock(), createBlock(unref(VImg), mergeProps({
|
|
49
|
+
key: unref(thumbnailImage).url,
|
|
50
|
+
src: unref(thumbnailImage).url,
|
|
51
|
+
alt: "",
|
|
52
|
+
cover: false,
|
|
53
|
+
rounded: false,
|
|
54
|
+
transition: false,
|
|
55
|
+
eager: "",
|
|
56
|
+
"data-file-thumbnail": ""
|
|
57
|
+
}, toHandlers({ error: unref(thumbnailImage).error })), {
|
|
58
|
+
placeholder: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
59
|
+
createElementVNode(
|
|
60
|
+
"span",
|
|
61
|
+
null,
|
|
62
|
+
null,
|
|
63
|
+
-1
|
|
64
|
+
/* CACHED */
|
|
65
|
+
)
|
|
66
|
+
])]),
|
|
67
|
+
error: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
68
|
+
createElementVNode(
|
|
69
|
+
"span",
|
|
70
|
+
null,
|
|
71
|
+
null,
|
|
72
|
+
-1
|
|
73
|
+
/* CACHED */
|
|
74
|
+
)
|
|
75
|
+
])]),
|
|
76
|
+
_: 1
|
|
77
|
+
/* STABLE */
|
|
78
|
+
}, 16, ["src"])) : unref(icon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(icon)), {
|
|
79
|
+
key: 1,
|
|
80
|
+
"aria-hidden": "true",
|
|
81
|
+
focusable: "false"
|
|
82
|
+
})) : (openBlock(), createBlock(_sfc_main$2, {
|
|
83
|
+
key: 2,
|
|
84
|
+
kind: unref(kind)
|
|
85
|
+
}, null, 8, ["kind"]))
|
|
86
|
+
], 8, _hoisted_2),
|
|
87
|
+
createElementVNode("div", _hoisted_3, [
|
|
88
|
+
createElementVNode("span", {
|
|
89
|
+
class: "vuetify-file-preview-name",
|
|
90
|
+
"data-file-name": "",
|
|
91
|
+
title: __props.name
|
|
92
|
+
}, toDisplayString(__props.name), 9, _hoisted_4),
|
|
93
|
+
unref(sizeLabel) !== void 0 ? (openBlock(), createElementBlock(
|
|
94
|
+
"span",
|
|
95
|
+
_hoisted_5,
|
|
96
|
+
toDisplayString(unref(sizeLabel)),
|
|
97
|
+
1
|
|
98
|
+
/* TEXT */
|
|
99
|
+
)) : createCommentVNode("v-if", true)
|
|
100
|
+
])
|
|
101
|
+
], 8, _hoisted_1));
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export {
|
|
106
|
+
_sfc_main as default
|
|
107
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, Teleport, unref, createElementVNode, mergeProps, renderSlot, createElementBlock, withModifiers, normalizeStyle, createTextVNode, toDisplayString, createVNode, withCtx, createCommentVNode } from "vue";
|
|
2
|
+
import { VBtn } from "vuetify/components";
|
|
3
|
+
import { useUiFloatingView, useUiOverlayTarget } from "@uninterface/uninterface/backend";
|
|
4
|
+
const _hoisted_1 = ["value"];
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
...{ inheritAttrs: false },
|
|
7
|
+
__name: "UiFloating",
|
|
8
|
+
props: {
|
|
9
|
+
edge: {},
|
|
10
|
+
position: {},
|
|
11
|
+
draggable: { type: Boolean },
|
|
12
|
+
active: { type: Boolean },
|
|
13
|
+
requestPosition: { type: Function },
|
|
14
|
+
moveLabel: {},
|
|
15
|
+
positionLabel: {},
|
|
16
|
+
doneLabel: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const {
|
|
21
|
+
root,
|
|
22
|
+
ready,
|
|
23
|
+
style,
|
|
24
|
+
movePanel,
|
|
25
|
+
moveStyle,
|
|
26
|
+
editor,
|
|
27
|
+
editing,
|
|
28
|
+
closeMove,
|
|
29
|
+
attributes,
|
|
30
|
+
move
|
|
31
|
+
} = useUiFloatingView(props);
|
|
32
|
+
const portal = useUiOverlayTarget();
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createBlock(Teleport, {
|
|
35
|
+
to: unref(portal) ?? "body",
|
|
36
|
+
disabled: !unref(ready)
|
|
37
|
+
}, [
|
|
38
|
+
createElementVNode(
|
|
39
|
+
"div",
|
|
40
|
+
mergeProps({
|
|
41
|
+
ref_key: "root",
|
|
42
|
+
ref: root,
|
|
43
|
+
class: "vuetify-floating",
|
|
44
|
+
style: unref(style)
|
|
45
|
+
}, { ..._ctx.$attrs, ...unref(attributes) }),
|
|
46
|
+
[
|
|
47
|
+
renderSlot(_ctx.$slots, "default"),
|
|
48
|
+
unref(editing) ? (openBlock(), createElementBlock(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
key: 0,
|
|
52
|
+
ref_key: "movePanel",
|
|
53
|
+
ref: movePanel,
|
|
54
|
+
style: normalizeStyle(unref(moveStyle)),
|
|
55
|
+
class: "vuetify-floating-move",
|
|
56
|
+
onPointerdown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
57
|
+
}, ["stop"])),
|
|
58
|
+
onContextmenu: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
59
|
+
}, ["stop", "prevent"]))
|
|
60
|
+
},
|
|
61
|
+
[
|
|
62
|
+
createElementVNode("label", null, [
|
|
63
|
+
createTextVNode(
|
|
64
|
+
toDisplayString(__props.positionLabel) + " ",
|
|
65
|
+
1
|
|
66
|
+
/* TEXT */
|
|
67
|
+
),
|
|
68
|
+
createElementVNode("input", {
|
|
69
|
+
ref_key: "editor",
|
|
70
|
+
ref: editor,
|
|
71
|
+
type: "range",
|
|
72
|
+
min: "0",
|
|
73
|
+
max: "100",
|
|
74
|
+
step: "1",
|
|
75
|
+
value: __props.position * 100,
|
|
76
|
+
onInput: _cache[0] || (_cache[0] = ($event) => unref(move)(Number($event.target.value)))
|
|
77
|
+
}, null, 40, _hoisted_1)
|
|
78
|
+
]),
|
|
79
|
+
createVNode(unref(VBtn), {
|
|
80
|
+
color: "primary",
|
|
81
|
+
variant: "outlined",
|
|
82
|
+
onClick: unref(closeMove)
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [
|
|
85
|
+
createTextVNode(
|
|
86
|
+
toDisplayString(__props.doneLabel),
|
|
87
|
+
1
|
|
88
|
+
/* TEXT */
|
|
89
|
+
)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
/* STABLE */
|
|
93
|
+
}, 8, ["onClick"])
|
|
94
|
+
],
|
|
95
|
+
36
|
|
96
|
+
/* STYLE, NEED_HYDRATION */
|
|
97
|
+
)) : createCommentVNode("v-if", true)
|
|
98
|
+
],
|
|
99
|
+
16
|
|
100
|
+
/* FULL_PROPS */
|
|
101
|
+
)
|
|
102
|
+
], 8, ["to", "disabled"]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
export {
|
|
107
|
+
_sfc_main as default
|
|
108
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, mergeProps, unref, withModifiers, renderSlot } from "vue";
|
|
2
|
+
import { useUiZView, useUiFormFocus } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { uiFocusPresentation } from "./focus.js";
|
|
4
|
+
const _hoisted_1 = ["data-form-full", "id", "aria-label", "aria-busy"];
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "UiForm",
|
|
7
|
+
props: {
|
|
8
|
+
binding: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["submit", "reset"],
|
|
11
|
+
setup(__props, { expose: __expose }) {
|
|
12
|
+
useUiZView();
|
|
13
|
+
const element = ref();
|
|
14
|
+
const focusInvalid = useUiFormFocus(() => element.value);
|
|
15
|
+
__expose({ focusInvalid });
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("form", mergeProps({
|
|
18
|
+
ref_key: "element",
|
|
19
|
+
ref: element,
|
|
20
|
+
class: "vuetify-form ga-5",
|
|
21
|
+
"data-form-full": __props.binding.height === "full" || void 0,
|
|
22
|
+
id: __props.binding.id,
|
|
23
|
+
"aria-label": __props.binding.label,
|
|
24
|
+
"aria-busy": __props.binding.pending,
|
|
25
|
+
novalidate: ""
|
|
26
|
+
}, unref(uiFocusPresentation), {
|
|
27
|
+
onSubmit: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("submit"), ["prevent"])),
|
|
28
|
+
onReset: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("reset"), ["prevent"]))
|
|
29
|
+
}), [
|
|
30
|
+
renderSlot(_ctx.$slots, "default")
|
|
31
|
+
], 16, _hoisted_1);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
_sfc_main as default
|
|
37
|
+
};
|