@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,172 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, provide, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementVNode, createVNode, renderSlot, createElementBlock, toDisplayString, createCommentVNode, createTextVNode } from "vue";
|
|
2
|
+
import { uiFocusPresentation } from "./focus.js";
|
|
3
|
+
import { useUiZView, useUiCollectionHeaderField, useUiFieldStrategies } from "@uninterface/uninterface/backend";
|
|
4
|
+
import { useControlSize } from "./controlSize.js";
|
|
5
|
+
import { ElFormItem } from "element-plus";
|
|
6
|
+
import { useFieldFormContext, fieldPresentationKey } from "./fieldPresentation.js";
|
|
7
|
+
import _sfc_main$1 from "./FieldFailureTooltip2.vue.js";
|
|
8
|
+
import _sfc_main$2 from "./FieldError2.vue.js";
|
|
9
|
+
import { useCheckableDescriptionAlignment } from "./checkableDescription.js";
|
|
10
|
+
const _hoisted_1 = ["id"];
|
|
11
|
+
const _hoisted_2 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "element-required element-required-prefix",
|
|
14
|
+
"aria-hidden": "true"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_3 = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "element-required",
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_4 = { class: "element-field-content" };
|
|
22
|
+
const _hoisted_5 = ["id"];
|
|
23
|
+
const _hoisted_6 = ["id"];
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "UiField",
|
|
26
|
+
props: {
|
|
27
|
+
binding: {}
|
|
28
|
+
},
|
|
29
|
+
setup(__props) {
|
|
30
|
+
useUiZView();
|
|
31
|
+
const element = ref();
|
|
32
|
+
useUiCollectionHeaderField(
|
|
33
|
+
element,
|
|
34
|
+
".el-input__wrapper, .el-select__wrapper, .el-textarea"
|
|
35
|
+
);
|
|
36
|
+
const props = __props;
|
|
37
|
+
const nativeForm = useFieldFormContext(() => policy.value.showFailure);
|
|
38
|
+
const policy = useUiFieldStrategies(() => props.binding, {
|
|
39
|
+
...{ feedbackRoot: element },
|
|
40
|
+
help: "together",
|
|
41
|
+
defaultLabels: () => nativeForm?.labelPosition === "left" ? "beside-far" : nativeForm?.labelPosition === "right" ? "beside-near" : "above",
|
|
42
|
+
defaultBeside: () => nativeForm?.labelPosition === "left" ? "beside-far" : "beside-near",
|
|
43
|
+
showRequiredAnnotations: () => !nativeForm?.hideRequiredAsterisk,
|
|
44
|
+
requiredAnnotations: () => nativeForm?.requireAsteriskPosition === "right" ? "suffix" : "prefix",
|
|
45
|
+
failureModes: ["show-below", "show-tooltip"],
|
|
46
|
+
defaultFailure: () => nativeForm?.showMessage === false ? "none" : "show-below",
|
|
47
|
+
labels: ["above", "beside"]
|
|
48
|
+
});
|
|
49
|
+
const deferFeedback = computed(
|
|
50
|
+
() => "inlineFeedbackDeferred" in policy.value && policy.value.inlineFeedbackDeferred === true
|
|
51
|
+
);
|
|
52
|
+
const inlineMessage = computed(() => Boolean(nativeForm?.inlineMessage));
|
|
53
|
+
const controlSize = useControlSize("UiField");
|
|
54
|
+
const checkboxes = ref(0);
|
|
55
|
+
const errorVisible = ref(false);
|
|
56
|
+
const checkboxLabel = computed(
|
|
57
|
+
() => !props.binding.group && checkboxes.value === 1 && policy.value.checkableMode !== "separated"
|
|
58
|
+
);
|
|
59
|
+
useCheckableDescriptionAlignment(
|
|
60
|
+
element,
|
|
61
|
+
() => checkboxLabel.value && policy.value.checkableMode === "flushed"
|
|
62
|
+
);
|
|
63
|
+
const nativeMarker = computed(
|
|
64
|
+
() => Boolean(nativeForm) && !nativeForm?.hideRequiredAsterisk && !checkboxLabel.value && policy.value.marker === "required" && nativeForm?.requireAsteriskPosition === (policy.value.markerPosition === "prefix" ? "left" : "right")
|
|
65
|
+
);
|
|
66
|
+
provide(fieldPresentationKey, {
|
|
67
|
+
binding: computed(() => props.binding),
|
|
68
|
+
errorVisible,
|
|
69
|
+
checkboxLabel,
|
|
70
|
+
registerCheckbox() {
|
|
71
|
+
checkboxes.value++;
|
|
72
|
+
return () => {
|
|
73
|
+
checkboxes.value--;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const groupDescription = computed(
|
|
78
|
+
() => policy.value.describedBy?.split(" ").filter(
|
|
79
|
+
(id) => id !== `${props.binding.id}-issue` || policy.value.issue && (policy.value.failure === "show-tooltip" || errorVisible.value)
|
|
80
|
+
).join(" ") || void 0
|
|
81
|
+
);
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
return openBlock(), createBlock(unref(ElFormItem), mergeProps({
|
|
84
|
+
ref_key: "element",
|
|
85
|
+
ref: element,
|
|
86
|
+
"data-ui-label-align": unref(policy).labelAlignment,
|
|
87
|
+
"data-ui-checkable": unref(policy).checkableMode,
|
|
88
|
+
"data-ui-checkable-group": __props.binding.checkable && __props.binding.group ? true : void 0,
|
|
89
|
+
"data-ui-checkable-label-align": __props.binding.checkable ? unref(policy).checkableLabelAlignment : void 0,
|
|
90
|
+
class: ["element-field", {
|
|
91
|
+
"element-labels-beside": Boolean(unref(policy).labels?.startsWith("beside")) && !checkboxLabel.value,
|
|
92
|
+
"element-labels-hidden": unref(policy).labels === "hidden"
|
|
93
|
+
}],
|
|
94
|
+
size: unref(controlSize),
|
|
95
|
+
"label-position": unref(policy).labels === "beside-far" ? "left" : unref(policy).labels === "beside-near" ? "right" : "top",
|
|
96
|
+
"label-width": unref(policy).labels?.startsWith("beside") && !checkboxLabel.value ? "25%" : void 0,
|
|
97
|
+
label: checkboxLabel.value ? void 0 : __props.binding.label,
|
|
98
|
+
for: __props.binding.group ? "" : __props.binding.id,
|
|
99
|
+
error: unref(policy).issue ?? void 0,
|
|
100
|
+
"show-message": unref(policy).showFailure && unref(policy).failure !== "show-tooltip",
|
|
101
|
+
required: nativeMarker.value,
|
|
102
|
+
"inline-message": inlineMessage.value,
|
|
103
|
+
"validate-status": __props.binding.issue ? "error" : __props.binding.validating ? "validating" : "",
|
|
104
|
+
role: __props.binding.group ? "group" : void 0,
|
|
105
|
+
"aria-labelledby": __props.binding.group ? `${__props.binding.id}-label` : void 0,
|
|
106
|
+
"aria-describedby": __props.binding.group ? [
|
|
107
|
+
groupDescription.value,
|
|
108
|
+
__props.binding.requiredLabel ? `${__props.binding.id}-required` : void 0
|
|
109
|
+
].filter(Boolean).join(" ") || void 0 : void 0,
|
|
110
|
+
"aria-busy": __props.binding.group && __props.binding.validating || void 0,
|
|
111
|
+
"aria-invalid": __props.binding.group && Boolean(__props.binding.issue) || void 0
|
|
112
|
+
}, __props.binding.group ? unref(uiFocusPresentation) : {}), createSlots({
|
|
113
|
+
error: withCtx(({ error }) => [
|
|
114
|
+
unref(policy).issue && unref(policy).failure !== "show-tooltip" ? (openBlock(), createBlock(_sfc_main$2, {
|
|
115
|
+
key: 0,
|
|
116
|
+
id: `${__props.binding.id}-issue`,
|
|
117
|
+
message: error,
|
|
118
|
+
inline: inlineMessage.value ?? false,
|
|
119
|
+
deferred: deferFeedback.value
|
|
120
|
+
}, null, 8, ["id", "message", "inline", "deferred"])) : createCommentVNode("v-if", true)
|
|
121
|
+
]),
|
|
122
|
+
default: withCtx(() => [
|
|
123
|
+
createElementVNode("div", _hoisted_4, [
|
|
124
|
+
createVNode(_sfc_main$1, {
|
|
125
|
+
message: unref(policy).failure === "show-tooltip" ? unref(policy).issue : null,
|
|
126
|
+
id: `${__props.binding.id}-issue`
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
renderSlot(_ctx.$slots, "default")
|
|
130
|
+
]),
|
|
131
|
+
_: 3
|
|
132
|
+
/* FORWARDED */
|
|
133
|
+
}, 8, ["message", "id"]),
|
|
134
|
+
__props.binding.group && __props.binding.requiredLabel ? (openBlock(), createElementBlock("span", {
|
|
135
|
+
key: 0,
|
|
136
|
+
id: `${__props.binding.id}-required`,
|
|
137
|
+
class: "element-visually-hidden element-required-description"
|
|
138
|
+
}, toDisplayString(__props.binding.requiredLabel), 9, _hoisted_5)) : createCommentVNode("v-if", true),
|
|
139
|
+
unref(policy).showHelp ? (openBlock(), createElementBlock("small", {
|
|
140
|
+
key: 1,
|
|
141
|
+
id: `${__props.binding.id}-help`,
|
|
142
|
+
class: "element-help"
|
|
143
|
+
}, toDisplayString(__props.binding.help), 9, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
144
|
+
])
|
|
145
|
+
]),
|
|
146
|
+
_: 2
|
|
147
|
+
/* DYNAMIC */
|
|
148
|
+
}, [
|
|
149
|
+
!checkboxLabel.value ? {
|
|
150
|
+
name: "label",
|
|
151
|
+
fn: withCtx(() => [
|
|
152
|
+
createElementVNode("span", {
|
|
153
|
+
id: `${__props.binding.id}-label`
|
|
154
|
+
}, [
|
|
155
|
+
!nativeMarker.value && unref(policy).marker === "required" && unref(policy).markerPosition === "prefix" ? (openBlock(), createElementBlock("span", _hoisted_2, " * ")) : createCommentVNode("v-if", true),
|
|
156
|
+
createTextVNode(
|
|
157
|
+
" " + toDisplayString(__props.binding.label) + " ",
|
|
158
|
+
1
|
|
159
|
+
/* TEXT */
|
|
160
|
+
),
|
|
161
|
+
!nativeMarker.value && unref(policy).marker === "required" && unref(policy).markerPosition === "suffix" ? (openBlock(), createElementBlock("span", _hoisted_3, " * ")) : createCommentVNode("v-if", true)
|
|
162
|
+
], 8, _hoisted_1)
|
|
163
|
+
]),
|
|
164
|
+
key: "0"
|
|
165
|
+
} : void 0
|
|
166
|
+
]), 1040, ["data-ui-label-align", "data-ui-checkable", "data-ui-checkable-group", "data-ui-checkable-label-align", "size", "class", "label-position", "label-width", "label", "for", "error", "show-message", "required", "inline-message", "validate-status", "role", "aria-labelledby", "aria-describedby", "aria-busy", "aria-invalid"]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export {
|
|
171
|
+
_sfc_main as default
|
|
172
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, Fragment, renderList, renderSlot, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { useUiZView } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { ElButton } from "element-plus";
|
|
4
|
+
const _hoisted_1 = { class: "element-plus-file-collection" };
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "UiFileCollection",
|
|
7
|
+
props: {
|
|
8
|
+
files: {},
|
|
9
|
+
removable: { type: Boolean },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
removeLabel: {},
|
|
12
|
+
remove: { type: Function }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
useUiZView();
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("ul", _hoisted_1, [
|
|
18
|
+
(openBlock(true), createElementBlock(
|
|
19
|
+
Fragment,
|
|
20
|
+
null,
|
|
21
|
+
renderList(__props.files, (file) => {
|
|
22
|
+
return openBlock(), createElementBlock("li", {
|
|
23
|
+
key: file.key
|
|
24
|
+
}, [
|
|
25
|
+
renderSlot(_ctx.$slots, "default", { file }),
|
|
26
|
+
__props.removable ? (openBlock(), createBlock(unref(ElButton), {
|
|
27
|
+
key: 0,
|
|
28
|
+
"native-type": "button",
|
|
29
|
+
disabled: __props.disabled,
|
|
30
|
+
"aria-label": `${__props.removeLabel}: ${file.name}`,
|
|
31
|
+
onClick: ($event) => __props.remove(file.key)
|
|
32
|
+
}, {
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
createTextVNode(
|
|
35
|
+
toDisplayString(__props.removeLabel),
|
|
36
|
+
1
|
|
37
|
+
/* TEXT */
|
|
38
|
+
)
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
/* STABLE */
|
|
42
|
+
}, 8, ["disabled", "aria-label", "onClick"])) : createCommentVNode("v-if", true)
|
|
43
|
+
]);
|
|
44
|
+
}),
|
|
45
|
+
128
|
|
46
|
+
/* KEYED_FRAGMENT */
|
|
47
|
+
))
|
|
48
|
+
]);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
_sfc_main as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, mergeProps, unref, createCommentVNode, nextTick } from "vue";
|
|
2
|
+
import { useUiZView, focusUiTarget } from "@uninterface/uninterface/backend";
|
|
3
|
+
import _sfc_main$1 from "./UiInputFrame2.vue.js";
|
|
4
|
+
import { CircleClose } from "@element-plus/icons-vue";
|
|
5
|
+
import { useFieldPresentation } from "./fieldPresentation.js";
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
class: "element-plus-file-input",
|
|
8
|
+
"data-ui-file-input": ""
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_2 = { class: "element-plus-file-chooser" };
|
|
11
|
+
const _hoisted_3 = { key: 0 };
|
|
12
|
+
const _hoisted_4 = ["id", "title"];
|
|
13
|
+
const _hoisted_5 = ["id", "accept", "capture", "disabled", "aria-label", "aria-describedby", "aria-required", "aria-invalid", "aria-busy"];
|
|
14
|
+
const _hoisted_6 = ["disabled", "aria-label"];
|
|
15
|
+
const _hoisted_7 = ["id"];
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
+
...{ inheritAttrs: false },
|
|
18
|
+
__name: "UiFileInput",
|
|
19
|
+
props: {
|
|
20
|
+
label: {},
|
|
21
|
+
binding: {},
|
|
22
|
+
file: {},
|
|
23
|
+
readonly: { type: Boolean },
|
|
24
|
+
accept: {},
|
|
25
|
+
capture: {},
|
|
26
|
+
pending: { type: Boolean },
|
|
27
|
+
rejection: {},
|
|
28
|
+
chooseLabel: {},
|
|
29
|
+
clearLabel: {},
|
|
30
|
+
select: { type: Function },
|
|
31
|
+
clear: { type: Function }
|
|
32
|
+
},
|
|
33
|
+
setup(__props, { expose: __expose }) {
|
|
34
|
+
useUiZView();
|
|
35
|
+
const props = __props;
|
|
36
|
+
const input = ref();
|
|
37
|
+
const presentation = useFieldPresentation();
|
|
38
|
+
const fieldDescription = computed(
|
|
39
|
+
() => presentation.describedBy(props.binding)
|
|
40
|
+
);
|
|
41
|
+
const description = computed(
|
|
42
|
+
() => [
|
|
43
|
+
fieldDescription.value,
|
|
44
|
+
props.file ? props.binding.id + "-filename" : "",
|
|
45
|
+
props.rejection ? props.binding.id + "-rejection" : ""
|
|
46
|
+
].filter(Boolean).join(" ") || void 0
|
|
47
|
+
);
|
|
48
|
+
const frameBinding = computed(() => ({
|
|
49
|
+
...props.binding,
|
|
50
|
+
id: props.binding.id + "-surface",
|
|
51
|
+
invalid: props.binding.invalid || !!props.rejection,
|
|
52
|
+
validating: props.binding.validating || props.pending
|
|
53
|
+
}));
|
|
54
|
+
const focus = () => focusUiTarget(
|
|
55
|
+
() => input.value,
|
|
56
|
+
() => props.binding.disabled || props.readonly
|
|
57
|
+
);
|
|
58
|
+
async function changed(event) {
|
|
59
|
+
const target = event.target;
|
|
60
|
+
const files = [...target.files ?? []];
|
|
61
|
+
target.value = "";
|
|
62
|
+
if (files.length) await props.select(files);
|
|
63
|
+
}
|
|
64
|
+
async function clearFile() {
|
|
65
|
+
if (props.binding.disabled || props.readonly) return;
|
|
66
|
+
await props.clear();
|
|
67
|
+
await nextTick();
|
|
68
|
+
await focus();
|
|
69
|
+
}
|
|
70
|
+
__expose({ focus });
|
|
71
|
+
return (_ctx, _cache) => {
|
|
72
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
73
|
+
createVNode(_sfc_main$1, {
|
|
74
|
+
binding: frameBinding.value,
|
|
75
|
+
"description-binding": __props.binding,
|
|
76
|
+
label: __props.label || __props.chooseLabel,
|
|
77
|
+
readonly: __props.readonly,
|
|
78
|
+
dirty: !!__props.file,
|
|
79
|
+
"focus-editor": focus
|
|
80
|
+
}, {
|
|
81
|
+
default: withCtx(() => [
|
|
82
|
+
createElementVNode("span", _hoisted_2, [
|
|
83
|
+
!__props.file ? (openBlock(), createElementBlock(
|
|
84
|
+
"span",
|
|
85
|
+
_hoisted_3,
|
|
86
|
+
toDisplayString(__props.chooseLabel),
|
|
87
|
+
1
|
|
88
|
+
/* TEXT */
|
|
89
|
+
)) : (openBlock(), createElementBlock("span", {
|
|
90
|
+
key: 1,
|
|
91
|
+
id: __props.binding.id + "-filename",
|
|
92
|
+
class: "element-plus-file-name",
|
|
93
|
+
"data-ui-file-name": "",
|
|
94
|
+
title: __props.file?.name
|
|
95
|
+
}, toDisplayString(__props.file?.name), 9, _hoisted_4)),
|
|
96
|
+
createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
97
|
+
ref_key: "input",
|
|
98
|
+
ref: input,
|
|
99
|
+
id: __props.binding.id,
|
|
100
|
+
type: "file",
|
|
101
|
+
accept: __props.accept,
|
|
102
|
+
capture: __props.capture,
|
|
103
|
+
disabled: __props.binding.disabled || __props.readonly,
|
|
104
|
+
"aria-label": String(_ctx.$attrs["aria-label"] ?? (__props.label || __props.chooseLabel)),
|
|
105
|
+
"aria-describedby": [description.value, _ctx.$attrs["aria-describedby"]].filter(Boolean).join(" ") || void 0,
|
|
106
|
+
"aria-required": __props.binding.required || void 0,
|
|
107
|
+
"aria-invalid": __props.binding.invalid || !!__props.rejection || void 0,
|
|
108
|
+
"aria-busy": __props.pending || __props.binding.validating || void 0,
|
|
109
|
+
onChange: changed
|
|
110
|
+
}), null, 16, _hoisted_5)
|
|
111
|
+
]),
|
|
112
|
+
__props.file ? (openBlock(), createElementBlock("button", {
|
|
113
|
+
key: 0,
|
|
114
|
+
type: "button",
|
|
115
|
+
class: "el-input__icon el-input__clear element-input-action",
|
|
116
|
+
disabled: __props.binding.disabled || __props.readonly,
|
|
117
|
+
"aria-label": __props.clearLabel,
|
|
118
|
+
"data-ui-file-clear": "",
|
|
119
|
+
onClick: clearFile
|
|
120
|
+
}, [
|
|
121
|
+
createVNode(unref(CircleClose), { "aria-hidden": "true" })
|
|
122
|
+
], 8, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
/* STABLE */
|
|
126
|
+
}, 8, ["binding", "description-binding", "label", "readonly", "dirty"]),
|
|
127
|
+
__props.rejection ? (openBlock(), createElementBlock("div", {
|
|
128
|
+
key: 0,
|
|
129
|
+
id: __props.binding.id + "-rejection",
|
|
130
|
+
role: "status"
|
|
131
|
+
}, toDisplayString(__props.rejection), 9, _hoisted_7)) : createCommentVNode("v-if", true)
|
|
132
|
+
]);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
export {
|
|
137
|
+
_sfc_main as default
|
|
138
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, createElementBlock, createElementVNode, unref, mergeProps, toHandlers, withCtx, resolveDynamicComponent, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { useUiZView, useUiFilePreviewView } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { ElImage } from "element-plus";
|
|
4
|
+
import _sfc_main$1 from "./UiImagePreview2.vue.js";
|
|
5
|
+
import _sfc_main$2 from "./FileTypeIcon2.vue.js";
|
|
6
|
+
const _hoisted_1 = ["data-presentation"];
|
|
7
|
+
const _hoisted_2 = ["data-file-kind"];
|
|
8
|
+
const _hoisted_3 = { class: "element-plus-file-details" };
|
|
9
|
+
const _hoisted_4 = ["title"];
|
|
10
|
+
const _hoisted_5 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "element-plus-file-size",
|
|
13
|
+
"data-file-size": ""
|
|
14
|
+
};
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
__name: "UiFilePreview",
|
|
17
|
+
props: {
|
|
18
|
+
thumbnail: { type: Boolean },
|
|
19
|
+
presentation: { default: "tile" },
|
|
20
|
+
mediaType: {},
|
|
21
|
+
name: {},
|
|
22
|
+
size: {},
|
|
23
|
+
url: {},
|
|
24
|
+
image: { type: Boolean },
|
|
25
|
+
alt: {}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
useUiZView();
|
|
29
|
+
const props = __props;
|
|
30
|
+
const { kind, sizeLabel, icon, thumbnailImage } = useUiFilePreviewView(props);
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return __props.image && !__props.thumbnail ? (openBlock(), createBlock(_sfc_main$1, {
|
|
33
|
+
key: 0,
|
|
34
|
+
url: __props.url,
|
|
35
|
+
alt: __props.alt
|
|
36
|
+
}, null, 8, ["url", "alt"])) : (openBlock(), createElementBlock("div", {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "element-plus-file-preview",
|
|
39
|
+
"data-ui-file-preview": "",
|
|
40
|
+
"data-presentation": __props.presentation
|
|
41
|
+
}, [
|
|
42
|
+
createElementVNode("span", {
|
|
43
|
+
class: "element-plus-file-icon",
|
|
44
|
+
"data-file-icon": "",
|
|
45
|
+
"data-file-kind": unref(kind),
|
|
46
|
+
"aria-hidden": "true"
|
|
47
|
+
}, [
|
|
48
|
+
unref(thumbnailImage) ? (openBlock(), createBlock(unref(ElImage), mergeProps({
|
|
49
|
+
key: unref(thumbnailImage).url,
|
|
50
|
+
src: unref(thumbnailImage).url,
|
|
51
|
+
alt: "",
|
|
52
|
+
fit: "contain",
|
|
53
|
+
"data-file-thumbnail": ""
|
|
54
|
+
}, toHandlers({ error: unref(thumbnailImage).error })), {
|
|
55
|
+
placeholder: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
56
|
+
createElementVNode(
|
|
57
|
+
"span",
|
|
58
|
+
null,
|
|
59
|
+
null,
|
|
60
|
+
-1
|
|
61
|
+
/* CACHED */
|
|
62
|
+
)
|
|
63
|
+
])]),
|
|
64
|
+
error: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
65
|
+
createElementVNode(
|
|
66
|
+
"span",
|
|
67
|
+
null,
|
|
68
|
+
null,
|
|
69
|
+
-1
|
|
70
|
+
/* CACHED */
|
|
71
|
+
)
|
|
72
|
+
])]),
|
|
73
|
+
_: 1
|
|
74
|
+
/* STABLE */
|
|
75
|
+
}, 16, ["src"])) : unref(icon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(icon)), {
|
|
76
|
+
key: 1,
|
|
77
|
+
"aria-hidden": "true",
|
|
78
|
+
focusable: "false"
|
|
79
|
+
})) : (openBlock(), createBlock(_sfc_main$2, {
|
|
80
|
+
key: 2,
|
|
81
|
+
kind: unref(kind)
|
|
82
|
+
}, null, 8, ["kind"]))
|
|
83
|
+
], 8, _hoisted_2),
|
|
84
|
+
createElementVNode("div", _hoisted_3, [
|
|
85
|
+
createElementVNode("span", {
|
|
86
|
+
class: "element-plus-file-preview-name",
|
|
87
|
+
"data-file-name": "",
|
|
88
|
+
title: __props.name
|
|
89
|
+
}, toDisplayString(__props.name), 9, _hoisted_4),
|
|
90
|
+
unref(sizeLabel) !== void 0 ? (openBlock(), createElementBlock(
|
|
91
|
+
"span",
|
|
92
|
+
_hoisted_5,
|
|
93
|
+
toDisplayString(unref(sizeLabel)),
|
|
94
|
+
1
|
|
95
|
+
/* TEXT */
|
|
96
|
+
)) : createCommentVNode("v-if", true)
|
|
97
|
+
])
|
|
98
|
+
], 8, _hoisted_1));
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export {
|
|
103
|
+
_sfc_main as default
|
|
104
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, Teleport, unref, createElementVNode, mergeProps, renderSlot, createElementBlock, withModifiers, normalizeStyle, createTextVNode, toDisplayString, createVNode, withCtx, createCommentVNode } from "vue";
|
|
2
|
+
import { ElButton } from "element-plus";
|
|
3
|
+
import { useUiFloatingView, useUiOverlayTarget } from "@uninterface/uninterface/backend";
|
|
4
|
+
const _hoisted_1 = ["value"];
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
...{ inheritAttrs: false },
|
|
7
|
+
__name: "UiFloating",
|
|
8
|
+
props: {
|
|
9
|
+
edge: {},
|
|
10
|
+
position: {},
|
|
11
|
+
draggable: { type: Boolean },
|
|
12
|
+
active: { type: Boolean },
|
|
13
|
+
requestPosition: { type: Function },
|
|
14
|
+
moveLabel: {},
|
|
15
|
+
positionLabel: {},
|
|
16
|
+
doneLabel: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const {
|
|
21
|
+
root,
|
|
22
|
+
ready,
|
|
23
|
+
style,
|
|
24
|
+
movePanel,
|
|
25
|
+
moveStyle,
|
|
26
|
+
editor,
|
|
27
|
+
editing,
|
|
28
|
+
closeMove,
|
|
29
|
+
attributes,
|
|
30
|
+
move
|
|
31
|
+
} = useUiFloatingView(props);
|
|
32
|
+
const portal = useUiOverlayTarget();
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createBlock(Teleport, {
|
|
35
|
+
to: unref(portal) ?? "body",
|
|
36
|
+
disabled: !unref(ready)
|
|
37
|
+
}, [
|
|
38
|
+
createElementVNode(
|
|
39
|
+
"div",
|
|
40
|
+
mergeProps({
|
|
41
|
+
ref_key: "root",
|
|
42
|
+
ref: root,
|
|
43
|
+
class: "element-plus-floating",
|
|
44
|
+
style: unref(style)
|
|
45
|
+
}, { ..._ctx.$attrs, ...unref(attributes) }),
|
|
46
|
+
[
|
|
47
|
+
renderSlot(_ctx.$slots, "default"),
|
|
48
|
+
unref(editing) ? (openBlock(), createElementBlock(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
key: 0,
|
|
52
|
+
ref_key: "movePanel",
|
|
53
|
+
ref: movePanel,
|
|
54
|
+
style: normalizeStyle(unref(moveStyle)),
|
|
55
|
+
class: "element-plus-floating-move",
|
|
56
|
+
onPointerdown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
57
|
+
}, ["stop"])),
|
|
58
|
+
onContextmenu: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
59
|
+
}, ["stop", "prevent"]))
|
|
60
|
+
},
|
|
61
|
+
[
|
|
62
|
+
createElementVNode("label", null, [
|
|
63
|
+
createTextVNode(
|
|
64
|
+
toDisplayString(__props.positionLabel) + " ",
|
|
65
|
+
1
|
|
66
|
+
/* TEXT */
|
|
67
|
+
),
|
|
68
|
+
createElementVNode("input", {
|
|
69
|
+
ref_key: "editor",
|
|
70
|
+
ref: editor,
|
|
71
|
+
type: "range",
|
|
72
|
+
min: "0",
|
|
73
|
+
max: "100",
|
|
74
|
+
step: "1",
|
|
75
|
+
value: __props.position * 100,
|
|
76
|
+
onInput: _cache[0] || (_cache[0] = ($event) => unref(move)(Number($event.target.value)))
|
|
77
|
+
}, null, 40, _hoisted_1)
|
|
78
|
+
]),
|
|
79
|
+
createVNode(unref(ElButton), {
|
|
80
|
+
type: "primary",
|
|
81
|
+
plain: "",
|
|
82
|
+
onClick: unref(closeMove)
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [
|
|
85
|
+
createTextVNode(
|
|
86
|
+
toDisplayString(__props.doneLabel),
|
|
87
|
+
1
|
|
88
|
+
/* TEXT */
|
|
89
|
+
)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
/* STABLE */
|
|
93
|
+
}, 8, ["onClick"])
|
|
94
|
+
],
|
|
95
|
+
36
|
|
96
|
+
/* STYLE, NEED_HYDRATION */
|
|
97
|
+
)) : createCommentVNode("v-if", true)
|
|
98
|
+
],
|
|
99
|
+
16
|
|
100
|
+
/* FULL_PROPS */
|
|
101
|
+
)
|
|
102
|
+
], 8, ["to", "disabled"]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
export {
|
|
107
|
+
_sfc_main as default
|
|
108
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent, provide, ref, openBlock, createBlock, unref, mergeProps, withModifiers, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { useUiZView, useUiFormFocus } from "@uninterface/uninterface/backend";
|
|
3
|
+
import { uiFocusPresentation } from "./focus.js";
|
|
4
|
+
import { ElForm } from "element-plus";
|
|
5
|
+
import { formPresentationKey } from "./formPresentation.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "UiForm",
|
|
8
|
+
props: {
|
|
9
|
+
binding: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["submit", "reset"],
|
|
12
|
+
setup(__props, { expose: __expose }) {
|
|
13
|
+
useUiZView();
|
|
14
|
+
provide(formPresentationKey, true);
|
|
15
|
+
const element = ref();
|
|
16
|
+
const focusInvalid = useUiFormFocus(
|
|
17
|
+
() => element.value?.$el
|
|
18
|
+
);
|
|
19
|
+
__expose({ focusInvalid });
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(ElForm), mergeProps({
|
|
22
|
+
ref_key: "element",
|
|
23
|
+
ref: element,
|
|
24
|
+
class: "element-form",
|
|
25
|
+
"label-position": "top",
|
|
26
|
+
"validate-on-rule-change": false,
|
|
27
|
+
"data-form-full": __props.binding.height === "full" || void 0,
|
|
28
|
+
id: __props.binding.id,
|
|
29
|
+
"aria-label": __props.binding.label,
|
|
30
|
+
"aria-busy": __props.binding.pending,
|
|
31
|
+
novalidate: ""
|
|
32
|
+
}, unref(uiFocusPresentation), {
|
|
33
|
+
onSubmit: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("submit"), ["prevent"])),
|
|
34
|
+
onReset: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("reset"), ["prevent"]))
|
|
35
|
+
}), {
|
|
36
|
+
default: withCtx(() => [
|
|
37
|
+
renderSlot(_ctx.$slots, "default")
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
/* FORWARDED */
|
|
41
|
+
}, 16, ["data-form-full", "id", "aria-label", "aria-busy"]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
_sfc_main as default
|
|
47
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./UiIcon.css";
|
|
2
|
+
import _sfc_main from "./UiIcon2.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const UiIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0cd71d4e"]]);
|
|
6
|
+
export {
|
|
7
|
+
UiIcon as default
|
|
8
|
+
};
|