@uninterface/backend-element-plus 0.0.0-stage → 2.14.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 +61 -2
- package/THIRD-PARTY-NOTICES.md +37 -0
- package/capabilities.json +168 -0
- package/docs/README.md +47 -0
- package/docs/collections.md +211 -0
- package/docs/contract-adaptations.md +111 -0
- package/docs/customization.md +131 -0
- package/docs/examples/NativeReference.vue +147 -0
- package/docs/exports.md +32 -0
- package/docs/floating-panels.md +53 -0
- package/docs/font-licenses/inter.txt +93 -0
- package/docs/font-licenses/noto-sans-sc.txt +93 -0
- package/docs/font-licenses/noto-sans-tc.txt +93 -0
- package/docs/icon-licenses/Element-Plus.txt +21 -0
- package/docs/icon-licenses/SOURCES.md +47 -0
- package/docs/modals.md +29 -0
- package/docs/native-html.md +21 -0
- package/docs/navigation.md +31 -0
- package/docs/package-build.md +20 -0
- package/docs/presentation.md +291 -0
- package/docs/progress.md +9 -0
- package/docs/reviewed-components.md +76 -0
- package/docs/segmented-selection.md +22 -0
- package/docs/selection-feedback-panels.md +79 -0
- package/docs/setup.md +159 -0
- package/docs/strategies.md +89 -0
- package/docs/table-columns.md +37 -0
- package/docs/testing.md +44 -0
- package/docs/typography.md +93 -0
- package/document.css +102 -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.css +23 -0
- package/esm/src/ChoiceGroup.vue.js +8 -0
- package/esm/src/ChoiceGroup2.vue.js +221 -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 +86 -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.vue.js +4 -0
- package/esm/src/EntryBranch2.vue.js +357 -0
- package/esm/src/EntryContent.css +10 -0
- package/esm/src/EntryContent.vue.js +8 -0
- package/esm/src/EntryContent2.vue.js +79 -0
- package/esm/src/EntryPopup.vue.js +4 -0
- package/esm/src/EntryPopup2.vue.js +164 -0
- package/esm/src/FeedbackItem.vue.js +4 -0
- package/esm/src/FeedbackItem2.vue.js +145 -0
- package/esm/src/FeedbackViewport.vue.js +4 -0
- package/esm/src/FeedbackViewport2.vue.js +42 -0
- package/esm/src/FieldError.vue.js +4 -0
- package/esm/src/FieldError2.vue.js +34 -0
- package/esm/src/FieldFailureTooltip.vue.js +4 -0
- package/esm/src/FieldFailureTooltip2.vue.js +96 -0
- package/esm/src/FileTypeIcon.vue.js +4 -0
- package/esm/src/FileTypeIcon2.vue.js +32 -0
- package/esm/src/FooterActions.vue.js +16 -0
- package/esm/src/MenuBridge.vue.js +4 -0
- package/esm/src/MenuBridge2.vue.js +68 -0
- package/esm/src/NativeMenu.vue.js +4 -0
- package/esm/src/NativeMenu2.vue.js +90 -0
- package/esm/src/OverlaySurface.vue.js +4 -0
- package/esm/src/OverlaySurface2.vue.js +195 -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 +35 -0
- package/esm/src/TemporalAction.vue.js +4 -0
- package/esm/src/TemporalAction2.vue.js +46 -0
- package/esm/src/TemporalEditor.vue.js +4 -0
- package/esm/src/TemporalEditor2.vue.js +113 -0
- package/esm/src/TemporalInput.vue.js +4 -0
- package/esm/src/TemporalInput2.vue.js +269 -0
- package/esm/src/TemporalMode.vue.js +4 -0
- package/esm/src/TemporalMode2.vue.js +149 -0
- package/esm/src/TemporalPicker.vue.js +4 -0
- package/esm/src/TemporalPicker2.vue.js +155 -0
- package/esm/src/TemporalRangeIcon.vue.js +4 -0
- package/esm/src/TemporalRangeIcon2.vue.js +67 -0
- package/esm/src/TemporalRangePicker.vue.js +4 -0
- package/esm/src/TemporalRangePicker2.vue.js +199 -0
- package/esm/src/TemporalTimePanel.vue.js +4 -0
- package/esm/src/TemporalTimePanel2.vue.js +53 -0
- package/esm/src/UiApp.vue.js +4 -0
- package/esm/src/UiApp2.vue.js +57 -0
- package/esm/src/UiBadge.vue.js +4 -0
- package/esm/src/UiBadge2.vue.js +44 -0
- package/esm/src/UiBreadcrumbs.css +7 -0
- package/esm/src/UiBreadcrumbs.vue.js +8 -0
- package/esm/src/UiBreadcrumbs2.vue.js +110 -0
- package/esm/src/UiButton.vue.js +4 -0
- package/esm/src/UiButton2.vue.js +167 -0
- package/esm/src/UiCard.vue.js +4 -0
- package/esm/src/UiCard2.vue.js +102 -0
- package/esm/src/UiCheckbox.vue.js +4 -0
- package/esm/src/UiCheckbox2.vue.js +105 -0
- package/esm/src/UiCheckboxGroup.vue.js +4 -0
- package/esm/src/UiCheckboxGroup2.vue.js +43 -0
- package/esm/src/UiCollapsible.css +7 -0
- package/esm/src/UiCollapsible.vue.js +8 -0
- package/esm/src/UiCollapsible2.vue.js +59 -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 +172 -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 +138 -0
- package/esm/src/UiFilePreview.vue.js +4 -0
- package/esm/src/UiFilePreview2.vue.js +104 -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 +47 -0
- package/esm/src/UiIcon.css +7 -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 +92 -0
- package/esm/src/UiInputFrame.vue.js +4 -0
- package/esm/src/UiInputFrame2.vue.js +62 -0
- package/esm/src/UiInputFrameSpacer.vue.js +4 -0
- package/esm/src/UiInputFrameSpacer2.vue.js +20 -0
- package/esm/src/UiKeyValueItem.vue.js +4 -0
- package/esm/src/UiKeyValueItem2.vue.js +29 -0
- package/esm/src/UiKeyValueList.vue.js +4 -0
- package/esm/src/UiKeyValueList2.vue.js +17 -0
- package/esm/src/UiLayout.vue.js +4 -0
- package/esm/src/UiLayout2.vue.js +156 -0
- package/esm/src/UiLink.vue.js +4 -0
- package/esm/src/UiLink2.vue.js +43 -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 +53 -0
- package/esm/src/UiLoadingRegion.vue.js +4 -0
- package/esm/src/UiLoadingRegion2.vue.js +100 -0
- package/esm/src/UiMenu.vue.js +4 -0
- package/esm/src/UiMenu2.vue.js +70 -0
- package/esm/src/UiModal.vue.js +4 -0
- package/esm/src/UiModal2.vue.js +145 -0
- package/esm/src/UiMultiSelect.vue.js +4 -0
- package/esm/src/UiMultiSelect2.vue.js +224 -0
- package/esm/src/UiNavMenu.vue.js +4 -0
- package/esm/src/UiNavMenu2.vue.js +86 -0
- package/esm/src/UiNavbar.vue.js +4 -0
- package/esm/src/UiNavbar2.vue.js +37 -0
- package/esm/src/UiNotice.vue.js +4 -0
- package/esm/src/UiNotice2.vue.js +186 -0
- package/esm/src/UiPaginator.vue.js +4 -0
- package/esm/src/UiPaginator2.vue.js +260 -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 +60 -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 +62 -0
- package/esm/src/UiProgressBar.vue.js +4 -0
- package/esm/src/UiProgressBar2.vue.js +44 -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 +72 -0
- package/esm/src/UiSegmentedSelect.vue.js +8 -0
- package/esm/src/UiSegmentedSelect2.vue.js +190 -0
- package/esm/src/UiSelect.vue.js +4 -0
- package/esm/src/UiSelect2.vue.js +209 -0
- package/esm/src/UiSuggestions.vue.js +4 -0
- package/esm/src/UiSuggestions2.vue.js +151 -0
- package/esm/src/UiSwitch.vue.js +4 -0
- package/esm/src/UiSwitch2.vue.js +108 -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 +740 -0
- package/esm/src/UiTabs.vue.js +4 -0
- package/esm/src/UiTabs2.vue.js +85 -0
- package/esm/src/UiTextInput.vue.js +4 -0
- package/esm/src/UiTextInput2.vue.js +108 -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 +72 -0
- package/esm/src/UiUploadProgress.vue.js +4 -0
- package/esm/src/UiUploadProgress2.vue.js +134 -0
- package/esm/src/UiUploadRegion.vue.js +4 -0
- package/esm/src/UiUploadRegion2.vue.js +230 -0
- package/esm/src/checkableDescription.js +104 -0
- package/esm/src/controlSize.js +29 -0
- package/esm/src/fieldPresentation.js +50 -0
- package/esm/src/focus.js +6 -0
- package/esm/src/formPresentation.js +6 -0
- package/esm/src/icons/external-link.vue.js +32 -0
- package/esm/src/icons/globe.vue.js +59 -0
- package/esm/src/icons/index.js +67 -0
- package/esm/src/icons/more-vertical.vue.js +13 -0
- package/esm/src/icons/more-vertical2.vue.js +4 -0
- package/esm/src/index.js +18 -0
- package/esm/src/integration.js +45 -0
- package/esm/src/layout.js +13 -0
- package/esm/src/menuPresentation.js +229 -0
- package/esm/src/navigationDropdownHeight.js +43 -0
- package/esm/src/selectEscape.js +11 -0
- package/esm/src/zOrder.js +17 -0
- package/esm/testing/browser-control-parts.js +25 -0
- package/esm/testing/dom.js +48 -0
- package/esm/testing/index.js +120 -0
- package/esm/testing/presentation-mapping.js +45 -0
- package/esm/testing/presentation-parts.js +49 -0
- package/font-bundled.css +6 -0
- package/font-family.css +23 -0
- package/font.css +6 -0
- package/hooks/vite.d.mts +3 -0
- package/hooks/vite.mjs +178 -0
- package/native-content.css +52 -0
- package/package.json +83 -4
- package/style.css +3549 -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 +26 -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 +31 -0
- package/types/src/EntryContent.vue.d.ts +35 -0
- package/types/src/EntryPopup.vue.d.ts +24 -0
- package/types/src/FeedbackItem.vue.d.ts +16 -0
- package/types/src/FeedbackViewport.vue.d.ts +19 -0
- package/types/src/FieldError.vue.d.ts +9 -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/MenuBridge.vue.d.ts +13 -0
- package/types/src/NativeMenu.vue.d.ts +44 -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/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 +17 -0
- package/types/src/TemporalTimePanel.vue.d.ts +14 -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 +36 -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 +90 -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/fieldPresentation.d.ts +50 -0
- package/types/src/focus.d.ts +3 -0
- package/types/src/formPresentation.d.ts +3 -0
- package/types/src/icons/external-link.vue.d.ts +3 -0
- package/types/src/icons/globe.vue.d.ts +3 -0
- package/types/src/icons/index.d.ts +181 -0
- package/types/src/icons/more-vertical.vue.d.ts +3 -0
- package/types/src/index.d.ts +2 -0
- package/types/src/integration.d.ts +1426 -0
- package/types/src/layout.d.ts +2 -0
- package/types/src/menuPresentation.d.ts +30 -0
- package/types/src/navigationDropdownHeight.d.ts +3 -0
- package/types/src/selectEscape.d.ts +1 -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 +33 -0
- package/types/testing/presentation-parts.d.mts +20 -0
package/docs/setup.md
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# Set up the Element Plus backend
|
|
2
|
+
|
|
3
|
+
This guide owns the application integration requirements for `@uninterface/backend-element-plus`. Business components use `@uninterface/uninterface`; toolkit configuration stays at application assembly.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
Use Node.js 24 or 26, Vue `^3.5.18`, and Vite `^7.3.7 || ~8.1.6 || ~8.2.4 || ^8.3.3` with a compatible `@vitejs/plugin-vue`. The backend requires Vite for its build hook. Use Vue-aware TypeScript checking and keep one runtime copy of Vue and core.
|
|
8
|
+
|
|
9
|
+
## Select the backend
|
|
10
|
+
|
|
11
|
+
The release package ships compiled ES modules and TypeScript declarations.
|
|
12
|
+
Install `@uninterface/backend-element-plus` under the alias `@uninterface/backend`.
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install @uninterface/uninterface@^0.1.0 @uninterface/backend@npm:@uninterface/backend-element-plus@2.14.0
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Choose a Core version that satisfies the selected backend release's peer dependency.
|
|
19
|
+
|
|
20
|
+
Use TypeScript's `Bundler` module resolution to resolve the package's type
|
|
21
|
+
exports. See [package build](package-build.md) for a source checkout.
|
|
22
|
+
|
|
23
|
+
## Configure Vite
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
// vite.config.ts
|
|
27
|
+
import { defineConfig } from 'vite'
|
|
28
|
+
import vue from '@vitejs/plugin-vue'
|
|
29
|
+
import backendPlugins from '@uninterface/backend/vite'
|
|
30
|
+
|
|
31
|
+
export default defineConfig({
|
|
32
|
+
plugins: [vue(), backendPlugins()],
|
|
33
|
+
resolve: { dedupe: ['vue', '@uninterface/uninterface'] },
|
|
34
|
+
})
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Initialize the application
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
// src/main.ts
|
|
41
|
+
import { createUiApplication } from '@uninterface/uninterface/setup'
|
|
42
|
+
import '@uninterface/backend/font.css'
|
|
43
|
+
import '@uninterface/backend/style.css'
|
|
44
|
+
import App from './App.vue'
|
|
45
|
+
|
|
46
|
+
const app = createUiApplication(App, { document })
|
|
47
|
+
await app.ui.ready
|
|
48
|
+
app.mount('#app')
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The backend Vite hook is required: it initializes explicit native input IDs before mount while preserving native form registration, so server markup and hydration agree. It also starts native popup resize observation on initially visible mounts and refreshes native Popper positioning after entrance transitions. This lets lazy content growth and nested references measured during an ancestor transition receive updated placement. The hook also forwards the owning surface to native submenu Teleports. These adjustments preserve native menu markup, transitions and overflow/flip modifiers. The hook checks the pinned native source and rejects incompatible changes; reassess these workarounds on toolkit upgrades. All guarded adjustments run during Vite development dependency optimization and ordinary builds. Keep dependency optimization enabled for Element Plus: its CommonJS dependencies, including Day.js, need prebundling for browser loading. Do not add Element Plus to `optimizeDeps.exclude`. The required `./integration` export is a descriptor consumed automatically by createUiApplication, not a Vue plugin to install directly. The adapter declares Element Plus 2.14.7 as its dependency and imports toolkit components explicitly; do not add a global component registry or automatic resolver for these views. The stylesheet includes the full Element Plus component CSS, the compiled upstream document reset, and opt-in `.dark` theme variables. The reset establishes body typography for ordinary content and teleported popups, and affects native headings, paragraphs, links and horizontal rules. These document-wide effects apply with or without UiApp. The compiled reset ships with the backend; applications do not need Sass. The document reset does not remove body margins. The separate font.css entry loads default fonts from jsDelivr; font-bundled.css explicitly selects self-hosted assets. Loading these variables does not implement application-wide dark-mode control.
|
|
52
|
+
|
|
53
|
+
The integration descriptor is loaded by core through the selected alias; business components need no backend imports. Import the stylesheet once. The top-level `document` option grants ownership of document language attributes; omit it for an embedded application. Await readiness before mounting. For SSR/hydration, supply the same explicit `idPrefix` on both sides, create a fresh application per request and call `app.ui.dispose()` in `finally`. The core application-isolation guide defines the verified editing baseline and request-owned business-session cleanup.
|
|
54
|
+
|
|
55
|
+
Create a minimal `App.vue` to verify the configured application:
|
|
56
|
+
|
|
57
|
+
```vue
|
|
58
|
+
<script setup lang="ts">
|
|
59
|
+
import { ref } from 'vue'
|
|
60
|
+
import { UiApp, UiButton, UiContent } from '@uninterface/uninterface'
|
|
61
|
+
|
|
62
|
+
const acknowledged = ref(false)
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<template>
|
|
66
|
+
<UiApp>
|
|
67
|
+
<UiContent>
|
|
68
|
+
<h1>Application ready</h1>
|
|
69
|
+
<UiButton
|
|
70
|
+
:disabled="acknowledged"
|
|
71
|
+
@click="acknowledged = true"
|
|
72
|
+
>
|
|
73
|
+
Acknowledge
|
|
74
|
+
</UiButton>
|
|
75
|
+
<p v-if="acknowledged" role="status">Acknowledged.</p>
|
|
76
|
+
</UiContent>
|
|
77
|
+
</UiApp>
|
|
78
|
+
</template>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Mount into the existing Vue application's `#app` element. Use its configured Vite and Vue type-check commands to build/check the source. Confirm that the button responds, becomes disabled and displays the status. This verifies a basic interaction, not every backend capability or browser.
|
|
82
|
+
|
|
83
|
+
## Scope and verification
|
|
84
|
+
|
|
85
|
+
The [presentation reference](presentation.md) documents native mappings and limitations; [exports](exports.md) documents assembly modules. Capability declarations describe supported contracts; they do not certify accessibility. Browser keyboard, focus, popup, contrast and scrolling checks remain necessary in addition to builds and DOM simulation.
|
|
86
|
+
|
|
87
|
+
## Localization and icons
|
|
88
|
+
|
|
89
|
+
Use `createUiApplication` to install this backend's `integration` alongside core resources. Do not separately install a native toolkit plugin. Core's application-localization service owns language selection and synchronizes the native resources supplied by this backend.
|
|
90
|
+
|
|
91
|
+
The initial full message set is English, Simplified Chinese, Traditional Chinese and Arabic. The integration declares native resource aliases; core exposes the effective native locale through `app.ui.i18n.state.value.resolved.backend`. Additional native resources can be supplied by extending the selected integration at assembly through the `backend` option; core/business components need no backend-name branch. Additional languages and full RTL require acceptance before support claims.
|
|
92
|
+
|
|
93
|
+
The catalogue supplies 58 semantic icon names. Application overrides affect UiIcon and menu entry icons; native internal glyphs retain their toolkit defaults. Assets are bundled locally without an external icon service. Artwork comes from the installed `@element-plus/icons-vue` dependency, which retains its license. The [third-party notice](../THIRD-PARTY-NOTICES.md) also covers the compiled document reset.
|
|
94
|
+
|
|
95
|
+
Arabic (`ar`, العربية) uses script-derived RTL direction. The integration lazily loads the toolkit’s native Arabic pack. Some upstream native strings may remain untranslated. `resolved.backend` reports `ar`, including for compatible regional requests. Message and direction support do not certify full RTL layout or browser acceptance.
|
|
96
|
+
|
|
97
|
+
Request a language through the installed service; do not install another native locale manager:
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
await app.ui.i18n.setLocale('zh-Hans')
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Register your own headings, field labels and business messages through `i18n.resources` at createUiApplication setup. Core/native packs translate library-owned text, not arbitrary strings in your application. Resource failures retain the previous language; handle the rejected request. Additional catalogue definitions use the setup `icons` option. Exact resource and icon contracts are documented by `@uninterface/uninterface` under `docs/guides/localization-and-icons.md`.
|
|
104
|
+
|
|
105
|
+
## Color mode
|
|
106
|
+
|
|
107
|
+
This backend supports `theme.color-mode.v1`. To let a top-level application own document mode, include `colorMode` in application setup:
|
|
108
|
+
|
|
109
|
+
```ts
|
|
110
|
+
const app = createUiApplication(App, {
|
|
111
|
+
document,
|
|
112
|
+
colorMode: {
|
|
113
|
+
document,
|
|
114
|
+
preference: 'system',
|
|
115
|
+
storageKey: 'application-appearance', // Optional persistence.
|
|
116
|
+
},
|
|
117
|
+
})
|
|
118
|
+
await app.ui.ready
|
|
119
|
+
app.mount('#app')
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Core manages preference, system detection and optional persistence; the backend maps the result to native `light`/`dark` classes on html, covering teleported surfaces as well as the app. Do not independently toggle toolkit classes or enable another preference controller. The top-level `document` option for language is separate from `colorMode.document`.
|
|
123
|
+
|
|
124
|
+
Embedded applications omit colorMode to observe the host document without mutating it. For SSR, emit the native html selector matching the resolved server mode and hydrate with the same initial resolution. Independent simultaneous modes in one document are unsupported. Palette changes and accessible contrast still require browser verification; see [presentation](presentation.md#color-mode).
|
|
125
|
+
|
|
126
|
+
## Customize presentation
|
|
127
|
+
|
|
128
|
+
See [customization](customization.md) for supported application-owned styling,
|
|
129
|
+
native configuration possibilities and adapter limitations.
|
|
130
|
+
|
|
131
|
+
See [strategy support](strategies.md) for optional regional preferences, control-size mappings and unsupported values.
|
|
132
|
+
|
|
133
|
+
## Server rendering and identity
|
|
134
|
+
|
|
135
|
+
Integration supplies a fresh native ID/z-index context per application. Native IDs use the full Vue application prefix; Element Plus 2.14.7 interpolates that prefix into IDs although its TypeScript provider type declares a number. The adapter preserves the string namespace without hashing it. Both this boundary and the guarded build transformation require review when upgrading Element Plus. Text inputs forward their initial value through native attributes as well as the live model.
|
|
136
|
+
|
|
137
|
+
Render Vue's teleport output into its target hosts before hydration. Native tooltip hosts use `#el-popper-container-<idPrefix>`; emit the matching container, including empty anchors. The verified baseline covers text/multiline fields, checkbox, form submit/reset, icons and locale/mode. Open overlays and general selection SSR remain outside that baseline. Backend checkbox label coordination settles after mount without replacing the editor.
|
|
138
|
+
|
|
139
|
+
For `UiTable` and table-mode `UiCollectionView`, see the [known server-rendering limitation](collections.md#server-rendering-and-hydration).
|
|
140
|
+
|
|
141
|
+
## Typography: fonts first, backend styles second
|
|
142
|
+
|
|
143
|
+
| Choice | First import: fonts |
|
|
144
|
+
|---|---|
|
|
145
|
+
| **Backend default · Network** (recommended starting setup) | `@uninterface/backend/font.css` |
|
|
146
|
+
| **Backend default · Bundled** | `@uninterface/backend/font-bundled.css` |
|
|
147
|
+
| **Uninterface default · Network** | `@uninterface/fonts/font.css` |
|
|
148
|
+
| **Uninterface default · Bundled** | `@uninterface/fonts/font-bundled.css` |
|
|
149
|
+
|
|
150
|
+
Import one selected font entry before the stable `@uninterface/backend/style.css`, as shown in the setup example. The Uninterface choices require the optional `@uninterface/fonts` package. Omitting the font import uses system fonts without downloads. See [typography and fonts](typography.md) for installation, CSP, deployment, language coverage and verification steps.
|
|
151
|
+
|
|
152
|
+
[Native HTML content defaults](native-html.md): supported element baseline, toolkit mappings, setup, spacing and verification limits.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### Common icon assets
|
|
156
|
+
|
|
157
|
+
The common catalogue supplies 58 semantic names with independent override keys. The artwork includes icons from `@element-plus/icons-vue` 2.3.2. Setup imports the catalogue as local Vue components. Applications should budget for the whole catalogue in the bundle. Native internal glyphs are separate from the override catalogue. For semantic names and overrides, see `docs/api/constants/uiIconNames.md` and `docs/guides/localization-and-icons.md` in the Core package. See [asset sources and mappings](icon-licenses/SOURCES.md).
|
|
158
|
+
|
|
159
|
+
`globe` and `external-link` are original backend-owned 1024-unit SVGs; they are not Element Plus exports. Sorting uses native `SortUp`/`SortDown` simple arrows, with ordering meaning supplied by the action/state label. `create` reuses Plus without sharing the `add` override key. See [asset provenance](../THIRD-PARTY-NOTICES.md).
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Presentation strategies
|
|
2
|
+
|
|
3
|
+
For application authors choosing optional presentation preferences with this backend. Use `UiStrategy` and the common factories from `@uninterface/uninterface`; no backend imports or CSS are needed in business components. Core's strategy contract and usage guide define attachment, custom queries, scope and blocking.
|
|
4
|
+
|
|
5
|
+
```vue
|
|
6
|
+
<UiStrategy :use="uiControlSize(-1)">
|
|
7
|
+
<UiField :field="name" label="Name"><UiTextInput /></UiField>
|
|
8
|
+
<UiButton>Continue</UiButton>
|
|
9
|
+
</UiStrategy>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Import the components and `uiControlSize` from `@uninterface/uninterface`, and create `name` with `createUiFieldControl('')`. Apply strategies to an existing region; UiStrategy adds no DOM wrapper.
|
|
13
|
+
|
|
14
|
+
## Control size
|
|
15
|
+
|
|
16
|
+
| Controls | Native levels and mapping |
|
|
17
|
+
|---|---|
|
|
18
|
+
| UiTextInput, UiSelect, UiCheckbox | -1 / 0 / 1 → small / default / large |
|
|
19
|
+
| UiButton | -1 / 0 / 1 → small / default / large |
|
|
20
|
+
|
|
21
|
+
UiField passes size to native ElFormItem, which sizes label typography, label/content line height and the native editor context. UiForm owns separation between its direct children; individual field sizes do not change that form gap. Fields outside that direct arrangement retain native bottom margins. Editors and buttons also resolve their own queries and pass native size props. Native large labels may retain the default font size while changing line height and alignment; size does not promise a uniform font multiplier. Query barriers explicitly restore ordinary/configured size so native context cannot bypass a declared limit. Requests -2/-1 map to small, 0 to default, and 1/2 to large.
|
|
22
|
+
|
|
23
|
+
Zero requests ordinary size. Levels are ordinal, not multipliers or additive offsets. All five size requests participate in agreement; the adapter maps the agreed level to its native scale. A three-level scale maps -2/-1 to small, 0 to ordinary and 1/2 to large. Common queries require supported contributions to agree; conflicting values preserve ordinary presentation. Omit strategies for normal use.
|
|
24
|
+
|
|
25
|
+
## Field presentation
|
|
26
|
+
|
|
27
|
+
Five common field queries participate, with per-field label support:
|
|
28
|
+
|
|
29
|
+
| Factory | Values and effect |
|
|
30
|
+
|---|---|
|
|
31
|
+
| uiCheckablePresentation | adapt / flushed / control-aligned / separated; checkable labels and group titles stay visible |
|
|
32
|
+
| uiFieldLabels | show / above / beside / beside-far / beside-near / floating / hidden; unsupported detail generalizes to beside/show |
|
|
33
|
+
| uiRequiredAnnotations | prefix / suffix / yes / no; presentation without changing required semantics |
|
|
34
|
+
| uiFieldHelp | together / replace-help; replace help only while a visible error is displayed |
|
|
35
|
+
| uiValidationFailure | none / show / show-below / show-embedded / show-tooltip; select failure visibility and placement |
|
|
36
|
+
|
|
37
|
+
Element Plus uses native FormItem label-position top/left/right: above → top, beside-far → left, beside-near → right. Beside resolves to beside-far for native Form left alignment and beside-near for right alignment, defaulting to beside-near when no horizontal alignment is configured. Resolution is reactive and shared by ordinary labels and checkable headings. This aligns text within a label column; it does not move the label to the right of the editor. Checkbox labels retain native beside placement. Native FormItem error slots and validation state supply below feedback. Required markers remain native when Form-owned placement matches; scoped exceptions use the label slot with competing native markers disabled.
|
|
38
|
+
|
|
39
|
+
Show retains ordinary backend feedback; show-below is supported, show-embedded renders below, and show-tooltip uses an anchored error bubble. The error bubble opens automatically while an issue is present. It appears when at least 50% of the editor anchor is visible after clipping and overlap by known layout regions. The accessible error description persists while the bubble is hidden. In a popover that stacks above its owning modal’s header and footer, the error appears below the field inside the popover. Embedded means the error message itself inside the control surface; this backend does not currently implement it. None suppresses field messages while retaining native invalid-state styling and preserving aria-invalid, requiredness, validation and submission behavior. Hidden message description IDs are removed, and help is restored. Form submission summaries remain independent.
|
|
40
|
+
|
|
41
|
+
All common requests agree before native fulfillment. Unsupported label detail generalizes through beside/show; failure placement generalizes to show. Show enables default visible treatment without imposing a location; omission preserves backend defaults. Core recommendations are not automatically applied declarations. Conflicting supported requests retain ordinary presentation. Reactive changes preserve editor identity, draft and focus. Required annotations yes preserves the enclosing native Form require-asterisk-position, including reactive configuration; the native default and standalone default are prefix. Explicit prefix/suffix override placement; optional annotations remain deferred.
|
|
42
|
+
|
|
43
|
+
Floating generalizes to show. Hidden visually hides ordinary non-checkable associated labels and group names; checkable labels/titles stay visible. Tooltip uses ElTooltip with a virtual field anchor. Omitted label/message strategies resolve native Form configuration before rendering. Show, supported below and unsupported embedded requests resolve the same below-message treatment and retain the configured inline-message modifier and native error typography/padding. Both inline and non-inline below messages participate in field sizing: the adapter deliberately replaces native absolute positioning so displayed feedback cannot consume another field's allocation. Message absence reserves no below-message space. Omission respects native show-message suppression; explicit show restores visible feedback. Renderers do not inspect the original failure request.
|
|
44
|
+
|
|
45
|
+
Native FormItem gates messages on both its own prop and the enclosing Form's
|
|
46
|
+
show-message setting. The adapter supplies resolved visibility to that gate
|
|
47
|
+
while retaining the original reactive Form configuration for descendant policy
|
|
48
|
+
resolution. This lets explicit show restore messages without leaking the
|
|
49
|
+
parent field's resolved visibility through a nested strategy barrier. Native
|
|
50
|
+
Form ownership, validation flow and other configuration remain native-owned.
|
|
51
|
+
|
|
52
|
+
Resolution follows agreement on original intent. Before rendering, general show/yes/beside/adapt values, omitted preferences and unsupported detail become concrete supported treatments. Equivalent resolved presentations share native integration and geometry; renderers do not implement a separate backend-default path. Required annotations resolve to prefix/suffix/no and failure messages to a supported visible mode or none. Reactive native configuration is read during resolution.
|
|
53
|
+
|
|
54
|
+
Omitted strategies add no presentation preference. Defaults belong to this backend and its supported application configuration, rather than a fixed common strategy value.
|
|
55
|
+
|
|
56
|
+
## Verification
|
|
57
|
+
|
|
58
|
+
Check every documented level against the ordinary control, then remove the declaration and verify recovery. Change preferences while editing: drafts, control identity and focus must survive. Block `uiControlSizeQuery` in a nested UiStrategy and verify that inherited sizing stops while other concerns remain. Real-browser checks are needed for dimensions, visible focus and responsive arrangements; simulated DOM checks alone do not establish those properties.
|
|
59
|
+
|
|
60
|
+
[Documentation index](README.md) · [Presentation](presentation.md)
|
|
61
|
+
|
|
62
|
+
## Hierarchy
|
|
63
|
+
|
|
64
|
+
uiHierarchyLevel applies to card nodes. Explicit UiCard.level overrides the regional answer; disagreement/no answer uses zero. Agreement compares all five original requests before the permitted -2 to -1 adaptation. Targets, depth, stopAt and family/query blocking remain effective. See [card presentation](presentation.md#cards-and-hierarchy) for native mappings.
|
|
65
|
+
|
|
66
|
+
## Card presentation
|
|
67
|
+
|
|
68
|
+
uiCardPresentation configures all five level treatments independently of uiHierarchyLevel. All shared options are fulfilled; see [cards and hierarchy](presentation.md#cards-and-hierarchy). Partial maps retain core-selected defaults. Whole-profile semantic unanimity governs overlapping declarations; disagreement/no answer or blocking restores the default map. Family/query barriers and target/depth/stopAt scopes apply without native CSS-context leakage. Explicit card color overrides the map for that card; null selects neutral. Changing a profile does not remount content or alter child control sizes.
|
|
69
|
+
|
|
70
|
+
## Layout density
|
|
71
|
+
|
|
72
|
+
UiLayout, UiFlowLayout and UiGridLayout support `uiLayoutDensity(-1 | 0 | 1)` for peer separation. -1 maps to `4px`; 0 preserves `8px`; 1 maps to `16px`. These are backend fulfillment values, not business-author inputs. Zero/no answer uses the original default; supported conflicting answers retain that default. Both grid axes use the selected spacing. Native tokens/classes remain application-theme controlled where used.
|
|
73
|
+
|
|
74
|
+
Density does not resize controls, change typography or content padding, or separate UiRegionLayout allocations. Nested layouts honor logical targets, depth, stopAt and query barriers without inherited CSS density. See `@uninterface/uninterface` documentation at `docs/guides/layout-density.md`. Shared DOM tests verify all levels, restoration, scoped barriers and retained input state/focus; browser geometry is a separate acceptance check.
|
|
75
|
+
|
|
76
|
+
### Checkable-control labels
|
|
77
|
+
|
|
78
|
+
UiCheckbox and UiSwitch use the checkable presentation strategy: adapt by default, or explicit flushed/control-aligned/separated. Adapt first resolves effective ordinary label placement, including reactive native defaults, general values and unsupported requests. It then selects control-aligned for effective beside placement or flushed otherwise. Explicit modes select their own arrangement independently of ordinary placement support. All standalone labels and group titles remain visible under hidden. Radio/checkbox option labels remain adjacent; control-aligned/separated group headings occupy the label area. Separated standalone labels use the outer field label and preserve native input association. Layout columns stack below 40rem; standalone labels stay adjacent in flushed/control-aligned modes. In control-aligned mode, field descriptions and below-control feedback begin at the control area/check control, rather than the adjacent label; adapt uses this rule whenever it resolves to control-aligned, including narrow stacking. Flushed standalone descriptions retain label-text alignment. Size, markers and values retain their own behavior.
|
|
79
|
+
|
|
80
|
+
This implements the shared checkable-control presentation modes. Verify all label modes and restoration, required markers, value/focus retention and label activation; browser checks must also cover narrow/wide widths, wrapping and RTL. DOM integration checks alone do not establish visual geometry.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## Button width
|
|
84
|
+
|
|
85
|
+
uiButtonWidth supports content/full for standalone text-labelled buttons. Full stretches both the containing host and actionable surface to the parent allocation; content retains intrinsic width. Icon-only and parent-input-frame actions keep their geometry. Omission/conflicting answers preserve defaults. Native sizing, focus, disabled/loading and action behavior remain unchanged. The core strategy guide documents scope and barriers.
|
|
86
|
+
|
|
87
|
+
## Docked drawer motion
|
|
88
|
+
|
|
89
|
+
Docked drawers retain their resolved extent while the docking grid track opens or closes. The surface uses the existing backend drawer motion; allocation motion uses the same timing. Exit keeps the surface mounted and visible until motion settles, with interaction disabled. Reduced motion disables both transitions. Resizing uses immediate geometry rather than repeatedly animating the allocation. Popups retain their existing overlay hosting. Verify repeated opening, Close/Escape, focus return, retained content, all edges and responsive panel/docked changes separately from human visual acceptance.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Table columns
|
|
2
|
+
|
|
3
|
+
This adapter implements table.column-sizing.v1 and table.column-alignment.v1. UiTableColumn accepts preferredWidth/minWidth as positive px numbers or px/rem/em lengths, spring/resizable booleans and physical left/center/right align. Defaults are 12em, 3em, true, true and native alignment. At least one spring column is required. Header and cell content use the same alignment; full-width editors retain their own internal alignment.
|
|
4
|
+
|
|
5
|
+
Spring columns absorb container changes; pointer or keyboard resizing redistributes adjacent columns within their minima. Both neighbors must permit resizing. Horizontal overflow requires explicit horizontal/both scrolling. If fixed widths plus spring minima cannot fit without scrolling, a localized status replaces the visible table while keeping editors mounted. Authors must supply responsive allocations suitable for their actual content.
|
|
6
|
+
|
|
7
|
+
Widths survive data/query updates for the mounted view. Arrow keys resize by 10px (Shift: 1px), Home/End reach bounds, Escape cancels a drag and double-click resets authored widths. The core package's docs/guides/table-columns.md provides full consumer semantics.
|
|
8
|
+
|
|
9
|
+
Native integration: ElTableColumn numeric widths, align/header-align, with a single semantic table (native auto rendering, fixed CSS geometry). Shared boundary handling replaces native resizing. Native column reorder can recreate editors because cell keys include position; resizing and alignment preserve them. Native table SSR acceptance remains outstanding.
|
|
10
|
+
|
|
11
|
+
Verify painted header and cell alignment, pointer and touch resizing, keyboard operation and header associations in the intended browsers and assistive technology.
|
|
12
|
+
|
|
13
|
+
Content width: preferredWidth/minWidth accept content. The adapter measures intrinsic header/cell wrappers plus native insets, so action-button labels and padding determine the allocation. Use content for both with spring=false to prevent resizing below the button's required space. Unmeasured content starts at 3em; hidden content retains its last measurement until measurable. Percentage/full-width editors are not appropriate intrinsic-content requests.
|
|
14
|
+
|
|
15
|
+
UiTable supports a custom footer below the data, anchored horizontally to its scroll host (table.footer.v1). Successful lists/tables are quiet by default; showSummary explicitly opts into a visible ready count. Loading, empty, stale, error, completion and accessibility status remain. Content sizing support is declared through table.column-content.v1.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
See [collection presentation](collections.md#pagination) for native pagination and fallback behavior.
|
|
19
|
+
|
|
20
|
+
## Selection allocation
|
|
21
|
+
|
|
22
|
+
The generated selection-control column reserves `3em` separately from business-column allocation. It does not consume the remainder shared by spring columns. Verify native checkbox fit, header/cell alignment and horizontal scrolling with the application’s control sizes and zoom.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
Custom table supporting footers are siblings of the record scrollport within the existing collection frame. In full-height tables they keep their natural size while rows receive the remaining space; horizontal row scrolling does not move their actions. Summary cells remain in the native table footer. Verify supporting-footer persistence, sticky summary and retained footer/editor identity through edits, insertion and removal. The creation row is separate from this custom footer.
|
|
26
|
+
|
|
27
|
+
The collection frame uses a column flex arrangement in both content and full-height modes so its native table and supporting footer both contribute to intrinsic height. Supporting footers are ordinary flow content; they no longer need sticky positioning for horizontal scrolling. This avoids underallocating a content-sized table inside a grid layout and overlapping a following action.
|
|
28
|
+
|
|
29
|
+
## Creation row
|
|
30
|
+
|
|
31
|
+
UiTable supports `addRow`/`addRowLabel` through table.add-row.v1. A private backend preview tints each column’s content area inside its native cell insets using neutral foreground/surface tokens. The insets remain unshaded, separating adjacent areas. The core’s named text-variant action sits over these static, aria-hidden areas. Selection allocation, column resizing/order and horizontal scrolling share the table's geometry. The preview has no control outlines, blur, native editors, sample items or loading animation. It precedes the column summary and is independent of the generic supporting footer.
|
|
32
|
+
|
|
33
|
+
The creation affordance is the final body row after the records and before the summary. It always scrolls vertically with records and is never pinned to the viewport; long tables require reaching the final row. The declared summary retains its independent bottom position. A shorter allocation releases header pinning when necessary. Native scroll padding keeps focused editors clear of sticky regions. The existing modal/body overflow fallback remains available. Check visible action focus, pointer access, unobscured insertion focus, dark/RTL, empty membership and independent pending restrictions.
|
|
34
|
+
|
|
35
|
+
ElTable's native append slot follows its summary. The adapter instead inserts one private tbody target between the native record body and native tfoot, then teleports its own creation tr into that target. This preserves native column geometry and summary semantics without passing a dummy record through ElTable. The row group, target replacement, condition changes and unmount cleanup belong to this adapter; continuation/error append slots retain their native route. The creation row mounts in the browser. See the [known table server-rendering limitation](collections.md#server-rendering-and-hydration).
|
|
36
|
+
|
|
37
|
+
The creation preview adds no separate top border. Native data-row dividers continue through the final record: when the private creation tbody follows it, a scoped rule restores the last native record’s ordinary `--el-table-border`, which ElTable otherwise suppresses for a summary footer. The summary cells own a visible top border using `--el-border-color`, including blank and merged cells; attaching it to cells preserves the boundary with the sticky summary. The creation row stays in normal flow. Verify the ordinary divider before New line and the distinct boundary above the total in light/dark modes and while scrolling.
|
package/docs/testing.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Test with the Element Plus backend
|
|
2
|
+
|
|
3
|
+
[Documentation index](README.md)
|
|
4
|
+
|
|
5
|
+
Make `@uninterface/testing` and its Playwright peer dependency available to the test project. Configure the selected backend once in a Playwright fixture:
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { test as base } from '@playwright/test'
|
|
9
|
+
import { createUiTest, type UiTest } from '@uninterface/testing/playwright'
|
|
10
|
+
import { uiTestAdapter } from '@uninterface/backend/testing'
|
|
11
|
+
|
|
12
|
+
export const test = base.extend<{ ui: UiTest }>({
|
|
13
|
+
ui: async ({ page }, use) => {
|
|
14
|
+
await use(createUiTest(page, uiTestAdapter))
|
|
15
|
+
},
|
|
16
|
+
})
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Use the same backend alias as application setup; installing only that alias does not also install the backend under its original package name. Business tests import the fixture and interact by accessible names, labels or application test IDs. Select candidates by semantic key and independently assert saved values. The mapping does not override core behavior or application acceptance policy.
|
|
20
|
+
|
|
21
|
+
The adapter locates actual rendered select/checkbox parts. It must not force clicks, modify state or repair focus to make tests pass. The harness supports single selects, binary/tristate checkboxes and radio/checkbox groups; native select operations do not certify the operating system's picker visuals. Other controls can use ordinary Playwright semantic locators. The testing package's own API reference defines the complete harness contract.
|
|
22
|
+
|
|
23
|
+
## Verify application behavior
|
|
24
|
+
|
|
25
|
+
The application Playwright fixture above uses your own app and test runner.
|
|
26
|
+
|
|
27
|
+
## Run the backend's native tests
|
|
28
|
+
|
|
29
|
+
From this checkout with Node.js 24:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm ci
|
|
33
|
+
npm run test:dom
|
|
34
|
+
npx playwright install chromium
|
|
35
|
+
npm run test:browser
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The native suites build package-local fixtures through the Uninterface Testing
|
|
39
|
+
harness. Set `PLAYWRIGHT_CHROMIUM_EXECUTABLE` to use an installed Chromium
|
|
40
|
+
executable. Browser results are written to `var/playwright/`.
|
|
41
|
+
|
|
42
|
+
Verify shared keyboard, focus, naming, validation feedback, selection retention and layout behavior as well as native presentation. Capability declarations and simulated DOM results do not replace browser or manual accessibility checks. Applications select their own conformance policy; the adapter does not import another project's contrast exceptions.
|
|
43
|
+
|
|
44
|
+
The testing adapter also maps radio/checkbox group options by stable key through choice(group, key, kind). Shared drivers own pointer actions and checked-state verification; adapter mappings preserve native hit targets.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Typography and fonts
|
|
2
|
+
|
|
3
|
+
[Documentation index](README.md) · [Setup](setup.md) · [Customization](customization.md)
|
|
4
|
+
|
|
5
|
+
This backend's recommended set is **Inter Variable**, with language-aware Noto Sans SC/TC fallbacks. The alternative Uninterface-default set uses Noto Sans Variable across all backends. Font entries supply selection and delivery; the stable backend stylesheet supplies component styling.
|
|
6
|
+
|
|
7
|
+
## Setup: select fonts, then load backend styles
|
|
8
|
+
|
|
9
|
+
| Choice | First import: fonts |
|
|
10
|
+
|---|---|
|
|
11
|
+
| **Backend default · Network** (recommended starting setup) | `@uninterface/backend/font.css` |
|
|
12
|
+
| **Backend default · Bundled** | `@uninterface/backend/font-bundled.css` |
|
|
13
|
+
| **Uninterface default · Network** | `@uninterface/fonts/font.css` |
|
|
14
|
+
| **Uninterface default · Bundled** | `@uninterface/fonts/font-bundled.css` |
|
|
15
|
+
|
|
16
|
+
1. Follow the backend setup guide to resolve core and the selected backend. Make the optional `@uninterface/fonts` package available to the application for either Uninterface-default choice.
|
|
17
|
+
2. Import **one font entry first**, then always import the same backend stylesheet:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
// Backend default · Network
|
|
21
|
+
import '@uninterface/backend/font.css'
|
|
22
|
+
import '@uninterface/backend/style.css'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
To select Uninterface default · Bundled, change only the first line:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import '@uninterface/fonts/font-bundled.css'
|
|
29
|
+
import '@uninterface/backend/style.css'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
3. For either Network choice, permit `https://cdn.jsdelivr.net` in applicable CSP `style-src`, `style-src-elem` and `font-src` sources, alongside existing application sources. Font CSS and WOFF2 subsets are fetched from this third-party CDN using pinned Fontsource versions. No HTML font link, loader script or API key is required; the build emits no font binaries.
|
|
33
|
+
4. For either Bundled choice, build normally and deploy all generated CSS and font assets. Permit their asset origin in `font-src`. These entries make no CDN font requests. Fontsource dependencies provide the files; no separate font installation is required after the selected packages are installed.
|
|
34
|
+
5. Check actual font requests and rendered faces on ordinary content, controls and popup surfaces. Test network failure: unavailable fonts fall back to system fonts, without guaranteeing the intended appearance.
|
|
35
|
+
|
|
36
|
+
Use the same order when composing an application stylesheet:
|
|
37
|
+
|
|
38
|
+
```css
|
|
39
|
+
@import '@uninterface/fonts/font.css';
|
|
40
|
+
@import '@uninterface/backend/style.css';
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Keep CSS imports before ordinary rules. Font entries own family selection, language fallbacks and delivery; `style.css` owns component styling and native font-token mapping. It consumes the selected set without replacing it. Network and Bundled use identical families for the selected set. Importing multiple font entries is unsupported.
|
|
44
|
+
|
|
45
|
+
## System or application-owned fonts
|
|
46
|
+
|
|
47
|
+
For system fonts without downloads, omit the font entry:
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
import '@uninterface/backend/style.css'
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The backend uses `system-ui, sans-serif` for ordinary interface text and controls. No selected font set, remote font stylesheet or bundled font binary is introduced by this import. Explicit code/monospace content retains its semantics.
|
|
54
|
+
|
|
55
|
+
For another provider or your own font files, load its CSS before the backend stylesheet and set an application override after the imports:
|
|
56
|
+
|
|
57
|
+
```css
|
|
58
|
+
/* Put your provider's font CSS import here if needed. */
|
|
59
|
+
@import '@uninterface/backend/style.css';
|
|
60
|
+
|
|
61
|
+
:root {
|
|
62
|
+
--uninterface-font-family: 'Your Application Font', system-ui, sans-serif;
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Supply the matching licensed faces, weights and language coverage yourself. The override replaces the complete stack, including Chinese fallbacks, and takes precedence over either selected set. It is inherited across language boundaries. Scope it to an application-owned language boundary (for example, an element with `lang="en"`) if needed, ensuring it also reaches surfaces teleported outside that scope. Setting this property does not remove an already imported font entry's declarations or network requests; omit that entry when supplying your own fonts.
|
|
67
|
+
|
|
68
|
+
## Language, weights and loading
|
|
69
|
+
|
|
70
|
+
All four choices supply Noto Sans SC/TC Variable upright faces. SC is the default Chinese fallback; zh-Hant, zh-TW, zh-HK and zh-MO boundaries select TC. Set correct document and content `lang` attributes. Teleported content must carry its owning language when different from the document. Font delivery does not inspect business values.
|
|
71
|
+
|
|
72
|
+
Latin normal/italic faces and Chinese upright faces cover weights 100–900. The CSS names include the `Variable` suffix. CJK italics may be synthesized. Fonts use `font-display: swap` and Unicode subsetting; browsers request subsets needed by visible characters. Text can change size after loading, so wait for relevant fonts before measuring layout or capturing screenshots.
|
|
73
|
+
|
|
74
|
+
The shared Uninterface set uses Noto Sans Variable, with Latin, Latin extensions, Greek, Cyrillic, Vietnamese and Devanagari subsets, plus SC/TC. The initial language acceptance target is English, Simplified Chinese and Traditional Chinese. Included subsets do not establish complete shaping/layout acceptance. Japanese/Korean regional selection and Arabic/Hebrew/Thai families are not yet supplied; unsupported scripts use platform fallback. This choice does not introduce a font-role strategy or serif set, and preserves code/monospace semantics.
|
|
75
|
+
|
|
76
|
+
Bundled backend sets emit approximately 8.9–9.4 MB of font assets; the shared set emits approximately 9.7 MB, mostly Chinese subsets. These are deployment sizes, not first-page transfer sizes. Network entries emit no font binaries. Fontsource packages remain installed dependencies of their owning backend/font package regardless of delivery; the shared font package is optional for applications choosing backend fonts. Cache deployed assets and retain licenses.
|
|
77
|
+
|
|
78
|
+
## Licenses and versions
|
|
79
|
+
|
|
80
|
+
- [inter license](font-licenses/inter.txt): `@fontsource-variable/inter` 5.3.0, SIL Open Font License 1.1.
|
|
81
|
+
- [noto-sans-sc license](font-licenses/noto-sans-sc.txt): `@fontsource-variable/noto-sans-sc` 5.3.1, SIL Open Font License 1.1.
|
|
82
|
+
- [noto-sans-tc license](font-licenses/noto-sans-tc.txt): `@fontsource-variable/noto-sans-tc` 5.3.1, SIL Open Font License 1.1.
|
|
83
|
+
|
|
84
|
+
The optional `@uninterface/fonts` package owns the shared Noto Sans/SC/TC licenses and pinned dependencies.
|
|
85
|
+
|
|
86
|
+
## Verification and responsibility
|
|
87
|
+
|
|
88
|
+
Checks cover all four choices with font-first JavaScript imports and CSS imports: Network builds keep remote imports before style rules without emitting fonts; Bundled builds contain only the selected set's resolved WOFF2 assets, weights and italic faces. Backend styles alone emit no fonts or CDN requests. Browser acceptance additionally checks actual face loading, language boundaries, ordinary text/controls, popups, overrides, system-only operation and failed-network fallback. Hosted tests may intercept requests with exact pinned package bytes; these do not establish live CDN availability or visual acceptance.
|
|
89
|
+
|
|
90
|
+
Font providers own family selection, delivery declarations and licenses. Backends map selection into native tokens and preserve component weight semantics. Applications choose a font entry, declare languages, configure CSP/caching, deploy local assets and test real content in their supported browsers. Computed weight alone does not establish that a font loaded; font loading alone does not establish accessibility conformance.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
Arabic interface messages are available through `ar`; the supplied font entries do not yet bundle or download a dedicated Arabic family. Arabic glyphs use system fallback. Applications can supply an Arabic-capable font through their typography configuration; verify actual shaping and loaded fonts in the target browser.
|
package/document.css
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* Element Chalk Variables */
|
|
3
|
+
body {
|
|
4
|
+
font-family:
|
|
5
|
+
Inter, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
|
|
6
|
+
'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
font-size: var(--el-font-size-base);
|
|
9
|
+
color: var(--el-text-color-primary);
|
|
10
|
+
-webkit-font-smoothing: antialiased;
|
|
11
|
+
-moz-osx-font-smoothing: grayscale;
|
|
12
|
+
-webkit-tap-highlight-color: transparent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
input,
|
|
16
|
+
textarea,
|
|
17
|
+
button {
|
|
18
|
+
font-family: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
a {
|
|
22
|
+
color: var(--el-color-primary);
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
}
|
|
25
|
+
a:hover,
|
|
26
|
+
a:focus {
|
|
27
|
+
color: var(--el-color-primary-light-3);
|
|
28
|
+
}
|
|
29
|
+
a:active {
|
|
30
|
+
color: var(--el-color-primary-dark-2);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
h1,
|
|
34
|
+
h2,
|
|
35
|
+
h3,
|
|
36
|
+
h4,
|
|
37
|
+
h5,
|
|
38
|
+
h6 {
|
|
39
|
+
color: var(--el-text-color-regular);
|
|
40
|
+
font-weight: inherit;
|
|
41
|
+
}
|
|
42
|
+
h1:first-child,
|
|
43
|
+
h2:first-child,
|
|
44
|
+
h3:first-child,
|
|
45
|
+
h4:first-child,
|
|
46
|
+
h5:first-child,
|
|
47
|
+
h6:first-child {
|
|
48
|
+
margin-top: 0;
|
|
49
|
+
}
|
|
50
|
+
h1:last-child,
|
|
51
|
+
h2:last-child,
|
|
52
|
+
h3:last-child,
|
|
53
|
+
h4:last-child,
|
|
54
|
+
h5:last-child,
|
|
55
|
+
h6:last-child {
|
|
56
|
+
margin-bottom: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
h1 {
|
|
60
|
+
font-size: calc(var(--el-font-size-base) + 6px);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h2 {
|
|
64
|
+
font-size: calc(var(--el-font-size-base) + 4px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
h3 {
|
|
68
|
+
font-size: calc(var(--el-font-size-base) + 2px);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
h4,
|
|
72
|
+
h5,
|
|
73
|
+
h6,
|
|
74
|
+
p {
|
|
75
|
+
font-size: inherit;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
p {
|
|
79
|
+
line-height: 1.8;
|
|
80
|
+
}
|
|
81
|
+
p:first-child {
|
|
82
|
+
margin-top: 0;
|
|
83
|
+
}
|
|
84
|
+
p:last-child {
|
|
85
|
+
margin-bottom: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
sup,
|
|
89
|
+
sub {
|
|
90
|
+
font-size: calc(var(--el-font-size-base) - 1px);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
small {
|
|
94
|
+
font-size: calc(var(--el-font-size-base) - 2px);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
hr {
|
|
98
|
+
margin-top: 20px;
|
|
99
|
+
margin-bottom: 20px;
|
|
100
|
+
border: 0;
|
|
101
|
+
border-top: 1px solid var(--el-border-color-lighter);
|
|
102
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const provides = ["field.feedback.v1", "input.text.v1", "input.text.readonly.v1", "input.text.password.v1", "input.text.multiline.v1", "input.checkbox.v1", "input.checkbox.tristate.v1", "input.radio-group.v1", "input.segmented-select.v1", "input.checkbox-group.v1", "input.select.single.v1", "actions.v1", "layout.linear.v1", "layout.division.v1", "layout.reactive.v1", "layout.wrap.v1", "layout.scroll.v1", "button.color.v1", "button.variant.v1", "button.loading.v1", "form.reset.v1", "layout.align.v1", "layout.baseline.v1", "app.root.v1", "navbar.v1", "content.inset.v1", "content.scroll.v1", "hosting.viewport.v1", "layout.region-scroll.v1", "input.select.source.v1", "menu.v1", "navigation.menu.v1", "theme.colors.v1", "icon.catalogue.v1", "icon.size.v1", "i18n.native.v1", "layout.spacing.v1", "theme.color-mode.v1", "control.focus.v1", "collection.editor-focus.v1", "strategy.control-size.v1", "strategy.field-labels.v1", "strategy.required-annotations.v1", "strategy.field-help.v1", "strategy.validation-failure.v1", "button.icon.v1", "strategy.button-variant.v1", "strategy.button-width.v1", "card.v1", "strategy.hierarchy-level.v1", "card.color.v1", "strategy.card-presentation.v1", "focus.presentation.v1", "layout.framing.v1", "layout.resize.v1", "stacking.dynamic.v1", "modal.v1", "modal.width.v1", "input.select.multiple.v1", "notice.v1", "notice.color.v1", "notice.variant.v1", "notice.icon.v1", "badge.v1", "key-value.v1", "tabs.v1", "collapsible.v1", "native.content.v1", "input.switch.v1", "input.text.password-reveal.v1", "link.v1", "breadcrumbs.v1", "tooltip.v1", "suggestions.v1", "input.file.v1", "file.preview.v1", "file.collection.v1", "input.temporal.v1", "input.frame.v1", "input.frame.cooperation.v1", "input.frame.sizing.v1", "input.frame.min-width.v1", "input.text.search.v1", "upload.region.v2", "upload.progress.v1", "image.preview.v1", "preview.region.v1", "list.view.v1", "table.view.v1", "table.column-sort.v1", "table.column-filter.v1", "table.column-sizing.v1", "table.column-alignment.v1", "table.column-content.v1", "table.footer.v1", "paginator.view.v1", "paginator.size-select.v1", "paginator.jumper.v1", "collection.view.v1", "collection.footer.v1", "collection.header.v1", "loading.indicator.v1", "empty.v1", "loading.region.v1", "drawer.v1", "popover.v1", "notice.binding.v1", "feedback.floating.v1", "floating.v1", "drawer.docked.v1", "drawer.resize.v1", "strategy.collection-action-variant.v1", "table.summary.v1", "collection.summary.v1", "form.height.v1", "modal.content-scroll.v1", "table.add-row.v1", "progress.bar.v1"];
|
|
2
|
+
const themeColors = {};
|
|
3
|
+
const backend = { "name": "element-plus", "version": "2.14.7" };
|
|
4
|
+
const manifest = {
|
|
5
|
+
provides,
|
|
6
|
+
themeColors,
|
|
7
|
+
backend
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
backend,
|
|
11
|
+
manifest as default,
|
|
12
|
+
provides,
|
|
13
|
+
themeColors
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const name = "@uninterface/backend-element-plus";
|
|
2
|
+
const version = "2.14.0";
|
|
3
|
+
const description = "Element Plus presentation backend for Uninterface.";
|
|
4
|
+
const metadata = {
|
|
5
|
+
name,
|
|
6
|
+
version,
|
|
7
|
+
description
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
metadata as default,
|
|
11
|
+
description,
|
|
12
|
+
name,
|
|
13
|
+
version
|
|
14
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
.element-choices[data-v-dc3477be] {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0;
|
|
6
|
+
}
|
|
7
|
+
.element-choices-horizontal[data-v-dc3477be] {
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
}
|
|
12
|
+
/* Native control rows already provide their interaction height. Flex items
|
|
13
|
+
avoid an inherited form line box around each inline-flex control. */
|
|
14
|
+
.element-choice[data-v-dc3477be] {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
}
|
|
19
|
+
.element-choice-description[data-v-dc3477be] {
|
|
20
|
+
font-size: var(--el-font-size-extra-small);
|
|
21
|
+
line-height: 1.5;
|
|
22
|
+
color: var(--el-text-color-secondary);
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./ChoiceGroup.css";
|
|
2
|
+
import _sfc_main from "./ChoiceGroup2.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const ChoiceGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dc3477be"]]);
|
|
6
|
+
export {
|
|
7
|
+
ChoiceGroup as default
|
|
8
|
+
};
|