@firecms/core 3.3.0-canary.040c21c → 3.3.0-canary.1e1cce9
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/components/EntityCollectionTable/column_utils.d.ts +4 -3
- package/dist/components/EntityCollectionView/FiltersDialog.d.ts +2 -1
- package/dist/components/EntityPreview.d.ts +3 -1
- package/dist/index.es.js +408 -297
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +408 -297
- package/dist/index.umd.js.map +1 -1
- package/dist/types/collections.d.ts +17 -0
- package/dist/types/translations.d.ts +11 -3
- package/dist/util/entities.d.ts +1 -0
- package/package.json +5 -5
- package/src/app/Scaffold.tsx +13 -1
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +2 -1
- package/src/components/EntityCollectionTable/column_utils.tsx +11 -19
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +5 -2
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +4 -1
- package/src/components/EntityCollectionView/FiltersDialog.tsx +39 -28
- package/src/components/EntityPreview.tsx +41 -40
- package/src/components/HomePage/NavigationCardBinding.tsx +6 -3
- package/src/components/ReferenceWidget.tsx +1 -1
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +2 -2
- package/src/components/common/useDataSourceTableController.tsx +41 -4
- package/src/core/DefaultDrawer.tsx +1 -1
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +1 -1
- package/src/hooks/useBuildNavigationController.tsx +5 -1
- package/src/locales/de.ts +13 -5
- package/src/locales/en.ts +13 -5
- package/src/locales/es.ts +13 -5
- package/src/locales/fr.ts +13 -5
- package/src/locales/hi.ts +13 -5
- package/src/locales/it.ts +13 -5
- package/src/locales/pt.ts +13 -5
- package/src/types/collections.ts +18 -0
- package/src/types/translations.ts +11 -3
- package/src/util/entities.ts +11 -0
- package/src/util/resolutions.ts +3 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ResolvedProperties, ResolvedProperty } from "../../types";
|
|
3
3
|
import { VirtualTableColumn } from "../VirtualTable";
|
|
4
4
|
export declare function buildIdColumn(largeLayout?: boolean): VirtualTableColumn;
|
|
5
5
|
export interface PropertiesToColumnsParams<M extends Record<string, any>> {
|
|
6
6
|
properties: ResolvedProperties<M>;
|
|
7
7
|
sortable?: boolean;
|
|
8
|
-
|
|
8
|
+
forcedFilters?: (keyof M)[];
|
|
9
|
+
allowedFilters?: (keyof M)[];
|
|
9
10
|
AdditionalHeaderWidget?: React.ComponentType<{
|
|
10
11
|
property: ResolvedProperty;
|
|
11
12
|
propertyKey: string;
|
|
12
13
|
onHover: boolean;
|
|
13
14
|
}>;
|
|
14
15
|
}
|
|
15
|
-
export declare function propertiesToColumns<M extends Record<string, any>>({ properties, sortable,
|
|
16
|
+
export declare function propertiesToColumns<M extends Record<string, any>>({ properties, sortable, forcedFilters, AdditionalHeaderWidget, allowedFilters }: PropertiesToColumnsParams<M>): VirtualTableColumn[];
|
|
@@ -7,9 +7,10 @@ export interface FiltersDialogProps {
|
|
|
7
7
|
filterValues: FilterValues<any> | undefined;
|
|
8
8
|
setFilterValues: (filterValues?: FilterValues<any>) => void;
|
|
9
9
|
forceFilter?: FilterValues<any>;
|
|
10
|
+
allowedFilters?: string[];
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Dialog that displays all filterable properties from a collection
|
|
13
14
|
* and allows setting filter values for each.
|
|
14
15
|
*/
|
|
15
|
-
export declare function FiltersDialog({ open, onOpenChange, properties, filterValues, setFilterValues, forceFilter }: FiltersDialogProps): React.JSX.Element;
|
|
16
|
+
export declare function FiltersDialog({ open, onOpenChange, properties, filterValues, setFilterValues, forceFilter, allowedFilters }: FiltersDialogProps): React.JSX.Element;
|
|
@@ -29,4 +29,6 @@ export type EntityPreviewContainerProps = {
|
|
|
29
29
|
style?: React.CSSProperties;
|
|
30
30
|
onClick?: (e: React.SyntheticEvent) => void;
|
|
31
31
|
};
|
|
32
|
-
export declare
|
|
32
|
+
export declare function EntityPreviewContainer({ children, hover, onClick, size, style, className, fullwidth, ref }: EntityPreviewContainerProps & {
|
|
33
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
34
|
+
}): React.JSX.Element;
|