@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
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Element Plus contract adaptations
|
|
2
|
+
|
|
3
|
+
[Documentation index](README.md) · [Presentation and integration](presentation.md)
|
|
4
|
+
|
|
5
|
+
This backend-owned reference records native mappings, support limits and integration decisions. Shared API semantics remain in @uninterface/uninterface; native component names and concrete appearance do not add business-side parameters. This documentation move adds no runtime support or browser acceptance evidence.
|
|
6
|
+
## Fields, controls and strategies
|
|
7
|
+
|
|
8
|
+
UiField uses native ElFormItem size and label-position: top for above, left for beside-far, right for beside-near. Beside resolves configured horizontal alignment (near/right by default); left/right align text within the label column, not the side of the editor. Required annotations yes resolves the enclosing Form placement, prefix by native default including standalone fields; explicit prefix/suffix remain authoritative. Help and errors coexist by default. Below and tooltip failures are supported; embedded requests resolve below. Equivalent below-message requests retain the same configured inline-message metrics; omission respects native show-message suppression and explicit show restores a visible treatment. Unsupported floating labels resolve ordinary visible placement. Checkable labels remain adjacent except in explicit separated presentation.
|
|
9
|
+
|
|
10
|
+
UiSelect uses ElSelect; UiMultiSelect uses ElSelect multiple with collapsed tags and a keyboard-operable native clear affordance. UiSegmentedSelect uses ElSegmented with bordered segments. Native beside-label sizing is retained; segmented focus is contained without an extra 3px outer scroll inset. Input frames adapt ElInput. Control-frame browser checks include inherited native error wrappers. Suggestions forward role through containerRole because ElInput overwrites the ordinary role attribute.
|
|
11
|
+
|
|
12
|
+
Neutral primary buttons use the native default ElButton; semantic overrides and variant mappings are in [presentation](presentation.md#neutral-buttons). Neutral does not require exact cross-backend hover shades. Full-width standalone buttons fill both their existing host and the native button.
|
|
13
|
+
|
|
14
|
+
UiPreviewRegion adapts the input wrapper and tokens to arbitrary readonly content without a fake input. UiImagePreview uses ElImage contain/fill facilities and a contained accessible broken-image glyph instead of the native text error placeholder. File previews use toolkit icons. Upload progress displays localized whole percentages without rounding the source/bar value; unknown totals use a native animated segment and omit aria-valuenow.
|
|
15
|
+
|
|
16
|
+
Ordinary beside form-label arrangements and separated checkable label/control areas stack below a 40rem viewport. Flushed/control-aligned standalone labels and individual option labels stay adjacent. Checkable labels and group titles remain visible under hidden; see the checkable modes in [strategy support](strategies.md).
|
|
17
|
+
|
|
18
|
+
## Collections and navigation
|
|
19
|
+
|
|
20
|
+
UiTable uses ElTable auto rendering with one header/body table. ElTableColumn receives resolved numeric widths and align/header-align; fixed CSS table-layout and explicit width implement allocation. Native resizing/filtering are disabled in favor of shared ownership. Wrapper rows prevent business children from enabling a tree. Custom-sort headers/carets project shared multi-sort; only changed clauses are submitted. Priority text participates in column measurement and does not duplicate accessible priority descriptions.
|
|
21
|
+
|
|
22
|
+
Native positional cell keys can recreate editors during column reorder; sizing/alignment preserve them. See the [known table server-rendering limitation](collections.md#server-rendering-and-hydration).
|
|
23
|
+
|
|
24
|
+
The bounded native table viewport owns scrolling and is passed to useUiCollectionView; its allocation host supplies size. ElTable height and auto-layout sticky headers retain header visibility. Business footer content stays outside the native viewport; append recovery uses the native append area. Arbitrary column-filter editors use native popovers/icons because the native filter dropdown accepts option lists, not range forms. Removable criteria use ElTag's native close button with criterion-specific names and disabled state.
|
|
25
|
+
|
|
26
|
+
Bounded jump navigation uses ElPagination plus native-styled first/last buttons. The jumper composes inline FormItem/Input; size uses Select. Footer order is info → size → paginator → jumper, following the complete pagination example rather than claiming the toolkit default. Narrow layouts use small/pager-count facilities and start-aligned rows. Context menus update their virtual reference and request native repositioning after viewport changes.
|
|
27
|
+
|
|
28
|
+
## Feedback, surfaces and stacking
|
|
29
|
+
|
|
30
|
+
UiNotice uses rich-block ElAlert markup; secondary maps to info. Custom notices without color use neutral native surface/text tokens. Direct text actions use zero horizontal inset and link-style hover while retaining button height/focus; non-text-led rows retain boundary alignment.
|
|
31
|
+
|
|
32
|
+
Toasts/notifications use distinct native Message/Notification components with application-local flow, not global service arrays. Guarded opt-in transforms scope document keyboard listeners and disable competing native z-order allocation only for managed feedback. A named native button replaces the service icon-only close. The managed Message paragraph becomes a rich-content div; native transforms remain. Notification progress is an optional upstream feature, off by default and not exposed by managed target options. Floating variant requests do not select native surface variants.
|
|
33
|
+
|
|
34
|
+
Private FooterActions places the first declared action at inline-end and flows in reverse-inline order for modals, drawers, popovers and floating feedback, preserving DOM/Tab order and keyed identity. ElDrawer/ElPopover surfaces retain native arrow defaults; specialized temporal pickers and suggestions retain corresponding native picker/autocomplete arrows. Popup stacking registers actual .el-popper wrappers. Modal-owned popups target their owning dialog. Loading regions use ElLoading. Empty states map message/icon/actions to ElEmpty description/image/default, suppressing implicit artwork, and use the table's native empty slot.
|
|
35
|
+
|
|
36
|
+
The visible popover panel borrows `.el-popper` for appearance and suppresses that class's default rank with a scoped override. The outer surface and its owned popup wrappers receive their ranks from Uninterface. ElLoading's mask retains its native local rank inside the managed loading root. For native submenu hosting and registration, see [navigation](navigation.md).
|
|
37
|
+
|
|
38
|
+
## Temporal and locale adaptation
|
|
39
|
+
|
|
40
|
+
Date/date-time ranges with two specified endpoints use native range picker panels with shared frame/text editors. One trigger opens the range; Alt+Down from either endpoint opens it. First calendar selection remains draft until the second endpoint is accepted. Date selection retains clocks/fractions. Date-time panels stay open for clock edits; Escape/outside dismisses. Mobile uses single-calendar mode. Open-ended ranges use scalar pickers and infinity markers. Time ranges retain independent native time pickers because the native range panel hardcodes same-day ordering.
|
|
41
|
+
|
|
42
|
+
Boundary modes use an icon-triggered named menu. Start–separator–end positions remain in all modes; one-sided modes pair a scalar editor with an infinity badge and unrestricted displays two badges. Endpoints are content-sized with spare width after content; narrow allocations stack endpoints in every mode. Next-day time intervals use a calendar-plus-one icon, accessible name and tooltip. Mode changes retain drafts; external value/reset and Clear discard them.
|
|
43
|
+
|
|
44
|
+
A zh-Hans interface maps to the native zh-CN pack without implying a formatting region. Color mode uses native light/dark classes.
|
|
45
|
+
|
|
46
|
+
## Icons and default appearance
|
|
47
|
+
|
|
48
|
+
Clear retains CircleClose because the installed icon set has no dedicated eraser. More-vertical rotates MoreFilled 90 degrees in Icons 2.3.2; menu-item reuses Document/file artwork with an independent override key. Globe/external-link use original backend artwork because suitable exports are absent; compass/chain-link substitutes would change meaning. Native sorting uses simple up/down arrows. First/last and previous/next mirror in RTL; ordering artwork does not automatically mirror.
|
|
49
|
+
|
|
50
|
+
See [presentation](presentation.md), [strategy support](strategies.md), [collections](collections.md), [typography](typography.md) and [customization](customization.md) for consumed configuration and verification details.
|
|
51
|
+
|
|
52
|
+
## Support and native defaults
|
|
53
|
+
|
|
54
|
+
The following mappings describe this installed adapter. Shared strategy requests can generalize to supported fallbacks; native feature availability alone does not imply adapter support. Three-level control scales map out-of-range requests to the nearest native level. Embedded validation is not implemented and is approximated to below feedback. Browser geometry, wrapping, focus paint and assistive-technology acceptance remain separate from source/DOM checks.
|
|
55
|
+
|
|
56
|
+
### Native size and field-label support
|
|
57
|
+
|
|
58
|
+
| Backend | Native editor levels | Native button levels | Supported field labels |
|
|
59
|
+
|---|---|---|---|
|
|
60
|
+
| Element Plus | -1/0/1 | -1/0/1 | above and all beside variants for ordinary/group fields; native beside checkbox/switch labels; hidden throughout |
|
|
61
|
+
|
|
62
|
+
### Collapsible color
|
|
63
|
+
|
|
64
|
+
| Backend | Color behavior |
|
|
65
|
+
|---|---|
|
|
66
|
+
| Element Plus | Request ignored; existing presentation retained. |
|
|
67
|
+
|
|
68
|
+
### Upload allocation
|
|
69
|
+
|
|
70
|
+
| Backend | Minimum inline size | Minimum block size | Compact / regular / large block size |
|
|
71
|
+
| --- | --- | --- | --- |
|
|
72
|
+
| Element Plus | 14rem | 10rem | 10 / 12 / 18rem |
|
|
73
|
+
|
|
74
|
+
### Upload integration
|
|
75
|
+
|
|
76
|
+
| Backend | Presentation and concrete adaptation |
|
|
77
|
+
|---|---|
|
|
78
|
+
| Element Plus | Native el-upload-dragger surface, UploadFilled/ElIcon presentation, ElProgress and ElButton. ElUpload combines chooser activation, file list and transfer behavior; the adapter reuses its surface while isolating independent actions and core-owned acceptance. Dragger spacing and preview bounds are adapted to fit the allocated control without scrolling |
|
|
79
|
+
|
|
80
|
+
### Notice variants
|
|
81
|
+
|
|
82
|
+
| Backend | Omitted | filled | outline | soft |
|
|
83
|
+
| --- | --- | --- | --- | --- |
|
|
84
|
+
| Element Plus | Light alert | Dark alert effect | Theme-token border/transparent adaptation | Light alert |
|
|
85
|
+
|
|
86
|
+
### Multiple selection
|
|
87
|
+
|
|
88
|
+
| Backend | Presentation |
|
|
89
|
+
| --- | --- |
|
|
90
|
+
| Element Plus | Native ElSelect multiple with collapsed tags and its clear affordance; the native clear icon is keyboard operable. |
|
|
91
|
+
|
|
92
|
+
### Floating feedback integration
|
|
93
|
+
|
|
94
|
+
| Backend | Implementation |
|
|
95
|
+
|---|---|
|
|
96
|
+
| Element Plus | Native Message/Notification components, with application-local flow instead of global service arrays; guarded opt-in integration scopes keyboard handling and disables competing native z-order allocation; named native button replaces the service's icon-only close |
|
|
97
|
+
|
|
98
|
+
### Default font families
|
|
99
|
+
|
|
100
|
+
| Backend | Family order |
|
|
101
|
+
|---|---|
|
|
102
|
+
| Element Plus | Inter Variable |
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
## Checkable label and description alignment
|
|
106
|
+
|
|
107
|
+
Standalone checkbox/switch labels retain ElCheckbox and the associated external switch label. Helper text is inset to the actual rendered label text using a backend-local ResizeObserver/animation-frame coordinator; direction and ancestor presentation changes schedule recalculation. No fixed checkbox/switch width is assumed. Ordinary SSR renders without geometry work; the inset activates in the browser and releases on unmount. Native checkbox/radio rows retain size minima and glyphs while allowing long labels to wrap inside the field allocation. External switch labels use readable multiline leading instead of inheriting FormItem’s single-row line-height. Group descriptions retain their separate policy.
|
|
108
|
+
|
|
109
|
+
Business authors supply the existing UiField label/help and business value; no alignment CSS or new public prop is required. Verify short/wrapped labels, descriptions present/absent, requested sizes, narrow/wide fields and both text directions while preserving label activation, keyboard behavior, disabled state and help/error associations. Whole-field flushed/control-aligned/separated arrangements are implemented; see [strategy support](strategies.md) for resolution, alignment and responsive behavior.
|
|
110
|
+
|
|
111
|
+
Checkable validation recovery focuses the first enabled checkbox or selected enabled/first enabled radio without changing values. Named group/status and form fallbacks get temporary programmatic focusability with blur/disposal cleanup. Native options retain their toolkit indicators and feedback descriptions; fallback containers use the shared backend focus-visible treatment, including forced colors and scrolling containment. Group/field wrappers do not gain standing focusability merely from validation failure.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Customize the Element Plus backend
|
|
2
|
+
|
|
3
|
+
[Documentation index](README.md) · [Application setup](setup.md)
|
|
4
|
+
|
|
5
|
+
This adapter uses Element Plus 2.14.7. Native CSS variables provide a simple
|
|
6
|
+
application-owned customization path. Toolkit configuration options are not all
|
|
7
|
+
exposed by the adapter.
|
|
8
|
+
|
|
9
|
+
## One application stylesheet
|
|
10
|
+
|
|
11
|
+
Create `src/ui.theme.css`:
|
|
12
|
+
|
|
13
|
+
```css
|
|
14
|
+
@import '@uninterface/backend/style.css';
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
--el-font-size-base: 15px;
|
|
18
|
+
--el-border-radius-base: 6px;
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Replace the direct backend stylesheet import in `src/main.ts` with
|
|
23
|
+
`import './ui.theme.css'`. Keep application initialization and shared color-mode
|
|
24
|
+
setup unchanged. Import core's stylesheet separately when using its utilities.
|
|
25
|
+
The example changes native base text sizing and radius where consumed; it does
|
|
26
|
+
not guarantee that every component uses those tokens for every part.
|
|
27
|
+
|
|
28
|
+
The backend supplies document typography, including popups outside UiApp. For an
|
|
29
|
+
application font, set `--uninterface-font-family` after the default import and supply any additional assets. This updates ordinary content and native font tokens together. The stable stylesheet maps the application override to both document and component typography; no font import is needed for an application-owned stack.
|
|
30
|
+
|
|
31
|
+
## Palettes and dark appearance
|
|
32
|
+
|
|
33
|
+
Element Plus exposes CSS variables for semantic palettes, text, surfaces,
|
|
34
|
+
borders and component details. A primary palette includes
|
|
35
|
+
`--el-color-primary`, `--el-color-primary-light-1` through `-light-9` and
|
|
36
|
+
`--el-color-primary-dark-2`. These shades are generated by Sass, not recalculated
|
|
37
|
+
in the browser when the base variable changes. Provide a coordinated palette,
|
|
38
|
+
including the appropriate dark-mode values, instead of replacing only its base.
|
|
39
|
+
|
|
40
|
+
The backend imports native `.dark` variables. Theme overrides must distinguish
|
|
41
|
+
light and dark where necessary and account for selector/cascade precedence.
|
|
42
|
+
Keep rules document-wide so teleported controls inherit them; use Uninterface's
|
|
43
|
+
color-mode control to select the mode.
|
|
44
|
+
|
|
45
|
+
## Configuration and layout limits
|
|
46
|
+
|
|
47
|
+
Element Plus's ConfigProvider supports native size and selected component
|
|
48
|
+
configuration. This adapter currently supplies locale through that provider but
|
|
49
|
+
does not offer a presentation-options factory. There is no supported one-file
|
|
50
|
+
native size/defaults configuration path yet. Do not recreate the locale bridge or
|
|
51
|
+
install a second global toolkit plugin just to change size.
|
|
52
|
+
|
|
53
|
+
Native component size is also distinct from layout spacing: this adapter uses an
|
|
54
|
+
8px peer gap, while UiContent uses `--el-main-padding` with a 20px fallback. A
|
|
55
|
+
native size change would not automatically make the entire composition compact.
|
|
56
|
+
|
|
57
|
+
The backend imports compiled component CSS, document reset and dark variables.
|
|
58
|
+
Element Plus's custom Sass build is a toolkit facility, but replacing those
|
|
59
|
+
imports without duplicating styles is not currently an exported adapter path.
|
|
60
|
+
Use CSS variables for simple customization. Native namespace changes and private
|
|
61
|
+
adapter selector overrides are not supported customization contracts.
|
|
62
|
+
|
|
63
|
+
References: [Element Plus theming](https://element-plus.org/en-US/guide/theming.html)
|
|
64
|
+
and [ConfigProvider](https://element-plus.org/en-US/component/config-provider.html).
|
|
65
|
+
|
|
66
|
+
## Verify a customized presentation
|
|
67
|
+
|
|
68
|
+
Check the same business components with and without your customization: filled
|
|
69
|
+
and outline buttons, disabled/loading states, field help/errors, select and menu
|
|
70
|
+
popups, icons, layout wrapping and scrolling. Confirm visible keyboard focus and
|
|
71
|
+
readable text. Check both supported color modes, including an already-open popup.
|
|
72
|
+
Do not infer whole-application coverage from a single button or claim WCAG
|
|
73
|
+
conformance from a theme's name. Customization must preserve Uninterface's model,
|
|
74
|
+
validation, selection and interaction contracts.
|
|
75
|
+
|
|
76
|
+
Keep theme authoring in application setup and styles; business views should not
|
|
77
|
+
need native toolkit props or per-component CSS to activate the theme. An existing
|
|
78
|
+
color role can be recolored without changing its meaning. Adding a role requires
|
|
79
|
+
backend implementation and capability support across all relevant components;
|
|
80
|
+
CSS alone does not extend Uninterface's theme vocabulary.
|
|
81
|
+
|
|
82
|
+
## Portable card hierarchy customization
|
|
83
|
+
|
|
84
|
+
For changes that should survive switching backends, configure a shared strategy in an application-owned Vue composition; no additional stylesheet is required:
|
|
85
|
+
|
|
86
|
+
```vue
|
|
87
|
+
<script setup lang="ts">
|
|
88
|
+
import { UiStrategy, uiCardPresentation } from '@uninterface/uninterface'
|
|
89
|
+
const cards = uiCardPresentation({
|
|
90
|
+
[-2]: { color: 'primary', border: 'double' },
|
|
91
|
+
[-1]: { color: 'primary', elevation: 'flat' },
|
|
92
|
+
1: { header: 'band', density: 'compact' },
|
|
93
|
+
2: { color: 'secondary', surface: 'tinted' },
|
|
94
|
+
})
|
|
95
|
+
</script>
|
|
96
|
+
<template><UiStrategy :use="cards"><slot /></UiStrategy></template>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Place the application's cards under this composition. Omitted properties retain the shared defaults. Each UiCard can override its effective role with color, or explicitly request neutral with :color="null". Customizing palette values remains an application theme task using the setup above; raw CSS/native variant names do not belong in this map. The same configuration works across conforming adapters, with each retaining its own concrete theme values. [Presentation mappings](presentation.md#cards-and-hierarchy) specify which native values are consumed. Test nested/peer cards, headerless units, both color modes and narrow layouts before adopting a custom profile.
|
|
100
|
+
|
|
101
|
+
## Default font delivery
|
|
102
|
+
|
|
103
|
+
Import a selected font.css or font-bundled.css entry first, then the stable backend style.css. Omit font imports for system or application-owned fonts, using --uninterface-font-family for a complete override. See [typography](typography.md) for all four choices, setup steps, CSP sources, licenses and limits.
|
|
104
|
+
|
|
105
|
+
The ordinary font setup offers four choices: backend or Uninterface default, each with Network or Bundled delivery. Import one font entry before the stable backend stylesheet, following [typography](typography.md); the Uninterface choices require the optional `@uninterface/fonts` package.
|
|
106
|
+
|
|
107
|
+
## Shared input frame coverage
|
|
108
|
+
|
|
109
|
+
Element Plus has no generic public input frame. This adapter reuses el-input/el-input__wrapper presentation and native input/size tokens, with a wrapper focus/error projection. It does not mount a hidden ElInput or enable native validation. Feedback descriptions use the existing field-presentation service, including delayed native error visibility. Native class compatibility must be checked on upgrades.
|
|
110
|
+
|
|
111
|
+
The frame follows the input theme through the supported setup described above; private adapter selectors are not a stable public styling API. Check ordinary inputs beside the compound frame under the chosen light/dark theme, sizes, focus, invalid, disabled and readonly states. Interior part wrapping is adapter-owned and is not a global layout-spacing customization contract. See [presentation mappings](presentation.md#shared-input-frames) for limits.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## Drawers and popovers
|
|
115
|
+
|
|
116
|
+
UiDrawer (modal and retained panel modes) and UiPopover consume this backend's normal surface, typography and color-mode setup. The adapter renders native-themed content over browser dialog/manual-popover hosting so Uninterface remains the only lifecycle and stacking owner. Application styles load after backend style.css; preserve hidden/inert behavior, bounded scrolling, focus treatment and core-owned stacking when customizing. Popups are teleported to body or the owning overlay; scope application theme variables accordingly. Toolkit gesture/snap-point/resizing options and docked/compact drawer allocation are not exposed. Layout peer spacing remains owned by the existing layout components.
|
|
117
|
+
|
|
118
|
+
UiPopover retains Element Plus’s default visible arrow using `.el-popper__arrow` directly inside the native popper surface, with resolved `data-popper-placement`. Existing light/dark border/background tokens apply. The adapter positions the arrow toward the anchor after flips and viewport clamping, outside the scrolling body; no application arrow markup or business prop is required.
|
|
119
|
+
|
|
120
|
+
## Calendar, suggestion and submenu arrows
|
|
121
|
+
|
|
122
|
+
Calendar popups and suggestions use the [native Popover arrow](presentation.md#native-arrows-in-composed-pickers-and-suggestions). Tooltips and single- and multiple-selection popups use native defaults. Command-menu popups follow the arrowless native ElSubMenu presentation.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Navbar row sizing
|
|
126
|
+
|
|
127
|
+
Horizontal UiNavbar uses the native `--el-menu-horizontal-height` token as its minimum block size, including when the navbar contains ordinary links instead of UiNavMenu. It adds no vertical padding around a native menu row. Taller slot content and wrapped groups can grow beyond the minimum; the navbar works inside a raised UiRegionLayout without application inset compensation.
|
|
128
|
+
|
|
129
|
+
An application stylesheet loaded after backend style.css can set `:root { --el-menu-horizontal-height: 64px; }` to customize both menu rows and the navbar minimum. Existing scoped native token overrides remain supported. Verify ordinary links, brand-only content, native menus and taller actions at narrow/wide widths; preserve content growth and visible focus rather than replacing the minimum with a fixed height.
|
|
130
|
+
|
|
131
|
+
Vertical side navbars stack their groups explicitly and use `--el-menu-base-level-padding` for block insets as well as inline insets. They do not retain the horizontal menu-row minimum. Verify that increasing the side allocation width does not turn these groups into a row.
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ElCollapse, ElCollapseItem } from 'element-plus'
|
|
3
|
+
const nativeExpanded = ref<string[]>([])
|
|
4
|
+
import { ref } from 'vue'
|
|
5
|
+
import {
|
|
6
|
+
ElDialog,
|
|
7
|
+
ElForm,
|
|
8
|
+
ElFormItem,
|
|
9
|
+
ElInput,
|
|
10
|
+
ElSelect,
|
|
11
|
+
ElOption,
|
|
12
|
+
ElCheckbox,
|
|
13
|
+
ElButton,
|
|
14
|
+
ElDropdown,
|
|
15
|
+
ElDropdownItem,
|
|
16
|
+
ElDropdownMenu,
|
|
17
|
+
ElMenu,
|
|
18
|
+
ElMenuItem,
|
|
19
|
+
ElSubMenu,
|
|
20
|
+
} from 'element-plus'
|
|
21
|
+
defineProps<{
|
|
22
|
+
invalid: boolean
|
|
23
|
+
loading: boolean
|
|
24
|
+
disabled: boolean
|
|
25
|
+
sourceState?: string
|
|
26
|
+
}>()
|
|
27
|
+
const nativeModal = ref(false)
|
|
28
|
+
const name = ref('Ada')
|
|
29
|
+
const location = ref('shanghai')
|
|
30
|
+
const active = ref(true)
|
|
31
|
+
</script>
|
|
32
|
+
<template>
|
|
33
|
+
<ElCollapse
|
|
34
|
+
v-model="nativeExpanded"
|
|
35
|
+
data-native-collapsible
|
|
36
|
+
>
|
|
37
|
+
<ElCollapseItem
|
|
38
|
+
name="details"
|
|
39
|
+
title="Additional information"
|
|
40
|
+
:disabled="disabled"
|
|
41
|
+
>
|
|
42
|
+
<p>Retained detail content.</p>
|
|
43
|
+
</ElCollapseItem>
|
|
44
|
+
</ElCollapse>
|
|
45
|
+
<ElButton @click="nativeModal = true">Open native modal</ElButton>
|
|
46
|
+
<ElDialog
|
|
47
|
+
v-model="nativeModal"
|
|
48
|
+
title="Modal presentation"
|
|
49
|
+
>
|
|
50
|
+
<p>Review the operation before continuing.</p>
|
|
51
|
+
<template #footer>
|
|
52
|
+
<ElButton @click="nativeModal = false">Cancel</ElButton>
|
|
53
|
+
<ElButton
|
|
54
|
+
type="primary"
|
|
55
|
+
@click="nativeModal = false"
|
|
56
|
+
>
|
|
57
|
+
OK
|
|
58
|
+
</ElButton>
|
|
59
|
+
</template>
|
|
60
|
+
</ElDialog>
|
|
61
|
+
<ElMenu
|
|
62
|
+
mode="horizontal"
|
|
63
|
+
default-active="editor"
|
|
64
|
+
:ellipsis="false"
|
|
65
|
+
menu-trigger="click"
|
|
66
|
+
>
|
|
67
|
+
<ElMenuItem index="editor">Editor</ElMenuItem>
|
|
68
|
+
<ElSubMenu index="examples">
|
|
69
|
+
<template #title>Examples</template>
|
|
70
|
+
<ElMenuItem index="buttons">Buttons</ElMenuItem>
|
|
71
|
+
<ElSubMenu index="more">
|
|
72
|
+
<template #title>More</template>
|
|
73
|
+
<ElMenuItem index="forms">Forms</ElMenuItem>
|
|
74
|
+
</ElSubMenu>
|
|
75
|
+
</ElSubMenu>
|
|
76
|
+
</ElMenu>
|
|
77
|
+
<ElForm
|
|
78
|
+
label-position="top"
|
|
79
|
+
@submit.prevent
|
|
80
|
+
>
|
|
81
|
+
<ElFormItem
|
|
82
|
+
label="Name"
|
|
83
|
+
required
|
|
84
|
+
inline-message
|
|
85
|
+
:error="invalid ? 'Enter a name.' : undefined"
|
|
86
|
+
>
|
|
87
|
+
<ElInput
|
|
88
|
+
v-model="name"
|
|
89
|
+
:disabled="disabled"
|
|
90
|
+
/>
|
|
91
|
+
</ElFormItem>
|
|
92
|
+
<ElFormItem label="Location">
|
|
93
|
+
<ElSelect
|
|
94
|
+
v-model="location"
|
|
95
|
+
:loading="sourceState === 'loading'"
|
|
96
|
+
:no-data-text="
|
|
97
|
+
sourceState === 'error'
|
|
98
|
+
? 'Entries could not be loaded.'
|
|
99
|
+
: sourceState === 'idle'
|
|
100
|
+
? 'Entries not loaded.'
|
|
101
|
+
: 'No entries available.'
|
|
102
|
+
"
|
|
103
|
+
>
|
|
104
|
+
<template #label>Shanghai</template>
|
|
105
|
+
<ElOption
|
|
106
|
+
v-if="!sourceState || sourceState === 'ready'"
|
|
107
|
+
value="shanghai"
|
|
108
|
+
label="Shanghai"
|
|
109
|
+
/>
|
|
110
|
+
</ElSelect>
|
|
111
|
+
</ElFormItem>
|
|
112
|
+
<ElFormItem><ElCheckbox v-model="active">Active</ElCheckbox></ElFormItem>
|
|
113
|
+
<ElFormItem>
|
|
114
|
+
<ElButton
|
|
115
|
+
type="primary"
|
|
116
|
+
:loading="loading"
|
|
117
|
+
:disabled="disabled"
|
|
118
|
+
>
|
|
119
|
+
Save
|
|
120
|
+
</ElButton>
|
|
121
|
+
<ElButton
|
|
122
|
+
type="info"
|
|
123
|
+
:disabled="disabled"
|
|
124
|
+
>
|
|
125
|
+
Reset
|
|
126
|
+
</ElButton>
|
|
127
|
+
<ElButton
|
|
128
|
+
type="primary"
|
|
129
|
+
plain
|
|
130
|
+
>
|
|
131
|
+
Outline
|
|
132
|
+
</ElButton>
|
|
133
|
+
</ElFormItem>
|
|
134
|
+
</ElForm>
|
|
135
|
+
<ElDropdown
|
|
136
|
+
data-native-dropdown
|
|
137
|
+
trigger="click"
|
|
138
|
+
>
|
|
139
|
+
<ElButton>Commands</ElButton>
|
|
140
|
+
<template #dropdown>
|
|
141
|
+
<ElDropdownMenu>
|
|
142
|
+
<ElDropdownItem>Refresh</ElDropdownItem>
|
|
143
|
+
<ElDropdownItem disabled>Delete</ElDropdownItem>
|
|
144
|
+
</ElDropdownMenu>
|
|
145
|
+
</template>
|
|
146
|
+
</ElDropdown>
|
|
147
|
+
</template>
|
package/docs/exports.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Element Plus package exports
|
|
2
|
+
|
|
3
|
+
[Documentation index](README.md)
|
|
4
|
+
|
|
5
|
+
The application installs `@uninterface/backend-element-plus` under `@uninterface/backend`. The paths below use that alias so application and test configuration agree. Business views use `@uninterface/uninterface`.
|
|
6
|
+
|
|
7
|
+
| Module | Export and responsibility |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `@uninterface/backend` | `uiBackend`: adapter identity/version, toolkit versions, theme definitions and capabilities; ordinary business code reads these through core's getUiRuntime() |
|
|
10
|
+
| `@uninterface/backend/capabilities.json` | Machine-readable support manifest; [view declarations](../capabilities.json) |
|
|
11
|
+
| `@uninterface/backend/font.css` | Backend default · Network: recommended family selection and pinned CDN font delivery; import before style.css |
|
|
12
|
+
| `@uninterface/backend/font-bundled.css` | Backend default · Bundled: identical family selection with local assets; import before style.css |
|
|
13
|
+
| `@uninterface/backend/style.css` | Stable document/component styling and native font mapping; import after the chosen font entry, or alone for system fonts |
|
|
14
|
+
| `@uninterface/backend/vite` | `backendPlugins()`: required guarded native input-identity and popup-lifecycle integration for server/client builds; see [setup](setup.md#configure-vite) |
|
|
15
|
+
| `@uninterface/backend/integration` | Default UiBackendIntegration descriptor consumed by createUiApplication; native resources/icons and a per-app create function, not itself a Vue plugin |
|
|
16
|
+
| `@uninterface/backend/layout` | `uiLayoutPresentation`: backend peer spacing consumed by shared core layouts |
|
|
17
|
+
| `@uninterface/backend/UiXxx.vue` | Individual backend Vue views, statically imported by core; not business-facing components |
|
|
18
|
+
| `@uninterface/backend/testing/dom` | `uiDomTestAdapter`: rendered control mappings for DOM tests |
|
|
19
|
+
| `@uninterface/backend/testing` | `uiTestAdapter`: select/checkbox interactions and field presentation mappings for the separate Playwright harness; test setup only |
|
|
20
|
+
|
|
21
|
+
## View modules and compatibility
|
|
22
|
+
|
|
23
|
+
View modules include UiApp, UiContent, UiNavbar, UiForm, UiField, UiTextInput, UiCheckbox, UiRadioGroup, UiCheckboxGroup, UiSelect, UiMenu, UiNavMenu, UiButton, UiLayout, UiRegionLayout and UiIcon. UiFlowLayout and ordinary region composition reuse the linear view; UiGridLayout geometry belongs to core and consumes the backend's spacing export. No eager runtime view registry is installed.
|
|
24
|
+
|
|
25
|
+
The canonical signatures, slots, events and focus handles are defined by `@uninterface/uninterface/backend` and core's `docs/api/backend/README.md`. See the package manifest for the supported Core and Vue peer versions. This package's [presentation reference](presentation.md) describes how native integration fulfills them.
|
|
26
|
+
|
|
27
|
+
Capabilities declare support but do not certify behavior. Unsupported requirements fail core's checks. Tooling and applications must exercise the relevant contracts before claiming browser compatibility.
|
|
28
|
+
|
|
29
|
+
`./UiCard.vue` supplies the content-height card view (resolved level and header/default/footer slots), with `card.v1` and `strategy.hierarchy-level.v1`.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
`@uninterface/backend/focus` exports immutable `uiFocusPresentation` for core’s `useUiFocusPresentation()` and backend-owned interaction bindings. It supplies presentation only and declares `focus.presentation.v1`; business authors import the function from core.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Floating launchers, docking and resizing
|
|
2
|
+
|
|
3
|
+
This backend implements `floating.v1`, `drawer.docked.v1` and `drawer.resize.v1`. The public component API belongs to `@uninterface/uninterface`: UiFloating, UiDrawerLayout and UiDrawer's modal/panel/docked modes. Follow [application setup](setup.md) before using them; no additional plugin or stylesheet is required beyond the normal backend setup.
|
|
4
|
+
|
|
5
|
+
## Native integration
|
|
6
|
+
|
|
7
|
+
The adapter uses the existing Element-themed drawer surface, ElButton and a platform range input. Keep the normal Element Plus theme variables and style order. The supplied launcher remains an ordinary UiButton/UiIcon composition. The backend owns floating markup and its movement editor, while the shared helpers supply geometry/events without choosing a DOM tree. A platform range input supplies the small repositioning editor's click/tap and keyboard semantics; it is not an ordinary business field or another state owner.
|
|
8
|
+
|
|
9
|
+
No corresponding native composition coordinates a retained surface between overlay and measured adjoining allocations with the shared expansion owner. The adapter therefore projects UiDrawerLayout's extent into grid tracks, retains the same surface across physical hosting changes, and supplies a named boundary separator for pointer/touch/keyboard resizing. The attached edge remains fixed. Header/footer stay outside body scrolling. Modal blocking and guarded lifecycle remain intact; panel/docked do not lock the background or trap Tab. The separator is separate from body scrolling and supported native dismissal gestures.
|
|
10
|
+
|
|
11
|
+
A direct icon UiButton in the floating slot gets a theme-owned surface/border and elevation, a minimum 3rem square target and 1.5rem artwork sizing. The immediate button host owns that surface; the button keeps its native hover, disabled and focus behavior. This compensates for an isolated launcher over arbitrary page content; icon buttons elsewhere keep their ordinary native presentation. These are backend defaults, not new business sizing props.
|
|
12
|
+
|
|
13
|
+
## Application customization
|
|
14
|
+
|
|
15
|
+
Use the ordinary [customization setup](customization.md) for toolkit themes and controls. Optional launcher clearance can be changed in one application stylesheet loaded after the backend stylesheet:
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
/* Apply a class to UiFloating; its actual floating root receives the class. */
|
|
19
|
+
.application-options-launcher {
|
|
20
|
+
--ui-floating-clearance: 20;
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```vue
|
|
25
|
+
<UiFloating class="application-options-launcher" edge="end" draggable>
|
|
26
|
+
<UiButton variant="icon" color="primary">
|
|
27
|
+
<template #icon><UiIcon name="settings" /></template>
|
|
28
|
+
Options
|
|
29
|
+
</UiButton>
|
|
30
|
+
</UiFloating>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Clearance is a unitless pixel presentation value, combined with platform safe areas. It does not change normalized position or stacking. Prefer ordinary native theme configuration for surface/control colors; do not override z-index, native visibility or transforms to coordinate panel state. Backend styles cover teleported content independently of application ancestor selectors. Light/dark and RTL follow the installed application/native context; the movement surface uses backend theme tokens. The public extent/min/max props control allocation; theme spacing remains separate.
|
|
34
|
+
|
|
35
|
+
## Limits and verification
|
|
36
|
+
|
|
37
|
+
Content must fit the floating unit's viewport allocation. Docked top/bottom layouts require a bounded height; full-height body scrolling also requires a definite parent. There is one participating drawer per host. Compact rails, snap points and controlled extent persistence are not supplied. Native top-layer reversal remains unsupported.
|
|
38
|
+
|
|
39
|
+
Verify launcher snapping and range-editor reachability at viewport edges, current theme/RTL, actual main reflow, named resize limits, focus/draft retention and nested popup ownership. Check modal blocking and nonmodal background use separately. Component DOM regressions exercise state and wiring; physical geometry, touch hit testing, zoom/software keyboards, native paint and assistive technology still need browser acceptance. No new browser or contrast certification is implied.
|
|
40
|
+
|
|
41
|
+
When a docked drawer becomes an overlay beneath an already-live child popup,
|
|
42
|
+
the parent uses an ordinary registered CSS surface for that presentation rather
|
|
43
|
+
than opening above its native child. The shared allocator still owns its rank;
|
|
44
|
+
children keep their handles/content, and docking transfers them back to the
|
|
45
|
+
enclosing scope. Native live order is not reversed, nor are children forcibly
|
|
46
|
+
closed/reopened. The adapter explicitly supplies visibility for docked and this
|
|
47
|
+
ordinary overlay state, alongside its normal theme and inactive hiding rules.
|
|
48
|
+
|
|
49
|
+
## Drawer boundary and depth
|
|
50
|
+
|
|
51
|
+
The drawer/docking presentation supplies a visible line and depth toward main content by default. The private docking frame keeps boundary paint outside the clipped motion area; UiDrawerLayout supplies adjoining space and core-resolved stacking. The decoration does not consume space, intercept pointer input or replace the resize control. Forced colors retain the boundary when shadows are suppressed. Overlay drawers retain their native surface treatment with the same main-facing depth composition. Its native shadow plane is oriented toward main on every edge, including RTL; a downward-only shadow recipe is not assumed to work above a bottom drawer.
|
|
52
|
+
|
|
53
|
+
Element Plus uses `--el-border-color-light` and `--el-box-shadow-light`, including for the docking frame. Set theme variables at the application root so teleported surfaces share them. Use the existing [application customization setup](customization.md); load application styles after backend styles. Preserve a visible boundary/depth treatment, motion containment, native focus and core-owned stacking. Native surface-only class overrides do not automatically style the separate docking composition. Verify all edges, RTL, resizing, motion and supported color modes after customization.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|