@finos/legend-extension-dsl-data-space 9.1.5 → 9.1.6

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 (90) hide show
  1. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +0 -4
  2. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
  3. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +0 -3
  4. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
  5. package/lib/components/DataSpaceDataAccess.d.ts +23 -0
  6. package/lib/components/DataSpaceDataAccess.d.ts.map +1 -0
  7. package/lib/components/DataSpaceDataAccess.js +34 -0
  8. package/lib/components/DataSpaceDataAccess.js.map +1 -0
  9. package/lib/components/DataSpaceDescription.d.ts +23 -0
  10. package/lib/components/DataSpaceDescription.d.ts.map +1 -0
  11. package/lib/components/DataSpaceDescription.js +26 -0
  12. package/lib/components/DataSpaceDescription.js.map +1 -0
  13. package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -1
  14. package/lib/components/DataSpaceDiagramViewer.js +7 -9
  15. package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
  16. package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -1
  17. package/lib/components/DataSpaceExecutionContextViewer.js +6 -6
  18. package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -1
  19. package/lib/components/DataSpaceMarkdownTextViewer.d.ts +20 -0
  20. package/lib/components/DataSpaceMarkdownTextViewer.d.ts.map +1 -0
  21. package/lib/components/DataSpaceMarkdownTextViewer.js +25 -0
  22. package/lib/components/DataSpaceMarkdownTextViewer.js.map +1 -0
  23. package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
  24. package/lib/components/DataSpaceModelsDocumentation.js +33 -35
  25. package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
  26. package/lib/components/DataSpacePlaceholder.d.ts +20 -0
  27. package/lib/components/DataSpacePlaceholder.d.ts.map +1 -0
  28. package/lib/components/DataSpacePlaceholder.js +18 -0
  29. package/lib/components/DataSpacePlaceholder.js.map +1 -0
  30. package/lib/components/DataSpaceQuickStart.d.ts +7 -1
  31. package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
  32. package/lib/components/DataSpaceQuickStart.js +92 -1
  33. package/lib/components/DataSpaceQuickStart.js.map +1 -1
  34. package/lib/components/DataSpaceSupportPanel.js +1 -1
  35. package/lib/components/DataSpaceSupportPanel.js.map +1 -1
  36. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  37. package/lib/components/DataSpaceViewer.js +21 -8
  38. package/lib/components/DataSpaceViewer.js.map +1 -1
  39. package/lib/components/DataSpaceWiki.d.ts.map +1 -1
  40. package/lib/components/DataSpaceWiki.js +4 -28
  41. package/lib/components/DataSpaceWiki.js.map +1 -1
  42. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.d.ts +5 -0
  43. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
  44. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.js +7 -0
  45. package/lib/graphManager/DSL_DataSpace_PureGraphManagerPlugin.js.map +1 -1
  46. package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +3 -0
  47. package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
  48. package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +5 -0
  49. package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -1
  50. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
  51. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +14 -2
  52. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
  53. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +1 -1
  54. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
  55. package/lib/index.css +2 -2
  56. package/lib/index.css.map +1 -1
  57. package/lib/index.d.ts +2 -1
  58. package/lib/index.d.ts.map +1 -1
  59. package/lib/index.js +2 -1
  60. package/lib/index.js.map +1 -1
  61. package/lib/package.json +3 -3
  62. package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.d.ts +32 -0
  63. package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.d.ts.map +1 -0
  64. package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js +17 -0
  65. package/lib/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js.map +1 -0
  66. package/lib/stores/DataSpaceViewerState.d.ts +1 -0
  67. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  68. package/lib/stores/DataSpaceViewerState.js +6 -0
  69. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  70. package/package.json +11 -11
  71. package/src/components/DSL_DataSpace_LegendApplicationPlugin.ts +0 -9
  72. package/src/components/DataSpaceDataAccess.tsx +66 -0
  73. package/src/components/DataSpaceDescription.tsx +55 -0
  74. package/src/components/DataSpaceDiagramViewer.tsx +69 -61
  75. package/src/components/DataSpaceExecutionContextViewer.tsx +12 -18
  76. package/src/components/DataSpaceMarkdownTextViewer.tsx +33 -0
  77. package/src/components/DataSpaceModelsDocumentation.tsx +59 -52
  78. package/src/components/DataSpacePlaceholder.tsx +21 -0
  79. package/src/components/DataSpaceQuickStart.tsx +366 -0
  80. package/src/components/DataSpaceSupportPanel.tsx +4 -4
  81. package/src/components/DataSpaceViewer.tsx +58 -32
  82. package/src/components/DataSpaceWiki.tsx +5 -40
  83. package/src/graphManager/DSL_DataSpace_PureGraphManagerPlugin.ts +9 -0
  84. package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +8 -0
  85. package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +21 -2
  86. package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +1 -1
  87. package/src/index.ts +2 -4
  88. package/src/stores/DSL_DataSpace_LegendApplicationPlugin_Extension.ts +41 -0
  89. package/src/stores/DataSpaceViewerState.ts +15 -0
  90. package/tsconfig.json +5 -0
@@ -13,14 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /// <reference types="react" resolution-mode="require"/>
17
16
  import { LegendApplicationPlugin, type LegendApplicationPluginManager } from '@finos/legend-application';
18
- import type { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
19
- export type CheckEntitlementEditorRender = (dataSpaceViewerState: DataSpaceViewerState) => React.ReactNode | undefined;
20
17
  export declare class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
21
18
  static NAME: string;
22
19
  constructor();
23
20
  install(pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>): void;
24
- getCheckEntitlementsEditorRender(): CheckEntitlementEditorRender | undefined;
25
21
  }
26
22
  //# sourceMappingURL=DSL_DataSpace_LegendApplicationPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EACL,uBAAuB,EACvB,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,MAAM,4BAA4B,GAAG,CACzC,oBAAoB,EAAE,oBAAoB,KACvC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;AAEjC,qBAAa,qCAAsC,SAAQ,uBAAuB;IAChF,MAAM,CAAC,IAAI,SAA4C;;IAMvD,OAAO,CACL,aAAa,EAAE,8BAA8B,CAAC,uBAAuB,CAAC,GACrE,IAAI;IAIP,gCAAgC,IAAI,4BAA4B,GAAG,SAAS;CAG7E"}
1
+ {"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAGnC,qBAAa,qCAAsC,SAAQ,uBAAuB;IAChF,MAAM,CAAC,IAAI,SAA4C;;IAMvD,OAAO,CACL,aAAa,EAAE,8BAA8B,CAAC,uBAAuB,CAAC,GACrE,IAAI;CAGR"}
@@ -23,9 +23,6 @@ class DSL_DataSpace_LegendApplicationPlugin extends LegendApplicationPlugin {
23
23
  install(pluginManager) {
24
24
  pluginManager.registerApplicationPlugin(this);
25
25
  }
26
- getCheckEntitlementsEditorRender() {
27
- return undefined;
28
- }
29
26
  }
30
27
  export { DSL_DataSpace_LegendApplicationPlugin };
31
28
  //# sourceMappingURL=DSL_DataSpace_LegendApplicationPlugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AACnC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAO7C,MAAa,qCAAsC,SAAQ,uBAAuB;IAChF,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAEvD;QACE,KAAK,CAAC,qCAAqC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,CACL,aAAsE;QAEtE,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAED,gCAAgC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;;SAfU,qCAAqC"}
1
+ {"version":3,"file":"DSL_DataSpace_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AACnC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,MAAa,qCAAsC,SAAQ,uBAAuB;IAChF,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAEvD;QACE,KAAK,CAAC,qCAAqC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,CACL,aAAsE;QAEtE,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;;SAXU,qCAAqC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
18
+ export declare const DataSpaceDataAccess: ((props: {
19
+ dataSpaceViewerState: DataSpaceViewerState;
20
+ }) => JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=DataSpaceDataAccess.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceDataAccess.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceDataAccess.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAI9E,eAAO,MAAM,mBAAmB,WACtB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA0CvD,CAAC"}
@@ -0,0 +1,34 @@
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 { observer } from 'mobx-react-lite';
18
+ import { AnchorLinkIcon, QuestionCircleIcon } from '@finos/legend-art';
19
+ import {} from '../stores/DataSpaceViewerState.js';
20
+ import { useApplicationStore } from '@finos/legend-application';
21
+ import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
22
+ export const DataSpaceDataAccess = observer((props) => {
23
+ const { dataSpaceViewerState } = props;
24
+ const applicationStore = useApplicationStore();
25
+ const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
26
+ const documentationUrl = analysisResult.supportInfo?.documentationUrl;
27
+ const seeDocumentation = () => {
28
+ if (documentationUrl) {
29
+ applicationStore.navigationService.navigator.visitAddress(documentationUrl);
30
+ }
31
+ };
32
+ return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsxs("div", { className: "data-space__viewer__wiki__section__header", children: [_jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Data Access", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }), Boolean(documentationUrl) && (_jsx("button", { className: "data-space__viewer__wiki__section__header__documentation", tabIndex: -1, onClick: seeDocumentation, title: "See Documentation", children: _jsx(QuestionCircleIcon, {}) }))] }), _jsx("div", { className: "data-space__viewer__wiki__section__content", children: _jsx("div", { className: "data-space__viewer__data-access", children: _jsx(DataSpaceWikiPlaceholder, { message: "View Data Access (Work in Progress)" }) }) })] }));
33
+ });
34
+ //# sourceMappingURL=DataSpaceDataAccess.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceDataAccess.js","sourceRoot":"","sources":["../../src/components/DataSpaceDataAccess.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CACzC,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,cAAc,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;IACpE,MAAM,gBAAgB,GAAG,cAAc,CAAC,WAAW,EAAE,gBAAgB,CAAC;IAEtE,MAAM,gBAAgB,GAAG,GAAS,EAAE;QAClC,IAAI,gBAAgB,EAAE;YACpB,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CACvD,gBAAgB,CACjB,CAAC;SACH;IACH,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,mCAAmC,aAChD,eAAK,SAAS,EAAC,2CAA2C,aACxD,eAAK,SAAS,EAAC,kDAAkD,4BAE/D,cAAK,SAAS,EAAC,mDAAmD,YAChE,KAAC,cAAc,KAAG,GACd,IACF,EACL,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAC5B,iBACE,SAAS,EAAC,0DAA0D,EACpE,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAC,mBAAmB,YAEzB,KAAC,kBAAkB,KAAG,GACf,CACV,IACG,EACN,cAAK,SAAS,EAAC,4CAA4C,YACzD,cAAK,SAAS,EAAC,iCAAiC,YAC9C,KAAC,wBAAwB,IAAC,OAAO,EAAC,qCAAqC,GAAG,GACtE,GACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import type { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
18
+ export declare const DataSpaceDescription: ((props: {
19
+ dataSpaceViewerState: DataSpaceViewerState;
20
+ }) => JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=DataSpaceDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceDescription.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceDescription.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAK9E,eAAO,MAAM,oBAAoB,WACvB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA+BvD,CAAC"}
@@ -0,0 +1,26 @@
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 { AnchorLinkIcon } from '@finos/legend-art';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
20
+ import { DataSpaceMarkdownTextViewer } from './DataSpaceMarkdownTextViewer.js';
21
+ export const DataSpaceDescription = observer((props) => {
22
+ const { dataSpaceViewerState } = props;
23
+ const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
24
+ return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: _jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Description", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }) }), _jsxs("div", { className: "data-space__viewer__wiki__section__content", children: [analysisResult.description !== undefined && (_jsx("div", { className: "data-space__viewer__description", children: _jsx("div", { className: "data-space__viewer__description__content", children: _jsx(DataSpaceMarkdownTextViewer, { value: analysisResult.description }) }) })), analysisResult.description === undefined && (_jsx(DataSpaceWikiPlaceholder, { message: "No description provided" }))] })] }));
25
+ });
26
+ //# sourceMappingURL=DataSpaceDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceDescription.js","sourceRoot":"","sources":["../../src/components/DataSpaceDescription.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAC1C,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,cAAc,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;IAEpE,OAAO,CACL,eAAK,SAAS,EAAC,mCAAmC,aAChD,cAAK,SAAS,EAAC,2CAA2C,YACxD,eAAK,SAAS,EAAC,kDAAkD,4BAE/D,cAAK,SAAS,EAAC,mDAAmD,YAChE,KAAC,cAAc,KAAG,GACd,IACF,GACF,EACN,eAAK,SAAS,EAAC,4CAA4C,aACxD,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,CAC3C,cAAK,SAAS,EAAC,iCAAiC,YAC9C,cAAK,SAAS,EAAC,0CAA0C,YACvD,KAAC,2BAA2B,IAC1B,KAAK,EAAE,cAAc,CAAC,WAAW,GACjC,GACE,GACF,CACP,EACA,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,CAC3C,KAAC,wBAAwB,IAAC,OAAO,EAAC,yBAAyB,GAAG,CAC/D,IACG,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceDiagramViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceDiagramViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAwD9E,eAAO,MAAM,sBAAsB,WACzB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA6GvD,CAAC"}
1
+ {"version":3,"file":"DataSpaceDiagramViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceDiagramViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAyD9E,eAAO,MAAM,sBAAsB,WACzB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAoHvD,CAAC"}
@@ -14,11 +14,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { BlankPanelContent, CircleIcon, ThinChevronLeftIcon, ThinChevronRightIcon, clsx, useResizeDetector, } from '@finos/legend-art';
17
+ import { AnchorLinkIcon, CircleIcon, ThinChevronLeftIcon, ThinChevronRightIcon, clsx, useResizeDetector, } from '@finos/legend-art';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { forwardRef, useEffect, useRef } from 'react';
20
20
  import { DiagramRenderer, } from '@finos/legend-extension-dsl-diagram';
21
21
  import { getNullableFirstElement, getNullableLastElement, guaranteeNonNullable, } from '@finos/legend-shared';
22
+ import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
22
23
  const DataSpaceDiagramCanvas = observer(forwardRef(function DataSpaceDiagramCanvas(props, ref) {
23
24
  const { dataSpaceViewerState, diagram } = props;
24
25
  const diagramCanvasRef = ref;
@@ -65,13 +66,10 @@ export const DataSpaceDiagramViewer = observer((props) => {
65
66
  }
66
67
  dataSpaceViewerState.setCurrentDiagram(guaranteeNonNullable(analysisResult.diagrams[idx + 1]));
67
68
  };
68
- if (analysisResult.diagrams.length === 0) {
69
- return _jsx(BlankPanelContent, { children: "No diagrams available" });
70
- }
71
- return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: "Diagrams" }), _jsx("div", { className: "data-space__viewer__wiki__section__content", children: _jsx("div", { className: "data-space__viewer__diagram-viewer", children: _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel", children: _jsxs("div", { className: "data-space__viewer__diagram-viewer__carousel__frame", children: [_jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__display", children: dataSpaceViewerState.currentDiagram && (_jsx(DataSpaceDiagramCanvas, { dataSpaceViewerState: dataSpaceViewerState, diagram: dataSpaceViewerState.currentDiagram.diagram, ref: diagramCanvasRef })) }), _jsx("button", { className: "data-space__viewer__diagram-viewer__carousel__frame__navigator data-space__viewer__diagram-viewer__carousel__frame__navigator--back", tabIndex: -1, title: "Previous", disabled: getNullableFirstElement(analysisResult.diagrams) ===
72
- dataSpaceViewerState.currentDiagram, onClick: showPreviousDiagram, children: _jsx(ThinChevronLeftIcon, {}) }), _jsx("button", { className: "data-space__viewer__diagram-viewer__carousel__frame__navigator data-space__viewer__diagram-viewer__carousel__frame__navigator--next", tabIndex: -1, title: "Next", disabled: getNullableLastElement(analysisResult.diagrams) ===
73
- dataSpaceViewerState.currentDiagram, onClick: showNextDiagram, children: _jsx(ThinChevronRightIcon, {}) }), _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__indicators", children: _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__indicators__notch", children: analysisResult.diagrams.map((diagram) => (_jsx("button", { className: clsx('data-space__viewer__diagram-viewer__carousel__frame__indicator', {
74
- 'data-space__viewer__diagram-viewer__carousel__frame__indicator--active': dataSpaceViewerState.currentDiagram === diagram,
75
- }), onClick: () => dataSpaceViewerState.setCurrentDiagram(diagram), children: _jsx(CircleIcon, {}) }, diagram.diagram.path))) }) })] }) }) }) })] }));
69
+ return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: _jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Diagrams", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }) }), _jsxs("div", { className: "data-space__viewer__wiki__section__content", children: [analysisResult.diagrams.length > 0 && (_jsx("div", { className: "data-space__viewer__diagram-viewer", children: _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel", children: _jsxs("div", { className: "data-space__viewer__diagram-viewer__carousel__frame", children: [_jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__display", children: dataSpaceViewerState.currentDiagram && (_jsx(DataSpaceDiagramCanvas, { dataSpaceViewerState: dataSpaceViewerState, diagram: dataSpaceViewerState.currentDiagram.diagram, ref: diagramCanvasRef })) }), _jsx("button", { className: "data-space__viewer__diagram-viewer__carousel__frame__navigator data-space__viewer__diagram-viewer__carousel__frame__navigator--back", tabIndex: -1, title: "Previous", disabled: getNullableFirstElement(analysisResult.diagrams) ===
70
+ dataSpaceViewerState.currentDiagram, onClick: showPreviousDiagram, children: _jsx(ThinChevronLeftIcon, {}) }), _jsx("button", { className: "data-space__viewer__diagram-viewer__carousel__frame__navigator data-space__viewer__diagram-viewer__carousel__frame__navigator--next", tabIndex: -1, title: "Next", disabled: getNullableLastElement(analysisResult.diagrams) ===
71
+ dataSpaceViewerState.currentDiagram, onClick: showNextDiagram, children: _jsx(ThinChevronRightIcon, {}) }), _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__indicators", children: _jsx("div", { className: "data-space__viewer__diagram-viewer__carousel__frame__indicators__notch", children: analysisResult.diagrams.map((diagram) => (_jsx("button", { className: clsx('data-space__viewer__diagram-viewer__carousel__frame__indicator', {
72
+ 'data-space__viewer__diagram-viewer__carousel__frame__indicator--active': dataSpaceViewerState.currentDiagram === diagram,
73
+ }), onClick: () => dataSpaceViewerState.setCurrentDiagram(diagram), children: _jsx(CircleIcon, {}) }, diagram.diagram.path))) }) })] }) }) })), analysisResult.diagrams.length <= 0 && (_jsx(DataSpaceWikiPlaceholder, { message: "No diagrams provided" }))] })] }));
76
74
  });
77
75
  //# sourceMappingURL=DataSpaceDiagramViewer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceDiagramViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceDiagramViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,IAAI,EACJ,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EACL,eAAe,GAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,sBAAsB,GAAG,QAAQ,CACrC,UAAU,CAMR,SAAS,sBAAsB,CAAC,KAAK,EAAE,GAAG;IAC1C,MAAM,EAAE,oBAAoB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAChD,MAAM,gBAAgB,GAAG,GAA6C,CAAC;IAEvE,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,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxE,oBAAoB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC3C,oBAAoB,CAAC,aAAa,EAAE,CAAC;QACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE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N,sBAAsB,CAAC,cAAc,CAAC,QAAQ,CAAC;wCAC/C,oBAAoB,CAAC,cAAc,EAErC,OAAO,EAAE,eAAe,YAExB,KAAC,oBAAoB,KAAG,GACjB,EACT,cAAK,SAAS,EAAC,iEAAiE,YAC9E,cAAK,SAAS,EAAC,wEAAwE,YACpF,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACxC,iBAEE,SAAS,EAAE,IAAI,CACb,gEAAgE,EAChE;gDACE,wEAAwE,EACtE,oBAAoB,CAAC,cAAc,KAAK,OAAO;6CAClD,CACF,EACD,OAAO,EAAE,GAAG,EAAE,CACZ,oBAAoB,CAAC,iBAAiB,CAAC,OAAO,CAAC,YAGjD,KAAC,UAAU,KAAG,IAZT,OAAO,CAAC,OAAO,CAAC,IAAI,CAalB,CACV,CAAC,GACE,GACF,IACF,GACF,GACF,GACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"DataSpaceDiagramViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceDiagramViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,IAAI,EACJ,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EACL,eAAe,GAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,sBAAsB,GAAG,QAAQ,CACrC,UAAU,CAMR,SAAS,sBAAsB,CAAC,KAAK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C,sBAAsB,GAAG,CAC5D,IACG,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceExecutionContextViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceExecutionContextViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAWH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAuB9E,eAAO,MAAM,+BAA+B,WAClC;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA2HvD,CAAC"}
1
+ {"version":3,"file":"DataSpaceExecutionContextViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceExecutionContextViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAwB9E,eAAO,MAAM,+BAA+B,WAClC;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAqHvD,CAAC"}
@@ -15,9 +15,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import { observer } from 'mobx-react-lite';
18
- import { clsx, CustomSelectorInput, PURE_MappingIcon, PURE_RuntimeIcon, CogIcon, } from '@finos/legend-art';
18
+ import { CustomSelectorInput, PURE_MappingIcon, PURE_RuntimeIcon, PlayIcon, } from '@finos/legend-art';
19
19
  import {} from '@finos/legend-graph';
20
20
  import {} from '../stores/DataSpaceViewerState.js';
21
+ import { useApplicationStore } from '@finos/legend-application';
21
22
  const buildExecutionContextOption = (value) => ({
22
23
  label: value.name,
23
24
  value: value,
@@ -28,6 +29,7 @@ const buildRuntimeOption = (value) => ({
28
29
  });
29
30
  export const DataSpaceExecutionContextViewer = observer((props) => {
30
31
  const { dataSpaceViewerState } = props;
32
+ const applicationStore = useApplicationStore();
31
33
  const analysisResult = dataSpaceViewerState.dataSpaceAnalysisResult;
32
34
  const executionContexts = Array.from(dataSpaceViewerState.dataSpaceAnalysisResult.executionContextsIndex.values());
33
35
  // execution
@@ -49,10 +51,8 @@ export const DataSpaceExecutionContextViewer = observer((props) => {
49
51
  };
50
52
  const formatRuntimeOptionLabel = (option) => (_jsxs("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option__label", children: option.label }), option.value ===
51
53
  dataSpaceViewerState.currentExecutionContext.defaultRuntime && (_jsx("div", { className: "data-space__viewer__execution-context__entry__content__dropdown__option__tag", children: "default" }))] }));
52
- return (_jsx("div", { className: "data-space__viewer__panel", children: _jsxs("div", { className: "data-space__viewer__execution-context", children: [_jsxs("div", { className: "data-space__viewer__execution-context__entry", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(CogIcon, { className: "data-space__viewer__execution-context__context-icon" }) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution-context__entry__content__dropdown", options: executionContextOptions, onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: true, formatOptionLabel: formatExecutionContextOptionLabel }) })] }), _jsx("div", { className: clsx('data-space__viewer__execution-context__description', {
53
- 'data-space__viewer__execution-context__description--empty': !dataSpaceViewerState.currentExecutionContext.description,
54
- }), children: dataSpaceViewerState.currentExecutionContext.description
55
- ? dataSpaceViewerState.currentExecutionContext.description
56
- : 'No description' }), _jsxs("div", { className: "data-space__viewer__execution-context__entry data-space__viewer__execution-context__mapping", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(PURE_MappingIcon, {}) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__text", children: dataSpaceViewerState.currentExecutionContext.mapping.path })] }), _jsxs("div", { className: "data-space__viewer__execution-context__entry", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(PURE_RuntimeIcon, {}) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution-context__entry__content__dropdown", options: runtimeOptions, onChange: onRuntimeOptionChange, value: selectedRuntimeOption, darkMode: true, formatOptionLabel: formatRuntimeOptionLabel }) })] })] }) }));
54
+ return (_jsx("div", { className: "data-space__viewer__panel", children: _jsxs("div", { className: "data-space__viewer__execution-context", children: [_jsxs("div", { className: "data-space__viewer__execution-context__entry", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(PlayIcon, { className: "data-space__viewer__execution-context__context-icon" }) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution-context__entry__content__dropdown", options: executionContextOptions, onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: !applicationStore.layoutService
55
+ .TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatExecutionContextOptionLabel }) })] }), _jsxs("div", { className: "data-space__viewer__execution-context__entry data-space__viewer__execution-context__mapping", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(PURE_MappingIcon, {}) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__text", children: dataSpaceViewerState.currentExecutionContext.mapping.path })] }), _jsxs("div", { className: "data-space__viewer__execution-context__entry", children: [_jsx("div", { className: "data-space__viewer__execution-context__entry__icon", children: _jsx(PURE_RuntimeIcon, {}) }), _jsx("div", { className: "data-space__viewer__execution-context__entry__content data-space__viewer__execution-context__entry__content__dropdown__container", children: _jsx(CustomSelectorInput, { className: "data-space__viewer__execution-context__entry__content__dropdown", options: runtimeOptions, onChange: onRuntimeOptionChange, value: selectedRuntimeOption, darkMode: !applicationStore.layoutService
56
+ .TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatRuntimeOptionLabel }) })] })] }) }));
57
57
  });
58
58
  //# sourceMappingURL=DataSpaceExecutionContextViewer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceExecutionContextViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceExecutionContextViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAO9E,MAAM,2BAA2B,GAAG,CAClC,KAA8C,EACtB,EAAE,CAAC,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC,IAAI;IACjB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAMH,MAAM,kBAAkB,GAAG,CAAC,KAAyB,EAAiB,EAAE,CAAC,CAAC;IACxE,KAAK,EAAE,KAAK,CAAC,IAAI;IACjB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,QAAQ,CACrD,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,cAAc,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;IACpE,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAClC,oBAAoB,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,MAAM,EAAE,CAC7E,CAAC;IAEF,YAAY;IACZ,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,GAAG,CACnD,2BAA2B,CAC5B,CAAC;IACF,MAAM,8BAA8B,GAAG,2BAA2B,CAChE,oBAAoB,CAAC,uBAAuB,CAC7C,CAAC;IACF,MAAM,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C,8CAA8C,aAC3D,cAAK,SAAS,EAAC,oDAAoD,YACjE,KAAC,OAAO,IAAC,SAAS,EAAC,qDAAqD,GAAG,GACvE,EACN,cAAK,SAAS,EAAC,kIAAkI,YAC/I,KAAC,mBAAmB,IAClB,SAAS,EAAC,iEAAiE,EAC3E,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,8BAA8B,EACxC,KAAK,EAAE,8BAA8B,EACrC,QAAQ,EAAE,IAAI,EACd,iBAAiB,EAAE,iCAAiC,GACpD,GACE,IACF,EACN,cACE,SAAS,EAAE,IAAI,CACb,oDAAoD,EACpD;wBACE,2DAA2D,EACzD,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,WAAW;qBAC5D,CACF,YAEA,oBAAoB,CAAC,uBAAuB,CAAC,WAAW;wBACvD,CAAC,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,WAAW;wBAC1D,CAAC,CAAC,gBAAgB,GAChB,EACN,eAAK,SAAS,EAAC,6FAA6F,aAC1G,cAAK,SAAS,EAAC,oDAAoD,YACjE,KAAC,gBAAgB,KAAG,GAChB,EACN,cAAK,SAAS,EAAC,mHAAmH,YAC/H,oBAAoB,CAAC,uBAAuB,CAAC,OAAO,CAAC,IAAI,GACtD,IACF,EACN,eAAK,SAAS,EAAC,8CAA8C,aAC3D,cAAK,SAAS,EAAC,oDAAoD,YACjE,KAAC,gBAAgB,KAAG,GAChB,EACN,cAAK,SAAS,EAAC,kIAAkI,YAC/I,KAAC,mBAAmB,IAClB,SAAS,EAAC,iEAAiE,EAC3E,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,qBAAqB,EAC/B,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EAAE,IAAI,EACd,iBAAiB,EAAE,wBAAwB,GAC3C,GACE,IACF,IACF,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"DataSpaceExecutionContextViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceExecutionContextViewer.t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xE,EACN,cAAK,SAAS,EAAC,kIAAkI,YAC/I,KAAC,mBAAmB,IAClB,SAAS,EAAC,iEAAiE,EAC3E,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,8BAA8B,EACxC,KAAK,EAAE,8BAA8B,EACrC,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;qCAC5B,mCAAmC,EAExC,iBAAiB,EAAE,iCAAiC,GACpD,GACE,IACF,EACN,eAAK,SAAS,EAAC,6FAA6F,aAC1G,cAAK,SAAS,EAAC,oDAAoD,YACjE,KAAC,gBAAgB,KAAG,GAChB,EACN,cAAK,SAAS,EAAC,mHAAmH,YAC/H,oBAAoB,CAAC,uBAAuB,CAAC,OAAO,CAAC,IAAI,GACtD,IACF,EACN,eAAK,SAAS,EAAC,8CAA8C,aAC3D,cAAK,SAAS,EAAC,oDAAoD,YACjE,KAAC,gBAAgB,KAAG,GAChB,EACN,cAAK,SAAS,EAAC,kIAAkI,YAC/I,KAAC,mBAAmB,IAClB,SAAS,EAAC,iEAAiE,EAC3E,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,qBAAqB,EAC/B,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;qCAC5B,mCAAmC,EAExC,iBAAiB,EAAE,wBAAwB,GAC3C,GACE,IACF,IACF,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ export declare const DataSpaceMarkdownTextViewer: React.FC<{
18
+ value: string;
19
+ }>;
20
+ //# sourceMappingURL=DataSpaceMarkdownTextViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceMarkdownTextViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceMarkdownTextViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAcnE,CAAC"}
@@ -0,0 +1,25 @@
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 { MarkdownTextViewer } from '@finos/legend-art';
18
+ export const DataSpaceMarkdownTextViewer = (props) => (_jsx(MarkdownTextViewer, { className: "data-space__viewer__markdown-text-viewer", value: {
19
+ value: props.value,
20
+ }, components: {
21
+ h1: 'h2',
22
+ h2: 'h3',
23
+ h3: 'h4',
24
+ } }));
25
+ //# sourceMappingURL=DataSpaceMarkdownTextViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceMarkdownTextViewer.js","sourceRoot":"","sources":["../../src/components/DataSpaceMarkdownTextViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,CAAC,MAAM,2BAA2B,GAAgC,CACtE,KAAK,EACL,EAAE,CAAC,CACH,KAAC,kBAAkB,IACjB,SAAS,EAAC,0CAA0C,EACpD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK,CAAC,KAAK;KACnB,EACD,UAAU,EAAE;QACV,EAAE,EAAE,IAAI;QACR,EAAE,EAAE,IAAI;QACR,EAAE,EAAE,IAAI;KACT,GACD,CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceModelsDocumentation.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceModelsDocumentation.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAI9E,eAAO,MAAM,4BAA4B,WAC/B;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAoEvD,CAAC"}
1
+ {"version":3,"file":"DataSpaceModelsDocumentation.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceModelsDocumentation.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAIH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAK9E,eAAO,MAAM,4BAA4B,WAC/B;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA0EvD,CAAC"}
@@ -15,46 +15,44 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import { observer } from 'mobx-react-lite';
18
- import { BlankPanelContent, SearchIcon } from '@finos/legend-art';
18
+ import { AnchorLinkIcon, SearchIcon } from '@finos/legend-art';
19
19
  import {} from '../stores/DataSpaceViewerState.js';
20
20
  import { AgGridReact } from '@ag-grid-community/react';
21
21
  import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
22
+ import { DataSpaceWikiPlaceholder } from './DataSpacePlaceholder.js';
22
23
  export const DataSpaceModelsDocumentation = observer((props) => {
23
24
  const { dataSpaceViewerState } = props;
24
25
  const documentationEntries = dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs;
25
- if (documentationEntries.length === 0) {
26
- return _jsx(BlankPanelContent, { children: "No documentation available" });
27
- }
28
- return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: "Models Documentation" }), _jsx("div", { className: "data-space__viewer__wiki__section__content", children: _jsxs("div", { className: "data-space__viewer__models-documentation", children: [_jsx("div", { className: "data-space__viewer__models-documentation__search", children: _jsxs("div", { className: "data-space__viewer__models-documentation__search__input-group", children: [_jsx("input", { className: "data-space__viewer__models-documentation__search__input-group__input" }), _jsx("div", { className: "data-space__viewer__models-documentation__search-box__input-group__icon", children: _jsx(SearchIcon, {}) })] }) }), _jsx("div", { className: "data-space__viewer__models-documentation__grid ag-theme-balham-dark", children: _jsx(AgGridReact, { rowData: documentationEntries, gridOptions: {
29
- suppressScrollOnNewData: true,
30
- getRowId: (rowData) => rowData.data.uuid,
31
- }, modules: [ClientSideRowModelModule], suppressFieldDotNotation: true, columnDefs: [
32
- {
33
- minWidth: 50,
34
- sortable: true,
35
- resizable: true,
36
- field: 'elementPath',
37
- headerName: 'Model',
38
- flex: 1,
39
- },
40
- {
41
- minWidth: 50,
42
- sortable: false,
43
- resizable: true,
44
- field: 'subElementText',
45
- headerName: '',
46
- flex: 1,
47
- },
48
- {
49
- minWidth: 50,
50
- sortable: false,
51
- resizable: true,
52
- field: 'doc',
53
- headerName: 'Documentation',
54
- flex: 1,
55
- wrapText: true,
56
- autoHeight: true,
57
- },
58
- ] }) })] }) })] }));
26
+ return (_jsxs("div", { className: "data-space__viewer__wiki__section", children: [_jsx("div", { className: "data-space__viewer__wiki__section__header", children: _jsxs("div", { className: "data-space__viewer__wiki__section__header__label", children: ["Models Documentation", _jsx("div", { className: "data-space__viewer__wiki__section__header__anchor", children: _jsx(AnchorLinkIcon, {}) })] }) }), _jsxs("div", { className: "data-space__viewer__wiki__section__content", children: [documentationEntries.length > 0 && (_jsxs("div", { className: "data-space__viewer__models-documentation", children: [_jsx("div", { className: "data-space__viewer__models-documentation__search", children: _jsxs("div", { className: "data-space__viewer__models-documentation__search__input-group", children: [_jsx("input", { className: "data-space__viewer__models-documentation__search__input-group__input input" }), _jsx("div", { className: "data-space__viewer__models-documentation__search__input-group__icon", children: _jsx(SearchIcon, {}) })] }) }), _jsx("div", { className: "data-space__viewer__models-documentation__grid data-space__viewer__grid ag-theme-balham-dark", children: _jsx(AgGridReact, { rowData: documentationEntries, gridOptions: {
27
+ suppressScrollOnNewData: true,
28
+ getRowId: (rowData) => rowData.data.uuid,
29
+ }, modules: [ClientSideRowModelModule], suppressFieldDotNotation: true, columnDefs: [
30
+ {
31
+ minWidth: 50,
32
+ sortable: true,
33
+ resizable: true,
34
+ field: 'elementPath',
35
+ headerName: 'Model',
36
+ flex: 1,
37
+ },
38
+ {
39
+ minWidth: 50,
40
+ sortable: false,
41
+ resizable: true,
42
+ field: 'subElementText',
43
+ headerName: '',
44
+ flex: 1,
45
+ },
46
+ {
47
+ minWidth: 50,
48
+ sortable: false,
49
+ resizable: true,
50
+ field: 'doc',
51
+ headerName: 'Documentation',
52
+ flex: 1,
53
+ wrapText: true,
54
+ autoHeight: true,
55
+ },
56
+ ] }) })] })), documentationEntries.length === 0 && (_jsx(DataSpaceWikiPlaceholder, { message: "No documentation provided" }))] })] }));
59
57
  });
60
58
  //# sourceMappingURL=DataSpaceModelsDocumentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceModelsDocumentation.js","sourceRoot":"","sources":["../../src/components/DataSpaceModelsDocumentation.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAA6B,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;wCACZ,QAAQ,EAAE,KAAK;wCACf,SAAS,EAAE,IAAI;wCACf,KAAK,EAAE,gBAAgB;wCACvB,UAAU,EAAE,EAAE;wCACd,IAAI,EAAE,CAAC;qCACR;oCACD;wCACE,QAAQ,EAAE,EAAE;wCACZ,QAAQ,EAAE,KAAK;wCACf,SAAS,EAAE,IAAI;wCACf,KAAK,EAAE,KAAK;wCACZ,UAAU,EAAE,eAAe;wCAC3B,IAAI,EAAE,CAAC;wCACP,QAAQ,EAAE,IAAI;wCACd,UAAU,EAAE,IAAI;qCACjB;iCACF,GACD,GACE,IACF,GACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"DataSpaceModelsDocumentation.js","sourceRoot":"","sources":["../../src/components/DataSpaceModelsDocumentation.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAA6B,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,CAAC,MAAM,4BAA4B,GAAG,QAAQ,CAClD,CAAC,KAAqD,EAAE,EAAE;IACxD,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,oBAAoB,GACxB,oBAAoB,CAAC,uBAAuB,CAAC,WAAW,CAAC;IAE3D,OAAO,CACL,eAAK,SAAS,EAAC,mCAAmC,aAChD,cAAK,SAAS,EAAC,2CAA2C,YACxD,eAAK,SAAS,EAAC,kDAAkD,qCAE/D,cAAK,SAAS,EAAC,mDAAmD,YAChE,KAAC,cAAc,KAAG,GACd,IACF,GACF,E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B,GAAG,CACjE,IACG,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ export declare const DataSpaceWikiPlaceholder: React.FC<{
18
+ message: string;
19
+ }>;
20
+ //# sourceMappingURL=DataSpacePlaceholder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpacePlaceholder.d.ts","sourceRoot":"","sources":["../../src/components/DataSpacePlaceholder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAIlE,CAAC"}
@@ -0,0 +1,18 @@
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
+ export const DataSpaceWikiPlaceholder = (props) => (_jsx("div", { className: "data-space__viewer__wiki__placeholder", children: props.message }));
18
+ //# sourceMappingURL=DataSpacePlaceholder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpacePlaceholder.js","sourceRoot":"","sources":["../../src/components/DataSpacePlaceholder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAkC,CACrE,KAAK,EACL,EAAE,CAAC,CACH,cAAK,SAAS,EAAC,uCAAuC,YAAE,KAAK,CAAC,OAAO,GAAO,CAC7E,CAAC"}
@@ -1,4 +1,3 @@
1
- export {};
2
1
  /**
3
2
  * Copyright (c) 2020-present, Goldman Sachs
4
3
  *
@@ -14,4 +13,11 @@ export {};
14
13
  * See the License for the specific language governing permissions and
15
14
  * limitations under the License.
16
15
  */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
18
+ export declare const DataSpaceQuickStart: ((props: {
19
+ dataSpaceViewerState: DataSpaceViewerState;
20
+ }) => JSX.Element) & {
21
+ displayName: string;
22
+ };
17
23
  //# sourceMappingURL=DataSpaceQuickStart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQuickStart.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceQuickStart.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
1
+ {"version":3,"file":"DataSpaceQuickStart.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceQuickStart.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAYH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAiT9E,eAAO,MAAM,mBAAmB,WACtB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAgDvD,CAAC"}