@firecms/core 3.0.0-beta.5 → 3.0.0-beta.7
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/ClearFilterSortButton.d.ts +5 -0
- package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +11 -11
- package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +5 -3
- package/dist/components/EntityCollectionTable/PropertyTableCell.d.ts +1 -0
- package/dist/components/EntityCollectionTable/column_utils.d.ts +1 -2
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +2 -0
- package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +1 -4
- package/dist/components/EntityCollectionTable/internal/EntityTableCell.d.ts +2 -2
- package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +11 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +11 -0
- package/dist/components/EntityPreview.d.ts +3 -2
- package/dist/components/FireCMSAppBar.d.ts +4 -2
- package/dist/components/ReferenceWidget.d.ts +3 -1
- package/dist/components/SelectableTable/SelectableTable.d.ts +1 -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/{EntityCollectionTable/internal → common}/default_entity_actions.d.ts +1 -1
- package/dist/components/common/index.d.ts +1 -0
- package/dist/components/common/table_height.d.ts +5 -0
- package/dist/components/common/types.d.ts +4 -6
- package/dist/components/common/useDataSourceEntityCollectionTableController.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/core/Drawer.d.ts +5 -12
- package/dist/core/DrawerNavigationItem.d.ts +9 -0
- package/dist/core/NavigationRoutes.d.ts +1 -1
- package/dist/core/Scaffold.d.ts +8 -12
- package/dist/core/index.d.ts +3 -4
- package/dist/form/components/ErrorFocus.d.ts +1 -1
- package/dist/hooks/data/save.d.ts +1 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useValidateAuthenticator.d.ts +2 -6
- package/dist/index.es.js +10087 -9914
- 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/internal/useBuildDataSource.d.ts +1 -16
- package/dist/preview/components/ReferencePreview.d.ts +2 -1
- package/dist/types/collections.d.ts +13 -2
- package/dist/types/datasource.d.ts +2 -5
- package/dist/types/entities.d.ts +5 -1
- package/dist/types/entity_actions.d.ts +14 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/navigation.d.ts +2 -2
- package/dist/types/plugins.d.ts +3 -1
- package/dist/types/properties.d.ts +10 -2
- package/dist/util/entities.d.ts +1 -1
- package/dist/util/icon_synonyms.d.ts +1 -97
- package/dist/util/navigation_utils.d.ts +2 -2
- package/dist/util/objects.d.ts +1 -1
- package/dist/util/resolutions.d.ts +13 -13
- package/package.json +139 -119
- package/src/components/ClearFilterSortButton.tsx +41 -0
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +2 -2
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +19 -18
- package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +10 -6
- package/src/components/EntityCollectionTable/PropertyTableCell.tsx +38 -34
- package/src/components/EntityCollectionTable/column_utils.tsx +3 -3
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +9 -1
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +2 -2
- package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +29 -34
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +16 -12
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +2 -4
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +47 -25
- package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +68 -0
- package/src/components/EntityPreview.tsx +9 -7
- package/src/components/EntityView.tsx +5 -5
- package/src/components/FireCMSAppBar.tsx +32 -15
- package/src/components/HomePage/DefaultHomePage.tsx +1 -1
- package/src/components/HomePage/NavigationCard.tsx +2 -2
- package/src/components/HomePage/SmallNavigationCard.tsx +5 -5
- package/src/components/PropertyIdCopyTooltipContent.tsx +2 -3
- package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +1 -0
- package/src/components/ReferenceWidget.tsx +21 -11
- package/src/components/SearchIconsView.tsx +5 -5
- package/src/components/SelectableTable/SelectableTable.tsx +5 -3
- package/src/components/SelectableTable/filters/BooleanFilterField.tsx +2 -3
- package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +22 -7
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +28 -6
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +35 -15
- package/src/components/VirtualTable/VirtualTable.tsx +36 -29
- package/src/components/VirtualTable/VirtualTableHeader.tsx +4 -4
- package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +2 -2
- package/src/components/VirtualTable/VirtualTableProps.tsx +1 -6
- package/src/components/VirtualTable/VirtualTableRow.tsx +4 -5
- package/src/components/VirtualTable/types.tsx +2 -3
- package/src/components/{EntityCollectionTable/internal → common}/default_entity_actions.tsx +2 -2
- package/src/components/common/index.ts +1 -0
- package/src/components/{VirtualTable/common.tsx → common/table_height.tsx} +5 -2
- package/src/components/common/types.tsx +4 -6
- package/src/components/common/useColumnsIds.tsx +10 -2
- package/src/components/common/useDataSourceEntityCollectionTableController.tsx +11 -0
- package/src/components/index.tsx +1 -0
- package/src/core/Drawer.tsx +16 -68
- package/src/core/DrawerNavigationItem.tsx +62 -0
- package/src/core/EntityEditView.tsx +7 -8
- package/src/core/EntitySidePanel.tsx +1 -1
- package/src/core/FireCMS.tsx +37 -42
- package/src/core/NavigationRoutes.tsx +3 -4
- package/src/core/Scaffold.tsx +80 -66
- package/src/core/field_configs.tsx +2 -3
- package/src/core/index.tsx +3 -4
- package/src/form/EntityForm.tsx +29 -21
- package/src/form/PropertyFieldBinding.tsx +0 -2
- package/src/form/components/StorageItemPreview.tsx +2 -2
- package/src/form/components/StorageUploadProgress.tsx +3 -3
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +4 -2
- package/src/form/field_bindings/BlockFieldBinding.tsx +2 -2
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +4 -4
- package/src/form/field_bindings/MarkdownFieldBinding.tsx +2 -2
- package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +2 -2
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +15 -13
- package/src/form/field_bindings/SelectFieldBinding.tsx +3 -3
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +4 -4
- package/src/hooks/data/save.ts +3 -1
- package/src/hooks/index.tsx +1 -0
- package/src/hooks/useBuildLocalConfigurationPersistence.tsx +8 -10
- package/src/hooks/useBuildModeController.tsx +11 -5
- package/src/hooks/useBuildNavigationController.tsx +77 -21
- package/src/hooks/useProjectLog.tsx +3 -3
- package/src/hooks/useResolvedNavigationFrom.tsx +1 -1
- package/src/hooks/useValidateAuthenticator.tsx +17 -37
- package/src/internal/useBuildDataSource.ts +42 -47
- package/src/internal/useBuildSideEntityController.tsx +86 -22
- package/src/preview/PropertyPreview.tsx +4 -14
- package/src/preview/components/BooleanPreview.tsx +2 -2
- package/src/preview/components/EnumValuesChip.tsx +1 -1
- package/src/preview/components/ReferencePreview.tsx +21 -22
- package/src/preview/property_previews/ArrayOfMapsPreview.tsx +0 -1
- package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +2 -1
- package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +0 -1
- package/src/preview/property_previews/ArrayOfStringsPreview.tsx +0 -1
- package/src/preview/property_previews/ArrayOneOfPreview.tsx +2 -3
- package/src/preview/property_previews/ArrayPropertyPreview.tsx +2 -3
- package/src/preview/property_previews/MapPropertyPreview.tsx +5 -5
- package/src/preview/property_previews/StringPropertyPreview.tsx +2 -2
- package/src/types/collections.ts +19 -3
- package/src/types/datasource.ts +7 -4
- package/src/types/entities.ts +9 -1
- package/src/types/entity_actions.tsx +16 -3
- package/src/types/index.ts +0 -1
- package/src/types/navigation.ts +2 -3
- package/src/types/plugins.tsx +4 -3
- package/src/types/properties.ts +15 -4
- package/src/types/storage.ts +1 -1
- package/src/util/entities.ts +1 -1
- package/src/util/enums.ts +1 -1
- package/src/util/icon_list.ts +2 -2
- package/src/util/icon_synonyms.ts +3 -99
- package/src/util/navigation_utils.ts +6 -6
- package/src/util/objects.ts +8 -21
- package/src/util/resolutions.ts +32 -31
- package/dist/components/VirtualTable/common.d.ts +0 -2
- package/dist/core/SideEntityView.d.ts +0 -7
- package/dist/internal/useBuildCustomizationController.d.ts +0 -2
- package/dist/internal/useLocaleConfig.d.ts +0 -1
- package/dist/types/appcheck.d.ts +0 -26
- package/src/core/SideEntityView.tsx +0 -38
- package/src/internal/useBuildCustomizationController.tsx +0 -5
- package/src/internal/useLocaleConfig.tsx +0 -18
- package/src/types/appcheck.ts +0 -29
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSource, DataSourceDelegate,
|
|
1
|
+
import { DataSource, DataSourceDelegate, NavigationController, PropertyConfig } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* Use this hook to build a {@link DataSource} based on Firestore
|
|
4
4
|
* @param firebaseApp
|
|
@@ -9,18 +9,3 @@ export declare function useBuildDataSource({ delegate, propertyConfigs, navigati
|
|
|
9
9
|
propertyConfigs?: Record<string, PropertyConfig>;
|
|
10
10
|
navigationController: NavigationController;
|
|
11
11
|
}): DataSource;
|
|
12
|
-
/**
|
|
13
|
-
* Recursive function that converts Firestore data types into CMS or plain
|
|
14
|
-
* JS types.
|
|
15
|
-
* FireCMS uses Javascript dates internally instead of Firestore timestamps.
|
|
16
|
-
* This makes it easier to interact with the rest of the libraries and
|
|
17
|
-
* bindings.
|
|
18
|
-
* Also, Firestore references are replaced with {@link EntityReference}
|
|
19
|
-
* @param data
|
|
20
|
-
* @param buildReference
|
|
21
|
-
* @param buildGeoPoint
|
|
22
|
-
* @param buildDate
|
|
23
|
-
* @param buildDelete
|
|
24
|
-
* @group Firestore
|
|
25
|
-
*/
|
|
26
|
-
export declare function cmsToDelegateModel(data: any, buildReference: (reference: EntityReference) => any, buildGeoPoint: (geoPoint: GeoPoint) => any, buildDate: (date: Date) => any, buildDelete: () => any): any;
|
|
@@ -8,7 +8,8 @@ export type ReferencePreviewProps = {
|
|
|
8
8
|
previewProperties?: string[];
|
|
9
9
|
onClick?: (e: React.SyntheticEvent) => void;
|
|
10
10
|
hover?: boolean;
|
|
11
|
-
|
|
11
|
+
includeEntityLink?: boolean;
|
|
12
|
+
includeId?: boolean;
|
|
12
13
|
};
|
|
13
14
|
/**
|
|
14
15
|
* @group Preview components
|
|
@@ -94,8 +94,12 @@ export interface EntityCollection<M extends Record<string, any> = any, UserType
|
|
|
94
94
|
* `subcollection:`. e.g. `subcollection:orders`.
|
|
95
95
|
* - If you are using a collection group, you will also have an
|
|
96
96
|
* additional `collectionGroupParent` column.
|
|
97
|
+
* You can use this prop to hide some properties from the table view.
|
|
98
|
+
* Note that if you set this prop, other ways to hide fields, like
|
|
99
|
+
* `hidden` in the property definition,will be ignored.
|
|
100
|
+
* `propertiesOrder` has precedence over `hidden`.
|
|
97
101
|
*/
|
|
98
|
-
propertiesOrder?: Extract<keyof M, string>[];
|
|
102
|
+
propertiesOrder?: (Extract<keyof M, string> | `subcollection:${string}`)[];
|
|
99
103
|
/**
|
|
100
104
|
* If enabled, content is loaded in batches. If `false` all entities in the
|
|
101
105
|
* collection are loaded.
|
|
@@ -253,7 +257,14 @@ export interface EntityCollection<M extends Record<string, any> = any, UserType
|
|
|
253
257
|
* are writing custom code
|
|
254
258
|
*/
|
|
255
259
|
ownerId?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Overrides for the entity view, like the data source or the storage source.
|
|
262
|
+
*/
|
|
256
263
|
overrides?: EntityOverrides;
|
|
264
|
+
/**
|
|
265
|
+
* Width of the side dialog (in pixels) when opening an entity in this collection.
|
|
266
|
+
*/
|
|
267
|
+
sideDialogWidth?: number | string;
|
|
257
268
|
}
|
|
258
269
|
/**
|
|
259
270
|
* Parameter passed to the `Actions` prop in the collection configuration.
|
|
@@ -445,7 +456,7 @@ export type EntityTableController<M extends Record<string, any> = any> = {
|
|
|
445
456
|
filterValues?: FilterValues<Extract<keyof M, string>>;
|
|
446
457
|
setFilterValues?: (filterValues: FilterValues<Extract<keyof M, string>>) => void;
|
|
447
458
|
sortBy?: [Extract<keyof M, string>, "asc" | "desc"];
|
|
448
|
-
setSortBy?: (sortBy
|
|
459
|
+
setSortBy?: (sortBy?: [Extract<keyof M, string>, "asc" | "desc"]) => void;
|
|
449
460
|
searchString?: string;
|
|
450
461
|
setSearchString?: (searchString?: string) => void;
|
|
451
462
|
clearFilter?: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Entity,
|
|
1
|
+
import { Entity, EntityStatus, EntityValues } from "./entities";
|
|
2
2
|
import { EntityCollection, FilterValues } from "./collections";
|
|
3
3
|
import { ResolvedEntityCollection } from "./resolved_entities";
|
|
4
4
|
/**
|
|
@@ -245,18 +245,15 @@ export interface DataSourceDelegate {
|
|
|
245
245
|
* Convert a FireCMS reference to a reference that can be used by the datasource
|
|
246
246
|
* @param reference
|
|
247
247
|
*/
|
|
248
|
-
buildReference: (reference: EntityReference) => any;
|
|
249
248
|
/**
|
|
250
249
|
* Convert a FireCMS GeoPoint to a GeoPoint that can be used by the datasource
|
|
251
250
|
* @param geoPoint
|
|
252
251
|
*/
|
|
253
|
-
buildGeoPoint: (geoPoint: GeoPoint) => any;
|
|
254
252
|
/**
|
|
255
253
|
* Get the object to generate the current time in the datasource
|
|
256
254
|
*/
|
|
257
255
|
currentTime(): any;
|
|
258
|
-
buildDate: (date: Date) => any;
|
|
259
|
-
buildDeleteFieldValue: () => any;
|
|
260
256
|
delegateToCMSModel: (data: any) => any;
|
|
257
|
+
cmsToDelegateModel: (data: any) => any;
|
|
261
258
|
setDateToMidnight: (input?: any) => any;
|
|
262
259
|
}
|
package/dist/types/entities.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export type EntityValues<M extends object> = M;
|
|
|
31
31
|
/**
|
|
32
32
|
* Class used to create a reference to an entity in a different path
|
|
33
33
|
*/
|
|
34
|
-
export declare class EntityReference
|
|
34
|
+
export declare class EntityReference {
|
|
35
35
|
/**
|
|
36
36
|
* ID of the entity
|
|
37
37
|
*/
|
|
@@ -56,3 +56,7 @@ export declare class GeoPoint {
|
|
|
56
56
|
readonly longitude: number;
|
|
57
57
|
constructor(latitude: number, longitude: number);
|
|
58
58
|
}
|
|
59
|
+
export declare class Vector {
|
|
60
|
+
readonly value: number[];
|
|
61
|
+
constructor(value: number[]);
|
|
62
|
+
}
|
|
@@ -4,9 +4,23 @@ import { Entity } from "./entities";
|
|
|
4
4
|
import { EntityCollection, SelectionController } from "./collections";
|
|
5
5
|
import { User } from "./user";
|
|
6
6
|
import { SideEntityController } from "./side_entity_controller";
|
|
7
|
+
/**
|
|
8
|
+
* An entity action is a custom action that can be performed on an entity.
|
|
9
|
+
* They are displayed in the entity view and in the collection view.
|
|
10
|
+
*/
|
|
7
11
|
export type EntityAction<M extends object = any, UserType extends User = User> = {
|
|
12
|
+
/**
|
|
13
|
+
* Title of the action
|
|
14
|
+
*/
|
|
8
15
|
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Icon of the action
|
|
18
|
+
*/
|
|
9
19
|
icon?: React.ReactElement;
|
|
20
|
+
/**
|
|
21
|
+
* Callback when the action is clicked
|
|
22
|
+
* @param props
|
|
23
|
+
*/
|
|
10
24
|
onClick: (props: EntityActionClickProps<M, UserType>) => Promise<void> | void;
|
|
11
25
|
/**
|
|
12
26
|
* Show this action collapsed in the menu of the collection view.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export * from "./plugins";
|
|
|
23
23
|
export * from "./analytics";
|
|
24
24
|
export * from "./firecms";
|
|
25
25
|
export * from "./roles";
|
|
26
|
-
export * from "./appcheck";
|
|
27
26
|
export * from "./export_import";
|
|
28
27
|
export * from "./modify_collections";
|
|
29
28
|
export * from "./analytics_controller";
|
|
@@ -47,9 +47,9 @@ export type NavigationController<EC extends EntityCollection = EntityCollection<
|
|
|
47
47
|
* Get the collection configuration for a given path.
|
|
48
48
|
* The collection is resolved from the given path or alias.
|
|
49
49
|
*/
|
|
50
|
-
getCollection: (
|
|
50
|
+
getCollection: (pathOrId: string, includeUserOverride?: boolean) => EC | undefined;
|
|
51
51
|
/**
|
|
52
|
-
* Get the collection configuration from its parent
|
|
52
|
+
* Get the collection configuration from its parent ids.
|
|
53
53
|
*/
|
|
54
54
|
getCollectionFromIds: (ids: string[]) => EC | undefined;
|
|
55
55
|
/**
|
package/dist/types/plugins.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { ResolvedProperty } from "./resolved_entities";
|
|
|
11
11
|
* NOTE: This is a work in progress and the API is not stable yet.
|
|
12
12
|
* @group Core
|
|
13
13
|
*/
|
|
14
|
-
export type FireCMSPlugin<PROPS = any, FORM_PROPS = any, EC extends EntityCollection = EntityCollection, COL_ACTIONS_PROPS = any> = {
|
|
14
|
+
export type FireCMSPlugin<PROPS = any, FORM_PROPS = any, EC extends EntityCollection = EntityCollection, COL_ACTIONS_PROPS = any, COL_ACTIONS_START__PROPS = any> = {
|
|
15
15
|
/**
|
|
16
16
|
* Key of the plugin. This is used to identify the plugin in the CMS.
|
|
17
17
|
*/
|
|
@@ -78,6 +78,8 @@ export type FireCMSPlugin<PROPS = any, FORM_PROPS = any, EC extends EntityCollec
|
|
|
78
78
|
*/
|
|
79
79
|
CollectionActions?: React.ComponentType<CollectionActionsProps<any, any, EC> & COL_ACTIONS_PROPS> | React.ComponentType<CollectionActionsProps<any, any, EC> & COL_ACTIONS_PROPS>[];
|
|
80
80
|
collectionActionsProps?: COL_ACTIONS_PROPS;
|
|
81
|
+
CollectionActionsStart?: React.ComponentType<CollectionActionsProps<any, any, EC> & COL_ACTIONS_START__PROPS> | React.ComponentType<CollectionActionsProps<any, any, EC> & COL_ACTIONS_START__PROPS>[];
|
|
82
|
+
collectionActionsStartProps?: COL_ACTIONS_START__PROPS;
|
|
81
83
|
showTextSearchBar?: (props: {
|
|
82
84
|
context: FireCMSContext;
|
|
83
85
|
path: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FieldProps } from "./fields";
|
|
3
3
|
import { PropertyPreviewProps } from "../preview";
|
|
4
|
-
import { EntityReference, EntityValues, GeoPoint } from "./entities";
|
|
4
|
+
import { EntityReference, EntityValues, GeoPoint, Vector } from "./entities";
|
|
5
5
|
import { ResolvedArrayProperty, ResolvedStringProperty } from "./resolved_entities";
|
|
6
6
|
import { FilterValues } from "./collections";
|
|
7
7
|
import { ChipColorKey, ChipColorScheme } from "@firecms/ui";
|
|
8
8
|
/**
|
|
9
9
|
* @group Entity properties
|
|
10
10
|
*/
|
|
11
|
-
export type DataType<T extends CMSType = CMSType> = T extends string ? "string" : T extends number ? "number" : T extends boolean ? "boolean" : T extends Date ? "date" : T extends GeoPoint ? "geopoint" : T extends EntityReference ? "reference" : T extends Array<CMSType> ? "array" : T extends Record<string, any> ? "map" : never;
|
|
11
|
+
export type DataType<T extends CMSType = CMSType> = T extends string ? "string" : T extends number ? "number" : T extends boolean ? "boolean" : T extends Date ? "date" : T extends GeoPoint ? "geopoint" : T extends Vector ? "vector" : T extends EntityReference ? "reference" : T extends Array<CMSType> ? "array" : T extends Record<string, any> ? "map" : never;
|
|
12
12
|
/**
|
|
13
13
|
* @group Entity properties
|
|
14
14
|
*/
|
|
@@ -474,6 +474,14 @@ export interface ReferenceProperty extends BaseProperty<EntityReference> {
|
|
|
474
474
|
* specified values are considered.
|
|
475
475
|
*/
|
|
476
476
|
previewProperties?: string[];
|
|
477
|
+
/**
|
|
478
|
+
* Should the reference include the ID of the entity. Defaults to `true`
|
|
479
|
+
*/
|
|
480
|
+
includeId?: boolean;
|
|
481
|
+
/**
|
|
482
|
+
* Should the reference include a link to the entity (open the entity details). Defaults to `true`
|
|
483
|
+
*/
|
|
484
|
+
includeEntityLink?: boolean;
|
|
477
485
|
}
|
|
478
486
|
/**
|
|
479
487
|
* Rules to validate any property. Some properties have specific rules
|
package/dist/util/entities.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ export declare function updateDateAutoValues<M extends Record<string, any>>({ in
|
|
|
23
23
|
* @group Datasource
|
|
24
24
|
*/
|
|
25
25
|
export declare function sanitizeData<M extends Record<string, any>>(values: EntityValues<M>, properties: ResolvedProperties<M>): any;
|
|
26
|
-
export declare function getReferenceFrom<M extends Record<string, any>>(entity: Entity<M>): EntityReference
|
|
26
|
+
export declare function getReferenceFrom<M extends Record<string, any>>(entity: Entity<M>): EntityReference;
|
|
27
27
|
export declare function traverseValuesProperties<M extends Record<string, any>>(inputValues: Partial<EntityValues<M>>, properties: ResolvedProperties<M>, operation: (value: any, property: Property) => any): EntityValues<M> | undefined;
|
|
28
28
|
export declare function traverseValueProperty(inputValue: any, property: Property, operation: (value: any, property: Property) => any): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const iconSynonyms: {
|
|
2
2
|
abc: string;
|
|
3
3
|
access_alarm: string;
|
|
4
4
|
access_alarms: string;
|
|
@@ -84,7 +84,6 @@ export declare const icon_synonyms: {
|
|
|
84
84
|
apartment: string;
|
|
85
85
|
api: string;
|
|
86
86
|
app_blocking: string;
|
|
87
|
-
apple: string;
|
|
88
87
|
app_registration: string;
|
|
89
88
|
approval: string;
|
|
90
89
|
apps: string;
|
|
@@ -281,7 +280,6 @@ export declare const icon_synonyms: {
|
|
|
281
280
|
cast: string;
|
|
282
281
|
cast_connected: string;
|
|
283
282
|
cast_for_education: string;
|
|
284
|
-
catching_pokemon: string;
|
|
285
283
|
category: string;
|
|
286
284
|
celebration: string;
|
|
287
285
|
cell_tower: string;
|
|
@@ -382,10 +380,6 @@ export declare const icon_synonyms: {
|
|
|
382
380
|
credit_score: string;
|
|
383
381
|
crib: string;
|
|
384
382
|
crop: string;
|
|
385
|
-
crop_169: string;
|
|
386
|
-
crop_32: string;
|
|
387
|
-
crop_54: string;
|
|
388
|
-
crop_75: string;
|
|
389
383
|
crop_din: string;
|
|
390
384
|
crop_free: string;
|
|
391
385
|
crop_landscape: string;
|
|
@@ -420,7 +414,6 @@ export declare const icon_synonyms: {
|
|
|
420
414
|
delete_forever: string;
|
|
421
415
|
delete_outline: string;
|
|
422
416
|
delete_sweep: string;
|
|
423
|
-
delivery_dining: string;
|
|
424
417
|
density_large: string;
|
|
425
418
|
density_medium: string;
|
|
426
419
|
density_small: string;
|
|
@@ -525,11 +518,6 @@ export declare const icon_synonyms: {
|
|
|
525
518
|
edit_road: string;
|
|
526
519
|
egg: string;
|
|
527
520
|
egg_alt: string;
|
|
528
|
-
eighteen_mp: string;
|
|
529
|
-
eight_k: string;
|
|
530
|
-
eight_k_plus: string;
|
|
531
|
-
eight_mp: string;
|
|
532
|
-
eightteen_mp: string;
|
|
533
521
|
eject: string;
|
|
534
522
|
elderly: string;
|
|
535
523
|
elderly_woman: string;
|
|
@@ -542,7 +530,6 @@ export declare const icon_synonyms: {
|
|
|
542
530
|
electric_rickshaw: string;
|
|
543
531
|
electric_scooter: string;
|
|
544
532
|
elevator: string;
|
|
545
|
-
eleven_mp: string;
|
|
546
533
|
email: string;
|
|
547
534
|
e_mobiledata: string;
|
|
548
535
|
emoji_emotions: string;
|
|
@@ -582,7 +569,6 @@ export declare const icon_synonyms: {
|
|
|
582
569
|
extension: string;
|
|
583
570
|
extension_off: string;
|
|
584
571
|
face: string;
|
|
585
|
-
facebook: string;
|
|
586
572
|
face_retouching_natural: string;
|
|
587
573
|
face_retouching_off: string;
|
|
588
574
|
fact_check: string;
|
|
@@ -606,7 +592,6 @@ export declare const icon_synonyms: {
|
|
|
606
592
|
fiber_new: string;
|
|
607
593
|
fiber_pin: string;
|
|
608
594
|
fiber_smart_record: string;
|
|
609
|
-
fifteen_mp: string;
|
|
610
595
|
file_copy: string;
|
|
611
596
|
file_download: string;
|
|
612
597
|
file_download_done: string;
|
|
@@ -643,14 +628,8 @@ export declare const icon_synonyms: {
|
|
|
643
628
|
fire_extinguisher: string;
|
|
644
629
|
fireplace: string;
|
|
645
630
|
first_page: string;
|
|
646
|
-
fitbit: string;
|
|
647
631
|
fitness_center: string;
|
|
648
632
|
fit_screen: string;
|
|
649
|
-
five_g: string;
|
|
650
|
-
five_k: string;
|
|
651
|
-
five_k_plus: string;
|
|
652
|
-
five_mp: string;
|
|
653
|
-
fivteen_mp: string;
|
|
654
633
|
flag: string;
|
|
655
634
|
flag_circle: string;
|
|
656
635
|
flaky: string;
|
|
@@ -719,12 +698,6 @@ export declare const icon_synonyms: {
|
|
|
719
698
|
forward_5: string;
|
|
720
699
|
forward_to_inbox: string;
|
|
721
700
|
foundation: string;
|
|
722
|
-
four_g_mobiledata: string;
|
|
723
|
-
four_g_plus_mobiledata: string;
|
|
724
|
-
four_k: string;
|
|
725
|
-
four_k_plus: string;
|
|
726
|
-
four_mp: string;
|
|
727
|
-
fourteen_mp: string;
|
|
728
701
|
free_breakfast: string;
|
|
729
702
|
fullscreen: string;
|
|
730
703
|
fullscreen_exit: string;
|
|
@@ -740,10 +713,8 @@ export declare const icon_synonyms: {
|
|
|
740
713
|
gif_box: string;
|
|
741
714
|
girl: string;
|
|
742
715
|
gite: string;
|
|
743
|
-
git_hub: string;
|
|
744
716
|
g_mobiledata: string;
|
|
745
717
|
golf_course: string;
|
|
746
|
-
google: string;
|
|
747
718
|
gpp_bad: string;
|
|
748
719
|
gpp_good: string;
|
|
749
720
|
gpp_maybe: string;
|
|
@@ -756,8 +727,6 @@ export declare const icon_synonyms: {
|
|
|
756
727
|
grain: string;
|
|
757
728
|
graphic_eq: string;
|
|
758
729
|
grass: string;
|
|
759
|
-
grid3x3: string;
|
|
760
|
-
grid4x4: string;
|
|
761
730
|
grid_goldenratio: string;
|
|
762
731
|
grid_off: string;
|
|
763
732
|
grid_on: string;
|
|
@@ -802,7 +771,6 @@ export declare const icon_synonyms: {
|
|
|
802
771
|
hide_image: string;
|
|
803
772
|
hide_source: string;
|
|
804
773
|
highlight: string;
|
|
805
|
-
highlight_alt: string;
|
|
806
774
|
highlight_off: string;
|
|
807
775
|
high_quality: string;
|
|
808
776
|
hiking: string;
|
|
@@ -862,14 +830,12 @@ export declare const icon_synonyms: {
|
|
|
862
830
|
insert_page_break: string;
|
|
863
831
|
insert_photo: string;
|
|
864
832
|
insights: string;
|
|
865
|
-
instagram: string;
|
|
866
833
|
install_desktop: string;
|
|
867
834
|
install_mobile: string;
|
|
868
835
|
integration_instructions: string;
|
|
869
836
|
interests: string;
|
|
870
837
|
interpreter_mode: string;
|
|
871
838
|
inventory: string;
|
|
872
|
-
inventory2: string;
|
|
873
839
|
invert_colors: string;
|
|
874
840
|
invert_colors_off: string;
|
|
875
841
|
ios_share: string;
|
|
@@ -939,7 +905,6 @@ export declare const icon_synonyms: {
|
|
|
939
905
|
line_weight: string;
|
|
940
906
|
link: string;
|
|
941
907
|
linked_camera: string;
|
|
942
|
-
linked_in: string;
|
|
943
908
|
link_off: string;
|
|
944
909
|
liquor: string;
|
|
945
910
|
list: string;
|
|
@@ -1068,7 +1033,6 @@ export declare const icon_synonyms: {
|
|
|
1068
1033
|
monochrome_photos: string;
|
|
1069
1034
|
mood: string;
|
|
1070
1035
|
mood_bad: string;
|
|
1071
|
-
moped: string;
|
|
1072
1036
|
more: string;
|
|
1073
1037
|
more_horiz: string;
|
|
1074
1038
|
more_time: string;
|
|
@@ -1116,13 +1080,8 @@ export declare const icon_synonyms: {
|
|
|
1116
1080
|
nightlight_round: string;
|
|
1117
1081
|
night_shelter: string;
|
|
1118
1082
|
nights_stay: string;
|
|
1119
|
-
nine_k: string;
|
|
1120
|
-
nine_k_plus: string;
|
|
1121
|
-
nine_mp: string;
|
|
1122
|
-
nineteen_mp: string;
|
|
1123
1083
|
no_accounts: string;
|
|
1124
1084
|
no_backpack: string;
|
|
1125
|
-
no_cell: string;
|
|
1126
1085
|
no_drinks: string;
|
|
1127
1086
|
no_encryption: string;
|
|
1128
1087
|
no_encryption_gmailerrorred: string;
|
|
@@ -1160,9 +1119,6 @@ export declare const icon_synonyms: {
|
|
|
1160
1119
|
oil_barrel: string;
|
|
1161
1120
|
ondemand_video: string;
|
|
1162
1121
|
on_device_training: string;
|
|
1163
|
-
one_k: string;
|
|
1164
|
-
one_kk: string;
|
|
1165
|
-
one_k_plus: string;
|
|
1166
1122
|
online_prediction: string;
|
|
1167
1123
|
opacity: string;
|
|
1168
1124
|
open_in_browser: string;
|
|
@@ -1184,13 +1140,9 @@ export declare const icon_synonyms: {
|
|
|
1184
1140
|
panorama: string;
|
|
1185
1141
|
panorama_fish_eye: string;
|
|
1186
1142
|
panorama_horizontal: string;
|
|
1187
|
-
panorama_horizontal_select: string;
|
|
1188
1143
|
panorama_photosphere: string;
|
|
1189
|
-
panorama_photosphere_select: string;
|
|
1190
1144
|
panorama_vertical: string;
|
|
1191
|
-
panorama_vertical_select: string;
|
|
1192
1145
|
panorama_wide_angle: string;
|
|
1193
|
-
panorama_wide_angle_select: string;
|
|
1194
1146
|
pan_tool: string;
|
|
1195
1147
|
paragliding: string;
|
|
1196
1148
|
park: string;
|
|
@@ -1274,16 +1226,11 @@ export declare const icon_synonyms: {
|
|
|
1274
1226
|
pin: string;
|
|
1275
1227
|
pinch: string;
|
|
1276
1228
|
pin_drop: string;
|
|
1277
|
-
pinterest: string;
|
|
1278
1229
|
pivot_table_chart: string;
|
|
1279
|
-
pix: string;
|
|
1280
1230
|
place: string;
|
|
1281
1231
|
plagiarism: string;
|
|
1282
1232
|
play_arrow: string;
|
|
1283
1233
|
play_circle: string;
|
|
1284
|
-
play_circle_filled: string;
|
|
1285
|
-
play_circle_filled_white: string;
|
|
1286
|
-
play_circle_outline: string;
|
|
1287
1234
|
play_disabled: string;
|
|
1288
1235
|
play_for_work: string;
|
|
1289
1236
|
play_lesson: string;
|
|
@@ -1356,7 +1303,6 @@ export declare const icon_synonyms: {
|
|
|
1356
1303
|
recommend: string;
|
|
1357
1304
|
record_voice_over: string;
|
|
1358
1305
|
rectangle: string;
|
|
1359
|
-
reddit: string;
|
|
1360
1306
|
redeem: string;
|
|
1361
1307
|
redo: string;
|
|
1362
1308
|
reduce_capacity: string;
|
|
@@ -1499,10 +1445,6 @@ export declare const icon_synonyms: {
|
|
|
1499
1445
|
settings_suggest: string;
|
|
1500
1446
|
settings_system_daydream: string;
|
|
1501
1447
|
settings_voice: string;
|
|
1502
|
-
seven_k: string;
|
|
1503
|
-
seven_k_plus: string;
|
|
1504
|
-
seven_mp: string;
|
|
1505
|
-
seventeen_mp: string;
|
|
1506
1448
|
share: string;
|
|
1507
1449
|
share_location: string;
|
|
1508
1450
|
shield: string;
|
|
@@ -1525,19 +1467,13 @@ export declare const icon_synonyms: {
|
|
|
1525
1467
|
signal_cellular_4_bar: string;
|
|
1526
1468
|
signal_cellular_alt: string;
|
|
1527
1469
|
signal_cellular_connected_no_internet_0_bar: string;
|
|
1528
|
-
signal_cellular_connected_no_internet_1_bar: string;
|
|
1529
|
-
signal_cellular_connected_no_internet_2_bar: string;
|
|
1530
|
-
signal_cellular_connected_no_internet_3_bar: string;
|
|
1531
1470
|
signal_cellular_connected_no_internet_4_bar: string;
|
|
1532
1471
|
signal_cellular_nodata: string;
|
|
1533
1472
|
signal_cellular_no_sim: string;
|
|
1534
1473
|
signal_cellular_null: string;
|
|
1535
1474
|
signal_cellular_off: string;
|
|
1536
1475
|
signal_wifi_bad: string;
|
|
1537
|
-
signal_wifi_connected_no_internet4: string;
|
|
1538
1476
|
signal_wifi_off: string;
|
|
1539
|
-
signal_wifi_statusbar4_bar: string;
|
|
1540
|
-
signal_wifi_statusbar_connected_no_internet4: string;
|
|
1541
1477
|
signal_wifi_statusbar_null: string;
|
|
1542
1478
|
signpost: string;
|
|
1543
1479
|
sim_card: string;
|
|
@@ -1545,12 +1481,6 @@ export declare const icon_synonyms: {
|
|
|
1545
1481
|
sim_card_download: string;
|
|
1546
1482
|
single_bed: string;
|
|
1547
1483
|
sip: string;
|
|
1548
|
-
six_k: string;
|
|
1549
|
-
six_k_plus: string;
|
|
1550
|
-
six_mp: string;
|
|
1551
|
-
sixteen_mp: string;
|
|
1552
|
-
sixty_fps: string;
|
|
1553
|
-
sixty_fps_select: string;
|
|
1554
1484
|
skateboarding: string;
|
|
1555
1485
|
skip_next: string;
|
|
1556
1486
|
skip_previous: string;
|
|
@@ -1621,10 +1551,8 @@ export declare const icon_synonyms: {
|
|
|
1621
1551
|
stairs: string;
|
|
1622
1552
|
star: string;
|
|
1623
1553
|
star_border: string;
|
|
1624
|
-
star_border_purple_500: string;
|
|
1625
1554
|
star_half: string;
|
|
1626
1555
|
star_outline: string;
|
|
1627
|
-
star_purple_500: string;
|
|
1628
1556
|
star_rate: string;
|
|
1629
1557
|
stars: string;
|
|
1630
1558
|
start: string;
|
|
@@ -1712,8 +1640,6 @@ export declare const icon_synonyms: {
|
|
|
1712
1640
|
task: string;
|
|
1713
1641
|
task_alt: string;
|
|
1714
1642
|
taxi_alert: string;
|
|
1715
|
-
telegram: string;
|
|
1716
|
-
ten_mp: string;
|
|
1717
1643
|
terminal: string;
|
|
1718
1644
|
terrain: string;
|
|
1719
1645
|
text_decrease: string;
|
|
@@ -1733,16 +1659,6 @@ export declare const icon_synonyms: {
|
|
|
1733
1659
|
theaters: string;
|
|
1734
1660
|
thermostat: string;
|
|
1735
1661
|
thermostat_auto: string;
|
|
1736
|
-
thirteen_mp: string;
|
|
1737
|
-
thirty_fps: string;
|
|
1738
|
-
thirty_fps_select: string;
|
|
1739
|
-
three_d_rotation: string;
|
|
1740
|
-
three_g_mobiledata: string;
|
|
1741
|
-
three_k: string;
|
|
1742
|
-
three_k_plus: string;
|
|
1743
|
-
three_mp: string;
|
|
1744
|
-
three_p: string;
|
|
1745
|
-
three_sixty: string;
|
|
1746
1662
|
thumb_down: string;
|
|
1747
1663
|
thumb_down_alt: string;
|
|
1748
1664
|
thumb_down_off_alt: string;
|
|
@@ -1758,7 +1674,6 @@ export declare const icon_synonyms: {
|
|
|
1758
1674
|
timer_3: string;
|
|
1759
1675
|
timer_3_select: string;
|
|
1760
1676
|
timer_off: string;
|
|
1761
|
-
times_one_mobiledata: string;
|
|
1762
1677
|
time_to_leave: string;
|
|
1763
1678
|
tips_and_updates: string;
|
|
1764
1679
|
title: string;
|
|
@@ -1802,16 +1717,6 @@ export declare const icon_synonyms: {
|
|
|
1802
1717
|
turn_slight_right: string;
|
|
1803
1718
|
tv: string;
|
|
1804
1719
|
tv_off: string;
|
|
1805
|
-
twelve_mp: string;
|
|
1806
|
-
twenty_four_mp: string;
|
|
1807
|
-
twenty_one_mp: string;
|
|
1808
|
-
twenty_three_mp: string;
|
|
1809
|
-
twenty_two_mp: string;
|
|
1810
|
-
twenty_zero_mp: string;
|
|
1811
|
-
twitter: string;
|
|
1812
|
-
two_k: string;
|
|
1813
|
-
two_k_plus: string;
|
|
1814
|
-
two_mp: string;
|
|
1815
1720
|
two_wheeler: string;
|
|
1816
1721
|
umbrella: string;
|
|
1817
1722
|
unarchive: string;
|
|
@@ -1941,7 +1846,6 @@ export declare const icon_synonyms: {
|
|
|
1941
1846
|
wrong_location: string;
|
|
1942
1847
|
wysiwyg: string;
|
|
1943
1848
|
yard: string;
|
|
1944
|
-
you_tube: string;
|
|
1945
1849
|
youtube_searched_for: string;
|
|
1946
1850
|
zoom_in: string;
|
|
1947
1851
|
zoom_in_map: string;
|
|
@@ -8,10 +8,10 @@ export declare function resolveCollectionPathIds(path: string, allCollections: E
|
|
|
8
8
|
/**
|
|
9
9
|
* Find the corresponding view at any depth for a given path.
|
|
10
10
|
* Note that path or segments of the paths can be collection aliases.
|
|
11
|
-
* @param
|
|
11
|
+
* @param pathOrId
|
|
12
12
|
* @param collections
|
|
13
13
|
*/
|
|
14
|
-
export declare function getCollectionByPathOrId(
|
|
14
|
+
export declare function getCollectionByPathOrId(pathOrId: string, collections: EntityCollection[]): EntityCollection | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Get the subcollection combinations from a path:
|
|
17
17
|
* "sites/es/locales" => ["sites/es/locales", "sites"]
|
package/dist/util/objects.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const pick: <T>(obj: T, ...args: any[]) => T;
|
|
2
2
|
export declare function isObject(item: any): any;
|
|
3
|
-
export declare function mergeDeep<T extends
|
|
3
|
+
export declare function mergeDeep<T extends Record<any, any>, U extends Record<any, any>>(target: T, source: U): T & U;
|
|
4
4
|
export declare function getValueInPath(o: object | undefined, path: string): any;
|
|
5
5
|
export declare function removeInPath(o: object, path: string): object | undefined;
|
|
6
6
|
export declare function removeFunctions(o: object | undefined): any;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { ArrayProperty, CMSType, EntityCollection, EntityCustomView, EntityValues, EnumValueConfig, EnumValues, NumberProperty, PropertiesOrBuilders, PropertyConfig, PropertyOrBuilder, ResolvedArrayProperty, ResolvedEntityCollection, ResolvedNumberProperty, ResolvedProperties, ResolvedProperty, ResolvedStringProperty, StringProperty, UserConfigurationPersistence } from "../types";
|
|
2
|
-
export declare const resolveCollection: <M extends Record<string, any>>({ collection, path, entityId, values, previousValues, userConfigPersistence, fields }: {
|
|
2
|
+
export declare const resolveCollection: <M extends Record<string, any>>({ collection, path, entityId, values, previousValues, userConfigPersistence, fields, ignoreMissingFields }: {
|
|
3
3
|
collection: EntityCollection<M> | ResolvedEntityCollection<M>;
|
|
4
4
|
path: string;
|
|
5
|
-
entityId?: string
|
|
6
|
-
values?: Partial<M
|
|
7
|
-
previousValues?: Partial<M
|
|
8
|
-
userConfigPersistence?: UserConfigurationPersistence
|
|
9
|
-
fields?: Record<string, PropertyConfig
|
|
5
|
+
entityId?: string;
|
|
6
|
+
values?: Partial<EntityValues<M>>;
|
|
7
|
+
previousValues?: Partial<EntityValues<M>>;
|
|
8
|
+
userConfigPersistence?: UserConfigurationPersistence;
|
|
9
|
+
fields?: Record<string, PropertyConfig>;
|
|
10
|
+
ignoreMissingFields?: boolean;
|
|
10
11
|
}) => ResolvedEntityCollection<M>;
|
|
11
12
|
/**
|
|
12
13
|
* Resolve property builders, enums and arrays.
|
|
13
14
|
* @param propertyOrBuilder
|
|
14
15
|
* @param propertyValue
|
|
15
|
-
* @param values
|
|
16
16
|
*/
|
|
17
|
-
export declare function resolveProperty<T extends CMSType = CMSType, M extends Record<string, any> = any>({ propertyOrBuilder,
|
|
17
|
+
export declare function resolveProperty<T extends CMSType = CMSType, M extends Record<string, any> = any>({ propertyOrBuilder, fromBuilder, ignoreMissingFields, ...props }: {
|
|
18
18
|
propertyKey?: string;
|
|
19
19
|
propertyOrBuilder: PropertyOrBuilder<T, M> | ResolvedProperty<T>;
|
|
20
|
-
propertyValue?: unknown;
|
|
21
20
|
values?: Partial<M>;
|
|
22
21
|
previousValues?: Partial<M>;
|
|
23
22
|
path?: string;
|
|
@@ -25,11 +24,11 @@ export declare function resolveProperty<T extends CMSType = CMSType, M extends R
|
|
|
25
24
|
index?: number;
|
|
26
25
|
fromBuilder?: boolean;
|
|
27
26
|
fields?: Record<string, PropertyConfig<any>>;
|
|
27
|
+
ignoreMissingFields?: boolean;
|
|
28
28
|
}): ResolvedProperty<T> | null;
|
|
29
|
-
export declare function resolveArrayProperty<T extends any[], M>({ propertyKey, property,
|
|
29
|
+
export declare function resolveArrayProperty<T extends any[], M>({ propertyKey, property, ignoreMissingFields, ...props }: {
|
|
30
30
|
propertyKey?: string;
|
|
31
31
|
property: ArrayProperty<T> | ResolvedArrayProperty<T>;
|
|
32
|
-
propertyValue: any;
|
|
33
32
|
values?: Partial<M>;
|
|
34
33
|
previousValues?: Partial<M>;
|
|
35
34
|
path?: string;
|
|
@@ -37,15 +36,15 @@ export declare function resolveArrayProperty<T extends any[], M>({ propertyKey,
|
|
|
37
36
|
index?: number;
|
|
38
37
|
fromBuilder?: boolean;
|
|
39
38
|
fields?: Record<string, PropertyConfig>;
|
|
39
|
+
ignoreMissingFields?: boolean;
|
|
40
40
|
}): ResolvedArrayProperty;
|
|
41
41
|
/**
|
|
42
42
|
* Resolve enums and arrays for properties
|
|
43
43
|
* @param properties
|
|
44
44
|
* @param value
|
|
45
45
|
*/
|
|
46
|
-
export declare function resolveProperties<M extends Record<string, any>>({ properties,
|
|
46
|
+
export declare function resolveProperties<M extends Record<string, any>>({ properties, ignoreMissingFields, ...props }: {
|
|
47
47
|
properties: PropertiesOrBuilders<M>;
|
|
48
|
-
propertyValue: unknown;
|
|
49
48
|
values?: Partial<M>;
|
|
50
49
|
previousValues?: Partial<M>;
|
|
51
50
|
path?: string;
|
|
@@ -53,6 +52,7 @@ export declare function resolveProperties<M extends Record<string, any>>({ prope
|
|
|
53
52
|
index?: number;
|
|
54
53
|
fromBuilder?: boolean;
|
|
55
54
|
fields?: Record<string, PropertyConfig>;
|
|
55
|
+
ignoreMissingFields?: boolean;
|
|
56
56
|
}): ResolvedProperties<M>;
|
|
57
57
|
/**
|
|
58
58
|
* Resolve enum aliases for a string or number property
|