@finos/legend-extension-dsl-diagram 8.1.194 → 8.1.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/DiagramRenderer.d.ts +39 -2
- package/lib/components/DiagramRenderer.d.ts.map +1 -1
- package/lib/components/DiagramRenderer.js +83 -61
- package/lib/components/DiagramRenderer.js.map +1 -1
- package/lib/components/DiagramViewer.d.ts +39 -0
- package/lib/components/DiagramViewer.d.ts.map +1 -0
- package/lib/components/DiagramViewer.js +170 -0
- package/lib/components/DiagramViewer.js.map +1 -0
- package/lib/components/DiagramViewerState.d.ts +44 -0
- package/lib/components/DiagramViewerState.d.ts.map +1 -0
- package/lib/components/DiagramViewerState.js +136 -0
- package/lib/components/DiagramViewerState.js.map +1 -0
- package/lib/components/index.d.ts +4 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +4 -1
- package/lib/components/index.js.map +1 -1
- package/lib/graph-manager/index.d.ts +3 -0
- package/lib/graph-manager/index.d.ts.map +1 -1
- package/lib/graph-manager/index.js +3 -0
- package/lib/graph-manager/index.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -2
- package/package.json +3 -4
- package/src/components/DiagramRenderer.ts +221 -103
- package/src/components/DiagramViewer.tsx +650 -0
- package/src/components/DiagramViewerState.ts +171 -0
- package/src/components/index.ts +4 -0
- package/src/graph-manager/index.ts +3 -0
- package/src/index.ts +0 -1
- package/tsconfig.json +2 -12
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts +0 -19
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js +0 -20
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts +0 -20
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.js +0 -81
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.js.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.d.ts +0 -28
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.js +0 -62
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.js.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.d.ts +0 -20
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.js +0 -21
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.js.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.d.ts +0 -20
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.d.ts.map +0 -1
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.js +0 -21
- package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.js.map +0 -1
- package/lib/components/studio/ClassDiagramPreview.d.ts +0 -22
- package/lib/components/studio/ClassDiagramPreview.d.ts.map +0 -1
- package/lib/components/studio/ClassDiagramPreview.js +0 -64
- package/lib/components/studio/ClassDiagramPreview.js.map +0 -1
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts +0 -42
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js +0 -216
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js.map +0 -1
- package/lib/components/studio/DiagramEditor.d.ts +0 -19
- package/lib/components/studio/DiagramEditor.d.ts.map +0 -1
- package/lib/components/studio/DiagramEditor.js +0 -436
- package/lib/components/studio/DiagramEditor.js.map +0 -1
- package/lib/components/studio/InheritanceDiagramRenderer.d.ts +0 -22
- package/lib/components/studio/InheritanceDiagramRenderer.d.ts.map +0 -1
- package/lib/components/studio/InheritanceDiagramRenderer.js +0 -34
- package/lib/components/studio/InheritanceDiagramRenderer.js.map +0 -1
- package/lib/components/studio/index.d.ts +0 -18
- package/lib/components/studio/index.d.ts.map +0 -1
- package/lib/components/studio/index.js +0 -18
- package/lib/components/studio/index.js.map +0 -1
- package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.d.ts +0 -57
- package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.js +0 -94
- package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.js.map +0 -1
- package/lib/stores/studio/DiagramEditorState.d.ts +0 -88
- package/lib/stores/studio/DiagramEditorState.d.ts.map +0 -1
- package/lib/stores/studio/DiagramEditorState.js +0 -341
- package/lib/stores/studio/DiagramEditorState.js.map +0 -1
- package/src/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts +0 -19
- package/src/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.ts +0 -88
- package/src/__lib__/studio/DSL_Diagram_LegendStudioCommand.ts +0 -64
- package/src/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.ts +0 -20
- package/src/__lib__/studio/DSL_Diagram_LegendStudioTesting.ts +0 -20
- package/src/components/studio/ClassDiagramPreview.tsx +0 -83
- package/src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx +0 -313
- package/src/components/studio/DiagramEditor.tsx +0 -1514
- package/src/components/studio/InheritanceDiagramRenderer.ts +0 -50
- package/src/components/studio/index.ts +0 -19
- package/src/stores/studio/DSL_Diagram_GraphModifierHelper.ts +0 -166
- package/src/stores/studio/DiagramEditorState.ts +0 -487
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
18
|
-
import { observer } from 'mobx-react-lite';
|
|
19
|
-
import { useApplicationStore } from '@finos/legend-application';
|
|
20
|
-
import { isElementReadOnly } from '@finos/legend-graph';
|
|
21
|
-
import { InheritanceDiagramRenderer } from './InheritanceDiagramRenderer.js';
|
|
22
|
-
import { DSL_DIAGRAM_TEST_ID } from '../../__lib__/studio/DSL_Diagram_LegendStudioTesting.js';
|
|
23
|
-
import { useResizeDetector } from '@finos/legend-art';
|
|
24
|
-
export const ClassDiagramPreview = observer((props) => {
|
|
25
|
-
const { _class } = props;
|
|
26
|
-
const applicationStore = useApplicationStore();
|
|
27
|
-
const classHash = isElementReadOnly(_class)
|
|
28
|
-
? undefined
|
|
29
|
-
: applicationStore.notificationService.notifyAndReturnAlternativeOnError(() => _class.hashCode, undefined); // attempting to read the hashCode of immutable element will throw an error
|
|
30
|
-
const [diagramRenderer, setDiagramRenderer] = useState();
|
|
31
|
-
const canvas = useRef(null);
|
|
32
|
-
const resizeDiagram = useCallback(() => {
|
|
33
|
-
if (diagramRenderer) {
|
|
34
|
-
diagramRenderer.refresh();
|
|
35
|
-
diagramRenderer.autoRecenter();
|
|
36
|
-
}
|
|
37
|
-
}, [diagramRenderer]);
|
|
38
|
-
const { ref, height, width } = useResizeDetector({
|
|
39
|
-
refreshMode: 'debounce',
|
|
40
|
-
refreshRate: 50,
|
|
41
|
-
});
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
resizeDiagram();
|
|
44
|
-
}, [resizeDiagram, height, width]);
|
|
45
|
-
useEffect(() => {
|
|
46
|
-
if (canvas.current) {
|
|
47
|
-
let currentRenderer = diagramRenderer;
|
|
48
|
-
if (!currentRenderer) {
|
|
49
|
-
const newRender = new InheritanceDiagramRenderer(canvas.current, _class);
|
|
50
|
-
setDiagramRenderer(newRender);
|
|
51
|
-
currentRenderer = newRender;
|
|
52
|
-
}
|
|
53
|
-
currentRenderer.render({ initial: true });
|
|
54
|
-
}
|
|
55
|
-
}, [diagramRenderer, _class]);
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
if (diagramRenderer) {
|
|
58
|
-
diagramRenderer.loadClass(_class);
|
|
59
|
-
diagramRenderer.render({ initial: true });
|
|
60
|
-
}
|
|
61
|
-
}, [_class, classHash, diagramRenderer]);
|
|
62
|
-
return (_jsx("div", { ref: ref, className: "class-editor__diagram-preview", "data-testid": DSL_DIAGRAM_TEST_ID.CLASS_DIAGRAM_PREVIEW, children: _jsx("div", { ref: canvas, className: "diagram-canvas", tabIndex: 0 }) }));
|
|
63
|
-
});
|
|
64
|
-
//# sourceMappingURL=ClassDiagramPreview.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClassDiagramPreview.js","sourceRoot":"","sources":["../../../src/components/studio/ClassDiagramPreview.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACjE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C;IAClB,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,IAAI,eAAe,GAAG,eAAe,CAAC;YACtC,IAAI,CAAC,eAAe,EAAE,CAAC;gBACrB,MAAM,SAAS,GAAG,IAAI,0BAA0B,CAC9C,MAAM,CAAC,OAAO,EACd,MAAM,CACP,CAAC;gBACF,kBAAkB,CAAC,SAAS,CAAC,CAAC;gBAC9B,eAAe,GAAG,SAAS,CAAC;YAC9B,CAAC;YACD,eAAe,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;IAE9B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,EAAE,CAAC;YACpB,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAClC,eAAe,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC;IAEzC,OAAO,CACL,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,+BAA+B,iBAC5B,mBAAmB,CAAC,qBAAqB,YAEtD,cAAK,GAAG,EAAE,MAAM,EAAE,SAAS,EAAC,gBAAgB,EAAC,QAAQ,EAAE,CAAC,GAAI,GACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { LegendStudioApplicationPlugin, type NewElementFromStateCreator, type ElementEditorStateCreator, type ElementClassifier, type DragElementClassifier, type ElementIconGetter, type ElementEditorRenderer, type DSL_LegendStudioApplicationPlugin_Extension, type ElementEditorPostDeleteAction, type ElementEditorPostRenameAction, type ClassPreviewRenderer, type PureGrammarParserDocumentationGetter, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, type PureGrammarParserElementSnippetSuggestionsGetter } from '@finos/legend-application-studio';
|
|
17
|
-
import { type KeyedCommandConfigEntry } from '@finos/legend-application';
|
|
18
|
-
export declare class DSL_Diagram_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin implements DSL_LegendStudioApplicationPlugin_Extension {
|
|
19
|
-
constructor();
|
|
20
|
-
getExtraKeyedCommandConfigEntries(): KeyedCommandConfigEntry[];
|
|
21
|
-
getExtraRequiredDocumentationKeys(): string[];
|
|
22
|
-
getExtraClassPreviewRenderers(): ClassPreviewRenderer[];
|
|
23
|
-
getExtraAccessEventLoggingApplicationContextKeys(): string[];
|
|
24
|
-
getExtraPureGrammarKeywords(): string[];
|
|
25
|
-
getExtraSupportedElementTypes(): string[];
|
|
26
|
-
getExtraSupportedElementTypesWithCategory?(): Map<string, string[]>;
|
|
27
|
-
getExtraElementClassifiers(): ElementClassifier[];
|
|
28
|
-
getExtraElementIconGetters(): ElementIconGetter[];
|
|
29
|
-
getExtraElementEditorRenderers(): ElementEditorRenderer[];
|
|
30
|
-
getExtraNewElementFromStateCreators(): NewElementFromStateCreator[];
|
|
31
|
-
getExtraElementEditorStateCreators(): ElementEditorStateCreator[];
|
|
32
|
-
getExtraDragElementClassifiers(): DragElementClassifier[];
|
|
33
|
-
getExtraPureGrammarTextEditorDragElementTypes(): string[];
|
|
34
|
-
getExtraElementEditorPostRenameActions(): ElementEditorPostRenameAction[];
|
|
35
|
-
getExtraElementEditorPostDeleteActions(): ElementEditorPostDeleteAction[];
|
|
36
|
-
getExtraPureGrammarParserElementDocumentationGetters(): PureGrammarParserElementDocumentationGetter[];
|
|
37
|
-
getExtraPureGrammarParserDocumentationGetters(): PureGrammarParserDocumentationGetter[];
|
|
38
|
-
getExtraPureGrammarParserKeywordSuggestionGetters(): PureGrammarParserKeywordSuggestionGetter[];
|
|
39
|
-
getExtraPureGrammarParserElementSnippetSuggestionsGetters(): PureGrammarParserElementSnippetSuggestionsGetter[];
|
|
40
|
-
getExtraGrammarTextEditorAutoFoldingElementCreatorKeywords(): string[];
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioApplicationPlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,6BAA6B,EAC7B,KAAK,0BAA0B,EAG/B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,2CAA2C,EAEhD,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,oCAAoC,EACzC,KAAK,2CAA2C,EAChD,KAAK,wCAAwC,EAC7C,KAAK,gDAAgD,EAEtD,MAAM,kCAAkC,CAAC;AAc1C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AAYnC,qBAAa,yCACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,uBAAuB,EAAE;IAM9D,iCAAiC,IAAI,MAAM,EAAE;IAO7C,6BAA6B,IAAI,oBAAoB,EAAE;IAQvD,gDAAgD,IAAI,MAAM,EAAE;IAMrE,2BAA2B,IAAI,MAAM,EAAE;IAIvC,6BAA6B,IAAI,MAAM,EAAE;IAIzC,yCAAyC,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IASnE,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAejD,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,mCAAmC,IAAI,0BAA0B,EAAE;IAenE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,6CAA6C,IAAI,MAAM,EAAE;IAIzD,sCAAsC,IAAI,6BAA6B,EAAE;IAazE,sCAAsC,IAAI,6BAA6B,EAAE;IAazE,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;IAiC/G,0DAA0D,IAAI,MAAM,EAAE;CAGvE"}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import packageJson from '../../../package.json' with { type: 'json' };
|
|
18
|
-
import { LegendStudioApplicationPlugin, PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY, } from '@finos/legend-application-studio';
|
|
19
|
-
import { ShapesIcon } from '@finos/legend-art';
|
|
20
|
-
import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
|
|
21
|
-
import { DiagramEditorState } from '../../stores/studio/DiagramEditorState.js';
|
|
22
|
-
import { DiagramEditor } from './DiagramEditor.js';
|
|
23
|
-
import { ClassDiagramPreview } from './ClassDiagramPreview.js';
|
|
24
|
-
import { DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../__lib__/studio/DSL_Diagram_LegendStudioDocumentation.js';
|
|
25
|
-
import { EMPTY_DIAGRAM_SNIPPET, getDiagramSnippetWithGeneralizationView, getDiagramSnippetWithOneClassView, getDiagramSnippetWithPropertyView, } from '../../__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.js';
|
|
26
|
-
import { collectKeyedCommandConfigEntriesFromConfig, } from '@finos/legend-application';
|
|
27
|
-
import { DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js';
|
|
28
|
-
import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_CONFIG } from '../../__lib__/studio/DSL_Diagram_LegendStudioCommand.js';
|
|
29
|
-
const DIAGRAM_ELEMENT_TYPE = 'DIAGRAM';
|
|
30
|
-
const DIAGRAM_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DIAGRAM';
|
|
31
|
-
const PURE_GRAMMAR_DIAGRAM_PARSER_NAME = 'Diagram';
|
|
32
|
-
const PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL = 'Diagram';
|
|
33
|
-
export class DSL_Diagram_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(packageJson.extensions.applicationStudioPlugin, packageJson.version);
|
|
36
|
-
}
|
|
37
|
-
getExtraKeyedCommandConfigEntries() {
|
|
38
|
-
return collectKeyedCommandConfigEntriesFromConfig(DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_CONFIG);
|
|
39
|
-
}
|
|
40
|
-
getExtraRequiredDocumentationKeys() {
|
|
41
|
-
return [
|
|
42
|
-
DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY.CONCEPT_ELEMENT_DIAGRAM,
|
|
43
|
-
DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER,
|
|
44
|
-
];
|
|
45
|
-
}
|
|
46
|
-
getExtraClassPreviewRenderers() {
|
|
47
|
-
return [
|
|
48
|
-
(_class) => (_jsx(ClassDiagramPreview, { _class: _class })),
|
|
49
|
-
];
|
|
50
|
-
}
|
|
51
|
-
getExtraAccessEventLoggingApplicationContextKeys() {
|
|
52
|
-
return [
|
|
53
|
-
DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.DIAGRAM_EDITOR,
|
|
54
|
-
];
|
|
55
|
-
}
|
|
56
|
-
getExtraPureGrammarKeywords() {
|
|
57
|
-
return [PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL];
|
|
58
|
-
}
|
|
59
|
-
getExtraSupportedElementTypes() {
|
|
60
|
-
return [DIAGRAM_ELEMENT_TYPE];
|
|
61
|
-
}
|
|
62
|
-
getExtraSupportedElementTypesWithCategory() {
|
|
63
|
-
const elementTypesWithCategoryMap = new Map();
|
|
64
|
-
elementTypesWithCategoryMap.set(PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY.MODEL, [DIAGRAM_ELEMENT_TYPE]);
|
|
65
|
-
return elementTypesWithCategoryMap;
|
|
66
|
-
}
|
|
67
|
-
getExtraElementClassifiers() {
|
|
68
|
-
return [
|
|
69
|
-
(element) => {
|
|
70
|
-
if (element instanceof Diagram) {
|
|
71
|
-
return DIAGRAM_ELEMENT_TYPE;
|
|
72
|
-
}
|
|
73
|
-
return undefined;
|
|
74
|
-
},
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
getExtraElementIconGetters() {
|
|
78
|
-
return [
|
|
79
|
-
(type) => {
|
|
80
|
-
if (type === DIAGRAM_ELEMENT_TYPE) {
|
|
81
|
-
return (_jsx("div", { className: "icon color--diagram", children: _jsx(ShapesIcon, {}) }));
|
|
82
|
-
}
|
|
83
|
-
return undefined;
|
|
84
|
-
},
|
|
85
|
-
];
|
|
86
|
-
}
|
|
87
|
-
getExtraElementEditorRenderers() {
|
|
88
|
-
return [
|
|
89
|
-
(elementEditorState) => {
|
|
90
|
-
if (elementEditorState instanceof DiagramEditorState) {
|
|
91
|
-
return _jsx(DiagramEditor, {}, elementEditorState.uuid);
|
|
92
|
-
}
|
|
93
|
-
return undefined;
|
|
94
|
-
},
|
|
95
|
-
];
|
|
96
|
-
}
|
|
97
|
-
getExtraNewElementFromStateCreators() {
|
|
98
|
-
return [
|
|
99
|
-
(type, name, state) => {
|
|
100
|
-
if (type === DIAGRAM_ELEMENT_TYPE) {
|
|
101
|
-
return new Diagram(name);
|
|
102
|
-
}
|
|
103
|
-
return undefined;
|
|
104
|
-
},
|
|
105
|
-
];
|
|
106
|
-
}
|
|
107
|
-
getExtraElementEditorStateCreators() {
|
|
108
|
-
return [
|
|
109
|
-
(editorStore, element) => {
|
|
110
|
-
if (element instanceof Diagram) {
|
|
111
|
-
return new DiagramEditorState(editorStore, element);
|
|
112
|
-
}
|
|
113
|
-
return undefined;
|
|
114
|
-
},
|
|
115
|
-
];
|
|
116
|
-
}
|
|
117
|
-
getExtraDragElementClassifiers() {
|
|
118
|
-
return [
|
|
119
|
-
(element) => {
|
|
120
|
-
if (element instanceof Diagram) {
|
|
121
|
-
return DIAGRAM_ELEMENT_PROJECT_EXPLORER_DND_TYPE;
|
|
122
|
-
}
|
|
123
|
-
return undefined;
|
|
124
|
-
},
|
|
125
|
-
];
|
|
126
|
-
}
|
|
127
|
-
getExtraPureGrammarTextEditorDragElementTypes() {
|
|
128
|
-
return [DIAGRAM_ELEMENT_PROJECT_EXPLORER_DND_TYPE];
|
|
129
|
-
}
|
|
130
|
-
getExtraElementEditorPostRenameActions() {
|
|
131
|
-
return [
|
|
132
|
-
(editorStore, element) => {
|
|
133
|
-
// rerender currently opened diagram
|
|
134
|
-
if (editorStore.tabManagerState.currentTab instanceof DiagramEditorState) {
|
|
135
|
-
editorStore.tabManagerState.currentTab.renderer.render();
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
];
|
|
139
|
-
}
|
|
140
|
-
getExtraElementEditorPostDeleteActions() {
|
|
141
|
-
return [
|
|
142
|
-
(editorStore, element) => {
|
|
143
|
-
// rerender currently opened diagram
|
|
144
|
-
if (editorStore.tabManagerState.currentTab instanceof DiagramEditorState) {
|
|
145
|
-
editorStore.tabManagerState.currentTab.renderer.render();
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
];
|
|
149
|
-
}
|
|
150
|
-
getExtraPureGrammarParserElementDocumentationGetters() {
|
|
151
|
-
return [
|
|
152
|
-
(editorStore, parserKeyword, elementKeyword) => {
|
|
153
|
-
if (parserKeyword === PURE_GRAMMAR_DIAGRAM_PARSER_NAME) {
|
|
154
|
-
if (elementKeyword === PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL) {
|
|
155
|
-
return editorStore.applicationStore.documentationService.getDocEntry(DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY.CONCEPT_ELEMENT_DIAGRAM);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return undefined;
|
|
159
|
-
},
|
|
160
|
-
];
|
|
161
|
-
}
|
|
162
|
-
getExtraPureGrammarParserDocumentationGetters() {
|
|
163
|
-
return [
|
|
164
|
-
(editorStore, parserKeyword) => {
|
|
165
|
-
if (parserKeyword === PURE_GRAMMAR_DIAGRAM_PARSER_NAME) {
|
|
166
|
-
return editorStore.applicationStore.documentationService.getDocEntry(DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER);
|
|
167
|
-
}
|
|
168
|
-
return undefined;
|
|
169
|
-
},
|
|
170
|
-
];
|
|
171
|
-
}
|
|
172
|
-
getExtraPureGrammarParserKeywordSuggestionGetters() {
|
|
173
|
-
return [
|
|
174
|
-
(editorStore) => [
|
|
175
|
-
{
|
|
176
|
-
text: PURE_GRAMMAR_DIAGRAM_PARSER_NAME,
|
|
177
|
-
description: `(dsl)`,
|
|
178
|
-
documentation: editorStore.applicationStore.documentationService.getDocEntry(DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY.GRAMMAR_PARSER),
|
|
179
|
-
insertText: PURE_GRAMMAR_DIAGRAM_PARSER_NAME,
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
];
|
|
183
|
-
}
|
|
184
|
-
getExtraPureGrammarParserElementSnippetSuggestionsGetters() {
|
|
185
|
-
return [
|
|
186
|
-
(editorStore, parserKeyword) => parserKeyword === PURE_GRAMMAR_DIAGRAM_PARSER_NAME
|
|
187
|
-
? [
|
|
188
|
-
{
|
|
189
|
-
text: PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL,
|
|
190
|
-
description: '(blank)',
|
|
191
|
-
insertText: EMPTY_DIAGRAM_SNIPPET,
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
text: PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL,
|
|
195
|
-
description: 'with class',
|
|
196
|
-
insertText: getDiagramSnippetWithOneClassView(),
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
text: PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL,
|
|
200
|
-
description: 'with inheritance',
|
|
201
|
-
insertText: getDiagramSnippetWithGeneralizationView(),
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
text: PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL,
|
|
205
|
-
description: 'with composition',
|
|
206
|
-
insertText: getDiagramSnippetWithPropertyView(),
|
|
207
|
-
},
|
|
208
|
-
]
|
|
209
|
-
: undefined,
|
|
210
|
-
];
|
|
211
|
-
}
|
|
212
|
-
getExtraGrammarTextEditorAutoFoldingElementCreatorKeywords() {
|
|
213
|
-
return [PURE_GRAMMAR_DIAGRAM_PARSER_NAME];
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
//# sourceMappingURL=DSL_Diagram_LegendStudioApplicationPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Diagram_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtE,OAAO,EACL,6BAA6B,EAkB7B,qCAAqC,GACtC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,+EAA+E,CAAC;AACxG,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2CAA2C,EAAE,MAAM,+DAA+D,CAAC;AAC5H,OAAO,EACL,qBAAqB,EACrB,uCAAuC,EACvC,iCAAiC,E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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
|
-
export declare const DiagramEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=DiagramEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DiagramEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAk6CH,eAAO,MAAM,aAAa;;CAyDxB,CAAC"}
|