@finos/legend-application-query 13.7.196 → 13.7.197
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/light-mode.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.d.ts +2 -2
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.js +9 -4
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.js.map +1 -1
- package/package.json +8 -8
- package/src/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.ts +12 -6
package/lib/index.css
CHANGED
package/lib/light-mode.css
CHANGED
package/lib/package.json
CHANGED
|
@@ -17,13 +17,13 @@ import { DataProductQueryBuilderState, type QueryBuilderActionConfig, type Query
|
|
|
17
17
|
import type { LegendQueryApplicationStore } from '../../LegendQueryBaseStore.js';
|
|
18
18
|
import { type DepotServerClient } from '@finos/legend-server-depot';
|
|
19
19
|
import type { DepotEntityWithOrigin, ProjectGAVCoordinates, QueryableSourceInfo } from '@finos/legend-storage';
|
|
20
|
-
import { LegendSDLC, type Class, type DataProduct, type GraphManagerState, type
|
|
20
|
+
import { LegendSDLC, type Class, type DataProduct, type GraphManagerState, type ModelAccessPointGroup, type NativeModelExecutionContext, type V1_DataProductArtifact } from '@finos/legend-graph';
|
|
21
21
|
export declare class LegendQueryDataProductQueryBuilderState extends DataProductQueryBuilderState {
|
|
22
22
|
applicationStore: LegendQueryApplicationStore;
|
|
23
23
|
depotServerClient: DepotServerClient;
|
|
24
24
|
project: ProjectGAVCoordinates;
|
|
25
25
|
extraOptionsConfig: ExtraOptionsConfig<DepotEntityWithOrigin>;
|
|
26
|
-
constructor(applicationStore: LegendQueryApplicationStore, graphManagerState: GraphManagerState, workflow: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, dataProduct: DataProduct, artifact: V1_DataProductArtifact | undefined,
|
|
26
|
+
constructor(applicationStore: LegendQueryApplicationStore, graphManagerState: GraphManagerState, workflow: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, dataProduct: DataProduct, artifact: V1_DataProductArtifact | undefined, executionState: NativeModelExecutionContext | ModelAccessPointGroup, isLightGraphEnabled: boolean, depotServerClient: DepotServerClient, project: ProjectGAVCoordinates, onDataProductChange: (val: DepotEntityWithOrigin) => Promise<void>, onExecutionContextChange?: ((val: NativeModelExecutionContext) => void) | undefined, onClassChange?: ((val: Class) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: QueryableSourceInfo | undefined);
|
|
27
27
|
get sdlc(): LegendSDLC;
|
|
28
28
|
copyDataProductLinkToClipBoard(): void;
|
|
29
29
|
}
|
package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendQueryDataProductQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../../src/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,
|
|
1
|
+
{"version":3,"file":"LegendQueryDataProductQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../../src/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAE5B,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,UAAU,EACV,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAM7B,qBAAa,uCAAwC,SAAQ,4BAA4B;IAC/E,gBAAgB,EAAE,2BAA2B,CAAC;IACtD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,OAAO,EAAE,qBAAqB,CAAC;IACvB,kBAAkB,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;gBAGpE,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,yBAAyB,EACnC,YAAY,EAAE,wBAAwB,EACtC,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,sBAAsB,GAAG,SAAS,EAC5C,cAAc,EAAE,2BAA2B,GAAG,qBAAqB,EACnE,mBAAmB,EAAE,OAAO,EAC5B,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,qBAAqB,EAC9B,mBAAmB,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,OAAO,CAAC,IAAI,CAAC,EAClE,wBAAwB,CAAC,EACrB,CAAC,CAAC,GAAG,EAAE,2BAA2B,KAAK,IAAI,CAAC,GAC5C,SAAS,EACb,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,EAClD,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,mBAAmB,GAAG,SAAS;IAqB9C,IAAI,IAAI,IAAI,UAAU,CAMrB;IAEQ,8BAA8B,IAAI,IAAI;CAkChD"}
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { DataProductQueryBuilderState, } from '@finos/legend-query-builder';
|
|
16
|
+
import { DataProductQueryBuilderState, NativeModelDataProductExecutionState, } from '@finos/legend-query-builder';
|
|
17
17
|
import { resolveVersion, } from '@finos/legend-server-depot';
|
|
18
18
|
import { LegendSDLC, } from '@finos/legend-graph';
|
|
19
19
|
import { DATA_PRODUCT_EXECUTION_TYPE, generateDataProductRoute, } from '../../../__lib__/LegendQueryNavigation.js';
|
|
20
20
|
export class LegendQueryDataProductQueryBuilderState extends DataProductQueryBuilderState {
|
|
21
21
|
depotServerClient;
|
|
22
22
|
project;
|
|
23
|
-
constructor(applicationStore, graphManagerState, workflow, actionConfig, dataProduct, artifact,
|
|
24
|
-
super(applicationStore, graphManagerState, workflow, dataProduct, artifact, actionConfig,
|
|
23
|
+
constructor(applicationStore, graphManagerState, workflow, actionConfig, dataProduct, artifact, executionState, isLightGraphEnabled, depotServerClient, project, onDataProductChange, onExecutionContextChange, onClassChange, config, sourceInfo) {
|
|
24
|
+
super(applicationStore, graphManagerState, workflow, dataProduct, artifact, actionConfig, executionState, undefined, onDataProductChange, onExecutionContextChange, onClassChange, config, sourceInfo);
|
|
25
25
|
this.project = project;
|
|
26
26
|
this.depotServerClient = depotServerClient;
|
|
27
27
|
}
|
|
@@ -30,7 +30,12 @@ export class LegendQueryDataProductQueryBuilderState extends DataProductQueryBui
|
|
|
30
30
|
}
|
|
31
31
|
copyDataProductLinkToClipBoard() {
|
|
32
32
|
const dataSpace = this.dataProduct;
|
|
33
|
-
const
|
|
33
|
+
const execState = this.executionState;
|
|
34
|
+
if (!(execState instanceof NativeModelDataProductExecutionState)) {
|
|
35
|
+
this.applicationStore.notificationService.notifyError('Data Product link is not available for this access type.');
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const executionContext = execState.exectionValue;
|
|
34
39
|
const route = this.applicationStore.navigationService.navigator.generateAddress(generateDataProductRoute(this.project.groupId, this.project.artifactId, this.project.versionId, dataSpace.path, DATA_PRODUCT_EXECUTION_TYPE.NATIVE, executionContext.key));
|
|
35
40
|
navigator.clipboard
|
|
36
41
|
.writeText(route)
|
package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendQueryDataProductQueryBuilderState.js","sourceRoot":"","sources":["../../../../src/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,
|
|
1
|
+
{"version":3,"file":"LegendQueryDataProductQueryBuilderState.js","sourceRoot":"","sources":["../../../../src/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,GAKrC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,cAAc,GAEf,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EACL,UAAU,GAOX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,OAAO,uCAAwC,SAAQ,4BAA4B;IAEvF,iBAAiB,CAAoB;IACrC,OAAO,CAAwB;IAG/B,YACE,gBAA6C,EAC7C,iBAAoC,EACpC,QAAmC,EACnC,YAAsC,EACtC,WAAwB,EACxB,QAA4C,EAC5C,cAAmE,EACnE,mBAA4B,EAC5B,iBAAoC,EACpC,OAA8B,EAC9B,mBAAkE,EAClE,wBAEa,EACb,aAAkD,EAClD,MAAuC,EACvC,UAA4C;QAE5C,KAAK,CACH,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,SAAS,EACT,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,MAAM,EACN,UAAU,CACX,CAAC;QACF,IAAI,CAAC,OA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
"name": "@finos/legend-application-query",
|
|
3
|
-
"version": "13.7.
|
|
3
|
+
"version": "13.7.197",
|
|
4
4
|
"description": "Legend Query application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"test:watch": "jest --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@finos/legend-application": "16.0.
|
|
47
|
+
"@finos/legend-application": "16.0.97",
|
|
48
48
|
"@finos/legend-art": "7.1.142",
|
|
49
|
-
"@finos/legend-code-editor": "2.0.
|
|
50
|
-
"@finos/legend-data-cube": "0.3.
|
|
51
|
-
"@finos/legend-extension-dsl-data-space": "10.4.
|
|
52
|
-
"@finos/legend-graph": "32.3.
|
|
53
|
-
"@finos/legend-lego": "2.0.
|
|
54
|
-
"@finos/legend-query-builder": "4.17.
|
|
49
|
+
"@finos/legend-code-editor": "2.0.153",
|
|
50
|
+
"@finos/legend-data-cube": "0.3.68",
|
|
51
|
+
"@finos/legend-extension-dsl-data-space": "10.4.194",
|
|
52
|
+
"@finos/legend-graph": "32.3.33",
|
|
53
|
+
"@finos/legend-lego": "2.0.170",
|
|
54
|
+
"@finos/legend-query-builder": "4.17.86",
|
|
55
55
|
"@finos/legend-server-depot": "6.1.9",
|
|
56
56
|
"@finos/legend-shared": "11.0.22",
|
|
57
57
|
"@finos/legend-storage": "3.0.143",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
18
|
DataProductQueryBuilderState,
|
|
19
|
+
NativeModelDataProductExecutionState,
|
|
19
20
|
type QueryBuilderActionConfig,
|
|
20
21
|
type QueryBuilderConfig,
|
|
21
22
|
type QueryBuilderWorkflowState,
|
|
@@ -36,7 +37,7 @@ import {
|
|
|
36
37
|
type Class,
|
|
37
38
|
type DataProduct,
|
|
38
39
|
type GraphManagerState,
|
|
39
|
-
type
|
|
40
|
+
type ModelAccessPointGroup,
|
|
40
41
|
type NativeModelExecutionContext,
|
|
41
42
|
type V1_DataProductArtifact,
|
|
42
43
|
} from '@finos/legend-graph';
|
|
@@ -58,8 +59,7 @@ export class LegendQueryDataProductQueryBuilderState extends DataProductQueryBui
|
|
|
58
59
|
actionConfig: QueryBuilderActionConfig,
|
|
59
60
|
dataProduct: DataProduct,
|
|
60
61
|
artifact: V1_DataProductArtifact | undefined,
|
|
61
|
-
|
|
62
|
-
nativeModelExecContext: NativeModelExecutionContext,
|
|
62
|
+
executionState: NativeModelExecutionContext | ModelAccessPointGroup,
|
|
63
63
|
isLightGraphEnabled: boolean,
|
|
64
64
|
depotServerClient: DepotServerClient,
|
|
65
65
|
project: ProjectGAVCoordinates,
|
|
@@ -78,8 +78,7 @@ export class LegendQueryDataProductQueryBuilderState extends DataProductQueryBui
|
|
|
78
78
|
dataProduct,
|
|
79
79
|
artifact,
|
|
80
80
|
actionConfig,
|
|
81
|
-
|
|
82
|
-
nativeModelExecContext,
|
|
81
|
+
executionState,
|
|
83
82
|
undefined,
|
|
84
83
|
onDataProductChange,
|
|
85
84
|
onExecutionContextChange,
|
|
@@ -101,7 +100,14 @@ export class LegendQueryDataProductQueryBuilderState extends DataProductQueryBui
|
|
|
101
100
|
|
|
102
101
|
override copyDataProductLinkToClipBoard(): void {
|
|
103
102
|
const dataSpace = this.dataProduct;
|
|
104
|
-
const
|
|
103
|
+
const execState = this.executionState;
|
|
104
|
+
if (!(execState instanceof NativeModelDataProductExecutionState)) {
|
|
105
|
+
this.applicationStore.notificationService.notifyError(
|
|
106
|
+
'Data Product link is not available for this access type.',
|
|
107
|
+
);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const executionContext = execState.exectionValue;
|
|
105
111
|
const route =
|
|
106
112
|
this.applicationStore.navigationService.navigator.generateAddress(
|
|
107
113
|
generateDataProductRoute(
|