@finos/legend-extension-dsl-data-space 0.0.6 → 1.0.1
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/CHANGELOG.md +32 -0
- package/lib/DSLDataSpace_Extension.d.ts +0 -5
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
- package/lib/DSLDataSpace_Extension.js +0 -12
- package/lib/DSLDataSpace_Extension.js.map +1 -1
- package/lib/components/{studio/DataSpaceEditor.d.ts → DataSpaceViewer.d.ts} +5 -2
- package/lib/components/DataSpaceViewer.d.ts.map +1 -0
- package/lib/components/DataSpaceViewer.js +186 -0
- package/lib/components/DataSpaceViewer.js.map +1 -0
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts +24 -0
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -0
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js +51 -0
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts +22 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.js +95 -0
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -0
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.d.ts → DSLDataSpace_LegendStudioPlugin.d.ts} +5 -6
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js} +7 -18
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +39 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +110 -8
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts +1 -0
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -1
- package/lib/stores/DataSpaceViewerState.d.ts +59 -0
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerState.js +137 -0
- package/lib/stores/DataSpaceViewerState.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +49 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.js +129 -0
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -0
- package/package.json +26 -21
- package/src/DSLDataSpace_Extension.ts +0 -15
- package/src/components/DataSpaceViewer.tsx +598 -0
- package/src/components/query/DSLDataSpace_LegendQueryPlugin.tsx +76 -0
- package/src/components/query/DataSpaceQuerySetup.tsx +234 -0
- package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx} +17 -27
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -1
- package/src/index.ts +12 -0
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +192 -6
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +1 -1
- package/src/stores/DataSpaceViewerState.ts +202 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +235 -0
- package/tsconfig.json +7 -3
- package/tsconfig.package.json +1 -0
- package/lib/components/studio/DSLDataSpace_StudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_StudioPlugin.js.map +0 -1
- package/lib/components/studio/DataSpaceEditor.d.ts.map +0 -1
- package/lib/components/studio/DataSpaceEditor.js +0 -98
- package/lib/components/studio/DataSpaceEditor.js.map +0 -1
- package/lib/stores/studio/DataSpaceEditorState.d.ts +0 -42
- package/lib/stores/studio/DataSpaceEditorState.d.ts.map +0 -1
- package/lib/stores/studio/DataSpaceEditorState.js +0 -76
- package/lib/stores/studio/DataSpaceEditorState.js.map +0 -1
- package/src/components/studio/DataSpaceEditor.tsx +0 -272
- package/src/stores/studio/DataSpaceEditorState.ts +0 -108
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @finos/legend-extension-dsl-data-space
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
## 1.0.0
|
|
6
|
+
|
|
7
|
+
### Major Changes
|
|
8
|
+
|
|
9
|
+
- [#692](https://github.com/finos/legend-studio/pull/692) [`caab0e67`](https://github.com/finos/legend-studio/commit/caab0e6772181e514b246fe6030a02e7169952cc) ([@akphi](https://github.com/akphi)) - **BREAKING CHANGE:** Move enterprise model explorer out to `@finos/legend-taxonomy` and create a new application `Legend Taxonomy`.
|
|
10
|
+
|
|
11
|
+
* [#692](https://github.com/finos/legend-studio/pull/692) [`caab0e67`](https://github.com/finos/legend-studio/commit/caab0e6772181e514b246fe6030a02e7169952cc) ([@akphi](https://github.com/akphi)) - **BREAKING CHANGE:** Remove `LegendStudioPreset` and `LegendQueryPreset` and expose `LegendStudioPlugin` and `LegendQueryPlugin` respectively as we now prefer the usage of `@finos/legend-graph-extension-collection` to better manage graph presets.
|
|
12
|
+
|
|
13
|
+
## 0.2.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#653](https://github.com/finos/legend-studio/pull/653) [`397aab2c`](https://github.com/finos/legend-studio/commit/397aab2c4f99e4c92ee60cdd84efa76d3d8126ce) ([@akphi](https://github.com/akphi)) - Create `Enterprise` model explorer view with taxonomy tree to organize data spaces using `meta::pure::profiles::enterprise` tag (see [#617](https://github.com/finos/legend-studio/issues/617)] for more details).
|
|
18
|
+
|
|
19
|
+
* [#659](https://github.com/finos/legend-studio/pull/659) [`caf3d4aa`](https://github.com/finos/legend-studio/commit/caf3d4aa3a98ca109cabb525eeb7d8615def7343) ([@akphi](https://github.com/akphi)) - Add new panels to data space viewer: a placeholder for test coverage (`WIP`) and a panel to view tagged values and stereotypes.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#639](https://github.com/finos/legend-studio/pull/639) [`62985e59`](https://github.com/finos/legend-studio/commit/62985e59627b5be2cb75e15f30c13d029014c030) ([@akphi](https://github.com/akphi)) - Allow viewing more informations about a data space when creating a new query in `Legend Query`, such as entitlement, project links (the project that the data space resides as well as the project that the data space refers to), test data, etc.
|
|
24
|
+
|
|
25
|
+
* [#659](https://github.com/finos/legend-studio/pull/659) [`caf3d4aa`](https://github.com/finos/legend-studio/commit/caf3d4aa3a98ca109cabb525eeb7d8615def7343) ([@akphi](https://github.com/akphi)) - Allow setting query using dataspaces coming from latest `snapshot` releases.
|
|
26
|
+
|
|
27
|
+
## 0.1.1
|
|
28
|
+
|
|
29
|
+
## 0.1.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- [#584](https://github.com/finos/legend-studio/pull/584) [`b32e834b`](https://github.com/finos/legend-studio/commit/b32e834ba037658de53632403c79aa0f0f651971) ([@akphi](https://github.com/akphi)) - Add extension for `Legend Query` which allows creating query from data space.
|
|
34
|
+
|
|
3
35
|
## 0.0.6
|
|
4
36
|
|
|
5
37
|
## 0.0.5
|
|
@@ -15,13 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { AbstractPreset } from '@finos/legend-shared';
|
|
17
17
|
import type { GraphPluginManager } from '@finos/legend-graph';
|
|
18
|
-
import type { StudioPluginManager } from '@finos/legend-studio';
|
|
19
18
|
export declare class DSLDataSpace_GraphPreset extends AbstractPreset {
|
|
20
19
|
constructor();
|
|
21
20
|
install(pluginManager: GraphPluginManager): void;
|
|
22
21
|
}
|
|
23
|
-
export declare class DSLDataSpace_StudioPreset extends AbstractPreset {
|
|
24
|
-
constructor();
|
|
25
|
-
install(pluginManager: StudioPluginManager): void;
|
|
26
|
-
}
|
|
27
22
|
//# sourceMappingURL=DSLDataSpace_Extension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_Extension.d.ts","sourceRoot":"","sources":["../src/DSLDataSpace_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_Extension.d.ts","sourceRoot":"","sources":["../src/DSLDataSpace_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,qBAAa,wBAAyB,SAAQ,cAAc;;IAK1D,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;CAKjD"}
|
|
@@ -17,7 +17,6 @@ import packageJson from '../package.json';
|
|
|
17
17
|
import { AbstractPreset } from '@finos/legend-shared';
|
|
18
18
|
import { DSLDataSpace_PureGraphManagerPlugin } from './graphManager/DSLDataSpace_PureGraphManagerPlugin';
|
|
19
19
|
import { DSLDataSpace_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
20
|
-
import { DSLDataSpace_StudioPlugin } from './components/studio/DSLDataSpace_StudioPlugin';
|
|
21
20
|
import { DSLDataSpace_PureGraphPlugin } from './graph/DSLDataSpace_PureGraphPlugin';
|
|
22
21
|
export class DSLDataSpace_GraphPreset extends AbstractPreset {
|
|
23
22
|
constructor() {
|
|
@@ -29,15 +28,4 @@ export class DSLDataSpace_GraphPreset extends AbstractPreset {
|
|
|
29
28
|
new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
|
-
export class DSLDataSpace_StudioPreset extends AbstractPreset {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(packageJson.extensions.studioPreset, packageJson.version);
|
|
35
|
-
}
|
|
36
|
-
install(pluginManager) {
|
|
37
|
-
new DSLDataSpace_StudioPlugin().install(pluginManager);
|
|
38
|
-
new DSLDataSpace_PureGraphPlugin().install(pluginManager);
|
|
39
|
-
new DSLDataSpace_PureGraphManagerPlugin().install(pluginManager);
|
|
40
|
-
new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
31
|
//# sourceMappingURL=DSLDataSpace_Extension.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_Extension.js","sourceRoot":"","sources":["../src/DSLDataSpace_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,EAAE,wCAAwC,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_Extension.js","sourceRoot":"","sources":["../src/DSLDataSpace_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,EAAE,wCAAwC,EAAE,MAAM,kEAAkE,CAAC;AAE5H,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,MAAM,OAAO,wBAAyB,SAAQ,cAAc;IAC1D;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,aAAiC;QACvC,IAAI,4BAA4B,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAC1D,IAAI,mCAAmC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACjE,IAAI,wCAAwC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
import type { DataSpaceViewerState } from '../stores/DataSpaceViewerState';
|
|
17
|
+
export declare const DataSpaceViewer: ((props: {
|
|
18
|
+
dataSpaceViewerState: DataSpaceViewerState;
|
|
19
|
+
}) => JSX.Element) & {
|
|
17
20
|
displayName: string;
|
|
18
21
|
};
|
|
19
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=DataSpaceViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAyX3E,eAAO,MAAM,eAAe,WAClB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAgLvD,CAAC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } 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 { useRef, useEffect } from 'react';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import { useResizeDetector } from 'react-resize-detector';
|
|
20
|
+
import { BlankPanelContent, ShapesIcon, PlayIcon, QuestionCircleIcon, EnvelopIcon, clsx, CustomSelectorInput, MappingIcon, RuntimeIcon, CogIcon, KeyIcon, FlaskIcon, ExternalLinkSquareIcon, ExternalLinkIcon, ShieldIcon, TagsIcon, } from '@finos/legend-art';
|
|
21
|
+
import { DiagramRenderer } from '@finos/legend-extension-dsl-diagram';
|
|
22
|
+
import { DataSpaceSupportEmail } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
23
|
+
import { DATA_SPACE_VIEWER_ACTIVITY_MODE } from '../stores/DataSpaceViewerState';
|
|
24
|
+
const DataSpaceDiagramCanvas = observer((props, ref) => {
|
|
25
|
+
const { dataSpaceViewerState, diagram } = props;
|
|
26
|
+
const diagramCanvasRef = ref;
|
|
27
|
+
const { width, height } = useResizeDetector({
|
|
28
|
+
refreshMode: 'debounce',
|
|
29
|
+
refreshRate: 50,
|
|
30
|
+
targetRef: diagramCanvasRef,
|
|
31
|
+
});
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (diagramCanvasRef.current) {
|
|
34
|
+
const renderer = new DiagramRenderer(diagramCanvasRef.current, diagram);
|
|
35
|
+
dataSpaceViewerState.setRenderer(renderer);
|
|
36
|
+
dataSpaceViewerState.setupRenderer();
|
|
37
|
+
renderer.render();
|
|
38
|
+
renderer.autoRecenter();
|
|
39
|
+
}
|
|
40
|
+
}, [diagramCanvasRef, dataSpaceViewerState, diagram]);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (dataSpaceViewerState.isDiagramRendererInitialized) {
|
|
43
|
+
dataSpaceViewerState.renderer.refresh();
|
|
44
|
+
}
|
|
45
|
+
}, [dataSpaceViewerState, width, height]);
|
|
46
|
+
return (_jsx("div", { ref: diagramCanvasRef, className: clsx('diagram-canvas ', dataSpaceViewerState.diagramCursorClass), tabIndex: 0, onContextMenu: (event) => event.preventDefault() }, void 0));
|
|
47
|
+
}, { forwardRef: true });
|
|
48
|
+
const buildDiagramOption = (diagram) => ({
|
|
49
|
+
label: diagram.name,
|
|
50
|
+
value: diagram,
|
|
51
|
+
});
|
|
52
|
+
const DataSpaceModelsOverview = observer((props) => {
|
|
53
|
+
const { dataSpaceViewerState } = props;
|
|
54
|
+
// diagram selector
|
|
55
|
+
const diagramCanvasRef = useRef(null);
|
|
56
|
+
const diagramOptions = dataSpaceViewerState.featuredDiagrams
|
|
57
|
+
.concat(dataSpaceViewerState.diagrams.filter((diagram) => !dataSpaceViewerState.featuredDiagrams.includes(diagram)))
|
|
58
|
+
.map(buildDiagramOption);
|
|
59
|
+
const selectedDiagramOption = dataSpaceViewerState.currentDiagram
|
|
60
|
+
? buildDiagramOption(dataSpaceViewerState.currentDiagram)
|
|
61
|
+
: null;
|
|
62
|
+
const onDiagramOptionChange = (option) => {
|
|
63
|
+
if (option.value !== dataSpaceViewerState.currentDiagram) {
|
|
64
|
+
dataSpaceViewerState.setCurrentDiagram(option.value);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const formatDiagramOptionLabel = (option) => (_jsxs("div", { className: "data-space__viewer__diagrams__dropdown__option", children: [_jsx("div", { className: "data-space__viewer__diagrams__dropdown__option__label", children: option.label }, void 0), dataSpaceViewerState.featuredDiagrams.includes(option.value) && (_jsx("div", { className: "data-space__viewer__diagrams__dropdown__option__tag", children: "featured" }, void 0))] }, void 0));
|
|
68
|
+
if (dataSpaceViewerState.diagrams.length === 0) {
|
|
69
|
+
return _jsx(BlankPanelContent, { children: "No diagrams available" }, void 0);
|
|
70
|
+
}
|
|
71
|
+
return (_jsxs("div", { className: "data-space__viewer__main-panel__content data-space__viewer__diagrams", children: [_jsx("div", { className: "data-space__viewer__diagrams__header", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__diagrams__diagram-selector", options: diagramOptions, onChange: onDiagramOptionChange, value: selectedDiagramOption, placeholder: "Search for a diagram", darkMode: true, formatOptionLabel: formatDiagramOptionLabel }, void 0) }, void 0), _jsx("div", { className: "data-space__viewer__diagrams__content", children: dataSpaceViewerState.currentDiagram && (_jsx(DataSpaceDiagramCanvas, { dataSpaceViewerState: dataSpaceViewerState, diagram: dataSpaceViewerState.currentDiagram, ref: diagramCanvasRef }, void 0)) }, void 0), _jsx("div", { className: "data-space__viewer__diagrams__footer" }, void 0)] }, void 0));
|
|
72
|
+
});
|
|
73
|
+
const buildExecutionContextOption = (value) => ({
|
|
74
|
+
label: value.name,
|
|
75
|
+
value: value,
|
|
76
|
+
});
|
|
77
|
+
const buildRuntimeOption = (value) => ({
|
|
78
|
+
label: value.name,
|
|
79
|
+
value: value,
|
|
80
|
+
});
|
|
81
|
+
const DataSpaceExecutionViewer = observer((props) => {
|
|
82
|
+
const { dataSpaceViewerState } = props;
|
|
83
|
+
// execution
|
|
84
|
+
const executionContextOptions = dataSpaceViewerState.dataSpace.executionContexts.map(buildExecutionContextOption);
|
|
85
|
+
const selectedExecutionContextOption = buildExecutionContextOption(dataSpaceViewerState.currentExecutionContext);
|
|
86
|
+
const onExecutionContextOptionChange = (option) => {
|
|
87
|
+
if (option.value !== dataSpaceViewerState.currentExecutionContext) {
|
|
88
|
+
dataSpaceViewerState.setCurrentExecutionContext(option.value);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const formatExecutionContextOptionLabel = (option) => (_jsxs("div", { className: "data-space__viewer__execution__entry__content__dropdown__option", children: [_jsx("div", { className: "data-space__viewer__execution__entry__content__dropdown__option__label", children: option.label }, void 0), option.value ===
|
|
92
|
+
dataSpaceViewerState.dataSpace.defaultExecutionContext && (_jsx("div", { className: "data-space__viewer__execution__entry__content__dropdown__option__tag", children: "default" }, void 0))] }, void 0));
|
|
93
|
+
// runtime
|
|
94
|
+
const runtimeOptions = dataSpaceViewerState.runtimes.map(buildRuntimeOption);
|
|
95
|
+
const selectedRuntimeOption = buildRuntimeOption(dataSpaceViewerState.currentRuntime);
|
|
96
|
+
const onRuntimeOptionChange = (option) => {
|
|
97
|
+
if (option.value !== dataSpaceViewerState.currentRuntime) {
|
|
98
|
+
dataSpaceViewerState.setCurrentRuntime(option.value);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const formatRuntimeOptionLabel = (option) => (_jsxs("div", { className: "data-space__viewer__execution__entry__content__dropdown__option", children: [_jsx("div", { className: "data-space__viewer__execution__entry__content__dropdown__option__label", children: option.label }, void 0), option.value ===
|
|
102
|
+
dataSpaceViewerState.currentExecutionContext.defaultRuntime.value && (_jsx("div", { className: "data-space__viewer__execution__entry__content__dropdown__option__tag", children: "default" }, void 0))] }, void 0));
|
|
103
|
+
return (_jsxs("div", { className: "data-space__viewer__main-panel__content data-space__viewer__execution", children: [_jsxs("div", { className: "data-space__viewer__execution__entry", children: [_jsx("div", { className: "data-space__viewer__execution__entry__icon", children: _jsx(CogIcon, { className: "data-space__viewer__execution__context-icon" }, void 0) }, void 0), _jsx("div", { className: "data-space__viewer__execution__entry__content data-space__viewer__execution__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution__entry__content__dropdown", options: executionContextOptions, onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: true, formatOptionLabel: formatExecutionContextOptionLabel }, void 0) }, void 0)] }, void 0), _jsx("div", { className: clsx('data-space__viewer__execution__description', {
|
|
104
|
+
'data-space__viewer__execution__description--empty': !dataSpaceViewerState.currentExecutionContext.description,
|
|
105
|
+
}), children: dataSpaceViewerState.currentExecutionContext.description
|
|
106
|
+
? dataSpaceViewerState.currentExecutionContext.description
|
|
107
|
+
: 'No description' }, void 0), _jsxs("div", { className: "data-space__viewer__execution__entry data-space__viewer__execution__mapping", children: [_jsx("div", { className: "data-space__viewer__execution__entry__icon", children: _jsx(MappingIcon, {}, void 0) }, void 0), _jsx("div", { className: "data-space__viewer__execution__entry__content data-space__viewer__execution__entry__content__text", children: dataSpaceViewerState.currentExecutionContext.mapping.value.path }, void 0)] }, void 0), _jsxs("div", { className: "data-space__viewer__execution__entry", children: [_jsx("div", { className: "data-space__viewer__execution__entry__icon", children: _jsx(RuntimeIcon, {}, void 0) }, void 0), _jsx("div", { className: "data-space__viewer__execution__entry__content data-space__viewer__execution__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution__entry__content__dropdown", options: runtimeOptions, onChange: onRuntimeOptionChange, value: selectedRuntimeOption, darkMode: true, formatOptionLabel: formatRuntimeOptionLabel }, void 0) }, void 0)] }, void 0)] }, void 0));
|
|
108
|
+
});
|
|
109
|
+
const DataSpaceTags = observer((props) => {
|
|
110
|
+
const { dataSpaceViewerState } = props;
|
|
111
|
+
const dataSpace = dataSpaceViewerState.dataSpace;
|
|
112
|
+
return (_jsxs("div", { className: "data-space__viewer__tags", children: [_jsxs("div", { className: "data-space__viewer__tags__section", children: [_jsx("div", { className: "data-space__viewer__tags__section__title", children: "Tagged Values" }, void 0), dataSpace.taggedValues.length !== 0 &&
|
|
113
|
+
dataSpace.taggedValues.map((taggedValueData) => (_jsxs("div", { className: "data-space__viewer__tags__section__entry", children: [_jsx("div", { className: "data-space__viewer__tags__tagged-value__tag", title: `${taggedValueData.profile}.${taggedValueData.tag}`, children: taggedValueData.tag }, void 0), _jsx("div", { className: "data-space__viewer__tags__tagged-value__value", children: taggedValueData.value }, void 0)] }, taggedValueData.uuid))), dataSpace.taggedValues.length === 0 && (_jsx("div", { className: "data-space__viewer__tags__section__placeholder", children: "(empty)" }, void 0))] }, void 0), _jsxs("div", { className: "data-space__viewer__tags__section", children: [_jsx("div", { className: "data-space__viewer__tags__section__title", children: "Stereotypes" }, void 0), dataSpace.stereotypes.length !== 0 &&
|
|
114
|
+
dataSpace.stereotypes.map((stereotypeData) => (_jsx("div", { className: "data-space__viewer__tags__section__entry", title: `${stereotypeData.profile}.${stereotypeData.stereotype}`, children: _jsx("div", { className: "data-space__viewer__tags__steoreotype", children: stereotypeData.stereotype }, void 0) }, stereotypeData.uuid))), dataSpace.stereotypes.length === 0 && (_jsx("div", { className: "data-space__viewer__tags__section__placeholder", children: "(empty)" }, void 0))] }, void 0)] }, void 0));
|
|
115
|
+
});
|
|
116
|
+
const DataSpaceSupportEmailViewer = observer((props) => {
|
|
117
|
+
const { dataSpaceSupportEmail } = props;
|
|
118
|
+
return (_jsx("div", { className: "data-space__viewer__support-email", children: _jsxs("div", { className: "data-space__viewer__support-email__entry", children: [_jsx("div", { className: "data-space__viewer__support-email__entry__icon", children: _jsx(EnvelopIcon, {}, void 0) }, void 0), _jsx("a", { href: `mailto:${dataSpaceSupportEmail.address}`, className: "data-space__viewer__support-email__entry__content", children: dataSpaceSupportEmail.address }, void 0)] }, void 0) }, void 0));
|
|
119
|
+
});
|
|
120
|
+
const DataSpaceSupportInfoViewerInner = observer((props) => {
|
|
121
|
+
const { dataSpaceViewerState, dataSpaceSupportInfo } = props;
|
|
122
|
+
if (dataSpaceSupportInfo === undefined) {
|
|
123
|
+
return _jsx(BlankPanelContent, { children: "No support info available" }, void 0);
|
|
124
|
+
}
|
|
125
|
+
else if (dataSpaceSupportInfo instanceof DataSpaceSupportEmail) {
|
|
126
|
+
return (_jsx(DataSpaceSupportEmailViewer, { dataSpaceViewerState: dataSpaceViewerState, dataSpaceSupportEmail: dataSpaceSupportInfo }, void 0));
|
|
127
|
+
}
|
|
128
|
+
return (_jsx(BlankPanelContent, { children: "Can't display support info" }, void 0));
|
|
129
|
+
});
|
|
130
|
+
export const DataSpaceViewer = observer((props) => {
|
|
131
|
+
const { dataSpaceViewerState } = props;
|
|
132
|
+
const dataSpace = dataSpaceViewerState.dataSpace;
|
|
133
|
+
const changeActivity = (activity) => () => dataSpaceViewerState.setCurrentActivity(activity);
|
|
134
|
+
const activities = [
|
|
135
|
+
{
|
|
136
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_OVERVIEW,
|
|
137
|
+
title: 'Models Overview',
|
|
138
|
+
icon: _jsx(ShapesIcon, {}, void 0),
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION,
|
|
142
|
+
title: 'Execution Context',
|
|
143
|
+
icon: _jsx(PlayIcon, {}, void 0),
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.ENTITLEMENT,
|
|
147
|
+
title: 'Entitlement',
|
|
148
|
+
icon: _jsx(KeyIcon, {}, void 0),
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_DATA,
|
|
152
|
+
title: 'Test Data',
|
|
153
|
+
icon: _jsx(FlaskIcon, {}, void 0),
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_COVERAGE,
|
|
157
|
+
title: 'Test Coverage',
|
|
158
|
+
icon: _jsx(ShieldIcon, {}, void 0),
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.TAGS,
|
|
162
|
+
title: 'Tags',
|
|
163
|
+
icon: _jsx(TagsIcon, {}, void 0),
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
mode: DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT,
|
|
167
|
+
title: 'Support',
|
|
168
|
+
icon: _jsx(QuestionCircleIcon, {}, void 0),
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
const viewDataSpaceProject = () => dataSpaceViewerState.viewProject?.(dataSpaceViewerState.dataSpaceGroupId, dataSpaceViewerState.dataSpaceArtifactId, dataSpaceViewerState.dataSpaceVersionId, dataSpace.path);
|
|
172
|
+
const viewProject = () => dataSpaceViewerState.viewProject?.(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, undefined);
|
|
173
|
+
return (_jsxs("div", { className: "data-space__viewer", children: [_jsxs("div", { className: "data-space__viewer__header", children: [_jsxs("button", { className: "data-space__viewer__path", tabIndex: -1, title: "View Data Space in Project", onClick: viewDataSpaceProject, children: [_jsx("div", { className: "data-space__viewer__path__label", children: dataSpace.path }, void 0), _jsx("div", { className: "data-space__viewer__path__link", children: _jsx(ExternalLinkSquareIcon, {}, void 0) }, void 0)] }, void 0), _jsxs("button", { className: "data-space__viewer__gav", tabIndex: -1, title: "View Project", onClick: viewProject, children: [_jsx("div", { className: "data-space__viewer__gav__group-id", children: dataSpace.groupId }, void 0), _jsx("div", { className: "data-space__viewer__gav__separator", children: ":" }, void 0), _jsx("div", { className: "data-space__viewer__gav__artifact-id", children: dataSpace.artifactId }, void 0), _jsx("div", { className: "data-space__viewer__gav__separator", children: ":" }, void 0), _jsx("div", { className: "data-space__viewer__gav__version-id", children: dataSpace.versionId }, void 0), _jsx("div", { className: "data-space__viewer__gav__link", children: _jsx(ExternalLinkIcon, {}, void 0) }, void 0)] }, void 0), _jsx("div", { className: clsx('data-space__viewer__description', {
|
|
174
|
+
'data-space__viewer__description--empty': !dataSpace.description,
|
|
175
|
+
}), children: dataSpace.description ? dataSpace.description : 'No description' }, void 0)] }, void 0), _jsx("div", { className: "data-space__viewer__content", children: _jsxs("div", { className: "data-space__viewer__body", children: [_jsx("div", { className: "data-space__viewer__activity-bar", children: _jsx("div", { className: "data-space__viewer__activity-bar__items", children: activities.map((activity) => (_jsx("button", { className: clsx('data-space__viewer__activity-bar__item', {
|
|
176
|
+
'data-space__viewer__activity-bar__item--active': dataSpaceViewerState.currentActivity === activity.mode,
|
|
177
|
+
}), onClick: changeActivity(activity.mode), tabIndex: -1, title: activity.title, children: activity.icon }, activity.mode))) }, void 0) }, void 0), _jsxs("div", { className: "data-space__viewer__main-panel", children: [dataSpaceViewerState.currentActivity ===
|
|
178
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_OVERVIEW && (_jsx(DataSpaceModelsOverview, { dataSpaceViewerState: dataSpaceViewerState }, void 0)), dataSpaceViewerState.currentActivity ===
|
|
179
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.EXECUTION && (_jsx(DataSpaceExecutionViewer, { dataSpaceViewerState: dataSpaceViewerState }, void 0)), dataSpaceViewerState.currentActivity ===
|
|
180
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.ENTITLEMENT && (_jsx(BlankPanelContent, { children: "Request entitlement(s) (Work in Progress)" }, void 0)), dataSpaceViewerState.currentActivity ===
|
|
181
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_DATA && (_jsx(BlankPanelContent, { children: "View test data (Work in Progress)" }, void 0)), dataSpaceViewerState.currentActivity ===
|
|
182
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.TEST_COVERAGE && (_jsx(BlankPanelContent, { children: "View test coverage (Work in Progress)" }, void 0)), dataSpaceViewerState.currentActivity ===
|
|
183
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.TAGS && (_jsx(DataSpaceTags, { dataSpaceViewerState: dataSpaceViewerState }, void 0)), dataSpaceViewerState.currentActivity ===
|
|
184
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE.SUPPORT && (_jsx("div", { className: "data-space__viewer__main-panel__content data-space__viewer__support-info", children: _jsx(DataSpaceSupportInfoViewerInner, { dataSpaceViewerState: dataSpaceViewerState, dataSpaceSupportInfo: dataSpace.supportInfo }, void 0) }, void 0))] }, void 0)] }, void 0) }, void 0)] }, void 0));
|
|
185
|
+
});
|
|
186
|
+
//# sourceMappingURL=DataSpaceViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,WAAW,EACX,IAAI,EACJ,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,OAAO,EACP,OAAO,EACP,SAAS,EACT,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yEAAyE,CAAC;AAKhH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAQjF,MAAM,sBAAsB,GAAG,QAAQ,CACrC,CACE,KAGC,EACD,GAA8B,EAC9B,EAAE;IACF,MAAM,EAAE,oBAAoB,EAAE,OAAO,E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AAC,IAAI,CAUX,CACV,CAAC,WACE,WACF,EACN,eAAK,SAAS,EAAC,gCAAgC,aAC5C,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,eAAe,IAAI,CACnD,KAAC,uBAAuB,IACtB,oBAAoB,EAAE,oBAAoB,WAC1C,CACH,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,SAAS,IAAI,CAC7C,KAAC,wBAAwB,IACvB,oBAAoB,EAAE,oBAAoB,WAC1C,CACH,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,WAAW,IAAI,CAC/C,KAAC,iBAAiB,oEAEE,CACrB,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,SAAS,IAAI,CAC7C,KAAC,iBAAiB,4DAEE,CACrB,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,aAAa,IAAI,CACjD,KAAC,iBAAiB,gEAEE,CACrB,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,IAAI,IAAI,CACxC,KAAC,aAAa,IAAC,oBAAoB,EAAE,oBAAoB,WAAI,CAC9D,EACA,oBAAoB,CAAC,eAAe;oCACnC,+BAA+B,CAAC,OAAO,IAAI,CAC3C,cAAK,SAAS,EAAC,0EAA0E,YACvF,KAAC,+BAA+B,IAC9B,oBAAoB,EAAE,oBAAoB,EAC1C,oBAAoB,EAAE,SAAS,CAAC,WAAW,WAC3C,WACE,CACP,YACG,YACF,WACF,YACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { LegendQueryPluginManager, QuerySetupOptionRendererConfiguration, QuerySetupRenderer } from '@finos/legend-query';
|
|
17
|
+
import { LegendQueryPlugin } from '@finos/legend-query';
|
|
18
|
+
export declare class DSLDataSpace_LegendQueryPlugin extends LegendQueryPlugin {
|
|
19
|
+
constructor();
|
|
20
|
+
install(pluginManager: LegendQueryPluginManager): void;
|
|
21
|
+
getExtraQuerySetupOptionRendererConfigurations(): QuerySetupOptionRendererConfiguration[];
|
|
22
|
+
getExtraQuerySetupRenderers(): QuerySetupRenderer[];
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=DSLDataSpace_LegendQueryPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendQueryPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_LegendQueryPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,wBAAwB,EACxB,qCAAqC,EACrC,kBAAkB,EAGnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,qBAAa,8BAA+B,SAAQ,iBAAiB;;IAKnE,OAAO,CAAC,aAAa,EAAE,wBAAwB,GAAG,IAAI;IAI7C,8CAA8C,IAAI,qCAAqC,EAAE;IA2BzF,2BAA2B,IAAI,kBAAkB,EAAE;CAU7D"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } 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 packageJson from '../../../package.json';
|
|
18
|
+
import { LegendQueryPlugin } from '@finos/legend-query';
|
|
19
|
+
import { SquareIcon } from '@finos/legend-art';
|
|
20
|
+
import { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState';
|
|
21
|
+
import { DataspaceQuerySetup } from './DataSpaceQuerySetup';
|
|
22
|
+
export class DSLDataSpace_LegendQueryPlugin extends LegendQueryPlugin {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(packageJson.extensions.queryPlugin, packageJson.version);
|
|
25
|
+
}
|
|
26
|
+
install(pluginManager) {
|
|
27
|
+
pluginManager.registerQueryPlugin(this);
|
|
28
|
+
}
|
|
29
|
+
getExtraQuerySetupOptionRendererConfigurations() {
|
|
30
|
+
return [
|
|
31
|
+
{
|
|
32
|
+
key: 'data-space-query-option',
|
|
33
|
+
renderer: (setupStore) => {
|
|
34
|
+
const createQuery = () => setupStore.setSetupState(new DataSpaceQuerySetupState(setupStore));
|
|
35
|
+
return (_jsxs("button", { className: "query-setup__landing-page__option query-setup__landing-page__option--data-space", onClick: createQuery, children: [_jsx("div", { className: "query-setup__landing-page__option__icon", children: _jsx(SquareIcon, { className: "query-setup__landing-page__icon--data-space" }, void 0) }, void 0), _jsx("div", { className: "query-setup__landing-page__option__label", children: "Create query from data space" }, void 0)] }, void 0));
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
getExtraQuerySetupRenderers() {
|
|
41
|
+
return [
|
|
42
|
+
(querySetupState) => {
|
|
43
|
+
if (querySetupState instanceof DataSpaceQuerySetupState) {
|
|
44
|
+
return _jsx(DataspaceQuerySetup, { querySetupState: querySetupState }, void 0);
|
|
45
|
+
}
|
|
46
|
+
return undefined;
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=DSLDataSpace_LegendQueryPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendQueryPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_LegendQueryPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAQhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,8BAA+B,SAAQ,iBAAiB;IACnE;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,aAAuC;QAC7C,aAAa,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAEQ,8CAA8C;QACrD,OAAO;YACL;gBACE,GAAG,EAAE,yBAAyB;gBAC9B,QAAQ,EAAE,CACR,UAA2B,EACE,EAAE;oBAC/B,MAAM,WAAW,GAAG,GAAS,EAAE,CAC7B,UAAU,CAAC,aAAa,CAAC,IAAI,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC;oBACrE,OAAO,CACL,kBACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,WAAW,aAEpB,cAAK,SAAS,EAAC,yCAAyC,YACtD,KAAC,UAAU,IAAC,SAAS,EAAC,6CAA6C,WAAG,WAClE,EACN,cAAK,SAAS,EAAC,0CAA0C,qDAEnD,YACC,CACV,CAAC;gBACJ,CAAC;aACF;SACF,CAAC;IACJ,CAAC;IAEQ,2BAA2B;QAClC,OAAO;YACL,CAAC,eAAgC,EAA+B,EAAE;gBAChE,IAAI,eAAe,YAAY,wBAAwB,EAAE;oBACvD,OAAO,KAAC,mBAAmB,IAAC,eAAe,EAAE,eAAe,WAAI,CAAC;iBAClE;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState';
|
|
17
|
+
export declare const DataspaceQuerySetup: ((props: {
|
|
18
|
+
querySetupState: DataSpaceQuerySetupState;
|
|
19
|
+
}) => JSX.Element) & {
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=DataSpaceQuerySetup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqBH,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,6CAA6C,CAAC;AASrD,eAAO,MAAM,mBAAmB,WACtB;IAAE,eAAe,EAAE,wBAAwB,CAAA;CAAE;;CAyLtD,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } 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 { useApplicationStore } from '@finos/legend-application';
|
|
18
|
+
import { BoltIcon, ArrowRightIcon, clsx, BlankPanelContent, TimesCircleIcon, PanelLoadingIndicator, ArrowLeftIcon, CustomSelectorInput, SearchIcon, } from '@finos/legend-art';
|
|
19
|
+
import { useQuerySetupStore, useLegendQueryStore } from '@finos/legend-query';
|
|
20
|
+
import { generateGAVCoordinates } from '@finos/legend-server-depot';
|
|
21
|
+
import { debounce } from '@finos/legend-shared';
|
|
22
|
+
import { flowResult } from 'mobx';
|
|
23
|
+
import { observer } from 'mobx-react-lite';
|
|
24
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
25
|
+
import { DataSpaceViewer } from '../DataSpaceViewer';
|
|
26
|
+
const buildDataSpaceOption = (dataSpace) => ({
|
|
27
|
+
label: dataSpace.path,
|
|
28
|
+
value: dataSpace,
|
|
29
|
+
});
|
|
30
|
+
export const DataspaceQuerySetup = observer((props) => {
|
|
31
|
+
const { querySetupState } = props;
|
|
32
|
+
const applicationStore = useApplicationStore();
|
|
33
|
+
const setupStore = useQuerySetupStore();
|
|
34
|
+
const queryStore = useLegendQueryStore();
|
|
35
|
+
const dataSpaceSearchRef = useRef(null);
|
|
36
|
+
const [searchText, setSearchText] = useState('');
|
|
37
|
+
const toggleGetSnapshot = () => {
|
|
38
|
+
querySetupState.setToGetSnapShot(!querySetupState.toGetSnapShot);
|
|
39
|
+
flowResult(querySetupState.loadDataSpaces(searchText)).catch(applicationStore.alertIllegalUnhandledError);
|
|
40
|
+
};
|
|
41
|
+
const next = () => {
|
|
42
|
+
if (querySetupState.dataSpaceViewerState) {
|
|
43
|
+
flowResult(querySetupState.proceedToCreateQuery()).catch(applicationStore.alertIllegalUnhandledError);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const canProceed = querySetupState.dataSpaceViewerState;
|
|
47
|
+
const back = () => {
|
|
48
|
+
setupStore.setSetupState(undefined);
|
|
49
|
+
querySetupState.setCurrentDataSpace(undefined);
|
|
50
|
+
queryStore.graphManagerState.resetGraph();
|
|
51
|
+
};
|
|
52
|
+
// query
|
|
53
|
+
const dataSpaceOptions = querySetupState.dataSpaces.map(buildDataSpaceOption);
|
|
54
|
+
const selectedDataSpaceOption = querySetupState.currentDataSpace
|
|
55
|
+
? buildDataSpaceOption(querySetupState.currentDataSpace)
|
|
56
|
+
: null;
|
|
57
|
+
const onDataSpaceOptionChange = (option) => {
|
|
58
|
+
if (option?.value !== querySetupState.currentDataSpace) {
|
|
59
|
+
queryStore.graphManagerState.resetGraph();
|
|
60
|
+
querySetupState.setCurrentDataSpace(option?.value);
|
|
61
|
+
querySetupState.setDataSpaceViewerState(undefined);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const formatQueryOptionLabel = (option) => (_jsxs("div", { className: "query-setup__data-space__option", children: [_jsx("div", { className: "query-setup__data-space__option__label", children: option.label }, void 0), _jsx("div", { className: "query-setup__data-space__option__gav", children: generateGAVCoordinates(option.value.groupId, option.value.artifactId, option.value.versionId) }, void 0)] }, void 0));
|
|
65
|
+
// search text
|
|
66
|
+
const debouncedLoadDataSpaces = useMemo(() => debounce((input) => {
|
|
67
|
+
flowResult(querySetupState.loadDataSpaces(input)).catch(applicationStore.alertIllegalUnhandledError);
|
|
68
|
+
}, 500), [applicationStore, querySetupState]);
|
|
69
|
+
const onSearchTextChange = (value) => {
|
|
70
|
+
if (value !== searchText) {
|
|
71
|
+
setSearchText(value);
|
|
72
|
+
debouncedLoadDataSpaces.cancel();
|
|
73
|
+
debouncedLoadDataSpaces(value);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
flowResult(querySetupState.loadDataSpaces('')).catch(applicationStore.alertIllegalUnhandledError);
|
|
78
|
+
}, [querySetupState, applicationStore]);
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
if (querySetupState.currentDataSpace) {
|
|
81
|
+
flowResult(querySetupState.setUpDataSpace(querySetupState.currentDataSpace)).catch(applicationStore.alertIllegalUnhandledError);
|
|
82
|
+
}
|
|
83
|
+
}, [querySetupState, applicationStore, querySetupState.currentDataSpace]);
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
dataSpaceSearchRef.current?.focus();
|
|
86
|
+
}, []);
|
|
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, {}, void 0) }, void 0), _jsx("div", { className: "query-setup__wizard__header__title", children: "Creating query from data space..." }, void 0), _jsx("button", { className: clsx('query-setup__wizard__header__btn', {
|
|
88
|
+
'query-setup__wizard__header__btn--ready': canProceed,
|
|
89
|
+
}), onClick: next, disabled: !canProceed, title: "Proceed", children: _jsx(ArrowRightIcon, {}, void 0) }, void 0)] }, void 0), _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, {}, void 0) }, void 0), _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, formatOptionLabel: formatQueryOptionLabel }, void 0), _jsx("button", { className: clsx('query-setup__data-space__use-snapshot-btn', {
|
|
90
|
+
'query-setup__data-space__use-snapshot-btn--active': querySetupState.toGetSnapShot,
|
|
91
|
+
}), tabIndex: -1, title: `[${querySetupState.toGetSnapShot ? 'on' : 'off'}] Toggle show data spaces from snapshot releases instead of latest releases`, onClick: toggleGetSnapshot, children: _jsx(BoltIcon, {}, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "query-setup__data-space__view", children: [_jsx(PanelLoadingIndicator, { isLoading: querySetupState.setUpDataSpaceState.isInProgress }, void 0), querySetupState.dataSpaceViewerState && (_jsx(DataSpaceViewer, { dataSpaceViewerState: querySetupState.dataSpaceViewerState }, void 0)), !querySetupState.dataSpaceViewerState &&
|
|
92
|
+
querySetupState.setUpDataSpaceState.isInProgress && (_jsx(BlankPanelContent, { children: "Setting up data space..." }, void 0)), !querySetupState.dataSpaceViewerState &&
|
|
93
|
+
querySetupState.setUpDataSpaceState.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, {}, void 0) }, void 0), _jsx("div", { className: "query-setup__data-space__view--failed__text", children: "Can't load data space" }, void 0)] }, void 0) }, void 0))] }, void 0)] }, void 0)] }, void 0));
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=DataSpaceQuerySetup.js.map
|
|
@@ -0,0 +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;AAEhE,OAAO,EACL,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,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;AAC3C,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAK7D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,MAAM,oBAAoB,GAAG,CAAC,SAAyB,EAAmB,EAAE,CAAC,CAAC;IAC5E,KAAK,EAAE,SAAS,CAAC,IAAI;IACrB,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CACzC,CAAC,KAAoD,EAAE,E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
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
17
|
-
import {
|
|
18
|
-
export declare class
|
|
16
|
+
import type { LegendStudioPluginManager, NewElementFromStateCreator, ElementTypeGetter, ElementProjectExplorerDnDTypeGetter, ElementIconGetter, DSL_LegendStudioPlugin_Extension, ElementEditorStateCreator } from '@finos/legend-studio';
|
|
17
|
+
import { LegendStudioPlugin } from '@finos/legend-studio';
|
|
18
|
+
export declare class DSLDataSpace_LegendStudioPlugin extends LegendStudioPlugin implements DSL_LegendStudioPlugin_Extension {
|
|
19
19
|
constructor();
|
|
20
|
-
install(pluginManager:
|
|
20
|
+
install(pluginManager: LegendStudioPluginManager): void;
|
|
21
21
|
getExtraSupportedElementTypes(): string[];
|
|
22
22
|
getExtraElementTypeGetters(): ElementTypeGetter[];
|
|
23
23
|
getExtraElementIconGetters(): ElementIconGetter[];
|
|
24
|
-
getExtraElementEditorRenderers(): ElementEditorRenderer[];
|
|
25
24
|
getExtraNewElementFromStateCreators(): NewElementFromStateCreator[];
|
|
26
25
|
getExtraElementEditorStateCreators(): ElementEditorStateCreator[];
|
|
27
26
|
getExtraElementProjectExplorerDnDTypeGetters(): ElementProjectExplorerDnDTypeGetter[];
|
|
28
27
|
getExtraGrammarTextEditorDnDTypes(): string[];
|
|
29
28
|
}
|
|
30
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=DSLDataSpace_LegendStudioPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_LegendStudioPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,mCAAmC,EACnC,iBAAiB,EACjB,gCAAgC,EAEhC,yBAAyB,EAG1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAa9B,qBAAa,+BACX,SAAQ,kBACR,YAAW,gCAAgC;;IAM3C,OAAO,CAAC,aAAa,EAAE,yBAAyB,GAAG,IAAI;IAIvD,6BAA6B,IAAI,MAAM,EAAE;IAIzC,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAejD,mCAAmC,IAAI,0BAA0B,EAAE;IA2BnE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,4CAA4C,IAAI,mCAAmC,EAAE;IAWrF,iCAAiC,IAAI,MAAM,EAAE;CAG9C"}
|