lucid-extension-sdk 0.0.338 → 0.0.340
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.
|
@@ -128,6 +128,8 @@ export interface CollectionPatch {
|
|
|
128
128
|
represents?: SemanticCollection[];
|
|
129
129
|
/** The collection's display name */
|
|
130
130
|
name?: string | undefined;
|
|
131
|
+
/** Whether the collection is hidden from the data panel */
|
|
132
|
+
hideFromDataPanel?: boolean;
|
|
131
133
|
}
|
|
132
134
|
/** @ignore */
|
|
133
135
|
export declare function serializeFieldDefinitionForApi(field: FieldDefinition): SerializedFieldDefinitionForApi;
|
|
@@ -85,10 +85,18 @@ function serializeNameAsPropertyForApi(name) {
|
|
|
85
85
|
'Name': name, // key needs to match 'Name' key in cake/app/webroot/ts/property/collection/collectionproperties.ts
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
+
function serializeHiddenFromDataPanelForApi(hiddenFromDataPanel) {
|
|
89
|
+
return {
|
|
90
|
+
'IsHiddenFromDataPanel': hiddenFromDataPanel, // key needs to match 'IsHiddenFromDataPanel' key in cake/app/webroot/ts/property/collection/collectionproperties.ts
|
|
91
|
+
};
|
|
92
|
+
}
|
|
88
93
|
function serializeCollectionPatch(patch) {
|
|
89
94
|
const representsProperty = patch.represents && serializeRepresentsAsPropertyForApi(patch.represents);
|
|
90
95
|
const nameProperty = (0, checks_1.isString)(patch.name) ? serializeNameAsPropertyForApi(patch.name) : undefined;
|
|
91
|
-
const
|
|
96
|
+
const isHiddenFromDataPanelProperty = (0, checks_1.isDef)(patch.hideFromDataPanel)
|
|
97
|
+
? serializeHiddenFromDataPanelForApi(patch.hideFromDataPanel)
|
|
98
|
+
: undefined;
|
|
99
|
+
const properties = (representsProperty || nameProperty || isHiddenFromDataPanelProperty) && Object.assign(Object.assign(Object.assign({}, representsProperty), nameProperty), isHiddenFromDataPanelProperty);
|
|
92
100
|
return {
|
|
93
101
|
'schema': patch.schema && serializeSchemaForApi(patch.schema),
|
|
94
102
|
'itemsPatch': serializeItemsPatch(patch.patch),
|
|
@@ -13,6 +13,7 @@ export declare enum DocumentElementType {
|
|
|
13
13
|
TaskCardFieldsConfig = "TaskCardFieldsConfig",
|
|
14
14
|
CachedExtensionMetadata = "CachedExtensionMetadata",
|
|
15
15
|
GeneratorView = "GeneratorView",
|
|
16
|
+
OutputField = "OutputField",
|
|
16
17
|
ShapeStylePreset = "ShapeStylePreset",
|
|
17
18
|
ShapeSpecificDefaultProperties = "ShapeSpecificDefaultProperties",
|
|
18
19
|
TrackedFormulaLocation = "TrackedFormulaLocation"
|
|
@@ -17,6 +17,7 @@ var DocumentElementType;
|
|
|
17
17
|
DocumentElementType["TaskCardFieldsConfig"] = "TaskCardFieldsConfig";
|
|
18
18
|
DocumentElementType["CachedExtensionMetadata"] = "CachedExtensionMetadata";
|
|
19
19
|
DocumentElementType["GeneratorView"] = "GeneratorView";
|
|
20
|
+
DocumentElementType["OutputField"] = "OutputField";
|
|
20
21
|
DocumentElementType["ShapeStylePreset"] = "ShapeStylePreset";
|
|
21
22
|
DocumentElementType["ShapeSpecificDefaultProperties"] = "ShapeSpecificDefaultProperties";
|
|
22
23
|
DocumentElementType["TrackedFormulaLocation"] = "TrackedFormulaLocation";
|