@finos/legend-application-studio 26.1.9 → 26.1.10

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 (86) hide show
  1. package/lib/components/editor/StatusBar.d.ts.map +1 -1
  2. package/lib/components/editor/StatusBar.js +1 -4
  3. package/lib/components/editor/StatusBar.js.map +1 -1
  4. package/lib/components/editor/editor-group/{FileGenerationViewer.d.ts → ArtifactGenerationViewer.d.ts} +2 -2
  5. package/lib/components/editor/editor-group/ArtifactGenerationViewer.d.ts.map +1 -0
  6. package/lib/components/editor/editor-group/ArtifactGenerationViewer.js +32 -0
  7. package/lib/components/editor/editor-group/ArtifactGenerationViewer.js.map +1 -0
  8. package/lib/components/editor/editor-group/EditorGroup.js +6 -6
  9. package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
  10. package/lib/components/editor/editor-group/data-editor/DataElementEditor.d.ts.map +1 -1
  11. package/lib/components/editor/editor-group/data-editor/DataElementEditor.js +1 -1
  12. package/lib/components/editor/editor-group/data-editor/DataElementEditor.js.map +1 -1
  13. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  14. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js +1 -1
  15. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js.map +1 -1
  16. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +1 -1
  17. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
  18. package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.d.ts.map +1 -1
  19. package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.js +1 -1
  20. package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.js.map +1 -1
  21. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +1 -1
  22. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
  23. package/lib/components/editor/panel-group/DevToolPanel.d.ts.map +1 -1
  24. package/lib/components/editor/panel-group/DevToolPanel.js +4 -1
  25. package/lib/components/editor/panel-group/DevToolPanel.js.map +1 -1
  26. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  27. package/lib/components/editor/side-bar/CreateNewElementModal.js +1 -1
  28. package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
  29. package/lib/components/editor/side-bar/Explorer.js +1 -1
  30. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  31. package/lib/index.css +1 -1
  32. package/lib/package.json +3 -3
  33. package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
  34. package/lib/stores/editor/EditorGraphState.js +7 -6
  35. package/lib/stores/editor/EditorGraphState.js.map +1 -1
  36. package/lib/stores/editor/EditorStore.js +2 -2
  37. package/lib/stores/editor/EditorStore.js.map +1 -1
  38. package/lib/stores/editor/ExplorerTreeState.d.ts +3 -3
  39. package/lib/stores/editor/ExplorerTreeState.d.ts.map +1 -1
  40. package/lib/stores/editor/ExplorerTreeState.js +10 -10
  41. package/lib/stores/editor/ExplorerTreeState.js.map +1 -1
  42. package/lib/stores/editor/NewElementState.d.ts +3 -3
  43. package/lib/stores/editor/NewElementState.d.ts.map +1 -1
  44. package/lib/stores/editor/NewElementState.js +2 -2
  45. package/lib/stores/editor/NewElementState.js.map +1 -1
  46. package/lib/stores/editor/editor-state/{FileGenerationViewerState.d.ts → ArtifactGenerationViewerState.d.ts} +4 -4
  47. package/lib/stores/editor/editor-state/ArtifactGenerationViewerState.d.ts.map +1 -0
  48. package/lib/stores/editor/editor-state/{FileGenerationViewerState.js → ArtifactGenerationViewerState.js} +10 -9
  49. package/lib/stores/editor/editor-state/ArtifactGenerationViewerState.js.map +1 -0
  50. package/lib/stores/editor/editor-state/FileGenerationState.js +1 -1
  51. package/lib/stores/editor/editor-state/FileGenerationState.js.map +1 -1
  52. package/lib/stores/editor/editor-state/GraphGenerationState.d.ts +32 -19
  53. package/lib/stores/editor/editor-state/GraphGenerationState.d.ts.map +1 -1
  54. package/lib/stores/editor/editor-state/GraphGenerationState.js +173 -113
  55. package/lib/stores/editor/editor-state/GraphGenerationState.js.map +1 -1
  56. package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.js +1 -1
  57. package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
  58. package/lib/stores/project-view/ProjectViewerStore.js +1 -1
  59. package/lib/stores/project-view/ProjectViewerStore.js.map +1 -1
  60. package/package.json +13 -13
  61. package/src/components/editor/StatusBar.tsx +1 -4
  62. package/src/components/editor/editor-group/{FileGenerationViewer.tsx → ArtifactGenerationViewer.tsx} +28 -25
  63. package/src/components/editor/editor-group/EditorGroup.tsx +6 -6
  64. package/src/components/editor/editor-group/data-editor/DataElementEditor.tsx +1 -1
  65. package/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx +1 -1
  66. package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +1 -1
  67. package/src/components/editor/editor-group/element-generation-editor/FileSystemViewer.tsx +4 -4
  68. package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +1 -1
  69. package/src/components/editor/panel-group/DevToolPanel.tsx +14 -0
  70. package/src/components/editor/side-bar/CreateNewElementModal.tsx +3 -5
  71. package/src/components/editor/side-bar/Explorer.tsx +1 -1
  72. package/src/stores/editor/EditorGraphState.ts +7 -6
  73. package/src/stores/editor/EditorStore.ts +2 -2
  74. package/src/stores/editor/ExplorerTreeState.ts +10 -10
  75. package/src/stores/editor/NewElementState.ts +5 -5
  76. package/src/stores/editor/editor-state/{FileGenerationViewerState.ts → ArtifactGenerationViewerState.ts} +12 -9
  77. package/src/stores/editor/editor-state/FileGenerationState.ts +1 -1
  78. package/src/stores/editor/editor-state/GraphGenerationState.ts +258 -170
  79. package/src/stores/editor/editor-state/element-editor-state/ElementEditorState.ts +1 -1
  80. package/src/stores/project-view/ProjectViewerStore.ts +1 -1
  81. package/tsconfig.json +2 -2
  82. package/lib/components/editor/editor-group/FileGenerationViewer.d.ts.map +0 -1
  83. package/lib/components/editor/editor-group/FileGenerationViewer.js +0 -32
  84. package/lib/components/editor/editor-group/FileGenerationViewer.js.map +0 -1
  85. package/lib/stores/editor/editor-state/FileGenerationViewerState.d.ts.map +0 -1
  86. package/lib/stores/editor/editor-state/FileGenerationViewerState.js.map +0 -1
package/tsconfig.json CHANGED
@@ -71,10 +71,10 @@
71
71
  "./src/stores/editor/QuickInputState.ts",
72
72
  "./src/stores/editor/StandardEditorMode.ts",
73
73
  "./src/stores/editor/__test-utils__/EditorStoreTestUtils.ts",
74
+ "./src/stores/editor/editor-state/ArtifactGenerationViewerState.ts",
74
75
  "./src/stores/editor/editor-state/EditorState.ts",
75
76
  "./src/stores/editor/editor-state/ExternalFormatState.ts",
76
77
  "./src/stores/editor/editor-state/FileGenerationState.ts",
77
- "./src/stores/editor/editor-state/FileGenerationViewerState.ts",
78
78
  "./src/stores/editor/editor-state/FileSystemState.ts",
79
79
  "./src/stores/editor/editor-state/GenerationSpecificationEditorState.ts",
80
80
  "./src/stores/editor/editor-state/GrammarTextEditorState.ts",
@@ -180,8 +180,8 @@
180
180
  "./src/components/editor/StatusBar.tsx",
181
181
  "./src/components/editor/__test-utils__/EditorComponentTestUtils.tsx",
182
182
  "./src/components/editor/command-center/ProjectSearchCommand.tsx",
183
+ "./src/components/editor/editor-group/ArtifactGenerationViewer.tsx",
183
184
  "./src/components/editor/editor-group/EditorGroup.tsx",
184
- "./src/components/editor/editor-group/FileGenerationViewer.tsx",
185
185
  "./src/components/editor/editor-group/FunctionEditor.tsx",
186
186
  "./src/components/editor/editor-group/GenerationSpecificationEditor.tsx",
187
187
  "./src/components/editor/editor-group/GrammarTextEditor.tsx",
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileGenerationViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/editor-group/FileGenerationViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,eAAO,MAAM,oBAAoB;;CAwE/B,CAAC"}
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { observer } from 'mobx-react-lite';
18
- import { FileGenerationViewerState, getTextContent, getEditorLanguageForFormat, } from '../../../stores/editor/editor-state/FileGenerationViewerState.js';
19
- import { LockIcon, FireIcon, StickArrowCircleRightIcon, Panel, PanelContent, } from '@finos/legend-art';
20
- import { useEditorStore } from '../EditorStoreProvider.js';
21
- import { CodeEditor } from '@finos/legend-lego/code-editor';
22
- export const FileGenerationViewer = observer(() => {
23
- const editorStore = useEditorStore();
24
- const generatedFileState = editorStore.tabManagerState.getCurrentEditorState(FileGenerationViewerState);
25
- const generatedFile = generatedFileState.file;
26
- const fileGeneration = generatedFile.parentId
27
- ? editorStore.graphManagerState.graph.getNullableFileGeneration(generatedFile.parentId)
28
- : undefined;
29
- const visitFileGeneration = (fg) => editorStore.graphEditorMode.openElement(fg);
30
- return (_jsx("div", { className: "file-generation-viewer", children: _jsxs(Panel, { children: [_jsx("div", { className: "panel__header", children: _jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "uml-element-editor__header__lock", children: _jsx(LockIcon, {}) }), _jsx("div", { className: "panel__header__title__label", children: "generated-file" }), _jsx("div", { className: "panel__header__title__content", children: generatedFile.name })] }) }), _jsxs("div", { className: "panel file-generation-viewer__content", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: fileGeneration?.type }) }), _jsx("div", { className: "panel__header__actions", children: fileGeneration && (_jsxs("button", { className: "uml-element-editor__header__generation-origin", onClick: () => visitFileGeneration(fileGeneration), tabIndex: -1, title: `Visit generation parent '${fileGeneration.path}'`, children: [_jsx("div", { className: "uml-element-editor__header__generation-origin__label", children: _jsx(FireIcon, {}) }), _jsx("div", { className: "uml-element-editor__header__generation-origin__parent-name", children: fileGeneration.name }), _jsx("div", { className: "uml-element-editor__header__generation-origin__visit-btn", children: _jsx(StickArrowCircleRightIcon, {}) })] })) })] }), _jsx(PanelContent, { children: _jsx(CodeEditor, { inputValue: getTextContent(generatedFile.content, generatedFile.format), isReadOnly: true, language: getEditorLanguageForFormat(generatedFile.format) }) })] })] }) }));
31
- });
32
- //# sourceMappingURL=FileGenerationViewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileGenerationViewer.js","sourceRoot":"","sources":["../../../../src/components/editor/editor-group/FileGenerationViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,0BAA0B,GAC3B,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,yBAAyB,EACzB,KAAK,EACL,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,GAAG,EAAE;IAChD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,kBAAkB,GAAG,WAAW,CAAC,eAAe,CAAC,qBAAqB,CAC1E,yBAAyB,CAC1B,CAAC;IAC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ACN,KAAC,YAAY,cACX,KAAC,UAAU,IACT,UAAU,EAAE,cAAc,CACxB,aAAa,CAAC,OAAO,EACrB,aAAa,CAAC,MAAM,CACrB,EACD,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,0BAA0B,CAAC,aAAa,CAAC,MAAM,CAAC,GAC1D,GACW,IACX,IACA,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileGenerationViewerState.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/editor-state/FileGenerationViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,eAAO,MAAM,cAAc,YAChB,MAAM,UACP,MAAM,GAAG,SAAS,KACzB,MAWF,CAAC;AAEF,eAAO,MAAM,0BAA0B,YAC5B,MAAM,KACd,oBASF,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,IAAI,EAAE,eAAe,CAAC;gBAEV,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe;IAY3D,IAAI,KAAK,IAAI,MAAM,CAElB;IAEQ,KAAK,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO;IAIzC,IAAI,iBAAiB,IAAI,MAAM,CAE9B;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileGenerationViewerState.js","sourceRoot":"","sources":["../../../../src/stores/editor/editor-state/FileGenerationViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,cA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