@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,28 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
9
|
+
focusable: "false"
|
|
10
|
+
};
|
|
11
|
+
function _sfc_render(_ctx, _cache) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
+
createElementVNode(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
d: "m18 21l-4-4h3V7h-3l4-4l4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2z"
|
|
18
|
+
},
|
|
19
|
+
null,
|
|
20
|
+
-1
|
|
21
|
+
/* CACHED */
|
|
22
|
+
)
|
|
23
|
+
])]);
|
|
24
|
+
}
|
|
25
|
+
const CommonSort = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
26
|
+
export {
|
|
27
|
+
CommonSort as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
9
|
+
focusable: "false"
|
|
10
|
+
};
|
|
11
|
+
function _sfc_render(_ctx, _cache) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
+
createElementVNode(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
d: "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8z"
|
|
18
|
+
},
|
|
19
|
+
null,
|
|
20
|
+
-1
|
|
21
|
+
/* CACHED */
|
|
22
|
+
)
|
|
23
|
+
])]);
|
|
24
|
+
}
|
|
25
|
+
const Icon19 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
26
|
+
export {
|
|
27
|
+
Icon19 as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
9
|
+
focusable: "false"
|
|
10
|
+
};
|
|
11
|
+
function _sfc_render(_ctx, _cache) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
+
createElementVNode(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
d: "M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7z"
|
|
18
|
+
},
|
|
19
|
+
null,
|
|
20
|
+
-1
|
|
21
|
+
/* CACHED */
|
|
22
|
+
)
|
|
23
|
+
])]);
|
|
24
|
+
}
|
|
25
|
+
const CommonTime = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
26
|
+
export {
|
|
27
|
+
CommonTime as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
9
|
+
focusable: "false"
|
|
10
|
+
};
|
|
11
|
+
function _sfc_render(_ctx, _cache) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
+
createElementVNode(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
d: "M9 16v-6H5l7-7l7 7h-4v6zm-4 4v-2h14v2z"
|
|
18
|
+
},
|
|
19
|
+
null,
|
|
20
|
+
-1
|
|
21
|
+
/* CACHED */
|
|
22
|
+
)
|
|
23
|
+
])]);
|
|
24
|
+
}
|
|
25
|
+
const Icon9 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
26
|
+
export {
|
|
27
|
+
Icon9 as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
9
|
+
focusable: "false"
|
|
10
|
+
};
|
|
11
|
+
function _sfc_render(_ctx, _cache) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
+
createElementVNode(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
d: "M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2z"
|
|
18
|
+
},
|
|
19
|
+
null,
|
|
20
|
+
-1
|
|
21
|
+
/* CACHED */
|
|
22
|
+
)
|
|
23
|
+
])]);
|
|
24
|
+
}
|
|
25
|
+
const Icon20 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
26
|
+
export {
|
|
27
|
+
Icon20 as default
|
|
28
|
+
};
|
package/esm/src/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { uiTheme } from "@uninterface/uninterface/theme";
|
|
2
|
+
import metadata from "../package.json.js";
|
|
3
|
+
import manifest from "../capabilities.json.js";
|
|
4
|
+
const uiBackend = {
|
|
5
|
+
name: "Vuetify",
|
|
6
|
+
packageName: metadata.name,
|
|
7
|
+
version: metadata.version,
|
|
8
|
+
description: metadata.description,
|
|
9
|
+
dependencies: [
|
|
10
|
+
{ packageName: manifest.backend.name, version: manifest.backend.version }
|
|
11
|
+
],
|
|
12
|
+
capabilities: manifest.provides,
|
|
13
|
+
themeColors: uiTheme.colors.define(manifest.themeColors)
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
uiBackend
|
|
17
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { effectScope, defineComponent, watch } from "vue";
|
|
2
|
+
import { createVuetify } from "vuetify";
|
|
3
|
+
import { mdi, aliases } from "vuetify/iconsets/mdi-svg";
|
|
4
|
+
import { en } from "vuetify/locale";
|
|
5
|
+
import icons from "./icons/index.js";
|
|
6
|
+
import { useUiColorMode } from "@uninterface/uninterface";
|
|
7
|
+
const integration = {
|
|
8
|
+
colorMode: {
|
|
9
|
+
attribute: "class",
|
|
10
|
+
light: "v-theme--light",
|
|
11
|
+
dark: "v-theme--dark",
|
|
12
|
+
default: "system"
|
|
13
|
+
},
|
|
14
|
+
initialLocale: en,
|
|
15
|
+
locales: {
|
|
16
|
+
resources: {
|
|
17
|
+
en,
|
|
18
|
+
ar: () => import("vuetify/lib/locale/ar.js").then((m) => m.default),
|
|
19
|
+
"zh-Hans": () => import("vuetify/lib/locale/zh-Hans.js").then((m) => m.default),
|
|
20
|
+
"zh-Hant": () => import("vuetify/lib/locale/zh-Hant.js").then((m) => m.default)
|
|
21
|
+
},
|
|
22
|
+
aliases: { zh: "zh-Hans" }
|
|
23
|
+
},
|
|
24
|
+
icons,
|
|
25
|
+
create({ nativeLocale, i18n, ssr }) {
|
|
26
|
+
const nativeScope = effectScope(true);
|
|
27
|
+
const vuetify = nativeScope.run(
|
|
28
|
+
() => createVuetify({
|
|
29
|
+
ssr,
|
|
30
|
+
theme: { defaultTheme: "light" },
|
|
31
|
+
icons: { defaultSet: "mdi", aliases, sets: { mdi } }
|
|
32
|
+
})
|
|
33
|
+
);
|
|
34
|
+
return {
|
|
35
|
+
plugin: vuetify,
|
|
36
|
+
dispose: () => nativeScope.stop(),
|
|
37
|
+
Root: defineComponent({
|
|
38
|
+
setup(_, { slots }) {
|
|
39
|
+
const mode = useUiColorMode();
|
|
40
|
+
watch(mode.state, (state) => vuetify.theme.change(state.resolved), {
|
|
41
|
+
immediate: true,
|
|
42
|
+
flush: "sync"
|
|
43
|
+
});
|
|
44
|
+
watch(
|
|
45
|
+
[nativeLocale, i18n.state],
|
|
46
|
+
() => {
|
|
47
|
+
const locale = i18n.state.value.resolved.backend ?? "en";
|
|
48
|
+
vuetify.locale.messages.value[locale] = nativeLocale.value;
|
|
49
|
+
vuetify.locale.rtl.value[locale] = i18n.state.value.direction === "rtl";
|
|
50
|
+
vuetify.locale.current.value = locale;
|
|
51
|
+
},
|
|
52
|
+
{ immediate: true }
|
|
53
|
+
);
|
|
54
|
+
return () => slots.default?.();
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
integration as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const uiLayoutPresentation = {
|
|
2
|
+
scrollFocus: { class: "vuetify-scroll-focus" },
|
|
3
|
+
peerSpacing: {
|
|
4
|
+
class: "ga-4"
|
|
5
|
+
},
|
|
6
|
+
peerSpacingLevels: {
|
|
7
|
+
[-1]: { class: "ga-2 vuetify-compact-layout" },
|
|
8
|
+
1: { class: "ga-6" }
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
uiLayoutPresentation
|
|
13
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ref, onMounted, watch, onActivated, onDeactivated, onBeforeUnmount } from "vue";
|
|
2
|
+
function useNativeDirection(target) {
|
|
3
|
+
const direction = ref("ltr");
|
|
4
|
+
let observer;
|
|
5
|
+
function read() {
|
|
6
|
+
const element = target() ?? document.documentElement;
|
|
7
|
+
direction.value = getComputedStyle(element).direction === "rtl" || !getComputedStyle(element).direction && element.closest("[dir]")?.getAttribute("dir") === "rtl" ? "rtl" : "ltr";
|
|
8
|
+
}
|
|
9
|
+
function observe() {
|
|
10
|
+
observer?.disconnect();
|
|
11
|
+
for (let node = target() ?? document.documentElement; node; node = node.parentElement)
|
|
12
|
+
observer?.observe(node, {
|
|
13
|
+
attributes: true,
|
|
14
|
+
attributeFilter: ["dir", "class", "style"]
|
|
15
|
+
});
|
|
16
|
+
read();
|
|
17
|
+
}
|
|
18
|
+
onMounted(() => {
|
|
19
|
+
observer = new MutationObserver(read);
|
|
20
|
+
observe();
|
|
21
|
+
});
|
|
22
|
+
watch(
|
|
23
|
+
target,
|
|
24
|
+
() => {
|
|
25
|
+
if (observer) observe();
|
|
26
|
+
},
|
|
27
|
+
{ flush: "post" }
|
|
28
|
+
);
|
|
29
|
+
onActivated(() => {
|
|
30
|
+
if (observer) observe();
|
|
31
|
+
});
|
|
32
|
+
onDeactivated(() => observer?.disconnect());
|
|
33
|
+
onBeforeUnmount(() => observer?.disconnect());
|
|
34
|
+
return direction;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
useNativeDirection
|
|
38
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function selectEscape(opened, trigger) {
|
|
2
|
+
return (event) => {
|
|
3
|
+
if (event.key !== "Escape" || event.defaultPrevented || !opened.value)
|
|
4
|
+
return;
|
|
5
|
+
event.preventDefault();
|
|
6
|
+
event.stopPropagation();
|
|
7
|
+
if (event.repeat) return;
|
|
8
|
+
opened.value = false;
|
|
9
|
+
trigger()?.focus({ preventScroll: true });
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
selectEscape
|
|
14
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useAttrs } from "vue";
|
|
2
|
+
import { syncUiTargetAttributes } from "@uninterface/uninterface/backend";
|
|
3
|
+
function useTargetListeners() {
|
|
4
|
+
const attrs = useAttrs();
|
|
5
|
+
const isListener = (key) => /^on[^a-z]/.test(key);
|
|
6
|
+
const isTargetAttribute = (key) => isListener(key) || key === "data-testid";
|
|
7
|
+
function surfaceAttributes() {
|
|
8
|
+
return Object.fromEntries(
|
|
9
|
+
Object.entries(attrs).filter(([key]) => !isTargetAttribute(key))
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function sync(root) {
|
|
13
|
+
const input = root.querySelector(
|
|
14
|
+
'textarea:not(.v-textarea__sizer), input:not([type="hidden"])'
|
|
15
|
+
);
|
|
16
|
+
if (input)
|
|
17
|
+
syncUiTargetAttributes(
|
|
18
|
+
input,
|
|
19
|
+
Object.fromEntries(
|
|
20
|
+
Object.entries(attrs).filter(([key]) => isTargetAttribute(key))
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
const directive = {
|
|
25
|
+
mounted: sync,
|
|
26
|
+
updated: sync,
|
|
27
|
+
beforeUnmount(root) {
|
|
28
|
+
const input = root.querySelector(
|
|
29
|
+
'textarea:not(.v-textarea__sizer), input:not([type="hidden"])'
|
|
30
|
+
);
|
|
31
|
+
if (input) syncUiTargetAttributes(input, {});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return { surfaceAttributes, directive };
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
useTargetListeners
|
|
38
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function popupTarget(element) {
|
|
2
|
+
if (!element || element.nodeType !== 1) return void 0;
|
|
3
|
+
return element?.closest(".v-overlay") ?? element ?? void 0;
|
|
4
|
+
}
|
|
5
|
+
function controlledPopup(id) {
|
|
6
|
+
if (typeof document === "undefined") return;
|
|
7
|
+
const trigger = document.getElementById(id);
|
|
8
|
+
const ids = (trigger?.getAttribute("aria-controls") ?? trigger?.getAttribute("aria-owns") ?? "").split(/\s+/).filter(Boolean);
|
|
9
|
+
for (const id2 of ids) {
|
|
10
|
+
const candidate = document.getElementById(id2);
|
|
11
|
+
if (candidate) return popupTarget(candidate);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
controlledPopup,
|
|
16
|
+
popupTarget
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const browserControlParts = {
|
|
2
|
+
collapsibleTrigger: (scope, name) => scope.getByRole("button", { name, exact: typeof name === "string" }),
|
|
3
|
+
temporalMode: (trigger, value) => ({
|
|
4
|
+
kind: "menu",
|
|
5
|
+
option: trigger.page().locator(`[data-temporal-mode-value="${value}"]:visible`)
|
|
6
|
+
}),
|
|
7
|
+
fileInputName: (root) => ({
|
|
8
|
+
kind: "text",
|
|
9
|
+
control: root.locator("[data-ui-file-name]")
|
|
10
|
+
}),
|
|
11
|
+
fileInput(root, clearName) {
|
|
12
|
+
const clear = root.getByRole("button", { name: clearName, exact: true });
|
|
13
|
+
const frame = root.locator(".v-field");
|
|
14
|
+
return {
|
|
15
|
+
chooser: root.locator("input[type=file]"),
|
|
16
|
+
frame,
|
|
17
|
+
focusedFrame: frame.and(root.locator(".v-field--focused")),
|
|
18
|
+
clear,
|
|
19
|
+
clearFocus: { target: clear, kind: "outline" }
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
browserControlParts
|
|
25
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { entryIconColumn, temporalPickerParts, fieldSelectors, fieldGroupParts, cardParts } from "./presentation-parts.js";
|
|
2
|
+
import { uiNativeDomTestAdapter, domFieldFeedbackParts, domFieldParts } from "@uninterface/testing/dom";
|
|
3
|
+
const emptyState = (scope) => {
|
|
4
|
+
const elements = scope.querySelectorAll(".vuetify-empty");
|
|
5
|
+
if (elements.length > 1)
|
|
6
|
+
throw new Error("More than one empty state in the supplied scope.");
|
|
7
|
+
return elements[0] ?? null;
|
|
8
|
+
};
|
|
9
|
+
const uiDomTestAdapter = {
|
|
10
|
+
version: 1,
|
|
11
|
+
card: (card) => cardParts((selector) => card.querySelector(selector)),
|
|
12
|
+
field: (editor) => domFieldParts(editor, fieldSelectors),
|
|
13
|
+
fieldGroup: (group) => fieldGroupParts((selector) => group.querySelector(selector)),
|
|
14
|
+
fieldFeedback: (editor) => domFieldFeedbackParts(editor, fieldSelectors),
|
|
15
|
+
emptyState,
|
|
16
|
+
temporalPicker: (picker) => temporalPickerParts((selector) => picker.querySelector(selector)),
|
|
17
|
+
menuEntryIcon(entry) {
|
|
18
|
+
const column = [...entry.querySelectorAll(entryIconColumn)].find(
|
|
19
|
+
(element) => element.closest("[data-entry-key]") === entry
|
|
20
|
+
) ?? null;
|
|
21
|
+
return { column, icon: column?.firstElementChild ?? null };
|
|
22
|
+
},
|
|
23
|
+
tableBody(scope) {
|
|
24
|
+
return {
|
|
25
|
+
body: scope.querySelector("tbody"),
|
|
26
|
+
scrollSurface: scope.querySelector(".v-table__wrapper"),
|
|
27
|
+
emptyState: emptyState(scope),
|
|
28
|
+
errorState: scope.querySelector('[data-collection-failure="initial"]')
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
select(control) {
|
|
32
|
+
if (control.tagName === "SELECT")
|
|
33
|
+
return uiNativeDomTestAdapter.select(control);
|
|
34
|
+
return {
|
|
35
|
+
kind: "composite",
|
|
36
|
+
selection: () => control.closest(".v-select")?.querySelector(".v-select__selection") ?? null,
|
|
37
|
+
popup: (owned) => owned.closest(".v-overlay__content") ?? owned.querySelector(".v-overlay__content")
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
uiDomTestAdapter
|
|
43
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { uiNativeTestAdapter } from "@uninterface/testing/playwright";
|
|
2
|
+
import { fieldGroupParts, fieldSelectors, cardParts } from "./presentation-parts.js";
|
|
3
|
+
import { presentationParts } from "./presentation-mapping.js";
|
|
4
|
+
import { browserControlParts } from "./browser-control-parts.js";
|
|
5
|
+
const uiTestAdapter = {
|
|
6
|
+
...presentationParts,
|
|
7
|
+
card: (card) => cardParts((selector) => card.locator(selector)),
|
|
8
|
+
fieldGroup(group) {
|
|
9
|
+
const parts = fieldGroupParts((selector) => group.locator(selector));
|
|
10
|
+
const { label } = parts;
|
|
11
|
+
const generated = label.and(group.page().locator(fieldSelectors.required)).or(label.locator(fieldSelectors.required));
|
|
12
|
+
return {
|
|
13
|
+
...parts,
|
|
14
|
+
required: {
|
|
15
|
+
elements: label.locator(":not(*)"),
|
|
16
|
+
before: generated,
|
|
17
|
+
after: generated
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
inputFrame: (frame) => ({
|
|
22
|
+
surface: frame.locator("xpath=ancestor-or-self::*").and(frame.page().locator(".vuetify-input-frame")).last()
|
|
23
|
+
}),
|
|
24
|
+
buttonFocus: (button) => ({
|
|
25
|
+
target: button,
|
|
26
|
+
kind: "border",
|
|
27
|
+
pseudo: "::after"
|
|
28
|
+
}),
|
|
29
|
+
async checkable(control) {
|
|
30
|
+
const parts = await uiNativeTestAdapter.checkable(control);
|
|
31
|
+
const container = control.locator("xpath=ancestor::*").and(control.page().locator(".v-selection-control")).last();
|
|
32
|
+
const surface = container.locator(".v-selection-control__wrapper");
|
|
33
|
+
return { ...parts, surface: await surface.count() ? surface : control };
|
|
34
|
+
},
|
|
35
|
+
version: 1,
|
|
36
|
+
menuPopup(menu) {
|
|
37
|
+
return menu.locator(
|
|
38
|
+
'xpath=ancestor::*[contains(concat(" ", normalize-space(@class), " "), " v-overlay__content ")][1]'
|
|
39
|
+
).and(menu.page().locator(".v-menu > .v-overlay__content")).locator(":scope > .v-sheet");
|
|
40
|
+
},
|
|
41
|
+
async multiSelect(control) {
|
|
42
|
+
const parts = uiTestAdapter.select(control);
|
|
43
|
+
return {
|
|
44
|
+
...parts,
|
|
45
|
+
clear: parts.trigger.locator('.v-field__clearable [role="button"]')
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
choice: uiNativeTestAdapter.choice,
|
|
49
|
+
navigationEntry: uiNativeTestAdapter.navigationEntry,
|
|
50
|
+
columnHeaders(table) {
|
|
51
|
+
return table.locator(":scope > thead > tr > th");
|
|
52
|
+
},
|
|
53
|
+
modal(dialog) {
|
|
54
|
+
return {
|
|
55
|
+
body: dialog.locator(
|
|
56
|
+
":scope > .vuetify-modal-surface > .vuetify-modal-scroll"
|
|
57
|
+
),
|
|
58
|
+
actions: dialog.locator(
|
|
59
|
+
":scope > .vuetify-modal-surface > .vuetify-modal-footer"
|
|
60
|
+
)
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
tableHeaderSeparator: uiNativeTestAdapter.tableHeaderSeparator,
|
|
64
|
+
columnHeaderParts(header) {
|
|
65
|
+
return {
|
|
66
|
+
caption: header.locator(".v-data-table-header__content"),
|
|
67
|
+
sortTarget: header.and(
|
|
68
|
+
header.page().locator(".v-data-table__th--sortable")
|
|
69
|
+
),
|
|
70
|
+
sortIndicator: header.locator(".v-data-table-header__sort-icon")
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
popoverSurface(dialog) {
|
|
74
|
+
return dialog.locator(
|
|
75
|
+
':scope[data-ui-overlay="popover"] > .vuetify-modal-surface'
|
|
76
|
+
);
|
|
77
|
+
},
|
|
78
|
+
async field(control) {
|
|
79
|
+
const field = control.locator(
|
|
80
|
+
'xpath=ancestor::*[contains(concat(" ", normalize-space(@class), " "), " vuetify-field ")][1]'
|
|
81
|
+
);
|
|
82
|
+
const external = field.locator(":scope > label");
|
|
83
|
+
const label = await external.count() ? external : field.locator(
|
|
84
|
+
".v-field--active .v-field-label--floating, .v-field:not(.v-field--active) .v-field-label:not(.v-field-label--floating)"
|
|
85
|
+
);
|
|
86
|
+
const surface = field.locator(".v-field:not(.v-field .v-field)");
|
|
87
|
+
return {
|
|
88
|
+
label,
|
|
89
|
+
// Native integrated labels deliberately pass pointer events through to
|
|
90
|
+
// the field/input. Keep the painted label distinct from its hit target.
|
|
91
|
+
labelTarget: await external.count() ? external : surface,
|
|
92
|
+
surface: await surface.count() ? surface : control,
|
|
93
|
+
required: {
|
|
94
|
+
elements: label.locator(":scope > :not(*)"),
|
|
95
|
+
before: label,
|
|
96
|
+
after: label
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
checkbox: (control) => control,
|
|
101
|
+
select(control) {
|
|
102
|
+
return {
|
|
103
|
+
kind: "composite",
|
|
104
|
+
trigger: control.locator(
|
|
105
|
+
'xpath=ancestor::*[contains(concat(" ", normalize-space(@class), " "), " v-field ")][1]'
|
|
106
|
+
),
|
|
107
|
+
selection: control.locator(
|
|
108
|
+
'xpath=ancestor::*[contains(concat(" ", normalize-space(@class), " "), " v-select ")][1]'
|
|
109
|
+
).locator(".v-select__selection"),
|
|
110
|
+
async popup() {
|
|
111
|
+
const id = await control.getAttribute("aria-controls");
|
|
112
|
+
if (!id || /\s/.test(id))
|
|
113
|
+
throw new Error(
|
|
114
|
+
"UiSelect must identify exactly one owned popup through aria-controls."
|
|
115
|
+
);
|
|
116
|
+
const owned = control.page().locator(`[id=${JSON.stringify(id)}]`);
|
|
117
|
+
return owned.locator(".v-overlay__content > .v-sheet");
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
browserControlParts,
|
|
124
|
+
uiTestAdapter
|
|
125
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { browserFieldFeedbackParts } from "@uninterface/testing/playwright";
|
|
2
|
+
import { entryIconColumn, temporalPickerParts, fieldSelectors } from "./presentation-parts.js";
|
|
3
|
+
const presentationParts = {
|
|
4
|
+
fieldFeedback: (editor) => browserFieldFeedbackParts(editor, fieldSelectors.invalid),
|
|
5
|
+
tableBody(table) {
|
|
6
|
+
const scope = table.locator("xpath=ancestor-or-self::*[@data-scroll][1]");
|
|
7
|
+
return {
|
|
8
|
+
body: table.locator("tbody"),
|
|
9
|
+
scrollSurface: scope.locator(".v-table__wrapper"),
|
|
10
|
+
emptyState: scope.locator(".vuetify-empty"),
|
|
11
|
+
errorState: scope.locator('[data-collection-failure="initial"]')
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
feedbackItem(item) {
|
|
15
|
+
return {
|
|
16
|
+
content: item.locator(".vuetify-feedback-content"),
|
|
17
|
+
surface: item.locator(".vuetify-feedback-surface")
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
progressBar(bar) {
|
|
21
|
+
return {
|
|
22
|
+
track: bar,
|
|
23
|
+
fill: bar.locator(
|
|
24
|
+
".v-progress-linear__determinate,.v-progress-linear__indeterminate.long"
|
|
25
|
+
)
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
uploadRegion(region) {
|
|
29
|
+
const surface = region;
|
|
30
|
+
const chooser = region.locator("[data-upload-choose]");
|
|
31
|
+
return {
|
|
32
|
+
surface,
|
|
33
|
+
chooser,
|
|
34
|
+
chooserFocus: { target: chooser, kind: "border", pseudo: "::after" }
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
temporalPicker: (picker) => temporalPickerParts((selector) => picker.locator(selector)),
|
|
38
|
+
menuEntryIcon(entry) {
|
|
39
|
+
const column = entry.locator(
|
|
40
|
+
`:is(${entryIconColumn}):not(:scope [data-entry-key] *)`
|
|
41
|
+
);
|
|
42
|
+
return {
|
|
43
|
+
column,
|
|
44
|
+
icon: column.locator(":scope > *")
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
presentationParts
|
|
50
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
function cardParts(find) {
|
|
2
|
+
return {
|
|
3
|
+
header: find(":scope > .vuetify-card-header"),
|
|
4
|
+
body: find(":scope > .vuetify-card-body"),
|
|
5
|
+
footer: find(":scope > .vuetify-card-footer"),
|
|
6
|
+
topEnd: find(":scope > .vuetify-card-top-end")
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
const fieldSelectors = {
|
|
10
|
+
root: ".vuetify-field",
|
|
11
|
+
surface: ".v-field",
|
|
12
|
+
required: ".vuetify-required,.vuetify-required-control,.vuetify-required-checkbox",
|
|
13
|
+
invalid: ".v-input--error"
|
|
14
|
+
};
|
|
15
|
+
function fieldGroupParts(find) {
|
|
16
|
+
return {
|
|
17
|
+
label: find(":scope > .v-label"),
|
|
18
|
+
controlArea: find(":scope > .vuetify-field-editor")
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function temporalPickerParts(find) {
|
|
22
|
+
return {
|
|
23
|
+
dateInput: find("input[type=date],input[type=datetime-local]"),
|
|
24
|
+
timeInput: find("input[type=time],input[type=datetime-local]"),
|
|
25
|
+
day(isoDate) {
|
|
26
|
+
return find(
|
|
27
|
+
'button.v-date-picker-month__day-btn[data-v-date="DATE"], button.v-date-picker-month__day-btn[id$="-day-DATE"]'.replaceAll(
|
|
28
|
+
"DATE",
|
|
29
|
+
isoDate
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
},
|
|
33
|
+
timeSegment(unit) {
|
|
34
|
+
return find(
|
|
35
|
+
".v-time-picker-controls__time__field:nth-of-type(UNIT_INDEX) input".replace(
|
|
36
|
+
"UNIT_INDEX",
|
|
37
|
+
String(["hour", "minute", "second"].indexOf(unit) + 1)
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const entryIconColumn = ".vuetify-entry-icon";
|
|
44
|
+
export {
|
|
45
|
+
cardParts,
|
|
46
|
+
entryIconColumn,
|
|
47
|
+
fieldGroupParts,
|
|
48
|
+
fieldSelectors,
|
|
49
|
+
temporalPickerParts
|
|
50
|
+
};
|
package/font-bundled.css
ADDED
package/font-family.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* Font selection only; native token mapping belongs to style.css. */
|
|
2
|
+
:root,
|
|
3
|
+
body,
|
|
4
|
+
[lang] {
|
|
5
|
+
--uninterface-font-set-family:
|
|
6
|
+
'Roboto Variable', 'Noto Sans SC Variable', system-ui, sans-serif;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:root:lang(zh-Hant),
|
|
10
|
+
body:lang(zh-Hant),
|
|
11
|
+
[lang]:lang(zh-Hant),
|
|
12
|
+
:root:lang(zh-TW),
|
|
13
|
+
body:lang(zh-TW),
|
|
14
|
+
[lang]:lang(zh-TW),
|
|
15
|
+
:root:lang(zh-HK),
|
|
16
|
+
body:lang(zh-HK),
|
|
17
|
+
[lang]:lang(zh-HK),
|
|
18
|
+
:root:lang(zh-MO),
|
|
19
|
+
body:lang(zh-MO),
|
|
20
|
+
[lang]:lang(zh-MO) {
|
|
21
|
+
--uninterface-font-set-family:
|
|
22
|
+
'Roboto Variable', 'Noto Sans TC Variable', system-ui, sans-serif;
|
|
23
|
+
}
|