@finos/legend-extension-dsl-data-space 0.1.0 → 1.0.2

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/DSLDataSpace_Extension.d.ts +0 -10
  3. package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
  4. package/lib/DSLDataSpace_Extension.js +0 -24
  5. package/lib/DSLDataSpace_Extension.js.map +1 -1
  6. package/lib/components/{query/DataSpaceViewer.d.ts → DataSpaceViewer.d.ts} +1 -1
  7. package/lib/components/DataSpaceViewer.d.ts.map +1 -0
  8. package/lib/components/DataSpaceViewer.js +186 -0
  9. package/lib/components/DataSpaceViewer.js.map +1 -0
  10. package/lib/components/query/{DSLDataSpace_QueryPlugin.d.ts → DSLDataSpace_LegendQueryPlugin.d.ts} +5 -5
  11. package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -0
  12. package/lib/components/query/{DSLDataSpace_QueryPlugin.js → DSLDataSpace_LegendQueryPlugin.js} +4 -4
  13. package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -0
  14. package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
  15. package/lib/components/query/DataSpaceQuerySetup.js +15 -8
  16. package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
  17. package/lib/components/studio/{DSLDataSpace_StudioPlugin.d.ts → DSLDataSpace_LegendStudioPlugin.d.ts} +5 -5
  18. package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -0
  19. package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js} +6 -5
  20. package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -0
  21. package/lib/index.css +2 -2
  22. package/lib/index.css.map +1 -1
  23. package/lib/index.d.ts +5 -0
  24. package/lib/index.d.ts.map +1 -1
  25. package/lib/index.js +5 -0
  26. package/lib/index.js.map +1 -1
  27. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +12 -0
  28. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
  29. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +45 -2
  30. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
  31. package/lib/stores/DataSpaceViewerState.d.ts +59 -0
  32. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -0
  33. package/lib/stores/DataSpaceViewerState.js +137 -0
  34. package/lib/stores/DataSpaceViewerState.js.map +1 -0
  35. package/lib/stores/query/DataSpaceQuerySetupState.d.ts +7 -34
  36. package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
  37. package/lib/stores/query/DataSpaceQuerySetupState.js +30 -136
  38. package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
  39. package/package.json +22 -20
  40. package/src/DSLDataSpace_Extension.ts +0 -30
  41. package/src/components/{query/DataSpaceViewer.tsx → DataSpaceViewer.tsx} +216 -121
  42. package/src/components/query/{DSLDataSpace_QueryPlugin.tsx → DSLDataSpace_LegendQueryPlugin.tsx} +4 -4
  43. package/src/components/query/DataSpaceQuerySetup.tsx +30 -5
  44. package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx} +10 -9
  45. package/src/index.ts +12 -0
  46. package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +71 -0
  47. package/src/stores/DataSpaceViewerState.ts +202 -0
  48. package/src/stores/query/DataSpaceQuerySetupState.ts +70 -202
  49. package/tsconfig.json +5 -3
  50. package/tsconfig.package.json +1 -0
  51. package/lib/components/query/DSLDataSpace_QueryPlugin.d.ts.map +0 -1
  52. package/lib/components/query/DSLDataSpace_QueryPlugin.js.map +0 -1
  53. package/lib/components/query/DataSpaceViewer.d.ts.map +0 -1
  54. package/lib/components/query/DataSpaceViewer.js +0 -163
  55. package/lib/components/query/DataSpaceViewer.js.map +0 -1
  56. package/lib/components/studio/DSLDataSpace_StudioPlugin.d.ts.map +0 -1
  57. package/lib/components/studio/DSLDataSpace_StudioPlugin.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @finos/legend-extension-dsl-data-space
2
2
 
3
+ ## 1.0.2
4
+
5
+ ## 1.0.1
6
+
7
+ ## 1.0.0
8
+
9
+ ### Major Changes
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:** Move enterprise model explorer out to `@finos/legend-taxonomy` and create a new application `Legend Taxonomy`.
12
+
13
+ * [#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.
14
+
15
+ ## 0.2.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#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).
20
+
21
+ * [#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.
22
+
23
+ ### Patch Changes
24
+
25
+ - [#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.
26
+
27
+ * [#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.
28
+
29
+ ## 0.1.1
30
+
3
31
  ## 0.1.0
4
32
 
5
33
  ### Minor Changes
@@ -15,18 +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
- import type { QueryPluginManager } from '@finos/legend-query';
20
18
  export declare class DSLDataSpace_GraphPreset extends AbstractPreset {
21
19
  constructor();
22
20
  install(pluginManager: GraphPluginManager): void;
23
21
  }
24
- export declare class DSLDataSpace_StudioPreset extends AbstractPreset {
25
- constructor();
26
- install(pluginManager: StudioPluginManager): void;
27
- }
28
- export declare class DSLDataSpace_QueryPreset extends AbstractPreset {
29
- constructor();
30
- install(pluginManager: QueryPluginManager): void;
31
- }
32
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;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,qBAAa,wBAAyB,SAAQ,cAAc;;IAK1D,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;CAKjD;AAED,qBAAa,yBAA0B,SAAQ,cAAc;;IAK3D,OAAO,CAAC,aAAa,EAAE,mBAAmB,GAAG,IAAI;CAMlD;AAED,qBAAa,wBAAyB,SAAQ,cAAc;;IAK1D,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;CAMjD"}
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,9 +17,7 @@ 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
- import { DSLDataSpace_QueryPlugin } from './components/query/DSLDataSpace_QueryPlugin';
23
21
  export class DSLDataSpace_GraphPreset extends AbstractPreset {
24
22
  constructor() {
25
23
  super(packageJson.extensions.graphPreset, packageJson.version);
@@ -30,26 +28,4 @@ export class DSLDataSpace_GraphPreset extends AbstractPreset {
30
28
  new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
31
29
  }
32
30
  }
33
- export class DSLDataSpace_StudioPreset extends AbstractPreset {
34
- constructor() {
35
- super(packageJson.extensions.studioPreset, packageJson.version);
36
- }
37
- install(pluginManager) {
38
- new DSLDataSpace_StudioPlugin().install(pluginManager);
39
- new DSLDataSpace_PureGraphPlugin().install(pluginManager);
40
- new DSLDataSpace_PureGraphManagerPlugin().install(pluginManager);
41
- new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
42
- }
43
- }
44
- export class DSLDataSpace_QueryPreset extends AbstractPreset {
45
- constructor() {
46
- super(packageJson.extensions.studioPreset, packageJson.version);
47
- }
48
- install(pluginManager) {
49
- new DSLDataSpace_QueryPlugin().install(pluginManager);
50
- new DSLDataSpace_PureGraphPlugin().install(pluginManager);
51
- new DSLDataSpace_PureGraphManagerPlugin().install(pluginManager);
52
- new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
53
- }
54
- }
55
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;AAG5H,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,MAAM,OAAO,wBAAyB,SAAQ,cAAc;IAC1D;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IA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AM,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,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { DataSpaceViewerState } from '../../stores/query/DataSpaceQuerySetupState';
16
+ import type { DataSpaceViewerState } from '../stores/DataSpaceViewerState';
17
17
  export declare const DataSpaceViewer: ((props: {
18
18
  dataSpaceViewerState: DataSpaceViewerState;
19
19
  }) => JSX.Element) & {
@@ -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,EAAE,GAAG,KAAK,CAAC;IAChD,MAAM,gBAAgB,GACpB,GAAoD,CAAC;IAEvD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,iBAAiB,CAAiB;QAC1D,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,gBAAgB;KAC5B,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,gBAAgB,CAAC,OAAO,EAAE;YAC5B,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC,gBAAgB,CAAC,OAAO,EA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AC,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"}
@@ -13,12 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { QueryPluginManager, QuerySetupOptionRendererConfiguration, QuerySetupRenderer } from '@finos/legend-query';
17
- import { QueryPlugin } from '@finos/legend-query';
18
- export declare class DSLDataSpace_QueryPlugin extends QueryPlugin {
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
19
  constructor();
20
- install(pluginManager: QueryPluginManager): void;
20
+ install(pluginManager: LegendQueryPluginManager): void;
21
21
  getExtraQuerySetupOptionRendererConfigurations(): QuerySetupOptionRendererConfiguration[];
22
22
  getExtraQuerySetupRenderers(): QuerySetupRenderer[];
23
23
  }
24
- //# sourceMappingURL=DSLDataSpace_QueryPlugin.d.ts.map
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"}
@@ -15,11 +15,11 @@ 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 { QueryPlugin } from '@finos/legend-query';
18
+ import { LegendQueryPlugin } from '@finos/legend-query';
19
19
  import { SquareIcon } from '@finos/legend-art';
20
20
  import { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState';
21
21
  import { DataspaceQuerySetup } from './DataSpaceQuerySetup';
22
- export class DSLDataSpace_QueryPlugin extends QueryPlugin {
22
+ export class DSLDataSpace_LegendQueryPlugin extends LegendQueryPlugin {
23
23
  constructor() {
24
24
  super(packageJson.extensions.queryPlugin, packageJson.version);
25
25
  }
@@ -32,7 +32,7 @@ export class DSLDataSpace_QueryPlugin extends QueryPlugin {
32
32
  key: 'data-space-query-option',
33
33
  renderer: (setupStore) => {
34
34
  const createQuery = () => setupStore.setSetupState(new DataSpaceQuerySetupState(setupStore));
35
- return (_jsxs("button", Object.assign({ className: "query-setup__landing-page__option query-setup__landing-page__option--data-space", onClick: createQuery }, { children: [_jsx("div", Object.assign({ className: "query-setup__landing-page__option__icon" }, { children: _jsx(SquareIcon, { className: "query-setup__landing-page__icon--data-space" }, void 0) }), void 0), _jsx("div", Object.assign({ className: "query-setup__landing-page__option__label" }, { children: "Create query from data space" }), void 0)] }), void 0));
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
36
  },
37
37
  },
38
38
  ];
@@ -48,4 +48,4 @@ export class DSLDataSpace_QueryPlugin extends QueryPlugin {
48
48
  ];
49
49
  }
50
50
  }
51
- //# sourceMappingURL=DSLDataSpace_QueryPlugin.js.map
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,6CAA6C,CAAC;AASrD,eAAO,MAAM,mBAAmB,WACtB;IAAE,eAAe,EAAE,wBAAwB,CAAA;CAAE;;CAkKtD,CAAC"}
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"}
@@ -15,13 +15,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import { useApplicationStore } from '@finos/legend-application';
18
- import { ArrowRightIcon, clsx, BlankPanelContent, TimesCircleIcon, PanelLoadingIndicator, ArrowLeftIcon, CustomSelectorInput, SearchIcon, } from '@finos/legend-art';
19
- import { useQuerySetupStore, useQueryStore } from '@finos/legend-query';
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';
20
21
  import { debounce } from '@finos/legend-shared';
21
22
  import { flowResult } from 'mobx';
22
23
  import { observer } from 'mobx-react-lite';
23
24
  import { useEffect, useMemo, useRef, useState } from 'react';
24
- import { DataSpaceViewer } from './DataSpaceViewer';
25
+ import { DataSpaceViewer } from '../DataSpaceViewer';
25
26
  const buildDataSpaceOption = (dataSpace) => ({
26
27
  label: dataSpace.path,
27
28
  value: dataSpace,
@@ -30,9 +31,13 @@ export const DataspaceQuerySetup = observer((props) => {
30
31
  const { querySetupState } = props;
31
32
  const applicationStore = useApplicationStore();
32
33
  const setupStore = useQuerySetupStore();
33
- const queryStore = useQueryStore();
34
+ const queryStore = useLegendQueryStore();
34
35
  const dataSpaceSearchRef = useRef(null);
35
36
  const [searchText, setSearchText] = useState('');
37
+ const toggleGetSnapshot = () => {
38
+ querySetupState.setToGetSnapShot(!querySetupState.toGetSnapShot);
39
+ flowResult(querySetupState.loadDataSpaces(searchText)).catch(applicationStore.alertIllegalUnhandledError);
40
+ };
36
41
  const next = () => {
37
42
  if (querySetupState.dataSpaceViewerState) {
38
43
  flowResult(querySetupState.proceedToCreateQuery()).catch(applicationStore.alertIllegalUnhandledError);
@@ -56,7 +61,7 @@ export const DataspaceQuerySetup = observer((props) => {
56
61
  querySetupState.setDataSpaceViewerState(undefined);
57
62
  }
58
63
  };
59
- const formatQueryOptionLabel = (option) => (_jsxs("div", Object.assign({ className: "query-setup__data-space__option" }, { children: [_jsx("div", Object.assign({ className: "query-setup__data-space__option__label" }, { children: option.label }), void 0), _jsxs("div", Object.assign({ className: "query-setup__data-space__option__gav" }, { children: [option.value.content.groupId, ":", option.value.content.artifactId, ":", option.value.content.versionId] }), void 0)] }), void 0));
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));
60
65
  // search text
61
66
  const debouncedLoadDataSpaces = useMemo(() => debounce((input) => {
62
67
  flowResult(querySetupState.loadDataSpaces(input)).catch(applicationStore.alertIllegalUnhandledError);
@@ -79,10 +84,12 @@ export const DataspaceQuerySetup = observer((props) => {
79
84
  useEffect(() => {
80
85
  dataSpaceSearchRef.current?.focus();
81
86
  }, []);
82
- return (_jsxs("div", Object.assign({ className: "query-setup__wizard query-setup__data-space" }, { children: [_jsxs("div", Object.assign({ className: "query-setup__wizard__header query-setup__data-space__header" }, { children: [_jsx("button", Object.assign({ className: "query-setup__wizard__header__btn", onClick: back, title: "Back to Main Menu" }, { children: _jsx(ArrowLeftIcon, {}, void 0) }), void 0), _jsx("div", Object.assign({ className: "query-setup__wizard__header__title" }, { children: "Creating query from data space..." }), void 0), _jsx("button", Object.assign({ className: clsx('query-setup__wizard__header__btn', {
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', {
83
88
  'query-setup__wizard__header__btn--ready': canProceed,
84
- }), onClick: next, disabled: !canProceed, title: "Proceed" }, { children: _jsx(ArrowRightIcon, {}, void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "query-setup__wizard__content" }, { children: [_jsxs("div", Object.assign({ className: "query-setup__wizard__group query-setup__wizard__group--inline query-setup__data-space__input-group" }, { children: [_jsx("div", Object.assign({ 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)] }), void 0), _jsxs("div", Object.assign({ 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 &&
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 &&
85
92
  querySetupState.setUpDataSpaceState.isInProgress && (_jsx(BlankPanelContent, { children: "Setting up data space..." }, void 0)), !querySetupState.dataSpaceViewerState &&
86
- querySetupState.setUpDataSpaceState.hasFailed && (_jsx(BlankPanelContent, { children: _jsxs("div", Object.assign({ className: "query-setup__data-space__view--failed" }, { children: [_jsx("div", Object.assign({ className: "query-setup__data-space__view--failed__icon" }, { children: _jsx(TimesCircleIcon, {}, void 0) }), void 0), _jsx("div", Object.assign({ 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));
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));
87
94
  });
88
95
  //# sourceMappingURL=DataSpaceQuerySetup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQuerySetup.js","sourceRoot":"","sources":["../../../src/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"}
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { StudioPluginManager, NewElementFromStateCreator, ElementTypeGetter, ElementProjectExplorerDnDTypeGetter, ElementIconGetter, DSL_StudioPlugin_Extension, ElementEditorStateCreator } from '@finos/legend-studio';
17
- import { StudioPlugin } from '@finos/legend-studio';
18
- export declare class DSLDataSpace_StudioPlugin extends StudioPlugin implements DSL_StudioPlugin_Extension {
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: StudioPluginManager): void;
20
+ install(pluginManager: LegendStudioPluginManager): void;
21
21
  getExtraSupportedElementTypes(): string[];
22
22
  getExtraElementTypeGetters(): ElementTypeGetter[];
23
23
  getExtraElementIconGetters(): ElementIconGetter[];
@@ -26,4 +26,4 @@ export declare class DSLDataSpace_StudioPlugin extends StudioPlugin implements D
26
26
  getExtraElementProjectExplorerDnDTypeGetters(): ElementProjectExplorerDnDTypeGetter[];
27
27
  getExtraGrammarTextEditorDnDTypes(): string[];
28
28
  }
29
- //# sourceMappingURL=DSLDataSpace_StudioPlugin.d.ts.map
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"}
@@ -15,12 +15,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import packageJson from '../../../package.json';
18
- import { UnsupportedElementEditorState, StudioPlugin, } from '@finos/legend-studio';
18
+ import { UnsupportedElementEditorState, LegendStudioPlugin, } from '@finos/legend-studio';
19
19
  import { SquareIcon } from '@finos/legend-art';
20
20
  import { DataSpace, DataSpaceExecutionContext, } from '../../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
21
+ import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot';
21
22
  const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
22
23
  const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DATA_SPACE';
23
- export class DSLDataSpace_StudioPlugin extends StudioPlugin {
24
+ export class DSLDataSpace_LegendStudioPlugin extends LegendStudioPlugin {
24
25
  constructor() {
25
26
  super(packageJson.extensions.studioPlugin, packageJson.version);
26
27
  }
@@ -44,7 +45,7 @@ export class DSLDataSpace_StudioPlugin extends StudioPlugin {
44
45
  return [
45
46
  (type) => {
46
47
  if (type === DATA_SPACE_ELEMENT_TYPE) {
47
- return (_jsx("div", Object.assign({ className: "icon icon--text-element" }, { children: _jsx(SquareIcon, {}, void 0) }), void 0));
48
+ return (_jsx("div", { className: "icon icon--data-space", children: _jsx(SquareIcon, {}, void 0) }, void 0));
48
49
  }
49
50
  return undefined;
50
51
  },
@@ -59,7 +60,7 @@ export class DSLDataSpace_StudioPlugin extends StudioPlugin {
59
60
  state.editorStore.projectConfigurationEditorState.currentProjectConfiguration.groupId;
60
61
  dataSpace.artifactId =
61
62
  state.editorStore.projectConfigurationEditorState.currentProjectConfiguration.artifactId;
62
- dataSpace.versionId = 'latest';
63
+ dataSpace.versionId = LATEST_VERSION_ALIAS;
63
64
  const dataSpaceExecutionContext = new DataSpaceExecutionContext();
64
65
  dataSpaceExecutionContext.name = 'dummyContext';
65
66
  dataSpaceExecutionContext.mapping = 'dummyMapping';
@@ -96,4 +97,4 @@ export class DSLDataSpace_StudioPlugin extends StudioPlugin {
96
97
  return [DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE];
97
98
  }
98
99
  }
99
- //# sourceMappingURL=DSLDataSpace_StudioPlugin.js.map
100
+ //# sourceMappingURL=DSLDataSpace_LegendStudioPlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSLDataSpace_LegendStudioPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAahD,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACL,SAAS,EACT,yBAAyB,GAC1B,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,uBAAuB,GAAG,YAAY,CAAC;AAC7C,MAAM,4CAA4C,GAChD,6BAA6B,CAAC;AAEhC,MAAM,OA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