@rebasepro/plugin-data-enhancement 0.2.1 → 0.2.3
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/dist/admin/src/collection_editor/CollectionEditorDialogsContext.d.ts +19 -0
- package/dist/admin/src/collection_editor/ConfigControllerProvider.d.ts +41 -0
- package/dist/admin/src/collection_editor/_cms_internals.d.ts +29 -0
- package/dist/admin/src/collection_editor/api/generateCollectionApi.d.ts +77 -0
- package/dist/admin/src/collection_editor/index.d.ts +16 -0
- package/dist/admin/src/collection_editor/pgColumnToProperty.d.ts +6 -0
- package/dist/admin/src/collection_editor/types/collection_editor_controller.d.ts +59 -0
- package/dist/admin/src/collection_editor/types/collection_inference.d.ts +10 -0
- package/dist/admin/src/collection_editor/types/config_controller.d.ts +98 -0
- package/dist/admin/src/collection_editor/types/config_permissions.d.ts +19 -0
- package/dist/admin/src/collection_editor/ui/EditorCollectionAction.d.ts +2 -0
- package/dist/admin/src/collection_editor/ui/MissingReferenceWidget.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.d.ts +36 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/AIModifiedPathsContext.d.ts +20 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +71 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.d.ts +19 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionJsonImportDialog.d.ts +7 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +16 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionRLSTab.d.ts +12 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionStudioView.d.ts +5 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionYupValidation.d.ts +14 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/CollectionsStudioView.d.ts +5 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/DisplaySettingsForm.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/EnumForm.d.ts +12 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/GeneralSettingsForm.d.ts +7 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/GetCodeDialog.d.ts +6 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/KanbanConfigSection.d.ts +4 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/LayoutModeSwitch.d.ts +5 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/PropertyEditView.d.ts +47 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/PropertyFieldPreview.d.ts +16 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/PropertyTree.d.ts +31 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/SwitchControl.d.ts +8 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/ViewModeSwitch.d.ts +6 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +7 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.d.ts +13 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/import/clean_import_data.d.ts +7 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/BlockPropertyField.d.ts +7 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/BooleanPropertyField.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/CommonPropertyFields.d.ts +10 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/DateTimePropertyField.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/EnumPropertyField.d.ts +9 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/KeyValuePropertyField.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/MapPropertyField.d.ts +7 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.d.ts +4 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/NumberPropertyField.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/ReferencePropertyField.d.ts +14 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/RelationPropertyField.d.ts +9 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/RepeatPropertyField.d.ts +9 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/StoragePropertyField.d.ts +5 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/StringPropertyField.d.ts +5 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/UrlPropertyField.d.ts +4 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/VectorPropertyField.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.d.ts +5 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.d.ts +4 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.d.ts +11 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/templates/blog_template.d.ts +2 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/templates/pages_template.d.ts +2 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/templates/products_template.d.ts +2 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/templates/users_template.d.ts +2 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/util.d.ts +5 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/utils/strings.d.ts +1 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/utils/supported_fields.d.ts +3 -0
- package/dist/admin/src/collection_editor/ui/collection_editor/utils/update_property_for_widget.d.ts +2 -0
- package/dist/admin/src/collection_editor/useCollectionEditorController.d.ts +6 -0
- package/dist/admin/src/collection_editor/useCollectionsConfigController.d.ts +6 -0
- package/dist/admin/src/collection_editor/useLocalCollectionsConfigController.d.ts +6 -0
- package/dist/admin/src/collection_editor/validateCollectionJson.d.ts +22 -0
- package/dist/admin/src/components/AdminModeSyncer.d.ts +17 -0
- package/dist/admin/src/components/ArrayContainer.d.ts +58 -0
- package/dist/admin/src/components/ClearFilterSortButton.d.ts +5 -0
- package/dist/admin/src/components/CollectionEditorDialogs.d.ts +15 -0
- package/dist/admin/src/components/DefaultAppBar.d.ts +29 -0
- package/dist/admin/src/components/DefaultDrawer.d.ts +29 -0
- package/dist/admin/src/components/DeleteEntityDialog.d.ts +13 -0
- package/dist/admin/src/components/DrawerNavigationGroup.d.ts +49 -0
- package/dist/admin/src/components/DrawerNavigationItem.d.ts +10 -0
- package/dist/admin/src/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +39 -0
- package/dist/admin/src/components/EntityCollectionTable/EntityCollectionTable.d.ts +27 -0
- package/dist/admin/src/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +129 -0
- package/dist/admin/src/components/EntityCollectionTable/PropertyTableCell.d.ts +26 -0
- package/dist/admin/src/components/EntityCollectionTable/column_utils.d.ts +16 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +21 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/TableReferenceField.d.ts +22 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/TableRelationField.d.ts +22 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +20 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +35 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableDateField.d.ts +12 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableInput.d.ts +9 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableNumberInput.d.ts +8 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableSelect.d.ts +15 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableSwitch.d.ts +7 -0
- package/dist/admin/src/components/EntityCollectionTable/fields/VirtualTableUserSelect.d.ts +12 -0
- package/dist/admin/src/components/EntityCollectionTable/index.d.ts +6 -0
- package/dist/admin/src/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +25 -0
- package/dist/admin/src/components/EntityCollectionTable/internal/EntityTableCell.d.ts +32 -0
- package/dist/admin/src/components/EntityCollectionTable/internal/EntityTableCellActions.d.ts +9 -0
- package/dist/admin/src/components/EntityCollectionTable/internal/common.d.ts +5 -0
- package/dist/admin/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +27 -0
- package/dist/admin/src/components/EntityCollectionTable/internal/popup_field/useDraggable.d.ts +13 -0
- package/dist/admin/src/components/EntityCollectionTable/internal/popup_field/useWindowSize.d.ts +6 -0
- package/dist/admin/src/components/EntityCollectionTable/table_bindings.d.ts +28 -0
- package/dist/admin/src/components/EntityCollectionView/Board.d.ts +2 -0
- package/dist/admin/src/components/EntityCollectionView/BoardColumn.d.ts +42 -0
- package/dist/admin/src/components/EntityCollectionView/BoardColumnTitle.d.ts +9 -0
- package/dist/admin/src/components/EntityCollectionView/BoardSortableList.d.ts +14 -0
- package/dist/admin/src/components/EntityCollectionView/EntityBoardCard.d.ts +31 -0
- package/dist/admin/src/components/EntityCollectionView/EntityCard.d.ts +20 -0
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionBoardView.d.ts +22 -0
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionCardView.d.ts +32 -0
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionListView.d.ts +50 -0
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionView.d.ts +65 -0
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionViewActions.d.ts +20 -0
- package/dist/admin/src/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +20 -0
- package/dist/admin/src/components/EntityCollectionView/FilterPresetsButton.d.ts +21 -0
- package/dist/admin/src/components/EntityCollectionView/FiltersDialog.d.ts +15 -0
- package/dist/admin/src/components/EntityCollectionView/SplitListView.d.ts +58 -0
- package/dist/admin/src/components/EntityCollectionView/ViewModeToggle.d.ts +44 -0
- package/dist/admin/src/components/EntityCollectionView/board_types.d.ts +105 -0
- package/dist/admin/src/components/EntityCollectionView/hooks/useCollectionInlineEditor.d.ts +12 -0
- package/dist/admin/src/components/EntityCollectionView/hooks/useKanbanDragAndDrop.d.ts +19 -0
- package/dist/admin/src/components/EntityCollectionView/useBoardDataController.d.ts +61 -0
- package/dist/admin/src/components/EntityCollectionView/useEntityPreviewSlots.d.ts +101 -0
- package/dist/admin/src/components/EntityCollectionView/useSelectionController.d.ts +2 -0
- package/dist/admin/src/components/EntityCollectionView/utils.d.ts +3 -0
- package/dist/admin/src/components/EntityDetailView.d.ts +31 -0
- package/dist/admin/src/components/EntityEditView.d.ts +57 -0
- package/dist/admin/src/components/EntityEditViewFormActions.d.ts +2 -0
- package/dist/admin/src/components/EntityJsonPreview.d.ts +3 -0
- package/dist/admin/src/components/EntityPreview.d.ts +56 -0
- package/dist/admin/src/components/EntitySidePanel.d.ts +10 -0
- package/dist/admin/src/components/EntityView.d.ts +12 -0
- package/dist/admin/src/components/FieldCaption.d.ts +5 -0
- package/dist/admin/src/components/HomePage/ContentHomePage.d.ts +11 -0
- package/dist/admin/src/components/HomePage/FavouritesView.d.ts +3 -0
- package/dist/admin/src/components/HomePage/HomePageDnD.d.ts +77 -0
- package/dist/admin/src/components/HomePage/NavigationCard.d.ts +11 -0
- package/dist/admin/src/components/HomePage/NavigationCardBinding.d.ts +18 -0
- package/dist/admin/src/components/HomePage/NavigationGroup.d.ts +11 -0
- package/dist/admin/src/components/HomePage/RenameGroupDialog.d.ts +9 -0
- package/dist/admin/src/components/HomePage/SmallNavigationCard.d.ts +6 -0
- package/dist/admin/src/components/PropertyCollectionView.d.ts +24 -0
- package/dist/admin/src/components/PropertyConfigBadge.d.ts +6 -0
- package/dist/admin/src/components/PropertyIdCopyTooltip.d.ts +8 -0
- package/dist/admin/src/components/RebaseAuthGate.d.ts +21 -0
- package/dist/admin/src/components/RebaseCMS.d.ts +10 -0
- package/dist/admin/src/components/RebaseLayout.d.ts +32 -0
- package/dist/admin/src/components/RebaseNavigation.d.ts +24 -0
- package/dist/admin/src/components/RebaseRouteDefs.d.ts +30 -0
- package/dist/admin/src/components/RebaseShell.d.ts +25 -0
- package/dist/admin/src/components/ReferenceTable/EntitySelectionTable.d.ts +59 -0
- package/dist/admin/src/components/ReferenceWidget.d.ts +30 -0
- package/dist/admin/src/components/RelationSelector.d.ts +32 -0
- package/dist/admin/src/components/SearchIconsView.d.ts +5 -0
- package/dist/admin/src/components/SelectableTable/SelectableTable.d.ts +95 -0
- package/dist/admin/src/components/SelectableTable/SelectableTableContext.d.ts +4 -0
- package/dist/admin/src/components/SelectableTable/SelectionStore.d.ts +26 -0
- package/dist/admin/src/components/SelectableTable/filters/BooleanFilterField.d.ts +9 -0
- package/dist/admin/src/components/SelectableTable/filters/DateTimeFilterField.d.ts +12 -0
- package/dist/admin/src/components/SelectableTable/filters/ReferenceFilterField.d.ts +15 -0
- package/dist/admin/src/components/SelectableTable/filters/RelationFilterField.d.ts +12 -0
- package/dist/admin/src/components/SelectableTable/filters/StringNumberFilterField.d.ts +13 -0
- package/dist/admin/src/components/SideDialogs.d.ts +25 -0
- package/dist/admin/src/components/SideEntityProvider.d.ts +32 -0
- package/dist/admin/src/components/UserSelector.d.ts +18 -0
- package/dist/admin/src/components/admin/CreationResultDialog.d.ts +5 -0
- package/dist/admin/src/components/admin/RoleChip.d.ts +4 -0
- package/dist/admin/src/components/admin/RolesFilterSelect.d.ts +2 -0
- package/dist/admin/src/components/admin/RolesView.d.ts +4 -0
- package/dist/admin/src/components/admin/UserRolesSelectField.d.ts +2 -0
- package/dist/admin/src/components/admin/UsersView.d.ts +4 -0
- package/dist/admin/src/components/app/AppBar.d.ts +12 -0
- package/dist/admin/src/components/app/Drawer.d.ts +19 -0
- package/dist/admin/src/components/app/Scaffold.d.ts +34 -0
- package/dist/admin/src/components/app/useApp.d.ts +17 -0
- package/dist/admin/src/components/common/default_entity_actions.d.ts +10 -0
- package/dist/admin/src/components/common/index.d.ts +1 -0
- package/dist/admin/src/components/field_configs.d.ts +7 -0
- package/dist/admin/src/components/history/EntityHistoryEntry.d.ts +17 -0
- package/dist/admin/src/components/history/EntityHistoryView.d.ts +6 -0
- package/dist/admin/src/components/history/LastEditedByFormAction.d.ts +6 -0
- package/dist/admin/src/components/history/LastEditedByIndicator.d.ts +10 -0
- package/dist/admin/src/components/history/UserChip.d.ts +4 -0
- package/dist/admin/src/components/history/index.d.ts +5 -0
- package/dist/admin/src/components/index.d.ts +39 -0
- package/dist/admin/src/contexts/BreacrumbsContext.d.ts +8 -0
- package/dist/admin/src/contexts/SideDialogsControllerContext.d.ts +3 -0
- package/dist/admin/src/data_export/export/BasicExportAction.d.ts +7 -0
- package/dist/admin/src/data_export/export/ExportCollectionAction.d.ts +11 -0
- package/dist/admin/src/data_export/export/export.d.ts +22 -0
- package/dist/admin/src/data_export/export/index.d.ts +3 -0
- package/dist/admin/src/data_export/index.d.ts +1 -0
- package/dist/admin/src/data_import/components/DataNewPropertiesMapping.d.ts +13 -0
- package/dist/admin/src/data_import/components/ImportFileUpload.d.ts +3 -0
- package/dist/admin/src/data_import/components/ImportNewPropertyFieldPreview.d.ts +9 -0
- package/dist/admin/src/data_import/components/ImportSaveInProgress.d.ts +8 -0
- package/dist/admin/src/data_import/components/index.d.ts +4 -0
- package/dist/admin/src/data_import/hooks/index.d.ts +1 -0
- package/dist/admin/src/data_import/hooks/useImportConfig.d.ts +2 -0
- package/dist/admin/src/data_import/import/ImportCollectionAction.d.ts +15 -0
- package/dist/admin/src/data_import/import/index.d.ts +1 -0
- package/dist/admin/src/data_import/index.d.ts +5 -0
- package/dist/admin/src/data_import/types/column_mapping.d.ts +20 -0
- package/dist/admin/src/data_import/types/index.d.ts +1 -0
- package/dist/admin/src/data_import/utils/data.d.ts +4 -0
- package/dist/admin/src/data_import/utils/file_headers.d.ts +6 -0
- package/dist/admin/src/data_import/utils/file_to_json.d.ts +6 -0
- package/dist/admin/src/data_import/utils/get_import_inference_type.d.ts +2 -0
- package/dist/admin/src/data_import/utils/index.d.ts +3 -0
- package/dist/admin/src/data_import/utils/transforms.d.ts +11 -0
- package/dist/admin/src/editor/components/SlashCommandMenu.d.ts +6 -0
- package/dist/admin/src/editor/components/editor-bubble-item.d.ts +8 -0
- package/dist/admin/src/editor/components/editor-bubble.d.ts +8 -0
- package/dist/admin/src/editor/components/image-bubble.d.ts +5 -0
- package/dist/admin/src/editor/components/index.d.ts +16 -0
- package/dist/admin/src/editor/components/table-bubble.d.ts +5 -0
- package/dist/admin/src/editor/editor.d.ts +30 -0
- package/dist/admin/src/editor/extensions/HighlightDecorationExtension.d.ts +24 -0
- package/dist/admin/src/editor/extensions/Image.d.ts +6 -0
- package/dist/admin/src/editor/extensions/TextLoadingDecorationExtension.d.ts +16 -0
- package/dist/admin/src/editor/extensions/clipboard.d.ts +7 -0
- package/dist/admin/src/editor/extensions/drag-and-drop.d.ts +9 -0
- package/dist/admin/src/editor/hooks/useProseMirror.d.ts +13 -0
- package/dist/admin/src/editor/hooks/useProseMirrorContext.d.ts +9 -0
- package/dist/admin/src/editor/index.d.ts +2 -0
- package/dist/admin/src/editor/markdown.d.ts +5 -0
- package/dist/admin/src/editor/nodeViews/ImageComponent.d.ts +3 -0
- package/dist/admin/src/editor/nodeViews/ReactNodeView.d.ts +29 -0
- package/dist/admin/src/editor/nodeViews/TaskItemComponent.d.ts +3 -0
- package/dist/admin/src/editor/nodeViews/index.d.ts +6 -0
- package/dist/admin/src/editor/plugins/index.d.ts +2 -0
- package/dist/admin/src/editor/plugins/inputrules.d.ts +6 -0
- package/dist/admin/src/editor/plugins/placeholderPlugin.d.ts +3 -0
- package/dist/admin/src/editor/plugins/slashCommandPlugin.d.ts +12 -0
- package/dist/admin/src/editor/schema.d.ts +2 -0
- package/dist/admin/src/editor/selectors/link-selector.d.ts +8 -0
- package/dist/admin/src/editor/selectors/node-selector.d.ts +15 -0
- package/dist/admin/src/editor/selectors/text-buttons.d.ts +1 -0
- package/dist/admin/src/editor/types.d.ts +5 -0
- package/dist/admin/src/editor/utils/prosemirror-utils.d.ts +7 -0
- package/dist/admin/src/editor/utils/remove_classes.d.ts +1 -0
- package/dist/admin/src/form/EntityForm.d.ts +10 -0
- package/dist/admin/src/form/EntityFormActions.d.ts +2 -0
- package/dist/admin/src/form/PropertyFieldBinding.d.ts +30 -0
- package/dist/admin/src/form/components/ErrorFocus.d.ts +4 -0
- package/dist/admin/src/form/components/FieldHelperText.d.ts +12 -0
- package/dist/admin/src/form/components/FormEntry.d.ts +6 -0
- package/dist/admin/src/form/components/FormLayout.d.ts +5 -0
- package/dist/admin/src/form/components/LabelWithIcon.d.ts +14 -0
- package/dist/admin/src/form/components/LabelWithIconAndTooltip.d.ts +15 -0
- package/dist/admin/src/form/components/LocalChangesMenu.d.ts +11 -0
- package/dist/admin/src/form/components/StorageItemPreview.d.ts +14 -0
- package/dist/admin/src/form/components/StorageUploadProgress.d.ts +10 -0
- package/dist/admin/src/form/components/index.d.ts +5 -0
- package/dist/admin/src/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +10 -0
- package/dist/admin/src/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +13 -0
- package/dist/admin/src/form/field_bindings/BlockFieldBinding.d.ts +11 -0
- package/dist/admin/src/form/field_bindings/DateTimeFieldBinding.d.ts +12 -0
- package/dist/admin/src/form/field_bindings/KeyValueFieldBinding.d.ts +8 -0
- package/dist/admin/src/form/field_bindings/MapFieldBinding.d.ts +10 -0
- package/dist/admin/src/form/field_bindings/MarkdownEditorFieldBinding.d.ts +12 -0
- package/dist/admin/src/form/field_bindings/MultiSelectFieldBinding.d.ts +10 -0
- package/dist/admin/src/form/field_bindings/MultipleRelationFieldBinding.d.ts +10 -0
- package/dist/admin/src/form/field_bindings/ReadOnlyFieldBinding.d.ts +11 -0
- package/dist/admin/src/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +10 -0
- package/dist/admin/src/form/field_bindings/ReferenceFieldBinding.d.ts +10 -0
- package/dist/admin/src/form/field_bindings/RelationFieldBinding.d.ts +3 -0
- package/dist/admin/src/form/field_bindings/RepeatFieldBinding.d.ts +11 -0
- package/dist/admin/src/form/field_bindings/SelectFieldBinding.d.ts +11 -0
- package/dist/admin/src/form/field_bindings/StorageUploadFieldBinding.d.ts +21 -0
- package/dist/admin/src/form/field_bindings/SwitchFieldBinding.d.ts +10 -0
- package/dist/admin/src/form/field_bindings/TextFieldBinding.d.ts +9 -0
- package/dist/admin/src/form/field_bindings/UserSelectFieldBinding.d.ts +14 -0
- package/dist/admin/src/form/field_bindings/VectorFieldBinding.d.ts +11 -0
- package/dist/admin/src/form/index.d.ts +21 -0
- package/dist/admin/src/form/useClearRestoreValue.d.ts +13 -0
- package/dist/admin/src/form/validation.d.ts +21 -0
- package/dist/admin/src/hooks/index.d.ts +15 -0
- package/dist/admin/src/hooks/navigation/contexts/CollectionRegistryContext.d.ts +5 -0
- package/dist/admin/src/hooks/navigation/contexts/NavigationStateContext.d.ts +4 -0
- package/dist/admin/src/hooks/navigation/contexts/UrlContext.d.ts +4 -0
- package/dist/admin/src/hooks/navigation/contexts/index.d.ts +3 -0
- package/dist/admin/src/hooks/navigation/useBuildCollectionRegistryController.d.ts +7 -0
- package/dist/admin/src/hooks/navigation/useBuildNavigationStateController.d.ts +34 -0
- package/dist/admin/src/hooks/navigation/useBuildUrlController.d.ts +7 -0
- package/dist/admin/src/hooks/navigation/useNavigationResolution.d.ts +7 -0
- package/dist/admin/src/hooks/navigation/useResolvedCollections.d.ts +28 -0
- package/dist/admin/src/hooks/navigation/useResolvedViews.d.ts +30 -0
- package/dist/admin/src/hooks/navigation/useTopLevelNavigation.d.ts +27 -0
- package/dist/admin/src/hooks/navigation/utils.d.ts +12 -0
- package/dist/admin/src/hooks/useBreadcrumbsController.d.ts +42 -0
- package/dist/admin/src/hooks/useBuildSideDialogsController.d.ts +2 -0
- package/dist/admin/src/hooks/useBuildSideEntityController.d.ts +6 -0
- package/dist/admin/src/hooks/useCMSContext.d.ts +27 -0
- package/dist/admin/src/hooks/useEntityHistory.d.ts +30 -0
- package/dist/admin/src/hooks/useEntitySelectionDialog.d.ts +18 -0
- package/dist/admin/src/hooks/useResolvedNavigationFrom.d.ts +73 -0
- package/dist/admin/src/hooks/useSideDialogsController.d.ts +19 -0
- package/dist/admin/src/hooks/useSideEntityController.d.ts +11 -0
- package/dist/admin/src/index.d.ts +15 -0
- package/dist/admin/src/preview/PropertyPreview.d.ts +7 -0
- package/dist/admin/src/preview/components/ArrayEnumPreview.d.ts +11 -0
- package/dist/admin/src/preview/components/BooleanPreview.d.ts +11 -0
- package/dist/admin/src/preview/components/DatePreview.d.ts +17 -0
- package/dist/admin/src/preview/components/EmptyValue.d.ts +6 -0
- package/dist/admin/src/preview/components/EnumValuesChip.d.ts +13 -0
- package/dist/admin/src/preview/components/ImagePreview.d.ts +16 -0
- package/dist/admin/src/preview/components/ReferencePreview.d.ts +17 -0
- package/dist/admin/src/preview/components/RelationPreview.d.ts +17 -0
- package/dist/admin/src/preview/components/StorageThumbnail.d.ts +15 -0
- package/dist/admin/src/preview/components/UrlComponentPreview.d.ts +14 -0
- package/dist/admin/src/preview/components/UserPreview.d.ts +9 -0
- package/dist/admin/src/preview/index.d.ts +23 -0
- package/dist/admin/src/preview/property_previews/ArrayOfMapsPreview.d.ts +6 -0
- package/dist/admin/src/preview/property_previews/ArrayOfReferencesPreview.d.ts +6 -0
- package/dist/admin/src/preview/property_previews/ArrayOfRelationsPreview.d.ts +6 -0
- package/dist/admin/src/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +6 -0
- package/dist/admin/src/preview/property_previews/ArrayOfStringsPreview.d.ts +6 -0
- package/dist/admin/src/preview/property_previews/ArrayOneOfPreview.d.ts +6 -0
- package/dist/admin/src/preview/property_previews/ArrayPropertyEnumPreview.d.ts +6 -0
- package/dist/admin/src/preview/property_previews/ArrayPropertyPreview.d.ts +6 -0
- package/dist/admin/src/preview/property_previews/MapPropertyPreview.d.ts +9 -0
- package/dist/admin/src/preview/property_previews/NumberPropertyPreview.d.ts +7 -0
- package/dist/admin/src/preview/property_previews/SkeletonPropertyComponent.d.ts +14 -0
- package/dist/admin/src/preview/property_previews/StringPropertyPreview.d.ts +7 -0
- package/dist/admin/src/preview/util.d.ts +7 -0
- package/dist/admin/src/routes/CustomViewRoute.d.ts +4 -0
- package/dist/admin/src/routes/RebaseRoute.d.ts +1 -0
- package/dist/admin/src/routes/index.d.ts +2 -0
- package/dist/admin/src/types/components/EntityFormActionsProps.d.ts +19 -0
- package/dist/admin/src/types/components/EntityFormProps.d.ts +49 -0
- package/dist/admin/src/types/components/PropertyPreviewProps.d.ts +47 -0
- package/dist/admin/src/types/components/formex.d.ts +40 -0
- package/dist/admin/src/types/components/index.d.ts +3 -0
- package/dist/admin/src/types/fields.d.ts +221 -0
- package/dist/admin/src/types/index.d.ts +2 -0
- package/dist/admin/src/util/entity_actions.d.ts +2 -0
- package/dist/admin/src/util/index.d.ts +5 -0
- package/dist/admin/src/util/navigation_utils.d.ts +26 -0
- package/dist/admin/src/util/previews.d.ts +4 -0
- package/dist/admin/src/util/property_utils.d.ts +25 -0
- package/dist/admin/src/util/resolutions.d.ts +9 -0
- package/dist/common/src/data/query_builder.d.ts +51 -0
- package/dist/common/src/index.d.ts +1 -0
- package/dist/types/src/controllers/data.d.ts +21 -0
- package/package.json +12 -7
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { NavigationEntry } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface DrawerNavigationGroupProps {
|
|
4
|
+
/**
|
|
5
|
+
* Group name to display in header
|
|
6
|
+
*/
|
|
7
|
+
group: string;
|
|
8
|
+
/**
|
|
9
|
+
* Navigation entries in this group
|
|
10
|
+
*/
|
|
11
|
+
entries: NavigationEntry[];
|
|
12
|
+
/**
|
|
13
|
+
* Whether the group is collapsed
|
|
14
|
+
*/
|
|
15
|
+
collapsed: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Callback when collapse state should toggle
|
|
18
|
+
*/
|
|
19
|
+
onToggleCollapsed: () => void;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the drawer is in open (expanded) state
|
|
22
|
+
*/
|
|
23
|
+
drawerOpen: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether tooltips should be shown (drawer closed + hovered)
|
|
26
|
+
*/
|
|
27
|
+
tooltipsOpen: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether admin menu is open (used to control tooltip visibility)
|
|
30
|
+
*/
|
|
31
|
+
adminMenuOpen?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Optional actions to render in the group header (e.g., "Add collection" button)
|
|
34
|
+
*/
|
|
35
|
+
headerActions?: React.ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Optional callback when a navigation item is clicked
|
|
38
|
+
*/
|
|
39
|
+
onItemClick?: (entry: NavigationEntry) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Hide the group header (title and expandable panel)
|
|
42
|
+
*/
|
|
43
|
+
hideHeader?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Shared drawer navigation group component used by both DefaultDrawer and RebaseCloudDrawer.
|
|
47
|
+
* Renders a collapsible group with header and navigation items.
|
|
48
|
+
*/
|
|
49
|
+
export declare function DrawerNavigationGroup({ group, entries, collapsed, onToggleCollapsed, drawerOpen, tooltipsOpen, adminMenuOpen, headerActions, onItemClick, hideHeader }: DrawerNavigationGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function DrawerNavigationItem({ name, icon, drawerOpen, adminMenuOpen, tooltipsOpen, url, onClick }: {
|
|
3
|
+
icon: React.ReactElement;
|
|
4
|
+
name: string;
|
|
5
|
+
tooltipsOpen: boolean;
|
|
6
|
+
drawerOpen: boolean;
|
|
7
|
+
adminMenuOpen?: boolean;
|
|
8
|
+
url: string;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import type { EntityAction } from "@rebasepro/types";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { CollectionSize, Entity, SelectionController } from "@rebasepro/types";
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param entity
|
|
8
|
+
* @param width
|
|
9
|
+
* @param frozen
|
|
10
|
+
* @param isSelected
|
|
11
|
+
* @param selectionEnabled
|
|
12
|
+
* @param size
|
|
13
|
+
* @param toggleEntitySelection
|
|
14
|
+
* @param hideId
|
|
15
|
+
*
|
|
16
|
+
* @group Collection components
|
|
17
|
+
*/
|
|
18
|
+
export declare const EntityCollectionRowActions: ({ entity, collection, path, width, frozen, isSelected, selectionEnabled, size, highlightEntity, onCollectionChange, unhighlightEntity, actions, hideId, selectionController, openEntityMode, sortableNodeRef, sortableStyle, sortableAttributes, isDragging, isDraggable }: {
|
|
19
|
+
entity: Entity<any>;
|
|
20
|
+
collection?: EntityCollection<any>;
|
|
21
|
+
path?: string;
|
|
22
|
+
width: number;
|
|
23
|
+
frozen?: boolean;
|
|
24
|
+
size: CollectionSize;
|
|
25
|
+
isSelected?: boolean;
|
|
26
|
+
selectionEnabled?: boolean;
|
|
27
|
+
actions?: EntityAction[];
|
|
28
|
+
hideId?: boolean;
|
|
29
|
+
onCollectionChange?: () => void;
|
|
30
|
+
selectionController?: SelectionController;
|
|
31
|
+
highlightEntity?: (entity: Entity<any>) => void;
|
|
32
|
+
unhighlightEntity?: (entity: Entity<any>) => void;
|
|
33
|
+
openEntityMode: "side_panel" | "full_screen" | "split" | "dialog";
|
|
34
|
+
sortableNodeRef?: (node: HTMLElement | null) => void;
|
|
35
|
+
sortableStyle?: React.CSSProperties;
|
|
36
|
+
sortableAttributes?: Record<string, any>;
|
|
37
|
+
isDragging?: boolean;
|
|
38
|
+
isDraggable?: boolean;
|
|
39
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { User } from "@rebasepro/types";
|
|
2
|
+
import { EntityCollectionTableProps } from "./EntityCollectionTableProps";
|
|
3
|
+
/**
|
|
4
|
+
* This component is in charge of rendering a collection table with a high
|
|
5
|
+
* degree of customization.
|
|
6
|
+
*
|
|
7
|
+
* This component is used internally by {@link EntityCollectionView} and
|
|
8
|
+
* {@link useReferenceDialog}
|
|
9
|
+
*
|
|
10
|
+
* Please note that you only need to use this component if you are building
|
|
11
|
+
* a custom view. If you just need to create a default view you can do it
|
|
12
|
+
* exclusively with config options.
|
|
13
|
+
*
|
|
14
|
+
* If you want to bind a {@link EntityCollection} to a table with the default
|
|
15
|
+
* options you see in collections in the top level navigation, you can
|
|
16
|
+
* check {@link EntityCollectionView}.
|
|
17
|
+
*
|
|
18
|
+
* The data displayed in the table is managed by a {@link EntityTableController}.
|
|
19
|
+
* You can build the default, bound to a path in the driver, by using the hook
|
|
20
|
+
* {@link useDataTableController}
|
|
21
|
+
*
|
|
22
|
+
* @see EntityCollectionTableProps
|
|
23
|
+
* @see EntityCollectionView
|
|
24
|
+
* @see VirtualTable
|
|
25
|
+
* @group Components
|
|
26
|
+
*/
|
|
27
|
+
export declare const EntityCollectionTable: <M extends Record<string, unknown> = any, USER extends User = any>({ className, style, fixedFilter, actionsStart, actions, viewModeToggle, title, tableRowActionsBuilder, uniqueFieldValidator, getPropertyFor, onValueChange, selectionController, highlightedEntities, onEntityClick, onColumnResize, initialScroll, onScroll, onSizeChanged, hoverRow, inlineEditing, additionalFields, displayedColumnIds, defaultSize, properties, tableController, filterable, sortable, endAdornment, AddColumnComponent, AdditionalHeaderWidget, additionalIDHeaderWidget, emptyComponent, getIdColumnWidth, enablePopupIcon, openEntityMode, onColumnsOrderChange, hideToolbar }: EntityCollectionTableProps<M>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { Properties } from "@rebasepro/types";
|
|
2
|
+
import type { AdditionalFieldDelegate } from "@rebasepro/types";
|
|
3
|
+
import type { Property } from "@rebasepro/types";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { CollectionSize, Entity, EntityTableController, FilterValues, SelectionController, User } from "@rebasepro/types";
|
|
6
|
+
import { OnCellValueChange, OnColumnResizeParams, UniqueFieldValidator } from "@rebasepro/core";
|
|
7
|
+
import { VirtualTableColumn } from "@rebasepro/ui";
|
|
8
|
+
/**
|
|
9
|
+
* @group Collection components
|
|
10
|
+
*/
|
|
11
|
+
export type EntityCollectionTableProps<M extends Record<string, unknown>, USER extends User = User> = {
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
/**
|
|
15
|
+
* Display these entities as selected
|
|
16
|
+
*/
|
|
17
|
+
selectionController: SelectionController<M>;
|
|
18
|
+
/**
|
|
19
|
+
* List of entities that will be displayed as selected;
|
|
20
|
+
*/
|
|
21
|
+
highlightedEntities?: Entity<M>[];
|
|
22
|
+
/**
|
|
23
|
+
* Override the title in the toolbar
|
|
24
|
+
*/
|
|
25
|
+
title?: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Additional component that renders actions such as buttons in the
|
|
28
|
+
* collection toolbar, displayed on the left side
|
|
29
|
+
*/
|
|
30
|
+
actionsStart?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Callback when a cell value changes.
|
|
33
|
+
*/
|
|
34
|
+
onValueChange?: OnCellValueChange<any, M>;
|
|
35
|
+
uniqueFieldValidator?: UniqueFieldValidator;
|
|
36
|
+
/**
|
|
37
|
+
* Builder for creating the buttons in each row
|
|
38
|
+
* @param entity
|
|
39
|
+
* @param size
|
|
40
|
+
*/
|
|
41
|
+
tableRowActionsBuilder?: (params: {
|
|
42
|
+
entity: Entity<M>;
|
|
43
|
+
size: CollectionSize;
|
|
44
|
+
width: number;
|
|
45
|
+
frozen?: boolean;
|
|
46
|
+
}) => React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Callback when anywhere on the table is clicked
|
|
49
|
+
*/
|
|
50
|
+
onEntityClick?(entity: Entity<M>): void;
|
|
51
|
+
/**
|
|
52
|
+
* Callback when a column is resized
|
|
53
|
+
*/
|
|
54
|
+
onColumnResize?(params: OnColumnResizeParams): void;
|
|
55
|
+
/**
|
|
56
|
+
* Initial scroll position
|
|
57
|
+
*/
|
|
58
|
+
initialScroll?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Callback when the table is scrolled
|
|
61
|
+
* @param props
|
|
62
|
+
*/
|
|
63
|
+
onScroll?: (props: {
|
|
64
|
+
scrollDirection: "forward" | "backward";
|
|
65
|
+
scrollOffset: number;
|
|
66
|
+
scrollUpdateWasRequested: boolean;
|
|
67
|
+
}) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Callback when the selected size of the table is changed
|
|
70
|
+
*/
|
|
71
|
+
onSizeChanged?(size: CollectionSize): void;
|
|
72
|
+
/**
|
|
73
|
+
* Should apply a different style to a row when hovering
|
|
74
|
+
*/
|
|
75
|
+
hoverRow?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Additional component that renders actions such as buttons in the
|
|
78
|
+
* collection toolbar, displayed on the right side
|
|
79
|
+
*/
|
|
80
|
+
actions?: React.ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* View mode toggle button, positioned left of the search bar.
|
|
83
|
+
*/
|
|
84
|
+
viewModeToggle?: React.ReactNode;
|
|
85
|
+
/**
|
|
86
|
+
* Controller holding the logic for the table
|
|
87
|
+
* {@link useDataTableController}
|
|
88
|
+
* {@link EntityTableController}
|
|
89
|
+
*/
|
|
90
|
+
tableController: EntityTableController<M>;
|
|
91
|
+
displayedColumnIds?: PropertyColumnConfig[];
|
|
92
|
+
fixedFilter?: FilterValues<Extract<keyof M, string>>;
|
|
93
|
+
inlineEditing?: boolean;
|
|
94
|
+
additionalFields?: AdditionalFieldDelegate<M, USER>[];
|
|
95
|
+
defaultSize?: CollectionSize;
|
|
96
|
+
properties: Properties;
|
|
97
|
+
getPropertyFor?: (props: GetPropertyForProps<M>) => Property | null;
|
|
98
|
+
filterable?: boolean;
|
|
99
|
+
sortable?: boolean;
|
|
100
|
+
endAdornment?: React.ReactNode;
|
|
101
|
+
AdditionalHeaderWidget?: React.ComponentType<{
|
|
102
|
+
property: Property;
|
|
103
|
+
propertyKey: string;
|
|
104
|
+
onHover: boolean;
|
|
105
|
+
}>;
|
|
106
|
+
AddColumnComponent?: React.ComponentType;
|
|
107
|
+
additionalIDHeaderWidget?: React.ReactNode;
|
|
108
|
+
emptyComponent?: React.ReactNode;
|
|
109
|
+
getIdColumnWidth?: () => number;
|
|
110
|
+
enablePopupIcon: boolean;
|
|
111
|
+
openEntityMode?: "side_panel" | "full_screen" | "split" | "dialog";
|
|
112
|
+
/**
|
|
113
|
+
* Callback when columns are reordered via drag-and-drop
|
|
114
|
+
*/
|
|
115
|
+
onColumnsOrderChange?: (columns: VirtualTableColumn[]) => void;
|
|
116
|
+
/**
|
|
117
|
+
* If true, the internal toolbar will not be rendered.
|
|
118
|
+
* Used when the parent component renders its own toolbar.
|
|
119
|
+
*/
|
|
120
|
+
hideToolbar?: boolean;
|
|
121
|
+
};
|
|
122
|
+
export type GetPropertyForProps<M extends Record<string, unknown>> = {
|
|
123
|
+
propertyKey: string;
|
|
124
|
+
entity: Entity<M>;
|
|
125
|
+
};
|
|
126
|
+
export type PropertyColumnConfig = {
|
|
127
|
+
key: string;
|
|
128
|
+
disabled?: boolean;
|
|
129
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Property } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Entity } from "@rebasepro/types";
|
|
4
|
+
import { CustomFieldValidator } from "../../form/validation";
|
|
5
|
+
export interface PropertyTableCellProps<T> {
|
|
6
|
+
propertyKey: string;
|
|
7
|
+
columnIndex: number;
|
|
8
|
+
align: "right" | "left" | "center";
|
|
9
|
+
customFieldValidator?: CustomFieldValidator;
|
|
10
|
+
value: T;
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
property: Property;
|
|
13
|
+
height: number;
|
|
14
|
+
width: number;
|
|
15
|
+
entity: Entity<any>;
|
|
16
|
+
path: string;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
enablePopupIcon?: boolean;
|
|
19
|
+
sortableNodeRef?: (node: HTMLElement | null) => void;
|
|
20
|
+
sortableStyle?: React.CSSProperties;
|
|
21
|
+
sortableAttributes?: Record<string, any>;
|
|
22
|
+
isDragging?: boolean;
|
|
23
|
+
isDraggable?: boolean;
|
|
24
|
+
frozen?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare const PropertyTableCell: React.FunctionComponent<PropertyTableCellProps<any>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Properties, Property } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FilterValues } from "@rebasepro/types";
|
|
4
|
+
import { VirtualTableColumn } from "@rebasepro/ui";
|
|
5
|
+
export declare function buildIdColumn(largeLayout?: boolean): VirtualTableColumn;
|
|
6
|
+
export interface PropertiesToColumnsParams<M extends Record<string, unknown>> {
|
|
7
|
+
properties: Properties;
|
|
8
|
+
sortable?: boolean;
|
|
9
|
+
fixedFilter?: FilterValues<keyof M extends string ? keyof M : never>;
|
|
10
|
+
AdditionalHeaderWidget?: React.ComponentType<{
|
|
11
|
+
property: Property;
|
|
12
|
+
propertyKey: string;
|
|
13
|
+
onHover: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
export declare function propertiesToColumns<M extends Record<string, unknown>>({ properties, sortable, fixedFilter, AdditionalHeaderWidget }: PropertiesToColumnsParams<M>): VirtualTableColumn[];
|
package/dist/admin/src/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CollectionSize, EntityRelation, FilterValues, Relation } from "@rebasepro/types";
|
|
4
|
+
type TableMultipleRelationFieldProps = {
|
|
5
|
+
name: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
internalValue: EntityRelation[] | undefined | null;
|
|
8
|
+
updateValue: (newValue: EntityRelation[] | null) => void;
|
|
9
|
+
size: CollectionSize;
|
|
10
|
+
previewProperties?: string[];
|
|
11
|
+
title?: string;
|
|
12
|
+
relation: Relation;
|
|
13
|
+
fixedFilter?: FilterValues<string>;
|
|
14
|
+
includeId?: boolean;
|
|
15
|
+
includeEntityLink?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare function TableMultipleRelationField(props: TableMultipleRelationFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const TableMultipleRelationFieldInternal: React.NamedExoticComponent<TableMultipleRelationFieldProps & {
|
|
19
|
+
collection: EntityCollection;
|
|
20
|
+
}>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CollectionSize, EntityReference, FilterValues } from "@rebasepro/types";
|
|
4
|
+
type TableReferenceFieldProps = {
|
|
5
|
+
name: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
internalValue: EntityReference | EntityReference[] | undefined | null;
|
|
8
|
+
updateValue: (newValue: (EntityReference | EntityReference[] | null)) => void;
|
|
9
|
+
size: CollectionSize;
|
|
10
|
+
multiselect: boolean;
|
|
11
|
+
previewProperties?: string[];
|
|
12
|
+
title?: string;
|
|
13
|
+
path: string;
|
|
14
|
+
fixedFilter?: FilterValues<string>;
|
|
15
|
+
includeId?: boolean;
|
|
16
|
+
includeEntityLink?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function TableReferenceField(props: TableReferenceFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const TableReferenceFieldInternal: React.NamedExoticComponent<TableReferenceFieldProps & {
|
|
20
|
+
collection: EntityCollection;
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CollectionSize, EntityRelation, FilterValues, Relation } from "@rebasepro/types";
|
|
4
|
+
type TableRelationFieldProps = {
|
|
5
|
+
name: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
internalValue: EntityRelation | EntityRelation[] | undefined | null;
|
|
8
|
+
updateValue: (newValue: (EntityRelation | EntityRelation[] | null)) => void;
|
|
9
|
+
size: CollectionSize;
|
|
10
|
+
multiselect: boolean;
|
|
11
|
+
previewProperties?: string[];
|
|
12
|
+
title?: string;
|
|
13
|
+
relation: Relation;
|
|
14
|
+
fixedFilter?: FilterValues<string>;
|
|
15
|
+
includeId?: boolean;
|
|
16
|
+
includeEntityLink?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function TableRelationField(props: TableRelationFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const TableRelationFieldInternal: React.NamedExoticComponent<TableRelationFieldProps & {
|
|
20
|
+
collection: EntityCollection;
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
package/dist/admin/src/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EntityRelation, FilterValues, Relation } from "@rebasepro/types";
|
|
2
|
+
interface RelationSelectorFieldProps {
|
|
3
|
+
/** Field name */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Whether the field is disabled */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** Current value - can be single EntityRelation or array for multiple selection */
|
|
8
|
+
internalValue: EntityRelation | EntityRelation[] | undefined | null;
|
|
9
|
+
/** Callback when value changes */
|
|
10
|
+
updateValue: (newValue: EntityRelation | EntityRelation[] | null) => void;
|
|
11
|
+
/** The relation configuration */
|
|
12
|
+
relation: Relation;
|
|
13
|
+
/** Force filter to be applied to the relation search */
|
|
14
|
+
fixedFilter?: FilterValues<string>;
|
|
15
|
+
/** Collection size for display */
|
|
16
|
+
size?: "small" | "medium";
|
|
17
|
+
}
|
|
18
|
+
/** Thin wrapper around RelationSelector for table cells */
|
|
19
|
+
export declare function TableRelationSelectorField({ disabled, internalValue, updateValue, relation, fixedFilter, size }: RelationSelectorFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ArrayProperty, StringProperty } from "@rebasepro/types";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Entity } from "@rebasepro/types";
|
|
4
|
+
import { PreviewSize } from "../../../types";
|
|
5
|
+
/**
|
|
6
|
+
* Field that allows to upload files to Google Cloud Storage.
|
|
7
|
+
*
|
|
8
|
+
* This is one of the internal components that get mapped natively inside forms
|
|
9
|
+
* and tables to the specified properties.
|
|
10
|
+
* @group Form fields
|
|
11
|
+
*/
|
|
12
|
+
export declare function TableStorageUpload(props: {
|
|
13
|
+
propertyKey: string;
|
|
14
|
+
error: Error | undefined;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
value: string | string[] | null;
|
|
17
|
+
updateValue: (newValue: (string | string[] | null)) => void;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
focused: boolean;
|
|
20
|
+
property: StringProperty | ArrayProperty;
|
|
21
|
+
entity: Entity<any>;
|
|
22
|
+
path: string;
|
|
23
|
+
previewSize: PreviewSize;
|
|
24
|
+
openPopup?: (cellRect?: DOMRect) => void;
|
|
25
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
interface TableStorageItemPreviewProps {
|
|
28
|
+
propertyKey: string;
|
|
29
|
+
property: StringProperty;
|
|
30
|
+
value: string;
|
|
31
|
+
size: PreviewSize;
|
|
32
|
+
entity: Entity<any>;
|
|
33
|
+
}
|
|
34
|
+
export declare function TableStorageItemPreview({ propertyKey, property, value, size, entity }: TableStorageItemPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function VirtualTableDateField(props: {
|
|
3
|
+
name: string;
|
|
4
|
+
error: Error | undefined;
|
|
5
|
+
mode?: "date" | "date_time";
|
|
6
|
+
timezone?: string;
|
|
7
|
+
internalValue: Date | undefined | null;
|
|
8
|
+
updateValue: (newValue: (Date | null)) => void;
|
|
9
|
+
focused: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function VirtualTableInput(props: {
|
|
2
|
+
error: Error | undefined;
|
|
3
|
+
value: string;
|
|
4
|
+
multiline: boolean;
|
|
5
|
+
focused: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
updateValue: (newValue: (string | null)) => void;
|
|
8
|
+
onBlur?: () => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function VirtualTableNumberInput(props: {
|
|
2
|
+
error: Error | undefined;
|
|
3
|
+
value: number;
|
|
4
|
+
align: "right" | "left" | "center";
|
|
5
|
+
updateValue: (newValue: (number | null)) => void;
|
|
6
|
+
focused: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnumValues } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare function VirtualTableSelect(props: {
|
|
4
|
+
name: string;
|
|
5
|
+
enumValues: EnumValues;
|
|
6
|
+
error: Error | undefined;
|
|
7
|
+
multiple: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
small: boolean;
|
|
10
|
+
internalValue: string | number | string[] | number[] | undefined;
|
|
11
|
+
valueType: "string" | "number";
|
|
12
|
+
updateValue: (newValue: (string | number | string[] | number[] | null)) => void;
|
|
13
|
+
focused: boolean;
|
|
14
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function VirtualTableUserSelect(props: {
|
|
3
|
+
name: string;
|
|
4
|
+
error: Error | undefined;
|
|
5
|
+
multiple: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
small: boolean;
|
|
8
|
+
internalValue: string | string[] | undefined;
|
|
9
|
+
updateValue: (newValue: (string | string[] | null)) => void;
|
|
10
|
+
focused: boolean;
|
|
11
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { EntityCollectionTable } from "./EntityCollectionTable";
|
|
2
|
+
export type { EntityCollectionTableProps } from "./EntityCollectionTableProps";
|
|
3
|
+
export * from "./PropertyTableCell";
|
|
4
|
+
export * from "./EntityCollectionRowActions";
|
|
5
|
+
export * from "./column_utils";
|
|
6
|
+
export { VirtualTableInput } from "./fields/VirtualTableInput";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface CollectionTableToolbarProps {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
actionsStart?: React.ReactNode;
|
|
5
|
+
actions?: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* View mode toggle button, positioned left of the search bar.
|
|
8
|
+
*/
|
|
9
|
+
viewModeToggle?: React.ReactNode;
|
|
10
|
+
title?: React.ReactNode;
|
|
11
|
+
onTextSearch?: (searchString?: string) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Initial search string to pre-populate the search bar (e.g. from URL params).
|
|
14
|
+
*/
|
|
15
|
+
initialSearchText?: string;
|
|
16
|
+
/**
|
|
17
|
+
* When true the toolbar is in "compact" mode for the split-view left panel.
|
|
18
|
+
* - Search bar, loading spinner, and view-mode toggle are hidden.
|
|
19
|
+
* - Secondary actions remain inline (displayed horizontally).
|
|
20
|
+
* - Only `actionsStart` (filters) and the add button (last child of `actions`) remain visible.
|
|
21
|
+
*/
|
|
22
|
+
compact?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function CollectionTableToolbar({ actions, actionsStart, loading, onTextSearch, title, viewModeToggle, initialSearchText, compact }: CollectionTableToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableSize } from "@rebasepro/core";
|
|
3
|
+
interface EntityTableCellProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
actions?: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* The value is used only to check changes and force re-renders
|
|
8
|
+
*/
|
|
9
|
+
value?: any;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
savedTimestamp?: number;
|
|
12
|
+
error?: Error;
|
|
13
|
+
allowScroll?: boolean;
|
|
14
|
+
align: "right" | "left" | "center";
|
|
15
|
+
size: TableSize;
|
|
16
|
+
disabledTooltip?: string;
|
|
17
|
+
width: number;
|
|
18
|
+
showExpandIcon?: boolean;
|
|
19
|
+
removePadding?: boolean;
|
|
20
|
+
fullHeight?: boolean;
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
hideOverflow?: boolean;
|
|
23
|
+
onSelect?: (cellRect: DOMRect | undefined) => void;
|
|
24
|
+
sortableNodeRef?: (node: HTMLElement | null) => void;
|
|
25
|
+
sortableStyle?: React.CSSProperties;
|
|
26
|
+
sortableAttributes?: Record<string, any>;
|
|
27
|
+
isDragging?: boolean;
|
|
28
|
+
isDraggable?: boolean;
|
|
29
|
+
frozen?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const EntityTableCell: React.FunctionComponent<EntityTableCellProps>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface EntityTableCellActionsProps {
|
|
2
|
+
showError: false | Error | undefined;
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
showExpandIcon: boolean | undefined;
|
|
5
|
+
selected: boolean | undefined;
|
|
6
|
+
openPopup?: (cellRect: DOMRect | undefined) => void;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function EntityTableCellActions({ showError, disabled, showExpandIcon, selected, openPopup, children }: EntityTableCellActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import type { Property } from "@rebasepro/types";
|
|
3
|
+
export declare function getTableCellAlignment(property: Property): "right" | "left" | "center";
|
|
4
|
+
export declare function getTablePropertyColumnWidth(property: Property): number;
|
|
5
|
+
export declare function getSubcollectionColumnId(collection: EntityCollection): string;
|
package/dist/admin/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import { Entity } from "@rebasepro/types";
|
|
3
|
+
import { CustomFieldValidator } from "../../../../form/validation";
|
|
4
|
+
import type { OnCellValueChangeParams } from "@rebasepro/core";
|
|
5
|
+
interface PopupFormFieldProps<M extends Record<string, unknown>> {
|
|
6
|
+
customFieldValidator?: CustomFieldValidator;
|
|
7
|
+
path: string;
|
|
8
|
+
entityId: string | number;
|
|
9
|
+
tableKey: string;
|
|
10
|
+
propertyKey?: Extract<keyof M, string>;
|
|
11
|
+
collection?: EntityCollection<any>;
|
|
12
|
+
cellRect?: DOMRect;
|
|
13
|
+
open: boolean;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
container: HTMLElement | null;
|
|
16
|
+
/**
|
|
17
|
+
* Callback when the value of a cell has been edited
|
|
18
|
+
* @param params
|
|
19
|
+
*/
|
|
20
|
+
onCellValueChange?: (params: OnCellValueChangeParams<any, any>) => Promise<void> | void;
|
|
21
|
+
}
|
|
22
|
+
export declare function PopupFormField<M extends Record<string, unknown>>(props: PopupFormFieldProps<M>): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
export declare function PopupFormFieldLoading<M extends Record<string, unknown>>({ tableKey, entityId, customFieldValidator, propertyKey, collection: inputCollection, path, cellRect, open, onClose, onCellValueChange, container }: PopupFormFieldProps<M>): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
export declare function PopupFormFieldInternal<M extends Record<string, unknown>>({ tableKey, entityId, customFieldValidator, propertyKey, collection, path, cellRect, open, onClose, onCellValueChange, container, entity }: PopupFormFieldProps<M> & {
|
|
25
|
+
entity?: Entity<M>;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
package/dist/admin/src/components/EntityCollectionTable/internal/popup_field/useDraggable.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DraggableProps {
|
|
3
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
4
|
+
innerRef: React.RefObject<HTMLDivElement | null>;
|
|
5
|
+
x?: number;
|
|
6
|
+
y?: number;
|
|
7
|
+
onMove: (params: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function useDraggable({ containerRef, innerRef, x, y, onMove }: DraggableProps): void;
|
|
13
|
+
export {};
|