@finos/legend-extension-dsl-diagram 7.1.39 → 7.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/lib/DiagramRenderer.d.ts +2 -0
  2. package/lib/DiagramRenderer.d.ts.map +1 -1
  3. package/lib/DiagramRenderer.js +8 -1
  4. package/lib/DiagramRenderer.js.map +1 -1
  5. package/lib/application/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts.map +1 -0
  6. package/lib/application/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js.map +1 -0
  7. package/lib/{components/studio/DSL_Diagram_CodeSnippets.d.ts → application/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts} +1 -1
  8. package/lib/application/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts.map +1 -0
  9. package/lib/{components/studio/DSL_Diagram_CodeSnippets.js → application/studio/DSL_Diagram_LegendStudioCodeSnippet.js} +1 -1
  10. package/lib/application/studio/DSL_Diagram_LegendStudioCodeSnippet.js.map +1 -0
  11. package/lib/application/studio/DSL_Diagram_LegendStudioCommand.d.ts.map +1 -0
  12. package/lib/application/studio/DSL_Diagram_LegendStudioCommand.js.map +1 -0
  13. package/lib/application/studio/DSL_Diagram_LegendStudioDocumentation.d.ts.map +1 -0
  14. package/lib/application/studio/DSL_Diagram_LegendStudioDocumentation.js.map +1 -0
  15. package/lib/{components/studio/DSL_Diagram_TestID.d.ts → application/studio/DSL_Diagram_LegendStudioTesting.d.ts} +1 -1
  16. package/lib/application/studio/DSL_Diagram_LegendStudioTesting.d.ts.map +1 -0
  17. package/lib/{components/studio/DSL_Diagram_TestID.js → application/studio/DSL_Diagram_LegendStudioTesting.js} +1 -1
  18. package/lib/application/studio/DSL_Diagram_LegendStudioTesting.js.map +1 -0
  19. package/lib/components/studio/ClassDiagramPreview.js +1 -1
  20. package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
  21. package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js +4 -4
  22. package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js.map +1 -1
  23. package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
  24. package/lib/components/studio/DiagramEditor.js +3 -3
  25. package/lib/components/studio/DiagramEditor.js.map +1 -1
  26. package/lib/graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_RelationshipView.js +2 -1
  27. package/lib/graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_RelationshipView.js.map +1 -1
  28. package/lib/index.css +1 -1
  29. package/lib/package.json +4 -4
  30. package/lib/stores/studio/DiagramEditorState.js +2 -2
  31. package/lib/stores/studio/DiagramEditorState.js.map +1 -1
  32. package/package.json +11 -11
  33. package/src/DiagramRenderer.ts +9 -1
  34. package/src/components/studio/ClassDiagramPreview.tsx +1 -1
  35. package/src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx +4 -4
  36. package/src/components/studio/DiagramEditor.tsx +7 -5
  37. package/src/stores/studio/DiagramEditorState.ts +2 -2
  38. package/tsconfig.json +6 -7
  39. package/tsconfig.package.json +1 -2
  40. package/lib/components/studio/DSL_Diagram_CodeSnippets.d.ts.map +0 -1
  41. package/lib/components/studio/DSL_Diagram_CodeSnippets.js.map +0 -1
  42. package/lib/components/studio/DSL_Diagram_LegendStudioCommand.d.ts.map +0 -1
  43. package/lib/components/studio/DSL_Diagram_LegendStudioCommand.js.map +0 -1
  44. package/lib/components/studio/DSL_Diagram_LegendStudioDocumentation.d.ts.map +0 -1
  45. package/lib/components/studio/DSL_Diagram_LegendStudioDocumentation.js.map +0 -1
  46. package/lib/components/studio/DSL_Diagram_TestID.d.ts.map +0 -1
  47. package/lib/components/studio/DSL_Diagram_TestID.js.map +0 -1
  48. package/lib/stores/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts.map +0 -1
  49. package/lib/stores/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js.map +0 -1
  50. /package/lib/{stores → application}/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts +0 -0
  51. /package/lib/{stores → application}/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js +0 -0
  52. /package/lib/{components → application}/studio/DSL_Diagram_LegendStudioCommand.d.ts +0 -0
  53. /package/lib/{components → application}/studio/DSL_Diagram_LegendStudioCommand.js +0 -0
  54. /package/lib/{components → application}/studio/DSL_Diagram_LegendStudioDocumentation.d.ts +0 -0
  55. /package/lib/{components → application}/studio/DSL_Diagram_LegendStudioDocumentation.js +0 -0
  56. /package/src/{stores → application}/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts +0 -0
  57. /package/src/{components/studio/DSL_Diagram_CodeSnippets.ts → application/studio/DSL_Diagram_LegendStudioCodeSnippet.ts} +0 -0
  58. /package/src/{components → application}/studio/DSL_Diagram_LegendStudioCommand.ts +0 -0
  59. /package/src/{components → application}/studio/DSL_Diagram_LegendStudioDocumentation.ts +0 -0
  60. /package/src/{components/studio/DSL_Diagram_TestID.ts → application/studio/DSL_Diagram_LegendStudioTesting.ts} +0 -0
@@ -48,7 +48,7 @@ import type { ClassView } from '../../graph/metamodel/pure/packageableElements/d
48
48
  import type { Point } from '../../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Point.js';
49
49
  import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
50
50
  import type { PropertyHolderView } from '../../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_PropertyHolderView.js';
51
- import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY } from '../../components/studio/DSL_Diagram_LegendStudioCommand.js';
51
+ import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY } from '../../application/studio/DSL_Diagram_LegendStudioCommand.js';
52
52
  import type { CommandRegistrar } from '@finos/legend-application';
53
53
 
54
54
  export abstract class DiagramEditorSidePanelState {
@@ -93,7 +93,7 @@ export class DiagramEditorClassViewEditorSidePanelState extends DiagramEditorSid
93
93
  (elementState) =>
94
94
  isType(elementState, ClassEditorState) &&
95
95
  elementState.element === classView.class.value,
96
- ) ?? this.editorStore.createElementEditorState(classView.class.value),
96
+ ) ?? new ClassEditorState(this.editorStore, classView.class.value),
97
97
  ClassEditorState,
98
98
  );
99
99
  }
package/tsconfig.json CHANGED
@@ -15,8 +15,7 @@
15
15
  "module": "nodenext",
16
16
  "skipLibCheck": true,
17
17
  "resolveJsonModule": true,
18
- "isolatedModules": true,
19
- "importsNotUsedAsValues": "error",
18
+ "verbatimModuleSyntax": true,
20
19
  "strict": true,
21
20
  "noImplicitOverride": true,
22
21
  "noUncheckedIndexedAccess": true,
@@ -36,10 +35,11 @@
36
35
  "./src/DSL_Diagram_Extension.ts",
37
36
  "./src/DiagramRenderer.ts",
38
37
  "./src/index.ts",
39
- "./src/components/studio/DSL_Diagram_CodeSnippets.ts",
40
- "./src/components/studio/DSL_Diagram_LegendStudioCommand.ts",
41
- "./src/components/studio/DSL_Diagram_LegendStudioDocumentation.ts",
42
- "./src/components/studio/DSL_Diagram_TestID.ts",
38
+ "./src/application/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts",
39
+ "./src/application/studio/DSL_Diagram_LegendStudioCodeSnippet.ts",
40
+ "./src/application/studio/DSL_Diagram_LegendStudioCommand.ts",
41
+ "./src/application/studio/DSL_Diagram_LegendStudioDocumentation.ts",
42
+ "./src/application/studio/DSL_Diagram_LegendStudioTesting.ts",
43
43
  "./src/components/studio/InheritanceDiagramRenderer.ts",
44
44
  "./src/graph/DSL_Diagram_HashUtils.ts",
45
45
  "./src/graph/DSL_Diagram_PureGraphPlugin.ts",
@@ -74,7 +74,6 @@
74
74
  "./src/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.ts",
75
75
  "./src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.ts",
76
76
  "./src/stores/studio/DSL_Diagram_GraphModifierHelper.ts",
77
- "./src/stores/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts",
78
77
  "./src/stores/studio/DiagramEditorState.ts",
79
78
  "./src/components/studio/ClassDiagramPreview.tsx",
80
79
  "./src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx",
@@ -15,8 +15,7 @@
15
15
  "module": "nodenext",
16
16
  "skipLibCheck": true,
17
17
  "resolveJsonModule": true,
18
- "isolatedModules": true,
19
- "importsNotUsedAsValues": "error",
18
+ "verbatimModuleSyntax": true,
20
19
  "strict": true,
21
20
  "noImplicitOverride": true,
22
21
  "noUncheckedIndexedAccess": true,
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_CodeSnippets.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_CodeSnippets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,eAAO,MAAM,qBAAqB,oMAGhC,CAAC;AAEH,eAAO,MAAM,iCAAiC,QACxC,MAQJ,CAAC;AAEH,eAAO,MAAM,iCAAiC,QAAO,MA0BpD,CAAC;AAEF,eAAO,MAAM,uCAAuC,QAAO,MAyB1D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_CodeSnippets.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_CodeSnippets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;EAGnC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAC5C,GAAW,EAAE,CAAC;;cAEF,IAAI,EAAE;;;;;;EAMlB,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAW,EAAE;IAC5D,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;IACxB,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;IAExB,OAAO;;cAEK,QAAQ;;;;;;cAMR,QAAQ;;;;;;;;;cASR,QAAQ;cACR,QAAQ;;;EAGpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAW,EAAE;IAClE,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;IACxB,MAAM,QAAQ,GAAG,IAAI,EAAE,CAAC;IAExB,OAAO;;cAEK,QAAQ;;;;;;cAMR,QAAQ;;;;;;;;cAQR,QAAQ;cACR,QAAQ;;;EAGpB,CAAC;AACH,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_LegendStudioCommand.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_LegendStudioCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,oBAAY,qCAAqC;IAC/C,QAAQ,wCAAwC;IAChD,aAAa,6CAA6C;IAC1D,aAAa,6CAA6C;IAC1D,YAAY,4CAA4C;IACxD,iBAAiB,iDAAiD;IAClE,oBAAoB,oDAAoD;IACxE,SAAS,yCAAyC;IAClD,cAAc,8CAA8C;CAC7D;AAED,eAAO,MAAM,wCAAwC,EAAE,iBAkCtD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_LegendStudioCommand.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_LegendStudioCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,CAAN,IAAY,qCASX;AATD,WAAY,qCAAqC;IAC/C,yFAAgD,CAAA;IAChD,mGAA0D,CAAA;IAC1D,mGAA0D,CAAA;IAC1D,iGAAwD,CAAA;IACxD,2GAAkE,CAAA;IAClE,iHAAwE,CAAA;IACxE,2FAAkD,CAAA;IAClD,qGAA4D,CAAA;AAC9D,CAAC,EATW,qCAAqC,GAArC,qCAAqC,KAArC,qCAAqC,QAShD;AAED,MAAM,CAAC,MAAM,wCAAwC,GAAsB;IACzE,CAAC,qCAAqC,CAAC,QAAQ,CAAC,EAAE;QAChD,KAAK,EAAE,0BAA0B;QACjC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,aAAa,CAAC,EAAE;QACrD,KAAK,EAAE,+BAA+B;QACtC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,aAAa,CAAC,EAAE;QACrD,KAAK,EAAE,+BAA+B;QACtC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,YAAY,CAAC,EAAE;QACpD,KAAK,EAAE,8BAA8B;QACrC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,EAAE;QACzD,KAAK,EAAE,mCAAmC;QAC1C,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,oBAAoB,CAAC,EAAE;QAC5D,KAAK,EAAE,sCAAsC;QAC7C,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,SAAS,CAAC,EAAE;QACjD,KAAK,EAAE,2BAA2B;QAClC,uBAAuB,EAAE,MAAM;KAChC;IACD,CAAC,qCAAqC,CAAC,cAAc,CAAC,EAAE;QACtD,KAAK,EAAE,gCAAgC;QACvC,uBAAuB,EAAE,YAAY;QACrC,IAAI,EAAE,mCAAmC;KAC1C;CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_LegendStudioDocumentation.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_LegendStudioDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,2CAA2C;IACrD,cAAc,+BAA+B;IAC7C,uBAAuB,wCAAwC;CAChE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_LegendStudioDocumentation.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_LegendStudioDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,2CAGX;AAHD,WAAY,2CAA2C;IACrD,4FAA6C,CAAA;IAC7C,8GAA+D,CAAA;AACjE,CAAC,EAHW,2CAA2C,GAA3C,2CAA2C,KAA3C,2CAA2C,QAGtD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_TestID.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_TestID.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAC7B,qBAAqB,0BAA0B;CAChD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_TestID.js","sourceRoot":"","sources":["../../../src/components/studio/DSL_Diagram_TestID.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,sEAA+C,CAAA;AACjD,CAAC,EAFW,mBAAmB,GAAnB,mBAAmB,KAAnB,mBAAmB,QAE9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,4DAA4D;IACtE,cAAc,6CAA6C;CAC5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSL_Diagram_LegendStudioApplicationNavigationContext.js","sourceRoot":"","sources":["../../../src/stores/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,4DAEX;AAFD,WAAY,4DAA4D;IACtE,2HAA2D,CAAA;AAC7D,CAAC,EAFW,4DAA4D,GAA5D,4DAA4D,KAA5D,4DAA4D,QAEvE"}