@finos/legend-extension-dsl-data-space 10.0.11 → 10.0.13

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 (126) hide show
  1. package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.d.ts +28 -0
  2. package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.d.ts.map +1 -0
  3. package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js +70 -0
  4. package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js.map +1 -0
  5. package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.d.ts +20 -0
  6. package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.d.ts.map +1 -0
  7. package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.js +21 -0
  8. package/lib/__lib__/DSL_DataSpace_LegendApplicationNavigation.js.map +1 -0
  9. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +3 -1
  10. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
  11. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +13 -1
  12. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
  13. package/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
  14. package/lib/components/DataSpaceDataAccess.js +5 -76
  15. package/lib/components/DataSpaceDataAccess.js.map +1 -1
  16. package/lib/components/DataSpaceDescription.d.ts.map +1 -1
  17. package/lib/components/DataSpaceDescription.js +2 -1
  18. package/lib/components/DataSpaceDescription.js.map +1 -1
  19. package/lib/components/DataSpaceDiagramViewer.d.ts.map +1 -1
  20. package/lib/components/DataSpaceDiagramViewer.js +110 -39
  21. package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
  22. package/lib/components/DataSpaceExecutionContextViewer.d.ts.map +1 -1
  23. package/lib/components/DataSpaceExecutionContextViewer.js +3 -3
  24. package/lib/components/DataSpaceExecutionContextViewer.js.map +1 -1
  25. package/lib/components/DataSpaceInfoPanel.d.ts.map +1 -1
  26. package/lib/components/DataSpaceInfoPanel.js +6 -6
  27. package/lib/components/DataSpaceInfoPanel.js.map +1 -1
  28. package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
  29. package/lib/components/DataSpaceModelsDocumentation.js +18 -8
  30. package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
  31. package/lib/components/DataSpacePlaceholder.d.ts +4 -0
  32. package/lib/components/DataSpacePlaceholder.d.ts.map +1 -1
  33. package/lib/components/DataSpacePlaceholder.js +6 -1
  34. package/lib/components/DataSpacePlaceholder.js.map +1 -1
  35. package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
  36. package/lib/components/DataSpaceQuickStart.js +24 -11
  37. package/lib/components/DataSpaceQuickStart.js.map +1 -1
  38. package/lib/components/DataSpaceSupportPanel.d.ts.map +1 -1
  39. package/lib/components/DataSpaceSupportPanel.js +17 -8
  40. package/lib/components/DataSpaceSupportPanel.js.map +1 -1
  41. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  42. package/lib/components/DataSpaceViewer.js +34 -13
  43. package/lib/components/DataSpaceViewer.js.map +1 -1
  44. package/lib/components/DataSpaceViewerActivityBar.d.ts.map +1 -1
  45. package/lib/components/DataSpaceViewerActivityBar.js +15 -12
  46. package/lib/components/DataSpaceViewerActivityBar.js.map +1 -1
  47. package/lib/components/index.d.ts +1 -0
  48. package/lib/components/index.d.ts.map +1 -1
  49. package/lib/components/index.js +1 -0
  50. package/lib/components/index.js.map +1 -1
  51. package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +1 -1
  52. package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
  53. package/lib/index.css +2 -2
  54. package/lib/index.css.map +1 -1
  55. package/lib/package.json +2 -2
  56. package/lib/stores/DataSpaceLayoutState.d.ts +46 -0
  57. package/lib/stores/DataSpaceLayoutState.d.ts.map +1 -1
  58. package/lib/stores/DataSpaceLayoutState.js +184 -1
  59. package/lib/stores/DataSpaceLayoutState.js.map +1 -1
  60. package/lib/stores/DataSpaceModelsDocumentationState.d.ts +11 -2
  61. package/lib/stores/DataSpaceModelsDocumentationState.d.ts.map +1 -1
  62. package/lib/stores/DataSpaceModelsDocumentationState.js +41 -0
  63. package/lib/stores/DataSpaceModelsDocumentationState.js.map +1 -1
  64. package/lib/stores/DataSpaceQuickStartState.d.ts +24 -0
  65. package/lib/stores/DataSpaceQuickStartState.d.ts.map +1 -0
  66. package/lib/stores/DataSpaceQuickStartState.js +48 -0
  67. package/lib/stores/DataSpaceQuickStartState.js.map +1 -0
  68. package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts +44 -0
  69. package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts.map +1 -0
  70. package/lib/stores/DataSpaceViewerDiagramViewerState.js +194 -0
  71. package/lib/stores/DataSpaceViewerDiagramViewerState.js.map +1 -0
  72. package/lib/stores/DataSpaceViewerNavigation.d.ts +36 -0
  73. package/lib/stores/DataSpaceViewerNavigation.d.ts.map +1 -0
  74. package/lib/stores/DataSpaceViewerNavigation.js +47 -0
  75. package/lib/stores/DataSpaceViewerNavigation.js.map +1 -0
  76. package/lib/stores/DataSpaceViewerState.d.ts +22 -74
  77. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  78. package/lib/stores/DataSpaceViewerState.js +34 -259
  79. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  80. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
  81. package/lib/stores/query/DataSpaceAdvancedSearchState.js +8 -5
  82. package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
  83. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +8 -8
  84. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
  85. package/lib/stores/query/DataSpaceQueryCreatorStore.js +1 -1
  86. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
  87. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +1 -1
  88. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +1 -1
  89. package/lib/stores/query/DataSpaceQuerySetupStore.js +1 -1
  90. package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -1
  91. package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -1
  92. package/lib/stores/studio/DataSpacePreviewState.js +15 -3
  93. package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
  94. package/package.json +14 -14
  95. package/src/__lib__/DSL_DataSpace_LegendApplicationCommand.ts +74 -0
  96. package/src/__lib__/DSL_DataSpace_LegendApplicationNavigation.ts +33 -0
  97. package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +20 -1
  98. package/src/components/DataSpaceDataAccess.tsx +9 -122
  99. package/src/components/DataSpaceDescription.tsx +5 -5
  100. package/src/components/DataSpaceDiagramViewer.tsx +449 -69
  101. package/src/components/DataSpaceExecutionContextViewer.tsx +47 -40
  102. package/src/components/DataSpaceInfoPanel.tsx +107 -117
  103. package/src/components/DataSpaceModelsDocumentation.tsx +31 -12
  104. package/src/components/DataSpacePlaceholder.tsx +22 -0
  105. package/src/components/DataSpaceQuickStart.tsx +95 -15
  106. package/src/components/DataSpaceSupportPanel.tsx +146 -14
  107. package/src/components/DataSpaceViewer.tsx +153 -23
  108. package/src/components/DataSpaceViewerActivityBar.tsx +40 -20
  109. package/src/components/index.ts +1 -0
  110. package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +1 -1
  111. package/src/stores/DataSpaceLayoutState.ts +272 -0
  112. package/src/stores/DataSpaceModelsDocumentationState.ts +61 -2
  113. package/src/stores/DataSpaceQuickStartState.ts +91 -0
  114. package/src/stores/DataSpaceViewerDiagramViewerState.ts +245 -0
  115. package/src/stores/DataSpaceViewerNavigation.ts +64 -0
  116. package/src/stores/DataSpaceViewerState.ts +88 -401
  117. package/src/stores/query/DataSpaceAdvancedSearchState.ts +30 -6
  118. package/src/stores/query/DataSpaceQueryCreatorStore.ts +8 -8
  119. package/src/stores/query/DataSpaceQuerySetupStore.ts +1 -1
  120. package/src/stores/studio/DataSpacePreviewState.ts +27 -5
  121. package/tsconfig.json +5 -1
  122. package/lib/stores/DataSpaceViewerDataAccessState.d.ts +0 -35
  123. package/lib/stores/DataSpaceViewerDataAccessState.d.ts.map +0 -1
  124. package/lib/stores/DataSpaceViewerDataAccessState.js +0 -98
  125. package/lib/stores/DataSpaceViewerDataAccessState.js.map +0 -1
  126. package/src/stores/DataSpaceViewerDataAccessState.ts +0 -143
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.0.11",
3
+ "version": "10.0.13",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -55,7 +55,7 @@
55
55
  "@finos/legend-server-depot": "workspace:*",
56
56
  "@finos/legend-shared": "workspace:*",
57
57
  "@finos/legend-storage": "workspace:*",
58
- "@types/react": "18.2.0",
58
+ "@types/react": "18.2.1",
59
59
  "mobx": "6.9.0",
60
60
  "mobx-react-lite": "3.4.3",
61
61
  "react": "18.2.0",
@@ -1,2 +1,48 @@
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 DataSpaceViewerState } from './DataSpaceViewerState.js';
17
+ import { DATA_SPACE_VIEWER_ACTIVITY_MODE } from './DataSpaceViewerNavigation.js';
18
+ export declare const DATA_SPACE_WIKI_PAGE_SECTIONS: DATA_SPACE_VIEWER_ACTIVITY_MODE[];
19
+ type DataSpacePageNavigationCommand = {
20
+ anchor: string;
21
+ };
22
+ export declare class DataSpaceLayoutState {
23
+ readonly dataSpaceViewerState: DataSpaceViewerState;
24
+ currentNavigationZone: string;
25
+ isExpandedModeEnabled: boolean;
26
+ frame?: HTMLElement | undefined;
27
+ header?: HTMLElement | undefined;
28
+ isTopScrollerVisible: boolean;
29
+ private wikiPageAnchorIndex;
30
+ wikiPageNavigationCommand?: DataSpacePageNavigationCommand | undefined;
31
+ private wikiPageVisibleAnchors;
32
+ private wikiPageScrollIntersectionObserver?;
33
+ constructor(dataSpaceViewerState: DataSpaceViewerState);
34
+ setCurrentNavigationZone(val: string): void;
35
+ get isWikiPageFullyRendered(): boolean;
36
+ registerWikiPageScrollObserver(): void;
37
+ unregisterWikiPageScrollObserver(): void;
38
+ private updatePageVisibleAnchors;
39
+ enableExpandedMode(val: boolean): void;
40
+ setFrame(val: HTMLElement | undefined): void;
41
+ setTopScrollerVisible(val: boolean): void;
42
+ setWikiPageAnchor(anchorKey: string, element: HTMLElement): void;
43
+ unsetWikiPageAnchor(anchorKey: string): void;
44
+ setWikiPageAnchorToNavigate(val: DataSpacePageNavigationCommand | undefined): void;
45
+ navigateWikiPageAnchor(): void;
46
+ }
1
47
  export {};
2
48
  //# sourceMappingURL=DataSpaceLayoutState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceLayoutState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceLayoutState.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"DataSpaceLayoutState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceLayoutState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAOtE,OAAO,EACL,+BAA+B,EAIhC,MAAM,gCAAgC,CAA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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 { NAVIGATION_ZONE_SEPARATOR } from '@finos/legend-application';
17
+ import { action, computed, makeObservable, observable } from 'mobx';
18
+ import {} from './DataSpaceViewerState.js';
19
+ import { getNonNullableEntry, getNullableFirstEntry, guaranteeNonNullable, isNonNullable, } from '@finos/legend-shared';
20
+ import { DATA_SPACE_VIEWER_ACTIVITY_MODE, extractActivityFromAnchor, generateAnchorForActivity, generateAnchorForDiagram, } from './DataSpaceViewerNavigation.js';
21
+ export const DATA_SPACE_WIKI_PAGE_SECTIONS = [
22
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.DESCRIPTION,
23
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
24
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_DOCUMENTATION,
25
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START,
26
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.DATA_ACCESS,
27
+ ];
28
+ const DATA_SPACE_WIKI_PAGE_ANCHORS = DATA_SPACE_WIKI_PAGE_SECTIONS.map((activity) => generateAnchorForActivity(activity));
29
+ export class DataSpaceLayoutState {
30
+ dataSpaceViewerState;
31
+ currentNavigationZone = '';
32
+ isExpandedModeEnabled = false;
33
+ frame;
34
+ header;
35
+ isTopScrollerVisible = false;
36
+ wikiPageAnchorIndex = new Map();
37
+ wikiPageNavigationCommand;
38
+ wikiPageVisibleAnchors = [];
39
+ wikiPageScrollIntersectionObserver;
40
+ constructor(dataSpaceViewerState) {
41
+ makeObservable(this, {
42
+ currentNavigationZone: observable,
43
+ isExpandedModeEnabled: observable,
44
+ isTopScrollerVisible: observable,
45
+ wikiPageAnchorIndex: observable,
46
+ wikiPageVisibleAnchors: observable,
47
+ frame: observable.ref,
48
+ wikiPageNavigationCommand: observable.ref,
49
+ isWikiPageFullyRendered: computed,
50
+ registerWikiPageScrollObserver: action,
51
+ setCurrentNavigationZone: action,
52
+ enableExpandedMode: action,
53
+ setFrame: action,
54
+ setTopScrollerVisible: action,
55
+ setWikiPageAnchor: action,
56
+ unsetWikiPageAnchor: action,
57
+ setWikiPageAnchorToNavigate: action,
58
+ updatePageVisibleAnchors: action,
59
+ });
60
+ this.dataSpaceViewerState = dataSpaceViewerState;
61
+ }
62
+ setCurrentNavigationZone(val) {
63
+ this.currentNavigationZone = val;
64
+ }
65
+ get isWikiPageFullyRendered() {
66
+ return (Boolean(this.frame) &&
67
+ DATA_SPACE_WIKI_PAGE_SECTIONS.includes(this.dataSpaceViewerState.currentActivity) &&
68
+ DATA_SPACE_WIKI_PAGE_ANCHORS.every((anchor) => this.wikiPageAnchorIndex.has(anchor)) &&
69
+ Array.from(this.wikiPageAnchorIndex.values()).every(isNonNullable));
70
+ }
71
+ registerWikiPageScrollObserver() {
72
+ if (this.frame && this.isWikiPageFullyRendered) {
73
+ const wikiPageIntersectionObserver = new IntersectionObserver((entries, observer) => {
74
+ const anchorsWithVisibilityChanged = entries
75
+ .map((entry) => {
76
+ for (const [key, element] of this.wikiPageAnchorIndex.entries()) {
77
+ if (element === entry.target) {
78
+ return { key, isIntersecting: entry.isIntersecting };
79
+ }
80
+ }
81
+ return undefined;
82
+ })
83
+ .filter(isNonNullable);
84
+ anchorsWithVisibilityChanged.forEach((entry) => {
85
+ this.updatePageVisibleAnchors(entry.key, entry.isIntersecting);
86
+ });
87
+ // NOTE: sync scroll with menu/address is quite a delicate piece of work
88
+ // as it interferes with programatic scroll operations we do elsewhere.
89
+ // This is particularly bad when we do a programatic `smooth` scroll, which
90
+ // mimic user scrolling behavior and would tangle up with this observer
91
+ // Since currently, there's no good mechanism to detect scroll end event, and as such,
92
+ // there is no good way to temporarily disable this logic while doing the programmatic
93
+ // smooth scroll as such, we avoid supporting programatic smooth scrolling for now
94
+ // See https://github.com/w3c/csswg-drafts/issues/3744
95
+ // See https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollend_event
96
+ if (
97
+ // if current navigation zone is not set, do not update zone
98
+ this.currentNavigationZone === '' ||
99
+ // if there is no visible anchors, do not update zone
100
+ !this.wikiPageVisibleAnchors.length ||
101
+ // if some of the current visible anchors match or is parent section of the current
102
+ // navigation zone, do not update zone
103
+ this.wikiPageVisibleAnchors.some((visibleAnchor) => this.currentNavigationZone === visibleAnchor ||
104
+ this.currentNavigationZone.startsWith(`${visibleAnchor}${NAVIGATION_ZONE_SEPARATOR}`))) {
105
+ return;
106
+ }
107
+ const anchor = getNonNullableEntry(this.wikiPageVisibleAnchors, 0);
108
+ this.dataSpaceViewerState.syncZoneWithNavigation(anchor);
109
+ const anchorChunks = anchor.split(NAVIGATION_ZONE_SEPARATOR);
110
+ const activity = getNullableFirstEntry(anchorChunks);
111
+ if (activity) {
112
+ this.dataSpaceViewerState.setCurrentActivity(extractActivityFromAnchor(activity));
113
+ }
114
+ }, {
115
+ root: this.frame,
116
+ threshold: 0.5,
117
+ });
118
+ Array.from(this.wikiPageAnchorIndex.values()).forEach((el) => wikiPageIntersectionObserver.observe(el));
119
+ this.wikiPageScrollIntersectionObserver = wikiPageIntersectionObserver;
120
+ }
121
+ }
122
+ unregisterWikiPageScrollObserver() {
123
+ this.wikiPageScrollIntersectionObserver?.disconnect();
124
+ this.wikiPageScrollIntersectionObserver = undefined;
125
+ this.wikiPageVisibleAnchors = [];
126
+ }
127
+ updatePageVisibleAnchors(changedAnchor, isIntersecting) {
128
+ if (isIntersecting) {
129
+ const anchors = this.wikiPageVisibleAnchors.filter((anchor) => changedAnchor !== anchor);
130
+ // NOTE: the newly visible anchors should be the furthest one in
131
+ // the direction of scroll
132
+ anchors.push(changedAnchor);
133
+ this.wikiPageVisibleAnchors = anchors;
134
+ }
135
+ else {
136
+ this.wikiPageVisibleAnchors = this.wikiPageVisibleAnchors.filter((anchor) => changedAnchor !== anchor);
137
+ }
138
+ }
139
+ enableExpandedMode(val) {
140
+ this.isExpandedModeEnabled = val;
141
+ }
142
+ setFrame(val) {
143
+ this.frame = val;
144
+ }
145
+ setTopScrollerVisible(val) {
146
+ this.isTopScrollerVisible = val;
147
+ }
148
+ setWikiPageAnchor(anchorKey, element) {
149
+ // do not allow overriding existing anchor
150
+ if (!this.wikiPageAnchorIndex.has(anchorKey)) {
151
+ this.wikiPageAnchorIndex.set(anchorKey, element);
152
+ }
153
+ }
154
+ unsetWikiPageAnchor(anchorKey) {
155
+ this.wikiPageAnchorIndex.delete(anchorKey);
156
+ }
157
+ setWikiPageAnchorToNavigate(val) {
158
+ this.wikiPageNavigationCommand = val;
159
+ }
160
+ navigateWikiPageAnchor() {
161
+ if (this.frame &&
162
+ this.wikiPageNavigationCommand &&
163
+ this.isWikiPageFullyRendered) {
164
+ const anchor = this.wikiPageNavigationCommand.anchor;
165
+ const matchingWikiPageSection = this.wikiPageAnchorIndex.get(anchor);
166
+ const anchorChunks = anchor.split(NAVIGATION_ZONE_SEPARATOR);
167
+ if (matchingWikiPageSection) {
168
+ this.frame.scrollTop =
169
+ matchingWikiPageSection.offsetTop -
170
+ (this.header?.getBoundingClientRect().height ?? 0);
171
+ }
172
+ else if (getNullableFirstEntry(anchorChunks) ===
173
+ generateAnchorForActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER)) {
174
+ this.frame.scrollTop =
175
+ guaranteeNonNullable(this.wikiPageAnchorIndex.get(generateAnchorForActivity(DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER))).offsetTop - (this.header?.getBoundingClientRect().height ?? 0);
176
+ const matchingDiagram = this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.find((diagram) => generateAnchorForDiagram(diagram) === anchor);
177
+ if (matchingDiagram) {
178
+ this.dataSpaceViewerState.diagramViewerState.setCurrentDiagram(matchingDiagram);
179
+ }
180
+ }
181
+ this.setWikiPageAnchorToNavigate(undefined);
182
+ }
183
+ }
184
+ }
2
185
  //# sourceMappingURL=DataSpaceLayoutState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceLayoutState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceLayoutState.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"DataSpaceLayoutState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceLayoutState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAA6B,MAAM,2BAA2B,CAAC;AACtE,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,+BAA+B,CAAC,WAAW;IAC3C,+BAA+B,CAAC,cAAc;IAC9C,+BAA+B,CAAC,oBAAoB;IACpD,+BAA+B,CAAC,WAAW;IAC3C,+BAA+B,CAAC,WAAW;CAC5C,CAAC;AAEF,MAAM,4BAA4B,GAAG,6BAA6B,CAAC,GAAG,CACpE,CAAC,QAAQ,EAAE,EAAE,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAClD,CAAC;AAMF,MAAM,OAAO,oBAAoB;IACtB,oBAAoB,CAAuB;IAEpD,qBAAqB,GAAG,EAAE,CAAC;IAC3B,qBAAqB,GAAG,KAAK,CAAC;IAE9B,KAAK,CAA2B;IAChC,MAAM,CAA2B;IACjC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I,CAAC,MAAM,EAAE,qBAAqB,EAAE,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;aACtD;iBAAM,IACL,qBAAqB,CAAC,YAAY,CAAC;gBACnC,yBAAyB,CACvB,+BAA+B,CAAC,cAAc,CAC/C,EACD;gBACA,IAAI,CAAC,KAAK,CAAC,SAAS;oBAClB,oBAAoB,CAClB,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAC1B,yBAAyB,CACvB,+BAA+B,CAAC,cAAc,CAC/C,CACF,CACF,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,qBAAqB,EAAE,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;gBACnE,MAAM,eAAe,GACnB,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAC7D,CAAC,OAAO,EAAE,EAAE,CAAC,wBAAwB,CAAC,OAAO,CAAC,KAAK,MAAM,CAC1D,CAAC;gBACJ,IAAI,eAAe,EAAE;oBACnB,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,iBAAiB,CAC5D,eAAe,CAChB,CAAC;iBACH;aACF;YAED,IAAI,CAAC,2BAA2B,CAAC,SAAS,CAAC,CAAC;SAC7C;IACH,CAAC;CACF"}
@@ -13,11 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { DataSpaceViewerState } from './DataSpaceViewerState.js';
16
+ import { type DataSpaceViewerState } from './DataSpaceViewerState.js';
17
17
  import { type TreeData, type TreeNodeData } from '@finos/legend-art';
18
18
  import { ActionState, FuzzySearchAdvancedConfigState } from '@finos/legend-shared';
19
19
  import { type NormalizedDataSpaceDocumentationEntry } from '../graph-manager/action/analytics/DataSpaceAnalysis.js';
20
20
  import { CORE_PURE_PATH } from '@finos/legend-graph';
21
+ import type { CommandRegistrar } from '@finos/legend-application';
21
22
  export declare enum ModelsDocumentationFilterTreeNodeCheckType {
22
23
  CHECKED = 0,
23
24
  UNCHECKED = 1,
@@ -56,9 +57,10 @@ export declare class ModelsDocumentationFilterTreeTypeNodeData extends ModelsDoc
56
57
  export declare const uncheckFilterTreeNode: (node: ModelsDocumentationFilterTreeNodeData) => void;
57
58
  export declare const checkFilterTreeNode: (node: ModelsDocumentationFilterTreeNodeData) => void;
58
59
  export declare const uncheckAllFilterTree: (treeData: TreeData<ModelsDocumentationFilterTreeNodeData>) => void;
59
- export declare class DataSpaceViewerModelsDocumentationState {
60
+ export declare class DataSpaceViewerModelsDocumentationState implements CommandRegistrar {
60
61
  readonly dataSpaceViewerState: DataSpaceViewerState;
61
62
  showHumanizedForm: boolean;
63
+ private searchInput?;
62
64
  private readonly searchEngine;
63
65
  searchConfigurationState: FuzzySearchAdvancedConfigState;
64
66
  readonly searchState: ActionState;
@@ -88,5 +90,12 @@ export declare class DataSpaceViewerModelsDocumentationState {
88
90
  resetTypeFilter(): void;
89
91
  resetPackageFilter(): void;
90
92
  resetAllFilters(): void;
93
+ hasClassDocumentation(classPath: string): boolean;
94
+ viewClassDocumentation(classPath: string): void;
95
+ setSearchInput(el: HTMLInputElement | undefined): void;
96
+ focusSearchInput(): void;
97
+ selectSearchInput(): void;
98
+ registerCommands(): void;
99
+ deregisterCommands(): void;
91
100
  }
92
101
  //# sourceMappingURL=DataSpaceModelsDocumentationState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceModelsDocumentationState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceModelsDocumentationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EACL,WAAW,EAIX,8BAA8B,EAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAKL,KAAK,qCAAqC,EAC3C,MAAM,wDAAwD,CAAC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IAAI,IAAI;IAWxB,kBAAkB,IAAI,IAAI;CAS3B"}
@@ -14,10 +14,13 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { action, computed, makeObservable, observable } from 'mobx';
17
+ import {} from './DataSpaceViewerState.js';
17
18
  import {} from '@finos/legend-art';
18
19
  import { ActionState, filterByType, guaranteeNonNullable, FuzzySearchEngine, FuzzySearchAdvancedConfigState, } from '@finos/legend-shared';
19
20
  import { DataSpaceAssociationDocumentationEntry, DataSpaceClassDocumentationEntry, DataSpaceEnumerationDocumentationEntry, DataSpaceModelDocumentationEntry, } from '../graph-manager/action/analytics/DataSpaceAnalysis.js';
20
21
  import { CORE_PURE_PATH, ELEMENT_PATH_DELIMITER } from '@finos/legend-graph';
22
+ import { DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY } from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
23
+ import { DATA_SPACE_VIEWER_ACTIVITY_MODE } from './DataSpaceViewerNavigation.js';
21
24
  export var ModelsDocumentationFilterTreeNodeCheckType;
22
25
  (function (ModelsDocumentationFilterTreeNodeCheckType) {
23
26
  ModelsDocumentationFilterTreeNodeCheckType[ModelsDocumentationFilterTreeNodeCheckType["CHECKED"] = 0] = "CHECKED";
@@ -195,6 +198,7 @@ export class DataSpaceViewerModelsDocumentationState {
195
198
  dataSpaceViewerState;
196
199
  showHumanizedForm = true;
197
200
  // search text
201
+ searchInput;
198
202
  searchEngine;
199
203
  searchConfigurationState;
200
204
  searchState = ActionState.create();
@@ -391,5 +395,42 @@ export class DataSpaceViewerModelsDocumentationState {
391
395
  this.resetTypeFilter();
392
396
  this.resetPackageFilter();
393
397
  }
398
+ hasClassDocumentation(classPath) {
399
+ return this.dataSpaceViewerState.dataSpaceAnalysisResult.elementDocs.some((entry) => entry.elementEntry.path === classPath);
400
+ }
401
+ viewClassDocumentation(classPath) {
402
+ if (this.hasClassDocumentation(classPath)) {
403
+ const classNode = this.packageFilterTreeData.nodes.get(classPath);
404
+ if (classNode) {
405
+ uncheckAllFilterTree(this.packageFilterTreeData);
406
+ classNode.setCheckType(ModelsDocumentationFilterTreeNodeCheckType.CHECKED);
407
+ this.resetSearch();
408
+ this.updatePackageFilter();
409
+ }
410
+ }
411
+ }
412
+ setSearchInput(el) {
413
+ this.searchInput = el;
414
+ }
415
+ focusSearchInput() {
416
+ this.searchInput?.focus();
417
+ }
418
+ selectSearchInput() {
419
+ this.searchInput?.select();
420
+ }
421
+ registerCommands() {
422
+ const DEFAULT_TRIGGER = () => this.dataSpaceViewerState.currentActivity ===
423
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_DOCUMENTATION;
424
+ this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
425
+ key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.SEARCH_DOCUMENTATION,
426
+ trigger: DEFAULT_TRIGGER,
427
+ action: () => this.focusSearchInput(),
428
+ });
429
+ }
430
+ deregisterCommands() {
431
+ [
432
+ DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.SEARCH_DOCUMENTATION,
433
+ ].forEach((commandKey) => this.dataSpaceViewerState.applicationStore.commandService.deregisterCommand(commandKey));
434
+ }
394
435
  }
395
436
  //# sourceMappingURL=DataSpaceModelsDocumentationState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceModelsDocumentationState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceModelsDocumentationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAoC,MAAM,mBAAmB,CAAC;AACrE,OAAO,EACL,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sCAAsC,EACtC,gCAAgC,EAChC,sCAAsC,EACtC,gCA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AAI,EAAE,EAAE,CAChD,IAAI,CAAC,YAAY,CAAC,0CAA0C,CAAC,OAAO,CAAC,CACtE,CAAC;QACF,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC3B,IAAI,CAAC,0BAA0B,EAAE,CAAC;IACpC,CAAC;IAED,eAAe;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;QACvB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;CACF"}
1
+ {"version":3,"file":"DataSpaceModelsDocumentationState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceModelsDocumentationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAA6B,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAoC,MAAM,mBAAmB,CAAC;AACrE,OAAO,EACL,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sCAAsC,EACtC,gCAAgC,EAChC,sCAAsC,EACtC,gCAAgC,GAEjC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EAAE,6CAA6C,EAAE,MAAM,sDAAsD,CAAC;AACrH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAEjF,MAAM,CAAN,IAAY,0CAIX;AAJD,WAAY,0CAA0C;IACpD,iHAAO,CAAA;IACP,qHAAS,CAAA;IACT,qIAAiB,CAAA;AACnB,CAAC,EAJW,0CAA0C,GAA1C,0CAA0C,KAA1C,0CAA0C,QAIrD;AAED,MAAM,OAAgB,qCAAqC;IAGhD,EAAE,CAAS;IACX,KAAK,CAAS;IACd,UAAU,CAAoD;IACvE,MAAM,GAAG,KAAK,CAAC;I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B,CAAC,cAAc,CAAC,iBAAiB,CACzE,UAAU,CACX,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type DataSpaceViewerState } from './DataSpaceViewerState.js';
17
+ import { DataAccessState } from '@finos/legend-query-builder';
18
+ import { type DataSpaceExecutableAnalysisResult } from '../graph-manager/index.js';
19
+ export declare class DataSpaceQuickStartState {
20
+ readonly dataSpaceViewerState: DataSpaceViewerState;
21
+ dataAccessStateIndex: Map<DataSpaceExecutableAnalysisResult, DataAccessState>;
22
+ constructor(dataSpaceViewerState: DataSpaceViewerState);
23
+ }
24
+ //# sourceMappingURL=DataSpaceQuickStartState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQuickStartState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceQuickStartState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,2BAA2B,CAAC;AAMnC,qBAAa,wBAAwB;IACnC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAEpD,oBAAoB,0DAGhB;gBAEQ,oBAAoB,EAAE,oBAAoB;CAsDvD"}
@@ -0,0 +1,48 @@
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 { makeObservable, observable } from 'mobx';
17
+ import {} from './DataSpaceViewerState.js';
18
+ import { DataAccessState } from '@finos/legend-query-builder';
19
+ import { DataSpaceServiceExecutableInfo, } from '../graph-manager/index.js';
20
+ export class DataSpaceQuickStartState {
21
+ dataSpaceViewerState;
22
+ dataAccessStateIndex = new Map();
23
+ constructor(dataSpaceViewerState) {
24
+ makeObservable(this, {
25
+ dataAccessStateIndex: observable,
26
+ });
27
+ this.dataSpaceViewerState = dataSpaceViewerState;
28
+ dataSpaceViewerState.dataSpaceAnalysisResult.executables.forEach((executable) => {
29
+ let dataAccessState;
30
+ if (executable.info instanceof DataSpaceServiceExecutableInfo &&
31
+ executable.info.mapping &&
32
+ executable.info.runtime) {
33
+ const query = executable.info.query;
34
+ const mapping = executable.info.mapping;
35
+ const runtime = executable.info.runtime;
36
+ dataAccessState = new DataAccessState(this.dataSpaceViewerState.applicationStore, this.dataSpaceViewerState.graphManagerState, {
37
+ initialDatasets: executable.datasets,
38
+ surveyDatasets: async () => this.dataSpaceViewerState.graphManagerState.graphManager.surveyDatasets(mapping, runtime, await this.dataSpaceViewerState.graphManagerState.graphManager.pureCodeToLambda(query), this.dataSpaceViewerState.retrieveGraphData()),
39
+ checkDatasetEntitlements: async (datasets) => this.dataSpaceViewerState.graphManagerState.graphManager.checkDatasetEntitlements(datasets, mapping, runtime, await this.dataSpaceViewerState.graphManagerState.graphManager.pureCodeToLambda(query), this.dataSpaceViewerState.retrieveGraphData()),
40
+ });
41
+ }
42
+ if (dataAccessState) {
43
+ this.dataAccessStateIndex.set(executable, dataAccessState);
44
+ }
45
+ });
46
+ }
47
+ }
48
+ //# sourceMappingURL=DataSpaceQuickStartState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQuickStartState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceQuickStartState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAA6B,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAEL,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AAMnC,MAAM,OAAO,wBAAwB;IAC1B,oBAAoB,CAAuB;IAEpD,oBAAoB,GAAG,IAAI,GAAG,EAG3B,CAAC;IAEJ,YAAY,oBAA0C;QACpD,cAAc,CAAC,IAAI,EAAE;YACnB,oBAAoB,EAAE,UAAU;SACjC,CAAC,CAAC;QAEH,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,oBAAoB,CAAC,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAC9D,CAAC,UAAU,EAAE,EAAE;YACb,IAAI,eAA4C,CAAC;YAEjD,IACE,UAAU,CAAC,IAAI,YAAY,8BAA8B;gBACzD,UAAU,CAAC,IAAI,CAAC,OAAO;gBACvB,UAAU,CAAC,IAAI,CAAC,OAAO,EACvB;gBACA,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;gBACpC,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;gBACxC,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;gBACxC,eAAe,GAAG,IAAI,eAAe,CACnC,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,EAC1C,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAC3C;oBACE,eAAe,EAAE,UAAU,CAAC,QAAQ;oBACpC,cAAc,EAAE,KAAK,IAAqC,EAAE,CAC1D,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,YAAY,CAAC,cAAc,CACrE,OAAO,EACP,OAAO,EACP,MAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,YAAY,CAAC,gBAAgB,CAC7E,KAAK,CACN,EACD,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,CAC9C;oBACH,wBAAwB,EAAE,KAAK,EAC7B,QAAgC,EACK,EAAE,CACvC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,YAAY,CAAC,wBAAwB,CAC/E,QAAQ,EACR,OAAO,EACP,OAAO,EACP,MAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,YAAY,CAAC,gBAAgB,CAC7E,KAAK,CACN,EACD,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,CAC9C;iBACJ,CACF,CAAC;aACH;YAED,IAAI,eAAe,EAAE;gBACnB,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;aAC5D;QACH,CAAC,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,44 @@
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 DataSpaceViewerState } from './DataSpaceViewerState.js';
17
+ import type { ClassView } from '@finos/legend-extension-dsl-diagram/graph';
18
+ import type { DataSpaceDiagramAnalysisResult } from '../graph-manager/index.js';
19
+ import { type DiagramRenderer } from '@finos/legend-extension-dsl-diagram/application';
20
+ import type { CommandRegistrar } from '@finos/legend-application';
21
+ export declare class DataSpaceViewerDiagramViewerState implements CommandRegistrar {
22
+ readonly dataSpaceViewerState: DataSpaceViewerState;
23
+ _renderer?: DiagramRenderer | undefined;
24
+ currentDiagram?: DataSpaceDiagramAnalysisResult | undefined;
25
+ contextMenuClassView?: ClassView | undefined;
26
+ showDescription: boolean;
27
+ expandDescription: boolean;
28
+ constructor(dataSpaceViewerState: DataSpaceViewerState);
29
+ get diagramRenderer(): DiagramRenderer;
30
+ get isDiagramRendererInitialized(): boolean;
31
+ get diagramCursorClass(): string;
32
+ get previousDiagram(): DataSpaceDiagramAnalysisResult | undefined;
33
+ get nextDiagram(): DataSpaceDiagramAnalysisResult | undefined;
34
+ get currentDiagramIndex(): number;
35
+ setDiagramRenderer(val: DiagramRenderer): void;
36
+ setCurrentDiagram(val: DataSpaceDiagramAnalysisResult): void;
37
+ setContextMenuClassView(val: ClassView | undefined): void;
38
+ setupDiagramRenderer(): void;
39
+ setShowDescription(val: boolean): void;
40
+ setExpandDescription(val: boolean): void;
41
+ registerCommands(): void;
42
+ deregisterCommands(): void;
43
+ }
44
+ //# sourceMappingURL=DataSpaceViewerDiagramViewerState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceViewerDiagramViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerDiagramViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAEL,KAAK,e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