@finos/legend-extension-dsl-diagram 8.0.68 → 8.0.69
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts +1 -0
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js +6 -1
- package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +6 -6
- package/package.json +14 -14
- package/src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx +10 -0
@@ -23,6 +23,7 @@ export declare class DSL_Diagram_LegendStudioApplicationPlugin extends LegendStu
|
|
23
23
|
getExtraAccessEventLoggingApplicationContextKeys(): string[];
|
24
24
|
getExtraPureGrammarKeywords(): string[];
|
25
25
|
getExtraSupportedElementTypes(): string[];
|
26
|
+
getExtraSupportedElementTypesWithCategory?(): Map<string, string[]>;
|
26
27
|
getExtraElementClassifiers(): ElementClassifier[];
|
27
28
|
getExtraElementIconGetters(): ElementIconGetter[];
|
28
29
|
getExtraElementEditorRenderers(): ElementEditorRenderer[];
|
@@ -1 +1 @@
|
|
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,
|
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,EAGL,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AAWnC,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;CAgChH"}
|
@@ -15,7 +15,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import packageJson from '../../../package.json' assert { type: 'json' };
|
18
|
-
import { LegendStudioApplicationPlugin, } from '@finos/legend-application-studio';
|
18
|
+
import { LegendStudioApplicationPlugin, PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY, } from '@finos/legend-application-studio';
|
19
19
|
import { ShapesIcon } from '@finos/legend-art';
|
20
20
|
import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
|
21
21
|
import { DiagramEditorState } from '../../stores/studio/DiagramEditorState.js';
|
@@ -59,6 +59,11 @@ export class DSL_Diagram_LegendStudioApplicationPlugin extends LegendStudioAppli
|
|
59
59
|
getExtraSupportedElementTypes() {
|
60
60
|
return [DIAGRAM_ELEMENT_TYPE];
|
61
61
|
}
|
62
|
+
getExtraSupportedElementTypesWithCategory() {
|
63
|
+
const elementTypesWithCategoryMap = new Map();
|
64
|
+
elementTypesWithCategoryMap.set(PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY.MODEL, [DIAGRAM_ELEMENT_TYPE]);
|
65
|
+
return elementTypesWithCategoryMap;
|
66
|
+
}
|
62
67
|
getExtraElementClassifiers() {
|
63
68
|
return [
|
64
69
|
(element) => {
|
@@ -1 +1 @@
|
|
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,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACxE,OAAO,EACL,6BAA6B,
|
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,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACxE,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,EACjC,iCAAiC,GAClC,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,0CAA0C,GAG3C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4DAA4D,EAAE,MAAM,8EAA8E,CAAC;AAC5J,OAAO,EAAE,wCAAwC,EAAE,MAAM,yDAAyD,CAAC;AAGnH,MAAM,oBAAoB,GAAG,SAAS,CAAC;AACvC,MAAM,yCAAyC,GAAG,0BAA0B,CAAC;AAE7E,MAAM,gCAAgC,GAAG,SAAS,CAAC;AACnD,MAAM,uCAAuC,GAAG,SAAS,CAAC;AAE1D,MAAM,OAAO,yCACX,SAAQ,6BAA6B;IAGrC;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,uBAAuB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7E,CAAC;IAEQ,iCAAiC;QACxC,OAAO,0CAA0C,CAC/C,wCAAwC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BACD;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,WAAW,EAAE,YAAY;wBACzB,UAAU,EAAE,iCAAiC,EAAE;qBAChD;oBACD;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,WAAW,EAAE,kBAAkB;wBAC/B,UAAU,EAAE,uCAAuC,EAAE;qBACtD;oBACD;wBACE,IAAI,EAAE,uCAAuC;wBAC7C,WAAW,EAAE,kBAAkB;wBAC/B,UAAU,EAAE,iCAAiC,EAAE;qBAChD;iBACF;gBACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-diagram",
|
3
|
-
"version": "8.0.
|
3
|
+
"version": "8.0.69",
|
4
4
|
"description": "Legend extension for Diagram DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"@finos/legend-lego": "workspace:*",
|
53
53
|
"@finos/legend-shared": "workspace:*",
|
54
54
|
"@finos/legend-storage": "workspace:*",
|
55
|
-
"@types/react": "18.2.
|
55
|
+
"@types/react": "18.2.20",
|
56
56
|
"mobx": "6.10.0",
|
57
57
|
"mobx-react-lite": "3.4.3",
|
58
58
|
"react": "18.2.0",
|
@@ -62,14 +62,14 @@
|
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
64
|
"@finos/legend-dev-utils": "workspace:*",
|
65
|
-
"@jest/globals": "29.6.
|
65
|
+
"@jest/globals": "29.6.3",
|
66
66
|
"@testing-library/react": "14.0.0",
|
67
67
|
"cross-env": "7.0.3",
|
68
|
-
"eslint": "8.
|
69
|
-
"jest": "29.6.
|
68
|
+
"eslint": "8.47.0",
|
69
|
+
"jest": "29.6.3",
|
70
70
|
"npm-run-all": "4.1.5",
|
71
71
|
"rimraf": "5.0.1",
|
72
|
-
"sass": "1.
|
72
|
+
"sass": "1.66.1",
|
73
73
|
"typescript": "5.1.6"
|
74
74
|
},
|
75
75
|
"peerDependencies": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-diagram",
|
3
|
-
"version": "8.0.
|
3
|
+
"version": "8.0.69",
|
4
4
|
"description": "Legend extension for Diagram DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -45,14 +45,14 @@
|
|
45
45
|
"test:watch": "jest --watch"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@finos/legend-application": "15.0.
|
49
|
-
"@finos/legend-application-studio": "28.
|
50
|
-
"@finos/legend-art": "7.0.
|
51
|
-
"@finos/legend-graph": "31.1.
|
52
|
-
"@finos/legend-lego": "1.1.
|
53
|
-
"@finos/legend-shared": "10.0.
|
54
|
-
"@finos/legend-storage": "3.0.
|
55
|
-
"@types/react": "18.2.
|
48
|
+
"@finos/legend-application": "15.0.37",
|
49
|
+
"@finos/legend-application-studio": "28.3.0",
|
50
|
+
"@finos/legend-art": "7.0.37",
|
51
|
+
"@finos/legend-graph": "31.1.7",
|
52
|
+
"@finos/legend-lego": "1.1.23",
|
53
|
+
"@finos/legend-shared": "10.0.23",
|
54
|
+
"@finos/legend-storage": "3.0.73",
|
55
|
+
"@types/react": "18.2.20",
|
56
56
|
"mobx": "6.10.0",
|
57
57
|
"mobx-react-lite": "3.4.3",
|
58
58
|
"react": "18.2.0",
|
@@ -61,15 +61,15 @@
|
|
61
61
|
"serializr": "3.0.2"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
|
-
"@finos/legend-dev-utils": "2.0.
|
65
|
-
"@jest/globals": "29.6.
|
64
|
+
"@finos/legend-dev-utils": "2.0.77",
|
65
|
+
"@jest/globals": "29.6.3",
|
66
66
|
"@testing-library/react": "14.0.0",
|
67
67
|
"cross-env": "7.0.3",
|
68
|
-
"eslint": "8.
|
69
|
-
"jest": "29.6.
|
68
|
+
"eslint": "8.47.0",
|
69
|
+
"jest": "29.6.3",
|
70
70
|
"npm-run-all": "4.1.5",
|
71
71
|
"rimraf": "5.0.1",
|
72
|
-
"sass": "1.
|
72
|
+
"sass": "1.66.1",
|
73
73
|
"typescript": "5.1.6"
|
74
74
|
},
|
75
75
|
"peerDependencies": {
|
@@ -34,6 +34,7 @@ import {
|
|
34
34
|
type PureGrammarParserElementDocumentationGetter,
|
35
35
|
type PureGrammarParserKeywordSuggestionGetter,
|
36
36
|
type PureGrammarParserElementSnippetSuggestionsGetter,
|
37
|
+
PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY,
|
37
38
|
} from '@finos/legend-application-studio';
|
38
39
|
import { ShapesIcon } from '@finos/legend-art';
|
39
40
|
import type { Class, PackageableElement } from '@finos/legend-graph';
|
@@ -106,6 +107,15 @@ export class DSL_Diagram_LegendStudioApplicationPlugin
|
|
106
107
|
return [DIAGRAM_ELEMENT_TYPE];
|
107
108
|
}
|
108
109
|
|
110
|
+
getExtraSupportedElementTypesWithCategory?(): Map<string, string[]> {
|
111
|
+
const elementTypesWithCategoryMap = new Map<string, string[]>();
|
112
|
+
elementTypesWithCategoryMap.set(
|
113
|
+
PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY.MODEL,
|
114
|
+
[DIAGRAM_ELEMENT_TYPE],
|
115
|
+
);
|
116
|
+
return elementTypesWithCategoryMap;
|
117
|
+
}
|
118
|
+
|
109
119
|
getExtraElementClassifiers(): ElementClassifier[] {
|
110
120
|
return [
|
111
121
|
(element: PackageableElement): string | undefined => {
|