@firecms/core 3.5.2-canary.c5764a3 → 3.5.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/app/AppBar.d.ts +1 -1
- package/dist/app/index.d.ts +4 -4
- package/dist/components/ClearFilterSortButton.d.ts +1 -1
- package/dist/components/DeleteEntityDialog.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +2 -2
- package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +3 -3
- package/dist/components/EntityCollectionTable/PropertyTableCell.d.ts +2 -2
- package/dist/components/EntityCollectionTable/column_utils.d.ts +2 -2
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +2 -2
- package/dist/components/EntityCollectionTable/index.d.ts +6 -6
- package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/common.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +3 -3
- package/dist/components/EntityCollectionView/Board.d.ts +1 -1
- package/dist/components/EntityCollectionView/BoardColumn.d.ts +1 -1
- package/dist/components/EntityCollectionView/BoardSortableList.d.ts +1 -1
- package/dist/components/EntityCollectionView/CollectionCountBadge.d.ts +8 -0
- package/dist/components/EntityCollectionView/CollectionPathTitle.d.ts +24 -0
- package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +2 -2
- package/dist/components/EntityCollectionView/EntityCard.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionCardView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +6 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityIdHeaderWidget.d.ts +12 -0
- package/dist/components/EntityCollectionView/FiltersDialog.d.ts +1 -1
- package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +1 -1
- package/dist/components/EntityCollectionView/board_types.d.ts +1 -1
- package/dist/components/EntityCollectionView/useBoardDataController.d.ts +1 -1
- package/dist/components/EntityCollectionView/useSelectionController.d.ts +1 -1
- package/dist/components/EntityCollectionView/utils.d.ts +4 -3
- package/dist/components/EntityPreview.d.ts +2 -2
- package/dist/components/EntityView.d.ts +1 -1
- package/dist/components/HomePage/HomePageDnD.d.ts +1 -1
- package/dist/components/HomePage/NavigationCardBinding.d.ts +1 -1
- package/dist/components/HomePage/index.d.ts +5 -5
- package/dist/components/PropertyCollectionView.d.ts +2 -2
- package/dist/components/PropertyConfigBadge.d.ts +1 -1
- package/dist/components/ReferenceTable/ReferenceSelectionTable.d.ts +1 -1
- package/dist/components/ReferenceWidget.d.ts +2 -2
- package/dist/components/SelectableTable/SelectableTable.d.ts +3 -3
- package/dist/components/SelectableTable/SelectableTableContext.d.ts +1 -1
- package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +1 -1
- package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +1 -1
- package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +1 -1
- package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +2 -2
- package/dist/components/UserDisplay.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTable.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableCell.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableHeader.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableHeaderRow.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableProps.d.ts +2 -2
- package/dist/components/VirtualTable/VirtualTableRow.d.ts +1 -1
- package/dist/components/VirtualTable/fields/VirtualTableSelect.d.ts +1 -1
- package/dist/components/VirtualTable/index.d.ts +2 -2
- package/dist/components/VirtualTable/types.d.ts +2 -2
- package/dist/components/common/default_entity_actions.d.ts +1 -1
- package/dist/components/common/index.d.ts +6 -6
- package/dist/components/common/table_url_params.d.ts +1 -1
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/common/useColumnsIds.d.ts +2 -2
- package/dist/components/common/useDataSourceTableController.d.ts +2 -2
- package/dist/components/common/useScrollRestoration.d.ts +1 -1
- package/dist/components/common/useTableSearchHelper.d.ts +1 -1
- package/dist/components/index.d.ts +33 -33
- package/dist/contexts/AnalyticsContext.d.ts +1 -1
- package/dist/contexts/AuthControllerContext.d.ts +1 -1
- package/dist/contexts/BreacrumbsContext.d.ts +1 -1
- package/dist/contexts/CustomizationControllerContext.d.ts +1 -1
- package/dist/contexts/DataSourceContext.d.ts +1 -1
- package/dist/contexts/DialogsProvider.d.ts +1 -1
- package/dist/contexts/InternalUserManagementContext.d.ts +1 -1
- package/dist/contexts/LicenseStatusContext.d.ts +1 -1
- package/dist/contexts/ModeController.d.ts +1 -1
- package/dist/contexts/NavigationContext.d.ts +1 -1
- package/dist/contexts/SideDialogsControllerContext.d.ts +1 -1
- package/dist/contexts/SideEntityControllerContext.d.ts +1 -1
- package/dist/contexts/StorageSourceContext.d.ts +1 -1
- package/dist/contexts/UserConfigurationPersistenceContext.d.ts +1 -1
- package/dist/contexts/index.d.ts +13 -13
- package/dist/core/DefaultAppBar.d.ts +1 -1
- package/dist/core/DrawerNavigationGroup.d.ts +1 -1
- package/dist/core/EntityEditView.d.ts +2 -2
- package/dist/core/EntityEditViewFormActions.d.ts +1 -1
- package/dist/core/EntitySidePanel.d.ts +1 -1
- package/dist/core/FireCMS.d.ts +1 -1
- package/dist/core/field_configs.d.ts +1 -1
- package/dist/core/index.d.ts +10 -10
- package/dist/core/plugin_translations.d.ts +1 -1
- package/dist/core/pro_plugins.d.ts +1 -1
- package/dist/{de-CUF9f7S-.js → de-CNfJQcnh.js} +1 -1
- package/dist/de-CNfJQcnh.js.map +1 -0
- package/dist/editor/components/SlashCommandMenu.d.ts +2 -2
- package/dist/editor/components/index.d.ts +5 -5
- package/dist/editor/editor.d.ts +2 -2
- package/dist/editor/index.d.ts +3 -3
- package/dist/editor/lazy_editor.d.ts +1 -1
- package/dist/editor/nodeViews/ImageComponent.d.ts +1 -1
- package/dist/editor/nodeViews/TaskItemComponent.d.ts +1 -1
- package/dist/editor/selectors/ai-selector.d.ts +1 -0
- package/dist/editor/types.d.ts +1 -1
- package/dist/{editor-WZytSO_1.js → editor-D0A5yaaJ.js} +1 -1
- package/dist/editor-D0A5yaaJ.js.map +1 -0
- package/dist/form/EntityForm.d.ts +2 -2
- package/dist/form/EntityFormActions.d.ts +1 -1
- package/dist/form/PropertyFieldBinding.d.ts +1 -1
- package/dist/form/components/CustomIdField.d.ts +1 -1
- package/dist/form/components/FieldHelperText.d.ts +1 -1
- package/dist/form/components/LocalChangesMenu.d.ts +1 -1
- package/dist/form/components/StorageItemPreview.d.ts +2 -2
- package/dist/form/components/StorageUploadProgress.d.ts +1 -1
- package/dist/form/components/index.d.ts +5 -5
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/BlockFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/GeopointFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MapFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +2 -2
- package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/RepeatFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/SelectFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +2 -2
- package/dist/form/field_bindings/SwitchFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/TextFieldBinding.d.ts +1 -1
- package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +1 -1
- package/dist/form/index.d.ts +22 -22
- package/dist/form/useClearRestoreValue.d.ts +1 -1
- package/dist/form/validation.d.ts +1 -1
- package/dist/{fr-DmkMX6hp.js → fr-CBtSvDVp.js} +1 -1
- package/dist/fr-CBtSvDVp.js.map +1 -0
- package/dist/{hi-BKuaMr7w.js → hi-Delc4l61.js} +1 -1
- package/dist/hi-Delc4l61.js.map +1 -0
- package/dist/hooks/data/delete.d.ts +1 -1
- package/dist/hooks/data/save.d.ts +1 -1
- package/dist/hooks/data/useCollectionFetch.d.ts +1 -1
- package/dist/hooks/data/useDataOrder.d.ts +1 -1
- package/dist/hooks/data/useDataSource.d.ts +1 -1
- package/dist/hooks/data/useEntityFetch.d.ts +1 -1
- package/dist/hooks/index.d.ts +29 -29
- package/dist/hooks/useAnalyticsController.d.ts +1 -1
- package/dist/hooks/useAuthController.d.ts +1 -1
- package/dist/hooks/useBuildLocalConfigurationPersistence.d.ts +1 -1
- package/dist/hooks/useBuildModeController.d.ts +1 -1
- package/dist/hooks/useBuildNavigationController.d.ts +1 -1
- package/dist/hooks/useCustomizationController.d.ts +1 -1
- package/dist/hooks/useDialogsController.d.ts +1 -1
- package/dist/hooks/useFireCMSContext.d.ts +1 -1
- package/dist/hooks/useInternalUserManagementController.d.ts +1 -1
- package/dist/hooks/useLicenseStatus.d.ts +1 -1
- package/dist/hooks/useNavigationController.d.ts +1 -1
- package/dist/hooks/useProjectLog.d.ts +1 -1
- package/dist/hooks/useReferenceDialog.d.ts +1 -1
- package/dist/hooks/useResolvedNavigationFrom.d.ts +1 -1
- package/dist/hooks/useSideDialogsController.d.ts +1 -1
- package/dist/hooks/useSideEntityController.d.ts +1 -1
- package/dist/hooks/useStorageSource.d.ts +1 -1
- package/dist/hooks/useUserConfigurationPersistence.d.ts +1 -1
- package/dist/hooks/useValidateAuthenticator.d.ts +1 -1
- package/dist/i18n/FireCMSi18nProvider.d.ts +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.es.js +624 -579
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +616 -571
- package/dist/index.umd.js.map +1 -1
- package/dist/internal/useBuildDataSource.d.ts +1 -1
- package/dist/internal/useBuildSideDialogsController.d.ts +1 -1
- package/dist/internal/useBuildSideEntityController.d.ts +1 -1
- package/dist/internal/useLeavePageConfirmation.d.ts +11 -0
- package/dist/{it-BwQflFGz.js → it-CdsoaRVO.js} +1 -1
- package/dist/it-CdsoaRVO.js.map +1 -0
- package/dist/locales/de.d.ts +1 -1
- package/dist/locales/en.d.ts +1 -1
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/fr.d.ts +1 -1
- package/dist/locales/hi.d.ts +1 -1
- package/dist/locales/it.d.ts +1 -1
- package/dist/locales/pl.d.ts +1 -1
- package/dist/locales/pt.d.ts +1 -1
- package/dist/{pl-BPsAvZvc.js → pl-DoTvWcwp.js} +1 -1
- package/dist/pl-DoTvWcwp.js.map +1 -0
- package/dist/preview/PropertyPreview.d.ts +2 -2
- package/dist/preview/PropertyPreviewProps.d.ts +1 -1
- package/dist/preview/components/ArrayEnumPreview.d.ts +2 -2
- package/dist/preview/components/BooleanPreview.d.ts +2 -2
- package/dist/preview/components/EnumValuesChip.d.ts +1 -1
- package/dist/preview/components/ImagePreview.d.ts +1 -1
- package/dist/preview/components/ReferencePreview.d.ts +2 -2
- package/dist/preview/components/StorageThumbnail.d.ts +1 -1
- package/dist/preview/components/UrlComponentPreview.d.ts +2 -2
- package/dist/preview/components/UserPreview.d.ts +1 -1
- package/dist/preview/components/__tests__/DatePreview.test.d.ts +1 -0
- package/dist/preview/index.d.ts +25 -25
- package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/GeopointPropertyPreview.d.ts +2 -2
- package/dist/preview/property_previews/MapPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/NumberPropertyPreview.d.ts +1 -1
- package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +2 -2
- package/dist/preview/property_previews/StringPropertyPreview.d.ts +1 -1
- package/dist/preview/util.d.ts +2 -2
- package/dist/{pt-D5q7OQp1.js → pt-DCfk8Nkq.js} +1 -1
- package/dist/pt-DCfk8Nkq.js.map +1 -0
- package/dist/routes/CustomCMSRoute.d.ts +1 -1
- package/dist/types/analytics_controller.d.ts +1 -1
- package/dist/types/auth.d.ts +4 -4
- package/dist/types/collections.d.ts +10 -10
- package/dist/types/customization_controller.d.ts +6 -6
- package/dist/types/datasource.d.ts +4 -4
- package/dist/types/entity_actions.d.ts +6 -6
- package/dist/types/entity_callbacks.d.ts +5 -5
- package/dist/types/entity_link_builder.d.ts +1 -1
- package/dist/types/entity_overrides.d.ts +2 -2
- package/dist/types/export_import.d.ts +3 -3
- package/dist/types/fields.d.ts +3 -3
- package/dist/types/firecms.d.ts +15 -15
- package/dist/types/firecms_context.d.ts +14 -14
- package/dist/types/index.d.ts +32 -32
- package/dist/types/internal_user_management.d.ts +1 -1
- package/dist/types/local_config_persistence.d.ts +1 -1
- package/dist/types/locales.d.ts +1 -1
- package/dist/types/modify_collections.d.ts +1 -1
- package/dist/types/navigation.d.ts +3 -3
- package/dist/types/permissions.d.ts +4 -4
- package/dist/types/plugins.d.ts +9 -9
- package/dist/types/properties.d.ts +6 -6
- package/dist/types/property_config.d.ts +1 -1
- package/dist/types/resolved_entities.d.ts +3 -3
- package/dist/types/roles.d.ts +1 -1
- package/dist/types/side_dialogs_controller.d.ts +4 -2
- package/dist/types/side_entity_controller.d.ts +4 -4
- package/dist/types/user.d.ts +1 -1
- package/dist/util/__tests__/locales.test.d.ts +1 -0
- package/dist/util/builders.d.ts +1 -1
- package/dist/util/callbacks.d.ts +1 -1
- package/dist/util/collections.d.ts +1 -1
- package/dist/util/conditions.d.ts +1 -1
- package/dist/util/date_fns_locales.d.ts +14 -1
- package/dist/util/entities.d.ts +1 -1
- package/dist/util/entity_actions.d.ts +1 -1
- package/dist/util/enums.d.ts +1 -1
- package/dist/util/geopoint.d.ts +1 -1
- package/dist/util/index.d.ts +31 -31
- package/dist/util/join_collections.d.ts +1 -1
- package/dist/util/make_properties_editable.d.ts +1 -1
- package/dist/util/navigation_from_path.d.ts +1 -1
- package/dist/util/navigation_utils.d.ts +1 -1
- package/dist/util/parent_references_from_path.d.ts +1 -1
- package/dist/util/permissions.d.ts +1 -1
- package/dist/util/previews.d.ts +1 -1
- package/dist/util/property_utils.d.ts +1 -1
- package/dist/util/resolutions.d.ts +1 -1
- package/dist/util/storage.d.ts +1 -1
- package/dist/util/urls.d.ts +1 -1
- package/dist/util/useStorageUploadController.d.ts +2 -2
- package/package.json +13 -4
- package/src/app/AppBar.tsx +1 -1
- package/src/app/Drawer.tsx +1 -1
- package/src/app/Scaffold.tsx +5 -5
- package/src/app/index.ts +4 -4
- package/src/components/AIIcon.tsx +1 -1
- package/src/components/ArrayContainer.tsx +2 -2
- package/src/components/ClearFilterSortButton.tsx +2 -2
- package/src/components/ConfirmationDialog.tsx +1 -1
- package/src/components/DeleteEntityDialog.tsx +5 -5
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +5 -5
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +16 -16
- package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +3 -3
- package/src/components/EntityCollectionTable/PropertyTableCell.tsx +18 -18
- package/src/components/EntityCollectionTable/column_utils.tsx +5 -5
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +8 -8
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +8 -8
- package/src/components/EntityCollectionTable/index.tsx +6 -6
- package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +3 -3
- package/src/components/EntityCollectionTable/internal/EntityTableCellActions.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/common.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +8 -8
- package/src/components/EntityCollectionView/Board.tsx +2 -2
- package/src/components/EntityCollectionView/BoardColumn.tsx +3 -3
- package/src/components/EntityCollectionView/BoardSortableList.tsx +2 -2
- package/src/components/EntityCollectionView/CollectionCountBadge.tsx +17 -0
- package/src/components/EntityCollectionView/CollectionDataErrorBanner.tsx +1 -1
- package/src/components/EntityCollectionView/CollectionPathTitle.tsx +68 -0
- package/src/components/EntityCollectionView/EntityBoardCard.tsx +5 -5
- package/src/components/EntityCollectionView/EntityCard.tsx +5 -5
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +11 -11
- package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +3 -3
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +35 -134
- package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +6 -6
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +7 -7
- package/src/components/EntityCollectionView/EntityIdHeaderWidget.tsx +166 -0
- package/src/components/EntityCollectionView/FiltersDialog.tsx +8 -8
- package/src/components/EntityCollectionView/ViewModeToggle.tsx +2 -2
- package/src/components/EntityCollectionView/board_types.ts +1 -1
- package/src/components/EntityCollectionView/useBoardDataController.tsx +2 -2
- package/src/components/EntityCollectionView/useSelectionController.tsx +1 -1
- package/src/components/EntityCollectionView/utils.ts +14 -8
- package/src/components/EntityJsonPreview.tsx +2 -2
- package/src/components/EntityPreview.tsx +5 -5
- package/src/components/EntityView.tsx +6 -6
- package/src/components/ErrorBoundary.tsx +1 -1
- package/src/components/ErrorView.tsx +1 -1
- package/src/components/HomePage/DefaultHomePage.tsx +10 -10
- package/src/components/HomePage/FavouritesView.tsx +3 -3
- package/src/components/HomePage/HomePageDnD.tsx +3 -3
- package/src/components/HomePage/NavigationCardBinding.tsx +6 -6
- package/src/components/HomePage/NavigationGroup.tsx +1 -1
- package/src/components/HomePage/RenameGroupDialog.tsx +1 -1
- package/src/components/HomePage/index.tsx +5 -5
- package/src/components/LanguageToggle.tsx +1 -1
- package/src/components/LicenseBanner.tsx +5 -5
- package/src/components/NotFoundPage.tsx +1 -1
- package/src/components/PropertyCollectionView.tsx +3 -3
- package/src/components/PropertyConfigBadge.tsx +3 -3
- package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +9 -9
- package/src/components/ReferenceWidget.tsx +4 -4
- package/src/components/SearchIconsView.tsx +2 -2
- package/src/components/SelectableTable/SelectableTable.tsx +11 -11
- package/src/components/SelectableTable/SelectableTableContext.tsx +1 -1
- package/src/components/SelectableTable/filters/BooleanFilterField.tsx +1 -1
- package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +2 -2
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +5 -5
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +4 -4
- package/src/components/SelectableTable/filters/filter_text_input.test.ts +1 -1
- package/src/components/UnsavedChangesDialog.tsx +1 -1
- package/src/components/UserDisplay.tsx +2 -2
- package/src/components/VirtualTable/VirtualTable.performance.test.tsx +2 -2
- package/src/components/VirtualTable/VirtualTable.tsx +7 -7
- package/src/components/VirtualTable/VirtualTableCell.tsx +1 -1
- package/src/components/VirtualTable/VirtualTableHeader.tsx +3 -3
- package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +4 -4
- package/src/components/VirtualTable/VirtualTableProps.tsx +2 -2
- package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableDateField.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableInput.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableNumberInput.tsx +1 -1
- package/src/components/VirtualTable/fields/VirtualTableSelect.tsx +2 -2
- package/src/components/VirtualTable/fields/VirtualTableUserSelect.tsx +2 -2
- package/src/components/VirtualTable/index.tsx +2 -2
- package/src/components/VirtualTable/types.tsx +2 -2
- package/src/components/common/default_entity_actions.tsx +6 -5
- package/src/components/common/index.ts +6 -6
- package/src/components/common/table_url_params.ts +2 -2
- package/src/components/common/types.tsx +1 -1
- package/src/components/common/useColumnsIds.tsx +4 -4
- package/src/components/common/useDataSourceTableController.tsx +7 -7
- package/src/components/common/useScrollRestoration.tsx +1 -1
- package/src/components/common/useTableSearchHelper.ts +2 -2
- package/src/components/index.tsx +33 -33
- package/src/contexts/AnalyticsContext.tsx +1 -1
- package/src/contexts/AuthControllerContext.tsx +1 -1
- package/src/contexts/BreacrumbsContext.tsx +1 -1
- package/src/contexts/CustomizationControllerContext.tsx +1 -1
- package/src/contexts/DataSourceContext.tsx +1 -1
- package/src/contexts/DialogsProvider.tsx +1 -1
- package/src/contexts/InternalUserManagementContext.tsx +1 -1
- package/src/contexts/LicenseStatusContext.tsx +1 -1
- package/src/contexts/ModeController.tsx +1 -1
- package/src/contexts/NavigationContext.tsx +1 -1
- package/src/contexts/SideDialogsControllerContext.tsx +1 -1
- package/src/contexts/SideEntityControllerContext.tsx +1 -1
- package/src/contexts/StorageSourceContext.tsx +1 -1
- package/src/contexts/UserConfigurationPersistenceContext.tsx +1 -1
- package/src/contexts/index.ts +13 -13
- package/src/core/DefaultAppBar.tsx +18 -15
- package/src/core/DefaultDrawer.tsx +7 -7
- package/src/core/DrawerNavigationGroup.tsx +4 -4
- package/src/core/EntityEditView.tsx +36 -11
- package/src/core/EntityEditViewFormActions.tsx +7 -7
- package/src/core/EntitySidePanel.tsx +6 -6
- package/src/core/FireCMS.tsx +24 -24
- package/src/core/FireCMSRouter.tsx +1 -1
- package/src/core/NavigationRoutes.tsx +6 -6
- package/src/core/SideDialogs.tsx +11 -18
- package/src/core/field_configs.tsx +7 -7
- package/src/core/index.tsx +10 -10
- package/src/core/plugin_translations.ts +1 -1
- package/src/core/pro_plugins.ts +1 -1
- package/src/editor/components/SlashCommandMenu.tsx +7 -7
- package/src/editor/components/editor-bubble-item.tsx +1 -1
- package/src/editor/components/editor-bubble.tsx +1 -1
- package/src/editor/components/image-bubble.tsx +1 -1
- package/src/editor/components/index.ts +5 -5
- package/src/editor/components/table-bubble.tsx +1 -1
- package/src/editor/editor.tsx +12 -12
- package/src/editor/extensions/Image/index.ts +1 -1
- package/src/editor/extensions/drag-and-drop.tsx +1 -1
- package/src/editor/hooks/useProseMirror.ts +5 -5
- package/src/editor/index.ts +3 -3
- package/src/editor/lazy_editor.tsx +3 -3
- package/src/editor/markdown.ts +1 -1
- package/src/editor/nodeViews/ImageComponent.tsx +1 -1
- package/src/editor/nodeViews/TaskItemComponent.tsx +1 -1
- package/src/editor/nodeViews/index.ts +3 -3
- package/src/editor/plugins/index.ts +7 -7
- package/src/editor/plugins/inputrules.ts +1 -1
- package/src/editor/selectors/color-selector.tsx +4 -4
- package/src/editor/selectors/link-selector.tsx +4 -4
- package/src/editor/selectors/node-selector.tsx +5 -5
- package/src/editor/selectors/text-buttons.tsx +5 -5
- package/src/editor/types.ts +1 -1
- package/src/editor/useProseMirror.ts +3 -3
- package/src/form/EntityForm.tsx +13 -13
- package/src/form/EntityFormActions.tsx +3 -3
- package/src/form/PropertyFieldBinding.tsx +6 -6
- package/src/form/components/CustomIdField.tsx +6 -6
- package/src/form/components/FieldHelperText.tsx +1 -1
- package/src/form/components/FormEntry.tsx +1 -1
- package/src/form/components/LabelWithIconAndTooltip.tsx +2 -2
- package/src/form/components/LocalChangesMenu.tsx +5 -5
- package/src/form/components/StorageItemPreview.tsx +4 -4
- package/src/form/components/StorageUploadProgress.tsx +3 -3
- package/src/form/components/index.tsx +5 -5
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +6 -6
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +7 -7
- package/src/form/field_bindings/BlockFieldBinding.tsx +11 -10
- package/src/form/field_bindings/DateTimeFieldBinding.tsx +6 -6
- package/src/form/field_bindings/GeopointFieldBinding.tsx +6 -6
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +6 -6
- package/src/form/field_bindings/MapFieldBinding.tsx +7 -7
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +7 -7
- package/src/form/field_bindings/MultiSelectFieldBinding.tsx +5 -5
- package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +5 -5
- package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +9 -9
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +9 -9
- package/src/form/field_bindings/RepeatFieldBinding.tsx +8 -8
- package/src/form/field_bindings/SelectFieldBinding.tsx +6 -6
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +10 -10
- package/src/form/field_bindings/SwitchFieldBinding.tsx +5 -5
- package/src/form/field_bindings/TextFieldBinding.tsx +6 -6
- package/src/form/field_bindings/UserSelectFieldBinding.tsx +6 -6
- package/src/form/index.tsx +22 -22
- package/src/form/useClearRestoreValue.tsx +1 -1
- package/src/form/validation.ts +2 -2
- package/src/hooks/data/delete.ts +1 -1
- package/src/hooks/data/save.ts +3 -3
- package/src/hooks/data/useCollectionFetch.tsx +4 -4
- package/src/hooks/data/useDataOrder.ts +1 -1
- package/src/hooks/data/useDataSource.tsx +2 -2
- package/src/hooks/data/useEntityFetch.tsx +5 -5
- package/src/hooks/index.tsx +29 -29
- package/src/hooks/useAnalyticsController.tsx +2 -2
- package/src/hooks/useAuthController.tsx +2 -2
- package/src/hooks/useBreadcrumbsController.tsx +1 -1
- package/src/hooks/useBuildLocalConfigurationPersistence.tsx +3 -3
- package/src/hooks/useBuildModeController.tsx +2 -2
- package/src/hooks/useBuildNavigationController.tsx +5 -5
- package/src/hooks/useCustomizationController.tsx +2 -2
- package/src/hooks/useDialogsController.tsx +2 -2
- package/src/hooks/useFireCMSContext.tsx +14 -14
- package/src/hooks/useInternalUserManagementController.tsx +3 -3
- package/src/hooks/useLicenseStatus.tsx +2 -2
- package/src/hooks/useModeController.tsx +1 -1
- package/src/hooks/useNavigationController.tsx +2 -2
- package/src/hooks/useProjectLog.tsx +2 -2
- package/src/hooks/useReferenceDialog.tsx +5 -5
- package/src/hooks/useResolvedNavigationFrom.tsx +3 -3
- package/src/hooks/useSideDialogsController.tsx +2 -2
- package/src/hooks/useSideEntityController.tsx +2 -2
- package/src/hooks/useStorageSource.tsx +2 -2
- package/src/hooks/useUserConfigurationPersistence.tsx +2 -2
- package/src/hooks/useValidateAuthenticator.tsx +1 -1
- package/src/i18n/FireCMSi18nProvider.tsx +10 -10
- package/src/i18n/__tests__/FireCMSi18nProvider.test.tsx +1 -1
- package/src/i18n/__tests__/nested_provider_lifecycle.test.tsx +1 -1
- package/src/index.ts +14 -14
- package/src/internal/useBuildDataSource.ts +2 -2
- package/src/internal/useBuildSideDialogsController.tsx +45 -3
- package/src/internal/useBuildSideEntityController.tsx +6 -6
- package/src/internal/useLeavePageConfirmation.ts +25 -0
- package/src/locales/de.ts +1 -1
- package/src/locales/en.ts +1 -1
- package/src/locales/es.ts +1 -1
- package/src/locales/fr.ts +1 -1
- package/src/locales/hi.ts +1 -1
- package/src/locales/it.ts +1 -1
- package/src/locales/pl.ts +1 -1
- package/src/locales/pt.ts +1 -1
- package/src/preview/PropertyPreview.tsx +24 -24
- package/src/preview/PropertyPreviewProps.tsx +1 -1
- package/src/preview/components/ArrayEnumPreview.tsx +4 -4
- package/src/preview/components/BooleanPreview.tsx +2 -2
- package/src/preview/components/DatePreview.tsx +15 -3
- package/src/preview/components/EnumValuesChip.tsx +2 -2
- package/src/preview/components/ImagePreview.tsx +2 -2
- package/src/preview/components/ReferencePreview.tsx +7 -7
- package/src/preview/components/StorageThumbnail.tsx +7 -7
- package/src/preview/components/UrlComponentPreview.tsx +6 -6
- package/src/preview/components/UserPreview.tsx +5 -5
- package/src/preview/components/__tests__/DatePreview.test.tsx +39 -0
- package/src/preview/index.ts +25 -25
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +5 -5
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +5 -5
- package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +6 -6
- package/src/preview/property_previews/ArrayOfStringsPreview.tsx +5 -5
- package/src/preview/property_previews/ArrayOneOfPreview.tsx +7 -7
- package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +3 -3
- package/src/preview/property_previews/ArrayPropertyPreview.tsx +6 -6
- package/src/preview/property_previews/GeopointPropertyPreview.tsx +3 -3
- package/src/preview/property_previews/MapPropertyPreview.tsx +6 -6
- package/src/preview/property_previews/NumberPropertyPreview.tsx +2 -2
- package/src/preview/property_previews/SkeletonPropertyComponent.tsx +3 -3
- package/src/preview/property_previews/StringPropertyPreview.tsx +6 -6
- package/src/preview/util.ts +2 -2
- package/src/routes/CustomCMSRoute.tsx +2 -2
- package/src/routes/FireCMSRoute.tsx +13 -13
- package/src/routes/HomePageRoute.tsx +1 -1
- package/src/types/analytics_controller.tsx +1 -1
- package/src/types/auth.tsx +4 -4
- package/src/types/collections.ts +10 -10
- package/src/types/customization_controller.tsx +6 -6
- package/src/types/datasource.ts +4 -4
- package/src/types/entity_actions.tsx +6 -6
- package/src/types/entity_callbacks.ts +5 -5
- package/src/types/entity_link_builder.ts +1 -1
- package/src/types/entity_overrides.tsx +2 -2
- package/src/types/export_import.ts +3 -3
- package/src/types/fields.tsx +3 -3
- package/src/types/firecms.tsx +15 -15
- package/src/types/firecms_context.tsx +14 -14
- package/src/types/index.ts +32 -32
- package/src/types/internal_user_management.ts +1 -1
- package/src/types/local_config_persistence.tsx +1 -1
- package/src/types/locales.ts +2 -0
- package/src/types/modify_collections.tsx +1 -1
- package/src/types/navigation.ts +3 -3
- package/src/types/permissions.ts +4 -4
- package/src/types/plugins.tsx +9 -9
- package/src/types/properties.ts +6 -6
- package/src/types/property_config.tsx +1 -1
- package/src/types/resolved_entities.ts +3 -3
- package/src/types/roles.ts +1 -1
- package/src/types/side_dialogs_controller.tsx +5 -3
- package/src/types/side_entity_controller.tsx +5 -5
- package/src/types/user.ts +1 -1
- package/src/util/__tests__/collections.test.ts +2 -2
- package/src/util/__tests__/conditions.test.ts +2 -2
- package/src/util/__tests__/locales.test.ts +46 -0
- package/src/util/__tests__/objects.test.ts +1 -1
- package/src/util/__tests__/urls.test.ts +1 -1
- package/src/util/builders.ts +1 -1
- package/src/util/callbacks.ts +2 -2
- package/src/util/collections.ts +2 -2
- package/src/util/conditions.ts +1 -1
- package/src/util/date_fns_locales.ts +29 -1
- package/src/util/entities.ts +3 -3
- package/src/util/entity_actions.ts +1 -1
- package/src/util/entity_cache.ts +3 -3
- package/src/util/enums.ts +1 -1
- package/src/util/geopoint.ts +1 -1
- package/src/util/icon_list.ts +1 -1
- package/src/util/icons.tsx +2 -2
- package/src/util/index.ts +31 -31
- package/src/util/join_collections.ts +4 -4
- package/src/util/make_properties_editable.ts +2 -2
- package/src/util/navigation_from_path.ts +3 -3
- package/src/util/navigation_utils.ts +1 -1
- package/src/util/objects.ts +1 -1
- package/src/util/parent_references_from_path.ts +2 -2
- package/src/util/permissions.ts +2 -2
- package/src/util/previews.ts +4 -4
- package/src/util/property_utils.tsx +4 -4
- package/src/util/resolutions.ts +6 -6
- package/src/util/storage.ts +2 -2
- package/src/util/strings.test.ts +1 -1
- package/src/util/urls.ts +1 -1
- package/src/util/useStorageUploadController.tsx +6 -6
- package/dist/de-CUF9f7S-.js.map +0 -1
- package/dist/editor-WZytSO_1.js.map +0 -1
- package/dist/fr-DmkMX6hp.js.map +0 -1
- package/dist/hi-BKuaMr7w.js.map +0 -1
- package/dist/internal/useUnsavedChangesDialog.d.ts +0 -12
- package/dist/it-BwQflFGz.js.map +0 -1
- package/dist/pl-BPsAvZvc.js.map +0 -1
- package/dist/pt-D5q7OQp1.js.map +0 -1
- package/src/internal/useUnsavedChangesDialog.tsx +0 -142
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
Entity,
|
|
9
9
|
EntityAction,
|
|
10
10
|
EntityCollection,
|
|
11
|
-
EntityReference,
|
|
12
11
|
EntityTableController,
|
|
13
12
|
FilterValues,
|
|
14
13
|
PartialEntityCollection,
|
|
@@ -16,13 +15,13 @@ import {
|
|
|
16
15
|
ResolvedProperty,
|
|
17
16
|
SaveEntityProps,
|
|
18
17
|
ViewMode
|
|
19
|
-
} from "../../types";
|
|
18
|
+
} from "../../types/index.js";
|
|
20
19
|
import {
|
|
21
20
|
EntityCollectionRowActions,
|
|
22
21
|
EntityCollectionTable,
|
|
23
22
|
useDataSourceTableController
|
|
24
|
-
} from "../EntityCollectionTable";
|
|
25
|
-
import { CollectionTableToolbar } from "../EntityCollectionTable/internal/CollectionTableToolbar";
|
|
23
|
+
} from "../EntityCollectionTable/index.js";
|
|
24
|
+
import { CollectionTableToolbar } from "../EntityCollectionTable/internal/CollectionTableToolbar.js";
|
|
26
25
|
|
|
27
26
|
import {
|
|
28
27
|
canCreateEntity,
|
|
@@ -35,8 +34,8 @@ import {
|
|
|
35
34
|
resolveCollection,
|
|
36
35
|
resolveEntityAction,
|
|
37
36
|
resolveProperty
|
|
38
|
-
} from "../../util";
|
|
39
|
-
import { ReferencePreview } from "../../preview";
|
|
37
|
+
} from "../../util/index.js";
|
|
38
|
+
import { ReferencePreview } from "../../preview/index.js";
|
|
40
39
|
import {
|
|
41
40
|
saveEntityWithCallbacks,
|
|
42
41
|
useAuthController,
|
|
@@ -47,30 +46,25 @@ import {
|
|
|
47
46
|
useNavigationController,
|
|
48
47
|
useSideEntityController,
|
|
49
48
|
useTranslation
|
|
50
|
-
} from "../../hooks";
|
|
51
|
-
import { useBreadcrumbsController } from "../../hooks/useBreadcrumbsController";
|
|
52
|
-
import { useUserConfigurationPersistence } from "../../hooks/useUserConfigurationPersistence";
|
|
53
|
-
import { EntityCollectionViewActions } from "./EntityCollectionViewActions";
|
|
54
|
-
import { EntityCollectionCardView } from "./EntityCollectionCardView";
|
|
55
|
-
import { EntityCollectionBoardView } from "./EntityCollectionBoardView";
|
|
56
|
-
import { CollectionDataErrorBanner } from "./CollectionDataErrorBanner";
|
|
57
|
-
import { ViewModeToggle, KanbanPropertyOption } from "./ViewModeToggle";
|
|
49
|
+
} from "../../hooks/index.js";
|
|
50
|
+
import { useBreadcrumbsController } from "../../hooks/useBreadcrumbsController.js";
|
|
51
|
+
import { useUserConfigurationPersistence } from "../../hooks/useUserConfigurationPersistence.js";
|
|
52
|
+
import { EntityCollectionViewActions } from "./EntityCollectionViewActions.js";
|
|
53
|
+
import { EntityCollectionCardView } from "./EntityCollectionCardView.js";
|
|
54
|
+
import { EntityCollectionBoardView } from "./EntityCollectionBoardView.js";
|
|
55
|
+
import { CollectionDataErrorBanner } from "./CollectionDataErrorBanner.js";
|
|
56
|
+
import { ViewModeToggle, KanbanPropertyOption } from "./ViewModeToggle.js";
|
|
58
57
|
import {
|
|
59
58
|
AddIcon,
|
|
60
59
|
Button,
|
|
61
60
|
cls,
|
|
62
|
-
focusedDisabled,
|
|
63
|
-
IconButton,
|
|
64
61
|
KeyboardTabIcon,
|
|
65
62
|
Markdown,
|
|
66
|
-
Popover,
|
|
67
|
-
SearchIcon,
|
|
68
63
|
Skeleton,
|
|
69
|
-
Tooltip,
|
|
70
64
|
Typography
|
|
71
65
|
} from "@firecms/ui";
|
|
72
66
|
import { setIn } from "@firecms/formex";
|
|
73
|
-
import { getSubcollectionColumnId } from "../EntityCollectionTable/internal/common";
|
|
67
|
+
import { getSubcollectionColumnId } from "../EntityCollectionTable/internal/common.js";
|
|
74
68
|
import {
|
|
75
69
|
COLLECTION_GROUP_PARENT_ID,
|
|
76
70
|
copyEntityAction,
|
|
@@ -81,16 +75,17 @@ import {
|
|
|
81
75
|
UniqueFieldValidator,
|
|
82
76
|
useColumnIds,
|
|
83
77
|
useTableSearchHelper
|
|
84
|
-
} from "../common";
|
|
85
|
-
import { PopupFormField } from "../EntityCollectionTable/internal/popup_field/PopupFormField";
|
|
86
|
-
import { GetPropertyForProps } from "../EntityCollectionTable/EntityCollectionTableProps";
|
|
87
|
-
import { DeleteEntityDialog } from "../DeleteEntityDialog";
|
|
88
|
-
import { useAnalyticsController } from "../../hooks/useAnalyticsController";
|
|
89
|
-
import { useSelectionController } from "./useSelectionController";
|
|
90
|
-
import { EntityCollectionViewStartActions } from "./EntityCollectionViewStartActions";
|
|
91
|
-
import { addRecentId
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
78
|
+
} from "../common/index.js";
|
|
79
|
+
import { PopupFormField } from "../EntityCollectionTable/internal/popup_field/PopupFormField.js";
|
|
80
|
+
import { GetPropertyForProps } from "../EntityCollectionTable/EntityCollectionTableProps.js";
|
|
81
|
+
import { DeleteEntityDialog } from "../DeleteEntityDialog.js";
|
|
82
|
+
import { useAnalyticsController } from "../../hooks/useAnalyticsController.js";
|
|
83
|
+
import { useSelectionController } from "./useSelectionController.js";
|
|
84
|
+
import { EntityCollectionViewStartActions } from "./EntityCollectionViewStartActions.js";
|
|
85
|
+
import { addRecentId } from "./utils.js";
|
|
86
|
+
import { EntityIdHeaderWidget } from "./EntityIdHeaderWidget.js";
|
|
87
|
+
import { useScrollRestoration } from "../common/useScrollRestoration.js";
|
|
88
|
+
import { entityCacheKey } from "../../util/entity_cache.js";
|
|
94
89
|
|
|
95
90
|
const DEFAULT_ENTITY_OPEN_MODE: "side_panel" | "full_screen" = "side_panel";
|
|
96
91
|
|
|
@@ -131,6 +126,12 @@ export type EntityCollectionViewProps<M extends Record<string, any>> = {
|
|
|
131
126
|
*/
|
|
132
127
|
updateUrl?: boolean;
|
|
133
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Called with the number of entities in the collection, with the current filters
|
|
131
|
+
* applied, each time it is counted: the count the breadcrumbs show.
|
|
132
|
+
*/
|
|
133
|
+
onCountChange?: (count: number) => void;
|
|
134
|
+
|
|
134
135
|
} & EntityCollection<M>;
|
|
135
136
|
|
|
136
137
|
/**
|
|
@@ -166,6 +167,7 @@ export const EntityCollectionView = React.memo(
|
|
|
166
167
|
isSubCollection,
|
|
167
168
|
className,
|
|
168
169
|
updateUrl,
|
|
170
|
+
onCountChange,
|
|
169
171
|
...collectionProp
|
|
170
172
|
}: EntityCollectionViewProps<M>
|
|
171
173
|
) {
|
|
@@ -350,7 +352,7 @@ export const EntityCollectionView = React.memo(
|
|
|
350
352
|
});
|
|
351
353
|
|
|
352
354
|
if (collection) {
|
|
353
|
-
addRecentId(
|
|
355
|
+
addRecentId(fullIdPath ?? fullPath, clickedEntity.id);
|
|
354
356
|
}
|
|
355
357
|
|
|
356
358
|
// In a collection group the row's own path is the real one, so the row's segments
|
|
@@ -795,8 +797,9 @@ export const EntityCollectionView = React.memo(
|
|
|
795
797
|
useEffect(() => {
|
|
796
798
|
if (docsCount !== undefined) {
|
|
797
799
|
breadcrumbs.updateCount(fullPath, docsCount);
|
|
800
|
+
onCountChange?.(docsCount);
|
|
798
801
|
}
|
|
799
|
-
}, [docsCount, fullPath, breadcrumbs.updateCount]);
|
|
802
|
+
}, [docsCount, fullPath, breadcrumbs.updateCount, onCountChange]);
|
|
800
803
|
|
|
801
804
|
// EntitiesCount fetches count and updates breadcrumb - no visual rendering needed here
|
|
802
805
|
const countFetcher = <EntitiesCount
|
|
@@ -1198,105 +1201,3 @@ function buildPropertyWidthOverwrite(key: string, width: number): PartialEntityC
|
|
|
1198
1201
|
}
|
|
1199
1202
|
return { properties: { [key]: { columnWidth: width } } } as PartialEntityCollection;
|
|
1200
1203
|
}
|
|
1201
|
-
|
|
1202
|
-
function EntityIdHeaderWidget({
|
|
1203
|
-
collection,
|
|
1204
|
-
path,
|
|
1205
|
-
pathSegments,
|
|
1206
|
-
fullIdPath
|
|
1207
|
-
}: {
|
|
1208
|
-
collection: EntityCollection,
|
|
1209
|
-
path: string,
|
|
1210
|
-
/** `path` split at its real segment boundaries, when the caller knows them. */
|
|
1211
|
-
pathSegments?: string[],
|
|
1212
|
-
fullIdPath: string
|
|
1213
|
-
}) {
|
|
1214
|
-
|
|
1215
|
-
const navigation = useNavigationController();
|
|
1216
|
-
const [openPopup, setOpenPopup] = React.useState(false);
|
|
1217
|
-
const [searchString, setSearchString] = React.useState("");
|
|
1218
|
-
const [recentIds, setRecentIds] = React.useState<string[]>(getRecentIds(collection.id));
|
|
1219
|
-
const sideEntityController = useSideEntityController();
|
|
1220
|
-
const { t } = useTranslation();
|
|
1221
|
-
|
|
1222
|
-
const openEntityMode = collection?.openEntityMode ?? DEFAULT_ENTITY_OPEN_MODE;
|
|
1223
|
-
|
|
1224
|
-
return (
|
|
1225
|
-
<Tooltip title={!openPopup ? t("find_by_id") : undefined} asChild={false}>
|
|
1226
|
-
<Popover
|
|
1227
|
-
open={openPopup}
|
|
1228
|
-
onOpenChange={setOpenPopup}
|
|
1229
|
-
sideOffset={0}
|
|
1230
|
-
align={"start"}
|
|
1231
|
-
alignOffset={-117}
|
|
1232
|
-
trigger={
|
|
1233
|
-
<IconButton size={"small"}>
|
|
1234
|
-
<SearchIcon size={"small"} />
|
|
1235
|
-
</IconButton>
|
|
1236
|
-
}>
|
|
1237
|
-
<div
|
|
1238
|
-
className={cls("my-2 rounded-lg bg-surface-50 dark:bg-surface-950 text-surface-900 dark:text-white")}>
|
|
1239
|
-
<form noValidate={true}
|
|
1240
|
-
onSubmit={(e) => {
|
|
1241
|
-
e.preventDefault();
|
|
1242
|
-
if (!searchString) return;
|
|
1243
|
-
setOpenPopup(false);
|
|
1244
|
-
const entityId = searchString.trim();
|
|
1245
|
-
setRecentIds(addRecentId(collection.id, entityId));
|
|
1246
|
-
navigateToEntity({
|
|
1247
|
-
openEntityMode,
|
|
1248
|
-
collection,
|
|
1249
|
-
entityId,
|
|
1250
|
-
path,
|
|
1251
|
-
pathSegments,
|
|
1252
|
-
fullIdPath,
|
|
1253
|
-
sideEntityController,
|
|
1254
|
-
navigation
|
|
1255
|
-
})
|
|
1256
|
-
}}
|
|
1257
|
-
className={"w-96 max-w-full"}>
|
|
1258
|
-
|
|
1259
|
-
<div className="flex p-2 w-full gap-2">
|
|
1260
|
-
<input
|
|
1261
|
-
autoFocus={openPopup}
|
|
1262
|
-
placeholder={t("find_entity_by_id")}
|
|
1263
|
-
// size={"small"}
|
|
1264
|
-
onChange={(e) => {
|
|
1265
|
-
setSearchString(e.target.value);
|
|
1266
|
-
}}
|
|
1267
|
-
value={searchString}
|
|
1268
|
-
className={"rounded-lg bg-white dark:bg-surface-800 flex-grow bg-transparent outline-none p-2 " + focusedDisabled} />
|
|
1269
|
-
<Button variant={"text"}
|
|
1270
|
-
disabled={!(searchString.trim())}
|
|
1271
|
-
type={"submit"}
|
|
1272
|
-
><KeyboardTabIcon /></Button>
|
|
1273
|
-
</div>
|
|
1274
|
-
</form>
|
|
1275
|
-
{recentIds && recentIds.length > 0 && <div className="flex flex-col gap-2 p-2">
|
|
1276
|
-
{recentIds.map(id => (
|
|
1277
|
-
<ReferencePreview reference={new EntityReference(id, path, undefined, pathSegments)}
|
|
1278
|
-
key={id}
|
|
1279
|
-
hover={true}
|
|
1280
|
-
onClick={() => {
|
|
1281
|
-
setOpenPopup(false);
|
|
1282
|
-
navigateToEntity({
|
|
1283
|
-
openEntityMode,
|
|
1284
|
-
collection,
|
|
1285
|
-
entityId: id,
|
|
1286
|
-
path,
|
|
1287
|
-
pathSegments,
|
|
1288
|
-
fullIdPath,
|
|
1289
|
-
sideEntityController,
|
|
1290
|
-
navigation
|
|
1291
|
-
})
|
|
1292
|
-
}}
|
|
1293
|
-
includeEntityLink={false}
|
|
1294
|
-
size={"small"} />
|
|
1295
|
-
))}
|
|
1296
|
-
</div>}
|
|
1297
|
-
</div>
|
|
1298
|
-
</Popover>
|
|
1299
|
-
|
|
1300
|
-
</Tooltip>
|
|
1301
|
-
);
|
|
1302
|
-
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import { canCreateEntity, canDeleteEntity } from "../../util";
|
|
4
|
-
import { useAuthController, useCustomizationController, useFireCMSContext, useLargeLayout } from "../../hooks";
|
|
3
|
+
import { canCreateEntity, canDeleteEntity } from "../../util/index.js";
|
|
4
|
+
import { useAuthController, useCustomizationController, useFireCMSContext, useLargeLayout } from "../../hooks/index.js";
|
|
5
5
|
import {
|
|
6
6
|
CollectionActionsProps,
|
|
7
7
|
EntityCollection,
|
|
8
8
|
EntityTableController,
|
|
9
9
|
SelectionController
|
|
10
|
-
} from "../../types";
|
|
10
|
+
} from "../../types/index.js";
|
|
11
11
|
import {
|
|
12
12
|
AddIcon,
|
|
13
13
|
Button,
|
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
IconButton,
|
|
16
16
|
Tooltip
|
|
17
17
|
} from "@firecms/ui";
|
|
18
|
-
import { toArray } from "../../util/arrays";
|
|
19
|
-
import { ErrorBoundary } from "../ErrorBoundary";
|
|
20
|
-
import { useTranslation } from "../../hooks/useTranslation";
|
|
18
|
+
import { toArray } from "../../util/arrays.js";
|
|
19
|
+
import { ErrorBoundary } from "../ErrorBoundary.js";
|
|
20
|
+
import { useTranslation } from "../../hooks/useTranslation.js";
|
|
21
21
|
|
|
22
22
|
export type EntityCollectionViewActionsProps<M extends Record<string, any>> = {
|
|
23
23
|
collection: EntityCollection<M>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { useCustomizationController, useFireCMSContext, useLargeLayout } from "../../hooks";
|
|
2
|
+
import { useCustomizationController, useFireCMSContext, useLargeLayout } from "../../hooks/index.js";
|
|
3
3
|
import {
|
|
4
4
|
CollectionActionsProps,
|
|
5
5
|
EntityCollection,
|
|
6
6
|
EntityTableController,
|
|
7
7
|
ResolvedProperty,
|
|
8
8
|
SelectionController
|
|
9
|
-
} from "../../types";
|
|
10
|
-
import { toArray } from "../../util/arrays";
|
|
11
|
-
import { ErrorBoundary } from "../ErrorBoundary";
|
|
12
|
-
import { ClearFilterSortButton } from "../ClearFilterSortButton";
|
|
13
|
-
import { FiltersDialog } from "./FiltersDialog";
|
|
9
|
+
} from "../../types/index.js";
|
|
10
|
+
import { toArray } from "../../util/arrays.js";
|
|
11
|
+
import { ErrorBoundary } from "../ErrorBoundary.js";
|
|
12
|
+
import { ClearFilterSortButton } from "../ClearFilterSortButton.js";
|
|
13
|
+
import { FiltersDialog } from "./FiltersDialog.js";
|
|
14
14
|
import { Badge, Button, cls, FilterListIcon, IconButton, Tooltip } from "@firecms/ui";
|
|
15
|
-
import { useTranslation } from "../../hooks/useTranslation";
|
|
15
|
+
import { useTranslation } from "../../hooks/useTranslation.js";
|
|
16
16
|
|
|
17
17
|
export type EntityCollectionViewStartActionsProps<M extends Record<string, any>> = {
|
|
18
18
|
collection: EntityCollection<M>;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import React, { useCallback, useRef } from "react";
|
|
2
|
+
import { Button, cls, focusedDisabled, IconButton, KeyboardTabIcon, Popover, SearchIcon, Tooltip } from "@firecms/ui";
|
|
3
|
+
import { EntityCollection, EntityReference } from "../../types/index.js";
|
|
4
|
+
import { navigateToEntity } from "../../util/navigation_utils.js";
|
|
5
|
+
import { ReferencePreview } from "../../preview/index.js";
|
|
6
|
+
import { useNavigationController } from "../../hooks/useNavigationController.js";
|
|
7
|
+
import { useSideEntityController } from "../../hooks/useSideEntityController.js";
|
|
8
|
+
import { useTranslation } from "../../hooks/useTranslation.js";
|
|
9
|
+
import { useDataSource } from "../../hooks/data/useDataSource.js";
|
|
10
|
+
import { addRecentId, getRecentIds, removeRecentIds } from "./utils.js";
|
|
11
|
+
|
|
12
|
+
const DEFAULT_ENTITY_OPEN_MODE: "side_panel" | "full_screen" = "side_panel";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* "Find by id" in the header of a collection's id column, listing the ids opened in it lately.
|
|
16
|
+
*/
|
|
17
|
+
export function EntityIdHeaderWidget({
|
|
18
|
+
collection,
|
|
19
|
+
path,
|
|
20
|
+
pathSegments,
|
|
21
|
+
fullIdPath
|
|
22
|
+
}: {
|
|
23
|
+
collection: EntityCollection,
|
|
24
|
+
path: string,
|
|
25
|
+
/** `path` split at its real segment boundaries, when the caller knows them. */
|
|
26
|
+
pathSegments?: string[],
|
|
27
|
+
fullIdPath: string
|
|
28
|
+
}) {
|
|
29
|
+
|
|
30
|
+
const navigation = useNavigationController();
|
|
31
|
+
const dataSource = useDataSource(collection);
|
|
32
|
+
const [openPopup, setOpenPopup] = React.useState(false);
|
|
33
|
+
const [searchString, setSearchString] = React.useState("");
|
|
34
|
+
// The recent ids are kept per full path rather than per collection: a subcollection has
|
|
35
|
+
// the same id under every parent, and an id found under one parent does not exist under
|
|
36
|
+
// the others. Only the ones known to exist are listed.
|
|
37
|
+
const [recentIds, setRecentIds] = React.useState<string[]>([]);
|
|
38
|
+
const latestCheck = useRef(0);
|
|
39
|
+
const sideEntityController = useSideEntityController();
|
|
40
|
+
const { t } = useTranslation();
|
|
41
|
+
|
|
42
|
+
// Resolved as useEntityFetch resolves them, so the check reads what the preview shows.
|
|
43
|
+
const resolvedPath = navigation.resolveIdsFrom(path, pathSegments);
|
|
44
|
+
const resolvedPathSegments = pathSegments
|
|
45
|
+
? (navigation.resolveSegmentsFrom?.(pathSegments) ?? pathSegments)
|
|
46
|
+
: undefined;
|
|
47
|
+
|
|
48
|
+
/** Whether the entity exists, or `undefined` when that could not be told. */
|
|
49
|
+
const entityExists = useCallback(async (entityId: string): Promise<boolean | undefined> => {
|
|
50
|
+
try {
|
|
51
|
+
const entity = await dataSource.fetchEntity({
|
|
52
|
+
path: resolvedPath,
|
|
53
|
+
pathSegments: resolvedPathSegments,
|
|
54
|
+
entityId,
|
|
55
|
+
collection
|
|
56
|
+
});
|
|
57
|
+
return Boolean(entity?.values);
|
|
58
|
+
} catch (e) {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
}, [dataSource, resolvedPath, resolvedPathSegments, collection]);
|
|
62
|
+
|
|
63
|
+
// A recent id that no longer exists would be fetched and shown as "not found" on every
|
|
64
|
+
// opening, so it is forgotten. One that could not be checked is kept for next time.
|
|
65
|
+
const refreshRecentIds = () => {
|
|
66
|
+
const ids = getRecentIds(fullIdPath);
|
|
67
|
+
const check = ++latestCheck.current;
|
|
68
|
+
Promise.all(ids.map(entityExists)).then((results) => {
|
|
69
|
+
if (check !== latestCheck.current) return;
|
|
70
|
+
const missing = ids.filter((_, i) => results[i] === false);
|
|
71
|
+
if (missing.length > 0)
|
|
72
|
+
removeRecentIds(fullIdPath, missing);
|
|
73
|
+
setRecentIds(ids.filter((_, i) => results[i] === true));
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const openEntityMode = collection?.openEntityMode ?? DEFAULT_ENTITY_OPEN_MODE;
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<Tooltip title={!openPopup ? t("find_by_id") : undefined} asChild={false}>
|
|
81
|
+
<Popover
|
|
82
|
+
open={openPopup}
|
|
83
|
+
onOpenChange={(open) => {
|
|
84
|
+
// read on each opening: rows opened since the last one are recent too
|
|
85
|
+
if (open) refreshRecentIds();
|
|
86
|
+
setOpenPopup(open);
|
|
87
|
+
}}
|
|
88
|
+
sideOffset={0}
|
|
89
|
+
align={"start"}
|
|
90
|
+
alignOffset={-117}
|
|
91
|
+
trigger={
|
|
92
|
+
<IconButton size={"small"}>
|
|
93
|
+
<SearchIcon size={"small"} />
|
|
94
|
+
</IconButton>
|
|
95
|
+
}>
|
|
96
|
+
<div
|
|
97
|
+
className={cls("my-2 rounded-lg bg-surface-50 dark:bg-surface-950 text-surface-900 dark:text-white")}>
|
|
98
|
+
<form noValidate={true}
|
|
99
|
+
onSubmit={(e) => {
|
|
100
|
+
e.preventDefault();
|
|
101
|
+
const entityId = searchString.trim();
|
|
102
|
+
// Enter submits even while the button is disabled, and an empty
|
|
103
|
+
// id would open a new entity instead
|
|
104
|
+
if (!entityId) return;
|
|
105
|
+
setOpenPopup(false);
|
|
106
|
+
// remembered only once found, or every opening would fetch it again
|
|
107
|
+
entityExists(entityId).then((exists) => {
|
|
108
|
+
if (exists) addRecentId(fullIdPath, entityId);
|
|
109
|
+
});
|
|
110
|
+
navigateToEntity({
|
|
111
|
+
openEntityMode,
|
|
112
|
+
collection,
|
|
113
|
+
entityId,
|
|
114
|
+
path,
|
|
115
|
+
pathSegments,
|
|
116
|
+
fullIdPath,
|
|
117
|
+
sideEntityController,
|
|
118
|
+
navigation
|
|
119
|
+
})
|
|
120
|
+
}}
|
|
121
|
+
className={"w-96 max-w-full"}>
|
|
122
|
+
|
|
123
|
+
<div className="flex p-2 w-full gap-2">
|
|
124
|
+
<input
|
|
125
|
+
autoFocus={openPopup}
|
|
126
|
+
placeholder={t("find_entity_by_id")}
|
|
127
|
+
// size={"small"}
|
|
128
|
+
onChange={(e) => {
|
|
129
|
+
setSearchString(e.target.value);
|
|
130
|
+
}}
|
|
131
|
+
value={searchString}
|
|
132
|
+
className={"rounded-lg bg-white dark:bg-surface-800 flex-grow bg-transparent outline-none p-2 " + focusedDisabled} />
|
|
133
|
+
<Button variant={"text"}
|
|
134
|
+
disabled={!(searchString.trim())}
|
|
135
|
+
type={"submit"}
|
|
136
|
+
><KeyboardTabIcon /></Button>
|
|
137
|
+
</div>
|
|
138
|
+
</form>
|
|
139
|
+
{recentIds && recentIds.length > 0 && <div className="flex flex-col gap-2 p-2">
|
|
140
|
+
{recentIds.map(id => (
|
|
141
|
+
<ReferencePreview reference={new EntityReference(id, path, undefined, pathSegments)}
|
|
142
|
+
key={id}
|
|
143
|
+
hover={true}
|
|
144
|
+
onClick={() => {
|
|
145
|
+
setOpenPopup(false);
|
|
146
|
+
navigateToEntity({
|
|
147
|
+
openEntityMode,
|
|
148
|
+
collection,
|
|
149
|
+
entityId: id,
|
|
150
|
+
path,
|
|
151
|
+
pathSegments,
|
|
152
|
+
fullIdPath,
|
|
153
|
+
sideEntityController,
|
|
154
|
+
navigation
|
|
155
|
+
})
|
|
156
|
+
}}
|
|
157
|
+
includeEntityLink={false}
|
|
158
|
+
size={"small"} />
|
|
159
|
+
))}
|
|
160
|
+
</div>}
|
|
161
|
+
</div>
|
|
162
|
+
</Popover>
|
|
163
|
+
|
|
164
|
+
</Tooltip>
|
|
165
|
+
);
|
|
166
|
+
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
FilterValues,
|
|
4
4
|
ResolvedProperty,
|
|
5
5
|
WhereFilterOp
|
|
6
|
-
} from "../../types";
|
|
6
|
+
} from "../../types/index.js";
|
|
7
7
|
import {
|
|
8
8
|
Button,
|
|
9
9
|
cls,
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
DialogTitle,
|
|
15
15
|
Typography
|
|
16
16
|
} from "@firecms/ui";
|
|
17
|
-
import { useTranslation } from "../../hooks/useTranslation";
|
|
18
|
-
import { StringNumberFilterField } from "../SelectableTable/filters/StringNumberFilterField";
|
|
19
|
-
import { BooleanFilterField } from "../SelectableTable/filters/BooleanFilterField";
|
|
20
|
-
import { DateTimeFilterField } from "../SelectableTable/filters/DateTimeFilterField";
|
|
21
|
-
import { ReferenceFilterField } from "../SelectableTable/filters/ReferenceFilterField";
|
|
22
|
-
import { VirtualTableWhereFilterOp } from "../VirtualTable";
|
|
23
|
-
import { enumToObjectEntries } from "../../util";
|
|
17
|
+
import { useTranslation } from "../../hooks/useTranslation.js";
|
|
18
|
+
import { StringNumberFilterField } from "../SelectableTable/filters/StringNumberFilterField.js";
|
|
19
|
+
import { BooleanFilterField } from "../SelectableTable/filters/BooleanFilterField.js";
|
|
20
|
+
import { DateTimeFilterField } from "../SelectableTable/filters/DateTimeFilterField.js";
|
|
21
|
+
import { ReferenceFilterField } from "../SelectableTable/filters/ReferenceFilterField.js";
|
|
22
|
+
import { VirtualTableWhereFilterOp } from "../VirtualTable/index.js";
|
|
23
|
+
import { enumToObjectEntries } from "../../util/index.js";
|
|
24
24
|
|
|
25
25
|
export interface FiltersDialogProps {
|
|
26
26
|
open: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
|
-
import { CollectionSize, ViewMode } from "../../types";
|
|
2
|
+
import { CollectionSize, ViewMode } from "../../types/index.js";
|
|
3
3
|
import {
|
|
4
4
|
AppsIcon,
|
|
5
5
|
Button,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ViewColumnIcon,
|
|
13
13
|
ViewKanbanIcon
|
|
14
14
|
} from "@firecms/ui";
|
|
15
|
-
import { useTranslation } from "../../hooks/useTranslation";
|
|
15
|
+
import { useTranslation } from "../../hooks/useTranslation.js";
|
|
16
16
|
|
|
17
17
|
export type KanbanPropertyOption = {
|
|
18
18
|
key: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
2
|
-
import { Entity, EntityCollection, FilterValues } from "../../types";
|
|
3
|
-
import { useDataSource, useFireCMSContext, useNavigationController } from "../../hooks";
|
|
2
|
+
import { Entity, EntityCollection, FilterValues } from "../../types/index.js";
|
|
3
|
+
import { useDataSource, useFireCMSContext, useNavigationController } from "../../hooks/index.js";
|
|
4
4
|
|
|
5
5
|
const DEFAULT_PAGE_SIZE = 20;
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useState } from "react";
|
|
2
|
-
import { Entity, SelectionController } from "../../types";
|
|
2
|
+
import { Entity, SelectionController } from "../../types/index.js";
|
|
3
3
|
|
|
4
4
|
export function useSelectionController<M extends Record<string, any> = any>(
|
|
5
5
|
onSelectionChange?: (entity: Entity<M>, selected: boolean) => void
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import { getLocalStorageJSON, setLocalStorageItem } from "../../util/local_storage";
|
|
1
|
+
import { getLocalStorageJSON, setLocalStorageItem } from "../../util/local_storage.js";
|
|
2
2
|
|
|
3
|
-
export function addRecentId(
|
|
4
|
-
const recentIds = getRecentIds(
|
|
3
|
+
export function addRecentId(key: string, id: string) {
|
|
4
|
+
const recentIds = getRecentIds(key);
|
|
5
5
|
const newRecentIds = [id, ...recentIds.filter(i => i !== id)];
|
|
6
6
|
if (newRecentIds.length > 5) {
|
|
7
7
|
newRecentIds.pop();
|
|
8
8
|
}
|
|
9
|
-
saveSearchedIdsLocally(
|
|
9
|
+
saveSearchedIdsLocally(key, newRecentIds);
|
|
10
10
|
return newRecentIds;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export function saveSearchedIdsLocally(
|
|
14
|
-
setLocalStorageItem("recent_id_searches::" +
|
|
13
|
+
export function saveSearchedIdsLocally(key: string, ids: string[]) {
|
|
14
|
+
setLocalStorageItem("recent_id_searches::" + key, JSON.stringify(ids));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export function getRecentIds(
|
|
18
|
-
return getLocalStorageJSON("recent_id_searches::" +
|
|
17
|
+
export function getRecentIds(key: string): string[] {
|
|
18
|
+
return getLocalStorageJSON("recent_id_searches::" + key, []);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function removeRecentIds(key: string, ids: string[]) {
|
|
22
|
+
const remaining = getRecentIds(key).filter(id => !ids.includes(id));
|
|
23
|
+
saveSearchedIdsLocally(key, remaining);
|
|
24
|
+
return remaining;
|
|
19
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from "react";
|
|
2
2
|
import { Highlight, themes } from "prism-react-renderer";
|
|
3
|
-
import { useModeController } from "../hooks";
|
|
4
|
-
import { jsonStringifyReplacer } from "../util/objects";
|
|
3
|
+
import { useModeController } from "../hooks/index.js";
|
|
4
|
+
import { jsonStringifyReplacer } from "../util/objects.js";
|
|
5
5
|
|
|
6
6
|
export function EntityJsonPreview({ values }: { values: object }) {
|
|
7
7
|
const code = JSON.stringify(values, jsonStringifyReplacer, "\t");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
|
|
4
|
-
import { Entity, EntityCollection, ResolvedProperty } from "../types";
|
|
4
|
+
import { Entity, EntityCollection, ResolvedProperty } from "../types/index.js";
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
getEntityImagePreviewPropertyKey,
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
getValueInPath,
|
|
12
12
|
IconForView,
|
|
13
13
|
resolveCollection
|
|
14
|
-
} from "../util";
|
|
14
|
+
} from "../util/index.js";
|
|
15
15
|
import { cls, defaultBorderMixin, IconButton, KeyboardTabIcon, Skeleton, Tooltip, Typography } from "@firecms/ui";
|
|
16
|
-
import { PreviewSize, PropertyPreview, SkeletonPropertyComponent } from "../preview";
|
|
16
|
+
import { PreviewSize, PropertyPreview, SkeletonPropertyComponent } from "../preview/index.js";
|
|
17
17
|
import {
|
|
18
18
|
useAuthController,
|
|
19
19
|
useCustomizationController,
|
|
20
20
|
useNavigationController,
|
|
21
21
|
useSideEntityController
|
|
22
|
-
} from "../hooks";
|
|
23
|
-
import { useAnalyticsController } from "../hooks/useAnalyticsController";
|
|
22
|
+
} from "../hooks/index.js";
|
|
23
|
+
import { useAnalyticsController } from "../hooks/useAnalyticsController.js";
|
|
24
24
|
|
|
25
25
|
export type EntityPreviewProps = {
|
|
26
26
|
size?: PreviewSize,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
|
-
import { Entity, EntityCollection, ResolvedEntityCollection, ResolvedProperties } from "../types";
|
|
3
|
-
import { resolveCollection } from "../util";
|
|
2
|
+
import { Entity, EntityCollection, ResolvedEntityCollection, ResolvedProperties } from "../types/index.js";
|
|
3
|
+
import { resolveCollection } from "../util/index.js";
|
|
4
4
|
import { cls, defaultBorderMixin, IconButton, OpenInNewIcon, Typography } from "@firecms/ui";
|
|
5
|
-
import { CustomizationController } from "../types/customization_controller";
|
|
6
|
-
import { useCustomizationController } from "../hooks/useCustomizationController";
|
|
7
|
-
import { useAuthController, useTranslation } from "../hooks";
|
|
8
|
-
import { PropertyCollectionView } from "./PropertyCollectionView";
|
|
5
|
+
import { CustomizationController } from "../types/customization_controller.js";
|
|
6
|
+
import { useCustomizationController } from "../hooks/useCustomizationController.js";
|
|
7
|
+
import { useAuthController, useTranslation } from "../hooks/index.js";
|
|
8
|
+
import { PropertyCollectionView } from "./PropertyCollectionView.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @group Components
|