@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,230 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, mergeProps, unref, toDisplayString, createCommentVNode, createElementVNode, createVNode, withCtx, createBlock, normalizeProps, Fragment, renderList, createTextVNode } from "vue";
|
|
2
|
+
import { useUiZView, useUiUploadRegionView } from "@uninterface/uninterface/backend";
|
|
3
|
+
import _sfc_main$2 from "./UiFilePreview2.vue.js";
|
|
4
|
+
import _sfc_main$1 from "./UiUploadProgress2.vue.js";
|
|
5
|
+
import { ElIcon, ElButton } from "element-plus";
|
|
6
|
+
import { UploadFilled, Delete } from "@element-plus/icons-vue";
|
|
7
|
+
const _hoisted_1 = ["aria-label", "aria-busy", "aria-disabled", "aria-describedby", "tabindex", "data-upload-phase", "data-upload-error", "data-upload-recovery", "data-extent", "data-drop-ready", "data-dragging", "data-invalid"];
|
|
8
|
+
const _hoisted_2 = ["id"];
|
|
9
|
+
const _hoisted_3 = ["accept", "capture", "disabled"];
|
|
10
|
+
const _hoisted_4 = ["title", "disabled"];
|
|
11
|
+
const _hoisted_5 = { class: "el-upload__text" };
|
|
12
|
+
const _hoisted_6 = ["title"];
|
|
13
|
+
const _hoisted_7 = ["id", "title"];
|
|
14
|
+
const _hoisted_8 = {
|
|
15
|
+
key: 6,
|
|
16
|
+
"data-upload-preview": "",
|
|
17
|
+
class: "element-plus-upload-preview"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_9 = {
|
|
20
|
+
key: 7,
|
|
21
|
+
class: "element-plus-upload-actions"
|
|
22
|
+
};
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
|
+
...{ inheritAttrs: false },
|
|
25
|
+
__name: "UiUploadRegion",
|
|
26
|
+
props: {
|
|
27
|
+
phase: {},
|
|
28
|
+
binding: {},
|
|
29
|
+
label: {},
|
|
30
|
+
readonly: { type: Boolean },
|
|
31
|
+
canAcquire: { type: Boolean },
|
|
32
|
+
busy: { type: Boolean },
|
|
33
|
+
occupied: { type: Boolean },
|
|
34
|
+
revision: {},
|
|
35
|
+
fileName: {},
|
|
36
|
+
issue: {},
|
|
37
|
+
requiredLabel: {},
|
|
38
|
+
chooseLabel: {},
|
|
39
|
+
accept: {},
|
|
40
|
+
capture: {},
|
|
41
|
+
extent: {},
|
|
42
|
+
allocatedHeight: {},
|
|
43
|
+
preview: {},
|
|
44
|
+
progress: {},
|
|
45
|
+
actions: {},
|
|
46
|
+
select: { type: Function }
|
|
47
|
+
},
|
|
48
|
+
setup(__props, { expose: __expose }) {
|
|
49
|
+
useUiZView();
|
|
50
|
+
const props = __props;
|
|
51
|
+
const {
|
|
52
|
+
root,
|
|
53
|
+
input,
|
|
54
|
+
dragging,
|
|
55
|
+
labelled,
|
|
56
|
+
choose,
|
|
57
|
+
changed,
|
|
58
|
+
dragover,
|
|
59
|
+
dragleave,
|
|
60
|
+
drop,
|
|
61
|
+
focus
|
|
62
|
+
} = useUiUploadRegionView(props);
|
|
63
|
+
__expose({ focus });
|
|
64
|
+
return (_ctx, _cache) => {
|
|
65
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
66
|
+
ref_key: "root",
|
|
67
|
+
ref: root
|
|
68
|
+
}, _ctx.$attrs, {
|
|
69
|
+
role: "group",
|
|
70
|
+
"aria-label": __props.label || __props.chooseLabel,
|
|
71
|
+
"aria-busy": __props.busy || void 0,
|
|
72
|
+
"aria-disabled": __props.binding.disabled || void 0,
|
|
73
|
+
"aria-describedby": unref(labelled)["aria-describedby"],
|
|
74
|
+
tabindex: __props.binding.disabled ? void 0 : -1,
|
|
75
|
+
"data-ui-upload-region": "",
|
|
76
|
+
"data-upload-phase": __props.phase,
|
|
77
|
+
"data-upload-error": !!__props.issue || void 0,
|
|
78
|
+
"data-upload-recovery": !!__props.issue || !!__props.progress?.canRetry || void 0,
|
|
79
|
+
class: ["element-plus-upload-region el-upload-dragger", { "is-dragover": unref(dragging) && __props.canAcquire }],
|
|
80
|
+
"data-extent": __props.extent,
|
|
81
|
+
style: __props.allocatedHeight === void 0 ? void 0 : { blockSize: __props.allocatedHeight + "px" },
|
|
82
|
+
"data-drop-ready": __props.canAcquire || void 0,
|
|
83
|
+
"data-dragging": unref(dragging) && __props.canAcquire || void 0,
|
|
84
|
+
"data-invalid": __props.binding.invalid || !!__props.issue || void 0,
|
|
85
|
+
onDragover: _cache[2] || (_cache[2] = //@ts-ignore
|
|
86
|
+
(...args) => unref(dragover) && unref(dragover)(...args)),
|
|
87
|
+
onDragleave: _cache[3] || (_cache[3] = //@ts-ignore
|
|
88
|
+
(...args) => unref(dragleave) && unref(dragleave)(...args)),
|
|
89
|
+
onDrop: _cache[4] || (_cache[4] = //@ts-ignore
|
|
90
|
+
(...args) => unref(drop) && unref(drop)(...args))
|
|
91
|
+
}), [
|
|
92
|
+
__props.requiredLabel ? (openBlock(), createElementBlock("span", {
|
|
93
|
+
key: 0,
|
|
94
|
+
id: __props.binding.id + "-upload-required",
|
|
95
|
+
class: "upload-required-description"
|
|
96
|
+
}, toDisplayString(__props.requiredLabel), 9, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
97
|
+
createElementVNode("input", {
|
|
98
|
+
ref_key: "input",
|
|
99
|
+
ref: input,
|
|
100
|
+
type: "file",
|
|
101
|
+
hidden: "",
|
|
102
|
+
accept: __props.accept,
|
|
103
|
+
capture: __props.capture,
|
|
104
|
+
disabled: !__props.canAcquire,
|
|
105
|
+
onChange: _cache[0] || (_cache[0] = //@ts-ignore
|
|
106
|
+
(...args) => unref(changed) && unref(changed)(...args))
|
|
107
|
+
}, null, 40, _hoisted_3),
|
|
108
|
+
__props.phase === "ready" && !__props.issue && !__props.progress?.canRetry ? (openBlock(), createElementBlock("button", mergeProps({ key: 1 }, unref(labelled), {
|
|
109
|
+
type: "button",
|
|
110
|
+
"data-upload-choose": "",
|
|
111
|
+
title: __props.chooseLabel,
|
|
112
|
+
class: "element-plus-upload-choose",
|
|
113
|
+
disabled: !__props.canAcquire,
|
|
114
|
+
onClick: _cache[1] || (_cache[1] = //@ts-ignore
|
|
115
|
+
(...args) => unref(choose) && unref(choose)(...args))
|
|
116
|
+
}), [
|
|
117
|
+
createVNode(unref(ElIcon), {
|
|
118
|
+
class: "el-icon--upload",
|
|
119
|
+
"aria-hidden": "true"
|
|
120
|
+
}, {
|
|
121
|
+
default: withCtx(() => [
|
|
122
|
+
createVNode(unref(UploadFilled))
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
/* STABLE */
|
|
126
|
+
}),
|
|
127
|
+
createElementVNode(
|
|
128
|
+
"span",
|
|
129
|
+
_hoisted_5,
|
|
130
|
+
toDisplayString(__props.chooseLabel),
|
|
131
|
+
1
|
|
132
|
+
/* TEXT */
|
|
133
|
+
)
|
|
134
|
+
], 16, _hoisted_4)) : __props.phase === "ready" ? (openBlock(), createBlock(unref(ElButton), mergeProps({ key: 2 }, unref(labelled), {
|
|
135
|
+
"native-type": "button",
|
|
136
|
+
circle: "",
|
|
137
|
+
text: "",
|
|
138
|
+
"data-upload-choose": "",
|
|
139
|
+
title: __props.chooseLabel,
|
|
140
|
+
disabled: !__props.canAcquire,
|
|
141
|
+
onClick: unref(choose)
|
|
142
|
+
}), {
|
|
143
|
+
default: withCtx(() => [
|
|
144
|
+
createVNode(unref(ElIcon), { "aria-hidden": "true" }, {
|
|
145
|
+
default: withCtx(() => [
|
|
146
|
+
createVNode(unref(UploadFilled))
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
/* STABLE */
|
|
150
|
+
})
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
/* STABLE */
|
|
154
|
+
}, 16, ["title", "disabled", "onClick"])) : createCommentVNode("v-if", true),
|
|
155
|
+
__props.fileName && !__props.preview && !(__props.progress?.fileName && (__props.progress.active || __props.progress.issue || __props.progress.canRetry)) ? (openBlock(), createElementBlock("span", {
|
|
156
|
+
key: 3,
|
|
157
|
+
"data-ui-file-name": "",
|
|
158
|
+
title: __props.fileName ?? void 0,
|
|
159
|
+
class: "element-plus-upload-name"
|
|
160
|
+
}, toDisplayString(__props.fileName), 9, _hoisted_6)) : createCommentVNode("v-if", true),
|
|
161
|
+
!__props.progress?.issue ? (openBlock(), createElementBlock("div", {
|
|
162
|
+
key: 4,
|
|
163
|
+
id: __props.binding.id + "-upload-issue",
|
|
164
|
+
role: "status",
|
|
165
|
+
class: "element-plus-upload-feedback",
|
|
166
|
+
title: __props.issue ?? void 0
|
|
167
|
+
}, toDisplayString(__props.issue), 9, _hoisted_7)) : createCommentVNode("v-if", true),
|
|
168
|
+
__props.progress ? (openBlock(), createBlock(
|
|
169
|
+
_sfc_main$1,
|
|
170
|
+
normalizeProps(mergeProps({ key: 5 }, __props.progress)),
|
|
171
|
+
null,
|
|
172
|
+
16
|
|
173
|
+
/* FULL_PROPS */
|
|
174
|
+
)) : createCommentVNode("v-if", true),
|
|
175
|
+
__props.preview ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
176
|
+
createVNode(_sfc_main$2, mergeProps(__props.preview, {
|
|
177
|
+
presentation: __props.issue ? "row" : __props.preview.presentation
|
|
178
|
+
}), null, 16, ["presentation"])
|
|
179
|
+
])) : createCommentVNode("v-if", true),
|
|
180
|
+
__props.actions.length ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
181
|
+
(openBlock(true), createElementBlock(
|
|
182
|
+
Fragment,
|
|
183
|
+
null,
|
|
184
|
+
renderList(__props.actions, (action) => {
|
|
185
|
+
return openBlock(), createBlock(unref(ElButton), {
|
|
186
|
+
key: action.name,
|
|
187
|
+
"native-type": "button",
|
|
188
|
+
circle: action.name === "remove",
|
|
189
|
+
text: action.name === "remove",
|
|
190
|
+
"data-upload-action": action.name,
|
|
191
|
+
"aria-label": action.accessibleLabel ?? (action.name === "remove" ? action.label : void 0),
|
|
192
|
+
title: action.name === "remove" ? action.label : void 0,
|
|
193
|
+
disabled: action.disabled,
|
|
194
|
+
onClick: action.invoke
|
|
195
|
+
}, {
|
|
196
|
+
default: withCtx(() => [
|
|
197
|
+
action.name === "remove" ? (openBlock(), createBlock(unref(Delete), {
|
|
198
|
+
key: 0,
|
|
199
|
+
"aria-hidden": "true",
|
|
200
|
+
class: "upload-remove-icon"
|
|
201
|
+
})) : createCommentVNode("v-if", true),
|
|
202
|
+
action.name !== "remove" ? (openBlock(), createElementBlock(
|
|
203
|
+
Fragment,
|
|
204
|
+
{ key: 1 },
|
|
205
|
+
[
|
|
206
|
+
createTextVNode(
|
|
207
|
+
toDisplayString(action.label),
|
|
208
|
+
1
|
|
209
|
+
/* TEXT */
|
|
210
|
+
)
|
|
211
|
+
],
|
|
212
|
+
64
|
|
213
|
+
/* STABLE_FRAGMENT */
|
|
214
|
+
)) : createCommentVNode("v-if", true)
|
|
215
|
+
]),
|
|
216
|
+
_: 2
|
|
217
|
+
/* DYNAMIC */
|
|
218
|
+
}, 1032, ["circle", "text", "data-upload-action", "aria-label", "title", "disabled", "onClick"]);
|
|
219
|
+
}),
|
|
220
|
+
128
|
|
221
|
+
/* KEYED_FRAGMENT */
|
|
222
|
+
))
|
|
223
|
+
])) : createCommentVNode("v-if", true)
|
|
224
|
+
], 16, _hoisted_1);
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
export {
|
|
229
|
+
_sfc_main as default
|
|
230
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { watchPostEffect, onUpdated, onScopeDispose } from "vue";
|
|
2
|
+
function useCheckableDescriptionAlignment(element, active) {
|
|
3
|
+
let frame = 0;
|
|
4
|
+
let observer;
|
|
5
|
+
const adjusted = /* @__PURE__ */ new Map();
|
|
6
|
+
const observed = /* @__PURE__ */ new Set();
|
|
7
|
+
let directionObserver;
|
|
8
|
+
let host;
|
|
9
|
+
function watchDirection(root) {
|
|
10
|
+
if (root === host) return;
|
|
11
|
+
host = root;
|
|
12
|
+
directionObserver?.disconnect();
|
|
13
|
+
if (!root || typeof MutationObserver === "undefined") return;
|
|
14
|
+
directionObserver ??= new MutationObserver(schedule);
|
|
15
|
+
for (let node = root; node; node = node.parentElement)
|
|
16
|
+
directionObserver.observe(node, {
|
|
17
|
+
attributes: true,
|
|
18
|
+
attributeFilter: ["dir", "class", "style"]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function observe(nodes) {
|
|
22
|
+
const next = new Set(nodes);
|
|
23
|
+
for (const node of observed) if (!next.has(node)) observer?.unobserve(node);
|
|
24
|
+
for (const node of next) if (!observed.has(node)) observer?.observe(node);
|
|
25
|
+
observed.clear();
|
|
26
|
+
for (const node of next) observed.add(node);
|
|
27
|
+
}
|
|
28
|
+
function clear() {
|
|
29
|
+
for (const [target, padding] of adjusted)
|
|
30
|
+
target.style.paddingInlineStart = padding;
|
|
31
|
+
adjusted.clear();
|
|
32
|
+
}
|
|
33
|
+
function align() {
|
|
34
|
+
frame = 0;
|
|
35
|
+
const value = element.value;
|
|
36
|
+
const root = value && ("$el" in value ? value.$el : value);
|
|
37
|
+
watchDirection(root && active() ? root : void 0);
|
|
38
|
+
if (!root || !active()) {
|
|
39
|
+
observe([]);
|
|
40
|
+
clear();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const owns = (node) => node.closest(".element-field") === root;
|
|
44
|
+
const label = [
|
|
45
|
+
...root.querySelectorAll(
|
|
46
|
+
".element-checkbox .el-checkbox__label, .element-switch-field > label"
|
|
47
|
+
)
|
|
48
|
+
].find(owns);
|
|
49
|
+
if (!label) {
|
|
50
|
+
observe([]);
|
|
51
|
+
clear();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
observe([
|
|
55
|
+
root,
|
|
56
|
+
label,
|
|
57
|
+
...label.parentElement ? [label.parentElement] : []
|
|
58
|
+
]);
|
|
59
|
+
const range = root.ownerDocument.createRange();
|
|
60
|
+
range.selectNodeContents(label);
|
|
61
|
+
if (typeof range.getBoundingClientRect !== "function") return;
|
|
62
|
+
const text = range.getBoundingClientRect();
|
|
63
|
+
if (!text.width || !text.height) return;
|
|
64
|
+
const targets = [
|
|
65
|
+
...root.querySelectorAll(".element-help")
|
|
66
|
+
].filter(owns);
|
|
67
|
+
for (const [target, padding] of adjusted) {
|
|
68
|
+
if (!targets.includes(target)) {
|
|
69
|
+
target.style.paddingInlineStart = padding;
|
|
70
|
+
adjusted.delete(target);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
for (const target of targets) {
|
|
74
|
+
const bounds = target.getBoundingClientRect();
|
|
75
|
+
const style = root.ownerDocument.defaultView.getComputedStyle(target);
|
|
76
|
+
const rtl = style.direction === "rtl";
|
|
77
|
+
const inset = rtl ? bounds.right - text.right - (parseFloat(style.borderRightWidth) || 0) : text.left - bounds.left - (parseFloat(style.borderLeftWidth) || 0);
|
|
78
|
+
if (!adjusted.has(target))
|
|
79
|
+
adjusted.set(target, target.style.paddingInlineStart);
|
|
80
|
+
target.style.paddingInlineStart = `${Math.max(0, inset)}px`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function schedule() {
|
|
84
|
+
if (!frame && (active() || adjusted.size))
|
|
85
|
+
frame = requestAnimationFrame(align);
|
|
86
|
+
}
|
|
87
|
+
watchPostEffect(() => {
|
|
88
|
+
element.value;
|
|
89
|
+
active();
|
|
90
|
+
if (active() && !observer && typeof ResizeObserver !== "undefined")
|
|
91
|
+
observer = new ResizeObserver(schedule);
|
|
92
|
+
schedule();
|
|
93
|
+
});
|
|
94
|
+
onUpdated(schedule);
|
|
95
|
+
onScopeDispose(() => {
|
|
96
|
+
cancelAnimationFrame(frame);
|
|
97
|
+
observer?.disconnect();
|
|
98
|
+
directionObserver?.disconnect();
|
|
99
|
+
clear();
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
useCheckableDescriptionAlignment
|
|
104
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { inject, computed, provide } from "vue";
|
|
2
|
+
import { useGlobalConfig } from "element-plus";
|
|
3
|
+
import { useUiStrategy, uiControlSizeQuery } from "@uninterface/uninterface/backend";
|
|
4
|
+
const strategySizeKey = /* @__PURE__ */ Symbol(
|
|
5
|
+
"element-field-strategy-size"
|
|
6
|
+
);
|
|
7
|
+
function useControlSize(component) {
|
|
8
|
+
const inherited = inject(
|
|
9
|
+
strategySizeKey,
|
|
10
|
+
computed(() => false)
|
|
11
|
+
);
|
|
12
|
+
const globalSize = useGlobalConfig("size");
|
|
13
|
+
const result = useUiStrategy(uiControlSizeQuery, [-2, -1, 0, 1, 2]);
|
|
14
|
+
if (component === "UiField") {
|
|
15
|
+
provide(
|
|
16
|
+
strategySizeKey,
|
|
17
|
+
computed(() => result.value.status === "answered" || inherited.value)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
return computed(
|
|
21
|
+
() => result.value.status === "answered" ? { "-1": "small", "0": "default", "1": "large" }[Math.max(-1, Math.min(1, result.value.value))] : (
|
|
22
|
+
// A query barrier must also stop native FormItem size inheritance.
|
|
23
|
+
inherited.value ? globalSize.value || "default" : void 0
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
useControlSize
|
|
29
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { inject, onMounted, onScopeDispose, computed, reactive, toRefs, provide } from "vue";
|
|
2
|
+
import { useUiFieldStrategyContext } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { formContextKey } from "element-plus";
|
|
4
|
+
const originalForms = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function useFieldFormContext(showMessages) {
|
|
6
|
+
const inherited = inject(formContextKey, void 0);
|
|
7
|
+
if (!inherited) return void 0;
|
|
8
|
+
const original = originalForms.get(inherited) ?? inherited;
|
|
9
|
+
const view = reactive({
|
|
10
|
+
...toRefs(original),
|
|
11
|
+
showMessage: computed(showMessages)
|
|
12
|
+
});
|
|
13
|
+
originalForms.set(view, original);
|
|
14
|
+
provide(formContextKey, view);
|
|
15
|
+
return original;
|
|
16
|
+
}
|
|
17
|
+
const fieldPresentationKey = /* @__PURE__ */ Symbol("element-field-presentation");
|
|
18
|
+
function useFieldPresentation(checkbox = false) {
|
|
19
|
+
const policy = useUiFieldStrategyContext();
|
|
20
|
+
const field = inject(fieldPresentationKey, void 0);
|
|
21
|
+
let release;
|
|
22
|
+
onMounted(() => {
|
|
23
|
+
if (checkbox && field) release = field.registerCheckbox();
|
|
24
|
+
});
|
|
25
|
+
onScopeDispose(() => release?.());
|
|
26
|
+
const label = computed(
|
|
27
|
+
() => checkbox && field?.checkboxLabel.value ? field.binding.value.label : void 0
|
|
28
|
+
);
|
|
29
|
+
function labelledBy(binding, attrs) {
|
|
30
|
+
if (attrs["aria-labelledby"] !== void 0)
|
|
31
|
+
return attrs["aria-labelledby"];
|
|
32
|
+
if (attrs["aria-label"] !== void 0) return void 0;
|
|
33
|
+
const owner = field?.binding.value;
|
|
34
|
+
return owner && !owner.group && !field?.checkboxLabel.value && owner.id === binding.id ? `${owner.id}-label` : void 0;
|
|
35
|
+
}
|
|
36
|
+
function describedBy(binding) {
|
|
37
|
+
const result = binding.describedBy?.split(/\s+/).filter(
|
|
38
|
+
(id) => !(policy?.value.help === "replace-help" && policy.value.issue && id === `${binding.id}-help`)
|
|
39
|
+
).filter(
|
|
40
|
+
(id) => id !== `${binding.id}-issue` || !field || policy?.value.showFailure !== false && field.binding.value.issue && (policy?.value.failure === "show-tooltip" || field.errorVisible.value)
|
|
41
|
+
).join(" ") || void 0;
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
return { field, label, labelledBy, describedBy, policy };
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
fieldPresentationKey,
|
|
48
|
+
useFieldFormContext,
|
|
49
|
+
useFieldPresentation
|
|
50
|
+
};
|
package/esm/src/focus.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 1024 1024",
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
9
|
+
focusable: "false"
|
|
10
|
+
};
|
|
11
|
+
function _sfc_render(_ctx, _cache) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
+
createElementVNode(
|
|
14
|
+
"path",
|
|
15
|
+
{ d: "M576 96h352v352h-64V205L439 630l-45-45L819 160H576z" },
|
|
16
|
+
null,
|
|
17
|
+
-1
|
|
18
|
+
/* CACHED */
|
|
19
|
+
),
|
|
20
|
+
createElementVNode(
|
|
21
|
+
"path",
|
|
22
|
+
{ d: "M448 224H160v640h640V576h64v288a64 64 0 0 1-64 64H160a64 64 0 0 1-64-64V224a64 64 0 0 1 64-64h288z" },
|
|
23
|
+
null,
|
|
24
|
+
-1
|
|
25
|
+
/* CACHED */
|
|
26
|
+
)
|
|
27
|
+
])]);
|
|
28
|
+
}
|
|
29
|
+
const CommonExternalLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
30
|
+
export {
|
|
31
|
+
CommonExternalLink as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 1024 1024",
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
9
|
+
focusable: "false"
|
|
10
|
+
};
|
|
11
|
+
function _sfc_render(_ctx, _cache) {
|
|
12
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
13
|
+
createElementVNode(
|
|
14
|
+
"circle",
|
|
15
|
+
{
|
|
16
|
+
cx: "512",
|
|
17
|
+
cy: "512",
|
|
18
|
+
r: "416",
|
|
19
|
+
fill: "none",
|
|
20
|
+
stroke: "currentColor",
|
|
21
|
+
"stroke-width": "64"
|
|
22
|
+
},
|
|
23
|
+
null,
|
|
24
|
+
-1
|
|
25
|
+
/* CACHED */
|
|
26
|
+
),
|
|
27
|
+
createElementVNode(
|
|
28
|
+
"ellipse",
|
|
29
|
+
{
|
|
30
|
+
cx: "512",
|
|
31
|
+
cy: "512",
|
|
32
|
+
rx: "176",
|
|
33
|
+
ry: "416",
|
|
34
|
+
fill: "none",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
"stroke-width": "64"
|
|
37
|
+
},
|
|
38
|
+
null,
|
|
39
|
+
-1
|
|
40
|
+
/* CACHED */
|
|
41
|
+
),
|
|
42
|
+
createElementVNode(
|
|
43
|
+
"path",
|
|
44
|
+
{
|
|
45
|
+
d: "M96 512h832",
|
|
46
|
+
fill: "none",
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
"stroke-width": "64"
|
|
49
|
+
},
|
|
50
|
+
null,
|
|
51
|
+
-1
|
|
52
|
+
/* CACHED */
|
|
53
|
+
)
|
|
54
|
+
])]);
|
|
55
|
+
}
|
|
56
|
+
const CommonGlobe = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
57
|
+
export {
|
|
58
|
+
CommonGlobe as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Setting, Link, DArrowRight, DArrowLeft, SortDown, SortUp, Sort, Filter, Message, Paperclip, Picture, Document, Clock, Calendar, Location, CollectionTag, QuestionFilled, House, RefreshRight, CircleClose, RefreshLeft, Minus, Plus, Hide, View, CircleCloseFilled, WarningFilled, SuccessFilled, InfoFilled, Bottom, Top, ArrowUp, ArrowDown, ArrowRight, ArrowLeft, MoreFilled, Menu, Close, Download, Upload, CopyDocument, Refresh, Search, Check, DocumentChecked, Delete, Edit, Right, Back } from "@element-plus/icons-vue";
|
|
2
|
+
import _sfc_main from "./more-vertical.vue.js";
|
|
3
|
+
import CommonGlobe from "./globe.vue.js";
|
|
4
|
+
import CommonExternalLink from "./external-link.vue.js";
|
|
5
|
+
const icons = {
|
|
6
|
+
"arrow-up": { component: Top },
|
|
7
|
+
"arrow-down": { component: Bottom },
|
|
8
|
+
"arrow-left": { component: Back },
|
|
9
|
+
"arrow-right": { component: Right },
|
|
10
|
+
"menu-item": { component: Document },
|
|
11
|
+
add: { component: Plus },
|
|
12
|
+
edit: { component: Edit },
|
|
13
|
+
delete: { component: Delete },
|
|
14
|
+
save: { component: DocumentChecked },
|
|
15
|
+
cancel: { component: Close },
|
|
16
|
+
confirm: { component: Check },
|
|
17
|
+
search: { component: Search },
|
|
18
|
+
refresh: { component: Refresh },
|
|
19
|
+
copy: { component: CopyDocument },
|
|
20
|
+
upload: { component: Upload },
|
|
21
|
+
download: { component: Download },
|
|
22
|
+
close: { component: Close },
|
|
23
|
+
menu: { component: Menu },
|
|
24
|
+
more: { component: MoreFilled },
|
|
25
|
+
"more-horizontal": { component: MoreFilled },
|
|
26
|
+
"more-vertical": { component: _sfc_main },
|
|
27
|
+
previous: { component: ArrowLeft, mirrorInRtl: true },
|
|
28
|
+
next: { component: ArrowRight, mirrorInRtl: true },
|
|
29
|
+
expand: { component: ArrowDown },
|
|
30
|
+
collapse: { component: ArrowUp },
|
|
31
|
+
"move-up": { component: Top },
|
|
32
|
+
"move-down": { component: Bottom },
|
|
33
|
+
info: { component: InfoFilled },
|
|
34
|
+
success: { component: SuccessFilled },
|
|
35
|
+
warning: { component: WarningFilled },
|
|
36
|
+
error: { component: CircleCloseFilled },
|
|
37
|
+
show: { component: View },
|
|
38
|
+
hide: { component: Hide },
|
|
39
|
+
create: { component: Plus },
|
|
40
|
+
remove: { component: Minus },
|
|
41
|
+
reset: { component: RefreshLeft },
|
|
42
|
+
clear: { component: CircleClose },
|
|
43
|
+
retry: { component: RefreshRight },
|
|
44
|
+
home: { component: House },
|
|
45
|
+
help: { component: QuestionFilled },
|
|
46
|
+
bookmark: { component: CollectionTag },
|
|
47
|
+
location: { component: Location },
|
|
48
|
+
globe: { component: CommonGlobe },
|
|
49
|
+
calendar: { component: Calendar },
|
|
50
|
+
time: { component: Clock },
|
|
51
|
+
file: { component: Document },
|
|
52
|
+
image: { component: Picture },
|
|
53
|
+
attachment: { component: Paperclip },
|
|
54
|
+
email: { component: Message },
|
|
55
|
+
filter: { component: Filter },
|
|
56
|
+
sort: { component: Sort },
|
|
57
|
+
"sort-ascending": { component: SortUp },
|
|
58
|
+
"sort-descending": { component: SortDown },
|
|
59
|
+
first: { component: DArrowLeft, mirrorInRtl: true },
|
|
60
|
+
last: { component: DArrowRight, mirrorInRtl: true },
|
|
61
|
+
link: { component: Link },
|
|
62
|
+
"external-link": { component: CommonExternalLink },
|
|
63
|
+
settings: { component: Setting }
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
icons as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref } from "vue";
|
|
2
|
+
import { MoreFilled } from "@element-plus/icons-vue";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "more-vertical",
|
|
5
|
+
setup(__props) {
|
|
6
|
+
return (_ctx, _cache) => {
|
|
7
|
+
return openBlock(), createBlock(unref(MoreFilled), { style: { "transform": "rotate(90deg)" } });
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
_sfc_main as default
|
|
13
|
+
};
|
package/esm/src/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { uiTheme } from "@uninterface/uninterface/theme";
|
|
2
|
+
import metadata from "../package.json.js";
|
|
3
|
+
import manifest from "../capabilities.json.js";
|
|
4
|
+
const themeColors = uiTheme.colors.define(manifest.themeColors);
|
|
5
|
+
const uiBackend = {
|
|
6
|
+
name: "Element Plus",
|
|
7
|
+
packageName: metadata.name,
|
|
8
|
+
version: metadata.version,
|
|
9
|
+
description: metadata.description,
|
|
10
|
+
dependencies: [
|
|
11
|
+
{ packageName: manifest.backend.name, version: manifest.backend.version }
|
|
12
|
+
],
|
|
13
|
+
capabilities: manifest.provides,
|
|
14
|
+
themeColors
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
uiBackend
|
|
18
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent, provide, getCurrentInstance, h } from "vue";
|
|
2
|
+
import { ID_INJECTION_KEY, ZINDEX_INJECTION_KEY, ElConfigProvider } from "element-plus";
|
|
3
|
+
import en from "element-plus/es/locale/lang/en";
|
|
4
|
+
import icons from "./icons/index.js";
|
|
5
|
+
const integration = {
|
|
6
|
+
colorMode: { attribute: "class", light: "light", dark: "dark" },
|
|
7
|
+
initialLocale: en,
|
|
8
|
+
locales: {
|
|
9
|
+
resources: {
|
|
10
|
+
en,
|
|
11
|
+
ar: () => import("element-plus/es/locale/lang/ar").then((m) => m.default),
|
|
12
|
+
"zh-CN": () => import("element-plus/es/locale/lang/zh-cn").then((m) => m.default),
|
|
13
|
+
"zh-TW": () => import("element-plus/es/locale/lang/zh-tw").then((m) => m.default),
|
|
14
|
+
"zh-HK": () => import("element-plus/es/locale/lang/zh-hk").then((m) => m.default)
|
|
15
|
+
},
|
|
16
|
+
aliases: {
|
|
17
|
+
"zh-Hans": "zh-CN",
|
|
18
|
+
"zh-Hant": "zh-TW",
|
|
19
|
+
"zh-Hant-HK": "zh-HK",
|
|
20
|
+
zh: "zh-CN"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
icons,
|
|
24
|
+
create({ nativeLocale }) {
|
|
25
|
+
return {
|
|
26
|
+
Root: defineComponent({
|
|
27
|
+
setup(_, { slots }) {
|
|
28
|
+
provide(ID_INJECTION_KEY, {
|
|
29
|
+
prefix: getCurrentInstance().appContext.config.idPrefix,
|
|
30
|
+
current: 0
|
|
31
|
+
});
|
|
32
|
+
provide(ZINDEX_INJECTION_KEY, { current: 0 });
|
|
33
|
+
return () => h(
|
|
34
|
+
ElConfigProvider,
|
|
35
|
+
{ locale: nativeLocale.value },
|
|
36
|
+
slots
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
integration as default
|
|
45
|
+
};
|