@finos/legend-extension-dsl-data-space 10.0.9 → 10.0.11
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/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +4 -3
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +38 -4
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +1 -0
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataSpaceLayoutState.d.ts +2 -0
- package/lib/stores/DataSpaceLayoutState.d.ts.map +1 -0
- package/lib/stores/DataSpaceLayoutState.js +2 -0
- package/lib/stores/DataSpaceLayoutState.js.map +1 -0
- package/package.json +12 -12
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +97 -0
- package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +1 -0
- package/src/stores/DataSpaceLayoutState.ts +0 -0
- package/tsconfig.json +2 -1
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.ts +0 -45
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { LegendApplicationPlugin, type LegendApplicationPluginManager
|
|
17
|
-
|
|
16
|
+
import { LegendApplicationPlugin, type LegendApplicationPluginManager } from '@finos/legend-application';
|
|
17
|
+
import type { LoadQueryFilterOption, QueryBuilder_LegendApplicationPlugin_Extension } from '@finos/legend-query-builder';
|
|
18
|
+
export declare class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin implements QueryBuilder_LegendApplicationPlugin_Extension {
|
|
18
19
|
static NAME: string;
|
|
19
20
|
constructor();
|
|
20
21
|
install(pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>): void;
|
|
21
|
-
|
|
22
|
+
getExtraLoadQueryFilterOptions(): LoadQueryFilterOption[];
|
|
22
23
|
}
|
|
23
24
|
//# sourceMappingURL=DSL_DataSpace_LegendApplicationPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EACV,qBAAqB,EACrB,8CAA8C,EAC/C,MAAM,6BAA6B,CAAC;AAQrC,qBAAa,qCACX,SAAQ,uBACR,YAAW,8CAA8C;IAEzD,MAAM,CAAC,IAAI,SAA4C;;IAMvD,OAAO,CACL,aAAa,EAAE,8BAA8B,CAAC,uBAAuB,CAAC,GACrE,IAAI;IAIP,8BAA8B,IAAI,qBAAqB,EAAE;CAgD1D"}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LegendApplicationPlugin, } from '@finos/legend-application';
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
|
-
import {
|
|
18
|
+
import { DataSpaceQueryBuilderState } from '../stores/query/DataSpaceQueryBuilderState.js';
|
|
19
|
+
import { createQueryClassTaggedValue, createQueryDataSpaceTaggedValue, } from '../stores/query/DataSpaceQueryCreatorStore.js';
|
|
19
20
|
class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
20
21
|
static NAME = packageJson.extensions.applicationPlugin;
|
|
21
22
|
constructor() {
|
|
@@ -24,10 +25,43 @@ class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
|
24
25
|
install(pluginManager) {
|
|
25
26
|
pluginManager.registerApplicationPlugin(this);
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
+
getExtraLoadQueryFilterOptions() {
|
|
28
29
|
return [
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
{
|
|
31
|
+
key: 'data-space-filter-option',
|
|
32
|
+
label: (queryBuilderState) => {
|
|
33
|
+
if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
|
34
|
+
return 'Current Data Space';
|
|
35
|
+
}
|
|
36
|
+
return undefined;
|
|
37
|
+
},
|
|
38
|
+
filterFunction: (searchSpecification, queryBuilderState) => {
|
|
39
|
+
if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
|
40
|
+
searchSpecification.taggedValues = [
|
|
41
|
+
createQueryDataSpaceTaggedValue(queryBuilderState.dataSpace.path),
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
return searchSpecification;
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: 'class-filter-option',
|
|
49
|
+
label: (queryBuilderState) => {
|
|
50
|
+
if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
|
51
|
+
return 'Current Class';
|
|
52
|
+
}
|
|
53
|
+
return undefined;
|
|
54
|
+
},
|
|
55
|
+
filterFunction: (searchSpecification, queryBuilderState) => {
|
|
56
|
+
if (queryBuilderState instanceof DataSpaceQueryBuilderState &&
|
|
57
|
+
queryBuilderState.class) {
|
|
58
|
+
searchSpecification.taggedValues = [
|
|
59
|
+
createQueryDataSpaceTaggedValue(queryBuilderState.dataSpace.path),
|
|
60
|
+
createQueryClassTaggedValue(queryBuilderState.class.path),
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
return searchSpecification;
|
|
64
|
+
},
|
|
31
65
|
},
|
|
32
66
|
];
|
|
33
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AACnC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAK7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAE3F,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,+CAA+C,CAAC;AAEvD,MAAa,qCACX,SAAQ,uBAAuB;IAG/B,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAEvD;QACE,KAAK,CAAC,qCAAqC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,CACL,aAAsE;QAEtE,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAED,8BAA8B;QAC5B,OAAO;YACL;gBACE,GAAG,EAAE,0BAA0B;gBAC/B,KAAK,EAAE,CAAC,iBAAiB,EAAsB,EAAE;oBAC/C,IAAI,iBAAiB,YAAY,0BAA0B,EAAE;wBAC3D,OAAO,oBAAoB,CAAC;qBAC7B;oBACD,OAAO,SAAS,CAAC;gBACnB,CAAC;gBACD,cAAc,EAAE,CACd,mBAAmB,EACnB,iBAAiB,EACS,EAAE;oBAC5B,IAAI,iBAAiB,YAAY,0BAA0B,EAAE;wBAC3D,mBAAmB,CAAC,YAAY,GAAG;4BACjC,+BAA+B,CAAC,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC;yBAClE,CAAC;qBACH;oBACD,OAAO,mBAAmB,CAAC;gBAC7B,CAAC;aACF;YACD;gBACE,GAAG,EAAE,qBAAqB;gBAC1B,KAAK,EAAE,CAAC,iBAAiB,EAAsB,EAAE;oBAC/C,IAAI,iBAAiB,YAAY,0BAA0B,EAAE;wBAC3D,OAAO,eAAe,CAAC;qBACxB;oBACD,OAAO,SAAS,CAAC;gBACnB,CAAC;gBACD,cAAc,EAAE,CACd,mBAAmB,EACnB,iBAAiB,EACS,EAAE;oBAC5B,IACE,iBAAiB,YAAY,0BAA0B;wBACvD,iBAAiB,CAAC,KAAK,EACvB;wBACA,mBAAmB,CAAC,YAAY,GAAG;4BACjC,+BAA+B,CAAC,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC;4BACjE,2BAA2B,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC;yBAC1D,CAAC;qBACH;oBACD,OAAO,mBAAmB,CAAC;gBAC7B,CAAC;aACF;SACF,CAAC;IACJ,CAAC;;SA/DU,qCAAqC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EAEpC,4BAA4B,EAM7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAmBnC,qBAAa,0CAA2C,SAAQ,4BAA4B;;IAKjF,8BAA8B,IAAI,oBAAoB,EAAE;IAiBxD,sCAAsC,IAAI,6BAA6B,EAAE;IAoBzE,wCAAwC,IAAI,+BAA+B,EAAE;
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EAEpC,4BAA4B,EAM7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAmBnC,qBAAa,0CAA2C,SAAQ,4BAA4B;;IAKjF,8BAA8B,IAAI,oBAAoB,EAAE;IAiBxD,sCAAsC,IAAI,6BAA6B,EAAE;IAoBzE,wCAAwC,IAAI,+BAA+B,EAAE;CAgJvF"}
|
|
@@ -96,6 +96,7 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
|
96
96
|
_query.stereotypes = query.stereotypes;
|
|
97
97
|
_query.content = query.content;
|
|
98
98
|
_query.owner = query.owner;
|
|
99
|
+
_query.lastUpdatedAt = query.lastUpdatedAt;
|
|
99
100
|
try {
|
|
100
101
|
if (!query.isCurrentUserQuery) {
|
|
101
102
|
_query.id = uuid();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAIL,4BAA4B,EAC5B,gCAAgC,EAChC,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,qBAAqB,EACrB,eAAe,GAEhB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC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AAI,aAAa,CAAC,uBAAuB,EAAE;4BACzC,MAAM,WAAW,GAAG,KAAK,IAAmB,EAAE;gCAC5C,gCAAgC;gCAChC,MAAM,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;gCAC3B,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;gCACzB,MAAM,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;gCACrB,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;gCAC/B,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;gCACrC,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;gCACnC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;gCAC/B,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;gCAC/B,MAAM,CAAC,YAAY,GAAG;oCACpB,+BAA+B,CAAC,aAAa,CAAC,IAAI,CAAC;iCACpD,CAAC,MAAM,CACN,CAAC,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,MAAM,CAC/B,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,KAAK,oBAAoB,CACtD,CACF,CAAC;gCACF,MAAM,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;gCACvC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;gCAC/B,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAIL,4BAA4B,EAC5B,gCAAgC,EAChC,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,GA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B,CAAC,YAAY,CAAC,kBAAkB,CAAC;gCAC3D,OAAO,EAAE,oEACP,KAAK,CAAC,kBAAkB;oCACtB,CAAC,CAAC,kBAAkB;oCACpB,CAAC,CAAC,oBACN,aAAa;gCACb,IAAI,EAAE,eAAe,CAAC,OAAO;gCAC7B,OAAO,EAAE;oCACP;wCACE,KAAK,EAAE,KAAK,CAAC,kBAAkB;4CAC7B,CAAC,CAAC,cAAc;4CAChB,CAAC,CAAC,kBAAkB;wCACtB,IAAI,EAAE,qBAAqB,CAAC,oBAAoB;wCAChD,OAAO,EAAE,GAAG,EAAE;4CACZ,WAAW,EAAE,CAAC,KAAK,CACjB,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CACjD,CAAC;wCACJ,CAAC;qCACF;oCACD;wCACE,KAAK,EAAE,OAAO;wCACd,IAAI,EAAE,qBAAqB,CAAC,OAAO;wCACnC,OAAO,EAAE,IAAI;qCACd;iCACF;6BACF,CAAC,CAAC;yBACJ;6BAAM;4BACL,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CAC5D,kEAAkE,CACnE,CAAC;yBACH;oBACH,CAAC,CACF,CAAC;iBACH;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceLayoutState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceLayoutState.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceLayoutState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceLayoutState.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.11",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"test:watch": "jest --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@finos/legend-application": "15.0.
|
|
48
|
-
"@finos/legend-application-query": "
|
|
49
|
-
"@finos/legend-application-studio": "24.
|
|
50
|
-
"@finos/legend-art": "7.0.
|
|
51
|
-
"@finos/legend-extension-dsl-diagram": "8.0.
|
|
52
|
-
"@finos/legend-graph": "28.1.
|
|
53
|
-
"@finos/legend-lego": "0.1.
|
|
54
|
-
"@finos/legend-query-builder": "3.0
|
|
55
|
-
"@finos/legend-server-depot": "6.0.
|
|
56
|
-
"@finos/legend-shared": "10.0.
|
|
57
|
-
"@finos/legend-storage": "3.0.
|
|
47
|
+
"@finos/legend-application": "15.0.7",
|
|
48
|
+
"@finos/legend-application-query": "13.0.0",
|
|
49
|
+
"@finos/legend-application-studio": "24.2.0",
|
|
50
|
+
"@finos/legend-art": "7.0.8",
|
|
51
|
+
"@finos/legend-extension-dsl-diagram": "8.0.11",
|
|
52
|
+
"@finos/legend-graph": "28.1.4",
|
|
53
|
+
"@finos/legend-lego": "0.1.13",
|
|
54
|
+
"@finos/legend-query-builder": "3.2.0",
|
|
55
|
+
"@finos/legend-server-depot": "6.0.4",
|
|
56
|
+
"@finos/legend-shared": "10.0.3",
|
|
57
|
+
"@finos/legend-storage": "3.0.53",
|
|
58
58
|
"@types/react": "18.2.0",
|
|
59
59
|
"mobx": "6.9.0",
|
|
60
60
|
"mobx-react-lite": "3.4.3",
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
LegendApplicationPlugin,
|
|
19
|
+
type LegendApplicationPluginManager,
|
|
20
|
+
} from '@finos/legend-application';
|
|
21
|
+
import packageJson from '../../package.json';
|
|
22
|
+
import type {
|
|
23
|
+
LoadQueryFilterOption,
|
|
24
|
+
QueryBuilder_LegendApplicationPlugin_Extension,
|
|
25
|
+
} from '@finos/legend-query-builder';
|
|
26
|
+
import { DataSpaceQueryBuilderState } from '../stores/query/DataSpaceQueryBuilderState.js';
|
|
27
|
+
import type { QuerySearchSpecification } from '@finos/legend-graph';
|
|
28
|
+
import {
|
|
29
|
+
createQueryClassTaggedValue,
|
|
30
|
+
createQueryDataSpaceTaggedValue,
|
|
31
|
+
} from '../stores/query/DataSpaceQueryCreatorStore.js';
|
|
32
|
+
|
|
33
|
+
export class DSL_DataSpace_LegendApplicationPlugin
|
|
34
|
+
extends LegendApplicationPlugin
|
|
35
|
+
implements QueryBuilder_LegendApplicationPlugin_Extension
|
|
36
|
+
{
|
|
37
|
+
static NAME = packageJson.extensions.applicationPlugin;
|
|
38
|
+
|
|
39
|
+
constructor() {
|
|
40
|
+
super(DSL_DataSpace_LegendApplicationPlugin.NAME, packageJson.version);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install(
|
|
44
|
+
pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>,
|
|
45
|
+
): void {
|
|
46
|
+
pluginManager.registerApplicationPlugin(this);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
getExtraLoadQueryFilterOptions(): LoadQueryFilterOption[] {
|
|
50
|
+
return [
|
|
51
|
+
{
|
|
52
|
+
key: 'data-space-filter-option',
|
|
53
|
+
label: (queryBuilderState): string | undefined => {
|
|
54
|
+
if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
|
55
|
+
return 'Current Data Space';
|
|
56
|
+
}
|
|
57
|
+
return undefined;
|
|
58
|
+
},
|
|
59
|
+
filterFunction: (
|
|
60
|
+
searchSpecification,
|
|
61
|
+
queryBuilderState,
|
|
62
|
+
): QuerySearchSpecification => {
|
|
63
|
+
if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
|
64
|
+
searchSpecification.taggedValues = [
|
|
65
|
+
createQueryDataSpaceTaggedValue(queryBuilderState.dataSpace.path),
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
return searchSpecification;
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: 'class-filter-option',
|
|
73
|
+
label: (queryBuilderState): string | undefined => {
|
|
74
|
+
if (queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
|
75
|
+
return 'Current Class';
|
|
76
|
+
}
|
|
77
|
+
return undefined;
|
|
78
|
+
},
|
|
79
|
+
filterFunction: (
|
|
80
|
+
searchSpecification,
|
|
81
|
+
queryBuilderState,
|
|
82
|
+
): QuerySearchSpecification => {
|
|
83
|
+
if (
|
|
84
|
+
queryBuilderState instanceof DataSpaceQueryBuilderState &&
|
|
85
|
+
queryBuilderState.class
|
|
86
|
+
) {
|
|
87
|
+
searchSpecification.taggedValues = [
|
|
88
|
+
createQueryDataSpaceTaggedValue(queryBuilderState.dataSpace.path),
|
|
89
|
+
createQueryClassTaggedValue(queryBuilderState.class.path),
|
|
90
|
+
];
|
|
91
|
+
}
|
|
92
|
+
return searchSpecification;
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -156,6 +156,7 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
|
156
156
|
_query.stereotypes = query.stereotypes;
|
|
157
157
|
_query.content = query.content;
|
|
158
158
|
_query.owner = query.owner;
|
|
159
|
+
_query.lastUpdatedAt = query.lastUpdatedAt;
|
|
159
160
|
|
|
160
161
|
try {
|
|
161
162
|
if (!query.isCurrentUserQuery) {
|
|
File without changes
|
package/tsconfig.json
CHANGED
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"./src/__lib__/query/DSL_DataSpace_LegendQueryNavigation.ts",
|
|
36
36
|
"./src/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts",
|
|
37
37
|
"./src/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.ts",
|
|
38
|
-
"./src/components/DSL_DataSpace_LegendApplicationPlugin.ts",
|
|
39
38
|
"./src/components/index.ts",
|
|
40
39
|
"./src/components/query/index.ts",
|
|
41
40
|
"./src/components/studio/index.ts",
|
|
@@ -59,6 +58,7 @@
|
|
|
59
58
|
"./src/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_DataSpace_GraphBuilderHelper.ts",
|
|
60
59
|
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts",
|
|
61
60
|
"./src/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.ts",
|
|
61
|
+
"./src/stores/DataSpaceLayoutState.ts",
|
|
62
62
|
"./src/stores/DataSpaceModelsDocumentationState.ts",
|
|
63
63
|
"./src/stores/DataSpaceViewerDataAccessState.ts",
|
|
64
64
|
"./src/stores/DataSpaceViewerState.ts",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"./src/stores/query/DataSpaceQuerySetupStore.ts",
|
|
70
70
|
"./src/stores/studio/DataSpacePreviewState.ts",
|
|
71
71
|
"./src/components/DSL_DataSpace_Icon.tsx",
|
|
72
|
+
"./src/components/DSL_DataSpace_LegendApplicationPlugin.tsx",
|
|
72
73
|
"./src/components/DataSpaceDataAccess.tsx",
|
|
73
74
|
"./src/components/DataSpaceDescription.tsx",
|
|
74
75
|
"./src/components/DataSpaceDiagramViewer.tsx",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import {
|
|
18
|
-
LegendApplicationPlugin,
|
|
19
|
-
type LegendApplicationPluginManager,
|
|
20
|
-
type LegendApplicationSetup,
|
|
21
|
-
} from '@finos/legend-application';
|
|
22
|
-
import packageJson from '../../package.json';
|
|
23
|
-
import { configureDataGridComponent } from '@finos/legend-lego/data-grid';
|
|
24
|
-
|
|
25
|
-
export class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
|
|
26
|
-
static NAME = packageJson.extensions.applicationPlugin;
|
|
27
|
-
|
|
28
|
-
constructor() {
|
|
29
|
-
super(DSL_DataSpace_LegendApplicationPlugin.NAME, packageJson.version);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
install(
|
|
33
|
-
pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>,
|
|
34
|
-
): void {
|
|
35
|
-
pluginManager.registerApplicationPlugin(this);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
override getExtraApplicationSetups(): LegendApplicationSetup[] {
|
|
39
|
-
return [
|
|
40
|
-
async (applicationStore) => {
|
|
41
|
-
configureDataGridComponent();
|
|
42
|
-
},
|
|
43
|
-
];
|
|
44
|
-
}
|
|
45
|
-
}
|