@finos/legend-extension-dsl-data-space 0.2.0 → 1.0.4

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 (79) hide show
  1. package/CHANGELOG.md +20 -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/DataSpaceViewer.js +17 -17
  7. package/lib/components/DataSpaceViewer.js.map +1 -1
  8. package/lib/components/query/{DSLDataSpace_QueryPlugin.d.ts → DSLDataSpace_LegendQueryPlugin.d.ts} +4 -5
  9. package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -0
  10. package/lib/components/query/{DSLDataSpace_QueryPlugin.js → DSLDataSpace_LegendQueryPlugin.js} +4 -7
  11. package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -0
  12. package/lib/components/query/DataSpaceQuerySetup.js +7 -7
  13. package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
  14. package/lib/components/studio/{DSLDataSpace_StudioPlugin.d.ts → DSLDataSpace_LegendStudioPlugin.d.ts} +4 -6
  15. package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -0
  16. package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js} +4 -22
  17. package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -0
  18. package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts +1 -2
  19. package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts.map +1 -1
  20. package/lib/graph/DSLDataSpace_PureGraphPlugin.js +0 -3
  21. package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
  22. package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +1 -2
  23. package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
  24. package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +0 -3
  25. package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
  26. package/lib/index.css +2 -2
  27. package/lib/index.css.map +1 -1
  28. package/lib/index.d.ts +5 -0
  29. package/lib/index.d.ts.map +1 -1
  30. package/lib/index.js +5 -0
  31. package/lib/index.js.map +1 -1
  32. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +2 -3
  33. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
  34. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +5 -8
  35. package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
  36. package/lib/stores/query/DataSpaceQuerySetupState.d.ts +2 -0
  37. package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
  38. package/lib/stores/query/DataSpaceQuerySetupState.js +15 -1
  39. package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
  40. package/package.json +19 -20
  41. package/src/DSLDataSpace_Extension.ts +0 -30
  42. package/src/components/query/{DSLDataSpace_QueryPlugin.tsx → DSLDataSpace_LegendQueryPlugin.tsx} +2 -7
  43. package/src/components/query/DataSpaceQuerySetup.tsx +2 -2
  44. package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx} +5 -27
  45. package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -8
  46. package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +0 -5
  47. package/src/index.ts +12 -0
  48. package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +5 -10
  49. package/src/stores/query/DataSpaceQuerySetupState.ts +31 -0
  50. package/tsconfig.json +2 -7
  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/studio/DSLDataSpace_StudioPlugin.d.ts.map +0 -1
  54. package/lib/components/studio/DSLDataSpace_StudioPlugin.js.map +0 -1
  55. package/lib/components/studio/EnterpriseModelExplorer.d.ts +0 -21
  56. package/lib/components/studio/EnterpriseModelExplorer.d.ts.map +0 -1
  57. package/lib/components/studio/EnterpriseModelExplorer.js +0 -70
  58. package/lib/components/studio/EnterpriseModelExplorer.js.map +0 -1
  59. package/lib/components/studio/EnterpriseModelExplorerStoreProvider.d.ts +0 -21
  60. package/lib/components/studio/EnterpriseModelExplorerStoreProvider.d.ts.map +0 -1
  61. package/lib/components/studio/EnterpriseModelExplorerStoreProvider.js +0 -35
  62. package/lib/components/studio/EnterpriseModelExplorerStoreProvider.js.map +0 -1
  63. package/lib/components/studio/TaxonomyTree.d.ts +0 -23
  64. package/lib/components/studio/TaxonomyTree.d.ts.map +0 -1
  65. package/lib/components/studio/TaxonomyTree.js +0 -78
  66. package/lib/components/studio/TaxonomyTree.js.map +0 -1
  67. package/lib/components/studio/TaxonomyViewer.d.ts +0 -22
  68. package/lib/components/studio/TaxonomyViewer.d.ts.map +0 -1
  69. package/lib/components/studio/TaxonomyViewer.js +0 -59
  70. package/lib/components/studio/TaxonomyViewer.js.map +0 -1
  71. package/lib/stores/studio/EnterpriseModelExplorerStore.d.ts +0 -93
  72. package/lib/stores/studio/EnterpriseModelExplorerStore.d.ts.map +0 -1
  73. package/lib/stores/studio/EnterpriseModelExplorerStore.js +0 -300
  74. package/lib/stores/studio/EnterpriseModelExplorerStore.js.map +0 -1
  75. package/src/components/studio/EnterpriseModelExplorer.tsx +0 -229
  76. package/src/components/studio/EnterpriseModelExplorerStoreProvider.tsx +0 -61
  77. package/src/components/studio/TaxonomyTree.tsx +0 -179
  78. package/src/components/studio/TaxonomyViewer.tsx +0 -187
  79. package/src/stores/studio/EnterpriseModelExplorerStore.tsx +0 -514
package/src/index.ts CHANGED
@@ -15,3 +15,15 @@
15
15
  */
16
16
 
17
17
  export * from './DSLDataSpace_Extension';
18
+ export { DSLDataSpace_LegendStudioPlugin } from './components/studio/DSLDataSpace_LegendStudioPlugin';
19
+ export { DSLDataSpace_LegendQueryPlugin } from './components/query/DSLDataSpace_LegendQueryPlugin';
20
+
21
+ export { DataSpaceViewer } from './components/DataSpaceViewer';
22
+
23
+ export {
24
+ DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
25
+ extractDataSpaceTaxonomyNodes,
26
+ getResolvedDataSpace,
27
+ } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
28
+
29
+ export { DataSpaceViewerState } from './stores/DataSpaceViewerState';
@@ -43,7 +43,6 @@ import {
43
43
  DataSpaceSupportEmail,
44
44
  } from '../../metamodels/pure/model/packageableElements/dataSpace/DataSpace';
45
45
  import type {
46
- GraphPluginManager,
47
46
  Mapping,
48
47
  PackageableElement,
49
48
  PackageableElementReference,
@@ -88,10 +87,6 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
88
87
  );
89
88
  }
90
89
 
91
- install(pluginManager: GraphPluginManager): void {
92
- pluginManager.registerPureProtocolProcessorPlugin(this);
93
- }
94
-
95
90
  override V1_getExtraElementBuilders(): V1_ElementBuilder<V1_PackageableElement>[] {
96
91
  return [
97
92
  new V1_ElementBuilder<V1_DataSpace>({
@@ -442,12 +437,12 @@ export const getResolvedDataSpace = (
442
437
  throw new UnsupportedOperationError(`Can't resolve data space`, json);
443
438
  };
444
439
 
445
- export const extractDataSpaceTaxonomyNodePaths = (
440
+ export const extractDataSpaceTaxonomyNodes = (
446
441
  json: PlainObject<V1_DataSpace>,
447
442
  ): string[] => {
448
443
  const ENTERPRISE_PROFILE_PATH = `meta::pure::profiles::enterprise`;
449
- const ENTERPRISE_TAXONOMY_NODES_TAG = `taxonomyNodes`;
450
- const ENTERPRISE_TAXONOMY_NODES_TAG_VALUE_DELIMITER = `,`;
444
+ const TAXONOMY_NODES_TAG = `taxonomyNodes`;
445
+ const TAXONOMY_NODES_TAG_VALUE_DELIMITER = `,`;
451
446
 
452
447
  const taxonomyNodes = new Set<string>();
453
448
  if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
@@ -461,11 +456,11 @@ export const extractDataSpaceTaxonomyNodePaths = (
461
456
  .filter(
462
457
  (taggedValue) =>
463
458
  taggedValue.tag.profile === ENTERPRISE_PROFILE_PATH &&
464
- taggedValue.tag.value === ENTERPRISE_TAXONOMY_NODES_TAG,
459
+ taggedValue.tag.value === TAXONOMY_NODES_TAG,
465
460
  )
466
461
  .forEach((taggedValue) => {
467
462
  taggedValue.value
468
- .split(ENTERPRISE_TAXONOMY_NODES_TAG_VALUE_DELIMITER)
463
+ .split(TAXONOMY_NODES_TAG_VALUE_DELIMITER)
469
464
  .map((value) => value.trim())
470
465
  .filter((value) => Boolean(value))
471
466
  .forEach((value) => taxonomyNodes.add(value));
@@ -16,6 +16,7 @@
16
16
 
17
17
  import type { ClassView } from '@finos/legend-extension-dsl-diagram';
18
18
  import type { Class } from '@finos/legend-graph';
19
+ import { QueryTaggedValue } from '@finos/legend-graph';
19
20
  import type { Entity } from '@finos/legend-model-storage';
20
21
  import type { QuerySetupStore } from '@finos/legend-query';
21
22
  import {
@@ -25,6 +26,7 @@ import {
25
26
  } from '@finos/legend-query';
26
27
  import type { StoredEntity } from '@finos/legend-server-depot';
27
28
  import {
29
+ generateGAVCoordinates,
28
30
  DepotScope,
29
31
  ProjectData,
30
32
  SNAPSHOT_VERSION_ALIAS,
@@ -54,6 +56,27 @@ export type LightDataSpace = Entity & {
54
56
  };
55
57
  };
56
58
 
59
+ const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
60
+ const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
61
+ const DATA_SPACE_ID_DELIMITER = '@';
62
+
63
+ export const createQueryDataSpaceTaggedValue = (
64
+ dataSpacePath: string,
65
+ groupId: string,
66
+ artifactId: string,
67
+ versionId: string,
68
+ ): QueryTaggedValue => {
69
+ const taggedValue = new QueryTaggedValue();
70
+ taggedValue.profile = QUERY_PROFILE_PATH;
71
+ taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
72
+ taggedValue.value = `${generateGAVCoordinates(
73
+ groupId,
74
+ artifactId,
75
+ versionId,
76
+ )}${DATA_SPACE_ID_DELIMITER}${dataSpacePath}`;
77
+ return taggedValue;
78
+ };
79
+
57
80
  export class DataSpaceQuerySetupState extends QuerySetupState {
58
81
  dataSpaces: LightDataSpace[] = [];
59
82
  loadDataSpacesState = ActionState.create();
@@ -218,6 +241,14 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
218
241
  this.dataSpaceViewerState.currentExecutionContext.mapping.value,
219
242
  this.dataSpaceViewerState.currentRuntime,
220
243
  );
244
+ queryInfoState.taggedValues = [
245
+ createQueryDataSpaceTaggedValue(
246
+ this.dataSpaceViewerState.dataSpace.path,
247
+ this.dataSpaceViewerState.dataSpaceGroupId,
248
+ this.dataSpaceViewerState.dataSpaceArtifactId,
249
+ this.dataSpaceViewerState.dataSpaceVersionId,
250
+ ),
251
+ ];
221
252
  queryInfoState.class = _class;
222
253
  this.queryStore.setQueryInfoState(queryInfoState);
223
254
  this.queryStore.applicationStore.navigator.goTo(
package/tsconfig.json CHANGED
@@ -50,14 +50,9 @@
50
50
  "./src/stores/DataSpaceViewerState.ts",
51
51
  "./src/stores/query/DataSpaceQuerySetupState.ts",
52
52
  "./src/components/DataSpaceViewer.tsx",
53
- "./src/components/query/DSLDataSpace_QueryPlugin.tsx",
53
+ "./src/components/query/DSLDataSpace_LegendQueryPlugin.tsx",
54
54
  "./src/components/query/DataSpaceQuerySetup.tsx",
55
- "./src/components/studio/DSLDataSpace_StudioPlugin.tsx",
56
- "./src/components/studio/EnterpriseModelExplorer.tsx",
57
- "./src/components/studio/EnterpriseModelExplorerStoreProvider.tsx",
58
- "./src/components/studio/TaxonomyTree.tsx",
59
- "./src/components/studio/TaxonomyViewer.tsx",
60
- "./src/stores/studio/EnterpriseModelExplorerStore.tsx",
55
+ "./src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx",
61
56
  "./src/models/protocols/pure/v1/V1_DSLDataSpace_SystemModels.json"
62
57
  ],
63
58
  "include": [
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSLDataSpace_QueryPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_QueryPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,kBAAkB,EAClB,qCAAqC,EACrC,kBAAkB,EAGnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD,qBAAa,wBAAyB,SAAQ,WAAW;;IAKvD,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;IAIvC,8CAA8C,IAAI,qCAAqC,EAAE;IA2BzF,2BAA2B,IAAI,kBAAkB,EAAE;CAU7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSLDataSpace_QueryPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSLDataSpace_QueryPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAQhD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,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,wBAAyB,SAAQ,WAAW;IACvD;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,aAAiC;QACvC,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,gCACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,WAAW,iBAEpB,4BAAK,SAAS,EAAC,yCAAyC,gBACtD,KAAC,UAAU,IAAC,SAAS,EAAC,6CAA6C,WAAG,YAClE,EACN,4BAAK,SAAS,EAAC,0CAA0C,0DAEnD,aACC,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 +0,0 @@
1
- {"version":3,"file":"DSLDataSpace_StudioPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_StudioPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC1B,iBAAiB,EACjB,mCAAmC,EACnC,iBAAiB,EACjB,0BAA0B,EAE1B,yBAAyB,EAGzB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,YAAY,EACb,MAAM,sBAAsB,CAAC;AAe9B,qBAAa,yBACX,SAAQ,YACR,YAAW,0BAA0B;;IAMrC,OAAO,CAAC,aAAa,EAAE,mBAAmB,GAAG,IAAI;IAIxC,oCAAoC,IAAI,0BAA0B,EAAE;I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GAAG,CAAC,yBAAyB,CAAC,CAAC;oBAC1D,SAAS,CAAC,uBAAuB,GAAG,yBAAyB,CAAC;oBAC9D,OAAO,SAAS,CAAC;iBAClB;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,kCAAkC;QAChC,OAAO;YACL,CACE,WAAwB,EACxB,OAA2B,EACK,EAAE;gBAClC,IAAI,OAAO,YAAY,SAAS,EAAE;oBAChC,OAAO,IAAI,6BAA6B,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;iBAChE;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,4CAA4C;QAC1C,OAAO;YACL,CAAC,OAA2B,EAAsB,EAAE;gBAClD,IAAI,OAAO,YAAY,SAAS,EAAE;oBAChC,OAAO,4CAA4C,CAAC;iBACrD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,iCAAiC;QAC/B,OAAO,CAAC,4CAA4C,CAAC,CAAC;IACxD,CAAC;CACF"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- /// <reference types="react" />
17
- export declare const EnterpriseModelExplorerInner: (() => JSX.Element) & {
18
- displayName: string;
19
- };
20
- export declare const EnterpriseModelExplorer: React.FC;
21
- //# sourceMappingURL=EnterpriseModelExplorer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EnterpriseModelExplorer.d.ts","sourceRoot":"","sources":["../../../src/components/studio/EnterpriseModelExplorer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAsIH,eAAO,MAAM,4BAA4B;;CA0EvC,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAI3C,CAAC"}
@@ -1,70 +0,0 @@
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 { useEffect } from 'react';
18
- import { NotificationSnackbar, useApplicationStore, } from '@finos/legend-application';
19
- import { AppHeader, AppHeaderMenu } from '@finos/legend-studio';
20
- import { observer } from 'mobx-react-lite';
21
- import { useParams } from 'react-router-dom';
22
- import { EnterpriseModelExplorerStoreProvider, useEnterpriseModelExplorerStore, } from './EnterpriseModelExplorerStoreProvider';
23
- import { flowResult } from 'mobx';
24
- import { CompressIcon, PanelLoadingIndicator, WindowMaximizeIcon, clsx, getControlledResizablePanelProps, ListIcon, ResizablePanel, ResizablePanelGroup, ResizablePanelSplitter, } from '@finos/legend-art';
25
- import { TaxonomyTree } from './TaxonomyTree';
26
- import { TaxonomyViewer } from './TaxonomyViewer';
27
- const EnterpriseModelExplorerStatusBar = observer(() => {
28
- const enterpriseModelExplorerStore = useEnterpriseModelExplorerStore();
29
- const toggleExpandMode = () => enterpriseModelExplorerStore.setExpandedMode(!enterpriseModelExplorerStore.isInExpandedMode);
30
- return (_jsxs("div", Object.assign({ className: "editor__status-bar " }, { children: [_jsx("div", { className: "editor__status-bar__left" }, void 0), _jsx("div", Object.assign({ className: "editor__status-bar__right" }, { children: _jsx("button", Object.assign({ className: clsx('editor__status-bar__action editor__status-bar__action__toggler', {
31
- 'editor__status-bar__action__toggler--active': enterpriseModelExplorerStore.isInExpandedMode,
32
- }), onClick: toggleExpandMode, tabIndex: -1, title: 'Maximize/Minimize' }, { children: _jsx(WindowMaximizeIcon, {}, void 0) }), void 0) }), void 0)] }), void 0));
33
- });
34
- const EnterpriseModelExplorerActivityBar = observer(() => (_jsx("div", Object.assign({ className: "activity-bar" }, { children: _jsx("div", Object.assign({ className: "activity-bar__items" }, { children: _jsx("button", Object.assign({ className: clsx('activity-bar__item', 'activity-bar__item--active'), tabIndex: -1, title: "Explorer" }, { children: _jsx(ListIcon, {}, void 0) }), void 0) }), void 0) }), void 0)));
35
- const EnterpriseModelExplorerSideBar = observer(() => {
36
- const enterpriseModelExplorerStore = useEnterpriseModelExplorerStore();
37
- const collapseTree = () => {
38
- if (enterpriseModelExplorerStore.treeData) {
39
- enterpriseModelExplorerStore.treeData.nodes.forEach((node) => {
40
- node.isOpen = false;
41
- });
42
- enterpriseModelExplorerStore.setTreeData({
43
- ...enterpriseModelExplorerStore.treeData,
44
- });
45
- }
46
- };
47
- return (_jsx("div", Object.assign({ className: "side-bar" }, { children: _jsx("div", Object.assign({ className: "side-bar__view" }, { children: _jsxs("div", Object.assign({ className: "panel" }, { children: [_jsx("div", Object.assign({ className: "panel__header side-bar__header" }, { children: _jsx("div", Object.assign({ className: "panel__header__title" }, { children: _jsx("div", Object.assign({ className: "panel__header__title__content side-bar__header__title__content" }, { children: "EXPLORER" }), void 0) }), void 0) }), void 0), _jsx("div", Object.assign({ className: "panel__content side-bar__content" }, { children: _jsxs("div", Object.assign({ className: "panel" }, { children: [_jsxs("div", Object.assign({ className: "panel__header enterprise-model-explorer__side-bar__header" }, { children: [_jsx("div", Object.assign({ className: "panel__header__title" }, { children: _jsx("div", Object.assign({ className: "panel__header__title__content" }, { children: "Enterprise Taxonomy" }), void 0) }), void 0), _jsx("div", Object.assign({ className: "panel__header__actions" }, { children: _jsx("button", Object.assign({ className: "panel__header__action enterprise-model-explorer__side-bar__header__action", onClick: collapseTree, tabIndex: -1, title: "Collapse All" }, { children: _jsx(CompressIcon, {}, void 0) }), void 0) }), void 0)] }), void 0), _jsx(PanelLoadingIndicator, { isLoading: enterpriseModelExplorerStore.initState.isInProgress }, void 0), _jsx("div", Object.assign({ className: "panel__content enterprise-model-explorer__taxonomy-tree-container" }, { children: enterpriseModelExplorerStore.treeData && (_jsx(TaxonomyTree, { treeData: enterpriseModelExplorerStore.treeData }, void 0)) }), void 0)] }), void 0) }), void 0)] }), void 0) }), void 0) }), void 0));
48
- });
49
- export const EnterpriseModelExplorerInner = observer(() => {
50
- const params = useParams();
51
- const applicationStore = useApplicationStore();
52
- const enterpriseModelExplorerStore = useEnterpriseModelExplorerStore();
53
- const resizeSideBar = (handleProps) => enterpriseModelExplorerStore.sideBarDisplayState.setSize(handleProps.domElement.getBoundingClientRect().width);
54
- useEffect(() => {
55
- enterpriseModelExplorerStore.internalizeDataSpacePath(params);
56
- }, [enterpriseModelExplorerStore, params]);
57
- // NOTE: since we internalize the data space path in the route, we should not re-initialize the graph
58
- // on the second call when we remove path from the route
59
- useEffect(() => {
60
- flowResult(enterpriseModelExplorerStore.initialize(params)).catch(applicationStore.alertIllegalUnhandledError);
61
- }, [applicationStore, enterpriseModelExplorerStore, params]);
62
- return (_jsxs("div", Object.assign({ className: "app__page" }, { children: [_jsx(AppHeader, { children: _jsx(AppHeaderMenu, {}, void 0) }, void 0), _jsx("div", Object.assign({ className: "app__content" }, { children: _jsxs("div", Object.assign({ className: "editor" }, { children: [_jsxs("div", Object.assign({ className: "editor__body" }, { children: [_jsx(EnterpriseModelExplorerActivityBar, {}, void 0), _jsx(NotificationSnackbar, {}, void 0), _jsx("div", Object.assign({ className: "editor__content-container" }, { children: _jsx("div", Object.assign({ className: clsx('editor__content', {
63
- 'editor__content--expanded': enterpriseModelExplorerStore.isInExpandedMode,
64
- }) }, { children: _jsxs(ResizablePanelGroup, Object.assign({ orientation: "vertical" }, { children: [_jsx(ResizablePanel, Object.assign({}, getControlledResizablePanelProps(enterpriseModelExplorerStore.sideBarDisplayState.size ===
65
- 0, {
66
- onStopResize: resizeSideBar,
67
- }), { direction: 1, size: enterpriseModelExplorerStore.sideBarDisplayState.size }, { children: _jsx(EnterpriseModelExplorerSideBar, {}, void 0) }), void 0), _jsx(ResizablePanelSplitter, {}, void 0), _jsx(ResizablePanel, Object.assign({ minSize: 300 }, { children: enterpriseModelExplorerStore.currentTaxonomyViewerState ? (_jsx(TaxonomyViewer, { taxonomyViewerState: enterpriseModelExplorerStore.currentTaxonomyViewerState }, void 0)) : (_jsx("div", {}, void 0)) }), void 0)] }), void 0) }), void 0) }), void 0)] }), void 0), _jsx(EnterpriseModelExplorerStatusBar, {}, void 0)] }), void 0) }), void 0)] }), void 0));
68
- });
69
- export const EnterpriseModelExplorer = () => (_jsx(EnterpriseModelExplorerStoreProvider, { children: _jsx(EnterpriseModelExplorerInner, {}, void 0) }, void 0));
70
- //# sourceMappingURL=EnterpriseModelExplorer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EnterpriseModelExplorer.js","sourceRoot":"","sources":["../../../src/components/studio/EnterpriseModelExplorer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EACL,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,M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,KAAC,cAAc,oBACT,gCAAgC,CAClC,4BAA4B,CAAC,mBAAmB,CAAC,IAAI;oDACnD,CAAC,EACH;oDACE,YAAY,EAAE,aAAa;iDAC5B,CACF,IACD,SAAS,EAAE,CAAC,EACZ,IAAI,EAAE,4BAA4B,CAAC,mBAAmB,CAAC,IAAI,gBAE3D,KAAC,8BAA8B,aAAG,YACnB,EACjB,KAAC,sBAAsB,aAAG,EAC1B,KAAC,cAAc,kBAAC,OAAO,EAAE,GAAG,gBACzB,4BAA4B,CAAC,0BAA0B,CAAC,CAAC,CAAC,CACzD,KAAC,cAAc,IACb,mBAAmB,EACjB,4BAA4B,CAAC,0BAA0B,WAEzD,CACH,CAAC,CAAC,CAAC,CACF,uBAAO,CACR,YACc,aACG,YAClB,YACF,aACF,EACN,KAAC,gCAAgC,aAAG,aAChC,YACF,aACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAa,GAAG,EAAE,CAAC,CACrD,KAAC,oCAAoC,cACnC,KAAC,4BAA4B,aAAG,WACK,CACxC,CAAC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { EnterpriseModelExplorerStore } from '../../stores/studio/EnterpriseModelExplorerStore';
17
- export declare const EnterpriseModelExplorerStoreProvider: ({ children, }: {
18
- children: React.ReactNode;
19
- }) => React.ReactElement;
20
- export declare const useEnterpriseModelExplorerStore: () => EnterpriseModelExplorerStore;
21
- //# sourceMappingURL=EnterpriseModelExplorerStoreProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EnterpriseModelExplorerStoreProvider.d.ts","sourceRoot":"","sources":["../../../src/components/studio/EnterpriseModelExplorerStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAQhG,eAAO,MAAM,oCAAoC;cAGrC,MAAM,SAAS;MACvB,MAAM,YAmBT,CAAC;AAEF,eAAO,MAAM,+BAA+B,QACtC,4BAID,CAAC"}
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { createContext, useContext } from 'react';
18
- import { useLocalObservable } from 'mobx-react-lite';
19
- import { useApplicationStore } from '@finos/legend-application';
20
- import { guaranteeNonNullable } from '@finos/legend-shared';
21
- import { useDepotServerClient } from '@finos/legend-server-depot';
22
- import { useGraphManagerState } from '@finos/legend-graph';
23
- import { EnterpriseModelExplorerStore } from '../../stores/studio/EnterpriseModelExplorerStore';
24
- import { useStudioStore } from '@finos/legend-studio';
25
- const EnterpriseModelExplorerStoreContext = createContext(undefined);
26
- export const EnterpriseModelExplorerStoreProvider = ({ children, }) => {
27
- const applicationStore = useApplicationStore();
28
- const depotServerClient = useDepotServerClient();
29
- const graphManagerState = useGraphManagerState();
30
- const studioStore = useStudioStore();
31
- const store = useLocalObservable(() => new EnterpriseModelExplorerStore(applicationStore, depotServerClient, graphManagerState, studioStore.pluginManager));
32
- return (_jsx(EnterpriseModelExplorerStoreContext.Provider, Object.assign({ value: store }, { children: children }), void 0));
33
- };
34
- export const useEnterpriseModelExplorerStore = () => guaranteeNonNullable(useContext(EnterpriseModelExplorerStoreContext), `Can't find enterprise model explorer store in context`);
35
- //# sourceMappingURL=EnterpriseModelExplorerStoreProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EnterpriseModelExplorerStoreProvider.js","sourceRoot":"","sources":["../../../src/components/studio/EnterpriseModelExplorerStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAEhG,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,mCAAmC,GAAG,aAAa,CAEvD,SAAS,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,EACnD,QAAQ,GAGT,EAAsB,EAAE;IACvB,MAAM,gBAAgB,GAAG,mBAAmB,EAAgB,CAAC;IAC7D,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IACjD,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IACjD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CACH,IAAI,4BAA4B,CAC9B,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,CAAC,aAAa,CAC1B,CACJ,CAAC;IACF,OAAO,CACL,KAAC,mCAAmC,CAAC,QAAQ,kBAAC,KAAK,EAAE,KAAK,gBACvD,QAAQ,YACoC,CAChD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAC1C,GAAiC,EAAE,CACjC,oBAAoB,CAClB,UAAU,CAAC,mCAAmC,CAAC,EAC/C,uDAAuD,CACxD,CAAC"}
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { TaxonomyTreeNodeData } from '../../stores/studio/EnterpriseModelExplorerStore';
17
- import type { TreeData } from '@finos/legend-art';
18
- export declare const TaxonomyTree: ((props: {
19
- treeData: TreeData<TaxonomyTreeNodeData>;
20
- }) => JSX.Element) & {
21
- displayName: string;
22
- };
23
- //# sourceMappingURL=TaxonomyTree.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaxonomyTree.d.ts","sourceRoot":"","sources":["../../../src/components/studio/TaxonomyTree.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAK7F,OAAO,KAAK,EAAE,QAAQ,EAA0B,MAAM,mBAAmB,CAAC;AAyH1E,eAAO,MAAM,YAAY,WACf;IAAE,QAAQ,EAAE,SAAS,oBAAoB,CAAC,CAAA;CAAE;;CAiCrD,CAAC"}
@@ -1,78 +0,0 @@
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 { useState } from 'react';
18
- import { observer } from 'mobx-react-lite';
19
- import { generateTaxonomyNodeRoute, TaxonomyViewerState, } from '../../stores/studio/EnterpriseModelExplorerStore';
20
- import { ContextMenu, MenuContent, MenuContentItem, CircleIcon, EmptyCircleIcon, ChevronDownIcon, ChevronRightIcon, clsx, TreeView, } from '@finos/legend-art';
21
- import { useEnterpriseModelExplorerStore } from './EnterpriseModelExplorerStoreProvider';
22
- import { isNonNullable } from '@finos/legend-shared';
23
- import { useApplicationStore } from '@finos/legend-application';
24
- const TaxonomyTreeNodeContainer = observer((props) => {
25
- const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
26
- const { treeData } = innerProps;
27
- const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
28
- const applicationStore = useApplicationStore();
29
- const enterpriseModelExplorerStore = useEnterpriseModelExplorerStore();
30
- const expandIcon = !node.childrenIds.length ? (_jsx("div", {}, void 0)) : node.isOpen ? (_jsx(ChevronDownIcon, {}, void 0)) : (_jsx(ChevronRightIcon, {}, void 0));
31
- const selectNode = () => onNodeSelect?.(node);
32
- const toggleExpand = (event) => {
33
- event.preventDefault();
34
- event.stopPropagation();
35
- if (node.childrenIds.length) {
36
- node.isOpen = !node.isOpen;
37
- }
38
- enterpriseModelExplorerStore.setTreeData({
39
- ...treeData,
40
- });
41
- };
42
- const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
43
- const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
44
- const copyLink = () => {
45
- applicationStore
46
- .copyTextToClipboard(applicationStore.navigator.generateLocation(generateTaxonomyNodeRoute(node.id)))
47
- .then(() => applicationStore.notifySuccess('Copied taxonomy node link to clipboard'))
48
- .catch(applicationStore.alertIllegalUnhandledError);
49
- };
50
- return (_jsx(ContextMenu, Object.assign({ content: _jsx(MenuContent, { children: _jsx(MenuContentItem, Object.assign({ onClick: copyLink }, { children: "Copy Link" }), void 0) }, void 0), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose }, { children: _jsxs("div", Object.assign({ className: clsx('tree-view__node__container enterprise-taxonomy-tree__node__container', {
51
- 'menu__trigger--on-menu-open': !node.isSelected && isSelectedFromContextMenu,
52
- }, {
53
- 'enterprise-taxonomy-tree__node__container--selected': node ===
54
- enterpriseModelExplorerStore.currentTaxonomyViewerState
55
- ?.taxonomyNode,
56
- }), onClick: selectNode, style: {
57
- paddingLeft: `${level * (stepPaddingInRem ?? 1)}rem`,
58
- display: 'flex',
59
- } }, { children: [_jsxs("div", Object.assign({ className: "tree-view__node__icon enterprise-taxonomy-tree__node__icon" }, { children: [_jsx("button", Object.assign({ className: "enterprise-taxonomy-tree__node__icon__expand", tabIndex: -1, onClick: toggleExpand }, { children: expandIcon }), void 0), _jsx("div", Object.assign({ className: "enterprise-taxonomy-tree__node__icon__type" }, { children: node.childrenIds.length ? _jsx(CircleIcon, {}, void 0) : _jsx(EmptyCircleIcon, {}, void 0) }), void 0)] }), void 0), _jsx("button", Object.assign({ className: "tree-view__node__label enterprise-taxonomy-tree__node__label", tabIndex: -1 }, { children: node.label }), void 0)] }), void 0) }), void 0));
60
- });
61
- export const TaxonomyTree = observer((props) => {
62
- const { treeData } = props;
63
- const enterpriseModelExplorerStore = useEnterpriseModelExplorerStore();
64
- const onNodeSelect = (node) => {
65
- enterpriseModelExplorerStore.setCurrentTaxonomyViewerState(new TaxonomyViewerState(enterpriseModelExplorerStore, node));
66
- enterpriseModelExplorerStore.setTreeData({ ...treeData });
67
- };
68
- const getChildNodes = (node) => node.childrenIds
69
- .map((id) => treeData.nodes.get(id))
70
- .filter(isNonNullable)
71
- .sort((a, b) => a.label.localeCompare(b.label));
72
- return (_jsx(TreeView, { components: {
73
- TreeNodeContainer: TaxonomyTreeNodeContainer,
74
- }, treeData: treeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
75
- treeData,
76
- } }, void 0));
77
- });
78
- //# sourceMappingURL=TaxonomyTree.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaxonomyTree.js","sourceRoot":"","sources":["../../../src/components/studio/TaxonomyTree.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EACL,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,IAAI,EACJ,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,yBAAyB,GAAG,QAAQ,CACxC,CACE,KAKC,EACD,EAAE;IACF,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC1E,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;IAChC,MAAM,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,GAC7D,Q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QACxD,4BAA4B,CAAC,6BAA6B,CACxD,IAAI,mBAAmB,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAC5D,CAAC;QACF,4BAA4B,CAAC,WAAW,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;IAC5D,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,CACpB,IAA0B,EACF,EAAE,CAC1B,IAAI,CAAC,WAAW;SACb,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SACnC,MAAM,CAAC,aAAa,CAAC;SACrB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpD,OAAO,CACL,KAAC,QAAQ,IACP,UAAU,EAAE;YACV,iBAAiB,EAAE,yBAAyB;SAC7C,EACD,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE;YACV,QAAQ;SACT,WACD,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { TaxonomyViewerState } from '../../stores/studio/EnterpriseModelExplorerStore';
17
- export declare const TaxonomyViewer: ((props: {
18
- taxonomyViewerState: TaxonomyViewerState;
19
- }) => JSX.Element) & {
20
- displayName: string;
21
- };
22
- //# sourceMappingURL=TaxonomyViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaxonomyViewer.d.ts","sourceRoot":"","sources":["../../../src/components/studio/TaxonomyViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAEV,mBAAmB,EACpB,MAAM,kDAAkD,CAAC;AAmI1D,eAAO,MAAM,cAAc,WACjB;IAAE,mBAAmB,EAAE,mBAAmB,CAAA;CAAE;;CAiCrD,CAAC"}
@@ -1,59 +0,0 @@
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 { useState } from 'react';
18
- import { observer } from 'mobx-react-lite';
19
- import { generateDataSpaceRoute } from '../../stores/studio/EnterpriseModelExplorerStore';
20
- import { BlankPanelContent, clsx, PanelLoadingIndicator, SquareIcon, ResizablePanel, ResizablePanelGroup, ResizablePanelSplitter, ContextMenu, MenuContent, MenuContentItem, } from '@finos/legend-art';
21
- import { DataSpaceViewer } from '../DataSpaceViewer';
22
- import { flowResult } from 'mobx';
23
- import { useApplicationStore } from '@finos/legend-application';
24
- import { generateGAVCoordinates } from '@finos/legend-server-depot';
25
- const TaxonomyDataSpaceItem = observer((props) => {
26
- const { rawDataSpace, taxonomyViewerState, selectDataSpace } = props;
27
- const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
28
- const applicationStore = useApplicationStore();
29
- const isSelected = rawDataSpace === taxonomyViewerState.currentDataSpace;
30
- const onContextMenuOpen = () => setIsSelectedFromContextMenu(true);
31
- const onContextMenuClose = () => setIsSelectedFromContextMenu(false);
32
- const copyLink = () => {
33
- applicationStore
34
- .copyTextToClipboard(applicationStore.navigator.generateLocation(generateDataSpaceRoute(taxonomyViewerState.taxonomyNode.id, generateGAVCoordinates(rawDataSpace.groupId, rawDataSpace.artifactId, rawDataSpace.versionId), rawDataSpace.path)))
35
- .then(() => applicationStore.notifySuccess('Copied data space link to clipboard'))
36
- .catch(applicationStore.alertIllegalUnhandledError);
37
- };
38
- return (_jsx(ContextMenu, Object.assign({ content: _jsx(MenuContent, { children: _jsx(MenuContentItem, Object.assign({ onClick: copyLink }, { children: "Copy Link" }), void 0) }, void 0), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose }, { children: _jsxs("button", Object.assign({ className: clsx('taxonomy-viewer__explorer__entry', {
39
- 'menu__trigger--on-menu-open': !isSelected && isSelectedFromContextMenu,
40
- }, {
41
- 'taxonomy-viewer__explorer__entry--active': isSelected,
42
- }), tabIndex: -1, onClick: selectDataSpace, title: rawDataSpace.id }, { children: [_jsx("div", Object.assign({ className: "taxonomy-viewer__explorer__entry__icon" }, { children: _jsx(SquareIcon, {}, void 0) }), void 0), _jsx("div", Object.assign({ className: "taxonomy-viewer__explorer__entry__path" }, { children: rawDataSpace.path }), void 0)] }), void 0) }), rawDataSpace.id));
43
- });
44
- const TaxonomyViewerExplorer = observer((props) => {
45
- const { taxonomyViewerState } = props;
46
- const applicationStore = useApplicationStore();
47
- const taxonomyNode = taxonomyViewerState.taxonomyNode;
48
- const selectDataSpace = (rawDataSpace) => () => {
49
- flowResult(taxonomyViewerState.initializeDataSpaceViewer(rawDataSpace)).catch(applicationStore.alertIllegalUnhandledError);
50
- };
51
- return (_jsxs("div", Object.assign({ className: "panel taxonomy-viewer__explorer" }, { children: [_jsx("div", Object.assign({ className: "panel__header taxonomy-viewer__explorer__header" }, { children: _jsxs("div", Object.assign({ className: "panel__header__title taxonomy-viewer__explorer__header__title" }, { children: ["Dataspaces (", taxonomyNode.rawDataSpaces.length, ")"] }), void 0) }), void 0), _jsxs("div", Object.assign({ className: "panel__content taxonomy-viewer__explorer__content" }, { children: [taxonomyNode.rawDataSpaces.length === 0 && (_jsx(BlankPanelContent, { children: "No data space available" }, void 0)), taxonomyNode.rawDataSpaces.length !== 0 &&
52
- taxonomyNode.rawDataSpaces.map((rawDataSpace) => (_jsx(TaxonomyDataSpaceItem, { rawDataSpace: rawDataSpace, selectDataSpace: selectDataSpace(rawDataSpace), taxonomyViewerState: taxonomyViewerState }, rawDataSpace.id)))] }), void 0)] }), void 0));
53
- });
54
- export const TaxonomyViewer = observer((props) => {
55
- const { taxonomyViewerState } = props;
56
- return (_jsx("div", Object.assign({ className: "taxonomy-viewer" }, { children: _jsxs(ResizablePanelGroup, Object.assign({ orientation: "vertical" }, { children: [_jsx(ResizablePanel, Object.assign({ minSize: 300, size: 300 }, { children: _jsx(TaxonomyViewerExplorer, { taxonomyViewerState: taxonomyViewerState }, void 0) }), void 0), _jsx(ResizablePanelSplitter, {}, void 0), _jsxs(ResizablePanel, Object.assign({ minSize: 300 }, { children: [taxonomyViewerState.dataSpaceViewerState && (_jsx(DataSpaceViewer, { dataSpaceViewerState: taxonomyViewerState.dataSpaceViewerState }, void 0)), !taxonomyViewerState.dataSpaceViewerState &&
57
- taxonomyViewerState.initDataSpaceViewerState.isInProgress && (_jsxs("div", Object.assign({ className: "taxonomy-viewer__content-placeholder" }, { children: [_jsx(PanelLoadingIndicator, { isLoading: true }, void 0), _jsx(BlankPanelContent, { children: "Loading data space..." }, void 0)] }), void 0)), !taxonomyViewerState.dataSpaceViewerState && (_jsx("div", Object.assign({ className: "taxonomy-viewer__content-placeholder" }, { children: _jsx(BlankPanelContent, { children: "No data space selected" }, void 0) }), void 0))] }), void 0)] }), void 0) }), void 0));
58
- });
59
- //# sourceMappingURL=TaxonomyViewer.js.map
@@ -1 +0,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