@finos/legend-extension-dsl-data-space 0.2.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/lib/DSLDataSpace_Extension.d.ts +0 -10
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
- package/lib/DSLDataSpace_Extension.js +0 -24
- package/lib/DSLDataSpace_Extension.js.map +1 -1
- package/lib/components/DataSpaceViewer.js +17 -17
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/{DSLDataSpace_QueryPlugin.d.ts → DSLDataSpace_LegendQueryPlugin.d.ts} +5 -5
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -0
- package/lib/components/query/{DSLDataSpace_QueryPlugin.js → DSLDataSpace_LegendQueryPlugin.js} +4 -4
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.js +7 -7
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.d.ts → DSLDataSpace_LegendStudioPlugin.d.ts} +5 -6
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js} +4 -19
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +5 -5
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/package.json +16 -17
- package/src/DSLDataSpace_Extension.ts +0 -30
- package/src/components/query/{DSLDataSpace_QueryPlugin.tsx → DSLDataSpace_LegendQueryPlugin.tsx} +4 -4
- package/src/components/query/DataSpaceQuerySetup.tsx +2 -2
- package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx} +7 -24
- package/src/index.ts +12 -0
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +5 -5
- package/tsconfig.json +2 -7
- package/lib/components/query/DSLDataSpace_QueryPlugin.d.ts.map +0 -1
- package/lib/components/query/DSLDataSpace_QueryPlugin.js.map +0 -1
- package/lib/components/studio/DSLDataSpace_StudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_StudioPlugin.js.map +0 -1
- package/lib/components/studio/EnterpriseModelExplorer.d.ts +0 -21
- package/lib/components/studio/EnterpriseModelExplorer.d.ts.map +0 -1
- package/lib/components/studio/EnterpriseModelExplorer.js +0 -70
- package/lib/components/studio/EnterpriseModelExplorer.js.map +0 -1
- package/lib/components/studio/EnterpriseModelExplorerStoreProvider.d.ts +0 -21
- package/lib/components/studio/EnterpriseModelExplorerStoreProvider.d.ts.map +0 -1
- package/lib/components/studio/EnterpriseModelExplorerStoreProvider.js +0 -35
- package/lib/components/studio/EnterpriseModelExplorerStoreProvider.js.map +0 -1
- package/lib/components/studio/TaxonomyTree.d.ts +0 -23
- package/lib/components/studio/TaxonomyTree.d.ts.map +0 -1
- package/lib/components/studio/TaxonomyTree.js +0 -78
- package/lib/components/studio/TaxonomyTree.js.map +0 -1
- package/lib/components/studio/TaxonomyViewer.d.ts +0 -22
- package/lib/components/studio/TaxonomyViewer.d.ts.map +0 -1
- package/lib/components/studio/TaxonomyViewer.js +0 -59
- package/lib/components/studio/TaxonomyViewer.js.map +0 -1
- package/lib/stores/studio/EnterpriseModelExplorerStore.d.ts +0 -93
- package/lib/stores/studio/EnterpriseModelExplorerStore.d.ts.map +0 -1
- package/lib/stores/studio/EnterpriseModelExplorerStore.js +0 -300
- package/lib/stores/studio/EnterpriseModelExplorerStore.js.map +0 -1
- package/src/components/studio/EnterpriseModelExplorer.tsx +0 -229
- package/src/components/studio/EnterpriseModelExplorerStoreProvider.tsx +0 -61
- package/src/components/studio/TaxonomyTree.tsx +0 -179
- package/src/components/studio/TaxonomyViewer.tsx +0 -187
- package/src/stores/studio/EnterpriseModelExplorerStore.tsx +0 -514
|
@@ -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,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClB,MAAM,gBAAgB,GAAG,m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AA4B,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,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaxonomyViewer.js","sourceRoot":"","sources":["../../../src/components/studio/TaxonomyViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAK3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EACL,iBAAiB,EACjB,IAAI,EACJ,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,mB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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 { ApplicationStore } from '@finos/legend-application';
|
|
17
|
-
import type { TreeData, TreeNodeData } from '@finos/legend-art';
|
|
18
|
-
import { PanelDisplayState } from '@finos/legend-art';
|
|
19
|
-
import type { GraphManagerState } from '@finos/legend-graph';
|
|
20
|
-
import type { DepotServerClient } from '@finos/legend-server-depot';
|
|
21
|
-
import type { GeneratorFn } from '@finos/legend-shared';
|
|
22
|
-
import { ActionState } from '@finos/legend-shared';
|
|
23
|
-
import type { StudioConfig, StudioPluginManager } from '@finos/legend-studio';
|
|
24
|
-
import { DataSpaceViewerState } from '../DataSpaceViewerState';
|
|
25
|
-
export declare enum ENTERPRISE_MODEL_EXPLORER_PARAM_TOKEN {
|
|
26
|
-
TAXONOMY_PATH = "taxonomyPath",
|
|
27
|
-
GAV = "gav",
|
|
28
|
-
DATA_SPACE_PATH = "dataSpacePath"
|
|
29
|
-
}
|
|
30
|
-
export declare const ENTERPRISE_MODEL_EXPLORER_ROUTE_PATTERN: Readonly<{
|
|
31
|
-
ENTERPRISE_VIEW: string;
|
|
32
|
-
ENTERPRISE_VIEW_BY_TAXONOMY_NODE: string;
|
|
33
|
-
ENTERPRISE_VIEW_BY_DATA_SPACE: string;
|
|
34
|
-
}>;
|
|
35
|
-
export interface EnterpriseModelExplorerPathParams {
|
|
36
|
-
[ENTERPRISE_MODEL_EXPLORER_PARAM_TOKEN.TAXONOMY_PATH]?: string;
|
|
37
|
-
[ENTERPRISE_MODEL_EXPLORER_PARAM_TOKEN.GAV]?: string;
|
|
38
|
-
[ENTERPRISE_MODEL_EXPLORER_PARAM_TOKEN.DATA_SPACE_PATH]?: string;
|
|
39
|
-
}
|
|
40
|
-
export declare const generateTaxonomyNodeRoute: (taxonomyNodePath: string) => string;
|
|
41
|
-
export declare const generateDataSpaceRoute: (taxonomyNodePath: string, GAVCoordinates: string, dataSpacePath: string) => string;
|
|
42
|
-
export declare class RawDataSpace {
|
|
43
|
-
groupId: string;
|
|
44
|
-
artifactId: string;
|
|
45
|
-
versionId: string;
|
|
46
|
-
path: string;
|
|
47
|
-
json: Record<PropertyKey, unknown>;
|
|
48
|
-
taxonomyNodePaths: string[];
|
|
49
|
-
taxonomyNodes: TaxonomyTreeNodeData[];
|
|
50
|
-
constructor(groupId: string, artifactId: string, versionId: string, path: string, json: Record<PropertyKey, unknown>);
|
|
51
|
-
get id(): string;
|
|
52
|
-
}
|
|
53
|
-
export declare class TaxonomyTreeNodeData implements TreeNodeData {
|
|
54
|
-
isSelected?: boolean | undefined;
|
|
55
|
-
isOpen?: boolean | undefined;
|
|
56
|
-
id: string;
|
|
57
|
-
label: string;
|
|
58
|
-
childrenIds: string[];
|
|
59
|
-
rawDataSpaces: RawDataSpace[];
|
|
60
|
-
constructor(id: string, label: string);
|
|
61
|
-
}
|
|
62
|
-
export declare class TaxonomyViewerState {
|
|
63
|
-
enterpriseModelExplorerStore: EnterpriseModelExplorerStore;
|
|
64
|
-
taxonomyNode: TaxonomyTreeNodeData;
|
|
65
|
-
dataSpaceViewerState?: DataSpaceViewerState | undefined;
|
|
66
|
-
currentDataSpace?: RawDataSpace | undefined;
|
|
67
|
-
initDataSpaceViewerState: ActionState;
|
|
68
|
-
constructor(enterpriseModelExplorerStore: EnterpriseModelExplorerStore, taxonomyNode: TaxonomyTreeNodeData);
|
|
69
|
-
clearDataSpaceViewerState(): void;
|
|
70
|
-
initializeDataSpaceViewer(rawDataSpace: RawDataSpace): GeneratorFn<void>;
|
|
71
|
-
}
|
|
72
|
-
export declare class EnterpriseModelExplorerStore {
|
|
73
|
-
applicationStore: ApplicationStore<StudioConfig>;
|
|
74
|
-
depotServerClient: DepotServerClient;
|
|
75
|
-
graphManagerState: GraphManagerState;
|
|
76
|
-
pluginManager: StudioPluginManager;
|
|
77
|
-
sideBarDisplayState: PanelDisplayState;
|
|
78
|
-
isInExpandedMode: boolean;
|
|
79
|
-
initState: ActionState;
|
|
80
|
-
dataSpaceIndex: Map<string, RawDataSpace>;
|
|
81
|
-
treeData?: TreeData<TaxonomyTreeNodeData> | undefined;
|
|
82
|
-
initialDataSpaceId?: string | undefined;
|
|
83
|
-
currentTaxonomyViewerState?: TaxonomyViewerState | undefined;
|
|
84
|
-
constructor(applicationStore: ApplicationStore<StudioConfig>, depotServerClient: DepotServerClient, graphManagerState: GraphManagerState, pluginManager: StudioPluginManager);
|
|
85
|
-
setExpandedMode(val: boolean): void;
|
|
86
|
-
setTreeData(val: TreeData<TaxonomyTreeNodeData>): void;
|
|
87
|
-
setCurrentTaxonomyViewerState(val: TaxonomyViewerState | undefined): void;
|
|
88
|
-
internalizeDataSpacePath(params: EnterpriseModelExplorerPathParams): void;
|
|
89
|
-
private processTaxonomyTreeNodeData;
|
|
90
|
-
private initializeTaxonomyTreeData;
|
|
91
|
-
initialize(params: EnterpriseModelExplorerPathParams): GeneratorFn<void>;
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=EnterpriseModelExplorerStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnterpriseModelExplorerStore.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/EnterpriseModelExplorerStore.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,KAAK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