@rebasepro/admin 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -0
- package/dist/CollectionEditorDialog-jA-PLh6N.js +3549 -0
- package/dist/CollectionEditorDialog-jA-PLh6N.js.map +1 -0
- package/dist/CollectionsStudioView-UKouBPOm.js +170 -0
- package/dist/CollectionsStudioView-UKouBPOm.js.map +1 -0
- package/dist/PropertyEditView-DEUddmg_.js +3660 -0
- package/dist/PropertyEditView-DEUddmg_.js.map +1 -0
- package/dist/collection_editor/ConfigControllerProvider.d.ts +2 -2
- package/dist/collection_editor/ui/AddKanbanColumnAction.d.ts +2 -1
- package/dist/collection_editor/ui/CollectionViewHeaderAction.d.ts +2 -1
- package/dist/collection_editor/ui/EditorCollectionAction.d.ts +1 -1
- package/dist/collection_editor/ui/EditorCollectionActionStart.d.ts +1 -1
- package/dist/collection_editor/ui/EditorEntityAction.d.ts +1 -1
- package/dist/collection_editor/ui/HomePageEditorCollectionAction.d.ts +1 -1
- package/dist/collection_editor/ui/KanbanSetupAction.d.ts +2 -1
- package/dist/collection_editor/ui/MissingReferenceWidget.d.ts +1 -1
- package/dist/collection_editor/ui/NewCollectionButton.d.ts +1 -1
- package/dist/collection_editor/ui/NewCollectionCard.d.ts +1 -1
- package/dist/collection_editor/ui/PropertyAddColumnComponent.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/AIModifiedPathsContext.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/CollectionDetailsForm.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +2 -2
- package/dist/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.d.ts +2 -2
- package/dist/collection_editor/ui/collection_editor/CollectionJsonImportDialog.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/CollectionRLSTab.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/CollectionRelationsTab.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/CollectionStudioView.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/CollectionYupValidation.d.ts +1 -9
- package/dist/collection_editor/ui/collection_editor/CollectionsStudioView.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/DisplaySettingsForm.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/EntityActionsEditTab.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/EntityActionsSelectDialog.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/EntityCustomViewsSelectDialog.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/EnumForm.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/GetCodeDialog.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/KanbanConfigSection.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/LayoutModeSwitch.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/PropertyEditView.d.ts +4 -3
- package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.d.ts +2 -2
- package/dist/collection_editor/ui/collection_editor/PropertyTree.d.ts +2 -2
- package/dist/collection_editor/ui/collection_editor/SubcollectionsEditTab.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/SwitchControl.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/ViewModeSwitch.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.d.ts +3 -2
- package/dist/collection_editor/ui/collection_editor/properties/BlockPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/BooleanPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/DateTimePropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/EnumPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/KeyValuePropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/MapPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/NumberPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/ReferencePropertyField.d.ts +3 -2
- package/dist/collection_editor/ui/collection_editor/properties/RelationPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/RepeatPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/StoragePropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/StringPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/UrlPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/VectorPropertyField.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/conditions/ConditionsEditor.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/conditions/ConditionsPanel.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/properties/conditions/EnumConditionsEditor.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.d.ts +2 -1
- package/dist/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/templates/blog_template.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/templates/pages_template.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/templates/products_template.d.ts +1 -1
- package/dist/collection_editor/ui/collection_editor/templates/users_template.d.ts +1 -1
- package/dist/collection_editor_ui.js +4 -11
- package/dist/components/ArrayContainer.d.ts +3 -3
- package/dist/components/ClearFilterSortButton.d.ts +1 -1
- package/dist/components/CollectionEditorDialogs.d.ts +2 -1
- package/dist/components/CollectionPanel.d.ts +2 -27
- package/dist/components/DefaultAppBar.d.ts +1 -1
- package/dist/components/DefaultDrawer.d.ts +4 -4
- package/dist/components/DeleteEntityDialog.d.ts +2 -1
- package/dist/components/DrawerNavigationGroup.d.ts +1 -1
- package/dist/components/DrawerNavigationItem.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +2 -1
- package/dist/components/EntityCollectionTable/fields/TableMultipleRelationField.d.ts +3 -3
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +3 -3
- package/dist/components/EntityCollectionTable/fields/TableRelationField.d.ts +3 -3
- package/dist/components/EntityCollectionTable/fields/TableRelationSelectorField.d.ts +2 -1
- package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +2 -2
- package/dist/components/EntityCollectionTable/fields/VirtualTableDateField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/VirtualTableInput.d.ts +2 -1
- package/dist/components/EntityCollectionTable/fields/VirtualTableNumberInput.d.ts +2 -1
- package/dist/components/EntityCollectionTable/fields/VirtualTableSelect.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/VirtualTableSwitch.d.ts +2 -1
- package/dist/components/EntityCollectionTable/fields/VirtualTableUserSelect.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/EntityTableCellActions.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +4 -3
- package/dist/components/EntityCollectionView/Board.d.ts +2 -1
- package/dist/components/EntityCollectionView/BoardColumnTitle.d.ts +1 -1
- package/dist/components/EntityCollectionView/BoardSortableList.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCard.d.ts +2 -1
- package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionCardView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionListView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +0 -24
- package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +2 -1
- package/dist/components/EntityCollectionView/FilterPresetsButton.d.ts +2 -1
- package/dist/components/EntityCollectionView/FiltersDialog.d.ts +2 -1
- package/dist/components/EntityCollectionView/SplitListView.d.ts +1 -1
- package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +2 -1
- package/dist/components/EntityDetailView.d.ts +1 -1
- package/dist/components/EntityEditView.d.ts +2 -2
- package/dist/components/EntityEditViewFormActions.d.ts +2 -1
- package/dist/components/EntityJsonPreview.d.ts +2 -1
- package/dist/components/EntityPreview.d.ts +3 -3
- package/dist/components/EntitySidePanel.d.ts +2 -1
- package/dist/components/EntityView.d.ts +2 -1
- package/dist/components/FieldCaption.d.ts +1 -1
- package/dist/components/HomePage/ContentHomePage.d.ts +1 -1
- package/dist/components/HomePage/FavouritesView.d.ts +1 -1
- package/dist/components/HomePage/HomePageDnD.d.ts +4 -4
- package/dist/components/HomePage/NavigationCard.d.ts +1 -1
- package/dist/components/HomePage/NavigationCardBinding.d.ts +2 -1
- package/dist/components/HomePage/NavigationGroup.d.ts +2 -2
- package/dist/components/HomePage/RenameGroupDialog.d.ts +2 -1
- package/dist/components/HomePage/SmallNavigationCard.d.ts +1 -1
- package/dist/components/PropertyCollectionView.d.ts +2 -1
- package/dist/components/PropertyIdCopyTooltip.d.ts +2 -2
- package/dist/components/RebaseAuthGate.d.ts +1 -1
- package/dist/components/RebaseLayout.d.ts +1 -1
- package/dist/components/RebaseNavigation.d.ts +1 -1
- package/dist/components/RebaseRouteDefs.d.ts +1 -1
- package/dist/components/RebaseShell.d.ts +1 -1
- package/dist/components/ReferenceTable/EntitySelectionTable.d.ts +1 -1
- package/dist/components/ReferenceWidget.d.ts +2 -1
- package/dist/components/SearchIconsView.d.ts +2 -1
- package/dist/components/SelectableTable/SelectableTable.d.ts +2 -2
- package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/RelationFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +2 -1
- package/dist/components/SideDialogs.d.ts +1 -1
- package/dist/components/SideEntityProvider.d.ts +1 -1
- package/dist/components/admin/CreationResultDialog.d.ts +2 -1
- package/dist/components/app/AppBar.d.ts +1 -1
- package/dist/components/app/Drawer.d.ts +1 -1
- package/dist/components/common/default_entity_actions.d.ts +2 -1
- package/dist/components/history/EntityHistoryEntry.d.ts +1 -1
- package/dist/components/history/EntityHistoryView.d.ts +1 -1
- package/dist/components/history/LastEditedByFormAction.d.ts +2 -1
- package/dist/components/history/LastEditedByIndicator.d.ts +2 -1
- package/dist/components/history/UserChip.d.ts +1 -1
- package/dist/data_export/export/BasicExportAction.d.ts +2 -1
- package/dist/data_export/export/ExportCollectionAction.d.ts +1 -1
- package/dist/data_import/components/DataNewPropertiesMapping.d.ts +1 -1
- package/dist/data_import/components/ImportFileUpload.d.ts +1 -1
- package/dist/data_import/components/ImportNewPropertyFieldPreview.d.ts +2 -1
- package/dist/data_import/components/ImportSaveInProgress.d.ts +1 -1
- package/dist/data_import/import/ImportCollectionAction.d.ts +4 -3
- package/dist/editor/components/SlashCommandMenu.d.ts +2 -1
- package/dist/editor/editor.d.ts +1 -1
- package/dist/editor/selectors/color-selector.d.ts +1 -1
- package/dist/editor/selectors/link-selector.d.ts +1 -1
- package/dist/editor/selectors/node-selector.d.ts +1 -1
- package/dist/editor/selectors/text-buttons.d.ts +1 -1
- package/dist/editor.js +2621 -3574
- package/dist/editor.js.map +1 -1
- package/dist/form/EntityForm.d.ts +2 -1
- package/dist/form/EntityFormActions.d.ts +2 -1
- package/dist/form/components/FieldHelperText.d.ts +1 -1
- package/dist/form/components/FormEntry.d.ts +1 -1
- package/dist/form/components/FormLayout.d.ts +1 -1
- package/dist/form/components/LabelWithIconAndTooltip.d.ts +1 -1
- package/dist/form/components/LocalChangesMenu.d.ts +2 -1
- package/dist/form/components/StorageItemPreview.d.ts +2 -1
- package/dist/form/components/StorageUploadProgress.d.ts +2 -1
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/BlockFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/MapFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/MultipleRelationFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/RelationFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/RepeatFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/SelectFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +3 -2
- package/dist/form/field_bindings/SwitchFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/TextFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/VectorFieldBinding.d.ts +2 -1
- package/dist/history-BL49TIDb.js +311 -0
- package/dist/history-BL49TIDb.js.map +1 -0
- package/dist/hooks/navigation/useBuildNavigationStateController.d.ts +0 -2
- package/dist/hooks/navigation/useNavigationResolution.d.ts +5 -6
- package/dist/hooks/navigation/useResolvedCollections.d.ts +0 -2
- package/dist/hooks/useBreadcrumbsController.d.ts +2 -32
- package/dist/index.js +2 -3393
- package/dist/markdown-CklalUUk.js +526 -0
- package/dist/markdown-CklalUUk.js.map +1 -0
- package/dist/preview/components/ArrayEnumPreview.d.ts +2 -1
- package/dist/preview/components/EmptyValue.d.ts +2 -1
- package/dist/preview/components/EnumValuesChip.d.ts +1 -1
- package/dist/preview/components/ImagePreview.d.ts +2 -1
- package/dist/preview/components/ReferencePreview.d.ts +2 -1
- package/dist/preview/components/RelationPreview.d.ts +2 -1
- package/dist/preview/components/StorageThumbnail.d.ts +1 -1
- package/dist/preview/components/UserPreview.d.ts +6 -3
- package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfRelationsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +2 -1
- package/dist/preview/property_previews/MapPropertyPreview.d.ts +3 -2
- package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +5 -4
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/routes/RebaseRoute.d.ts +1 -1
- package/dist/src-BJ8fkM8y.js +24010 -0
- package/dist/src-BJ8fkM8y.js.map +1 -0
- package/dist/types/components/PropertyPreviewProps.d.ts +4 -0
- package/dist/types/components/formex.d.ts +1 -40
- package/dist/types/fields.d.ts +9 -1
- package/dist/util/navigation_utils.d.ts +2 -1
- package/dist/util/previews.d.ts +5 -0
- package/dist/util/property_utils.d.ts +1 -1
- package/package.json +29 -27
- package/src/collection_editor/ConfigControllerProvider.tsx +10 -7
- package/src/collection_editor/ui/CollectionViewHeaderAction.tsx +2 -1
- package/src/collection_editor/ui/EditorCollectionAction.tsx +2 -1
- package/src/collection_editor/ui/EditorCollectionActionStart.tsx +2 -1
- package/src/collection_editor/ui/EditorEntityAction.tsx +2 -1
- package/src/collection_editor/ui/KanbanSetupAction.tsx +2 -1
- package/src/collection_editor/ui/MissingReferenceWidget.tsx +2 -1
- package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +2 -1
- package/src/collection_editor/ui/collection_editor/CollectionDetailsForm.tsx +2 -3
- package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +0 -1
- package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +8 -4
- package/src/collection_editor/ui/collection_editor/CollectionRelationsTab.tsx +2 -2
- package/src/collection_editor/ui/collection_editor/DisplaySettingsForm.tsx +2 -1
- package/src/collection_editor/ui/collection_editor/PropertyEditView.tsx +2 -1
- package/src/collection_editor/ui/collection_editor/PropertyFieldPreview.tsx +2 -2
- package/src/collection_editor/ui/collection_editor/properties/RelationPropertyField.tsx +5 -2
- package/src/collection_editor/ui/collection_editor/properties/conditions/ConditionsEditor.tsx +2 -1
- package/src/collection_editor/ui/collection_editor/properties/conditions/EnumConditionsEditor.tsx +1 -1
- package/src/collection_editor/ui/collection_editor/templates/blog_template.ts +1 -1
- package/src/collection_editor/ui/collection_editor/templates/pages_template.ts +1 -1
- package/src/collection_editor/ui/collection_editor/templates/products_template.ts +1 -1
- package/src/collection_editor/ui/collection_editor/templates/users_template.ts +1 -1
- package/src/collection_editor/useLocalCollectionsConfigController.tsx +7 -2
- package/src/collection_editor/validateCollectionJson.ts +2 -2
- package/src/components/CollectionPanel.tsx +51 -25
- package/src/components/DefaultAppBar.tsx +1 -2
- package/src/components/DefaultDrawer.tsx +3 -2
- package/src/components/DrawerNavigationGroup.tsx +3 -2
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +30 -9
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +1 -0
- package/src/components/EntityCollectionTable/internal/popup_field/useDraggable.tsx +5 -2
- package/src/components/EntityCollectionView/Board.tsx +10 -8
- package/src/components/EntityCollectionView/BoardSortableList.tsx +2 -2
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +4 -2
- package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +14 -4
- package/src/components/EntityCollectionView/EntityCollectionListView.tsx +48 -26
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +146 -73
- package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +2 -1
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +3 -2
- package/src/components/EntityCollectionView/FilterPresetsButton.tsx +4 -2
- package/src/components/EntityCollectionView/ViewModeToggle.tsx +0 -1
- package/src/components/EntityCollectionView/useBoardDataController.tsx +17 -15
- package/src/components/EntityCollectionView/useEntityPreviewSlots.ts +32 -23
- package/src/components/EntityDetailView.tsx +72 -39
- package/src/components/EntityEditView.tsx +79 -47
- package/src/components/EntitySidePanel.tsx +9 -3
- package/src/components/HomePage/ContentHomePage.tsx +3 -3
- package/src/components/HomePage/NavigationCard.tsx +5 -5
- package/src/components/HomePage/NavigationCardBinding.tsx +1 -1
- package/src/components/RebaseLayout.tsx +5 -2
- package/src/components/RebaseNavigation.tsx +1 -4
- package/src/components/RebaseRouteDefs.tsx +5 -3
- package/src/components/SearchIconsView.tsx +1 -1
- package/src/components/SelectableTable/SelectableTable.tsx +2 -3
- package/src/components/SelectableTable/SelectionStore.ts +9 -3
- package/src/components/UserSelector.tsx +92 -2
- package/src/components/common/default_entity_actions.tsx +23 -6
- package/src/components/field_configs.tsx +6 -3
- package/src/editor/editor.tsx +1 -1
- package/src/editor/extensions/Image/index.ts +2 -2
- package/src/editor/extensions/Image.ts +2 -2
- package/src/editor/extensions/clipboard.ts +2 -2
- package/src/editor/markdown-it-plugins.d.ts +24 -0
- package/src/editor/markdown.ts +2 -3
- package/src/form/EntityForm.tsx +21 -15
- package/src/form/PropertyFieldBinding.tsx +1 -1
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +1 -1
- package/src/form/field_bindings/MapFieldBinding.tsx +5 -47
- package/src/form/field_bindings/VectorFieldBinding.tsx +3 -3
- package/src/form/validation.ts +17 -15
- package/src/hooks/navigation/useBuildNavigationStateController.tsx +3 -6
- package/src/hooks/navigation/useNavigationResolution.ts +143 -19
- package/src/hooks/navigation/useResolvedCollections.ts +4 -6
- package/src/hooks/useBreadcrumbsController.tsx +2 -34
- package/src/hooks/useBuildSideEntityController.tsx +25 -3
- package/src/preview/PropertyPreview.tsx +6 -2
- package/src/preview/components/ReferencePreview.tsx +64 -13
- package/src/preview/components/RelationPreview.tsx +101 -13
- package/src/preview/components/UserPreview.tsx +5 -14
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +1 -1
- package/src/routes/RebaseRoute.tsx +5 -4
- package/src/types/components/PropertyPreviewProps.tsx +5 -0
- package/src/types/components/formex.tsx +1 -45
- package/src/types/fields.tsx +10 -1
- package/src/util/navigation_utils.ts +14 -4
- package/src/util/previews.ts +101 -4
- package/dist/CollectionEditorDialog-Bo86h-d-.js +0 -4574
- package/dist/CollectionEditorDialog-Bo86h-d-.js.map +0 -1
- package/dist/CollectionsStudioView-bsg4AT_Z.js +0 -217
- package/dist/CollectionsStudioView-bsg4AT_Z.js.map +0 -1
- package/dist/ExportCollectionAction-Cf-Id5uO.js +0 -446
- package/dist/ExportCollectionAction-Cf-Id5uO.js.map +0 -1
- package/dist/ImportCollectionAction-LN5sreK9.js +0 -685
- package/dist/ImportCollectionAction-LN5sreK9.js.map +0 -1
- package/dist/PropertyEditView-jCWCxmCz.js +0 -8197
- package/dist/PropertyEditView-jCWCxmCz.js.map +0 -1
- package/dist/collection_editor_ui.js.map +0 -1
- package/dist/index-BrqSvMG0.js +0 -8
- package/dist/index-BrqSvMG0.js.map +0 -1
- package/dist/index-Cb0bPnzZ.js +0 -12
- package/dist/index-Cb0bPnzZ.js.map +0 -1
- package/dist/index-z3H8iqsj.js +0 -462
- package/dist/index-z3H8iqsj.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/markdown-DD2JDU1X.js +0 -618
- package/dist/markdown-DD2JDU1X.js.map +0 -1
- package/dist/useEntityHistory-UVsSclfZ.js +0 -123
- package/dist/useEntityHistory-UVsSclfZ.js.map +0 -1
- package/dist/util-CvNp6A-r.js +0 -30505
- package/dist/util-CvNp6A-r.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export declare function StringPropertyValidation({ length, lowercase, matches, max, min, trim, uppercase, disabled, showErrors }: {
|
|
2
3
|
length?: boolean;
|
|
3
4
|
min?: boolean;
|
|
@@ -8,4 +9,4 @@ export declare function StringPropertyValidation({ length, lowercase, matches, m
|
|
|
8
9
|
uppercase?: boolean;
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
showErrors: boolean;
|
|
11
|
-
}):
|
|
12
|
+
}): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityCollection } from "@rebasepro/types";
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
2
|
export declare const blogCollectionTemplate: EntityCollection;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityCollection } from "@rebasepro/types";
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
2
|
export declare const pagesCollectionTemplate: EntityCollection;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityCollection } from "@rebasepro/types";
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
2
|
export declare const productsCollectionTemplate: EntityCollection;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityCollection } from "@rebasepro/types";
|
|
1
|
+
import type { EntityCollection } from "@rebasepro/types";
|
|
2
2
|
export declare const usersCollectionTemplate: EntityCollection;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { CollectionEditorDialog } from "./CollectionEditorDialog-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
CollectionEditorDialog,
|
|
6
|
-
C as CollectionStudioView,
|
|
7
|
-
a2 as CollectionsStudioView,
|
|
8
|
-
a as PropertyForm,
|
|
9
|
-
b as PropertyFormDialog
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=collection_editor_ui.js.map
|
|
1
|
+
import { n as CollectionEditorDialog } from "./CollectionEditorDialog-jA-PLh6N.js";
|
|
2
|
+
import { n as PropertyForm, r as PropertyFormDialog } from "./PropertyEditView-DEUddmg_.js";
|
|
3
|
+
import { r as CollectionStudioView, t as CollectionsStudioView } from "./CollectionsStudioView-UKouBPOm.js";
|
|
4
|
+
export { CollectionEditorDialog, CollectionStudioView, CollectionsStudioView, PropertyForm, PropertyFormDialog };
|
|
@@ -41,7 +41,7 @@ type ArrayContainerItemProps = {
|
|
|
41
41
|
storedProps?: object;
|
|
42
42
|
updateItemCustomProps: (internalId: number, props: object) => void;
|
|
43
43
|
};
|
|
44
|
-
export declare function ArrayContainerItem({ nodeRef, style, dragHandleProps, index, internalId, size, disabled, buildEntry, remove, copy, addInIndex, canAddElements, sortable, isDragging, storedProps, updateItemCustomProps }: ArrayContainerItemProps):
|
|
44
|
+
export declare function ArrayContainerItem({ nodeRef, style, dragHandleProps, index, internalId, size, disabled, buildEntry, remove, copy, addInIndex, canAddElements, sortable, isDragging, storedProps, updateItemCustomProps }: ArrayContainerItemProps): React.JSX.Element;
|
|
45
45
|
export declare function ArrayItemOptions({ dragHandleProps, direction, disabled, remove, index, copy, canAddElements, sortable, addInIndex }: {
|
|
46
46
|
dragHandleProps: Record<string, unknown>;
|
|
47
47
|
direction?: "row" | "column";
|
|
@@ -52,7 +52,7 @@ export declare function ArrayItemOptions({ dragHandleProps, direction, disabled,
|
|
|
52
52
|
sortable: boolean;
|
|
53
53
|
canAddElements?: boolean;
|
|
54
54
|
addInIndex?: (index: number) => void;
|
|
55
|
-
}):
|
|
56
|
-
export declare function ArrayContainer<T>({ droppableId, addLabel, value, disabled, buildEntry, size, onInternalIdAdded, canAddElements: canAddElementsProp, sortable, newDefaultEntry, onValueChange, className, min, max }: ArrayContainerProps<T>):
|
|
55
|
+
}): React.JSX.Element;
|
|
56
|
+
export declare function ArrayContainer<T>({ droppableId, addLabel, value, disabled, buildEntry, size, onInternalIdAdded, canAddElements: canAddElementsProp, sortable, newDefaultEntry, onValueChange, className, min, max }: ArrayContainerProps<T>): React.JSX.Element;
|
|
57
57
|
export declare function getRandomId(): number;
|
|
58
58
|
export {};
|
|
@@ -2,4 +2,4 @@ import { EntityTableController } from "@rebasepro/types";
|
|
|
2
2
|
export declare function ClearFilterSortButton({ tableController, enabled }: {
|
|
3
3
|
enabled: boolean;
|
|
4
4
|
tableController: EntityTableController;
|
|
5
|
-
}): import("react
|
|
5
|
+
}): import("react").JSX.Element | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
/**
|
|
2
3
|
* Renders the CollectionEditorDialog and PropertyFormDialog inside
|
|
3
4
|
* the RebaseShell tree where CMS-internal contexts
|
|
@@ -12,4 +13,4 @@
|
|
|
12
13
|
* (a root-scope plugin provider that wraps the shell) and exposed via
|
|
13
14
|
* CollectionEditorDialogsContext.
|
|
14
15
|
*/
|
|
15
|
-
export declare function CollectionEditorDialogs():
|
|
16
|
+
export declare function CollectionEditorDialogs(): React.JSX.Element | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EntityCollection, ViewMode } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
2
3
|
/**
|
|
3
4
|
* Props for the {@link CollectionPanel} component.
|
|
4
5
|
*
|
|
@@ -54,30 +55,4 @@ export type CollectionPanelProps = {
|
|
|
54
55
|
*/
|
|
55
56
|
collectionOverrides?: Partial<EntityCollection>;
|
|
56
57
|
};
|
|
57
|
-
|
|
58
|
-
* A high-level, reusable wrapper for embedding a Rebase collection view
|
|
59
|
-
* inside custom pages (dashboards, home pages, entity detail views, etc.).
|
|
60
|
-
*
|
|
61
|
-
* Usage:
|
|
62
|
-
* ```tsx
|
|
63
|
-
* import { CollectionPanel } from "@rebasepro/admin";
|
|
64
|
-
*
|
|
65
|
-
* function MyDashboard() {
|
|
66
|
-
* return (
|
|
67
|
-
* <div>
|
|
68
|
-
* <CollectionPanel path="tasks" title="Pending Tasks" />
|
|
69
|
-
* <CollectionPanel
|
|
70
|
-
* path="clients"
|
|
71
|
-
* viewMode="table"
|
|
72
|
-
* collectionOverrides={{
|
|
73
|
-
* defaultFilter: { status: ["!=", "completed"] }
|
|
74
|
-
* }}
|
|
75
|
-
* />
|
|
76
|
-
* </div>
|
|
77
|
-
* );
|
|
78
|
-
* }
|
|
79
|
-
* ```
|
|
80
|
-
*
|
|
81
|
-
* @group Components
|
|
82
|
-
*/
|
|
83
|
-
export declare function CollectionPanel({ path, title, viewMode, sort, limit, updateUrl, openEntityMode, className, collectionOverrides }: CollectionPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare function CollectionPanel(props: CollectionPanelProps): React.JSX.Element;
|
|
@@ -43,4 +43,4 @@ export type DefaultAppBarProps<ADDITIONAL_PROPS = object> = {
|
|
|
43
43
|
*
|
|
44
44
|
|
|
45
45
|
*/
|
|
46
|
-
export declare const DefaultAppBar: ({ title, endAdornment, startAdornment, dropDownActions, includeModeToggle, includeLanguageToggle, includeUserMenu, className, style, user: userProp, logo: logoProp }: DefaultAppBarProps) =>
|
|
46
|
+
export declare const DefaultAppBar: ({ title, endAdornment, startAdornment, dropDownActions, includeModeToggle, includeLanguageToggle, includeUserMenu, className, style, user: userProp, logo: logoProp }: DefaultAppBarProps) => React.JSX.Element;
|
|
@@ -33,14 +33,14 @@ export declare function DefaultDrawer({ title, logo, logoDestination, children,
|
|
|
33
33
|
footerActions?: React.ReactNode | null;
|
|
34
34
|
className?: string;
|
|
35
35
|
style?: React.CSSProperties;
|
|
36
|
-
}):
|
|
36
|
+
}): React.JSX.Element;
|
|
37
37
|
export declare function DrawerLogo({ logo, title, logoDestination, drawerOpen, drawerHovered }: {
|
|
38
38
|
logo?: string;
|
|
39
39
|
title?: React.ReactNode;
|
|
40
40
|
logoDestination?: string;
|
|
41
41
|
drawerOpen: boolean;
|
|
42
42
|
drawerHovered: boolean;
|
|
43
|
-
}):
|
|
43
|
+
}): React.JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* Toggle button at the bottom of the drawer.
|
|
46
46
|
* Uses double-chevron icons to indicate collapse/expand direction.
|
|
@@ -50,7 +50,7 @@ export declare function DrawerToggle({ drawerOpen, drawerHovered, openDrawer, cl
|
|
|
50
50
|
drawerHovered: boolean;
|
|
51
51
|
openDrawer: () => void;
|
|
52
52
|
closeDrawer: () => void;
|
|
53
|
-
}):
|
|
53
|
+
}): React.JSX.Element;
|
|
54
54
|
/**
|
|
55
55
|
* Footer actions rendered at the bottom of the drawer, above the collapse/expand toggle.
|
|
56
56
|
* Replaces the app bar icons (language, theme, user avatar) with a drawer-native layout
|
|
@@ -74,4 +74,4 @@ user: userProp }: {
|
|
|
74
74
|
drawerHovered: boolean;
|
|
75
75
|
dropDownActions?: React.ReactNode;
|
|
76
76
|
user?: import("@rebasepro/types").User;
|
|
77
|
-
}):
|
|
77
|
+
}): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EntityCollection } from "@rebasepro/types";
|
|
2
2
|
import { Entity, EntityCallbacks } from "@rebasepro/types";
|
|
3
|
+
import React from "react";
|
|
3
4
|
export interface DeleteEntityDialogProps<M extends Record<string, unknown>> {
|
|
4
5
|
entityOrEntitiesToDelete?: Entity<M> | Entity<M>[];
|
|
5
6
|
path: string;
|
|
@@ -10,4 +11,4 @@ export interface DeleteEntityDialogProps<M extends Record<string, unknown>> {
|
|
|
10
11
|
onEntityDelete?(path: string, entity: Entity<M>): void;
|
|
11
12
|
onMultipleEntitiesDelete?(path: string, entities: Entity<M>[]): void;
|
|
12
13
|
}
|
|
13
|
-
export declare function DeleteEntityDialog<M extends Record<string, unknown>>({ entityOrEntitiesToDelete, collection, onClose, open, callbacks, onEntityDelete, onMultipleEntitiesDelete, path }: DeleteEntityDialogProps<M>):
|
|
14
|
+
export declare function DeleteEntityDialog<M extends Record<string, unknown>>({ entityOrEntitiesToDelete, collection, onClose, open, callbacks, onEntityDelete, onMultipleEntitiesDelete, path }: DeleteEntityDialogProps<M>): React.JSX.Element;
|
|
@@ -46,4 +46,4 @@ export interface DrawerNavigationGroupProps {
|
|
|
46
46
|
* Shared drawer navigation group component used by both DefaultDrawer and RebaseCloudDrawer.
|
|
47
47
|
* Renders a collapsible group with header and navigation items.
|
|
48
48
|
*/
|
|
49
|
-
export declare function DrawerNavigationGroup({ group, entries, collapsed, onToggleCollapsed, drawerOpen, tooltipsOpen, adminMenuOpen, headerActions, onItemClick, hideHeader }: DrawerNavigationGroupProps):
|
|
49
|
+
export declare function DrawerNavigationGroup({ group, entries, collapsed, onToggleCollapsed, drawerOpen, tooltipsOpen, adminMenuOpen, headerActions, onItemClick, hideHeader }: DrawerNavigationGroupProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { User } from "@rebasepro/types";
|
|
2
3
|
import { EntityCollectionTableProps } from "./EntityCollectionTableProps";
|
|
3
4
|
/**
|
|
@@ -24,4 +25,4 @@ import { EntityCollectionTableProps } from "./EntityCollectionTableProps";
|
|
|
24
25
|
* @see VirtualTable
|
|
25
26
|
* @group Components
|
|
26
27
|
*/
|
|
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>) =>
|
|
28
|
+
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>) => React.JSX.Element;
|
|
@@ -14,8 +14,8 @@ type TableMultipleRelationFieldProps = {
|
|
|
14
14
|
includeId?: boolean;
|
|
15
15
|
includeEntityLink?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export declare function TableMultipleRelationField(props: TableMultipleRelationFieldProps):
|
|
18
|
-
export declare const TableMultipleRelationFieldInternal: React.
|
|
17
|
+
export declare function TableMultipleRelationField(props: TableMultipleRelationFieldProps): React.JSX.Element;
|
|
18
|
+
export declare const TableMultipleRelationFieldInternal: React.MemoExoticComponent<(props: TableMultipleRelationFieldProps & {
|
|
19
19
|
collection: EntityCollection;
|
|
20
|
-
}>;
|
|
20
|
+
}) => React.JSX.Element>;
|
|
21
21
|
export {};
|
|
@@ -15,8 +15,8 @@ type TableReferenceFieldProps = {
|
|
|
15
15
|
includeId?: boolean;
|
|
16
16
|
includeEntityLink?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare function TableReferenceField(props: TableReferenceFieldProps):
|
|
19
|
-
export declare const TableReferenceFieldInternal: React.
|
|
18
|
+
export declare function TableReferenceField(props: TableReferenceFieldProps): React.JSX.Element;
|
|
19
|
+
export declare const TableReferenceFieldInternal: React.MemoExoticComponent<(props: TableReferenceFieldProps & {
|
|
20
20
|
collection: EntityCollection;
|
|
21
|
-
}>;
|
|
21
|
+
}) => React.JSX.Element>;
|
|
22
22
|
export {};
|
|
@@ -15,8 +15,8 @@ type TableRelationFieldProps = {
|
|
|
15
15
|
includeId?: boolean;
|
|
16
16
|
includeEntityLink?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare function TableRelationField(props: TableRelationFieldProps):
|
|
19
|
-
export declare const TableRelationFieldInternal: React.
|
|
18
|
+
export declare function TableRelationField(props: TableRelationFieldProps): React.JSX.Element;
|
|
19
|
+
export declare const TableRelationFieldInternal: React.MemoExoticComponent<(props: TableRelationFieldProps & {
|
|
20
20
|
collection: EntityCollection;
|
|
21
|
-
}>;
|
|
21
|
+
}) => React.JSX.Element>;
|
|
22
22
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { EntityRelation, FilterValues, Relation } from "@rebasepro/types";
|
|
2
3
|
interface RelationSelectorFieldProps {
|
|
3
4
|
/** Field name */
|
|
@@ -16,5 +17,5 @@ interface RelationSelectorFieldProps {
|
|
|
16
17
|
size?: "small" | "medium";
|
|
17
18
|
}
|
|
18
19
|
/** Thin wrapper around RelationSelector for table cells */
|
|
19
|
-
export declare function TableRelationSelectorField({ disabled, internalValue, updateValue, relation, fixedFilter, size }: RelationSelectorFieldProps):
|
|
20
|
+
export declare function TableRelationSelectorField({ disabled, internalValue, updateValue, relation, fixedFilter, size }: RelationSelectorFieldProps): React.JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -23,7 +23,7 @@ export declare function TableStorageUpload(props: {
|
|
|
23
23
|
previewSize: PreviewSize;
|
|
24
24
|
openPopup?: (cellRect?: DOMRect) => void;
|
|
25
25
|
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
26
|
-
}):
|
|
26
|
+
}): React.JSX.Element;
|
|
27
27
|
interface TableStorageItemPreviewProps {
|
|
28
28
|
propertyKey: string;
|
|
29
29
|
property: StringProperty;
|
|
@@ -31,5 +31,5 @@ interface TableStorageItemPreviewProps {
|
|
|
31
31
|
size: PreviewSize;
|
|
32
32
|
entity: Entity<Record<string, unknown>>;
|
|
33
33
|
}
|
|
34
|
-
export declare function TableStorageItemPreview({ propertyKey, property, value, size, entity }: TableStorageItemPreviewProps):
|
|
34
|
+
export declare function TableStorageItemPreview({ propertyKey, property, value, size, entity }: TableStorageItemPreviewProps): React.JSX.Element;
|
|
35
35
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export declare function VirtualTableInput(props: {
|
|
2
3
|
error: Error | undefined;
|
|
3
4
|
value: string;
|
|
@@ -6,4 +7,4 @@ export declare function VirtualTableInput(props: {
|
|
|
6
7
|
disabled: boolean;
|
|
7
8
|
updateValue: (newValue: (string | null)) => void;
|
|
8
9
|
onBlur?: () => void;
|
|
9
|
-
}):
|
|
10
|
+
}): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export declare function VirtualTableNumberInput(props: {
|
|
2
3
|
error: Error | undefined;
|
|
3
4
|
value: number;
|
|
@@ -5,4 +6,4 @@ export declare function VirtualTableNumberInput(props: {
|
|
|
5
6
|
updateValue: (newValue: (number | null)) => void;
|
|
6
7
|
focused: boolean;
|
|
7
8
|
disabled: boolean;
|
|
8
|
-
}):
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -12,4 +12,4 @@ export declare function VirtualTableSelect(props: {
|
|
|
12
12
|
updateValue: (newValue: (string | number | string[] | number[] | null)) => void;
|
|
13
13
|
focused: boolean;
|
|
14
14
|
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
15
|
-
}):
|
|
15
|
+
}): React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export declare function VirtualTableSwitch(props: {
|
|
2
3
|
error: Error | undefined;
|
|
3
4
|
internalValue?: boolean;
|
|
4
5
|
focused: boolean;
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
updateValue: (newValue: (boolean | null)) => void;
|
|
7
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -9,4 +9,4 @@ export declare function VirtualTableUserSelect(props: {
|
|
|
9
9
|
updateValue: (newValue: (string | string[] | null)) => void;
|
|
10
10
|
focused: boolean;
|
|
11
11
|
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
12
|
-
}):
|
|
12
|
+
}): React.JSX.Element;
|
|
@@ -21,5 +21,5 @@ interface CollectionTableToolbarProps {
|
|
|
21
21
|
*/
|
|
22
22
|
compact?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare function CollectionTableToolbar({ actions, actionsStart, loading, onTextSearch, title, viewModeToggle, initialSearchText, compact }: CollectionTableToolbarProps):
|
|
24
|
+
export declare function CollectionTableToolbar({ actions, actionsStart, loading, onTextSearch, title, viewModeToggle, initialSearchText, compact }: CollectionTableToolbarProps): React.JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -6,4 +6,4 @@ export interface EntityTableCellActionsProps {
|
|
|
6
6
|
openPopup?: (cellRect: DOMRect | undefined) => void;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare function EntityTableCellActions({ showError, disabled, showExpandIcon, selected, openPopup, children }: EntityTableCellActionsProps): import("react
|
|
9
|
+
export declare function EntityTableCellActions({ showError, disabled, showExpandIcon, selected, openPopup, children }: EntityTableCellActionsProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { Entity } from "@rebasepro/types";
|
|
3
4
|
import { CustomFieldValidator } from "../../../../form/validation";
|
|
4
5
|
import type { OnCellValueChangeParams } from "@rebasepro/core";
|
|
@@ -19,9 +20,9 @@ interface PopupFormFieldProps<M extends Record<string, unknown>> {
|
|
|
19
20
|
*/
|
|
20
21
|
onCellValueChange?: (params: OnCellValueChangeParams<any, any>) => Promise<void> | void;
|
|
21
22
|
}
|
|
22
|
-
export declare function PopupFormField<M extends Record<string, unknown>>(props: PopupFormFieldProps<M>):
|
|
23
|
-
export declare function PopupFormFieldLoading<M extends Record<string, unknown>>({ tableKey, entityId, customFieldValidator, propertyKey, collection: inputCollection, path, cellRect, open, onClose, onCellValueChange, container }: PopupFormFieldProps<M>):
|
|
23
|
+
export declare function PopupFormField<M extends Record<string, unknown>>(props: PopupFormFieldProps<M>): React.JSX.Element | null;
|
|
24
|
+
export declare function PopupFormFieldLoading<M extends Record<string, unknown>>({ tableKey, entityId, customFieldValidator, propertyKey, collection: inputCollection, path, cellRect, open, onClose, onCellValueChange, container }: PopupFormFieldProps<M>): React.JSX.Element | null;
|
|
24
25
|
export declare function PopupFormFieldInternal<M extends Record<string, unknown>>({ tableKey, entityId, customFieldValidator, propertyKey, collection, path, cellRect, open, onClose, onCellValueChange, container, entity }: PopupFormFieldProps<M> & {
|
|
25
26
|
entity?: Entity<M>;
|
|
26
|
-
}):
|
|
27
|
+
}): React.JSX.Element;
|
|
27
28
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { BoardProps } from "./board_types";
|
|
2
|
-
export declare function Board<M extends Record<string, unknown>, COLUMN extends string>({ data, columns: columnsProp, columnLabels, columnColors, className, assignColumn, allowColumnReorder, onColumnReorder, onItemsReorder, ItemComponent, columnLoadingState, onLoadMoreColumn, onAddItemToColumn, AddColumnComponent }: BoardProps<M, COLUMN>):
|
|
3
|
+
export declare function Board<M extends Record<string, unknown>, COLUMN extends string>({ data, columns: columnsProp, columnLabels, columnColors, className, assignColumn, allowColumnReorder, onColumnReorder, onItemsReorder, ItemComponent, columnLoadingState, onLoadMoreColumn, onAddItemToColumn, AddColumnComponent }: BoardProps<M, COLUMN>): React.JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface BoardColumnTitleProps {
|
|
|
6
6
|
"aria-label"?: string;
|
|
7
7
|
color?: ChipColorKey | ChipColorScheme;
|
|
8
8
|
}
|
|
9
|
-
export declare function BoardColumnTitle({ children, className, color, ...props }: BoardColumnTitleProps):
|
|
9
|
+
export declare function BoardColumnTitle({ children, className, color, ...props }: BoardColumnTitleProps): React.JSX.Element;
|
|
@@ -10,5 +10,5 @@ interface BoardSortableListProps<M extends Record<string, unknown>> {
|
|
|
10
10
|
hasMore?: boolean;
|
|
11
11
|
onLoadMore?: () => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function BoardSortableList<M extends Record<string, unknown>>({ columnId, items, ItemComponent, isDragging, isDragOverColumn, loading, hasMore, onLoadMore }: BoardSortableListProps<M>):
|
|
13
|
+
export declare function BoardSortableList<M extends Record<string, unknown>>({ columnId, items, ItemComponent, isDragging, isDragOverColumn, loading, hasMore, onLoadMore }: BoardSortableListProps<M>): React.JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -17,7 +17,7 @@ export type EntityBoardCardProps<M extends Record<string, unknown> = Record<stri
|
|
|
17
17
|
* revealed on card hover or when the card is selected. This keeps the card
|
|
18
18
|
* layout clean while providing intuitive selection affordance.
|
|
19
19
|
*/
|
|
20
|
-
declare function EntityBoardCardInner<M extends Record<string, unknown> = Record<string, unknown>>({ item, isDragging, isGroupedOver, style, collection, onClick, selected, onSelectionChange, selectionEnabled }: EntityBoardCardProps<M>):
|
|
20
|
+
declare function EntityBoardCardInner<M extends Record<string, unknown> = Record<string, unknown>>({ item, isDragging, isGroupedOver, style, collection, onClick, selected, onSelectionChange, selectionEnabled }: EntityBoardCardProps<M>): React.JSX.Element;
|
|
21
21
|
export declare const EntityBoardCard: typeof EntityBoardCardInner;
|
|
22
22
|
/**
|
|
23
23
|
* Wrapper component that adapts EntityBoardCard to BoardItemViewProps interface
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EntityCollection } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { CollectionSize, Entity } from "@rebasepro/types";
|
|
3
4
|
export type EntityCardProps<M extends Record<string, unknown> = Record<string, unknown>> = {
|
|
4
5
|
entity: Entity<M>;
|
|
@@ -17,4 +18,4 @@ export type EntityCardProps<M extends Record<string, unknown> = Record<string, u
|
|
|
17
18
|
* Card component for displaying an entity in a grid view.
|
|
18
19
|
* Shows thumbnail, title, and preview properties via the shared slot system.
|
|
19
20
|
*/
|
|
20
|
-
export declare function EntityCard<M extends Record<string, unknown> = Record<string, unknown>>({ entity, collection, onClick, selected, highlighted, onSelectionChange, selectionEnabled, size }: EntityCardProps<M>):
|
|
21
|
+
export declare function EntityCard<M extends Record<string, unknown> = Record<string, unknown>>({ entity, collection, onClick, selected, highlighted, onSelectionChange, selectionEnabled, size }: EntityCardProps<M>): React.JSX.Element;
|
|
@@ -19,4 +19,4 @@ export type EntityCollectionBoardViewProps<M extends Record<string, unknown> = R
|
|
|
19
19
|
/**
|
|
20
20
|
* Kanban board view for displaying entities grouped by a string enum property.
|
|
21
21
|
*/
|
|
22
|
-
export declare function EntityCollectionBoardView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, fullPath, parentCollectionSlugs, parentEntityIds, columnProperty, onEntityClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, deletedEntities }: EntityCollectionBoardViewProps<M>):
|
|
22
|
+
export declare function EntityCollectionBoardView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, fullPath, parentCollectionSlugs, parentEntityIds, columnProperty, onEntityClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, deletedEntities }: EntityCollectionBoardViewProps<M>): React.JSX.Element;
|
|
@@ -29,4 +29,4 @@ export type EntityCollectionCardViewProps<M extends Record<string, unknown> = Re
|
|
|
29
29
|
* Card grid view for displaying entities with infinite scroll.
|
|
30
30
|
* Alternative to the EntityCollectionTable for visual browsing.
|
|
31
31
|
*/
|
|
32
|
-
export declare function EntityCollectionCardView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, onEntityClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, onScroll, initialScroll, size }: EntityCollectionCardViewProps<M>):
|
|
32
|
+
export declare function EntityCollectionCardView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, onEntityClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, onScroll, initialScroll, size }: EntityCollectionCardViewProps<M>): React.JSX.Element;
|
|
@@ -47,4 +47,4 @@ export type EntityCollectionListViewProps<M extends Record<string, unknown> = Re
|
|
|
47
47
|
* - Column-sortable headers
|
|
48
48
|
* - Infinite scroll
|
|
49
49
|
*/
|
|
50
|
-
export declare function EntityCollectionListView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, onEntityClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, size, selectedEntityId, getActionsForEntity, path, openEntityMode }: EntityCollectionListViewProps<M>):
|
|
50
|
+
export declare function EntityCollectionListView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, onEntityClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, size, selectedEntityId, getActionsForEntity, path, openEntityMode }: EntityCollectionListViewProps<M>): React.JSX.Element;
|
|
@@ -38,28 +38,4 @@ export type EntityCollectionViewProps<M extends Record<string, unknown>> = {
|
|
|
38
38
|
*/
|
|
39
39
|
selectedTab?: string;
|
|
40
40
|
} & EntityCollection<M>;
|
|
41
|
-
/**
|
|
42
|
-
* This component is in charge of binding a driver path with an {@link EntityCollection}
|
|
43
|
-
* where it's configuration is defined. It includes an infinite scrolling table
|
|
44
|
-
* and a 'Add' new entities button,
|
|
45
|
-
*
|
|
46
|
-
* This component is the default one used for displaying entity collections
|
|
47
|
-
* and is in charge of generating all the specific actions and customization
|
|
48
|
-
* of the lower level {@link EntityCollectionTable}
|
|
49
|
-
*
|
|
50
|
-
* Please **note** that you only need to use this component if you are building
|
|
51
|
-
* a custom view. If you just need to create a default view you can do it
|
|
52
|
-
* exclusively with config options.
|
|
53
|
-
*
|
|
54
|
-
* If you need a lower level implementation with more granular options, you
|
|
55
|
-
* can use {@link EntityCollectionTable}.
|
|
56
|
-
*
|
|
57
|
-
* If you need a generic table that is not bound to the driver or entities and
|
|
58
|
-
* properties at all, you can check {@link VirtualTable}
|
|
59
|
-
*
|
|
60
|
-
* @param path
|
|
61
|
-
* @param collection
|
|
62
|
-
|
|
63
|
-
* @group Components
|
|
64
|
-
*/
|
|
65
41
|
export declare const EntityCollectionView: React.FunctionComponent<EntityCollectionViewProps<any>>;
|
|
@@ -17,4 +17,4 @@ export type EntityCollectionViewActionsProps<M extends Record<string, unknown>>
|
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
openNewDocument: (defaultValues?: Record<string, unknown>) => void;
|
|
19
19
|
};
|
|
20
|
-
export declare function EntityCollectionViewActions<M extends Record<string, unknown>>({ collection, relativePath, parentCollectionSlugs, parentEntityIds, onNewClick, onMultipleDeleteClick, selectionEnabled, path, selectionController, tableController, collectionEntitiesCount, compact, children, openNewDocument }: EntityCollectionViewActionsProps<M>):
|
|
20
|
+
export declare function EntityCollectionViewActions<M extends Record<string, unknown>>({ collection, relativePath, parentCollectionSlugs, parentEntityIds, onNewClick, onMultipleDeleteClick, selectionEnabled, path, selectionController, tableController, collectionEntitiesCount, compact, children, openNewDocument }: EntityCollectionViewActionsProps<M>): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Properties } from "@rebasepro/types";
|
|
2
2
|
import type { EntityCollection } from "@rebasepro/types";
|
|
3
|
+
import React from "react";
|
|
3
4
|
import { EntityTableController, SelectionController } from "@rebasepro/types";
|
|
4
5
|
export type EntityCollectionViewStartActionsProps<M extends Record<string, unknown>> = {
|
|
5
6
|
collection: EntityCollection<M>;
|
|
@@ -17,4 +18,4 @@ export type EntityCollectionViewStartActionsProps<M extends Record<string, unkno
|
|
|
17
18
|
compact?: boolean;
|
|
18
19
|
openNewDocument: (defaultValues?: Record<string, unknown>) => void;
|
|
19
20
|
};
|
|
20
|
-
export declare function EntityCollectionViewStartActions<M extends Record<string, unknown>>({ collection, relativePath, parentCollectionSlugs, parentEntityIds, path, selectionController, tableController, collectionEntitiesCount, resolvedProperties, compact, openNewDocument }: EntityCollectionViewStartActionsProps<M>):
|
|
21
|
+
export declare function EntityCollectionViewStartActions<M extends Record<string, unknown>>({ collection, relativePath, parentCollectionSlugs, parentEntityIds, path, selectionController, tableController, collectionEntitiesCount, resolvedProperties, compact, openNewDocument }: EntityCollectionViewStartActionsProps<M>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import type { EntityTableController, FilterPreset } from "@rebasepro/types";
|
|
2
3
|
export interface FilterPresetsButtonProps<M extends Record<string, unknown>> {
|
|
3
4
|
filterPresets: FilterPreset<Extract<keyof M, string> | (string & {})>[];
|
|
@@ -18,4 +19,4 @@ export interface FilterPresetsButtonProps<M extends Record<string, unknown>> {
|
|
|
18
19
|
* - Clearing all filters deactivates all chips.
|
|
19
20
|
* - Multiple presets can be active simultaneously.
|
|
20
21
|
*/
|
|
21
|
-
export declare function FilterPresetsButton<M extends Record<string, unknown>>({ filterPresets, tableController, compact }: FilterPresetsButtonProps<M>):
|
|
22
|
+
export declare function FilterPresetsButton<M extends Record<string, unknown>>({ filterPresets, tableController, compact }: FilterPresetsButtonProps<M>): React.JSX.Element | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Property } from "@rebasepro/types";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { FilterValues } from "@rebasepro/types";
|
|
3
4
|
export interface FiltersDialogProps {
|
|
4
5
|
open: boolean;
|
|
@@ -12,4 +13,4 @@ export interface FiltersDialogProps {
|
|
|
12
13
|
* Dialog that displays all filterable properties from a collection
|
|
13
14
|
* and allows setting filter values for each.
|
|
14
15
|
*/
|
|
15
|
-
export declare function FiltersDialog({ open, onOpenChange, properties, filterValues, setFilterValues, fixedFilter }: FiltersDialogProps):
|
|
16
|
+
export declare function FiltersDialog({ open, onOpenChange, properties, filterValues, setFilterValues, fixedFilter }: FiltersDialogProps): React.JSX.Element;
|
|
@@ -55,4 +55,4 @@ export type SplitListViewProps<M extends Record<string, unknown> = Record<string
|
|
|
55
55
|
* - Clicking an entity navigates to /c/authors/{id} via the standard onEntityClick handler.
|
|
56
56
|
* - Closing the detail navigates back to /c/authors.
|
|
57
57
|
*/
|
|
58
|
-
export declare function SplitListView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, onEntityClick: externalOnEntityClick, onNewClick: externalOnNewClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, onScroll, initialScroll, size, path, parentCollectionSlugs, parentEntityIds, selectedEntityId, selectedTab, toolbar, children }: SplitListViewProps<M>):
|
|
58
|
+
export declare function SplitListView<M extends Record<string, unknown> = Record<string, unknown>>({ collection, tableController, onEntityClick: externalOnEntityClick, onNewClick: externalOnNewClick, selectionController, selectionEnabled, highlightedEntities, emptyComponent, onScroll, initialScroll, size, path, parentCollectionSlugs, parentEntityIds, selectedEntityId, selectedTab, toolbar, children }: SplitListViewProps<M>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CollectionSize, ViewMode } from "@rebasepro/types";
|
|
2
3
|
export type KanbanPropertyOption = {
|
|
3
4
|
key: string;
|
|
@@ -41,4 +42,4 @@ export type ViewModeToggleProps = {
|
|
|
41
42
|
*/
|
|
42
43
|
onKanbanPropertyChange?: (property: string) => void;
|
|
43
44
|
};
|
|
44
|
-
export declare function ViewModeToggle({ viewMode, onViewModeChange, enabledViews, size, onSizeChanged, open, onOpenChange, kanbanPropertyOptions, selectedKanbanProperty, onKanbanPropertyChange }: ViewModeToggleProps):
|
|
45
|
+
export declare function ViewModeToggle({ viewMode, onViewModeChange, enabledViews, size, onSizeChanged, open, onOpenChange, kanbanPropertyOptions, selectedKanbanProperty, onKanbanPropertyChange }: ViewModeToggleProps): React.JSX.Element | null;
|
|
@@ -25,4 +25,4 @@ export interface EntityDetailViewProps<M extends Record<string, unknown> = Recor
|
|
|
25
25
|
layout?: "side_panel" | "full_screen" | "split" | "dialog";
|
|
26
26
|
barActions?: (params: BarActionsParams) => React.ReactNode;
|
|
27
27
|
}
|
|
28
|
-
export declare function EntityDetailView<M extends Record<string, unknown>>({ entityId, ...props }: EntityDetailViewProps<M>):
|
|
28
|
+
export declare function EntityDetailView<M extends Record<string, unknown>>({ entityId, ...props }: EntityDetailViewProps<M>): React.JSX.Element;
|
|
@@ -46,7 +46,7 @@ export interface EntityEditViewProps<M extends Record<string, unknown> = Record<
|
|
|
46
46
|
* This is the default view that is used as the content of a side panel when
|
|
47
47
|
* an entity is opened.
|
|
48
48
|
*/
|
|
49
|
-
export declare function EntityEditView<M extends Record<string, unknown>>({ entityId, ...props }: EntityEditViewProps<M>):
|
|
49
|
+
export declare function EntityEditView<M extends Record<string, unknown>>({ entityId, ...props }: EntityEditViewProps<M>): React.JSX.Element;
|
|
50
50
|
export declare function EntityEditViewInner<M extends Record<string, unknown>>({ path, entityId, selectedTab: selectedTabProp, collection, parentCollectionSlugs, parentEntityIds, onValuesModified, onSaved, onTabChange, navigateBack, entity, initialDirtyValues, dataLoading, layout, barActions, status, setStatus, formProps, canEdit }: EntityEditViewProps<M> & {
|
|
51
51
|
entity?: Entity<M>;
|
|
52
52
|
initialDirtyValues?: Partial<M>;
|
|
@@ -54,4 +54,4 @@ export declare function EntityEditViewInner<M extends Record<string, unknown>>({
|
|
|
54
54
|
status: EntityStatus;
|
|
55
55
|
setStatus: (status: EntityStatus) => void;
|
|
56
56
|
canEdit?: boolean;
|
|
57
|
-
}):
|
|
57
|
+
}): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import type { EntityFormActionsProps } from "../types/components/EntityFormActionsProps";
|
|
2
|
-
export declare function EntityEditViewFormActions({ collection, path, entity, layout, savingError, formex, disabled, status, pluginActions, openEntityMode, showDefaultActions, navigateBack, formContext }: EntityFormActionsProps):
|
|
3
|
+
export declare function EntityEditViewFormActions({ collection, path, entity, layout, savingError, formex, disabled, status, pluginActions, openEntityMode, showDefaultActions, navigateBack, formContext }: EntityFormActionsProps): React.JSX.Element;
|