@finos/legend-extension-dsl-data-space 10.0.10 → 10.0.12

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 (131) 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 +5 -2
  10. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
  11. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +47 -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/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
  52. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +1 -0
  53. package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
  54. package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +1 -1
  55. package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
  56. package/lib/index.css +2 -2
  57. package/lib/index.css.map +1 -1
  58. package/lib/package.json +1 -1
  59. package/lib/stores/DataSpaceLayoutState.d.ts +48 -0
  60. package/lib/stores/DataSpaceLayoutState.d.ts.map +1 -0
  61. package/lib/stores/DataSpaceLayoutState.js +185 -0
  62. package/lib/stores/DataSpaceLayoutState.js.map +1 -0
  63. package/lib/stores/DataSpaceModelsDocumentationState.d.ts +11 -2
  64. package/lib/stores/DataSpaceModelsDocumentationState.d.ts.map +1 -1
  65. package/lib/stores/DataSpaceModelsDocumentationState.js +41 -0
  66. package/lib/stores/DataSpaceModelsDocumentationState.js.map +1 -1
  67. package/lib/stores/DataSpaceQuickStartState.d.ts +24 -0
  68. package/lib/stores/DataSpaceQuickStartState.d.ts.map +1 -0
  69. package/lib/stores/DataSpaceQuickStartState.js +48 -0
  70. package/lib/stores/DataSpaceQuickStartState.js.map +1 -0
  71. package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts +44 -0
  72. package/lib/stores/DataSpaceViewerDiagramViewerState.d.ts.map +1 -0
  73. package/lib/stores/DataSpaceViewerDiagramViewerState.js +194 -0
  74. package/lib/stores/DataSpaceViewerDiagramViewerState.js.map +1 -0
  75. package/lib/stores/DataSpaceViewerNavigation.d.ts +36 -0
  76. package/lib/stores/DataSpaceViewerNavigation.d.ts.map +1 -0
  77. package/lib/stores/DataSpaceViewerNavigation.js +47 -0
  78. package/lib/stores/DataSpaceViewerNavigation.js.map +1 -0
  79. package/lib/stores/DataSpaceViewerState.d.ts +22 -74
  80. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  81. package/lib/stores/DataSpaceViewerState.js +34 -259
  82. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  83. package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
  84. package/lib/stores/query/DataSpaceAdvancedSearchState.js +8 -5
  85. package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
  86. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +8 -8
  87. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -1
  88. package/lib/stores/query/DataSpaceQueryCreatorStore.js +1 -1
  89. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
  90. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +1 -1
  91. package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +1 -1
  92. package/lib/stores/query/DataSpaceQuerySetupStore.js +1 -1
  93. package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -1
  94. package/lib/stores/studio/DataSpacePreviewState.d.ts.map +1 -1
  95. package/lib/stores/studio/DataSpacePreviewState.js +15 -3
  96. package/lib/stores/studio/DataSpacePreviewState.js.map +1 -1
  97. package/package.json +13 -13
  98. package/src/__lib__/DSL_DataSpace_LegendApplicationCommand.ts +74 -0
  99. package/src/__lib__/DSL_DataSpace_LegendApplicationNavigation.ts +33 -0
  100. package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +116 -0
  101. package/src/components/DataSpaceDataAccess.tsx +9 -122
  102. package/src/components/DataSpaceDescription.tsx +5 -5
  103. package/src/components/DataSpaceDiagramViewer.tsx +449 -69
  104. package/src/components/DataSpaceExecutionContextViewer.tsx +47 -40
  105. package/src/components/DataSpaceInfoPanel.tsx +107 -117
  106. package/src/components/DataSpaceModelsDocumentation.tsx +31 -12
  107. package/src/components/DataSpacePlaceholder.tsx +22 -0
  108. package/src/components/DataSpaceQuickStart.tsx +95 -15
  109. package/src/components/DataSpaceSupportPanel.tsx +146 -14
  110. package/src/components/DataSpaceViewer.tsx +153 -23
  111. package/src/components/DataSpaceViewerActivityBar.tsx +40 -20
  112. package/src/components/index.ts +1 -0
  113. package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +1 -0
  114. package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +1 -1
  115. package/src/stores/DataSpaceLayoutState.ts +272 -0
  116. package/src/stores/DataSpaceModelsDocumentationState.ts +61 -2
  117. package/src/stores/DataSpaceQuickStartState.ts +91 -0
  118. package/src/stores/DataSpaceViewerDiagramViewerState.ts +245 -0
  119. package/src/stores/DataSpaceViewerNavigation.ts +64 -0
  120. package/src/stores/DataSpaceViewerState.ts +88 -401
  121. package/src/stores/query/DataSpaceAdvancedSearchState.ts +30 -6
  122. package/src/stores/query/DataSpaceQueryCreatorStore.ts +8 -8
  123. package/src/stores/query/DataSpaceQuerySetupStore.ts +1 -1
  124. package/src/stores/studio/DataSpacePreviewState.ts +27 -5
  125. package/tsconfig.json +7 -2
  126. package/lib/stores/DataSpaceViewerDataAccessState.d.ts +0 -35
  127. package/lib/stores/DataSpaceViewerDataAccessState.d.ts.map +0 -1
  128. package/lib/stores/DataSpaceViewerDataAccessState.js +0 -98
  129. package/lib/stores/DataSpaceViewerDataAccessState.js.map +0 -1
  130. package/src/components/DSL_DataSpace_LegendApplicationPlugin.ts +0 -45
  131. package/src/stores/DataSpaceViewerDataAccessState.ts +0 -143
@@ -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;AAChE,OAAO,EAAE,cAAc,EAA0B,MAAM,qBAAqB,CAAC;AAE7E,oBAAY,0CAA0C;IACpD,OAAO,IAAA;IACP,SAAS,IAAA;IACT,iBAAiB,IAAA;CAClB;AAED,8BAAsB,qCACpB,YAAW,YAAY;IAEvB,QAAQ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BAAkB,EAAE,QAAQ,CAAC,qCAAqC,CAAC,CAAC;IACpE,qBAAqB,EAAE,QAAQ,CAAC,qCAAqC,CAAC,CAAC;IACvE,WAAW,EAAE,MAAM,EAAE,CAAM;IAC3B,WAAW,EAAE,MAAM,EAAE,CAAM;gBAEf,oBAAoB,EAAE,oBAAoB;IAkGtD,IAAI,qBAAqB,IAAI,qCAAqC,EAAE,CAmBnE;IAED,IAAI,sBAAsB,IAAI,OAAO,CAKpC;IAED,IAAI,yBAAyB,IAAI,OAAO,CAKvC;IAED,IAAI,kBAAkB,IAAI,OAAO,CAEhC;IAED,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIxC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,WAAW,IAAI,IAAI;IAOnB,MAAM,IAAI,IAAI;IAkBd,8BAA8B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIlD,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAItC,uBAAuB,IAAI,IAAI;IAI/B,0BAA0B,IAAI,IAAI;IAIlC,gBAAgB,IAAI,IAAI;IAcxB,mBAAmB,IAAI,IAAI;IAc3B,eAAe,IAAI,IAAI;IAQvB,kBAAkB,IAAI,IAAI;IAQ1B,eAAe,IAAI,IAAI;IAKvB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAMjD,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAc/C,cAAc,CAAC,EAAE,EAAE,gBAAgB,GAAG,SAAS,GAAG,IAAI;IAItD,gBAAgB,IAAI,IAAI;IAIxB,iBAAiB,IAAI,IAAI;IAIzB,gBAAgB,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,gCAAgC,GAEjC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,MAAM,CAAN,IAAY,0CAIX;AAJD,WAAY,0CAA0C;IACpD,iHAAO,CAAA;IACP,qHAAS,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Ae;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;IACf,WAAW,GAAa,EAAE,CAAC;IAC3B,aAAa,GAA4C,EAAE,CAAC;IAC5D,mCAAmC;IACnC,SAAS,GAAG,0CAA0C,CAAC,OAAO,CAAC;IAE/D,YACE,EAAU,EACV,KAAa,EACb,UAA6D;QAE7D,cAAc,CAAC,I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 * 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":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AAc,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,eAAe,EACrB,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,qBAAa,iCAAkC,YAAW,gBAAgB;IACxE,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAEpD,SAAS,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC5D,oBAAoB,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7C,eAAe,UAAQ;IACvB,iBAAiB,UAAS;gBAEd,oBAAoB,EAAE,oBAAoB;IAwBtD,IAAI,eAAe,IAAI,eAAe,CAKrC;IAED,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAMD,IAAI,kBAAkB,IAAI,MAAM,CAyB/B;IAED,IAAI,eAAe,IAAI,8BAA8B,GAAG,SAAS,CAYhE;IAED,IAAI,WAAW,IAAI,8BAA8B,GAAG,SAAS,CAgB5D;IAED,IAAI,mBAAmB,IAAI,MAAM,CAMhC;IAED,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAI9C,iBAAiB,CAAC,GAAG,EAAE,8BAA8B,GAAG,IAAI;IAI5D,uBAAuB,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAIzD,oBAAoB,IAAI,IAAI;IAa5B,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAKtC,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIxC,gBAAgB,IAAI,IAAI;IAiDxB,kBAAkB,IAAI,IAAI;CAc3B"}
@@ -0,0 +1,194 @@
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 { getNullableFirstEntry, guaranteeNonNullable, } from '@finos/legend-shared';
17
+ import { action, computed, makeObservable, observable } from 'mobx';
18
+ import {} from './DataSpaceViewerState.js';
19
+ import { DIAGRAM_INTERACTION_MODE, } from '@finos/legend-extension-dsl-diagram/application';
20
+ import { DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY } from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
21
+ import { DATA_SPACE_VIEWER_ACTIVITY_MODE } from './DataSpaceViewerNavigation.js';
22
+ export class DataSpaceViewerDiagramViewerState {
23
+ dataSpaceViewerState;
24
+ _renderer;
25
+ currentDiagram;
26
+ contextMenuClassView;
27
+ showDescription = true;
28
+ expandDescription = false;
29
+ constructor(dataSpaceViewerState) {
30
+ makeObservable(this, {
31
+ _renderer: observable,
32
+ currentDiagram: observable,
33
+ contextMenuClassView: observable,
34
+ showDescription: observable,
35
+ expandDescription: observable,
36
+ previousDiagram: computed,
37
+ nextDiagram: computed,
38
+ currentDiagramIndex: computed,
39
+ diagramRenderer: computed,
40
+ setDiagramRenderer: action,
41
+ setCurrentDiagram: action,
42
+ setContextMenuClassView: action,
43
+ setShowDescription: action,
44
+ setExpandDescription: action,
45
+ });
46
+ this.dataSpaceViewerState = dataSpaceViewerState;
47
+ this.currentDiagram = getNullableFirstEntry(this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams);
48
+ }
49
+ get diagramRenderer() {
50
+ return guaranteeNonNullable(this._renderer, `Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`);
51
+ }
52
+ get isDiagramRendererInitialized() {
53
+ return Boolean(this._renderer);
54
+ }
55
+ // NOTE: we have tried to use React to control the cursor and
56
+ // could not overcome the jank/lag problem, so we settle with CSS-based approach
57
+ // See https://css-tricks.com/using-css-cursors/
58
+ // See https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
59
+ get diagramCursorClass() {
60
+ if (!this.isDiagramRendererInitialized) {
61
+ return '';
62
+ }
63
+ switch (this.diagramRenderer.interactionMode) {
64
+ case DIAGRAM_INTERACTION_MODE.PAN: {
65
+ return this.diagramRenderer.leftClick
66
+ ? 'data-space__viewer__diagram-viewer__cursor--grabbing'
67
+ : 'data-space__viewer__diagram-viewer__cursor--grab';
68
+ }
69
+ case DIAGRAM_INTERACTION_MODE.ZOOM_IN: {
70
+ return 'data-space__viewer__diagram-viewer__cursor--zoom-in';
71
+ }
72
+ case DIAGRAM_INTERACTION_MODE.ZOOM_OUT: {
73
+ return 'data-space__viewer__diagram-viewer__cursor--zoom-out';
74
+ }
75
+ case DIAGRAM_INTERACTION_MODE.LAYOUT: {
76
+ if (this.diagramRenderer.mouseOverClassView) {
77
+ return 'data-space__viewer__diagram-viewer__cursor--pointer';
78
+ }
79
+ return '';
80
+ }
81
+ default:
82
+ return '';
83
+ }
84
+ }
85
+ get previousDiagram() {
86
+ if (!this.currentDiagram) {
87
+ return undefined;
88
+ }
89
+ const idx = this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.indexOf(this.currentDiagram);
90
+ if (idx === 0 || idx === -1) {
91
+ return undefined;
92
+ }
93
+ return this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams[idx - 1];
94
+ }
95
+ get nextDiagram() {
96
+ if (!this.currentDiagram) {
97
+ return undefined;
98
+ }
99
+ const idx = this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.indexOf(this.currentDiagram);
100
+ if (idx ===
101
+ this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.length - 1 ||
102
+ idx === -1) {
103
+ return undefined;
104
+ }
105
+ return this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams[idx + 1];
106
+ }
107
+ get currentDiagramIndex() {
108
+ return this.currentDiagram
109
+ ? this.dataSpaceViewerState.dataSpaceAnalysisResult.diagrams.indexOf(this.currentDiagram) + 1
110
+ : 0;
111
+ }
112
+ setDiagramRenderer(val) {
113
+ this._renderer = val;
114
+ }
115
+ setCurrentDiagram(val) {
116
+ this.currentDiagram = val;
117
+ }
118
+ setContextMenuClassView(val) {
119
+ this.contextMenuClassView = val;
120
+ }
121
+ setupDiagramRenderer() {
122
+ this.diagramRenderer.setIsReadOnly(true);
123
+ this.diagramRenderer.setEnableLayoutAutoAdjustment(true);
124
+ this.diagramRenderer.onClassViewDoubleClick = (classView) => this.dataSpaceViewerState.queryClass(classView.class.value);
125
+ this.diagramRenderer.onClassViewRightClick = (classView) => {
126
+ this.setContextMenuClassView(classView);
127
+ };
128
+ }
129
+ setShowDescription(val) {
130
+ this.showDescription = val;
131
+ this.setExpandDescription(false);
132
+ }
133
+ setExpandDescription(val) {
134
+ this.expandDescription = val;
135
+ }
136
+ registerCommands() {
137
+ const DEFAULT_TRIGGER = () => this.dataSpaceViewerState.currentActivity ===
138
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER;
139
+ this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
140
+ key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.RECENTER_DIAGRAM,
141
+ trigger: DEFAULT_TRIGGER,
142
+ action: () => this.diagramRenderer.recenter(),
143
+ });
144
+ this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
145
+ key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_ZOOM_TOOL,
146
+ trigger: DEFAULT_TRIGGER,
147
+ action: () => this.diagramRenderer.switchToZoomMode(),
148
+ });
149
+ this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
150
+ key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_VIEW_TOOL,
151
+ trigger: DEFAULT_TRIGGER,
152
+ action: () => this.diagramRenderer.switchToViewMode(),
153
+ });
154
+ this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
155
+ key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_PAN_TOOL,
156
+ trigger: DEFAULT_TRIGGER,
157
+ action: () => this.diagramRenderer.switchToPanMode(),
158
+ });
159
+ this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
160
+ key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_NEXT_DIAGRAM,
161
+ trigger: DEFAULT_TRIGGER,
162
+ action: () => {
163
+ if (this.nextDiagram) {
164
+ this.setCurrentDiagram(this.nextDiagram);
165
+ }
166
+ },
167
+ });
168
+ this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
169
+ key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_PREVIOUS_DIAGRAM,
170
+ trigger: DEFAULT_TRIGGER,
171
+ action: () => {
172
+ if (this.previousDiagram) {
173
+ this.setCurrentDiagram(this.previousDiagram);
174
+ }
175
+ },
176
+ });
177
+ this.dataSpaceViewerState.applicationStore.commandService.registerCommand({
178
+ key: DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.TOGGLE_DIAGRAM_DESCRIPTION,
179
+ trigger: DEFAULT_TRIGGER,
180
+ action: () => this.setShowDescription(!this.showDescription),
181
+ });
182
+ }
183
+ deregisterCommands() {
184
+ [
185
+ DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.RECENTER_DIAGRAM,
186
+ DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_ZOOM_TOOL,
187
+ DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_VIEW_TOOL,
188
+ DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.USE_PAN_TOOL,
189
+ DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_NEXT_DIAGRAM,
190
+ DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_KEY.GO_TO_PREVIOUS_DIAGRAM,
191
+ ].forEach((commandKey) => this.dataSpaceViewerState.applicationStore.commandService.deregisterCommand(commandKey));
192
+ }
193
+ }
194
+ //# sourceMappingURL=DataSpaceViewerDiagramViewerState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceViewerDiagramViewerState.js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AAC,kBAAkB;YAChE,6CAA6C,CAAC,sBAAsB;SACrE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CACvB,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CACzE,UAAU,CACX,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,36 @@
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 { DataSpaceDiagramAnalysisResult, DataSpaceExecutableAnalysisResult } from '../graph-manager/action/analytics/DataSpaceAnalysis.js';
17
+ export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
18
+ DESCRIPTION = "description",
19
+ DIAGRAM_VIEWER = "diagram-viewer",
20
+ MODELS_DOCUMENTATION = "models-documentation",
21
+ QUICK_START = "quick-start",
22
+ EXECUTION_CONTEXT = "execution-context",
23
+ DATA_ACCESS = "data-access",
24
+ DATA_STORES = "data-stores",
25
+ DATA_AVAILABILITY = "data-availability",
26
+ DATA_READINESS = "data-readiness",
27
+ DATA_COST = "data-cost",
28
+ DATA_GOVERNANCE = "data-governance",
29
+ INFO = "info",
30
+ SUPPORT = "support"
31
+ }
32
+ export declare const generateAnchorForActivity: (activity: string) => string;
33
+ export declare const extractActivityFromAnchor: (anchor: string) => string;
34
+ export declare const generateAnchorForQuickStart: (quickStart: DataSpaceExecutableAnalysisResult) => string;
35
+ export declare const generateAnchorForDiagram: (diagram: DataSpaceDiagramAnalysisResult) => string;
36
+ //# sourceMappingURL=DataSpaceViewerNavigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceViewerNavigation.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,wDAAwD,CAAC;AAEhE,oBAAY,+BAA+B;IACzC,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAE3B,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AASD,eAAO,MAAM,yBAAyB,aAAc,MAAM,KAAG,MAC9B,CAAC;AAChC,eAAO,MAAM,yBAAyB,WAAY,MAAM,KAAG,MAC/B,CAAC;AAC7B,eAAO,MAAM,2BAA2B,eAC1B,iCAAiC,KAC5C,MAIgC,CAAC;AACpC,eAAO,MAAM,wBAAwB,YAC1B,8BAA8B,KACtC,MAIgC,CAAC"}
@@ -0,0 +1,47 @@
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 { NAVIGATION_ZONE_SEPARATOR } from '@finos/legend-application';
17
+ export var DATA_SPACE_VIEWER_ACTIVITY_MODE;
18
+ (function (DATA_SPACE_VIEWER_ACTIVITY_MODE) {
19
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DESCRIPTION"] = "description";
20
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DIAGRAM_VIEWER"] = "diagram-viewer";
21
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["MODELS_DOCUMENTATION"] = "models-documentation";
22
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["QUICK_START"] = "quick-start";
23
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["EXECUTION_CONTEXT"] = "execution-context";
24
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_ACCESS"] = "data-access";
25
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_STORES"] = "data-stores";
26
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_AVAILABILITY"] = "data-availability";
27
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_READINESS"] = "data-readiness";
28
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_COST"] = "data-cost";
29
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["DATA_GOVERNANCE"] = "data-governance";
30
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["INFO"] = "info";
31
+ DATA_SPACE_VIEWER_ACTIVITY_MODE["SUPPORT"] = "support";
32
+ })(DATA_SPACE_VIEWER_ACTIVITY_MODE = DATA_SPACE_VIEWER_ACTIVITY_MODE || (DATA_SPACE_VIEWER_ACTIVITY_MODE = {}));
33
+ const generateAnchorChunk = (text) => encodeURIComponent(text
34
+ .trim()
35
+ .toLowerCase() // anchor is case-insensitive
36
+ .replace(/\s+/gu, '-'));
37
+ export const generateAnchorForActivity = (activity) => generateAnchorChunk(activity);
38
+ export const extractActivityFromAnchor = (anchor) => decodeURIComponent(anchor);
39
+ export const generateAnchorForQuickStart = (quickStart) => [
40
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.QUICK_START,
41
+ generateAnchorChunk(quickStart.title),
42
+ ].join(NAVIGATION_ZONE_SEPARATOR);
43
+ export const generateAnchorForDiagram = (diagram) => [
44
+ DATA_SPACE_VIEWER_ACTIVITY_MODE.DIAGRAM_VIEWER,
45
+ generateAnchorChunk(diagram.title),
46
+ ].join(NAVIGATION_ZONE_SEPARATOR);
47
+ //# sourceMappingURL=DataSpaceViewerNavigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceViewerNavigation.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAMtE,MAAM,CAAN,IAAY,+BAeX;AAfD,WAAY,+BAA+B;IACzC,8DAA2B,CAAA;IAC3B,oEAAiC,CAAA;IACjC,gFAA6C,CAAA;IAC7C,8DAA2B,CAAA;IAC3B,0EAAuC,CAAA;IACvC,8DAA2B,CAAA;IAE3B,8DAA2B,CAAA;IAC3B,0EAAuC,CAAA;IACvC,oEAAiC,CAAA;IACjC,0DAAuB,CAAA;IACvB,sEAAmC,CAAA;IACnC,gDAAa,CAAA;IACb,sDAAmB,CAAA;AACrB,CAAC,EAfW,+BAA+B,GAA/B,+BAA+B,KAA/B,+BAA+B,QAe1C;AAED,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAU,EAAE,CACnD,kBAAkB,CAChB,IAAI;KACD,IAAI,EAAE;KACN,WAAW,EAAE,CAAC,6BAA6B;KAC3C,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CACzB,CAAC;AACJ,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAgB,EAAU,EAAE,CACpE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAChC,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAc,EAAU,EAAE,CAClE,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,UA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