@finos/legend-application-query 13.4.15 → 13.4.17
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/LegendQueryEvent.d.ts +2 -1
- package/lib/__lib__/LegendQueryEvent.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryEvent.js +1 -0
- package/lib/__lib__/LegendQueryEvent.js.map +1 -1
- package/lib/__lib__/LegendQueryUserDataHelper.d.ts +23 -3
- package/lib/__lib__/LegendQueryUserDataHelper.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryUserDataHelper.js +94 -14
- package/lib/__lib__/LegendQueryUserDataHelper.js.map +1 -1
- package/lib/__lib__/LegendQueryUserDataSpaceHelper.d.ts +31 -0
- package/lib/__lib__/LegendQueryUserDataSpaceHelper.d.ts.map +1 -0
- package/lib/__lib__/LegendQueryUserDataSpaceHelper.js +54 -0
- package/lib/__lib__/LegendQueryUserDataSpaceHelper.js.map +1 -0
- package/lib/components/CloneQueryServiceSetup.js +1 -2
- package/lib/components/CloneQueryServiceSetup.js.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +58 -16
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/CreateMappingQuerySetup.js +1 -2
- package/lib/components/CreateMappingQuerySetup.js.map +1 -1
- package/lib/components/LegendQueryAppInfo.d.ts +21 -0
- package/lib/components/LegendQueryAppInfo.d.ts.map +1 -0
- package/lib/components/LegendQueryAppInfo.js +46 -0
- package/lib/components/LegendQueryAppInfo.js.map +1 -0
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +9 -8
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/QueryEdtiorExistingQueryVersionRevertModal.js +1 -1
- package/lib/components/QueryEdtiorExistingQueryVersionRevertModal.js.map +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.js +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +3 -3
- package/lib/stores/QueryEditorStore.d.ts +3 -0
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +13 -1
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts +2 -0
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js +21 -2
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts +10 -2
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.js +53 -3
- package/lib/stores/data-space/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +13 -13
- package/src/__lib__/LegendQueryEvent.ts +2 -0
- package/src/__lib__/LegendQueryUserDataHelper.ts +192 -18
- package/src/__lib__/LegendQueryUserDataSpaceHelper.ts +98 -0
- package/src/components/CloneQueryServiceSetup.tsx +1 -1
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +89 -41
- package/src/components/CreateMappingQuerySetup.tsx +1 -1
- package/src/components/LegendQueryAppInfo.tsx +153 -0
- package/src/components/QueryEditor.tsx +15 -11
- package/src/components/QueryEdtiorExistingQueryVersionRevertModal.tsx +1 -1
- package/src/components/data-space/DataSpaceQuerySetup.tsx +1 -1
- package/src/stores/QueryEditorStore.ts +19 -0
- package/src/stores/data-space/DataSpaceQueryCreatorStore.ts +59 -0
- package/src/stores/data-space/DataSpaceQuerySetupState.ts +92 -4
- package/tsconfig.json +2 -0
@@ -21,6 +21,7 @@ export declare enum LEGEND_QUERY_APP_EVENT {
|
|
21
21
|
RENAME_QUERY__SUCCESS = "query-editor.rename.query.success",
|
22
22
|
INITIALIZE_QUERY_STATE__SUCCESS = "query-editor.initialize-query-state.success",
|
23
23
|
VIEW_PROJECT__LAUNCH = "query-editor.view-project.launch",
|
24
|
-
VIEW_SDLC_PROJECT__LAUNCH = "query-editor.view-sdlc-project.launch"
|
24
|
+
VIEW_SDLC_PROJECT__LAUNCH = "query-editor.view-sdlc-project.launch",
|
25
|
+
LOCAL_STORAGE_PERSIST_ERROR = "LOCAL_STORAGE_PERSIST_ERROR"
|
25
26
|
}
|
26
27
|
//# sourceMappingURL=LegendQueryEvent.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQueryEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendQueryEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,sBAAsB;IAEhC,eAAe,gCAAgC;IAE/C,mBAAmB,oCAAoC;IACvD,qBAAqB,sCAAsC;IAC3D,qBAAqB,sCAAsC;IAC3D,qBAAqB,sCAAsC;IAC3D,+BAA+B,gDAAgD;IAE/E,oBAAoB,qCAAqC;IACzD,yBAAyB,0CAA0C;
|
1
|
+
{"version":3,"file":"LegendQueryEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendQueryEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,sBAAsB;IAEhC,eAAe,gCAAgC;IAE/C,mBAAmB,oCAAoC;IACvD,qBAAqB,sCAAsC;IAC3D,qBAAqB,sCAAsC;IAC3D,qBAAqB,sCAAsC;IAC3D,+BAA+B,gDAAgD;IAE/E,oBAAoB,qCAAqC;IACzD,yBAAyB,0CAA0C;IAEnE,2BAA2B,gCAAgC;CAC5D"}
|
@@ -24,5 +24,6 @@ export var LEGEND_QUERY_APP_EVENT;
|
|
24
24
|
LEGEND_QUERY_APP_EVENT["INITIALIZE_QUERY_STATE__SUCCESS"] = "query-editor.initialize-query-state.success";
|
25
25
|
LEGEND_QUERY_APP_EVENT["VIEW_PROJECT__LAUNCH"] = "query-editor.view-project.launch";
|
26
26
|
LEGEND_QUERY_APP_EVENT["VIEW_SDLC_PROJECT__LAUNCH"] = "query-editor.view-sdlc-project.launch";
|
27
|
+
LEGEND_QUERY_APP_EVENT["LOCAL_STORAGE_PERSIST_ERROR"] = "LOCAL_STORAGE_PERSIST_ERROR";
|
27
28
|
})(LEGEND_QUERY_APP_EVENT || (LEGEND_QUERY_APP_EVENT = {}));
|
28
29
|
//# sourceMappingURL=LegendQueryEvent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQueryEvent.js","sourceRoot":"","sources":["../../src/__lib__/LegendQueryEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"LegendQueryEvent.js","sourceRoot":"","sources":["../../src/__lib__/LegendQueryEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,sBAcX;AAdD,WAAY,sBAAsB;IAChC,wCAAwC;IACxC,yEAA+C,CAAA;IAE/C,iFAAuD,CAAA;IACvD,qFAA2D,CAAA;IAC3D,qFAA2D,CAAA;IAC3D,qFAA2D,CAAA;IAC3D,yGAA+E,CAAA;IAE/E,mFAAyD,CAAA;IACzD,6FAAmE,CAAA;IAEnE,qFAA2D,CAAA;AAC7D,CAAC,EAdW,sBAAsB,KAAtB,sBAAsB,QAcjC"}
|
@@ -14,15 +14,35 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import type { UserDataService } from '@finos/legend-application';
|
17
|
+
import { type SavedVisitedDataSpaces, type VisitedDataspace } from './LegendQueryUserDataSpaceHelper.js';
|
18
|
+
import type { DataSpaceInfo } from '@finos/legend-extension-dsl-data-space/application';
|
17
19
|
export declare enum LEGEND_QUERY_USER_DATA_KEY {
|
18
|
-
RECENTLY_VIEWED_QUERIES = "query-editor.recent-queries"
|
20
|
+
RECENTLY_VIEWED_QUERIES = "query-editor.recent-queries",
|
21
|
+
RECENTLY_VIEWED_DATASPACES = "query-editor.recent-dataSpaces"
|
19
22
|
}
|
20
|
-
|
23
|
+
export declare const USER_DATA_RECENTLY_VIEWED_QUERIES_LIMIT = 10;
|
24
|
+
export declare const USER_DATA_QUERY_DATASPACE_LIMIT = 10;
|
25
|
+
type SavedData = string[];
|
21
26
|
export declare class LegendQueryUserDataHelper {
|
22
|
-
static
|
27
|
+
static getPersistedData(service: UserDataService, key: LEGEND_QUERY_USER_DATA_KEY): SavedData;
|
28
|
+
static persistValue(service: UserDataService, value: string, persistedData: SavedData, opts: {
|
29
|
+
key: LEGEND_QUERY_USER_DATA_KEY;
|
30
|
+
limit: number;
|
31
|
+
}): void;
|
32
|
+
static getRecentlyViewedQueries(service: UserDataService): SavedData;
|
23
33
|
static removeRecentlyViewedQueries(service: UserDataService): void;
|
24
34
|
static removeRecentlyViewedQuery(service: UserDataService, queryId: string): void;
|
25
35
|
static addRecentlyViewedQuery(service: UserDataService, queryId: string): void;
|
36
|
+
static getRecentlyVisitedDataSpaces(service: UserDataService): SavedVisitedDataSpaces;
|
37
|
+
static findRecentlyVisitedDataSpace(service: UserDataService, id: string): VisitedDataspace | undefined;
|
38
|
+
static getRecentlyVisitedDataSpace(service: UserDataService): VisitedDataspace | undefined;
|
39
|
+
static persistVisitedDataspace(service: UserDataService, value: VisitedDataspace, persistedData: SavedVisitedDataSpaces, limit?: number): void;
|
40
|
+
static removeRecentlyViewedDataSpaces(service: UserDataService): void;
|
41
|
+
static removeRecentlyViewedDataSpace(service: UserDataService, id: string): void;
|
42
|
+
static removeDataSpace(service: UserDataService, info: DataSpaceInfo): void;
|
43
|
+
static addRecentlyVistedDatspace(service: UserDataService, info: DataSpaceInfo, execContext: string | undefined): void;
|
44
|
+
static addVisitedDatspace(service: UserDataService, visited: VisitedDataspace): void;
|
45
|
+
static updateVisitedDataSpaceExecContext(service: UserDataService, groupId: string, artifactId: string, dataspace: string, exec: string): boolean;
|
26
46
|
}
|
27
47
|
export {};
|
28
48
|
//# sourceMappingURL=LegendQueryUserDataHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQueryUserDataHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendQueryUserDataHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"LegendQueryUserDataHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendQueryUserDataHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AASjE,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAExF,oBAAY,0BAA0B;IACpC,uBAAuB,gCAAgC;IACvD,0BAA0B,mCAAmC;CAC9D;AAED,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAC1D,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD,KAAK,SAAS,GAAG,MAAM,EAAE,CAAC;AAE1B,qBAAa,yBAAyB;IACpC,MAAM,CAAC,gBAAgB,CACrB,OAAO,EAAE,eAAe,EACxB,GAAG,EAAE,0BAA0B,GAC9B,SAAS;IAqBZ,MAAM,CAAC,YAAY,CACjB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,SAAS,EACxB,IAAI,EAAE;QACJ,GAAG,EAAE,0BAA0B,CAAC;QAChC,KAAK,EAAE,MAAM,CAAC;KACf,GACA,IAAI;IAcP,MAAM,CAAC,wBAAwB,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS;IAOpE,MAAM,CAAC,2BAA2B,CAAC,OAAO,EAAE,eAAe,GAAG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
*/
|
16
16
|
import { returnUndefOnError } from '@finos/legend-shared';
|
17
|
-
import { createSimpleSchema, deserialize, list, primitive } from 'serializr';
|
17
|
+
import { createSimpleSchema, deserialize, list, primitive, raw, } from 'serializr';
|
18
|
+
import { createVisitedDataspaceFromInfo, createIdFromDataSpaceInfo, createVisitedDataSpaceId, } from './LegendQueryUserDataSpaceHelper.js';
|
18
19
|
export var LEGEND_QUERY_USER_DATA_KEY;
|
19
20
|
(function (LEGEND_QUERY_USER_DATA_KEY) {
|
20
21
|
LEGEND_QUERY_USER_DATA_KEY["RECENTLY_VIEWED_QUERIES"] = "query-editor.recent-queries";
|
22
|
+
LEGEND_QUERY_USER_DATA_KEY["RECENTLY_VIEWED_DATASPACES"] = "query-editor.recent-dataSpaces";
|
21
23
|
})(LEGEND_QUERY_USER_DATA_KEY || (LEGEND_QUERY_USER_DATA_KEY = {}));
|
22
|
-
const USER_DATA_RECENTLY_VIEWED_QUERIES_LIMIT = 10;
|
24
|
+
export const USER_DATA_RECENTLY_VIEWED_QUERIES_LIMIT = 10;
|
25
|
+
export const USER_DATA_QUERY_DATASPACE_LIMIT = 10;
|
23
26
|
export class LegendQueryUserDataHelper {
|
24
|
-
static
|
25
|
-
const data = service.getObjectValue(
|
27
|
+
static getPersistedData(service, key) {
|
28
|
+
const data = service.getObjectValue(key);
|
26
29
|
return (
|
27
30
|
// TODO: think of a better way to deserialize this data, maybe like settings, use JSON schema
|
28
31
|
// See https://github.com/finos/legend-studio/issues/407
|
@@ -32,6 +35,23 @@ export class LegendQueryUserDataHelper {
|
|
32
35
|
data,
|
33
36
|
}).data) ?? []);
|
34
37
|
}
|
38
|
+
static persistValue(service, value, persistedData, opts) {
|
39
|
+
const idx = persistedData.findIndex((data) => data === value);
|
40
|
+
if (idx === -1) {
|
41
|
+
if (persistedData.length >= opts.limit) {
|
42
|
+
persistedData.pop();
|
43
|
+
}
|
44
|
+
persistedData.unshift(value);
|
45
|
+
}
|
46
|
+
else {
|
47
|
+
persistedData.splice(idx, 1);
|
48
|
+
persistedData.unshift(value);
|
49
|
+
}
|
50
|
+
service.persistValue(opts.key, persistedData);
|
51
|
+
}
|
52
|
+
static getRecentlyViewedQueries(service) {
|
53
|
+
return LegendQueryUserDataHelper.getPersistedData(service, LEGEND_QUERY_USER_DATA_KEY.RECENTLY_VIEWED_QUERIES);
|
54
|
+
}
|
35
55
|
static removeRecentlyViewedQueries(service) {
|
36
56
|
service.persistValue(LEGEND_QUERY_USER_DATA_KEY.RECENTLY_VIEWED_QUERIES, []);
|
37
57
|
}
|
@@ -46,21 +66,81 @@ export class LegendQueryUserDataHelper {
|
|
46
66
|
}
|
47
67
|
static addRecentlyViewedQuery(service, queryId) {
|
48
68
|
const queries = LegendQueryUserDataHelper.getRecentlyViewedQueries(service);
|
49
|
-
|
69
|
+
LegendQueryUserDataHelper.persistValue(service, queryId, queries, {
|
70
|
+
limit: USER_DATA_RECENTLY_VIEWED_QUERIES_LIMIT,
|
71
|
+
key: LEGEND_QUERY_USER_DATA_KEY.RECENTLY_VIEWED_QUERIES,
|
72
|
+
});
|
73
|
+
}
|
74
|
+
// DataSpaces
|
75
|
+
static getRecentlyVisitedDataSpaces(service) {
|
76
|
+
const data = service.getObjectValue(LEGEND_QUERY_USER_DATA_KEY.RECENTLY_VIEWED_DATASPACES);
|
77
|
+
return (
|
78
|
+
// TODO: think of a better way to deserialize this data, maybe like settings, use JSON schema
|
79
|
+
// See https://github.com/finos/legend-studio/issues/407
|
80
|
+
returnUndefOnError(() => deserialize(createSimpleSchema({
|
81
|
+
data: raw(),
|
82
|
+
}), {
|
83
|
+
data,
|
84
|
+
}).data) ?? []);
|
85
|
+
}
|
86
|
+
static findRecentlyVisitedDataSpace(service, id) {
|
87
|
+
return LegendQueryUserDataHelper.getRecentlyVisitedDataSpaces(service).find((v) => v.id === id);
|
88
|
+
}
|
89
|
+
static getRecentlyVisitedDataSpace(service) {
|
90
|
+
return LegendQueryUserDataHelper.getRecentlyVisitedDataSpaces(service)[0];
|
91
|
+
}
|
92
|
+
static persistVisitedDataspace(service, value, persistedData, limit = USER_DATA_QUERY_DATASPACE_LIMIT) {
|
93
|
+
const key = LEGEND_QUERY_USER_DATA_KEY.RECENTLY_VIEWED_DATASPACES;
|
94
|
+
const idx = persistedData.findIndex((data) => data.id === value.id);
|
50
95
|
if (idx === -1) {
|
51
|
-
if (
|
52
|
-
|
53
|
-
}
|
54
|
-
else {
|
55
|
-
queries.pop();
|
56
|
-
queries.unshift(queryId);
|
96
|
+
if (persistedData.length >= limit) {
|
97
|
+
persistedData.pop();
|
57
98
|
}
|
99
|
+
persistedData.unshift(value);
|
58
100
|
}
|
59
101
|
else {
|
60
|
-
|
61
|
-
|
102
|
+
persistedData.splice(idx, 1);
|
103
|
+
persistedData.unshift(value);
|
62
104
|
}
|
63
|
-
service.persistValue(
|
105
|
+
service.persistValue(key, persistedData);
|
106
|
+
}
|
107
|
+
static removeRecentlyViewedDataSpaces(service) {
|
108
|
+
service.persistValue(LEGEND_QUERY_USER_DATA_KEY.RECENTLY_VIEWED_DATASPACES, []);
|
109
|
+
}
|
110
|
+
static removeRecentlyViewedDataSpace(service, id) {
|
111
|
+
const dataSpaces = LegendQueryUserDataHelper.getRecentlyVisitedDataSpaces(service);
|
112
|
+
const idx = dataSpaces.findIndex((visitedDataspace) => visitedDataspace.id === id);
|
113
|
+
if (idx === -1) {
|
114
|
+
return;
|
115
|
+
}
|
116
|
+
dataSpaces.splice(idx, 1);
|
117
|
+
service.persistValue(LEGEND_QUERY_USER_DATA_KEY.RECENTLY_VIEWED_QUERIES, dataSpaces);
|
118
|
+
}
|
119
|
+
static removeDataSpace(service, info) {
|
120
|
+
const id = createIdFromDataSpaceInfo(info);
|
121
|
+
if (id) {
|
122
|
+
LegendQueryUserDataHelper.removeRecentlyViewedDataSpace(service, id);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
static addRecentlyVistedDatspace(service, info, execContext) {
|
126
|
+
const visited = createVisitedDataspaceFromInfo(info, execContext);
|
127
|
+
if (visited) {
|
128
|
+
const dataspaces = LegendQueryUserDataHelper.getRecentlyVisitedDataSpaces(service);
|
129
|
+
LegendQueryUserDataHelper.persistVisitedDataspace(service, visited, dataspaces);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
static addVisitedDatspace(service, visited) {
|
133
|
+
const dataspaces = LegendQueryUserDataHelper.getRecentlyVisitedDataSpaces(service);
|
134
|
+
LegendQueryUserDataHelper.persistVisitedDataspace(service, visited, dataspaces);
|
135
|
+
}
|
136
|
+
static updateVisitedDataSpaceExecContext(service, groupId, artifactId, dataspace, exec) {
|
137
|
+
const visited = LegendQueryUserDataHelper.findRecentlyVisitedDataSpace(service, createVisitedDataSpaceId(groupId, artifactId, dataspace));
|
138
|
+
if (visited) {
|
139
|
+
visited.execContext = exec;
|
140
|
+
LegendQueryUserDataHelper.addVisitedDatspace(service, visited);
|
141
|
+
return true;
|
142
|
+
}
|
143
|
+
return false;
|
64
144
|
}
|
65
145
|
}
|
66
146
|
//# sourceMappingURL=LegendQueryUserDataHelper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQueryUserDataHelper.js","sourceRoot":"","sources":["../../src/__lib__/LegendQueryUserDataHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,
|
1
|
+
{"version":3,"file":"LegendQueryUserDataHelper.js","sourceRoot":"","sources":["../../src/__lib__/LegendQueryUserDataHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,IAAI,EACJ,SAAS,EACT,GAAG,GACJ,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,EACzB,wBAAwB,GAGzB,MAAM,qCAAqC,CAAC;AAG7C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AC,uBAAuB,CAC/C,OAAO,EACP,OAAO,EACP,UAAU,CACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,iCAAiC,CACtC,OAAwB,EACxB,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,IAAY;QAEZ,MAAM,OAAO,GAAG,yBAAyB,CAAC,4BAA4B,CACpE,OAAO,EACP,wBAAwB,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CACzD,CAAC;QACF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;YAC3B,yBAAyB,CAAC,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC/D,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
import type { DataSpaceInfo } from '@finos/legend-extension-dsl-data-space/application';
|
17
|
+
export interface VisitedDataspace {
|
18
|
+
id: string;
|
19
|
+
groupId: string;
|
20
|
+
artifactId: string;
|
21
|
+
path: string;
|
22
|
+
versionId: string | undefined;
|
23
|
+
execContext?: string | undefined;
|
24
|
+
}
|
25
|
+
export type SavedVisitedDataSpaces = VisitedDataspace[];
|
26
|
+
export declare const createVisitedDataSpaceId: (groupId: string, artifactId: string, dataSpace: string) => string;
|
27
|
+
export declare const createIdFromDataSpaceInfo: (info: DataSpaceInfo) => string | undefined;
|
28
|
+
export declare const createSimpleVisitedDataspace: (groupId: string, artifactId: string, versionId: string | undefined, path: string, exec: string | undefined) => VisitedDataspace;
|
29
|
+
export declare const createVisitedDataspaceFromInfo: (info: DataSpaceInfo, execContext: string | undefined) => VisitedDataspace | undefined;
|
30
|
+
export declare const hasDataSpaceInfoBeenVisited: (val: DataSpaceInfo, visited: SavedVisitedDataSpaces) => boolean;
|
31
|
+
//# sourceMappingURL=LegendQueryUserDataSpaceHelper.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LegendQueryUserDataSpaceHelper.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendQueryUserDataSpaceHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAGxF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,EAAE,CAAC;AAExD,eAAO,MAAM,wBAAwB,YAC1B,MAAM,cACH,MAAM,aACP,MAAM,KAChB,MAIQ,CAAC;AAEZ,eAAO,MAAM,yBAAyB,SAC9B,aAAa,KAClB,MAAM,GAAG,SAOX,CAAC;AAEF,eAAO,MAAM,4BAA4B,YAC9B,MAAM,cACH,MAAM,aACP,MAAM,GAAG,SAAS,QACvB,MAAM,QACN,MAAM,GAAG,SAAS,KACvB,gBAOD,CAAC;AAEH,eAAO,MAAM,8BAA8B,SACnC,aAAa,eACN,MAAM,GAAG,SAAS,KAC9B,gBAAgB,GAAG,SAerB,CAAC;AAEF,eAAO,MAAM,2BAA2B,QACjC,aAAa,sCAEjB,OAQA,CAAC"}
|
@@ -0,0 +1,54 @@
|
|
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
|
+
import { GAV_DELIMITER, generateGAVCoordinates } from '@finos/legend-storage';
|
17
|
+
export const createVisitedDataSpaceId = (groupId, artifactId, dataSpace) =>
|
18
|
+
// we will consider unique dataSpace if it belongs to the same project. i.e we will not save 2 dataspaces visited for 2 different versionss
|
19
|
+
generateGAVCoordinates(groupId, artifactId, undefined) +
|
20
|
+
GAV_DELIMITER +
|
21
|
+
dataSpace;
|
22
|
+
export const createIdFromDataSpaceInfo = (info) => {
|
23
|
+
const groupId = info.groupId;
|
24
|
+
const artifactId = info.artifactId;
|
25
|
+
if (groupId && artifactId) {
|
26
|
+
return createVisitedDataSpaceId(groupId, artifactId, info.path);
|
27
|
+
}
|
28
|
+
return undefined;
|
29
|
+
};
|
30
|
+
export const createSimpleVisitedDataspace = (groupId, artifactId, versionId, path, exec) => ({
|
31
|
+
id: createVisitedDataSpaceId(groupId, artifactId, path),
|
32
|
+
groupId,
|
33
|
+
artifactId,
|
34
|
+
versionId,
|
35
|
+
path,
|
36
|
+
execContext: exec,
|
37
|
+
});
|
38
|
+
export const createVisitedDataspaceFromInfo = (info, execContext) => {
|
39
|
+
const groupId = info.groupId;
|
40
|
+
const artifactId = info.artifactId;
|
41
|
+
const versionId = info.versionId;
|
42
|
+
const path = info.path;
|
43
|
+
if (groupId && artifactId) {
|
44
|
+
return createSimpleVisitedDataspace(groupId, artifactId, versionId, path, execContext);
|
45
|
+
}
|
46
|
+
return undefined;
|
47
|
+
};
|
48
|
+
export const hasDataSpaceInfoBeenVisited = (val, visited) => Boolean(visited.find((_visit) => {
|
49
|
+
if (_visit.id === createIdFromDataSpaceInfo(val)) {
|
50
|
+
return true;
|
51
|
+
}
|
52
|
+
return false;
|
53
|
+
}));
|
54
|
+
//# sourceMappingURL=LegendQueryUserDataSpaceHelper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LegendQueryUserDataSpaceHelper.js","sourceRoot":"","sources":["../../src/__lib__/LegendQueryUserDataSpaceHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAa9E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,OAAe,EACf,UAAkB,EAClB,SAAiB,EACT,EAAE;AACV,2IAA2I;AAC3I,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC;IACtD,aAAa;IACb,SAAS,CAAC;AAEZ,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,IAAmB,EACC,EAAE;IACtB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACnC,IAAI,OAAO,IAAI,UAAU,EAAE,CAAC;QAC1B,OAAO,wBAAwB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,OAAe,EACf,UAAkB,EAClB,SAA6B,EAC7B,IAAY,EACZ,IAAwB,EACN,EAAE,CAAC,CAAC;IACtB,EAAE,EAAE,wBAAwB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC;IACvD,OAAO;IACP,UAAU;IACV,SAAS;IACT,IAAI;IACJ,WAAW,EAAE,IAAI;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,IAAmB,EACnB,WAA+B,EACD,EAAE;IAChC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACnC,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IACvB,IAAI,OAAO,IAAI,UAAU,EAAE,CAAC;QAC1B,OAAO,4BAA4B,CACjC,OAAO,EACP,UAAU,EACV,SAAS,EACT,IAAI,EACJ,WAAW,CACZ,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,GAAkB,EAClB,OAA+B,EACtB,EAAE,CACX,OAAO,CACL,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;IACtB,IAAI,MAAM,CAAC,EAAE,KAAK,yBAAyB,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC,CACH,CAAC"}
|
@@ -15,7 +15,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { ArrowLeftIcon, ArrowRightIcon, BlankPanelContent, clsx, CustomSelectorInput, PanelLoadingIndicator, } from '@finos/legend-art';
|
18
|
-
import { ActionState, assertErrorThrown, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
|
18
|
+
import { ActionState, assertErrorThrown, guaranteeNonNullable, guaranteeType, compareSemVerVersions, } from '@finos/legend-shared';
|
19
19
|
import { flowResult } from 'mobx';
|
20
20
|
import { observer, useLocalObservable } from 'mobx-react-lite';
|
21
21
|
import { useContext, useEffect, useState } from 'react';
|
@@ -25,7 +25,6 @@ import { useApplicationStore } from '@finos/legend-application';
|
|
25
25
|
import { useLegendQueryApplicationStore, useLegendQueryBaseStore, } from './LegendQueryFrameworkProvider.js';
|
26
26
|
import { CloneServiceQuerySetupStore, } from '../stores/CloneServiceQuerySetupStore.js';
|
27
27
|
import { BaseQuerySetup, BaseQuerySetupStoreContext, buildProjectOption, buildVersionOption, } from './QuerySetup.js';
|
28
|
-
import { compareSemVerVersions } from '@finos/legend-storage';
|
29
28
|
const CloneServiceQuerySetupStoreProvider = ({ children }) => {
|
30
29
|
const applicationStore = useLegendQueryApplicationStore();
|
31
30
|
const baseStore = useLegendQueryBaseStore();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CloneQueryServiceSetup.js","sourceRoot":"","sources":["../../src/components/CloneQueryServiceSetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,IAAI,EACJ,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,
|
1
|
+
{"version":3,"file":"CloneQueryServiceSetup.js","sourceRoot":"","sources":["../../src/components/CloneQueryServiceSetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,IAAI,EACJ,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,E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AO,CAAC,eAAe,CAAC,cAAc,CAAC;4CACvC,OAAO,CAAC,eAAe,CAAC,gBAAgB,CAAC;4CACzC,CAAC,eAAe,CAAC,0BAA0B,CAAC,YAAY,GAE1D,EACF,KAAC,iBAAiB,cACf,eAAe,CAAC,0BAA0B,CAAC,YAAY;4CACtD,CAAC,CAAC,iCAAiC;4CACnC,CAAC,CAAC,eAAe,CAAC,0BAA0B,CAAC,SAAS;gDACpD,CAAC,CAAC,+BAA+B;gDACjC,CAAC,CAAC,uCAAuC,GAC3B,IAChB,CACP,EACA,eAAe,CAAC,cAAc;gCAC7B,eAAe,CAAC,gBAAgB;gCAChC,eAAe,CAAC,0BAA0B,CAAC,YAAY,IAAI,CACzD,4BACE,eAAK,SAAS,EAAC,4BAA4B,aACzC,cAAK,SAAS,EAAC,mCAAmC,wBAE5C,EACN,KAAC,mBAAmB,IAClB,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,CAAC,uBAAuB,CAAC,MAAM,EACzC,QAAQ,EAAE,8BAA8B,EACxC,KAAK,EAAE,8BAA8B,EACrC,WAAW,EAAE,mCAAmC,EAChD,WAAW,EAAE,IAAI,EACjB,iBAAiB,EAAE,IAAI,EACvB,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;iDAC5B,mCAAmC,GAExC,IACE,GACL,CACJ,IACC,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAa,GAAG,EAAE,CAAC,CACpD,KAAC,mCAAmC,cAClC,KAAC,cAAc,cACb,KAAC,6BAA6B,KAAG,GAClB,GACmB,CACvC,CAAC"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { LegendQueryApplicationPlugin, type QuerySetupActionConfiguration } from '../stores/LegendQueryApplicationPlugin.js';
|
17
17
|
import { type ApplicationPageEntry, type LegendApplicationSetup } from '@finos/legend-application';
|
18
|
-
import type
|
18
|
+
import { type QueryBuilderHeaderActionConfiguration, type QueryBuilderMenuActionConfiguration } from '@finos/legend-query-builder';
|
19
19
|
export declare class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
20
20
|
static NAME: string;
|
21
21
|
constructor();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Core_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAE5B,KAAK,6BAA6B,EACnC,MAAM,2CAA2C,CAAC;AA+BnD,OAAO,
|
1
|
+
{"version":3,"file":"Core_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAE5B,KAAK,6BAA6B,EACnC,MAAM,2CAA2C,CAAC;AA+BnD,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAC;AAanC,OAAO,EACL,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,EACzC,MAAM,6BAA6B,CAAC;AAkBrC,qBAAa,iCAAkC,SAAQ,4BAA4B;IACjF,MAAM,CAAC,IAAI,SAAiD;;IAMnD,yBAAyB,IAAI,sBAAsB,EAAE;IASrD,8BAA8B,IAAI,oBAAoB,EAAE;IA+BxD,sCAAsC,IAAI,6BAA6B,EAAE;IAyGlF,kDAAkD,CAAC,IAAI,mCAAmC,EAAE;IAuE5F,gDAAgD,CAAC,IAAI,mCAAmC,EAAE;IA0F1F,8CAA8C,CAAC,IAAI,qCAAqC,EAAE;IA2M1F,6CAA6C,CAAC,IAAI,qCAAqC;CAmDxF"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
/**
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
4
|
*
|
@@ -18,14 +18,15 @@ import { LegendQueryApplicationPlugin, QuerySetupActionTag, } from '../stores/Le
|
|
18
18
|
import packageJson from '../../package.json' assert { type: 'json' };
|
19
19
|
import { ArrowCircleUpIcon, Button, CaretDownIcon, DroidIcon, DropdownMenu, InfoCircleIcon, ManageSearchIcon, MenuContent, MenuContentItem, MenuContentItemIcon, MenuContentItemLabel, PlusIcon, RobotIcon, SaveAsIcon, SaveCurrIcon, SquareIcon, } from '@finos/legend-art';
|
20
20
|
import { generateCloneServiceQuerySetupRoute, generateCreateMappingQuerySetupRoute, generateEditExistingQuerySetupRoute, generateLoadProjectServiceQuerySetup, generateMappingQueryCreatorRoute, generateQueryProductionizerSetupRoute, generateUpdateExistingServiceQuerySetup, LEGEND_QUERY_ROUTE_PATTERN, } from '../__lib__/LegendQueryNavigation.js';
|
21
|
-
import {} from '@finos/legend-application';
|
21
|
+
import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
|
22
22
|
import { CloneQueryServiceSetup } from './CloneQueryServiceSetup.js';
|
23
23
|
import { QueryProductionizerSetup } from './QueryProductionizerSetup.js';
|
24
24
|
import { UpdateExistingServiceQuerySetup } from './UpdateExistingServiceQuerySetup.js';
|
25
25
|
import { LoadProjectServiceQuerySetup } from './LoadProjectServiceQuerySetup.js';
|
26
26
|
import { configureCodeEditorComponent, setupPureLanguageService, } from '@finos/legend-lego/code-editor';
|
27
27
|
import { generateDataSpaceQueryCreatorRoute, generateDataSpaceQuerySetupRoute, } from '../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
|
28
|
-
import {
|
28
|
+
import {} from '@finos/legend-query-builder';
|
29
|
+
import { ExistingQueryEditorStore, QueryBuilderActionConfig_QueryApplication, createViewSDLCProjectHandler, } from '../stores/QueryEditorStore.js';
|
29
30
|
import { DataSpaceQueryBuilderState, generateDataSpaceTemplateQueryPromotionRoute, } from '@finos/legend-extension-dsl-data-space/application';
|
30
31
|
import { RuntimePointer } from '@finos/legend-graph';
|
31
32
|
import { LegendQueryTelemetryHelper } from '../__lib__/LegendQueryTelemetryHelper.js';
|
@@ -208,6 +209,16 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
208
209
|
key: 'about-query-info',
|
209
210
|
title: 'Get Query Info',
|
210
211
|
label: 'About Query Info',
|
212
|
+
disableFunc: (queryBuilderState) => {
|
213
|
+
if (queryBuilderState.workflowState.actionConfig instanceof
|
214
|
+
QueryBuilderActionConfig_QueryApplication) {
|
215
|
+
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
216
|
+
if (editorStore instanceof ExistingQueryEditorStore) {
|
217
|
+
return false;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
return true;
|
221
|
+
},
|
211
222
|
onClick: (queryBuilderState) => {
|
212
223
|
if (queryBuilderState.workflowState.actionConfig instanceof
|
213
224
|
QueryBuilderActionConfig_QueryApplication) {
|
@@ -220,31 +231,39 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
220
231
|
icon: _jsx(InfoCircleIcon, {}),
|
221
232
|
},
|
222
233
|
{
|
223
|
-
key: 'about-query-project',
|
234
|
+
key: 'about-query-sdlc-project',
|
224
235
|
title: 'Go to Project',
|
225
236
|
label: 'Go to Project',
|
237
|
+
disableFunc: (queryBuilderState) => {
|
238
|
+
if (queryBuilderState.workflowState.actionConfig instanceof
|
239
|
+
QueryBuilderActionConfig_QueryApplication) {
|
240
|
+
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
241
|
+
if (editorStore instanceof ExistingQueryEditorStore) {
|
242
|
+
return false;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
return true;
|
246
|
+
},
|
226
247
|
onClick: (queryBuilderState) => {
|
227
248
|
if (queryBuilderState.workflowState.actionConfig instanceof
|
228
249
|
QueryBuilderActionConfig_QueryApplication) {
|
229
250
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
230
|
-
LegendQueryTelemetryHelper.
|
231
|
-
const { groupId, artifactId
|
232
|
-
|
251
|
+
LegendQueryTelemetryHelper.logEvent_QueryViewSdlcProjectLaunched(editorStore.applicationStore.telemetryService);
|
252
|
+
const { groupId, artifactId } = editorStore.getProjectInfo();
|
253
|
+
createViewSDLCProjectHandler(editorStore.applicationStore, editorStore.depotServerClient)(groupId, artifactId, undefined).catch(editorStore.applicationStore.alertUnhandledError);
|
233
254
|
}
|
234
255
|
},
|
235
256
|
icon: _jsx(InfoCircleIcon, {}),
|
236
257
|
},
|
237
258
|
{
|
238
|
-
key: 'about-query
|
239
|
-
title: '
|
240
|
-
label: '
|
259
|
+
key: 'about-legend-query',
|
260
|
+
title: 'About Legend Query',
|
261
|
+
label: 'About Legend Query',
|
241
262
|
onClick: (queryBuilderState) => {
|
242
263
|
if (queryBuilderState.workflowState.actionConfig instanceof
|
243
264
|
QueryBuilderActionConfig_QueryApplication) {
|
244
265
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
245
|
-
|
246
|
-
const { groupId, artifactId } = editorStore.getProjectInfo();
|
247
|
-
createViewSDLCProjectHandler(editorStore.applicationStore, editorStore.depotServerClient)(groupId, artifactId, undefined).catch(editorStore.applicationStore.alertUnhandledError);
|
266
|
+
editorStore.setShowAppInfo(true);
|
248
267
|
}
|
249
268
|
},
|
250
269
|
icon: _jsx(InfoCircleIcon, {}),
|
@@ -275,7 +294,6 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
275
294
|
if (queryBuilderState.workflowState.actionConfig instanceof
|
276
295
|
QueryBuilderActionConfig_QueryApplication) {
|
277
296
|
const editorStore = queryBuilderState.workflowState.actionConfig.editorStore;
|
278
|
-
const isExistingQuery = editorStore instanceof ExistingQueryEditorStore;
|
279
297
|
const handleNewQuery = () => {
|
280
298
|
if (editorStore instanceof ExistingQueryEditorStore) {
|
281
299
|
const query = editorStore.query;
|
@@ -294,8 +312,32 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
294
312
|
}
|
295
313
|
}
|
296
314
|
}
|
315
|
+
else {
|
316
|
+
if (queryBuilderState.changeHistoryState.canUndo ||
|
317
|
+
queryBuilderState.changeHistoryState.canRedo) {
|
318
|
+
queryBuilderState.applicationStore.alertService.setActionAlertInfo({
|
319
|
+
message: 'Current query will be lost when creating a new query. Do you still want to proceed?',
|
320
|
+
type: ActionAlertType.CAUTION,
|
321
|
+
actions: [
|
322
|
+
{
|
323
|
+
label: 'Proceed',
|
324
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
325
|
+
handler: queryBuilderState.applicationStore.guardUnhandledError(async () => queryBuilderState.resetQueryContent()),
|
326
|
+
},
|
327
|
+
{
|
328
|
+
label: 'Cancel',
|
329
|
+
type: ActionAlertActionType.PROCEED,
|
330
|
+
default: true,
|
331
|
+
},
|
332
|
+
],
|
333
|
+
});
|
334
|
+
}
|
335
|
+
else {
|
336
|
+
queryBuilderState.resetQueryContent();
|
337
|
+
}
|
338
|
+
}
|
297
339
|
};
|
298
|
-
return (
|
340
|
+
return (_jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: handleNewQuery, title: "New query", children: [_jsx(SaveCurrIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "New Query" })] }));
|
299
341
|
}
|
300
342
|
return undefined;
|
301
343
|
},
|
@@ -344,7 +386,7 @@ export class Core_LegendQueryApplicationPlugin extends LegendQueryApplicationPlu
|
|
344
386
|
else if (editorStore instanceof DataSpaceTemplateQueryCreatorStore) {
|
345
387
|
return (_jsxs("div", { className: "query-editor__dataspace__header", children: [_jsx("div", { className: "query-editor__header__content__main query-editor__header__content__title__text query-editor__dataspace__header__title__text", children: editorStore.templateQueryTitle }), _jsx("div", { className: "query-editor__dataspace__header__title__tag", children: "template" })] }));
|
346
388
|
}
|
347
|
-
return
|
389
|
+
return (_jsx("div", { className: "query-editor__dataspace__header", children: _jsx("div", { className: "query-editor__header__content__main query-editor__header__content__title__text query-editor__header__content__title__text--unsaved", children: "Unsaved Query" }) }));
|
348
390
|
};
|
349
391
|
return (_jsx("div", { className: "query-editor__header__content", children: renderQueryTitle() }));
|
350
392
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Core_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GAEpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,WAAW,MAAM,oBAAoB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAErE,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,aAAa,EACb,SAAS,EACT,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,EACZ,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,EAChC,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,GAC3B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAGN,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,kCAAkC,EAClC,gCAA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tD,IACF,CACP,CAAC;wBACJ,CAAC;wBACD,OAAO,SAAS,CAAC;oBACnB,CAAC,CAAC;oBACF,OAAO,CACL,cAAK,SAAS,EAAC,+BAA+B,YAC3C,gBAAgB,EAAE,GACf,CACP,CAAC;gBACJ,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC"}
|
1
|
+
{"version":3,"file":"Core_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/Core_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,GAEpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,WAAW,MAAM,oBAAoB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AAErE,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,aAAa,EACb,SAAS,EACT,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,EACZ,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,EAChC,qCAAqC,EACrC,uCAAuC,EACvC,0BAA0B,GAC3B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,eAAe,GAGhB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,gCAAg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