@uninterface/backend-element-plus 0.0.0-stage → 2.14.0-alpha1
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 +157 -0
- package/docs/strategies.md +89 -0
- package/docs/table-columns.md +37 -0
- package/docs/testing.md +29 -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 +30 -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 +167 -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 +79 -4
- package/style.css +3546 -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 +8 -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 +49 -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,740 @@
|
|
|
1
|
+
import { defineComponent, useSlots, ref, computed, shallowRef, onUnmounted, watchPostEffect, onMounted, onUpdated, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot, createCommentVNode, mergeProps, unref, withDirectives, createVNode, normalizeStyle, createSlots, withCtx, createBlock, toDisplayString, renderList, withModifiers, Teleport, vShow, normalizeProps, guardReactiveProps, h, nextTick } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./TableFilterButton2.vue.js";
|
|
3
|
+
import _sfc_main$4 from "./TableAddRow2.vue.js";
|
|
4
|
+
import { useUiZView, useUiCollectionView, useUiTableSizing, useUiTableAddRow, useUiLoadingSurface } from "@uninterface/uninterface/backend";
|
|
5
|
+
import _sfc_main$2 from "./UiEmpty2.vue.js";
|
|
6
|
+
import _sfc_main$5 from "./UiLoadingRegion2.vue.js";
|
|
7
|
+
import { ElTable, ElTableColumn, ElCheckbox } from "element-plus";
|
|
8
|
+
import _sfc_main$3 from "./CollectionStatus2.vue.js";
|
|
9
|
+
const _hoisted_1 = ["data-collection-full"];
|
|
10
|
+
const _hoisted_2 = ["data-full", "data-loading-empty", "data-scroll", "data-column-fit", "role", "aria-label", "tabindex"];
|
|
11
|
+
const _hoisted_3 = { class: "element-table-region" };
|
|
12
|
+
const _hoisted_4 = { key: 1 };
|
|
13
|
+
const _hoisted_5 = { class: "element-table-header-copy" };
|
|
14
|
+
const _hoisted_6 = ["id"];
|
|
15
|
+
const _hoisted_7 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "element-table-sort-priority",
|
|
18
|
+
"data-ui-sort-priority": "",
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_8 = { key: 1 };
|
|
22
|
+
const _hoisted_9 = { key: 2 };
|
|
23
|
+
const _hoisted_10 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
"data-collection-continuation": ""
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_11 = ["colspan"];
|
|
28
|
+
const _hoisted_12 = {
|
|
29
|
+
key: 1,
|
|
30
|
+
"data-collection-add-track": "",
|
|
31
|
+
class: "element-table-add-track"
|
|
32
|
+
};
|
|
33
|
+
const _hoisted_13 = ["colspan"];
|
|
34
|
+
const _hoisted_14 = {
|
|
35
|
+
key: 1,
|
|
36
|
+
role: "status"
|
|
37
|
+
};
|
|
38
|
+
const _hoisted_15 = {
|
|
39
|
+
key: 1,
|
|
40
|
+
class: "element-collection-status"
|
|
41
|
+
};
|
|
42
|
+
const _hoisted_16 = {
|
|
43
|
+
class: "element-collection-announcement",
|
|
44
|
+
"data-ui-loading-status": "",
|
|
45
|
+
role: "status",
|
|
46
|
+
"aria-atomic": "true"
|
|
47
|
+
};
|
|
48
|
+
const _hoisted_17 = {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "element-table-footer"
|
|
51
|
+
};
|
|
52
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
|
+
...{ inheritAttrs: false },
|
|
54
|
+
__name: "UiTable",
|
|
55
|
+
props: {
|
|
56
|
+
addRow: { type: Boolean },
|
|
57
|
+
showSortPriority: { type: Boolean },
|
|
58
|
+
columns: {},
|
|
59
|
+
sizeConstraintLabel: {},
|
|
60
|
+
selectPageLabel: {},
|
|
61
|
+
pageSelected: { type: Boolean },
|
|
62
|
+
pageMixed: { type: Boolean },
|
|
63
|
+
canSelectPage: { type: Boolean },
|
|
64
|
+
selectPage: { type: Function },
|
|
65
|
+
recoverFocus: { type: Function },
|
|
66
|
+
dataSummary: {},
|
|
67
|
+
rows: {},
|
|
68
|
+
label: {},
|
|
69
|
+
height: {},
|
|
70
|
+
scroll: {},
|
|
71
|
+
selection: {},
|
|
72
|
+
disabled: { type: Boolean },
|
|
73
|
+
busy: { type: Boolean },
|
|
74
|
+
loading: { type: Boolean },
|
|
75
|
+
appending: { type: Boolean },
|
|
76
|
+
empty: { type: Boolean },
|
|
77
|
+
failed: { type: Boolean },
|
|
78
|
+
failurePlacement: {},
|
|
79
|
+
error: {},
|
|
80
|
+
message: {},
|
|
81
|
+
showSummary: { type: Boolean },
|
|
82
|
+
summary: { type: Boolean },
|
|
83
|
+
announcement: {},
|
|
84
|
+
retryLabel: {},
|
|
85
|
+
canRetry: { type: Boolean },
|
|
86
|
+
retry: { type: Function },
|
|
87
|
+
infinityComplete: { type: Boolean },
|
|
88
|
+
infinite: { type: Boolean },
|
|
89
|
+
moreLabel: {},
|
|
90
|
+
canLoadMore: { type: Boolean },
|
|
91
|
+
hasMore: { type: Boolean },
|
|
92
|
+
loadMore: { type: Function },
|
|
93
|
+
observe: { type: Function }
|
|
94
|
+
},
|
|
95
|
+
setup(__props) {
|
|
96
|
+
useUiZView();
|
|
97
|
+
const props = __props;
|
|
98
|
+
const slots = useSlots();
|
|
99
|
+
const summaryMethod = () => [
|
|
100
|
+
...props.selection === "none" ? [] : [""],
|
|
101
|
+
...props.columns.map(
|
|
102
|
+
(column) => h(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
ref: column.key === props.columns[0]?.key && (props.dataSummary?.labelColumnSpan ?? 1) > 1 ? void 0 : sizing.summaryRef(column.key),
|
|
106
|
+
style: column.key === props.columns[0]?.key && (props.dataSummary?.labelColumnSpan ?? 1) > 1 ? { minWidth: "0" } : sizing.contentStyle(column.key),
|
|
107
|
+
"data-collection-summary-cell": column.key
|
|
108
|
+
},
|
|
109
|
+
slots["summary-cell"]?.({ column })
|
|
110
|
+
)
|
|
111
|
+
)
|
|
112
|
+
];
|
|
113
|
+
const { root, target, sentinel, rowRef, id, failure } = useUiCollectionView(props);
|
|
114
|
+
const container = ref();
|
|
115
|
+
const sizing = useUiTableSizing(props, container, id, { minimumHeader: true });
|
|
116
|
+
const addGeometry = useUiTableAddRow({
|
|
117
|
+
enabled: () => Boolean(props.addRow),
|
|
118
|
+
bounded: () => props.height === "full",
|
|
119
|
+
host: () => root.value,
|
|
120
|
+
summary: () => container.value?.querySelector("[data-collection-summary]"),
|
|
121
|
+
header: () => target.value?.querySelector("thead"),
|
|
122
|
+
row: () => target.value?.querySelector(
|
|
123
|
+
"tbody tr:not([data-collection-add-track])"
|
|
124
|
+
)
|
|
125
|
+
});
|
|
126
|
+
const addTracks = computed(() => [
|
|
127
|
+
...props.selection === "none" ? [] : [sizing.selectionWidth.value],
|
|
128
|
+
...props.columns.map((column) => sizing.width(column.key))
|
|
129
|
+
]);
|
|
130
|
+
const addKeys = computed(() => [
|
|
131
|
+
...props.selection === "none" ? [] : ["selection"],
|
|
132
|
+
...props.columns.map((column) => column.key)
|
|
133
|
+
]);
|
|
134
|
+
const native = ref();
|
|
135
|
+
const resizeTargets = shallowRef(/* @__PURE__ */ new Map());
|
|
136
|
+
function syncSort() {
|
|
137
|
+
const columns = native.value?.store.states.columns.value ?? [];
|
|
138
|
+
for (const column of columns) {
|
|
139
|
+
const accepted = props.columns.find(
|
|
140
|
+
(entry) => entry.key === column.columnKey
|
|
141
|
+
);
|
|
142
|
+
const order = accepted?.sort ?? null;
|
|
143
|
+
if (column.order !== order) column.order = order;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function syncSortAccessibility() {
|
|
147
|
+
const headers = target.value?.querySelectorAll("thead th");
|
|
148
|
+
if (!headers) return;
|
|
149
|
+
const offset = props.selection === "none" ? 0 : 1;
|
|
150
|
+
props.columns.forEach((column, index) => {
|
|
151
|
+
const header = headers[index + offset];
|
|
152
|
+
if (column.primary && column.sort)
|
|
153
|
+
header?.setAttribute("aria-sort", column.sort);
|
|
154
|
+
else header?.removeAttribute("aria-sort");
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
async function sortChanged(event) {
|
|
158
|
+
const column = props.columns.find(
|
|
159
|
+
(entry) => entry.key === event.column.columnKey
|
|
160
|
+
);
|
|
161
|
+
try {
|
|
162
|
+
if (!props.disabled && column?.sortable)
|
|
163
|
+
await column.requestSort(event.order);
|
|
164
|
+
} finally {
|
|
165
|
+
await nextTick();
|
|
166
|
+
syncSort();
|
|
167
|
+
await nextTick();
|
|
168
|
+
syncSortAccessibility();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
const tailBody = shallowRef();
|
|
172
|
+
onUnmounted(() => tailBody.value?.remove());
|
|
173
|
+
function syncTailBody(table) {
|
|
174
|
+
if (props.addRow || props.infinite) {
|
|
175
|
+
if (tailBody.value?.parentElement !== table) {
|
|
176
|
+
const previous = tailBody.value;
|
|
177
|
+
const body2 = table.ownerDocument.createElement("tbody");
|
|
178
|
+
body2.className = "element-table-tail-body";
|
|
179
|
+
table.insertBefore(body2, table.querySelector("tfoot"));
|
|
180
|
+
tailBody.value = body2;
|
|
181
|
+
void nextTick(() => previous?.remove());
|
|
182
|
+
}
|
|
183
|
+
const body = tailBody.value;
|
|
184
|
+
body.classList.toggle("element-table-add-body", Boolean(props.addRow));
|
|
185
|
+
const footer = table.querySelector("tfoot");
|
|
186
|
+
if (footer && body.nextElementSibling !== footer)
|
|
187
|
+
table.insertBefore(body, footer);
|
|
188
|
+
} else if (tailBody.value) {
|
|
189
|
+
const previous = tailBody.value;
|
|
190
|
+
tailBody.value = void 0;
|
|
191
|
+
void nextTick(() => previous.remove());
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
const rowKey = (row) => `${typeof row.key}:${row.key}`;
|
|
195
|
+
function sync() {
|
|
196
|
+
syncSort();
|
|
197
|
+
const element = native.value?.$el;
|
|
198
|
+
const viewport = element?.querySelector(".el-scrollbar__wrap");
|
|
199
|
+
root.value = props.height === "full" ? viewport ?? void 0 : container.value;
|
|
200
|
+
if (viewport) {
|
|
201
|
+
if (props.height === "full") {
|
|
202
|
+
viewport.setAttribute("role", "region");
|
|
203
|
+
viewport.setAttribute("aria-label", props.label);
|
|
204
|
+
viewport.tabIndex = 0;
|
|
205
|
+
} else {
|
|
206
|
+
viewport.removeAttribute("role");
|
|
207
|
+
viewport.removeAttribute("aria-label");
|
|
208
|
+
viewport.removeAttribute("tabindex");
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const table = element?.querySelector("table");
|
|
212
|
+
target.value = table ?? void 0;
|
|
213
|
+
if (!table) {
|
|
214
|
+
if (resizeTargets.value.size) resizeTargets.value = /* @__PURE__ */ new Map();
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
syncTailBody(table);
|
|
218
|
+
table.setAttribute("aria-label", props.label);
|
|
219
|
+
const footer = container.value?.querySelector("tfoot");
|
|
220
|
+
if (footer && props.dataSummary) {
|
|
221
|
+
footer.setAttribute("data-collection-summary", "");
|
|
222
|
+
footer.setAttribute("data-summary-status", props.dataSummary.status);
|
|
223
|
+
footer.setAttribute("aria-label", props.dataSummary.label);
|
|
224
|
+
const footerTable = footer.closest("table");
|
|
225
|
+
if (footerTable && footerTable !== table)
|
|
226
|
+
footerTable.setAttribute(
|
|
227
|
+
"aria-label",
|
|
228
|
+
`${props.label}: ${props.dataSummary.label}`
|
|
229
|
+
);
|
|
230
|
+
[...footer.querySelectorAll("td")].slice(props.selection === "none" ? 0 : 1).forEach((cell, index) => {
|
|
231
|
+
const column = props.columns[index];
|
|
232
|
+
if (column) {
|
|
233
|
+
const span = props.dataSummary?.labelColumnSpan ?? 1;
|
|
234
|
+
cell.colSpan = index === 0 ? span : 1;
|
|
235
|
+
cell.hidden = index > 0 && index < span;
|
|
236
|
+
if (index === 0) cell.style.textAlign = span > 1 ? "start" : "";
|
|
237
|
+
if (cell.closest("table") === table)
|
|
238
|
+
cell.setAttribute(
|
|
239
|
+
"headers",
|
|
240
|
+
(index === 0 ? props.columns.slice(0, span) : [column]).map((column2) => sizing.columnId(column2.key)).join(" ")
|
|
241
|
+
);
|
|
242
|
+
else {
|
|
243
|
+
cell.removeAttribute("headers");
|
|
244
|
+
cell.setAttribute(
|
|
245
|
+
"aria-label",
|
|
246
|
+
index === 0 && span > 1 ? props.dataSummary.label : column.label ?? column.key
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
table.setAttribute("aria-busy", String(props.busy));
|
|
253
|
+
table.tabIndex = -1;
|
|
254
|
+
Object.assign(table.style, sizing.tableStyle.value);
|
|
255
|
+
const headers = [...table.querySelectorAll("thead th")].slice(
|
|
256
|
+
props.selection === "none" ? 0 : 1
|
|
257
|
+
);
|
|
258
|
+
const nextResizeTargets = /* @__PURE__ */ new Map();
|
|
259
|
+
headers.forEach((header, index) => {
|
|
260
|
+
const column = props.columns[index];
|
|
261
|
+
if (column) {
|
|
262
|
+
header.id = sizing.columnId(column.key);
|
|
263
|
+
nextResizeTargets.set(column.key, header);
|
|
264
|
+
}
|
|
265
|
+
const cell = header.querySelector(".cell");
|
|
266
|
+
if (cell && column) {
|
|
267
|
+
const style = sizing.contentStyle(column.key);
|
|
268
|
+
for (const property of [
|
|
269
|
+
"display",
|
|
270
|
+
"width",
|
|
271
|
+
"max-width",
|
|
272
|
+
"white-space",
|
|
273
|
+
"min-width"
|
|
274
|
+
])
|
|
275
|
+
cell.style.removeProperty(property);
|
|
276
|
+
Object.assign(cell.style, style);
|
|
277
|
+
if (column.sortable && style.display) cell.style.display = "inline-flex";
|
|
278
|
+
sizing.contentRef(column.key)(cell);
|
|
279
|
+
}
|
|
280
|
+
const control = header.querySelector(".caret-wrapper");
|
|
281
|
+
if (control && column) {
|
|
282
|
+
control.disabled = props.disabled;
|
|
283
|
+
control.setAttribute(
|
|
284
|
+
"aria-label",
|
|
285
|
+
`${column.sortLabel}: ${column.label ?? column.key}`
|
|
286
|
+
);
|
|
287
|
+
if (column.sortDescription)
|
|
288
|
+
control.setAttribute("aria-describedby", `${id}-sort-${index}`);
|
|
289
|
+
else control.removeAttribute("aria-describedby");
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
void nextTick(syncSortAccessibility);
|
|
293
|
+
if (nextResizeTargets.size !== resizeTargets.value.size || [...nextResizeTargets].some(
|
|
294
|
+
([key, element2]) => resizeTargets.value.get(key) !== element2
|
|
295
|
+
))
|
|
296
|
+
resizeTargets.value = nextResizeTargets;
|
|
297
|
+
const elements = [...table.querySelectorAll("tbody tr")];
|
|
298
|
+
props.rows.forEach((row, index) => rowRef(row.key, elements[index] ?? null));
|
|
299
|
+
}
|
|
300
|
+
watchPostEffect(sync);
|
|
301
|
+
onMounted(sync);
|
|
302
|
+
onUpdated(sync);
|
|
303
|
+
const loadingSurface = {
|
|
304
|
+
...useUiLoadingSurface(() => container.value),
|
|
305
|
+
// Keep header filter anchors available while a live query refreshes rows.
|
|
306
|
+
interactionTarget: computed(
|
|
307
|
+
() => target.value?.querySelector("tbody") ?? container.value
|
|
308
|
+
)
|
|
309
|
+
};
|
|
310
|
+
return (_ctx, _cache) => {
|
|
311
|
+
return openBlock(), createElementBlock(
|
|
312
|
+
Fragment,
|
|
313
|
+
null,
|
|
314
|
+
[
|
|
315
|
+
createElementVNode("div", {
|
|
316
|
+
class: "element-collection-frame",
|
|
317
|
+
"data-collection-full": __props.height === "full" || void 0
|
|
318
|
+
}, [
|
|
319
|
+
__props.failed && __props.failurePlacement === "replacement" && !__props.loading ? (openBlock(), createElementBlock(
|
|
320
|
+
"div",
|
|
321
|
+
{
|
|
322
|
+
key: 0,
|
|
323
|
+
ref_key: "failure",
|
|
324
|
+
ref: failure,
|
|
325
|
+
class: "element-collection-failure",
|
|
326
|
+
"data-collection-failure": "replacement"
|
|
327
|
+
},
|
|
328
|
+
[
|
|
329
|
+
renderSlot(_ctx.$slots, "error", {
|
|
330
|
+
placement: __props.failurePlacement,
|
|
331
|
+
error: __props.error,
|
|
332
|
+
retry: __props.retry,
|
|
333
|
+
canRetry: __props.canRetry
|
|
334
|
+
})
|
|
335
|
+
],
|
|
336
|
+
512
|
|
337
|
+
/* NEED_PATCH */
|
|
338
|
+
)) : createCommentVNode("v-if", true),
|
|
339
|
+
createElementVNode("div", mergeProps({
|
|
340
|
+
ref_key: "container",
|
|
341
|
+
ref: container
|
|
342
|
+
}, _ctx.$attrs, {
|
|
343
|
+
class: "element-collection",
|
|
344
|
+
"data-full": __props.height === "full" || void 0,
|
|
345
|
+
"data-loading-empty": __props.loading && __props.rows.length === 0 || void 0,
|
|
346
|
+
"data-scroll": __props.scroll,
|
|
347
|
+
"data-column-fit": unref(sizing).fits.value,
|
|
348
|
+
role: __props.height !== "full" && __props.scroll !== "none" ? "region" : void 0,
|
|
349
|
+
"aria-label": __props.height !== "full" && __props.scroll !== "none" ? __props.label : void 0,
|
|
350
|
+
tabindex: __props.height !== "full" && __props.scroll !== "none" ? 0 : void 0
|
|
351
|
+
}), [
|
|
352
|
+
createElementVNode("div", _hoisted_3, [
|
|
353
|
+
withDirectives(createVNode(unref(ElTable), {
|
|
354
|
+
style: normalizeStyle(
|
|
355
|
+
__props.height === "full" ? { width: "100%", height: "100%" } : unref(sizing).tableStyle.value
|
|
356
|
+
),
|
|
357
|
+
height: __props.height === "full" ? "100%" : void 0,
|
|
358
|
+
fit: false,
|
|
359
|
+
ref_key: "native",
|
|
360
|
+
ref: native,
|
|
361
|
+
class: "element-table",
|
|
362
|
+
data: [...__props.rows],
|
|
363
|
+
"row-key": rowKey,
|
|
364
|
+
"table-layout": "auto",
|
|
365
|
+
"highlight-current-row": false,
|
|
366
|
+
"show-summary": Boolean(__props.dataSummary),
|
|
367
|
+
"summary-method": summaryMethod,
|
|
368
|
+
onSortChange: sortChanged,
|
|
369
|
+
onClickCapture: _cache[7] || (_cache[7] = (event) => {
|
|
370
|
+
if (__props.disabled && event.target.closest("thead th.is-sortable"))
|
|
371
|
+
event.stopPropagation();
|
|
372
|
+
})
|
|
373
|
+
}, createSlots({
|
|
374
|
+
empty: withCtx(() => [
|
|
375
|
+
__props.failed && __props.failurePlacement === "initial" && !__props.loading ? (openBlock(), createElementBlock(
|
|
376
|
+
"div",
|
|
377
|
+
{
|
|
378
|
+
key: 0,
|
|
379
|
+
ref_key: "failure",
|
|
380
|
+
ref: failure,
|
|
381
|
+
class: "element-collection-failure",
|
|
382
|
+
"data-collection-failure": "initial"
|
|
383
|
+
},
|
|
384
|
+
[
|
|
385
|
+
renderSlot(_ctx.$slots, "error", {
|
|
386
|
+
placement: __props.failurePlacement,
|
|
387
|
+
error: __props.error,
|
|
388
|
+
retry: __props.retry,
|
|
389
|
+
canRetry: __props.canRetry
|
|
390
|
+
})
|
|
391
|
+
],
|
|
392
|
+
512
|
|
393
|
+
/* NEED_PATCH */
|
|
394
|
+
)) : createCommentVNode("v-if", true),
|
|
395
|
+
__props.empty ? renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
396
|
+
createVNode(_sfc_main$2, { label: __props.message }, null, 8, ["label"])
|
|
397
|
+
], void 0, 1) : (openBlock(), createElementBlock("span", _hoisted_9))
|
|
398
|
+
]),
|
|
399
|
+
default: withCtx(() => [
|
|
400
|
+
__props.selection !== "none" ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
401
|
+
key: 0,
|
|
402
|
+
"column-key": "selection",
|
|
403
|
+
width: unref(sizing).selectionWidth.value,
|
|
404
|
+
resizable: false
|
|
405
|
+
}, {
|
|
406
|
+
header: withCtx(() => [
|
|
407
|
+
__props.selection === "multiple" ? (openBlock(), createBlock(unref(ElCheckbox), {
|
|
408
|
+
key: 0,
|
|
409
|
+
"aria-label": __props.selectPageLabel,
|
|
410
|
+
"model-value": __props.pageSelected,
|
|
411
|
+
indeterminate: __props.pageMixed,
|
|
412
|
+
disabled: !__props.canSelectPage,
|
|
413
|
+
"validate-event": false,
|
|
414
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.selectPage($event === true))
|
|
415
|
+
}, null, 8, ["aria-label", "model-value", "indeterminate", "disabled"])) : (openBlock(), createElementBlock(
|
|
416
|
+
"span",
|
|
417
|
+
_hoisted_4,
|
|
418
|
+
toDisplayString(__props.selectPageLabel),
|
|
419
|
+
1
|
|
420
|
+
/* TEXT */
|
|
421
|
+
))
|
|
422
|
+
]),
|
|
423
|
+
default: withCtx(({ row }) => [
|
|
424
|
+
row?.context ? (openBlock(), createBlock(unref(ElCheckbox), {
|
|
425
|
+
key: 0,
|
|
426
|
+
"aria-label": row.selectLabel,
|
|
427
|
+
"model-value": row.context.selected,
|
|
428
|
+
disabled: !row.context.selectable,
|
|
429
|
+
"validate-event": false,
|
|
430
|
+
"onUpdate:modelValue": ($event) => row.context.requestSelected($event === true)
|
|
431
|
+
}, null, 8, ["aria-label", "model-value", "disabled", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
432
|
+
]),
|
|
433
|
+
_: 1
|
|
434
|
+
/* STABLE */
|
|
435
|
+
}, 8, ["width"])) : createCommentVNode("v-if", true),
|
|
436
|
+
(openBlock(true), createElementBlock(
|
|
437
|
+
Fragment,
|
|
438
|
+
null,
|
|
439
|
+
renderList(__props.columns, (column, index) => {
|
|
440
|
+
return openBlock(), createBlock(unref(ElTableColumn), {
|
|
441
|
+
key: column.key,
|
|
442
|
+
"column-key": column.key,
|
|
443
|
+
label: column.label,
|
|
444
|
+
width: unref(sizing).width(column.key),
|
|
445
|
+
align: column.align,
|
|
446
|
+
"header-align": column.align,
|
|
447
|
+
sortable: column.sortable ? "custom" : false,
|
|
448
|
+
prop: column.key,
|
|
449
|
+
resizable: false
|
|
450
|
+
}, {
|
|
451
|
+
header: withCtx(() => [
|
|
452
|
+
createElementVNode("div", _hoisted_5, [
|
|
453
|
+
renderSlot(_ctx.$slots, "label", { column }),
|
|
454
|
+
column.sortDescription ? (openBlock(), createElementBlock("span", {
|
|
455
|
+
key: 0,
|
|
456
|
+
id: `${unref(id)}-sort-${index}`,
|
|
457
|
+
class: "element-collection-announcement"
|
|
458
|
+
}, toDisplayString(column.sortDescription), 9, _hoisted_6)) : createCommentVNode("v-if", true),
|
|
459
|
+
column.filter ? (openBlock(), createElementBlock(
|
|
460
|
+
"div",
|
|
461
|
+
{
|
|
462
|
+
key: 1,
|
|
463
|
+
class: "element-table-filter-host",
|
|
464
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
465
|
+
}, ["stop"])),
|
|
466
|
+
onKeydown: _cache[2] || (_cache[2] = ($event) => $event.key !== "Escape" && $event.stopPropagation())
|
|
467
|
+
},
|
|
468
|
+
[
|
|
469
|
+
renderSlot(_ctx.$slots, "filter", {
|
|
470
|
+
trigger: _sfc_main$1,
|
|
471
|
+
column
|
|
472
|
+
})
|
|
473
|
+
],
|
|
474
|
+
32
|
|
475
|
+
/* NEED_HYDRATION */
|
|
476
|
+
)) : createCommentVNode("v-if", true)
|
|
477
|
+
]),
|
|
478
|
+
__props.showSortPriority && column.sort ? (openBlock(), createElementBlock(
|
|
479
|
+
"span",
|
|
480
|
+
_hoisted_7,
|
|
481
|
+
toDisplayString(column.sortPriority),
|
|
482
|
+
1
|
|
483
|
+
/* TEXT */
|
|
484
|
+
)) : createCommentVNode("v-if", true),
|
|
485
|
+
__props.showSortPriority && column.sort ? (openBlock(), createElementBlock(
|
|
486
|
+
"span",
|
|
487
|
+
{
|
|
488
|
+
key: 1,
|
|
489
|
+
onClick: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
490
|
+
}, ["stop"])),
|
|
491
|
+
onKeydown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
492
|
+
}, ["stop"]))
|
|
493
|
+
},
|
|
494
|
+
[
|
|
495
|
+
renderSlot(_ctx.$slots, "sort-actions", { column })
|
|
496
|
+
],
|
|
497
|
+
32
|
|
498
|
+
/* NEED_HYDRATION */
|
|
499
|
+
)) : createCommentVNode("v-if", true),
|
|
500
|
+
(openBlock(), createBlock(Teleport, {
|
|
501
|
+
to: resizeTargets.value.get(column.key),
|
|
502
|
+
disabled: !resizeTargets.value.has(column.key)
|
|
503
|
+
}, [
|
|
504
|
+
unref(sizing).handle(column.key) ? (openBlock(), createElementBlock(
|
|
505
|
+
"span",
|
|
506
|
+
mergeProps({
|
|
507
|
+
key: 0,
|
|
508
|
+
ref_for: true
|
|
509
|
+
}, unref(sizing).handle(column.key), {
|
|
510
|
+
class: "element-column-resizer",
|
|
511
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
512
|
+
}, ["stop"])),
|
|
513
|
+
onKeydown: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
514
|
+
}, ["stop"]))
|
|
515
|
+
}),
|
|
516
|
+
null,
|
|
517
|
+
16
|
|
518
|
+
/* FULL_PROPS */
|
|
519
|
+
)) : createCommentVNode("v-if", true)
|
|
520
|
+
], 8, ["to", "disabled"]))
|
|
521
|
+
]),
|
|
522
|
+
default: withCtx(({ row }) => [
|
|
523
|
+
row?.context ? (openBlock(), createElementBlock(
|
|
524
|
+
"div",
|
|
525
|
+
{
|
|
526
|
+
key: 0,
|
|
527
|
+
ref_for: true,
|
|
528
|
+
ref: unref(sizing).contentRef(column.key, row.key),
|
|
529
|
+
class: "element-table-cell-content",
|
|
530
|
+
style: normalizeStyle(unref(sizing).contentStyle(column.key))
|
|
531
|
+
},
|
|
532
|
+
[
|
|
533
|
+
renderSlot(_ctx.$slots, "cell", {
|
|
534
|
+
row,
|
|
535
|
+
column
|
|
536
|
+
})
|
|
537
|
+
],
|
|
538
|
+
4
|
|
539
|
+
/* STYLE */
|
|
540
|
+
)) : createCommentVNode("v-if", true),
|
|
541
|
+
row?.issue && index === __props.columns.length - 1 ? (openBlock(), createElementBlock(
|
|
542
|
+
"p",
|
|
543
|
+
_hoisted_8,
|
|
544
|
+
toDisplayString(row.issue),
|
|
545
|
+
1
|
|
546
|
+
/* TEXT */
|
|
547
|
+
)) : createCommentVNode("v-if", true)
|
|
548
|
+
]),
|
|
549
|
+
_: 2
|
|
550
|
+
/* DYNAMIC */
|
|
551
|
+
}, 1032, ["column-key", "label", "width", "align", "header-align", "sortable", "prop"]);
|
|
552
|
+
}),
|
|
553
|
+
128
|
|
554
|
+
/* KEYED_FRAGMENT */
|
|
555
|
+
))
|
|
556
|
+
]),
|
|
557
|
+
_: 2
|
|
558
|
+
/* DYNAMIC */
|
|
559
|
+
}, [
|
|
560
|
+
!__props.infinite && __props.failed && __props.failurePlacement === "append" && !__props.loading ? {
|
|
561
|
+
name: "append",
|
|
562
|
+
fn: withCtx(() => [
|
|
563
|
+
__props.failed && __props.failurePlacement === "append" && !__props.loading ? (openBlock(), createElementBlock(
|
|
564
|
+
"div",
|
|
565
|
+
{
|
|
566
|
+
key: 0,
|
|
567
|
+
ref_key: "failure",
|
|
568
|
+
ref: failure,
|
|
569
|
+
class: "element-collection-failure",
|
|
570
|
+
"data-collection-failure": "append"
|
|
571
|
+
},
|
|
572
|
+
[
|
|
573
|
+
renderSlot(_ctx.$slots, "error", {
|
|
574
|
+
placement: __props.failurePlacement,
|
|
575
|
+
error: __props.error,
|
|
576
|
+
retry: __props.retry,
|
|
577
|
+
canRetry: __props.canRetry
|
|
578
|
+
})
|
|
579
|
+
],
|
|
580
|
+
512
|
|
581
|
+
/* NEED_PATCH */
|
|
582
|
+
)) : createCommentVNode("v-if", true)
|
|
583
|
+
]),
|
|
584
|
+
key: "0"
|
|
585
|
+
} : void 0
|
|
586
|
+
]), 1032, ["style", "height", "data", "show-summary"]), [
|
|
587
|
+
[vShow, unref(sizing).fits.value]
|
|
588
|
+
]),
|
|
589
|
+
tailBody.value ? (openBlock(), createBlock(Teleport, {
|
|
590
|
+
key: 0,
|
|
591
|
+
to: tailBody.value
|
|
592
|
+
}, [
|
|
593
|
+
__props.infinite ? (openBlock(), createElementBlock("tr", _hoisted_10, [
|
|
594
|
+
createElementVNode("td", {
|
|
595
|
+
class: "el-table__cell",
|
|
596
|
+
colspan: Math.max(1, __props.columns.length + (__props.selection === "none" ? 0 : 1))
|
|
597
|
+
}, [
|
|
598
|
+
__props.failed && __props.failurePlacement === "append" && !__props.loading ? (openBlock(), createElementBlock(
|
|
599
|
+
"div",
|
|
600
|
+
{
|
|
601
|
+
key: 0,
|
|
602
|
+
ref_key: "failure",
|
|
603
|
+
ref: failure,
|
|
604
|
+
class: "element-collection-failure",
|
|
605
|
+
"data-collection-failure": "append"
|
|
606
|
+
},
|
|
607
|
+
[
|
|
608
|
+
renderSlot(_ctx.$slots, "error", {
|
|
609
|
+
placement: __props.failurePlacement,
|
|
610
|
+
error: __props.error,
|
|
611
|
+
retry: __props.retry,
|
|
612
|
+
canRetry: __props.canRetry
|
|
613
|
+
})
|
|
614
|
+
],
|
|
615
|
+
512
|
|
616
|
+
/* NEED_PATCH */
|
|
617
|
+
)) : createCommentVNode("v-if", true),
|
|
618
|
+
createElementVNode(
|
|
619
|
+
"div",
|
|
620
|
+
{
|
|
621
|
+
ref_key: "sentinel",
|
|
622
|
+
ref: sentinel,
|
|
623
|
+
"aria-hidden": "true",
|
|
624
|
+
class: "element-collection-sentinel"
|
|
625
|
+
},
|
|
626
|
+
null,
|
|
627
|
+
512
|
|
628
|
+
/* NEED_PATCH */
|
|
629
|
+
),
|
|
630
|
+
createVNode(
|
|
631
|
+
_sfc_main$3,
|
|
632
|
+
mergeProps(props, {
|
|
633
|
+
"suppress-announcement": "",
|
|
634
|
+
"empty-in-body": ""
|
|
635
|
+
}),
|
|
636
|
+
createSlots({
|
|
637
|
+
_: 2
|
|
638
|
+
/* DYNAMIC */
|
|
639
|
+
}, [
|
|
640
|
+
_ctx.$slots["infinity-loading"] ? {
|
|
641
|
+
name: "infinity-loading",
|
|
642
|
+
fn: withCtx((values) => [
|
|
643
|
+
renderSlot(_ctx.$slots, "infinity-loading", normalizeProps(guardReactiveProps(values)))
|
|
644
|
+
]),
|
|
645
|
+
key: "0"
|
|
646
|
+
} : void 0,
|
|
647
|
+
_ctx.$slots["infinity-complete"] ? {
|
|
648
|
+
name: "infinity-complete",
|
|
649
|
+
fn: withCtx((values) => [
|
|
650
|
+
renderSlot(_ctx.$slots, "infinity-complete", normalizeProps(guardReactiveProps(values)))
|
|
651
|
+
]),
|
|
652
|
+
key: "1"
|
|
653
|
+
} : void 0
|
|
654
|
+
]),
|
|
655
|
+
1040
|
|
656
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
657
|
+
)
|
|
658
|
+
], 8, _hoisted_11)
|
|
659
|
+
])) : createCommentVNode("v-if", true),
|
|
660
|
+
__props.addRow ? (openBlock(), createElementBlock("tr", _hoisted_12, [
|
|
661
|
+
createElementVNode("td", {
|
|
662
|
+
colspan: Math.max(1, __props.columns.length + (__props.selection === "none" ? 0 : 1))
|
|
663
|
+
}, [
|
|
664
|
+
createVNode(_sfc_main$4, {
|
|
665
|
+
tracks: addTracks.value,
|
|
666
|
+
keys: addKeys.value,
|
|
667
|
+
viewport: unref(addGeometry).viewportWidth.value
|
|
668
|
+
}, {
|
|
669
|
+
default: withCtx(() => [
|
|
670
|
+
renderSlot(_ctx.$slots, "add-row-action")
|
|
671
|
+
]),
|
|
672
|
+
_: 3
|
|
673
|
+
/* FORWARDED */
|
|
674
|
+
}, 8, ["tracks", "keys", "viewport"])
|
|
675
|
+
], 8, _hoisted_13)
|
|
676
|
+
])) : createCommentVNode("v-if", true)
|
|
677
|
+
], 8, ["to"])) : createCommentVNode("v-if", true),
|
|
678
|
+
!unref(sizing).fits.value ? (openBlock(), createElementBlock(
|
|
679
|
+
"p",
|
|
680
|
+
_hoisted_14,
|
|
681
|
+
toDisplayString(__props.sizeConstraintLabel),
|
|
682
|
+
1
|
|
683
|
+
/* TEXT */
|
|
684
|
+
)) : createCommentVNode("v-if", true)
|
|
685
|
+
]),
|
|
686
|
+
!__props.infinite ? (openBlock(), createBlock(
|
|
687
|
+
_sfc_main$3,
|
|
688
|
+
mergeProps({ key: 0 }, props, { "empty-in-body": "" }),
|
|
689
|
+
createSlots({
|
|
690
|
+
_: 2
|
|
691
|
+
/* DYNAMIC */
|
|
692
|
+
}, [
|
|
693
|
+
_ctx.$slots["infinity-loading"] ? {
|
|
694
|
+
name: "infinity-loading",
|
|
695
|
+
fn: withCtx((values) => [
|
|
696
|
+
renderSlot(_ctx.$slots, "infinity-loading", normalizeProps(guardReactiveProps(values)))
|
|
697
|
+
]),
|
|
698
|
+
key: "0"
|
|
699
|
+
} : void 0,
|
|
700
|
+
_ctx.$slots["infinity-complete"] ? {
|
|
701
|
+
name: "infinity-complete",
|
|
702
|
+
fn: withCtx((values) => [
|
|
703
|
+
renderSlot(_ctx.$slots, "infinity-complete", normalizeProps(guardReactiveProps(values)))
|
|
704
|
+
]),
|
|
705
|
+
key: "1"
|
|
706
|
+
} : void 0
|
|
707
|
+
]),
|
|
708
|
+
1040
|
|
709
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
710
|
+
)) : (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
711
|
+
createElementVNode(
|
|
712
|
+
"span",
|
|
713
|
+
_hoisted_16,
|
|
714
|
+
toDisplayString(__props.announcement),
|
|
715
|
+
1
|
|
716
|
+
/* TEXT */
|
|
717
|
+
)
|
|
718
|
+
]))
|
|
719
|
+
], 16, _hoisted_2),
|
|
720
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
721
|
+
renderSlot(_ctx.$slots, "footer")
|
|
722
|
+
])) : createCommentVNode("v-if", true)
|
|
723
|
+
], 8, _hoisted_1),
|
|
724
|
+
createVNode(_sfc_main$5, {
|
|
725
|
+
surface: loadingSurface,
|
|
726
|
+
loading: __props.loading,
|
|
727
|
+
label: __props.message,
|
|
728
|
+
announce: false,
|
|
729
|
+
"manage-busy": false
|
|
730
|
+
}, null, 8, ["loading", "label"])
|
|
731
|
+
],
|
|
732
|
+
64
|
|
733
|
+
/* STABLE_FRAGMENT */
|
|
734
|
+
);
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
});
|
|
738
|
+
export {
|
|
739
|
+
_sfc_main as default
|
|
740
|
+
};
|