@finos/legend-application-studio 28.18.93 → 28.18.94
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/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/data-cube/LegendStudioDataCubeHelper.js +4 -4
- package/lib/stores/editor/data-cube/LegendStudioDataCubeHelper.js.map +1 -1
- package/package.json +6 -6
- package/src/stores/editor/data-cube/LegendStudioDataCubeHelper.ts +5 -5
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -20,13 +20,13 @@ import {} from '@finos/legend-data-cube';
|
|
20
20
|
export const isElementSupportedByDataCube = (element) => element instanceof ConcreteFunctionDefinition || element instanceof Service;
|
21
21
|
export const openDataCube = async (element, editorStore) => {
|
22
22
|
try {
|
23
|
-
let
|
23
|
+
let specification;
|
24
24
|
let engine;
|
25
25
|
if (element instanceof ConcreteFunctionDefinition) {
|
26
26
|
const body = element.expressionSequence;
|
27
27
|
const rawLambda = new RawLambda([], body);
|
28
28
|
engine = new QueryBuilderDataCubeEngine(rawLambda, undefined, undefined, undefined, editorStore.graphManagerState);
|
29
|
-
|
29
|
+
specification = await engine.generateInitialSpecification();
|
30
30
|
}
|
31
31
|
else if (element instanceof Service) {
|
32
32
|
const exec = guaranteeType(element.execution, PureExecution, 'Service must have a pure execution');
|
@@ -44,7 +44,7 @@ export const openDataCube = async (element, editorStore) => {
|
|
44
44
|
runtime = guaranteeType(param.runtime, RuntimePointer, 'Only runtime pointers supported');
|
45
45
|
}
|
46
46
|
engine = new QueryBuilderDataCubeEngine(exec.func, undefined, mapping?.path, runtime?.packageableRuntime.value.path, editorStore.graphManagerState);
|
47
|
-
|
47
|
+
specification = await engine.generateInitialSpecification();
|
48
48
|
}
|
49
49
|
else {
|
50
50
|
throw new UnsupportedOperationError('Element not supported to open Data Cube with');
|
@@ -56,7 +56,7 @@ export const openDataCube = async (element, editorStore) => {
|
|
56
56
|
assertErrorThrown(error);
|
57
57
|
throw new UnsupportedOperationError('Only relation type queries supported in Data Cube');
|
58
58
|
}
|
59
|
-
editorStore.setEmbeddedDataCubeViewerState(new QueryBuilderDataCubeViewerState(
|
59
|
+
editorStore.setEmbeddedDataCubeViewerState(new QueryBuilderDataCubeViewerState(specification, engine));
|
60
60
|
}
|
61
61
|
catch (error) {
|
62
62
|
assertErrorThrown(error);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendStudioDataCubeHelper.js","sourceRoot":"","sources":["../../../../src/stores/editor/data-cube/LegendStudioDataCubeHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAG1B,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,OAAO,GACR,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,
|
1
|
+
{"version":3,"file":"LegendStudioDataCubeHelper.js","sourceRoot":"","sources":["../../../../src/stores/editor/data-cube/LegendStudioDataCubeHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAG1B,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,OAAO,GACR,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAA8B,MAAM,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,OAA2B,EAClB,EAAE,CAC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a,CACrB,KAAK,CAAC,OAAO,EACb,cAAc,EACd,iCAAiC,CAClC,CAAC;YACJ,CAAC;YACD,MAAM,GAAG,IAAI,0BAA0B,CACrC,IAAI,CAAC,IAAI,EACT,SAAS,EACT,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,kBAAkB,CAAC,KAAK,CAAC,IAAI,EACtC,WAAW,CAAC,iBAAiB,CAC9B,CAAC;YACF,aAAa,GAAG,MAAM,MAAM,CAAC,4BAA4B,EAAE,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,yBAAyB,CACjC,8CAA8C,CAC/C,CAAC;QACJ,CAAC;QAED,IAAI,CAAC;YACH,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAC1D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,MAAM,IAAI,yBAAyB,CACjC,mDAAmD,CACpD,CAAC;QACJ,CAAC;QAED,WAAW,CAAC,8BAA8B,CACxC,IAAI,+BAA+B,CAAC,aAAa,EAAE,MAAM,CAAC,CAC3D,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACzB,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAC1D,wBAAwB,KAAK,CAAC,OAAO,EAAE,CACxC,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-studio",
|
3
|
-
"version": "28.18.
|
3
|
+
"version": "28.18.94",
|
4
4
|
"description": "Legend Studio application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -47,11 +47,11 @@
|
|
47
47
|
"dependencies": {
|
48
48
|
"@finos/legend-application": "16.0.24",
|
49
49
|
"@finos/legend-art": "7.1.81",
|
50
|
-
"@finos/legend-code-editor": "2.0.
|
51
|
-
"@finos/legend-data-cube": "0.1.
|
52
|
-
"@finos/legend-graph": "32.1.
|
53
|
-
"@finos/legend-lego": "2.0.
|
54
|
-
"@finos/legend-query-builder": "4.16.
|
50
|
+
"@finos/legend-code-editor": "2.0.45",
|
51
|
+
"@finos/legend-data-cube": "0.1.5",
|
52
|
+
"@finos/legend-graph": "32.1.3",
|
53
|
+
"@finos/legend-lego": "2.0.48",
|
54
|
+
"@finos/legend-query-builder": "4.16.5",
|
55
55
|
"@finos/legend-server-depot": "6.0.80",
|
56
56
|
"@finos/legend-server-sdlc": "5.3.48",
|
57
57
|
"@finos/legend-server-showcase": "0.2.44",
|
@@ -36,7 +36,7 @@ import {
|
|
36
36
|
guaranteeType,
|
37
37
|
UnsupportedOperationError,
|
38
38
|
} from '@finos/legend-shared';
|
39
|
-
import { type
|
39
|
+
import { type DataCubeSpecification } from '@finos/legend-data-cube';
|
40
40
|
|
41
41
|
export const isElementSupportedByDataCube = (
|
42
42
|
element: PackageableElement,
|
@@ -48,7 +48,7 @@ export const openDataCube = async (
|
|
48
48
|
editorStore: EditorStore,
|
49
49
|
): Promise<void> => {
|
50
50
|
try {
|
51
|
-
let
|
51
|
+
let specification: DataCubeSpecification;
|
52
52
|
let engine: QueryBuilderDataCubeEngine;
|
53
53
|
|
54
54
|
if (element instanceof ConcreteFunctionDefinition) {
|
@@ -61,7 +61,7 @@ export const openDataCube = async (
|
|
61
61
|
undefined,
|
62
62
|
editorStore.graphManagerState,
|
63
63
|
);
|
64
|
-
|
64
|
+
specification = await engine.generateInitialSpecification();
|
65
65
|
} else if (element instanceof Service) {
|
66
66
|
const exec = guaranteeType(
|
67
67
|
element.execution,
|
@@ -99,7 +99,7 @@ export const openDataCube = async (
|
|
99
99
|
runtime?.packageableRuntime.value.path,
|
100
100
|
editorStore.graphManagerState,
|
101
101
|
);
|
102
|
-
|
102
|
+
specification = await engine.generateInitialSpecification();
|
103
103
|
} else {
|
104
104
|
throw new UnsupportedOperationError(
|
105
105
|
'Element not supported to open Data Cube with',
|
@@ -116,7 +116,7 @@ export const openDataCube = async (
|
|
116
116
|
}
|
117
117
|
|
118
118
|
editorStore.setEmbeddedDataCubeViewerState(
|
119
|
-
new QueryBuilderDataCubeViewerState(
|
119
|
+
new QueryBuilderDataCubeViewerState(specification, engine),
|
120
120
|
);
|
121
121
|
} catch (error) {
|
122
122
|
assertErrorThrown(error);
|