lucid-extension-sdk 0.0.191 → 0.0.195
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/core/data/datasource/datasourceutils.d.ts +1 -1
- package/core/data/datasource/datasourceutils.js +2 -1
- package/core/data/datasource/serializedimporteddatasource.d.ts +3 -0
- package/core/data/datasource/serializedimporteddatasource.js +1 -0
- package/package.json +1 -1
- package/ui/panel.d.ts +2 -2
- package/ui/panel.js +8 -4
|
@@ -13,7 +13,7 @@ export declare const MetadataPK = "__PK__";
|
|
|
13
13
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
14
14
|
export declare function makeSerializedImportedCollection(name: string, rawFieldNames: string[], data: SerializedFields[], upstreamConfig: {
|
|
15
15
|
[key: string]: any;
|
|
16
|
-
}, metadata?: {
|
|
16
|
+
}, dataIsPartial?: true | undefined, metadata?: {
|
|
17
17
|
[key: string]: SerializedFields[];
|
|
18
18
|
}, schemaFromData?: {
|
|
19
19
|
headerRow: number;
|
|
@@ -182,7 +182,7 @@ function makeSerializedItems(primaryKeys, rawItems, oldToNewFields, headerRow, i
|
|
|
182
182
|
return serializedItems;
|
|
183
183
|
}
|
|
184
184
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
185
|
-
function makeSerializedImportedCollection(name, rawFieldNames, data, upstreamConfig, metadata, schemaFromData) {
|
|
185
|
+
function makeSerializedImportedCollection(name, rawFieldNames, data, upstreamConfig, dataIsPartial, metadata, schemaFromData) {
|
|
186
186
|
var _a;
|
|
187
187
|
const { sheetSchema, oldToNewFields } = makePrimaryCollectionSchema(rawFieldNames, data, schemaFromData);
|
|
188
188
|
const primaryKeys = getPrimaryKeysForData(oldToNewFields, data, schemaFromData);
|
|
@@ -211,6 +211,7 @@ function makeSerializedImportedCollection(name, rawFieldNames, data, upstreamCon
|
|
|
211
211
|
'Items': makeSerializedItems(primaryKeys, data, oldToNewFields, headerRow),
|
|
212
212
|
'UpstreamConfig': upstreamConfig,
|
|
213
213
|
'Metadata': metadataCollections,
|
|
214
|
+
'DataIsPartial': dataIsPartial,
|
|
214
215
|
};
|
|
215
216
|
}
|
|
216
217
|
exports.makeSerializedImportedCollection = makeSerializedImportedCollection;
|
|
@@ -25,6 +25,7 @@ export interface SerializedImportedCollection {
|
|
|
25
25
|
'Metadata': {
|
|
26
26
|
[key: string]: SerializedImportedMetadataCollection;
|
|
27
27
|
};
|
|
28
|
+
'DataIsPartial'?: true | undefined;
|
|
28
29
|
}
|
|
29
30
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
30
31
|
export declare const isSerializedImportedCollection: (subject: unknown) => subject is import("../../guards").DestructureGuardedTypeObj<{
|
|
@@ -37,6 +38,7 @@ export declare const isSerializedImportedCollection: (subject: unknown) => subje
|
|
|
37
38
|
Schema: typeof isSerializedSchema;
|
|
38
39
|
Items: typeof isSerializedDataItems;
|
|
39
40
|
}>>;
|
|
41
|
+
DataIsPartial: (x: unknown) => x is true | undefined;
|
|
40
42
|
}>;
|
|
41
43
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
42
44
|
export interface SerializedImportedDataSource {
|
|
@@ -64,5 +66,6 @@ export declare const isSerializedImportedDataSource: (subject: unknown) => subje
|
|
|
64
66
|
Schema: typeof isSerializedSchema;
|
|
65
67
|
Items: typeof isSerializedDataItems;
|
|
66
68
|
}>>;
|
|
69
|
+
DataIsPartial: (x: unknown) => x is true | undefined;
|
|
67
70
|
}>[];
|
|
68
71
|
}>;
|
|
@@ -19,6 +19,7 @@ exports.isSerializedImportedCollection = (0, validators_1.strictObjectValidator)
|
|
|
19
19
|
'Items': serializeddataitems_1.isSerializedDataItems,
|
|
20
20
|
'UpstreamConfig': checks_1.isObject,
|
|
21
21
|
'Metadata': (0, checks_1.isRecord)(exports.isSerializedImportedMetadataCollection),
|
|
22
|
+
'DataIsPartial': (0, validators_1.option)(validators_1.isTrue),
|
|
22
23
|
});
|
|
23
24
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
24
25
|
exports.isSerializedImportedDataSource = (0, validators_1.strictObjectValidator)({
|
package/package.json
CHANGED
package/ui/panel.d.ts
CHANGED
|
@@ -53,11 +53,11 @@ export declare abstract class Panel extends IframeUI {
|
|
|
53
53
|
protected readonly config: PanelConfig;
|
|
54
54
|
constructor(client: EditorClient, config: PanelConfig);
|
|
55
55
|
/**
|
|
56
|
-
* Show this panel in
|
|
56
|
+
* Show this panel if the panel is in the rightDock and it is not already visible.
|
|
57
57
|
*/
|
|
58
58
|
show(): void;
|
|
59
59
|
/**
|
|
60
|
-
* Hide this panel if it is currently visible.
|
|
60
|
+
* Hide this panel if the panel is in the rightDock and it is currently visible.
|
|
61
61
|
*/
|
|
62
62
|
hide(): void;
|
|
63
63
|
}
|
package/ui/panel.js
CHANGED
|
@@ -44,16 +44,20 @@ class Panel extends iframeui_1.IframeUI {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* Show this panel in
|
|
47
|
+
* Show this panel if the panel is in the rightDock and it is not already visible.
|
|
48
48
|
*/
|
|
49
49
|
show() {
|
|
50
|
-
this.
|
|
50
|
+
if (this.config.location == PanelLocation.RightDock) {
|
|
51
|
+
this.client.sendCommand("spn" /* CommandName.ShowPanel */, { 'n': this.messageActionName });
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
/**
|
|
53
|
-
* Hide this panel if it is currently visible.
|
|
55
|
+
* Hide this panel if the panel is in the rightDock and it is currently visible.
|
|
54
56
|
*/
|
|
55
57
|
hide() {
|
|
56
|
-
this.
|
|
58
|
+
if (this.config.location == PanelLocation.RightDock) {
|
|
59
|
+
this.client.sendCommand("hp" /* CommandName.HidePanel */, { 'n': this.messageActionName });
|
|
60
|
+
}
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
exports.Panel = Panel;
|