@firecms/core 3.0.0-canary.54 → 3.0.0-canary.56
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/fields/TableReferenceField.d.ts +2 -0
- package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +2 -2
- package/dist/components/EntityPreview.d.ts +3 -2
- package/dist/components/FireCMSAppBar.d.ts +2 -1
- package/dist/components/ReferenceWidget.d.ts +3 -1
- package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +2 -1
- package/dist/components/VirtualTable/VirtualTableProps.d.ts +1 -6
- package/dist/components/VirtualTable/types.d.ts +3 -3
- package/dist/components/common/table_height.d.ts +5 -0
- package/dist/index.es.js +2990 -2947
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/preview/components/ReferencePreview.d.ts +2 -1
- package/dist/types/collections.d.ts +1 -1
- package/dist/types/properties.d.ts +8 -0
- package/dist/util/objects.d.ts +1 -1
- package/package.json +4 -4
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +1 -1
- package/src/components/EntityCollectionTable/PropertyTableCell.tsx +5 -2
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +9 -1
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +2 -3
- package/src/components/EntityPreview.tsx +6 -4
- package/src/components/FireCMSAppBar.tsx +5 -2
- package/src/components/ReferenceWidget.tsx +19 -9
- package/src/components/SearchIconsView.tsx +1 -1
- package/src/components/SelectableTable/SelectableTable.tsx +4 -2
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +4 -1
- package/src/components/VirtualTable/VirtualTable.tsx +7 -8
- package/src/components/VirtualTable/VirtualTableProps.tsx +1 -6
- package/src/components/VirtualTable/VirtualTableRow.tsx +2 -3
- package/src/components/VirtualTable/types.tsx +2 -3
- package/src/components/{VirtualTable/common.tsx → common/table_height.tsx} +5 -2
- package/src/core/EntityEditView.tsx +3 -2
- package/src/core/FireCMS.tsx +33 -36
- package/src/core/field_configs.tsx +1 -1
- package/src/form/EntityForm.tsx +7 -10
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +2 -0
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +15 -13
- package/src/form/field_bindings/SelectFieldBinding.tsx +0 -3
- package/src/hooks/data/save.ts +2 -0
- package/src/hooks/useBuildLocalConfigurationPersistence.tsx +2 -3
- package/src/hooks/useBuildNavigationController.tsx +1 -1
- package/src/hooks/useValidateAuthenticator.tsx +15 -15
- package/src/preview/PropertyPreview.tsx +2 -1
- package/src/preview/components/ReferencePreview.tsx +21 -22
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +2 -0
- package/src/preview/property_previews/NumberPropertyPreview.tsx +0 -1
- package/src/types/collections.ts +5 -2
- package/src/types/properties.ts +10 -0
- package/src/util/objects.ts +8 -7
- package/dist/components/VirtualTable/common.d.ts +0 -2
|
@@ -11,6 +11,8 @@ type TableReferenceFieldProps = {
|
|
|
11
11
|
title?: string;
|
|
12
12
|
path: string;
|
|
13
13
|
forceFilter?: FilterValues<string>;
|
|
14
|
+
includeId?: boolean;
|
|
15
|
+
includeEntityLink?: boolean;
|
|
14
16
|
};
|
|
15
17
|
export declare function TableReferenceField(props: TableReferenceFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export declare const TableReferenceFieldSuccess: React.NamedExoticComponent<TableReferenceFieldProps & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { TableSize } from "../../common/table_height";
|
|
3
3
|
interface EntityTableCellProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
actions?: React.ReactNode;
|
|
@@ -12,7 +12,7 @@ interface EntityTableCellProps {
|
|
|
12
12
|
error?: Error;
|
|
13
13
|
allowScroll?: boolean;
|
|
14
14
|
align: "right" | "left" | "center";
|
|
15
|
-
size:
|
|
15
|
+
size: TableSize;
|
|
16
16
|
disabledTooltip?: string;
|
|
17
17
|
width: number;
|
|
18
18
|
showExpandIcon?: boolean;
|
|
@@ -9,14 +9,15 @@ export type EntityPreviewProps = {
|
|
|
9
9
|
previewProperties?: string[];
|
|
10
10
|
disabled: undefined | boolean;
|
|
11
11
|
entity: Entity<any>;
|
|
12
|
-
|
|
12
|
+
includeId?: boolean;
|
|
13
|
+
includeEntityLink?: boolean;
|
|
13
14
|
onClick?: (e: React.SyntheticEvent) => void;
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* This view is used to display a preview of an entity.
|
|
17
18
|
* It is used by default in reference fields and whenever a reference is displayed.
|
|
18
19
|
*/
|
|
19
|
-
export declare function EntityPreview({ actions, disabled, hover, collection: collectionProp, previewProperties, onClick, size,
|
|
20
|
+
export declare function EntityPreview({ actions, disabled, hover, collection: collectionProp, previewProperties, onClick, size, includeId, includeEntityLink, entity }: EntityPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export type EntityPreviewContainerProps = {
|
|
21
22
|
children: React.ReactNode;
|
|
22
23
|
hover?: boolean;
|
|
@@ -9,6 +9,7 @@ export type FireCMSAppBarProps<ADDITIONAL_PROPS = object> = {
|
|
|
9
9
|
startAdornment?: React.ReactNode;
|
|
10
10
|
dropDownActions?: React.ReactNode;
|
|
11
11
|
includeDrawer?: boolean;
|
|
12
|
+
includeModeToggle?: boolean;
|
|
12
13
|
drawerOpen: boolean;
|
|
13
14
|
className?: string;
|
|
14
15
|
style?: React.CSSProperties;
|
|
@@ -24,4 +25,4 @@ export type FireCMSAppBarProps<ADDITIONAL_PROPS = object> = {
|
|
|
24
25
|
* @param drawerOpen
|
|
25
26
|
* @constructor
|
|
26
27
|
*/
|
|
27
|
-
export declare const FireCMSAppBar: ({ title, endAdornment, startAdornment, drawerOpen, dropDownActions, includeDrawer, className, style, logo, user: userProp }: FireCMSAppBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const FireCMSAppBar: ({ title, endAdornment, startAdornment, drawerOpen, dropDownActions, includeDrawer, includeModeToggle, className, style, logo, user: userProp }: FireCMSAppBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,8 +21,10 @@ export type ReferenceWidgetProps<M extends Record<string, any>> = {
|
|
|
21
21
|
forceFilter?: FilterValues<string>;
|
|
22
22
|
size: PreviewSize;
|
|
23
23
|
className?: string;
|
|
24
|
+
includeId?: boolean;
|
|
25
|
+
includeEntityLink?: boolean;
|
|
24
26
|
};
|
|
25
27
|
/**
|
|
26
28
|
* This field allows selecting reference/s.
|
|
27
29
|
*/
|
|
28
|
-
export declare function ReferenceWidget<M extends Record<string, any>>({ name, multiselect, path, disabled, value, onReferenceSelected, onMultipleReferenceSelected, previewProperties, forceFilter, size, className }: ReferenceWidgetProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function ReferenceWidget<M extends Record<string, any>>({ name, multiselect, path, disabled, value, onReferenceSelected, onMultipleReferenceSelected, previewProperties, forceFilter, size, className, includeId, includeEntityLink }: ReferenceWidgetProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,9 +6,10 @@ interface ReferenceFilterFieldProps {
|
|
|
6
6
|
isArray?: boolean;
|
|
7
7
|
path?: string;
|
|
8
8
|
title?: string;
|
|
9
|
+
includeId?: boolean;
|
|
9
10
|
previewProperties?: string[];
|
|
10
11
|
hidden: boolean;
|
|
11
12
|
setHidden: (hidden: boolean) => void;
|
|
12
13
|
}
|
|
13
|
-
export declare function ReferenceFilterField({ name, value, setValue, isArray, path, title, previewProperties, setHidden }: ReferenceFilterFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function ReferenceFilterField({ name, value, setValue, isArray, path, title, includeId, previewProperties, setHidden }: ReferenceFilterFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -56,7 +56,7 @@ export interface VirtualTableProps<T extends Record<string, any>> {
|
|
|
56
56
|
/**
|
|
57
57
|
* Size of the table
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
rowHeight?: number;
|
|
60
60
|
/**
|
|
61
61
|
* In case this table should have some filters set by default
|
|
62
62
|
*/
|
|
@@ -190,11 +190,6 @@ export type OnVirtualTableColumnResizeParams = {
|
|
|
190
190
|
key: string;
|
|
191
191
|
column: VirtualTableColumn;
|
|
192
192
|
};
|
|
193
|
-
/**
|
|
194
|
-
* @see Table
|
|
195
|
-
* @group Components
|
|
196
|
-
*/
|
|
197
|
-
export type VirtualTableSize = "xs" | "s" | "m" | "l" | "xl";
|
|
198
193
|
/**
|
|
199
194
|
* @see Table
|
|
200
195
|
* @group Components
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CellRendererParams, OnRowClickParams, OnVirtualTableColumnResizeParams, VirtualTableColumn, VirtualTableFilterValues,
|
|
2
|
+
import { CellRendererParams, OnRowClickParams, OnVirtualTableColumnResizeParams, VirtualTableColumn, VirtualTableFilterValues, VirtualTableWhereFilterOp } from "./VirtualTableProps";
|
|
3
3
|
import { FilterFormFieldProps } from "./VirtualTableHeader";
|
|
4
4
|
export type VirtualTableRowProps<T> = {
|
|
5
5
|
style: any;
|
|
6
|
-
|
|
6
|
+
rowHeight: number;
|
|
7
7
|
rowData: T;
|
|
8
8
|
rowIndex: number;
|
|
9
9
|
onRowClick?: (props: OnRowClickParams<any>) => void;
|
|
@@ -14,7 +14,7 @@ export type VirtualTableRowProps<T> = {
|
|
|
14
14
|
};
|
|
15
15
|
export type VirtualTableContextProps<T extends any> = {
|
|
16
16
|
data?: T[];
|
|
17
|
-
|
|
17
|
+
rowHeight?: number;
|
|
18
18
|
columns: VirtualTableColumn[];
|
|
19
19
|
cellRenderer: React.ComponentType<CellRendererParams<T>>;
|
|
20
20
|
currentSort: "asc" | "desc" | undefined;
|