@firecms/core 3.5.2 → 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/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 +1 -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 +1 -1
- 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/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-CNfJQcnh.js.map +1 -1
- 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-D0A5yaaJ.js.map +1 -1
- 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-CBtSvDVp.js.map +1 -1
- package/dist/hi-Delc4l61.js.map +1 -1
- 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.map +1 -1
- 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/it-CdsoaRVO.js.map +1 -1
- 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-DoTvWcwp.js.map +1 -1
- 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/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-DCfk8Nkq.js.map +1 -1
- 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/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_entity_controller.d.ts +4 -4
- package/dist/types/user.d.ts +1 -1
- 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 +1 -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/CollectionDataErrorBanner.tsx +1 -1
- package/src/components/EntityCollectionView/CollectionPathTitle.tsx +3 -3
- 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 +25 -25
- package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +6 -6
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +7 -7
- package/src/components/EntityCollectionView/EntityIdHeaderWidget.tsx +8 -8
- 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 +1 -1
- 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 +4 -4
- 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 +8 -8
- package/src/core/DefaultDrawer.tsx +7 -7
- package/src/core/DrawerNavigationGroup.tsx +4 -4
- package/src/core/EntityEditView.tsx +11 -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 +6 -6
- 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 +9 -9
- 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 +3 -3
- 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 +1 -1
- package/src/internal/useBuildSideEntityController.tsx +6 -6
- 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 +2 -2
- 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 +3 -3
- 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/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 +1 -1
- 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 +1 -1
- 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 +1 -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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.5.
|
|
4
|
+
"version": "3.5.3",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@dnd-kit/core": "^6.3.1",
|
|
54
54
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
55
55
|
"@dnd-kit/sortable": "^10.0.0",
|
|
56
|
-
"@firecms/formex": "3.5.
|
|
57
|
-
"@firecms/ui": "3.5.
|
|
56
|
+
"@firecms/formex": "3.5.3",
|
|
57
|
+
"@firecms/ui": "3.5.3",
|
|
58
58
|
"@floating-ui/dom": "^1.7.4",
|
|
59
59
|
"@radix-ui/react-portal": "^1.1.10",
|
|
60
60
|
"@radix-ui/react-slot": "^1.2.4",
|
|
@@ -159,7 +159,15 @@
|
|
|
159
159
|
},
|
|
160
160
|
"jest": {
|
|
161
161
|
"transform": {
|
|
162
|
-
"^.+\\.tsx?$":
|
|
162
|
+
"^.+\\.tsx?$": [
|
|
163
|
+
"ts-jest",
|
|
164
|
+
{
|
|
165
|
+
"tsconfig": {
|
|
166
|
+
"module": "commonjs",
|
|
167
|
+
"moduleResolution": "node"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
163
171
|
},
|
|
164
172
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
|
|
165
173
|
"testPathIgnorePatterns": [
|
|
@@ -179,6 +187,7 @@
|
|
|
179
187
|
"<rootDir>/test/setup_jsdom.js"
|
|
180
188
|
],
|
|
181
189
|
"moduleNameMapper": {
|
|
190
|
+
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
182
191
|
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js"
|
|
183
192
|
}
|
|
184
193
|
}
|
package/src/app/AppBar.tsx
CHANGED
package/src/app/Drawer.tsx
CHANGED
package/src/app/Scaffold.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { PropsWithChildren, useCallback } from "react";
|
|
2
2
|
import { cls, defaultBorderMixin, IconButton, MenuIcon, Sheet } from "@firecms/ui";
|
|
3
3
|
import equal from "react-fast-compare"
|
|
4
|
-
import { useLargeLayout } from "../hooks";
|
|
5
|
-
import { ErrorBoundary } from "../components";
|
|
6
|
-
import { LicenseBanner } from "../components/LicenseBanner";
|
|
7
|
-
import { AppContext } from "./useApp";
|
|
8
|
-
import { useTranslation } from "../hooks/useTranslation";
|
|
4
|
+
import { useLargeLayout } from "../hooks/index.js";
|
|
5
|
+
import { ErrorBoundary } from "../components/index.js";
|
|
6
|
+
import { LicenseBanner } from "../components/LicenseBanner.js";
|
|
7
|
+
import { AppContext } from "./useApp.js";
|
|
8
|
+
import { useTranslation } from "../hooks/useTranslation.js";
|
|
9
9
|
|
|
10
10
|
export const DRAWER_WIDTH = 280;
|
|
11
11
|
|
package/src/app/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./Drawer";
|
|
2
|
-
export * from "./AppBar";
|
|
3
|
-
export * from "./Scaffold";
|
|
4
|
-
export * from "./useApp";
|
|
1
|
+
export * from "./Drawer.js";
|
|
2
|
+
export * from "./AppBar.js";
|
|
3
|
+
export * from "./Scaffold.js";
|
|
4
|
+
export * from "./useApp.js";
|
|
@@ -12,8 +12,8 @@ import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
|
12
12
|
|
|
13
13
|
import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
14
14
|
import { CSS } from "@dnd-kit/utilities";
|
|
15
|
-
import { getHashValue } from "../util";
|
|
16
|
-
import { useTranslation } from "../hooks";
|
|
15
|
+
import { getHashValue } from "../util/index.js";
|
|
16
|
+
import { useTranslation } from "../hooks/index.js";
|
|
17
17
|
import {
|
|
18
18
|
AddIcon,
|
|
19
19
|
Button,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FilterListOffIcon, Button, Tooltip } from "@firecms/ui";
|
|
2
|
-
import { EntityTableController } from "../types";
|
|
3
|
-
import { useTranslation } from "../hooks";
|
|
2
|
+
import { EntityTableController } from "../types/index.js";
|
|
3
|
+
import { useTranslation } from "../hooks/index.js";
|
|
4
4
|
|
|
5
5
|
export function ClearFilterSortButton({
|
|
6
6
|
tableController,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
import { Button, Dialog, DialogActions, DialogContent, DialogTitle, LoadingButton } from "@firecms/ui";
|
|
4
|
-
import { useTranslation } from "../hooks/useTranslation";
|
|
4
|
+
import { useTranslation } from "../hooks/useTranslation.js";
|
|
5
5
|
|
|
6
6
|
export function ConfirmationDialog({
|
|
7
7
|
open,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Entity, EntityCallbacks, EntityCollection } from "../types";
|
|
1
|
+
import { Entity, EntityCallbacks, EntityCollection } from "../types/index.js";
|
|
2
2
|
import React, { useCallback, useMemo, useState } from "react";
|
|
3
3
|
import { Button, CircularProgress, Dialog, DialogActions, DialogContent, DialogTitle } from "@firecms/ui";
|
|
4
4
|
import {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
useDataSource,
|
|
9
9
|
useFireCMSContext,
|
|
10
10
|
useSnackbarController
|
|
11
|
-
} from "../hooks";
|
|
12
|
-
import { resolveCollection } from "../util";
|
|
13
|
-
import { EntityView } from "./EntityView";
|
|
14
|
-
import { useTranslation } from "../hooks/useTranslation";
|
|
11
|
+
} from "../hooks/index.js";
|
|
12
|
+
import { resolveCollection } from "../util/index.js";
|
|
13
|
+
import { EntityView } from "./EntityView.js";
|
|
14
|
+
import { useTranslation } from "../hooks/useTranslation.js";
|
|
15
15
|
|
|
16
16
|
export interface DeleteEntityDialogProps<M extends Record<string, any>> {
|
|
17
17
|
entityOrEntitiesToDelete?: Entity<M> | Entity<M>[],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { MouseEvent, useCallback } from "react";
|
|
2
2
|
|
|
3
|
-
import { CollectionSize, Entity, EntityAction, EntityCollection, SelectionController } from "../../types";
|
|
3
|
+
import { CollectionSize, Entity, EntityAction, EntityCollection, SelectionController } from "../../types/index.js";
|
|
4
4
|
import { Badge, Checkbox, cls, IconButton, Menu, MenuItem, MoreVertIcon, Skeleton, Tooltip } from "@firecms/ui";
|
|
5
|
-
import { useFireCMSContext, useLargeLayout } from "../../hooks";
|
|
6
|
-
import { entityCacheKey, getEntityFromCache } from "../../util/entity_cache";
|
|
7
|
-
import { getLocalChangesBackup } from "../../util";
|
|
8
|
-
import { getChanges } from "../../form/EntityForm";
|
|
5
|
+
import { useFireCMSContext, useLargeLayout } from "../../hooks/index.js";
|
|
6
|
+
import { entityCacheKey, getEntityFromCache } from "../../util/entity_cache.js";
|
|
7
|
+
import { getLocalChangesBackup } from "../../util/index.js";
|
|
8
|
+
import { getChanges } from "../../form/EntityForm.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useRef } from "react";
|
|
2
|
-
import { AdditionalFieldDelegate, CollectionSize, Entity, FireCMSContext, User } from "../../types";
|
|
3
|
-
import { PropertyTableCell } from "./PropertyTableCell";
|
|
4
|
-
import { ErrorBoundary } from "../ErrorBoundary";
|
|
5
|
-
import { useFireCMSContext, useLargeLayout } from "../../hooks";
|
|
6
|
-
import { CellRendererParams, VirtualTableColumn } from "../VirtualTable";
|
|
7
|
-
import { getValueInPath } from "../../util";
|
|
8
|
-
import { EntityCollectionRowActions } from "./EntityCollectionRowActions";
|
|
9
|
-
import { CollectionTableToolbar } from "./internal/CollectionTableToolbar";
|
|
10
|
-
import { EntityCollectionTableProps } from "./EntityCollectionTableProps";
|
|
11
|
-
import { EntityTableCell } from "./internal/EntityTableCell";
|
|
12
|
-
import { CustomFieldValidator } from "../../form/validation";
|
|
13
|
-
import { renderSkeletonText } from "../../preview";
|
|
14
|
-
import { propertiesToColumns } from "./column_utils";
|
|
15
|
-
import { ErrorView } from "../ErrorView";
|
|
16
|
-
import { SelectableTable } from "../SelectableTable/SelectableTable";
|
|
2
|
+
import { AdditionalFieldDelegate, CollectionSize, Entity, FireCMSContext, User } from "../../types/index.js";
|
|
3
|
+
import { PropertyTableCell } from "./PropertyTableCell.js";
|
|
4
|
+
import { ErrorBoundary } from "../ErrorBoundary.js";
|
|
5
|
+
import { useFireCMSContext, useLargeLayout } from "../../hooks/index.js";
|
|
6
|
+
import { CellRendererParams, VirtualTableColumn } from "../VirtualTable/index.js";
|
|
7
|
+
import { getValueInPath } from "../../util/index.js";
|
|
8
|
+
import { EntityCollectionRowActions } from "./EntityCollectionRowActions.js";
|
|
9
|
+
import { CollectionTableToolbar } from "./internal/CollectionTableToolbar.js";
|
|
10
|
+
import { EntityCollectionTableProps } from "./EntityCollectionTableProps.js";
|
|
11
|
+
import { EntityTableCell } from "./internal/EntityTableCell.js";
|
|
12
|
+
import { CustomFieldValidator } from "../../form/validation.js";
|
|
13
|
+
import { renderSkeletonText } from "../../preview/index.js";
|
|
14
|
+
import { propertiesToColumns } from "./column_utils.js";
|
|
15
|
+
import { ErrorView } from "../ErrorView.js";
|
|
16
|
+
import { SelectableTable } from "../SelectableTable/SelectableTable.js";
|
|
17
17
|
import { cls } from "@firecms/ui";
|
|
18
|
-
import { getRowHeight } from "../common/table_height";
|
|
18
|
+
import { getRowHeight } from "../common/table_height.js";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* This component is in charge of rendering a collection table with a high
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
ResolvedProperty,
|
|
10
10
|
SelectionController,
|
|
11
11
|
User
|
|
12
|
-
} from "../../types";
|
|
13
|
-
import { OnCellValueChange, OnColumnResizeParams, UniqueFieldValidator } from "../common/types";
|
|
14
|
-
import { VirtualTableColumn } from "../VirtualTable";
|
|
12
|
+
} from "../../types/index.js";
|
|
13
|
+
import { OnCellValueChange, OnColumnResizeParams, UniqueFieldValidator } from "../common/types.js";
|
|
14
|
+
import { VirtualTableColumn } from "../VirtualTable/index.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @group Collection components
|
|
@@ -10,30 +10,30 @@ import {
|
|
|
10
10
|
ResolvedProperty,
|
|
11
11
|
ResolvedStringProperty,
|
|
12
12
|
StringProperty
|
|
13
|
-
} from "../../types";
|
|
13
|
+
} from "../../types/index.js";
|
|
14
14
|
|
|
15
|
-
import { VirtualTableInput } from "../VirtualTable/fields/VirtualTableInput";
|
|
16
|
-
import { VirtualTableSelect } from "../VirtualTable/fields/VirtualTableSelect";
|
|
17
|
-
import { VirtualTableNumberInput } from "../VirtualTable/fields/VirtualTableNumberInput";
|
|
18
|
-
import { VirtualTableSwitch } from "../VirtualTable/fields/VirtualTableSwitch";
|
|
19
|
-
import { VirtualTableDateField } from "../VirtualTable/fields/VirtualTableDateField";
|
|
20
|
-
import { VirtualTableUserSelect } from "../VirtualTable/fields/VirtualTableUserSelect";
|
|
15
|
+
import { VirtualTableInput } from "../VirtualTable/fields/VirtualTableInput.js";
|
|
16
|
+
import { VirtualTableSelect } from "../VirtualTable/fields/VirtualTableSelect.js";
|
|
17
|
+
import { VirtualTableNumberInput } from "../VirtualTable/fields/VirtualTableNumberInput.js";
|
|
18
|
+
import { VirtualTableSwitch } from "../VirtualTable/fields/VirtualTableSwitch.js";
|
|
19
|
+
import { VirtualTableDateField } from "../VirtualTable/fields/VirtualTableDateField.js";
|
|
20
|
+
import { VirtualTableUserSelect } from "../VirtualTable/fields/VirtualTableUserSelect.js";
|
|
21
21
|
|
|
22
|
-
import { TableStorageUpload } from "./fields/TableStorageUpload";
|
|
23
|
-
import { TableReferenceField } from "./fields/TableReferenceField";
|
|
22
|
+
import { TableStorageUpload } from "./fields/TableStorageUpload.js";
|
|
23
|
+
import { TableReferenceField } from "./fields/TableReferenceField.js";
|
|
24
24
|
|
|
25
|
-
import { PropertyPreview } from "../../preview";
|
|
26
|
-
import { getPreviewSizeFrom } from "../../preview/util";
|
|
27
|
-
import { isReadOnly } from "../../util";
|
|
25
|
+
import { PropertyPreview } from "../../preview/index.js";
|
|
26
|
+
import { getPreviewSizeFrom } from "../../preview/util.js";
|
|
27
|
+
import { isReadOnly } from "../../util/index.js";
|
|
28
28
|
|
|
29
|
-
import { CustomFieldValidator, mapPropertyToYup } from "../../form/validation";
|
|
29
|
+
import { CustomFieldValidator, mapPropertyToYup } from "../../form/validation.js";
|
|
30
30
|
|
|
31
|
-
import { EntityTableCell } from "./internal/EntityTableCell";
|
|
32
|
-
import { EntityTableCellActions } from "./internal/EntityTableCellActions";
|
|
31
|
+
import { EntityTableCell } from "./internal/EntityTableCell.js";
|
|
32
|
+
import { EntityTableCellActions } from "./internal/EntityTableCellActions.js";
|
|
33
33
|
|
|
34
|
-
import { useSelectableTableController } from "../SelectableTable/SelectableTableContext";
|
|
35
|
-
import { useClearRestoreValue } from "../../form/useClearRestoreValue";
|
|
36
|
-
import { getRowHeight } from "../common/table_height";
|
|
34
|
+
import { useSelectableTableController } from "../SelectableTable/SelectableTableContext.js";
|
|
35
|
+
import { useClearRestoreValue } from "../../form/useClearRestoreValue.js";
|
|
36
|
+
import { getRowHeight } from "../common/table_height.js";
|
|
37
37
|
|
|
38
38
|
export interface PropertyTableCellProps<T extends CMSType> {
|
|
39
39
|
propertyKey: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { getTableCellAlignment, getTablePropertyColumnWidth } from "./internal/common";
|
|
3
|
-
import { FilterValues, ResolvedProperties, ResolvedProperty } from "../../types";
|
|
4
|
-
import { VirtualTableColumn } from "../VirtualTable";
|
|
5
|
-
import { getIconForProperty, getResolvedPropertyInPath, isDataTypeFilterable } from "../../util";
|
|
6
|
-
import { getColumnKeysForProperty } from "../common/useColumnsIds";
|
|
2
|
+
import { getTableCellAlignment, getTablePropertyColumnWidth } from "./internal/common.js";
|
|
3
|
+
import { FilterValues, ResolvedProperties, ResolvedProperty } from "../../types/index.js";
|
|
4
|
+
import { VirtualTableColumn } from "../VirtualTable/index.js";
|
|
5
|
+
import { getIconForProperty, getResolvedPropertyInPath, isDataTypeFilterable } from "../../util/index.js";
|
|
6
|
+
import { getColumnKeysForProperty } from "../common/useColumnsIds.js";
|
|
7
7
|
|
|
8
8
|
export function buildIdColumn(largeLayout?: boolean): VirtualTableColumn {
|
|
9
9
|
return {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React, { useCallback } from "react";
|
|
2
2
|
import equal from "react-fast-compare"
|
|
3
3
|
|
|
4
|
-
import { ReferencePreview } from "../../../preview";
|
|
5
|
-
import { CollectionSize, Entity, EntityCollection, EntityReference, FilterValues } from "../../../types";
|
|
4
|
+
import { ReferencePreview } from "../../../preview/index.js";
|
|
5
|
+
import { CollectionSize, Entity, EntityCollection, EntityReference, FilterValues } from "../../../types/index.js";
|
|
6
6
|
|
|
7
|
-
import { getPreviewSizeFrom } from "../../../preview/util";
|
|
8
|
-
import { getReferenceFrom, IconForView } from "../../../util";
|
|
9
|
-
import { useCustomizationController, useNavigationController, useReferenceDialog } from "../../../hooks";
|
|
10
|
-
import { ErrorView } from "../../ErrorView";
|
|
7
|
+
import { getPreviewSizeFrom } from "../../../preview/util.js";
|
|
8
|
+
import { getReferenceFrom, IconForView } from "../../../util/index.js";
|
|
9
|
+
import { useCustomizationController, useNavigationController, useReferenceDialog } from "../../../hooks/index.js";
|
|
10
|
+
import { ErrorView } from "../../ErrorView.js";
|
|
11
11
|
import { cls, EditIcon } from "@firecms/ui";
|
|
12
|
-
import { EntityPreviewContainer } from "../../EntityPreview";
|
|
13
|
-
import { useTranslation } from "../../../hooks";
|
|
12
|
+
import { EntityPreviewContainer } from "../../EntityPreview.js";
|
|
13
|
+
import { useTranslation } from "../../../hooks/index.js";
|
|
14
14
|
|
|
15
15
|
type TableReferenceFieldProps = {
|
|
16
16
|
name: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
|
|
4
|
-
import { Entity, ResolvedArrayProperty, ResolvedStringProperty, StorageConfig } from "../../../types";
|
|
4
|
+
import { Entity, ResolvedArrayProperty, ResolvedStringProperty, StorageConfig } from "../../../types/index.js";
|
|
5
5
|
import { useDropzone } from "react-dropzone";
|
|
6
|
-
import { PreviewSize, PropertyPreview } from "../../../preview";
|
|
7
|
-
import { ErrorBoundary } from "../../ErrorBoundary";
|
|
8
|
-
import { useSnackbarController, useStorageSource } from "../../../hooks";
|
|
9
|
-
import { getThumbnailMeasure } from "../../../preview/util";
|
|
10
|
-
import { StorageFieldItem, useStorageUploadController } from "../../../util/useStorageUploadController";
|
|
11
|
-
import { StorageUploadProgress } from "../../../form/components/StorageUploadProgress";
|
|
6
|
+
import { PreviewSize, PropertyPreview } from "../../../preview/index.js";
|
|
7
|
+
import { ErrorBoundary } from "../../ErrorBoundary.js";
|
|
8
|
+
import { useSnackbarController, useStorageSource } from "../../../hooks/index.js";
|
|
9
|
+
import { getThumbnailMeasure } from "../../../preview/util.js";
|
|
10
|
+
import { StorageFieldItem, useStorageUploadController } from "../../../util/useStorageUploadController.js";
|
|
11
|
+
import { StorageUploadProgress } from "../../../form/components/StorageUploadProgress.js";
|
|
12
12
|
import { cls, EditIcon, IconButton, Typography } from "@firecms/ui";
|
|
13
|
-
import { EntityTableCellActions } from "../internal/EntityTableCellActions";
|
|
13
|
+
import { EntityTableCellActions } from "../internal/EntityTableCellActions.js";
|
|
14
14
|
|
|
15
15
|
const dropZoneClasses = "max-w-full box-border relative pt-[2px] items-center border border-transparent outline-none rounded-md duration-200 ease-[cubic-bezier(0.4,0,0.2,1)] focus:border-primary-solid";
|
|
16
16
|
const activeDropClasses = "pt-0 border-2 border-solid"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export {
|
|
2
2
|
EntityCollectionTable
|
|
3
|
-
} from "./EntityCollectionTable";
|
|
3
|
+
} from "./EntityCollectionTable.js";
|
|
4
4
|
|
|
5
5
|
export type {
|
|
6
6
|
EntityCollectionTableProps,
|
|
7
|
-
} from "./EntityCollectionTableProps";
|
|
7
|
+
} from "./EntityCollectionTableProps.js";
|
|
8
8
|
|
|
9
|
-
export * from "./PropertyTableCell";
|
|
10
|
-
export * from "./EntityCollectionRowActions";
|
|
11
|
-
export * from "../common/useDataSourceTableController";
|
|
12
|
-
export * from "./column_utils";
|
|
9
|
+
export * from "./PropertyTableCell.js";
|
|
10
|
+
export * from "./EntityCollectionRowActions.js";
|
|
11
|
+
export * from "../common/useDataSourceTableController.js";
|
|
12
|
+
export * from "./column_utils.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
defaultBorderMixin,
|
|
7
7
|
SearchBar
|
|
8
8
|
} from "@firecms/ui";
|
|
9
|
-
import { useLargeLayout, useTranslation } from "../../../hooks";
|
|
9
|
+
import { useLargeLayout, useTranslation } from "../../../hooks/index.js";
|
|
10
10
|
|
|
11
11
|
interface CollectionTableToolbarProps {
|
|
12
12
|
loading: boolean;
|
|
@@ -3,9 +3,9 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from "react"
|
|
|
3
3
|
import useMeasure from "react-use-measure";
|
|
4
4
|
|
|
5
5
|
import { cls, DoNotDisturbOnIcon, Tooltip } from "@firecms/ui";
|
|
6
|
-
import { ErrorBoundary } from "../../../components";
|
|
7
|
-
import { getRowHeight, TableSize } from "../../common/table_height";
|
|
8
|
-
import { ErrorTooltip } from "../../ErrorTooltip";
|
|
6
|
+
import { ErrorBoundary } from "../../../components/index.js";
|
|
7
|
+
import { getRowHeight, TableSize } from "../../common/table_height.js";
|
|
8
|
+
import { ErrorTooltip } from "../../ErrorTooltip.js";
|
|
9
9
|
|
|
10
10
|
interface EntityTableCellProps {
|
|
11
11
|
children: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrorIcon, IconButton } from "@firecms/ui";
|
|
2
|
-
import { ErrorTooltip } from "../../ErrorTooltip";
|
|
2
|
+
import { ErrorTooltip } from "../../ErrorTooltip.js";
|
|
3
3
|
import { useCallback, useEffect, useRef } from "react";
|
|
4
4
|
|
|
5
5
|
export interface EntityTableCellActionsProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityCollection, Property, ResolvedArrayProperty, ResolvedProperty } from "../../../types";
|
|
1
|
+
import { EntityCollection, Property, ResolvedArrayProperty, ResolvedProperty } from "../../../types/index.js";
|
|
2
2
|
|
|
3
3
|
export function getTableCellAlignment(property: Property | ResolvedProperty): "right" | "left" | "center" {
|
|
4
4
|
if (property.dataType === "boolean") {
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
ResolvedEntityCollection,
|
|
13
13
|
ResolvedProperties,
|
|
14
14
|
ResolvedProperty
|
|
15
|
-
} from "../../../../types";
|
|
15
|
+
} from "../../../../types/index.js";
|
|
16
16
|
import { Formex, useCreateFormex } from "@firecms/formex";
|
|
17
|
-
import { useDraggable } from "./useDraggable";
|
|
18
|
-
import { CustomFieldValidator, getYupEntitySchema } from "../../../../form/validation";
|
|
19
|
-
import { useWindowSize } from "./useWindowSize";
|
|
20
|
-
import { getPropertyInPath, isReadOnly, resolveCollection } from "../../../../util";
|
|
17
|
+
import { useDraggable } from "./useDraggable.js";
|
|
18
|
+
import { CustomFieldValidator, getYupEntitySchema } from "../../../../form/validation.js";
|
|
19
|
+
import { useWindowSize } from "./useWindowSize.js";
|
|
20
|
+
import { getPropertyInPath, isReadOnly, resolveCollection } from "../../../../util/index.js";
|
|
21
21
|
import { Button, CloseIcon, DialogActions, IconButton, Typography } from "@firecms/ui";
|
|
22
|
-
import { PropertyFieldBinding, yupToFormErrors } from "../../../../form";
|
|
23
|
-
import { useAuthController, useCustomizationController, useDataSource, useFireCMSContext, useTranslation } from "../../../../hooks";
|
|
24
|
-
import { OnCellValueChangeParams } from "../../../common";
|
|
22
|
+
import { PropertyFieldBinding, yupToFormErrors } from "../../../../form/index.js";
|
|
23
|
+
import { useAuthController, useCustomizationController, useDataSource, useFireCMSContext, useTranslation } from "../../../../hooks/index.js";
|
|
24
|
+
import { OnCellValueChangeParams } from "../../../common/index.js";
|
|
25
25
|
|
|
26
26
|
interface PopupFormFieldProps<M extends Record<string, any>> {
|
|
27
27
|
customFieldValidator?: CustomFieldValidator;
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
useSensors
|
|
12
12
|
} from "@dnd-kit/core";
|
|
13
13
|
import { arrayMove, horizontalListSortingStrategy, SortableContext } from "@dnd-kit/sortable";
|
|
14
|
-
import { BoardColumn } from "./BoardColumn";
|
|
15
|
-
import { BoardItem, BoardItemMap, BoardItemViewProps, BoardProps } from "./board_types";
|
|
14
|
+
import { BoardColumn } from "./BoardColumn.js";
|
|
15
|
+
import { BoardItem, BoardItemMap, BoardItemViewProps, BoardProps } from "./board_types.js";
|
|
16
16
|
import { cls } from "@firecms/ui";
|
|
17
17
|
|
|
18
18
|
export function Board<M extends Record<string, any>, COLUMN extends string>({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { memo, useMemo } from "react";
|
|
2
2
|
import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
3
3
|
import { CSS } from "@dnd-kit/utilities";
|
|
4
|
-
import { BoardSortableList } from "./BoardSortableList";
|
|
5
|
-
import { BoardColumnTitle } from "./BoardColumnTitle";
|
|
6
|
-
import { BoardItem, BoardItemViewProps } from "./board_types";
|
|
4
|
+
import { BoardSortableList } from "./BoardSortableList.js";
|
|
5
|
+
import { BoardColumnTitle } from "./BoardColumnTitle.js";
|
|
6
|
+
import { BoardItem, BoardItemViewProps } from "./board_types.js";
|
|
7
7
|
import { AddIcon, ChipColorKey, ChipColorScheme, cls, defaultBorderMixin, IconButton } from "@firecms/ui";
|
|
8
8
|
|
|
9
9
|
export interface BoardColumnProps<M extends Record<string, any>> {
|
|
@@ -3,8 +3,8 @@ import { useDroppable } from "@dnd-kit/core";
|
|
|
3
3
|
import { useSortable } from "@dnd-kit/sortable";
|
|
4
4
|
import { CSS } from "@dnd-kit/utilities";
|
|
5
5
|
import { CircularProgress, cls } from "@firecms/ui";
|
|
6
|
-
import { BoardItem, BoardItemViewProps } from "./board_types";
|
|
7
|
-
import { useTranslation } from "../../hooks";
|
|
6
|
+
import { BoardItem, BoardItemViewProps } from "./board_types.js";
|
|
7
|
+
import { useTranslation } from "../../hooks/index.js";
|
|
8
8
|
|
|
9
9
|
interface BoardSortableListProps<M extends Record<string, any>> {
|
|
10
10
|
columnId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Typography, IconButton, RefreshIcon, Button, Tooltip } from "@firecms/ui";
|
|
3
|
-
import { useTranslation } from "../../hooks";
|
|
3
|
+
import { useTranslation } from "../../hooks/index.js";
|
|
4
4
|
|
|
5
5
|
export function CollectionDataErrorBanner({ error, onRetry }: { error?: Error, onRetry?: () => void }) {
|
|
6
6
|
const { t } = useTranslation();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { cls, Typography } from "@firecms/ui";
|
|
3
|
-
import { useNavigationController } from "../../hooks/useNavigationController";
|
|
4
|
-
import { getNavigationEntriesFromPath } from "../../util/navigation_from_path";
|
|
5
|
-
import { CollectionCountBadge } from "./CollectionCountBadge";
|
|
3
|
+
import { useNavigationController } from "../../hooks/useNavigationController.js";
|
|
4
|
+
import { getNavigationEntriesFromPath } from "../../util/navigation_from_path.js";
|
|
5
|
+
import { CollectionCountBadge } from "./CollectionCountBadge.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A name and its entity count, under what is above it: breadcrumbs folded on two lines
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React, { memo, useCallback, useMemo } from "react";
|
|
2
|
-
import { Entity, EntityCollection, ResolvedProperty } from "../../types";
|
|
2
|
+
import { Entity, EntityCollection, ResolvedProperty } from "../../types/index.js";
|
|
3
3
|
import {
|
|
4
4
|
getEntityImagePreviewPropertyKey,
|
|
5
5
|
getEntityTitlePropertyKey,
|
|
6
6
|
getValueInPath,
|
|
7
7
|
IconForView,
|
|
8
8
|
resolveCollection
|
|
9
|
-
} from "../../util";
|
|
9
|
+
} from "../../util/index.js";
|
|
10
10
|
import { Checkbox, cls, defaultBorderMixin } from "@firecms/ui";
|
|
11
|
-
import { PropertyPreview } from "../../preview";
|
|
12
|
-
import { useAuthController, useCustomizationController } from "../../hooks";
|
|
13
|
-
import { BoardItemViewProps } from "./board_types";
|
|
11
|
+
import { PropertyPreview } from "../../preview/index.js";
|
|
12
|
+
import { useAuthController, useCustomizationController } from "../../hooks/index.js";
|
|
13
|
+
import { BoardItemViewProps } from "./board_types.js";
|
|
14
14
|
|
|
15
15
|
export type EntityBoardCardProps<M extends Record<string, any> = any> = BoardItemViewProps<M> & {
|
|
16
16
|
collection: EntityCollection<M>;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Entity,
|
|
5
5
|
EntityCollection,
|
|
6
6
|
ResolvedProperty
|
|
7
|
-
} from "../../types";
|
|
7
|
+
} from "../../types/index.js";
|
|
8
8
|
import {
|
|
9
9
|
getEntityImagePreviewPropertyKey,
|
|
10
10
|
getEntityPreviewKeys,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getValueInPath,
|
|
13
13
|
IconForView,
|
|
14
14
|
resolveCollection
|
|
15
|
-
} from "../../util";
|
|
15
|
+
} from "../../util/index.js";
|
|
16
16
|
import {
|
|
17
17
|
Card,
|
|
18
18
|
Checkbox,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
Tooltip,
|
|
24
24
|
Typography
|
|
25
25
|
} from "@firecms/ui";
|
|
26
|
-
import { PropertyPreview, SkeletonPropertyComponent } from "../../preview";
|
|
26
|
+
import { PropertyPreview, SkeletonPropertyComponent } from "../../preview/index.js";
|
|
27
27
|
import {
|
|
28
28
|
useAuthController,
|
|
29
29
|
useCustomizationController,
|
|
30
30
|
useNavigationController,
|
|
31
31
|
useSideEntityController
|
|
32
|
-
} from "../../hooks";
|
|
33
|
-
import { useAnalyticsController } from "../../hooks/useAnalyticsController";
|
|
32
|
+
} from "../../hooks/index.js";
|
|
33
|
+
import { useAnalyticsController } from "../../hooks/useAnalyticsController.js";
|
|
34
34
|
|
|
35
35
|
export type EntityCardProps<M extends Record<string, any> = any> = {
|
|
36
36
|
entity: Entity<M>;
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
FilterValues,
|
|
8
8
|
ResolvedStringProperty,
|
|
9
9
|
SelectionController
|
|
10
|
-
} from "../../types";
|
|
11
|
-
import { Board } from "./Board";
|
|
12
|
-
import { BoardItem, BoardItemViewProps, ColumnLoadingState } from "./board_types";
|
|
13
|
-
import { EntityBoardCard } from "./EntityBoardCard";
|
|
10
|
+
} from "../../types/index.js";
|
|
11
|
+
import { Board } from "./Board.js";
|
|
12
|
+
import { BoardItem, BoardItemViewProps, ColumnLoadingState } from "./board_types.js";
|
|
13
|
+
import { EntityBoardCard } from "./EntityBoardCard.js";
|
|
14
14
|
import {
|
|
15
15
|
Button,
|
|
16
16
|
ChipColorKey,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
getColorSchemeForSeed,
|
|
23
23
|
Typography
|
|
24
24
|
} from "@firecms/ui";
|
|
25
|
-
import { getPropertyInPath, resolveCollection, resolveEnumValues } from "../../util";
|
|
25
|
+
import { getPropertyInPath, resolveCollection, resolveEnumValues } from "../../util/index.js";
|
|
26
26
|
import {
|
|
27
27
|
saveEntityWithCallbacks,
|
|
28
28
|
useAuthController,
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
useDataSource,
|
|
31
31
|
useFireCMSContext,
|
|
32
32
|
useSideEntityController
|
|
33
|
-
} from "../../hooks";
|
|
34
|
-
import { useAnalyticsController } from "../../hooks/useAnalyticsController";
|
|
35
|
-
import { SaveEntityProps } from "../../types/datasource";
|
|
33
|
+
} from "../../hooks/index.js";
|
|
34
|
+
import { useAnalyticsController } from "../../hooks/useAnalyticsController.js";
|
|
35
|
+
import { SaveEntityProps } from "../../types/datasource.js";
|
|
36
36
|
import { setIn } from "@firecms/formex";
|
|
37
|
-
import { useBoardDataController } from "./useBoardDataController";
|
|
38
|
-
import { CollectionDataErrorBanner } from "./CollectionDataErrorBanner";
|
|
39
|
-
import { useTranslation } from "../../hooks/useTranslation";
|
|
37
|
+
import { useBoardDataController } from "./useBoardDataController.js";
|
|
38
|
+
import { CollectionDataErrorBanner } from "./CollectionDataErrorBanner.js";
|
|
39
|
+
import { useTranslation } from "../../hooks/useTranslation.js";
|
|
40
40
|
|
|
41
41
|
export type EntityCollectionBoardViewProps<M extends Record<string, any> = any> = {
|
|
42
42
|
collection: EntityCollection<M>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef } from "react";
|
|
2
|
-
import { CollectionSize, Entity, EntityCollection, EntityTableController, SelectionController } from "../../types";
|
|
3
|
-
import { EntityCard } from "./EntityCard";
|
|
2
|
+
import { CollectionSize, Entity, EntityCollection, EntityTableController, SelectionController } from "../../types/index.js";
|
|
3
|
+
import { EntityCard } from "./EntityCard.js";
|
|
4
4
|
import { CircularProgress, cls, Typography } from "@firecms/ui";
|
|
5
|
-
import { useAuthController, useCustomizationController, useTranslation } from "../../hooks";
|
|
5
|
+
import { useAuthController, useCustomizationController, useTranslation } from "../../hooks/index.js";
|
|
6
6
|
|
|
7
7
|
export type EntityCollectionCardViewProps<M extends Record<string, any> = any> = {
|
|
8
8
|
collection: EntityCollection<M>;
|