@finos/legend-extension-dsl-data-space 6.1.11 → 6.1.12
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/DSLDataSpace_Const.d.ts +2 -0
- package/lib/DSLDataSpace_Const.d.ts.map +1 -1
- package/lib/DSLDataSpace_Const.js +2 -0
- package/lib/DSLDataSpace_Const.js.map +1 -1
- package/lib/components/DSLDataSpace_Icon.d.ts +18 -0
- package/lib/components/DSLDataSpace_Icon.d.ts.map +1 -0
- package/lib/components/DSLDataSpace_Icon.js +19 -0
- package/lib/components/DSLDataSpace_Icon.js.map +1 -0
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts +3 -2
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js +99 -8
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/query/DataSpaceQueryBuilder.d.ts +18 -0
- package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +1 -0
- package/lib/components/query/DataSpaceQueryBuilder.js +126 -0
- package/lib/components/query/DataSpaceQueryBuilder.js.map +1 -0
- package/lib/components/query/{DataSpaceQueryEditor.d.ts → DataSpaceQueryCreator.d.ts} +2 -2
- package/lib/components/query/DataSpaceQueryCreator.d.ts.map +1 -0
- package/lib/components/query/{DataSpaceQueryEditor.js → DataSpaceQueryCreator.js} +11 -11
- package/lib/components/query/DataSpaceQueryCreator.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +6 -8
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js +2 -2
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +6 -6
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts +11 -8
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts.map +1 -1
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js +15 -11
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js.map +1 -1
- package/lib/stores/query/DataSpaceInfo.d.ts +31 -0
- package/lib/stores/query/DataSpaceInfo.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceInfo.js +34 -0
- package/lib/stores/query/DataSpaceInfo.js.map +1 -0
- package/lib/stores/query/DataSpaceQueryBuilderState.d.ts +52 -0
- package/lib/stores/query/DataSpaceQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceQueryBuilderState.js +112 -0
- package/lib/stores/query/DataSpaceQueryBuilderState.js.map +1 -0
- package/lib/stores/query/{DataSpaceQueryEditorStore.d.ts → DataSpaceQueryCreatorStore.d.ts} +6 -4
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceQueryCreatorStore.js +113 -0
- package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +5 -12
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +9 -19
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +16 -16
- package/src/DSLDataSpace_Const.ts +3 -0
- package/src/components/DSLDataSpace_Icon.tsx +23 -0
- package/src/components/query/DSLDataSpace_LegendQueryApplicationPlugin.tsx +170 -8
- package/src/components/query/DataSpaceQueryBuilder.tsx +344 -0
- package/src/components/query/{DataSpaceQueryEditor.tsx → DataSpaceQueryCreator.tsx} +13 -13
- package/src/components/query/DataSpaceQuerySetup.tsx +10 -14
- package/src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx +2 -6
- package/src/stores/query/DSLDataSpace_LegendQueryRouter.ts +17 -15
- package/src/stores/query/DataSpaceInfo.ts +57 -0
- package/src/stores/query/DataSpaceQueryBuilderState.ts +178 -0
- package/src/stores/query/DataSpaceQueryCreatorStore.ts +241 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +18 -32
- package/tsconfig.json +7 -3
- package/tsconfig.package.json +1 -1
- package/lib/components/query/DataSpaceQueryEditor.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQueryEditor.js.map +0 -1
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceQueryEditorStore.js +0 -98
- package/lib/stores/query/DataSpaceQueryEditorStore.js.map +0 -1
- package/src/stores/query/DataSpaceQueryEditorStore.ts +0 -173
|
@@ -15,4 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const QUERY_PROFILE_PATH = "meta::pure::profiles::query";
|
|
17
17
|
export declare const QUERY_PROFILE_TAG_DATA_SPACE = "dataSpace";
|
|
18
|
+
export declare const DEFAULT_DATA_SPACE_LOADER_LIMIT = 10;
|
|
19
|
+
export declare const MINIMUM_DATA_SPACE_LOADER_SEARCH_LENGTH = 3;
|
|
18
20
|
//# sourceMappingURL=DSLDataSpace_Const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_Const.d.ts","sourceRoot":"","sources":["../src/DSLDataSpace_Const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAChE,eAAO,MAAM,4BAA4B,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_Const.d.ts","sourceRoot":"","sources":["../src/DSLDataSpace_Const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAChE,eAAO,MAAM,4BAA4B,cAAc,CAAC;AAExD,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,uCAAuC,IAAI,CAAC"}
|
|
@@ -17,4 +17,6 @@
|
|
|
17
17
|
// so that it records the dataSpace it is created from
|
|
18
18
|
export const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
|
|
19
19
|
export const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
|
|
20
|
+
export const DEFAULT_DATA_SPACE_LOADER_LIMIT = 10;
|
|
21
|
+
export const MINIMUM_DATA_SPACE_LOADER_SEARCH_LENGTH = 3;
|
|
20
22
|
//# sourceMappingURL=DSLDataSpace_Const.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_Const.js","sourceRoot":"","sources":["../src/DSLDataSpace_Const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gFAAgF;AAChF,sDAAsD;AACtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,6BAA6B,CAAC;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_Const.js","sourceRoot":"","sources":["../src/DSLDataSpace_Const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gFAAgF;AAChF,sDAAsD;AACtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,6BAA6B,CAAC;AAChE,MAAM,CAAC,MAAM,4BAA4B,GAAG,WAAW,CAAC;AAExD,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAClD,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
export declare const DataSpaceIcon: React.FC;
|
|
18
|
+
//# sourceMappingURL=DSLDataSpace_Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_Icon.d.ts","sourceRoot":"","sources":["../../src/components/DSLDataSpace_Icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAIjC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { SquareIcon } from '@finos/legend-art';
|
|
18
|
+
export const DataSpaceIcon = () => (_jsx("div", { className: "icon icon--data-space", children: _jsx(SquareIcon, {}) }));
|
|
19
|
+
//# sourceMappingURL=DSLDataSpace_Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_Icon.js","sourceRoot":"","sources":["../../src/components/DSLDataSpace_Icon.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,CAAC,MAAM,aAAa,GAAa,GAAG,EAAE,CAAC,CAC3C,cAAK,SAAS,EAAC,uBAAuB,YACpC,KAAC,UAAU,KAAG,GACV,CACP,CAAC"}
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { type QueryEditorHeaderLabeler, type QuerySetupOptionRendererConfiguration, type QuerySetupRenderer, LegendQueryApplicationPlugin } from '@finos/legend-application-query';
|
|
17
|
-
import type
|
|
16
|
+
import { type QueryEditorHeaderLabeler, type QuerySetupOptionRendererConfiguration, type QuerySetupRenderer, type ExistingQueryEditorStateBuilder, LegendQueryApplicationPlugin } from '@finos/legend-application-query';
|
|
17
|
+
import { type ApplicationPageEntry } from '@finos/legend-application';
|
|
18
18
|
export declare class DSLDataSpace_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
|
19
19
|
constructor();
|
|
20
20
|
getExtraApplicationPageEntries(): ApplicationPageEntry[];
|
|
21
21
|
getExtraQuerySetupOptionRendererConfigurations(): QuerySetupOptionRendererConfiguration[];
|
|
22
22
|
getExtraQuerySetupRenderers(): QuerySetupRenderer[];
|
|
23
23
|
getExtraQueryEditorHeaderLabelers(): QueryEditorHeaderLabeler[];
|
|
24
|
+
getExtraExistingQueryEditorStateBuilders(): ExistingQueryEditorStateBuilder[];
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=DSLDataSpace_LegendQueryApplicationPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,EAC1C,KAAK,kBAAkB,EAGvB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,qCAAqC,EAC1C,KAAK,kBAAkB,EAGvB,KAAK,+BAA+B,EAEpC,4BAA4B,EAI7B,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAqBnC,qBAAa,yCAA0C,SAAQ,4BAA4B;;IAKhF,8BAA8B,IAAI,oBAAoB,EAAE;IAWxD,8CAA8C,IAAI,qCAAqC,EAAE;IA2BzF,2BAA2B,IAAI,kBAAkB,EAAE;IAWnD,iCAAiC,IAAI,wBAAwB,EAAE;IAmB/D,wCAAwC,IAAI,+BAA+B,EAAE;CAyIvF"}
|
|
@@ -15,14 +15,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
|
-
import { LegendQueryApplicationPlugin, } from '@finos/legend-application-query';
|
|
18
|
+
import { LegendQueryApplicationPlugin, generateExistingQueryEditorRoute, LegendQueryEventService, LEGEND_QUERY_APP_EVENT, } from '@finos/legend-application-query';
|
|
19
19
|
import { SquareIcon } from '@finos/legend-art';
|
|
20
20
|
import { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState.js';
|
|
21
21
|
import { DataspaceQuerySetup } from './DataSpaceQuerySetup.js';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
22
|
+
import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
|
|
23
|
+
import { CREATE_QUERY_FROM_DATA_SPACE_ROUTE_PATTERN } from '../../stores/query/DSLDataSpace_LegendQueryRouter.js';
|
|
24
|
+
import { DataSpaceQueryCreator } from './DataSpaceQueryCreator.js';
|
|
25
|
+
import { createQueryDataSpaceTaggedValue, DataSpaceQueryCreatorStore, } from '../../stores/query/DataSpaceQueryCreatorStore.js';
|
|
26
|
+
import { Query, extractElementNameFromPath, isValidFullPath, } from '@finos/legend-graph';
|
|
27
|
+
import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../DSLDataSpace_Const.js';
|
|
28
|
+
import { DataSpaceQueryBuilderState } from '../../stores/query/DataSpaceQueryBuilderState.js';
|
|
29
|
+
import { getOwnDataSpace } from '../../graphManager/DSLDataSpace_GraphManagerHelper.js';
|
|
30
|
+
import { assertErrorThrown, LogEvent, uuid } from '@finos/legend-shared';
|
|
26
31
|
export class DSLDataSpace_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
|
27
32
|
constructor() {
|
|
28
33
|
super(packageJson.extensions.queryApplicationPlugin, packageJson.version);
|
|
@@ -32,8 +37,8 @@ export class DSLDataSpace_LegendQueryApplicationPlugin extends LegendQueryApplic
|
|
|
32
37
|
// data space query editor
|
|
33
38
|
{
|
|
34
39
|
key: 'data-space-query-editor-application-page',
|
|
35
|
-
urlPatterns: [
|
|
36
|
-
renderer:
|
|
40
|
+
urlPatterns: [CREATE_QUERY_FROM_DATA_SPACE_ROUTE_PATTERN],
|
|
41
|
+
renderer: DataSpaceQueryCreator,
|
|
37
42
|
},
|
|
38
43
|
];
|
|
39
44
|
}
|
|
@@ -61,12 +66,98 @@ export class DSLDataSpace_LegendQueryApplicationPlugin extends LegendQueryApplic
|
|
|
61
66
|
getExtraQueryEditorHeaderLabelers() {
|
|
62
67
|
return [
|
|
63
68
|
(editorStore) => {
|
|
64
|
-
if (editorStore instanceof
|
|
69
|
+
if (editorStore instanceof DataSpaceQueryCreatorStore) {
|
|
65
70
|
return (_jsxs("div", { className: "query-editor__header__label", children: [_jsx(SquareIcon, { className: "query-editor__header__label__icon icon--data-space" }), extractElementNameFromPath(editorStore.dataSpacePath), _jsx("div", { className: "query-editor__header__label__tag", children: editorStore.executionContext })] }));
|
|
66
71
|
}
|
|
67
72
|
return undefined;
|
|
68
73
|
},
|
|
69
74
|
];
|
|
70
75
|
}
|
|
76
|
+
getExtraExistingQueryEditorStateBuilders() {
|
|
77
|
+
return [
|
|
78
|
+
(query, editorStore) => {
|
|
79
|
+
const dataSpaceTaggedValue = query.taggedValues?.find((taggedValue) => taggedValue.profile === QUERY_PROFILE_PATH &&
|
|
80
|
+
taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
|
|
81
|
+
isValidFullPath(taggedValue.value));
|
|
82
|
+
if (dataSpaceTaggedValue) {
|
|
83
|
+
const dataSpacePath = dataSpaceTaggedValue.value;
|
|
84
|
+
const dataSpace = getOwnDataSpace(dataSpacePath, editorStore.graphManagerState.graph);
|
|
85
|
+
const mapping = query.mapping.value;
|
|
86
|
+
const matchingExecutionContext = dataSpace.executionContexts.find((ec) => ec.mapping.value === mapping);
|
|
87
|
+
if (!matchingExecutionContext) {
|
|
88
|
+
// if a matching execution context is not found, it means this query is not
|
|
89
|
+
// properly created from a data space, therefore, we cannot support this case
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
return new DataSpaceQueryBuilderState(editorStore.applicationStore, editorStore.graphManagerState, editorStore.depotServerClient, dataSpace, matchingExecutionContext, query.groupId, query.artifactId, query.versionId, (dataSpaceInfo) => {
|
|
93
|
+
if (dataSpaceInfo.defaultExecutionContext) {
|
|
94
|
+
const persistQuery = async () => {
|
|
95
|
+
// prepare the new query to save
|
|
96
|
+
const _query = new Query();
|
|
97
|
+
_query.name = query.name;
|
|
98
|
+
_query.id = query.id;
|
|
99
|
+
_query.groupId = query.groupId;
|
|
100
|
+
_query.artifactId = query.artifactId;
|
|
101
|
+
_query.versionId = query.versionId;
|
|
102
|
+
_query.mapping = query.mapping;
|
|
103
|
+
_query.runtime = query.runtime;
|
|
104
|
+
_query.taggedValues = [
|
|
105
|
+
createQueryDataSpaceTaggedValue(dataSpaceInfo.path),
|
|
106
|
+
].concat((query.taggedValues ?? []).filter((taggedValue) => taggedValue !== dataSpaceTaggedValue));
|
|
107
|
+
_query.stereotypes = query.stereotypes;
|
|
108
|
+
_query.content = query.content;
|
|
109
|
+
_query.owner = query.owner;
|
|
110
|
+
try {
|
|
111
|
+
if (!query.isCurrentUserQuery) {
|
|
112
|
+
_query.id = uuid();
|
|
113
|
+
const newQuery = await editorStore.graphManagerState.graphManager.createQuery(_query, editorStore.graphManagerState.graph);
|
|
114
|
+
editorStore.applicationStore.notifySuccess(`Successfully created query!`);
|
|
115
|
+
LegendQueryEventService.create(editorStore.applicationStore.eventService).notify_QueryCreated({ queryId: newQuery.id });
|
|
116
|
+
editorStore.applicationStore.navigator.jumpTo(editorStore.applicationStore.navigator.generateLocation(generateExistingQueryEditorRoute(newQuery.id)));
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
await editorStore.graphManagerState.graphManager.updateQuery(_query, editorStore.graphManagerState.graph);
|
|
120
|
+
editorStore.applicationStore.notifySuccess(`Successfully updated query!`);
|
|
121
|
+
editorStore.applicationStore.navigator.reload();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
assertErrorThrown(error);
|
|
126
|
+
editorStore.applicationStore.log.error(LogEvent.create(LEGEND_QUERY_APP_EVENT.QUERY_PROBLEM), error);
|
|
127
|
+
editorStore.applicationStore.notifyError(error);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
editorStore.applicationStore.setActionAlertInfo({
|
|
131
|
+
message: `To change the data space associated with this query, you need to ${query.isCurrentUserQuery
|
|
132
|
+
? 'update the query'
|
|
133
|
+
: 'create a new query'} to proceed`,
|
|
134
|
+
type: ActionAlertType.CAUTION,
|
|
135
|
+
actions: [
|
|
136
|
+
{
|
|
137
|
+
label: query.isCurrentUserQuery
|
|
138
|
+
? 'Update query'
|
|
139
|
+
: 'Create new query',
|
|
140
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
141
|
+
handler: () => {
|
|
142
|
+
persistQuery().catch(editorStore.applicationStore.alertUnhandledError);
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
label: 'Abort',
|
|
147
|
+
type: ActionAlertActionType.PROCEED,
|
|
148
|
+
default: true,
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
editorStore.applicationStore.notifyWarning(`Can't switch data space: default execution context not specified`);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
return undefined;
|
|
159
|
+
},
|
|
160
|
+
];
|
|
161
|
+
}
|
|
71
162
|
}
|
|
72
163
|
//# sourceMappingURL=DSLDataSpace_LegendQueryApplicationPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;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,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { DataSpaceQueryBuilderState } from '../../stores/query/DataSpaceQueryBuilderState.js';
|
|
17
|
+
export declare const renderDataSpaceQueryBuilderSetupPanelContent: (queryBuilderState: DataSpaceQueryBuilderState) => React.ReactNode;
|
|
18
|
+
//# sourceMappingURL=DataSpaceQueryBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAkTnG,eAAO,MAAM,4CAA4C,sBACpC,0BAA0B,KAC5C,MAAM,SAIR,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { CustomSelectorInput, createFilter, PURE_RuntimeIcon, PlayIcon, DropdownMenu, MoreHorizontalIcon, MenuContentItem, MenuContent, MenuContentItemIcon, CheckIcon, MenuContentItemLabel, } from '@finos/legend-art';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import { useApplicationStore } from '@finos/legend-application';
|
|
20
|
+
import { buildRuntimeValueOption, getRuntimeOptionFormatter, QueryBuilderClassSelector, } from '@finos/legend-application-query';
|
|
21
|
+
import { getMappingCompatibleClasses, getMappingCompatibleRuntimes, PackageableElementExplicitReference, RuntimePointer, } from '@finos/legend-graph';
|
|
22
|
+
import { generateGAVCoordinates } from '@finos/legend-server-depot';
|
|
23
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
24
|
+
import { debounce, guaranteeType } from '@finos/legend-shared';
|
|
25
|
+
import { flowResult } from 'mobx';
|
|
26
|
+
import { DataSpaceIcon } from '../DSLDataSpace_Icon.js';
|
|
27
|
+
const buildDataSpaceOption = (value) => ({
|
|
28
|
+
label: value.title ?? value.name,
|
|
29
|
+
value,
|
|
30
|
+
});
|
|
31
|
+
const buildExecutionContextOption = (value) => ({
|
|
32
|
+
label: value.name,
|
|
33
|
+
value,
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* This setup panel supports cascading in order: Data-space -> Execution context (-> Runtime) -> Class
|
|
37
|
+
*
|
|
38
|
+
* In other words, we will only show:
|
|
39
|
+
* - For runtime selector: the list of compatible runtimes with the selected execution context mapping
|
|
40
|
+
* - For class selector: the list of compatible class with the selected execution context mapping
|
|
41
|
+
*
|
|
42
|
+
* See details on propagation/cascading in {@link DataSpaceQueryBuilderState}
|
|
43
|
+
*/
|
|
44
|
+
const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
|
|
45
|
+
const { queryBuilderState } = props;
|
|
46
|
+
const applicationStore = useApplicationStore();
|
|
47
|
+
const [dataSpaceSearchText, setDataSpaceSearchText] = useState('');
|
|
48
|
+
// data space
|
|
49
|
+
const dataSpaceOptions = queryBuilderState.dataSpaces.map(buildDataSpaceOption);
|
|
50
|
+
const selectedDataSpaceOption = {
|
|
51
|
+
label: queryBuilderState.dataSpace.title ?? queryBuilderState.dataSpace.name,
|
|
52
|
+
value: {
|
|
53
|
+
groupId: queryBuilderState.groupId,
|
|
54
|
+
artifactId: queryBuilderState.artifactId,
|
|
55
|
+
versionId: queryBuilderState.versionId,
|
|
56
|
+
title: queryBuilderState.dataSpace.title,
|
|
57
|
+
name: queryBuilderState.dataSpace.name,
|
|
58
|
+
path: queryBuilderState.dataSpace.path,
|
|
59
|
+
defaultExecutionContext: queryBuilderState.dataSpace.defaultExecutionContext.name,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
const onDataSpaceOptionChange = (option) => {
|
|
63
|
+
queryBuilderState.onDataSpaceChange(option.value);
|
|
64
|
+
};
|
|
65
|
+
const dataSpaceFilterOption = createFilter({
|
|
66
|
+
ignoreCase: true,
|
|
67
|
+
ignoreAccents: false,
|
|
68
|
+
stringify: (option) => `${option.label} - ${option.value.path}`,
|
|
69
|
+
});
|
|
70
|
+
const formatDataSpaceOptionLabel = (option) => (_jsxs("div", { className: "query-builder__setup__data-space__option", title: `${option.label} - ${option.value.path} - ${generateGAVCoordinates(option.value.groupId, option.value.artifactId, option.value.versionId)}`, children: [_jsx("div", { className: "query-builder__setup__data-space__option__label", children: option.label }), _jsx("div", { className: "query-builder__setup__data-space__option__path", children: option.value.path }), _jsx("div", { className: "query-builder__setup__data-space__option__gav", children: generateGAVCoordinates(option.value.groupId, option.value.artifactId, option.value.versionId) })] }));
|
|
71
|
+
// data space search text
|
|
72
|
+
const debouncedLoadDataSpaces = useMemo(() => debounce((input) => {
|
|
73
|
+
flowResult(queryBuilderState.loadDataSpaces(input)).catch(applicationStore.alertUnhandledError);
|
|
74
|
+
}, 500), [applicationStore, queryBuilderState]);
|
|
75
|
+
const onDataSpaceSearchTextChange = (value) => {
|
|
76
|
+
if (value !== dataSpaceSearchText) {
|
|
77
|
+
setDataSpaceSearchText(value);
|
|
78
|
+
debouncedLoadDataSpaces.cancel();
|
|
79
|
+
debouncedLoadDataSpaces(value);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
// execution context
|
|
83
|
+
const executionContextOptions = queryBuilderState.dataSpace.executionContexts.map(buildExecutionContextOption);
|
|
84
|
+
const selectedExecutionContextOption = buildExecutionContextOption(queryBuilderState.executionContext);
|
|
85
|
+
const onExecutionContextOptionChange = (option) => {
|
|
86
|
+
if (option.value === queryBuilderState.executionContext) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
queryBuilderState.setExecutionContext(option.value);
|
|
90
|
+
queryBuilderState.propagateExecutionContextChange(option.value);
|
|
91
|
+
queryBuilderState.onExecutionContextChange?.(option.value);
|
|
92
|
+
};
|
|
93
|
+
// runtime
|
|
94
|
+
const runtimeOptions = getMappingCompatibleRuntimes(queryBuilderState.executionContext.mapping.value, queryBuilderState.graphManagerState.usableRuntimes)
|
|
95
|
+
.map((rt) => new RuntimePointer(PackageableElementExplicitReference.create(rt)))
|
|
96
|
+
.map(buildRuntimeValueOption);
|
|
97
|
+
const selectedRuntimeOption = queryBuilderState.runtimeValue
|
|
98
|
+
? buildRuntimeValueOption(queryBuilderState.runtimeValue)
|
|
99
|
+
: null;
|
|
100
|
+
const changeRuntime = (option) => {
|
|
101
|
+
if (option.value === queryBuilderState.runtimeValue) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
queryBuilderState.changeRuntime(option.value);
|
|
105
|
+
queryBuilderState.onRuntimeChange?.(option.value);
|
|
106
|
+
};
|
|
107
|
+
const runtimeFilterOption = createFilter({
|
|
108
|
+
ignoreCase: true,
|
|
109
|
+
ignoreAccents: false,
|
|
110
|
+
stringify: (option) => guaranteeType(option.value, RuntimePointer).packageableRuntime.value
|
|
111
|
+
.path,
|
|
112
|
+
});
|
|
113
|
+
// class
|
|
114
|
+
const classes = getMappingCompatibleClasses(queryBuilderState.executionContext.mapping.value, queryBuilderState.graphManagerState.usableClasses);
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
flowResult(queryBuilderState.loadDataSpaces('')).catch(applicationStore.alertUnhandledError);
|
|
117
|
+
}, [queryBuilderState, applicationStore]);
|
|
118
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsxs("div", { className: "query-builder__setup__config-group__header", children: [_jsx("div", { className: "query-builder__setup__config-group__header__title", children: "data space execution context" }), _jsx(DropdownMenu, { className: "query-builder__setup__config-group__header__dropdown", content: _jsx(MenuContent, { children: _jsxs(MenuContentItem, { onClick: () => queryBuilderState.setShowRuntimeSelector(!queryBuilderState.showRuntimeSelector), children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showRuntimeSelector ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Runtime Selector" })] }) }), menuProps: {
|
|
119
|
+
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
|
120
|
+
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
121
|
+
}, children: _jsx("button", { className: "query-builder__setup__config-group__header__dropdown-trigger", title: "Show Settings...", children: _jsx(MoreHorizontalIcon, {}) }) })] }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", children: _jsx(DataSpaceIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.loadDataSpacesState.isInProgress, onInputChange: onDataSpaceSearchTextChange, inputValue: dataSpaceSearchText, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space by name...", escapeClearsValue: true, darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled, filterOption: dataSpaceFilterOption, formatOptionLabel: formatDataSpaceOptionLabel })] }), _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "execution context", children: _jsx(PlayIcon, { className: "query-builder__setup__data-space__icon__execution-context" }) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose an execution context...", options: executionContextOptions, disabled: executionContextOptions.length <= 1, onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled })] }), queryBuilderState.showRuntimeSelector && (_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "runtime", children: _jsx(PURE_RuntimeIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose a runtime...", noMatchMessage: "No compatible runtime found for specified execution context", options: runtimeOptions, onChange: changeRuntime, value: selectedRuntimeOption, darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled, filterOption: runtimeFilterOption, formatOptionLabel: getRuntimeOptionFormatter({
|
|
122
|
+
darkMode: !applicationStore.TEMPORARY__isLightThemeEnabled,
|
|
123
|
+
}) })] }))] })] }), _jsx(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: classes, onClassChange: queryBuilderState.onClassChange, noMatchMessage: "No compatible class found for specified execution context" })] }));
|
|
124
|
+
});
|
|
125
|
+
export const renderDataSpaceQueryBuilderSetupPanelContent = (queryBuilderState) => (_jsx(DataSpaceQueryBuilderSetupPanelContent, { queryBuilderState: queryBuilderState }));
|
|
126
|
+
//# sourceMappingURL=DataSpaceQueryBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,2BAA2B,EAC3B,4BAA4B,EAC5B,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAMxD,MAAM,oBAAoB,GAAG,CAAC,KAAoB,EAAmB,EAAE,CAAC,CAAC;IACvE,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI;IAChC,KAAK;CACN,CAAC,CAAC;AAMH,MAAM,2BAA2B,GAAG,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Ef,KAAC,gBAAgB,KAAG,GAChB,EACN,KAAC,mBAAmB,IAClB,SAAS,EAAC,4FAA4F,EACtG,WAAW,EAAC,qBAAqB,EACjC,cAAc,EAAC,6DAA6D,EAC5E,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EAAE,CAAC,gBAAgB,CAAC,8BAA8B,EAC1D,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,yBAAyB,CAAC;4CAC3C,QAAQ,EAAE,CAAC,gBAAgB,CAAC,8BAA8B;yCAC3D,CAAC,GACF,IACE,CACP,IACG,IACF,EACN,KAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,iBAAiB,CAAC,aAAa,EAC9C,cAAc,EAAC,2DAA2D,GAC1E,IACD,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAC1D,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,sCAAsC,IACrC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const DataSpaceQueryCreator: (() => JSX.Element) & {
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=DataSpaceQueryCreator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAkEH,eAAO,MAAM,qBAAqB;;CAyBhC,CAAC"}
|
|
@@ -18,26 +18,26 @@ import { observer, useLocalObservable } from 'mobx-react-lite';
|
|
|
18
18
|
import { getQueryParameters } from '@finos/legend-shared';
|
|
19
19
|
import { useApplicationStore } from '@finos/legend-application';
|
|
20
20
|
import { parseGAVCoordinates, useDepotServerClient, } from '@finos/legend-server-depot';
|
|
21
|
-
import { LEGEND_QUERY_PATH_PARAM_TOKEN,
|
|
21
|
+
import { LEGEND_QUERY_PATH_PARAM_TOKEN, QueryEditor, QueryEditorStoreContext, useLegendQueryApplicationStore, useLegendQueryBaseStore, } from '@finos/legend-application-query';
|
|
22
22
|
import { useParams } from 'react-router';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
const
|
|
23
|
+
import { DataSpaceQueryCreatorStore } from '../../stores/query/DataSpaceQueryCreatorStore.js';
|
|
24
|
+
import { DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN, DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN, } from '../../stores/query/DSLDataSpace_LegendQueryRouter.js';
|
|
25
|
+
const DataSpaceQueryCreatorStoreProvider = ({ children, gav, dataSpacePath, executionContext, runtimePath, classPath, }) => {
|
|
26
26
|
const { groupId, artifactId, versionId } = parseGAVCoordinates(gav);
|
|
27
27
|
const applicationStore = useLegendQueryApplicationStore();
|
|
28
28
|
const depotServerClient = useDepotServerClient();
|
|
29
29
|
const baseStore = useLegendQueryBaseStore();
|
|
30
|
-
const store = useLocalObservable(() => new
|
|
30
|
+
const store = useLocalObservable(() => new DataSpaceQueryCreatorStore(applicationStore, depotServerClient, baseStore.pluginManager, groupId, artifactId, versionId, dataSpacePath, executionContext, runtimePath, classPath));
|
|
31
31
|
return (_jsx(QueryEditorStoreContext.Provider, { value: store, children: children }));
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const DataSpaceQueryCreator = observer(() => {
|
|
34
34
|
const applicationStore = useApplicationStore();
|
|
35
35
|
const params = useParams();
|
|
36
36
|
const gav = params[LEGEND_QUERY_PATH_PARAM_TOKEN.GAV];
|
|
37
|
-
const dataSpacePath = params[
|
|
38
|
-
const executionContext = params[
|
|
37
|
+
const dataSpacePath = params[DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH];
|
|
38
|
+
const executionContext = params[DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT];
|
|
39
39
|
const runtimePath = params[LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH];
|
|
40
|
-
const classPath = getQueryParameters(applicationStore.navigator.getCurrentLocation(), true)[
|
|
41
|
-
return (_jsx(
|
|
40
|
+
const classPath = getQueryParameters(applicationStore.navigator.getCurrentLocation(), true)[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH];
|
|
41
|
+
return (_jsx(DataSpaceQueryCreatorStoreProvider, { gav: gav, dataSpacePath: dataSpacePath, executionContext: executionContext, runtimePath: runtimePath, classPath: classPath, children: _jsx(QueryEditor, {}) }));
|
|
42
42
|
});
|
|
43
|
-
//# sourceMappingURL=
|
|
43
|
+
//# sourceMappingURL=DataSpaceQueryCreator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryCreator.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryCreator.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,6BAA6B,EAC7B,WAAW,EACX,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SA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AAG,MAAM,CAAC,6BAA6B,CAAC,YAAY,CAAC,CAAC;IACvE,MAAM,SAAS,GAAG,kBAAkB,CAClC,gBAAgB,CAAC,SAAS,CAAC,kBAAkB,EAAE,EAC/C,IAAI,CACL,CAAC,0CAA0C,CAAC,UAAU,CAAC,CAAC;IAEzD,OAAO,CACL,KAAC,kCAAkC,IACjC,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,YAEpB,KAAC,WAAW,KAAG,GACoB,CACtC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAsBH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAsBH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAU/F,eAAO,MAAM,mBAAmB,WACtB;IAAE,eAAe,EAAE,wBAAwB,CAAA;CAAE;;CA2MtD,CAAC"}
|
|
@@ -25,7 +25,7 @@ import { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
25
25
|
import { DataSpaceViewer } from '../DataSpaceViewer.js';
|
|
26
26
|
const buildDataSpaceOption = (value) => ({
|
|
27
27
|
label: value.title ?? value.name,
|
|
28
|
-
value
|
|
28
|
+
value,
|
|
29
29
|
});
|
|
30
30
|
export const DataspaceQuerySetup = observer((props) => {
|
|
31
31
|
const { querySetupState } = props;
|
|
@@ -47,23 +47,21 @@ export const DataspaceQuerySetup = observer((props) => {
|
|
|
47
47
|
setupStore.setSetupState(undefined);
|
|
48
48
|
querySetupState.setCurrentDataSpace(undefined);
|
|
49
49
|
};
|
|
50
|
-
//
|
|
50
|
+
// data space
|
|
51
51
|
const dataSpaceOptions = querySetupState.dataSpaces.map(buildDataSpaceOption);
|
|
52
52
|
const selectedDataSpaceOption = querySetupState.currentDataSpace
|
|
53
53
|
? buildDataSpaceOption(querySetupState.currentDataSpace)
|
|
54
54
|
: null;
|
|
55
55
|
const onDataSpaceOptionChange = (option) => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
querySetupState.setDataSpaceViewerState(undefined);
|
|
59
|
-
}
|
|
56
|
+
querySetupState.setCurrentDataSpace(option?.value);
|
|
57
|
+
querySetupState.setDataSpaceViewerState(undefined);
|
|
60
58
|
};
|
|
61
59
|
const filterOption = createFilter({
|
|
62
60
|
ignoreCase: true,
|
|
63
61
|
ignoreAccents: false,
|
|
64
62
|
stringify: (option) => `${option.label} - ${option.value.path}`,
|
|
65
63
|
});
|
|
66
|
-
const
|
|
64
|
+
const formatDataSpaceOptionLabel = (option) => (_jsxs("div", { className: "query-setup__data-space__option", title: `${option.label} - ${option.value.path} - ${generateGAVCoordinates(option.value.groupId, option.value.artifactId, option.value.versionId)}`, children: [_jsx("div", { className: "query-setup__data-space__option__label", children: option.label }), _jsx("div", { className: "query-setup__data-space__option__path", children: option.value.path }), _jsx("div", { className: "query-setup__data-space__option__gav", children: generateGAVCoordinates(option.value.groupId, option.value.artifactId, option.value.versionId) })] }));
|
|
67
65
|
// search text
|
|
68
66
|
const debouncedLoadDataSpaces = useMemo(() => debounce((input) => {
|
|
69
67
|
flowResult(querySetupState.loadDataSpaces(input)).catch(applicationStore.alertUnhandledError);
|
|
@@ -88,7 +86,7 @@ export const DataspaceQuerySetup = observer((props) => {
|
|
|
88
86
|
}, []);
|
|
89
87
|
return (_jsxs("div", { className: "query-setup__wizard query-setup__data-space", children: [_jsxs("div", { className: "query-setup__wizard__header query-setup__data-space__header", children: [_jsx("button", { className: "query-setup__wizard__header__btn", onClick: back, title: "Back to Main Menu", children: _jsx(ArrowLeftIcon, {}) }), _jsx("div", { className: "query-setup__wizard__header__title", children: "Creating query from data space..." }), _jsx("button", { className: clsx('query-setup__wizard__header__btn', {
|
|
90
88
|
'query-setup__wizard__header__btn--ready': canProceed,
|
|
91
|
-
}), onClick: next, disabled: !canProceed, title: "Proceed", children: _jsx(ArrowRightIcon, {}) })] }), _jsxs("div", { className: "query-setup__wizard__content", children: [_jsxs("div", { className: "query-setup__wizard__group query-setup__wizard__group--inline query-setup__data-space__input-group", children: [_jsx("div", { className: "query-setup__wizard__group__title", children: _jsx(SearchIcon, {}) }), _jsx(CustomSelectorInput, { ref: dataSpaceSearchRef, className: "query-setup__wizard__selector", options: dataSpaceOptions, isLoading: querySetupState.loadDataSpacesState.isInProgress, onInputChange: onSearchTextChange, inputValue: searchText, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space by name...", isClearable: true, escapeClearsValue: true, darkMode: true, filterOption: filterOption, formatOptionLabel:
|
|
89
|
+
}), onClick: next, disabled: !canProceed, title: "Proceed", children: _jsx(ArrowRightIcon, {}) })] }), _jsxs("div", { className: "query-setup__wizard__content", children: [_jsxs("div", { className: "query-setup__wizard__group query-setup__wizard__group--inline query-setup__data-space__input-group", children: [_jsx("div", { className: "query-setup__wizard__group__title", children: _jsx(SearchIcon, {}) }), _jsx(CustomSelectorInput, { ref: dataSpaceSearchRef, className: "query-setup__wizard__selector", options: dataSpaceOptions, isLoading: querySetupState.loadDataSpacesState.isInProgress, onInputChange: onSearchTextChange, inputValue: searchText, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space by name...", isClearable: true, escapeClearsValue: true, darkMode: true, filterOption: filterOption, formatOptionLabel: formatDataSpaceOptionLabel }), _jsx("button", { className: clsx('query-setup__data-space__use-snapshot-btn', {
|
|
92
90
|
'query-setup__data-space__use-snapshot-btn--active': querySetupState.toGetSnapShot,
|
|
93
91
|
}), tabIndex: -1, title: `[${querySetupState.toGetSnapShot ? 'on' : 'off'}] Toggle show data spaces from snapshot releases instead of latest releases`, onClick: toggleGetSnapshot, children: _jsx(BoltIcon, {}) })] }), _jsxs("div", { className: "query-setup__data-space__view", children: [_jsx(PanelLoadingIndicator, { isLoading: querySetupState.loadDataSpaceState.isInProgress }), querySetupState.dataSpaceViewerState && (_jsx(DataSpaceViewer, { dataSpaceViewerState: querySetupState.dataSpaceViewerState })), !querySetupState.dataSpaceViewerState && (_jsxs(_Fragment, { children: [querySetupState.loadDataSpaceState.isInProgress && (_jsx(BlankPanelContent, { children: querySetupState.loadDataSpaceState.message })), querySetupState.loadDataSpaceState.hasFailed && (_jsx(BlankPanelContent, { children: _jsxs("div", { className: "query-setup__data-space__view--failed", children: [_jsx("div", { className: "query-setup__data-space__view--failed__icon", children: _jsx(TimesCircleIcon, {}) }), _jsx("div", { className: "query-setup__data-space__view--failed__text", children: "Can't load data space" })] }) }))] }))] })] })] }));
|
|
94
92
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetup.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;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f,EACN,cAAK,SAAS,EAAC,6CAA6C,sCAEtD,IACF,GACY,CACrB,IACA,CACJ,IACG,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,EAEhD,KAAK,yBAAyB,EAG9B,KAAK,2CAA2C,EAChD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAE7C,KAAK,gDAAgD,EAErD,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAwB1C,qBAAa,0CACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,MAAM,EAAE;IAOtD,6BAA6B,IAAI,MAAM,EAAE;IAIzC,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,EAEhD,KAAK,yBAAyB,EAG9B,KAAK,2CAA2C,EAChD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAE7C,KAAK,gDAAgD,EAErD,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAwB1C,qBAAa,0CACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,MAAM,EAAE;IAOtD,6BAA6B,IAAI,MAAM,EAAE;IAIzC,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,mCAAmC,IAAI,0BAA0B,EAAE;IA0BnE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,4CAA4C,IAAI,mCAAmC,EAAE;IAWrF,qCAAqC,IAAI,MAAM,EAAE;IAIjD,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAgBhH"}
|