@finos/legend-extension-dsl-diagram 0.0.13 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/lib/DSLDiagram_Extension.d.ts +0 -5
  3. package/lib/DSLDiagram_Extension.d.ts.map +1 -1
  4. package/lib/DSLDiagram_Extension.js +0 -12
  5. package/lib/DSLDiagram_Extension.js.map +1 -1
  6. package/lib/DiagramRenderer.d.ts +9 -7
  7. package/lib/DiagramRenderer.d.ts.map +1 -1
  8. package/lib/DiagramRenderer.js +119 -90
  9. package/lib/DiagramRenderer.js.map +1 -1
  10. package/lib/components/studio/ClassDiagramPreview.js +1 -1
  11. package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
  12. package/lib/components/studio/{DSLDiagram_StudioPlugin.d.ts → DSLDiagram_LegendStudioPlugin.d.ts} +5 -5
  13. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.d.ts.map +1 -0
  14. package/lib/components/studio/{DSLDiagram_StudioPlugin.js → DSLDiagram_LegendStudioPlugin.js} +4 -4
  15. package/lib/components/studio/DSLDiagram_LegendStudioPlugin.js.map +1 -0
  16. package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts +30 -0
  17. package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.d.ts.map +1 -0
  18. package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.js +17 -0
  19. package/lib/components/studio/DSLDiagram_LegendStudioPlugin_Extension.js.map +1 -0
  20. package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
  21. package/lib/components/studio/DiagramEditor.js +53 -39
  22. package/lib/components/studio/DiagramEditor.js.map +1 -1
  23. package/lib/graph/DSLDiagram_PureGraphPlugin.js +1 -1
  24. package/lib/graph/DSLDiagram_PureGraphPlugin.js.map +1 -1
  25. package/lib/index.css +1 -1
  26. package/lib/index.css.map +1 -1
  27. package/lib/index.d.ts +4 -1
  28. package/lib/index.d.ts.map +1 -1
  29. package/lib/index.js +4 -1
  30. package/lib/index.js.map +1 -1
  31. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.d.ts.map +1 -1
  32. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.js +3 -0
  33. package/lib/models/metamodels/pure/packageableElements/diagram/RelationshipView.js.map +1 -1
  34. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.d.ts.map +1 -1
  35. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js +2 -2
  36. package/lib/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js.map +1 -1
  37. package/lib/stores/studio/DiagramEditorState.d.ts +5 -0
  38. package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
  39. package/lib/stores/studio/DiagramEditorState.js +28 -7
  40. package/lib/stores/studio/DiagramEditorState.js.map +1 -1
  41. package/package.json +17 -18
  42. package/src/DSLDiagram_Extension.ts +0 -15
  43. package/src/DiagramRenderer.ts +166 -134
  44. package/src/components/studio/{DSLDiagram_StudioPlugin.tsx → DSLDiagram_LegendStudioPlugin.tsx} +7 -7
  45. package/src/components/studio/DSLDiagram_LegendStudioPlugin_Extension.tsx +35 -0
  46. package/src/components/studio/DiagramEditor.tsx +54 -4
  47. package/src/graph/DSLDiagram_PureGraphPlugin.ts +1 -1
  48. package/src/index.ts +5 -1
  49. package/src/models/metamodels/pure/packageableElements/diagram/RelationshipView.ts +24 -14
  50. package/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts +2 -0
  51. package/src/stores/studio/DiagramEditorState.ts +34 -11
  52. package/tsconfig.json +3 -1
  53. package/tsconfig.package.json +1 -0
  54. package/lib/components/studio/DSLDiagram_StudioPlugin.d.ts.map +0 -1
  55. package/lib/components/studio/DSLDiagram_StudioPlugin.js.map +0 -1
@@ -14,31 +14,44 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { useRef, useState, useEffect, useCallback } from 'react';
17
+ import { useRef, useState, useEffect, useCallback, Fragment } from 'react';
18
18
  import { useResizeDetector } from 'react-resize-detector';
19
19
  import { useDrop } from 'react-dnd';
20
20
  import { FaRegKeyboard } from 'react-icons/fa';
21
21
  import { observer } from 'mobx-react-lite';
22
22
  import { DiagramRenderer, DIAGRAM_INTERACTION_MODE, DIAGRAM_RELATIONSHIP_EDIT_MODE, DIAGRAM_ZOOM_LEVELS, } from '../../DiagramRenderer';
23
23
  import { DIAGRAM_EDITOR_SIDE_PANEL_TAB, DiagramEditorClassViewEditorSidePanelState, DiagramEditorState, } from '../../stores/studio/DiagramEditorState';
24
- import { getControlledResizablePanelProps, BasePopover, BlankPanelContent, CaretDownIcon, CheckSquareIcon, clsx, createFilter, CustomSelectorInput, DropdownMenu, MenuContent, MenuContentDivider, MenuContentItem, PlusIcon, SquareIcon, ResizablePanelGroup, ResizablePanelSplitter, ResizablePanel, } from '@finos/legend-art';
24
+ import { ContextMenu, getControlledResizablePanelProps, BasePopover, BlankPanelContent, CaretDownIcon, CheckSquareIcon, clsx, createFilter, CustomSelectorInput, DropdownMenu, MenuContent, MenuContentDivider, MenuContentItem, PlusIcon, SquareIcon, ResizablePanelGroup, ResizablePanelSplitter, ResizablePanel, } from '@finos/legend-art';
25
25
  import { Class, DerivedProperty, Property, Multiplicity, ELEMENT_PATH_DELIMITER, MULTIPLICITY_INFINITE, GenericType, createPath, isValidFullPath, isValidPathIdentifier, resolvePackagePathAndElementName, } from '@finos/legend-graph';
26
26
  import { FiMinus, FiMousePointer, FiMove, FiPlusCircle, FiSidebar, FiTriangle, FiZoomIn, FiZoomOut, } from 'react-icons/fi';
27
27
  import { IoResize } from 'react-icons/io5';
28
28
  import { Dialog } from '@material-ui/core';
29
- import { prettyCONSTName } from '@finos/legend-shared';
29
+ import { guaranteeNonNullable, isNonNullable, prettyCONSTName, } from '@finos/legend-shared';
30
30
  import { flowResult } from 'mobx';
31
31
  import { useApplicationStore } from '@finos/legend-application';
32
32
  import { ClassFormEditor, CORE_DND_TYPE, ElementDragSource, useEditorStore, } from '@finos/legend-studio';
33
33
  import { cleanUpDeadReferencesInDiagram } from '../../helpers/DiagramHelper';
34
34
  import { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/Point';
35
+ const DiagramEditorContextMenu = observer((props, ref) => {
36
+ const { diagramEditorState } = props;
37
+ const editorStore = useEditorStore();
38
+ const extraClassViewContextMenuItems = diagramEditorState.contextMenuClassView
39
+ ? editorStore.pluginManager
40
+ .getStudioPlugins()
41
+ .flatMap((plugin) => plugin.getExtraClassViewContextMenuItemRendererConfigurations?.() ??
42
+ [])
43
+ .filter(isNonNullable)
44
+ .map((config) => (_jsx(Fragment, { children: config.renderer(diagramEditorState, guaranteeNonNullable(diagramEditorState.contextMenuClassView)) }, config.key)))
45
+ : [];
46
+ return _jsx(MenuContent, { children: extraClassViewContextMenuItems }, void 0);
47
+ }, { forwardRef: true });
35
48
  const DiagramRendererHotkeyInfosModal = observer((props) => {
36
49
  const { open, onClose } = props;
37
- return (_jsx(Dialog, Object.assign({ open: open, onClose: onClose, classes: {
50
+ return (_jsx(Dialog, { open: open, onClose: onClose, classes: {
38
51
  root: 'editor-modal__root-container',
39
52
  container: 'editor-modal__container',
40
53
  paper: 'editor-modal__content--scrollable',
41
- } }, { children: _jsxs("div", Object.assign({ className: "modal modal--dark modal--scrollable diagram-editor__hotkeys__dialog" }, { children: [_jsx("div", Object.assign({ className: "modal__header" }, { children: _jsx("div", Object.assign({ className: "modal__title" }, { children: "Diagram Hotkeys" }), void 0) }), void 0), _jsx("div", Object.assign({ className: "modal__body" }, { children: _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__groups" }, { children: [_jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Use view tool" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "V" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Use pan tool" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "M" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Zoom" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "Z" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Recenter" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "R" }), void 0) }), void 0)] }), void 0), _jsx("div", { className: "diagram-editor__hotkey__groups__divider" }, void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Remove selected element(s)" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "Delete" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Edit the selected element" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "E" }), void 0) }), void 0)] }), void 0), _jsx("div", { className: "diagram-editor__hotkey__groups__divider" }, void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Use property tool" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "P" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Use inheritance tool" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "I" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Add class" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "C" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Add simple property to selected class" }), void 0), _jsxs("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: [_jsx("div", Object.assign({ className: "hotkey__key" }, { children: "Alt" }), void 0), _jsx("div", Object.assign({ className: "hotkey__plus" }, { children: _jsx(PlusIcon, {}, void 0) }), void 0), _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "\u2193" }), void 0)] }), void 0)] }), void 0), _jsx("div", { className: "diagram-editor__hotkey__groups__divider" }, void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Toggle display for properties of selected classes" }), void 0), _jsxs("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: [_jsx("div", Object.assign({ className: "hotkey__key" }, { children: "Alt" }), void 0), _jsx("div", Object.assign({ className: "hotkey__plus" }, { children: _jsx(PlusIcon, {}, void 0) }), void 0), _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "P" }), void 0)] }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Toggle display for tagged values of selected classes" }), void 0), _jsxs("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: [_jsx("div", Object.assign({ className: "hotkey__key" }, { children: "Alt" }), void 0), _jsx("div", Object.assign({ className: "hotkey__plus" }, { children: _jsx(PlusIcon, {}, void 0) }), void 0), _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "T" }), void 0)] }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Toggle display for stereotypes of selected classes" }), void 0), _jsxs("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: [_jsx("div", Object.assign({ className: "hotkey__key" }, { children: "Alt" }), void 0), _jsx("div", Object.assign({ className: "hotkey__plus" }, { children: _jsx(PlusIcon, {}, void 0) }), void 0), _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "S" }), void 0)] }), void 0)] }), void 0), _jsx("div", { className: "diagram-editor__hotkey__groups__divider" }, void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Eject the property" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "\u2192" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Add subtypes of the selected classes to the diagram" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "\u2193" }), void 0) }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__hotkey__group" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__hotkey__annotation" }, { children: "Add supertypes of the selected classes to the diagram" }), void 0), _jsx("div", Object.assign({ className: "hotkey__combination diagram-editor__hotkey__keys" }, { children: _jsx("div", Object.assign({ className: "hotkey__key" }, { children: "\u2191" }), void 0) }), void 0)] }), void 0)] }), void 0) }), void 0)] }), void 0) }), void 0));
54
+ }, children: _jsxs("div", { className: "modal modal--dark modal--scrollable diagram-editor__hotkeys__dialog", children: [_jsx("div", { className: "modal__header", children: _jsx("div", { className: "modal__title", children: "Diagram Hotkeys" }, void 0) }, void 0), _jsx("div", { className: "modal__body", children: _jsxs("div", { className: "diagram-editor__hotkey__groups", children: [_jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Use view tool" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "V" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Use pan tool" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "M" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Zoom" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "Z" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Recenter" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "R" }, void 0) }, void 0)] }, void 0), _jsx("div", { className: "diagram-editor__hotkey__groups__divider" }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Remove selected element(s)" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "Delete" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Edit the selected element" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "E" }, void 0) }, void 0)] }, void 0), _jsx("div", { className: "diagram-editor__hotkey__groups__divider" }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Use property tool" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "P" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Use inheritance tool" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "I" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Add class" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "C" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Add simple property to selected class" }, void 0), _jsxs("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: [_jsx("div", { className: "hotkey__key", children: "Alt" }, void 0), _jsx("div", { className: "hotkey__plus", children: _jsx(PlusIcon, {}, void 0) }, void 0), _jsx("div", { className: "hotkey__key", children: "\u2193" }, void 0)] }, void 0)] }, void 0), _jsx("div", { className: "diagram-editor__hotkey__groups__divider" }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Toggle display for properties of selected classes" }, void 0), _jsxs("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: [_jsx("div", { className: "hotkey__key", children: "Alt" }, void 0), _jsx("div", { className: "hotkey__plus", children: _jsx(PlusIcon, {}, void 0) }, void 0), _jsx("div", { className: "hotkey__key", children: "P" }, void 0)] }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Toggle display for tagged values of selected classes" }, void 0), _jsxs("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: [_jsx("div", { className: "hotkey__key", children: "Alt" }, void 0), _jsx("div", { className: "hotkey__plus", children: _jsx(PlusIcon, {}, void 0) }, void 0), _jsx("div", { className: "hotkey__key", children: "T" }, void 0)] }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Toggle display for stereotypes of selected classes" }, void 0), _jsxs("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: [_jsx("div", { className: "hotkey__key", children: "Alt" }, void 0), _jsx("div", { className: "hotkey__plus", children: _jsx(PlusIcon, {}, void 0) }, void 0), _jsx("div", { className: "hotkey__key", children: "S" }, void 0)] }, void 0)] }, void 0), _jsx("div", { className: "diagram-editor__hotkey__groups__divider" }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Eject the property" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "\u2192" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Add subtypes of the selected classes to the diagram" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "\u2193" }, void 0) }, void 0)] }, void 0), _jsxs("div", { className: "diagram-editor__hotkey__group", children: [_jsx("div", { className: "diagram-editor__hotkey__annotation", children: "Add supertypes of the selected classes to the diagram" }, void 0), _jsx("div", { className: "hotkey__combination diagram-editor__hotkey__keys", children: _jsx("div", { className: "hotkey__key", children: "\u2191" }, void 0) }, void 0)] }, void 0)] }, void 0) }, void 0)] }, void 0) }, void 0));
42
55
  });
43
56
  const DiagramEditorToolPanel = observer((props) => {
44
57
  const { diagramEditorState } = props;
@@ -51,32 +64,32 @@ const DiagramEditorToolPanel = observer((props) => {
51
64
  renderer.changeMode(editMode, relationshipMode);
52
65
  }
53
66
  };
54
- return (_jsxs("div", Object.assign({ className: "diagram-editor__tools" }, { children: [_jsx("button", Object.assign({ className: clsx('diagram-editor__tool', {
67
+ return (_jsxs("div", { className: "diagram-editor__tools", children: [_jsx("button", { className: clsx('diagram-editor__tool', {
55
68
  'diagram-editor__tool--active': renderer.interactionMode === DIAGRAM_INTERACTION_MODE.LAYOUT,
56
- }), tabIndex: -1, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.LAYOUT, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE), title: "View Tool (V)" }, { children: _jsx(FiMousePointer, { className: "diagram-editor__icon--layout" }, void 0) }), void 0), _jsx("button", Object.assign({ className: clsx('diagram-editor__tool', {
69
+ }), tabIndex: -1, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.LAYOUT, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE), title: "View Tool (V)", children: _jsx(FiMousePointer, { className: "diagram-editor__icon--layout" }, void 0) }, void 0), _jsx("button", { className: clsx('diagram-editor__tool', {
57
70
  'diagram-editor__tool--active': renderer.interactionMode === DIAGRAM_INTERACTION_MODE.PAN,
58
- }), tabIndex: -1, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.PAN, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE), title: "Pan Tool (M)" }, { children: _jsx(FiMove, { className: "diagram-editor__icon--pan" }, void 0) }), void 0), _jsx("button", Object.assign({ className: clsx('diagram-editor__tool', {
71
+ }), tabIndex: -1, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.PAN, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE), title: "Pan Tool (M)", children: _jsx(FiMove, { className: "diagram-editor__icon--pan" }, void 0) }, void 0), _jsx("button", { className: clsx('diagram-editor__tool', {
59
72
  'diagram-editor__tool--active': renderer.interactionMode === DIAGRAM_INTERACTION_MODE.ZOOM_IN,
60
- }), tabIndex: -1, title: "Zoom In (Z)", onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ZOOM_IN, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE) }, { children: _jsx(FiZoomIn, { className: "diagram-editor__icon--zoom-in" }, void 0) }), void 0), _jsx("button", Object.assign({ className: clsx('diagram-editor__tool', {
73
+ }), tabIndex: -1, title: "Zoom In (Z)", onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ZOOM_IN, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE), children: _jsx(FiZoomIn, { className: "diagram-editor__icon--zoom-in" }, void 0) }, void 0), _jsx("button", { className: clsx('diagram-editor__tool', {
61
74
  'diagram-editor__tool--active': renderer.interactionMode === DIAGRAM_INTERACTION_MODE.ZOOM_OUT,
62
- }), tabIndex: -1, title: "Zoom Out (Z)", onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ZOOM_OUT, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE) }, { children: _jsx(FiZoomOut, { className: "diagram-editor__icon--zoom-out" }, void 0) }), void 0), _jsx("div", { className: "diagram-editor__tools__divider" }, void 0), _jsx("button", Object.assign({ className: clsx('diagram-editor__tool', {
75
+ }), tabIndex: -1, title: "Zoom Out (Z)", onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ZOOM_OUT, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE), children: _jsx(FiZoomOut, { className: "diagram-editor__icon--zoom-out" }, void 0) }, void 0), _jsx("div", { className: "diagram-editor__tools__divider" }, void 0), _jsx("button", { className: clsx('diagram-editor__tool', {
63
76
  'diagram-editor__tool--active': renderer.interactionMode ===
64
77
  DIAGRAM_INTERACTION_MODE.ADD_RELATIONSHIP &&
65
78
  renderer.relationshipMode ===
66
79
  DIAGRAM_RELATIONSHIP_EDIT_MODE.PROPERTY,
67
- }), tabIndex: -1, title: "Property Tool (P)", disabled: isReadOnly, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ADD_RELATIONSHIP, DIAGRAM_RELATIONSHIP_EDIT_MODE.PROPERTY) }, { children: _jsx(FiMinus, { className: "diagram-editor__icon--property" }, void 0) }), void 0), _jsx("button", Object.assign({ className: clsx('diagram-editor__tool', {
80
+ }), tabIndex: -1, title: "Property Tool (P)", disabled: isReadOnly, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ADD_RELATIONSHIP, DIAGRAM_RELATIONSHIP_EDIT_MODE.PROPERTY), children: _jsx(FiMinus, { className: "diagram-editor__icon--property" }, void 0) }, void 0), _jsx("button", { className: clsx('diagram-editor__tool', {
68
81
  'diagram-editor__tool--active': renderer.interactionMode ===
69
82
  DIAGRAM_INTERACTION_MODE.ADD_RELATIONSHIP &&
70
83
  renderer.relationshipMode ===
71
84
  DIAGRAM_RELATIONSHIP_EDIT_MODE.INHERITANCE,
72
- }), tabIndex: -1, title: "Inheritance Tool (I)", disabled: isReadOnly, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ADD_RELATIONSHIP, DIAGRAM_RELATIONSHIP_EDIT_MODE.INHERITANCE) }, { children: _jsx(FiTriangle, { className: "diagram-editor__icon--inheritance" }, void 0) }), void 0), _jsx("button", Object.assign({ className: clsx('diagram-editor__tool', {
85
+ }), tabIndex: -1, title: "Inheritance Tool (I)", disabled: isReadOnly, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ADD_RELATIONSHIP, DIAGRAM_RELATIONSHIP_EDIT_MODE.INHERITANCE), children: _jsx(FiTriangle, { className: "diagram-editor__icon--inheritance" }, void 0) }, void 0), _jsx("button", { className: clsx('diagram-editor__tool', {
73
86
  // 'diagram-editor__tool--active':
74
87
  // diagramRenderer.editMode === DIAGRAM_EDIT_MODE.RELATIONSHIP &&
75
88
  // diagramRenderer.relationshipMode ===
76
89
  // DIAGRAM_RELATIONSHIP_EDIT_MODE.ASSOCIATION,
77
- }), tabIndex: -1, title: "Association Tool", disabled: true }, { children: _jsx(IoResize, { className: "diagram-editor__icon--association" }, void 0) }), void 0), _jsx("button", Object.assign({ className: clsx('diagram-editor__tool', {
90
+ }), tabIndex: -1, title: "Association Tool", disabled: true, children: _jsx(IoResize, { className: "diagram-editor__icon--association" }, void 0) }, void 0), _jsx("button", { className: clsx('diagram-editor__tool', {
78
91
  'diagram-editor__tool--active': renderer.interactionMode === DIAGRAM_INTERACTION_MODE.ADD_CLASS,
79
- }), tabIndex: -1, title: "Add class tool (C)", disabled: isReadOnly, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ADD_CLASS, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE) }, { children: _jsx(FiPlusCircle, { className: "diagram-editor__icon--add-class" }, void 0) }), void 0), _jsx("div", { className: "diagram-editor__tools__divider" }, void 0), _jsx("button", Object.assign({ className: "diagram-editor__tool", tabIndex: -1, title: "Show Hotkeys", onClick: showDiagramRendererHokeysModal }, { children: _jsx(FaRegKeyboard, { className: "diagram-editor__icon--hotkey-info" }, void 0) }), void 0), _jsx(DiagramRendererHotkeyInfosModal, { open: diagramEditorState.showHotkeyInfosModal, onClose: hideDiagramRendererHokeysModal }, void 0)] }), void 0));
92
+ }), tabIndex: -1, title: "Add class tool (C)", disabled: isReadOnly, onClick: createModeSwitcher(DIAGRAM_INTERACTION_MODE.ADD_CLASS, DIAGRAM_RELATIONSHIP_EDIT_MODE.NONE), children: _jsx(FiPlusCircle, { className: "diagram-editor__icon--add-class" }, void 0) }, void 0), _jsx("div", { className: "diagram-editor__tools__divider" }, void 0), _jsx("button", { className: "diagram-editor__tool", tabIndex: -1, title: "Show Hotkeys", onClick: showDiagramRendererHokeysModal, children: _jsx(FaRegKeyboard, { className: "diagram-editor__icon--hotkey-info" }, void 0) }, void 0), _jsx(DiagramRendererHotkeyInfosModal, { open: diagramEditorState.showHotkeyInfosModal, onClose: hideDiagramRendererHokeysModal }, void 0)] }, void 0));
80
93
  });
81
94
  const DiagramEditorClassViewEditor = observer((props) => {
82
95
  const { classViewEditorState } = props;
@@ -118,26 +131,26 @@ const DiagramEditorClassViewEditor = observer((props) => {
118
131
  classView.setHideStereotypes(!classView.hideStereotypes);
119
132
  diagramEditorState.renderer.render();
120
133
  };
121
- return (_jsxs("div", Object.assign({ className: "diagram-editor__class-view-editor" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__class-view-editor__header" }, { children: _jsx("div", Object.assign({ className: "diagram-editor__class-view-editor__header__tabs" }, { children: tabs.map((tab) => (_jsx("div", Object.assign({ onClick: changeTab(tab), className: clsx('diagram-editor__class-view-editor__header__tab', {
134
+ return (_jsxs("div", { className: "diagram-editor__class-view-editor", children: [_jsx("div", { className: "diagram-editor__class-view-editor__header", children: _jsx("div", { className: "diagram-editor__class-view-editor__header__tabs", children: tabs.map((tab) => (_jsx("div", { onClick: changeTab(tab), className: clsx('diagram-editor__class-view-editor__header__tab', {
122
135
  'diagram-editor__class-view-editor__header__tab--active': tab === selectedTab,
123
- }) }, { children: prettyCONSTName(tab) }), tab))) }), void 0) }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__class-view-editor__content" }, { children: [DIAGRAM_EDITOR_SIDE_PANEL_TAB.ELEMENT === selectedTab && (_jsx(ClassFormEditor, { _class: classViewEditorState.classEditorState.class, editorState: classViewEditorState.classEditorState, onHashChange: redrawOnClassChange }, void 0)), DIAGRAM_EDITOR_SIDE_PANEL_TAB.VIEW === selectedTab && (_jsx("div", Object.assign({ className: "panel__content__form diagram-editor__class-view-editor__content__form" }, { children: _jsxs("div", Object.assign({ className: "panel__content__form__section" }, { children: [_jsxs("div", Object.assign({ className: clsx('panel__content__form__section__toggler'), onClick: toggleHideProperties }, { children: [_jsx("button", Object.assign({ className: clsx('panel__content__form__section__toggler__btn', {
136
+ }), children: prettyCONSTName(tab) }, tab))) }, void 0) }, void 0), _jsxs("div", { className: "diagram-editor__class-view-editor__content", children: [DIAGRAM_EDITOR_SIDE_PANEL_TAB.ELEMENT === selectedTab && (_jsx(ClassFormEditor, { _class: classViewEditorState.classEditorState.class, editorState: classViewEditorState.classEditorState, onHashChange: redrawOnClassChange }, void 0)), DIAGRAM_EDITOR_SIDE_PANEL_TAB.VIEW === selectedTab && (_jsx("div", { className: "panel__content__form diagram-editor__class-view-editor__content__form", children: _jsxs("div", { className: "panel__content__form__section", children: [_jsxs("div", { className: clsx('panel__content__form__section__toggler'), onClick: toggleHideProperties, children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', {
124
137
  'panel__content__form__section__toggler__btn--toggled': classView.hideProperties,
125
- }), disabled: isReadOnly }, { children: classView.hideProperties ? (_jsx(CheckSquareIcon, {}, void 0)) : (_jsx(SquareIcon, {}, void 0)) }), void 0), _jsx("div", Object.assign({ className: "panel__content__form__section__toggler__prompt" }, { children: "Specifies if properties should be hidden" }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: clsx('panel__content__form__section__toggler'), onClick: toggleHideTaggedValues }, { children: [_jsx("button", Object.assign({ className: clsx('panel__content__form__section__toggler__btn', {
138
+ }), disabled: isReadOnly, children: classView.hideProperties ? (_jsx(CheckSquareIcon, {}, void 0)) : (_jsx(SquareIcon, {}, void 0)) }, void 0), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Specifies if properties should be hidden" }, void 0)] }, void 0), _jsxs("div", { className: clsx('panel__content__form__section__toggler'), onClick: toggleHideTaggedValues, children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', {
126
139
  'panel__content__form__section__toggler__btn--toggled': classView.hideTaggedValues,
127
- }), disabled: isReadOnly }, { children: classView.hideTaggedValues ? (_jsx(CheckSquareIcon, {}, void 0)) : (_jsx(SquareIcon, {}, void 0)) }), void 0), _jsx("div", Object.assign({ className: "panel__content__form__section__toggler__prompt" }, { children: "Specifies if tagged values should be hidden" }), void 0)] }), void 0), _jsxs("div", Object.assign({ className: clsx('panel__content__form__section__toggler'), onClick: toggleHideStereotypes }, { children: [_jsx("button", Object.assign({ className: clsx('panel__content__form__section__toggler__btn', {
140
+ }), disabled: isReadOnly, children: classView.hideTaggedValues ? (_jsx(CheckSquareIcon, {}, void 0)) : (_jsx(SquareIcon, {}, void 0)) }, void 0), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Specifies if tagged values should be hidden" }, void 0)] }, void 0), _jsxs("div", { className: clsx('panel__content__form__section__toggler'), onClick: toggleHideStereotypes, children: [_jsx("button", { className: clsx('panel__content__form__section__toggler__btn', {
128
141
  'panel__content__form__section__toggler__btn--toggled': classView.hideStereotypes,
129
- }), disabled: isReadOnly }, { children: classView.hideStereotypes ? (_jsx(CheckSquareIcon, {}, void 0)) : (_jsx(SquareIcon, {}, void 0)) }), void 0), _jsx("div", Object.assign({ className: "panel__content__form__section__toggler__prompt" }, { children: "Specifies if stereotypes should be hidden" }), void 0)] }), void 0)] }), void 0) }), void 0))] }), void 0)] }), void 0));
142
+ }), disabled: isReadOnly, children: classView.hideStereotypes ? (_jsx(CheckSquareIcon, {}, void 0)) : (_jsx(SquareIcon, {}, void 0)) }, void 0), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Specifies if stereotypes should be hidden" }, void 0)] }, void 0)] }, void 0) }, void 0))] }, void 0)] }, void 0));
130
143
  });
131
144
  const DiagramEditorOverlay = observer((props) => {
132
145
  const { diagramEditorState } = props;
133
146
  const sidePanelState = diagramEditorState.sidePanelState;
134
147
  const resizeSidePanel = (handleProps) => diagramEditorState.sidePanelDisplayState.setSize(handleProps.domElement.getBoundingClientRect()
135
148
  .width);
136
- return (_jsxs(ResizablePanelGroup, Object.assign({ className: "diagram-editor__overlay", orientation: "vertical" }, { children: [_jsx(ResizablePanel, Object.assign({ minSize: 300 }, { children: _jsx("div", { className: "diagram-editor__view-finder" }, void 0) }), void 0), _jsx(ResizablePanelSplitter, { className: "diagram-editor__overlay__panel-resizer" }, void 0), _jsx(ResizablePanel, Object.assign({}, getControlledResizablePanelProps(diagramEditorState.sidePanelDisplayState.size === 0, {
137
- classes: ['diagram-editor__overlay__panel'],
138
- onStopResize: resizeSidePanel,
139
- }), { flex: 0, direction: -1, size: diagramEditorState.sidePanelDisplayState.size }, { children: _jsxs("div", Object.assign({ className: "panel diagram-editor__side-panel" }, { children: [sidePanelState instanceof
140
- DiagramEditorClassViewEditorSidePanelState && (_jsx(DiagramEditorClassViewEditor, { classViewEditorState: sidePanelState }, void 0)), !sidePanelState && (_jsx(BlankPanelContent, { children: "No element selected" }, void 0))] }), void 0) }), void 0)] }), void 0));
149
+ return (_jsxs(ResizablePanelGroup, { className: "diagram-editor__overlay", orientation: "vertical", children: [_jsx(ResizablePanel, { minSize: 300, children: _jsx("div", { className: "diagram-editor__view-finder" }, void 0) }, void 0), _jsx(ResizablePanelSplitter, { className: "diagram-editor__overlay__panel-resizer" }, void 0), _jsx(ResizablePanel, { ...getControlledResizablePanelProps(diagramEditorState.sidePanelDisplayState.size === 0, {
150
+ classes: ['diagram-editor__overlay__panel'],
151
+ onStopResize: resizeSidePanel,
152
+ }), flex: 0, direction: -1, size: diagramEditorState.sidePanelDisplayState.size, children: _jsxs("div", { className: "panel diagram-editor__side-panel", children: [sidePanelState instanceof
153
+ DiagramEditorClassViewEditorSidePanelState && (_jsx(DiagramEditorClassViewEditor, { classViewEditorState: sidePanelState }, void 0)), !sidePanelState && (_jsx(BlankPanelContent, { children: "No element selected" }, void 0))] }, void 0) }, void 0)] }, void 0));
141
154
  });
142
155
  const DiagramEditorInlineClassRenamerInner = observer((props) => {
143
156
  const { inlineClassRenamerState } = props;
@@ -174,7 +187,7 @@ const DiagramEditorInlineClassRenamerInner = observer((props) => {
174
187
  useEffect(() => {
175
188
  pathInputRef.current?.focus();
176
189
  }, [inlineClassRenamerState]);
177
- return (_jsxs("form", Object.assign({ className: "diagram-editor__inline-class-creator" }, { children: [_jsxs("div", Object.assign({ className: "input-group" }, { children: [_jsx("input", { className: "diagram-editor__inline-class-creator__path input-group__input input--dark", ref: pathInputRef, disabled: isReadOnly, value: name, placeholder: "Enter class name", onChange: changePath }, void 0), classCreationValidationErrorMessage && (_jsx("div", Object.assign({ className: "input-group__error-message" }, { children: classCreationValidationErrorMessage }), void 0))] }), void 0), _jsx("button", { type: "submit", className: "diagram-editor__inline-class-creator__close-btn", onClick: close }, void 0)] }), void 0));
190
+ return (_jsxs("form", { className: "diagram-editor__inline-class-creator", children: [_jsxs("div", { className: "input-group", children: [_jsx("input", { className: "diagram-editor__inline-class-creator__path input-group__input input--dark", ref: pathInputRef, disabled: isReadOnly, value: name, placeholder: "Enter class name", onChange: changePath }, void 0), classCreationValidationErrorMessage && (_jsx("div", { className: "input-group__error-message", children: classCreationValidationErrorMessage }, void 0))] }, void 0), _jsx("button", { type: "submit", className: "diagram-editor__inline-class-creator__close-btn", onClick: close }, void 0)] }, void 0));
178
191
  });
179
192
  const DiagramEditorInlineClassRenamer = observer((props) => {
180
193
  const { diagramEditorState } = props;
@@ -185,12 +198,12 @@ const DiagramEditorInlineClassRenamer = observer((props) => {
185
198
  const anchorPositionPoint = inlineClassRenamerState
186
199
  ? diagramEditorState.renderer.canvasCoordinateToEventCoordinate(diagramEditorState.renderer.modelCoordinateToCanvasCoordinate(inlineClassRenamerState.point))
187
200
  : new Point(0, 0);
188
- return (_jsx(BasePopover, Object.assign({ onClose: closeEditor, anchorPosition: {
201
+ return (_jsx(BasePopover, { onClose: closeEditor, anchorPosition: {
189
202
  left: anchorPositionPoint.x,
190
203
  top: anchorPositionPoint.y,
191
204
  }, anchorReference: "anchorPosition", open: Boolean(inlineClassRenamerState), BackdropProps: {
192
205
  invisible: true,
193
- }, elevation: 0, marginThreshold: 0, disableRestoreFocus: true }, { children: _jsx("div", Object.assign({ className: "diagram-editor__inline-class-creator__container" }, { children: inlineClassRenamerState && (_jsx(DiagramEditorInlineClassRenamerInner, { inlineClassRenamerState: inlineClassRenamerState }, void 0)) }), void 0) }), void 0));
206
+ }, elevation: 0, marginThreshold: 0, disableRestoreFocus: true, children: _jsx("div", { className: "diagram-editor__inline-class-creator__container", children: inlineClassRenamerState && (_jsx(DiagramEditorInlineClassRenamerInner, { inlineClassRenamerState: inlineClassRenamerState }, void 0)) }, void 0) }, void 0));
194
207
  });
195
208
  const DiagramEditorInlineClassCreatorInner = observer((props) => {
196
209
  const { inlineClassCreatorState } = props;
@@ -233,7 +246,7 @@ const DiagramEditorInlineClassCreatorInner = observer((props) => {
233
246
  useEffect(() => {
234
247
  pathInputRef.current?.focus();
235
248
  }, [inlineClassCreatorState]);
236
- return (_jsxs("form", Object.assign({ className: "diagram-editor__inline-class-creator" }, { children: [_jsxs("div", Object.assign({ className: "input-group" }, { children: [_jsx("input", { className: "diagram-editor__inline-class-creator__path input-group__input input--dark", ref: pathInputRef, disabled: isReadOnly, value: path, placeholder: "Enter class path", onChange: changePath }, void 0), classCreationValidationErrorMessage && (_jsx("div", Object.assign({ className: "input-group__error-message" }, { children: classCreationValidationErrorMessage }), void 0))] }), void 0), _jsx("button", { type: "submit", className: "diagram-editor__inline-class-creator__close-btn", onClick: close }, void 0)] }), void 0));
249
+ return (_jsxs("form", { className: "diagram-editor__inline-class-creator", children: [_jsxs("div", { className: "input-group", children: [_jsx("input", { className: "diagram-editor__inline-class-creator__path input-group__input input--dark", ref: pathInputRef, disabled: isReadOnly, value: path, placeholder: "Enter class path", onChange: changePath }, void 0), classCreationValidationErrorMessage && (_jsx("div", { className: "input-group__error-message", children: classCreationValidationErrorMessage }, void 0))] }, void 0), _jsx("button", { type: "submit", className: "diagram-editor__inline-class-creator__close-btn", onClick: close }, void 0)] }, void 0));
237
250
  });
238
251
  const DiagramEditorInlineClassCreator = observer((props) => {
239
252
  const { diagramEditorState } = props;
@@ -244,12 +257,12 @@ const DiagramEditorInlineClassCreator = observer((props) => {
244
257
  const anchorPositionPoint = inlineClassCreatorState
245
258
  ? diagramEditorState.renderer.canvasCoordinateToEventCoordinate(diagramEditorState.renderer.modelCoordinateToCanvasCoordinate(inlineClassCreatorState.point))
246
259
  : new Point(0, 0);
247
- return (_jsx(BasePopover, Object.assign({ onClose: closeEditor, anchorPosition: {
260
+ return (_jsx(BasePopover, { onClose: closeEditor, anchorPosition: {
248
261
  left: anchorPositionPoint.x,
249
262
  top: anchorPositionPoint.y,
250
263
  }, anchorReference: "anchorPosition", open: Boolean(inlineClassCreatorState), BackdropProps: {
251
264
  invisible: true,
252
- }, elevation: 0, marginThreshold: 0, disableRestoreFocus: true }, { children: _jsx("div", Object.assign({ className: "diagram-editor__inline-class-creator__container" }, { children: inlineClassCreatorState && (_jsx(DiagramEditorInlineClassCreatorInner, { inlineClassCreatorState: inlineClassCreatorState }, void 0)) }), void 0) }), void 0));
265
+ }, elevation: 0, marginThreshold: 0, disableRestoreFocus: true, children: _jsx("div", { className: "diagram-editor__inline-class-creator__container", children: inlineClassCreatorState && (_jsx(DiagramEditorInlineClassCreatorInner, { inlineClassCreatorState: inlineClassCreatorState }, void 0)) }, void 0) }, void 0));
253
266
  });
254
267
  const DiagramEditorInlinePropertyMultiplicityEditor = observer((props) => {
255
268
  const { value, updateValue, isReadOnly } = props;
@@ -274,7 +287,7 @@ const DiagramEditorInlinePropertyMultiplicityEditor = observer((props) => {
274
287
  setUpperBound(event.target.value);
275
288
  updateMultiplicity(lowerBound, event.target.value);
276
289
  };
277
- return (_jsxs("div", Object.assign({ className: "diagram-editor__inline-property-editor__multiplicity-editor" }, { children: [_jsx("input", { className: "diagram-editor__inline-property-editor__multiplicity-editor__bound input--dark", disabled: isReadOnly, spellCheck: false, value: lowerBound, onChange: changeLowerBound }, void 0), _jsx("div", Object.assign({ className: "diagram-editor__inline-property-editor__multiplicity-editor__range" }, { children: ".." }), void 0), _jsx("input", { className: "diagram-editor__inline-property-editor__multiplicity-editor__bound input--dark", disabled: isReadOnly, spellCheck: false, value: upperBound, onChange: changeUpperBound }, void 0)] }), void 0));
290
+ return (_jsxs("div", { className: "diagram-editor__inline-property-editor__multiplicity-editor", children: [_jsx("input", { className: "diagram-editor__inline-property-editor__multiplicity-editor__bound input--dark", disabled: isReadOnly, spellCheck: false, value: lowerBound, onChange: changeLowerBound }, void 0), _jsx("div", { className: "diagram-editor__inline-property-editor__multiplicity-editor__range", children: ".." }, void 0), _jsx("input", { className: "diagram-editor__inline-property-editor__multiplicity-editor__bound input--dark", disabled: isReadOnly, spellCheck: false, value: upperBound, onChange: changeUpperBound }, void 0)] }, void 0));
278
291
  });
279
292
  const DiagramEditorInlinePropertyEditorInner = observer((props) => {
280
293
  const { inlinePropertyEditorState } = props;
@@ -319,9 +332,9 @@ const DiagramEditorInlinePropertyEditorInner = observer((props) => {
319
332
  useEffect(() => {
320
333
  propertyNameInputRef.current?.focus();
321
334
  }, [inlinePropertyEditorState]);
322
- return (_jsxs("form", Object.assign({ className: clsx('diagram-editor__inline-property-editor', {
335
+ return (_jsxs("form", { className: clsx('diagram-editor__inline-property-editor', {
323
336
  'diagram-editor__inline-property-editor--with-type': !inlinePropertyEditorState.isEditingPropertyView,
324
- }) }, { children: [_jsx("input", { className: "diagram-editor__inline-property-editor__name input--dark", ref: propertyNameInputRef, disabled: isReadOnly, value: property.name, onChange: changePropertyName }, void 0), !inlinePropertyEditorState.isEditingPropertyView && (_jsx(CustomSelectorInput, { className: "diagram-editor__inline-property-editor__type", disabled: isReadOnly, options: propertyTypeOptions, onChange: changePropertyType, value: selectedPropertyType, placeholder: "Choose a data type or enumeration", darkMode: true, filterOption: propertyTypeFilterOption }, void 0)), _jsx(DiagramEditorInlinePropertyMultiplicityEditor, { isReadOnly: isReadOnly, value: property.multiplicity, updateValue: changeMultiplicity }, void 0), _jsx("button", { type: "submit", className: "diagram-editor__inline-property-editor__close-btn", onClick: close }, void 0)] }), void 0));
337
+ }), children: [_jsx("input", { className: "diagram-editor__inline-property-editor__name input--dark", ref: propertyNameInputRef, disabled: isReadOnly, value: property.name, onChange: changePropertyName }, void 0), !inlinePropertyEditorState.isEditingPropertyView && (_jsx(CustomSelectorInput, { className: "diagram-editor__inline-property-editor__type", disabled: isReadOnly, options: propertyTypeOptions, onChange: changePropertyType, value: selectedPropertyType, placeholder: "Choose a data type or enumeration", darkMode: true, filterOption: propertyTypeFilterOption }, void 0)), _jsx(DiagramEditorInlinePropertyMultiplicityEditor, { isReadOnly: isReadOnly, value: property.multiplicity, updateValue: changeMultiplicity }, void 0), _jsx("button", { type: "submit", className: "diagram-editor__inline-property-editor__close-btn", onClick: close }, void 0)] }, void 0));
325
338
  });
326
339
  const DiagramEditorInlinePropertyEditor = observer((props) => {
327
340
  const { diagramEditorState } = props;
@@ -332,12 +345,12 @@ const DiagramEditorInlinePropertyEditor = observer((props) => {
332
345
  const anchorPositionPoint = inlinePropertyEditorState
333
346
  ? diagramEditorState.renderer.canvasCoordinateToEventCoordinate(diagramEditorState.renderer.modelCoordinateToCanvasCoordinate(inlinePropertyEditorState.point))
334
347
  : new Point(0, 0);
335
- return (_jsx(BasePopover, Object.assign({ onClose: closeEditor, anchorPosition: {
348
+ return (_jsx(BasePopover, { onClose: closeEditor, anchorPosition: {
336
349
  left: anchorPositionPoint.x,
337
350
  top: anchorPositionPoint.y,
338
351
  }, anchorReference: "anchorPosition", open: Boolean(inlinePropertyEditorState), BackdropProps: {
339
352
  invisible: true,
340
- }, elevation: 0, marginThreshold: 0, disableRestoreFocus: true }, { children: _jsx("div", Object.assign({ className: "diagram-editor__inline-property-editor__container" }, { children: inlinePropertyEditorState && (_jsx(DiagramEditorInlinePropertyEditorInner, { inlinePropertyEditorState: inlinePropertyEditorState }, void 0)) }), void 0) }), void 0));
353
+ }, elevation: 0, marginThreshold: 0, disableRestoreFocus: true, children: _jsx("div", { className: "diagram-editor__inline-property-editor__container", children: inlinePropertyEditorState && (_jsx(DiagramEditorInlinePropertyEditorInner, { inlinePropertyEditorState: inlinePropertyEditorState }, void 0)) }, void 0) }, void 0));
341
354
  });
342
355
  const DiagramEditorDiagramCanvas = observer((props, ref) => {
343
356
  const { diagramEditorState } = props;
@@ -395,18 +408,19 @@ const DiagramEditorHeader = observer((props) => {
395
408
  diagramEditorState.setSidePanelState(undefined);
396
409
  }
397
410
  };
398
- return (_jsxs(_Fragment, { children: [_jsxs(DropdownMenu, Object.assign({ className: "diagram-editor__header__dropdown", content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, Object.assign({ className: "diagram-editor__header__zoomer__dropdown__menu__item", onClick: zoomToFit }, { children: "Fit" }), void 0), _jsx(MenuContentDivider, {}, void 0), DIAGRAM_ZOOM_LEVELS.map((zoomLevel) => (_jsxs(MenuContentItem, Object.assign({ className: "diagram-editor__header__zoomer__dropdown__menu__item", onClick: createCenterZoomer(zoomLevel) }, { children: [zoomLevel, "%"] }), zoomLevel)))] }, void 0), menuProps: {
411
+ return (_jsxs(_Fragment, { children: [_jsxs(DropdownMenu, { className: "diagram-editor__header__dropdown", content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "diagram-editor__header__zoomer__dropdown__menu__item", onClick: zoomToFit, children: "Fit" }, void 0), _jsx(MenuContentDivider, {}, void 0), DIAGRAM_ZOOM_LEVELS.map((zoomLevel) => (_jsxs(MenuContentItem, { className: "diagram-editor__header__zoomer__dropdown__menu__item", onClick: createCenterZoomer(zoomLevel), children: [zoomLevel, "%"] }, zoomLevel)))] }, void 0), menuProps: {
399
412
  anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
400
413
  transformOrigin: { vertical: 'top', horizontal: 'right' },
401
414
  elevation: 7,
402
- } }, { children: [_jsxs("button", Object.assign({ className: "diagram-editor__header__dropdown__label diagram-editor__header__zoomer__dropdown__label", tabIndex: -1, title: "Zoom..." }, { children: [Math.round(diagramEditorState.renderer.zoom * 100), "%"] }), void 0), _jsx("div", Object.assign({ className: "diagram-editor__header__dropdown__trigger diagram-editor__header__zoomer__dropdown__trigger" }, { children: _jsx(CaretDownIcon, {}, void 0) }), void 0)] }), void 0), _jsx("div", Object.assign({ className: "diagram-editor__header__actions" }, { children: _jsx("button", Object.assign({ className: clsx('diagram-editor__header__action', {
415
+ }, children: [_jsxs("button", { className: "diagram-editor__header__dropdown__label diagram-editor__header__zoomer__dropdown__label", tabIndex: -1, title: "Zoom...", children: [Math.round(diagramEditorState.renderer.zoom * 100), "%"] }, void 0), _jsx("div", { className: "diagram-editor__header__dropdown__trigger diagram-editor__header__zoomer__dropdown__trigger", children: _jsx(CaretDownIcon, {}, void 0) }, void 0)] }, void 0), _jsx("div", { className: "diagram-editor__header__actions", children: _jsx("button", { className: clsx('diagram-editor__header__action', {
403
416
  'diagram-editor__header__action--active': diagramEditorState.sidePanelDisplayState.isOpen,
404
- }), tabIndex: -1, onClick: toggleSidePanel }, { children: _jsx(FiSidebar, { className: "diagram-editor__icon--sidebar" }, void 0) }), void 0) }), void 0)] }, void 0));
417
+ }), tabIndex: -1, onClick: toggleSidePanel, children: _jsx(FiSidebar, { className: "diagram-editor__icon--sidebar" }, void 0) }, void 0) }, void 0)] }, void 0));
405
418
  });
406
419
  export const DiagramEditor = observer(() => {
407
420
  const editorStore = useEditorStore();
408
421
  const diagramEditorState = editorStore.getCurrentEditorState(DiagramEditorState);
409
422
  const diagramCanvasRef = useRef(null);
410
- return (_jsxs("div", Object.assign({ className: "diagram-editor" }, { children: [_jsx("div", Object.assign({ className: "diagram-editor__header" }, { children: diagramEditorState.isDiagramRendererInitialized && (_jsx(DiagramEditorHeader, { diagramEditorState: diagramEditorState }, void 0)) }), void 0), _jsxs("div", Object.assign({ className: "diagram-editor__content" }, { children: [diagramEditorState.isDiagramRendererInitialized && (_jsx(DiagramEditorOverlay, { diagramEditorState: diagramEditorState }, void 0)), _jsxs("div", Object.assign({ className: "diagram-editor__stage" }, { children: [diagramEditorState.isDiagramRendererInitialized && (_jsx(DiagramEditorToolPanel, { diagramEditorState: diagramEditorState }, void 0)), _jsx(DiagramEditorDiagramCanvas, { diagramEditorState: diagramEditorState, ref: diagramCanvasRef }, void 0), diagramEditorState.isDiagramRendererInitialized && (_jsxs(_Fragment, { children: [_jsx(DiagramEditorInlinePropertyEditor, { diagramEditorState: diagramEditorState }, void 0), _jsx(DiagramEditorInlineClassCreator, { diagramEditorState: diagramEditorState }, void 0), _jsx(DiagramEditorInlineClassRenamer, { diagramEditorState: diagramEditorState }, void 0)] }, void 0))] }), void 0)] }), void 0)] }), void 0));
423
+ const onContextMenuClose = () => diagramEditorState.closeContextMenu();
424
+ return (_jsxs("div", { className: "diagram-editor", children: [_jsx("div", { className: "diagram-editor__header", children: diagramEditorState.isDiagramRendererInitialized && (_jsx(DiagramEditorHeader, { diagramEditorState: diagramEditorState }, void 0)) }, void 0), _jsxs("div", { className: "diagram-editor__content", children: [diagramEditorState.isDiagramRendererInitialized && (_jsx(DiagramEditorOverlay, { diagramEditorState: diagramEditorState }, void 0)), _jsxs(ContextMenu, { className: "diagram-editor__stage", content: _jsx(DiagramEditorContextMenu, { diagramEditorState: diagramEditorState }, void 0), disabled: !diagramEditorState.showContextMenu, menuProps: { elevation: 7 }, onClose: onContextMenuClose, children: [diagramEditorState.isDiagramRendererInitialized && (_jsx(DiagramEditorToolPanel, { diagramEditorState: diagramEditorState }, void 0)), _jsx(DiagramEditorDiagramCanvas, { diagramEditorState: diagramEditorState, ref: diagramCanvasRef }, void 0), diagramEditorState.isDiagramRendererInitialized && (_jsxs(_Fragment, { children: [_jsx(DiagramEditorInlinePropertyEditor, { diagramEditorState: diagramEditorState }, void 0), _jsx(DiagramEditorInlineClassCreator, { diagramEditorState: diagramEditorState }, void 0), _jsx(DiagramEditorInlineClassRenamer, { diagramEditorState: diagramEditorState }, void 0)] }, void 0))] }, void 0)] }, void 0)] }, void 0));
411
425
  });
412
426
  //# sourceMappingURL=DiagramEditor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditor.js","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,6BAA6B,EAC7B,0CAA0C,EAC1C,kBAAkB,GACnB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,gCAAgC,EAChC,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,KAAK,EACL,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,qBA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uB,iBACnC,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,KAAC,sBAAsB,IAAC,kBAAkB,EAAE,kBAAkB,WAAI,CACnE,EACD,KAAC,0BAA0B,IACzB,kBAAkB,EAAE,kBAAkB,EACtC,GAAG,EAAE,gBAAgB,WACrB,EACD,kBAAkB,CAAC,4BAA4B,IAAI,CAClD,8BACE,KAAC,iCAAiC,IAChC,kBAAkB,EAAE,kBAAkB,WACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,WACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,WACtC,YACD,CACJ,aACG,aACF,aACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"DiagramEditor.js","sourceRoot":"","sources":["../../../src/components/studio/DiagramEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,6BAA6B,EAC7B,0CAA0C,EAC1C,kBAAkB,GACnB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,WAAW,EACX,gCAAgC,EAChC,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,QAAQ,E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,4BAA4B,IAAI,CAClD,8BACE,KAAC,iCAAiC,IAChC,kBAAkB,EAAE,kBAAkB,WACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,WACtC,EACF,KAAC,+BAA+B,IAC9B,kBAAkB,EAAE,kBAAkB,WACtC,YACD,CACJ,YACW,YACV,YACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -22,7 +22,7 @@ export class DSLDiagram_PureGraphPlugin extends PureGraphPlugin {
22
22
  super(packageJson.extensions.pureGraphPlugin, packageJson.version);
23
23
  }
24
24
  install(pluginManager) {
25
- pluginManager.registerPureGraphPlugins(this);
25
+ pluginManager.registerPureGraphPlugin(this);
26
26
  }
27
27
  getExtraPureGraphExtensionClasses() {
28
28
  return [Diagram];
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDiagram_PureGraphPlugin.js","sourceRoot":"","sources":["../../src/graph/DSLDiagram_PureGraphPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAQ7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,+DAA+D,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,OAAO,0BAA2B,SAAQ,eAAe;IAC7D;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,CAAC,aAAiC;QACvC,aAAa,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAEQ,iCAAiC;QACxC,OAAO,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEQ,8BAA8B;QACrC,OAAO;YACL,CAAC,KAAgB,EAAQ,EAAE;gBACzB,KAAK;qBACF,2BAA2B,CAAC,OAAO,CAAC;qBACpC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAC5B,8BAA8B,CAAC,OAAO,EAAE,KAAK,CAAC,CAC/C,CAAC;YACN,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDiagram_PureGraphPlugin.js","sourceRoot":"","sources":["../../src/graph/DSLDiagram_PureGraphPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAQ7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,+DAA+D,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,OAAO,0BAA2B,SAAQ,eAAe;IAC7D;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,CAAC,aAAiC;QACvC,aAAa,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAEQ,iCAAiC;QACxC,OAAO,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEQ,8BAA8B;QACrC,OAAO;YACL,CAAC,KAAgB,EAAQ,EAAE;gBACzB,KAAK;qBACF,2BAA2B,CAAC,OAAO,CAAC;qBACpC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAC5B,8BAA8B,CAAC,OAAO,EAAE,KAAK,CAAC,CAC/C,CAAC;YACN,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-diagram v0.0.13
1
+ /** @license @finos/legend-extension-dsl-diagram v1.0.1
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/index.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../style/_diagram-editor.scss","../style/_mixins.scss","../style/index.scss"],"names":[],"mappings":"AAkBA,gBACE,YACA,WACA,aACA,sBACA,gBAEA,wBCFA,aACA,mBDIE,yBACA,cACA,sCACA,6CAGF,iCCXA,aACA,mBDaE,YAGF,gCCvBA,aACA,mBACA,uBAmBA,YACA,cDKE,cACA,aAEA,oCACE,iCAKA,sFACE,kCAKN,kCCpCA,aACA,mBDsCE,kBACA,cACA,8CAEA,yCCjDF,aACA,mBACA,uBAmBA,YACA,cD+BI,YACA,iCACA,gBACA,iBAGF,2CC3DF,aACA,mBACA,uBAmBA,YACA,cDyCI,YACA,eAEA,+CACE,iCAMJ,iDACE,WAGF,mDACE,WAGF,sDCjFF,aACA,mBACA,uBDkFI,WAIJ,yBACE,2BACA,WACA,aACA,kBACA,gBAGF,uBACE,YACA,WACA,aACA,kBAGF,yBACE,kBACA,UACA,WACA,YACA,oBAGF,wEAEE,oBAGF,uBC9GA,aACA,mBDgHE,sBACA,aACA,YACA,sCACA,cACA,kDAEA,gCCzGF,YACA,cD2GI,WACA,oBACA,aACA,sCACA,eAIJ,sBCzIA,aACA,mBACA,uBAmBA,YACA,cDuHE,cACA,aACA,oBAEA,8BACE,oBACA,sCACA,yCAIA,gCACE,kCAMF,8EACE,iCAIJ,0BACE,kCAKF,wLAME,iBAGF,gCACE,iBACA,yBAGF,mCACE,iBAGF,mCACE,iBACA,wBAGF,mCACE,iBAIJ,wBACE,0BAIA,mCACE,iBAGF,8BACE,YAGF,iCACE,eAGF,gCACE,mBAGF,6BACE,YAGF,iCACE,eAGF,kCACE,gBAGF,8BACE,YAGF,kCACE,gBAGF,qCACE,mBAIJ,4BACE,qCACA,kDAGF,8CACE,aAGF,yCCxOA,YACA,cD0OE,WACA,aACA,sCACA,eAGF,+BChQA,aACA,mBDkQE,gBAGF,oCACE,aACA,qBACA,yBACA,mBACA,YACA,iCACA,gBAKE,2CACE,kCACA,sCAGF,gDACE,kCAMR,mCACE,YACA,WAEA,2CACE,cACA,WAEA,iDACE,cACA,UACA,aACA,mBACA,kBAGF,gDACE,YACA,oBACA,mBACA,uBACA,eACA,oDACA,kCACA,mBACA,eAGF,wDACE,kBAGF,+DACE,WACA,aACA,WACA,kBACA,SACA,mCAIJ,4CACE,kBACA,2BACA,WAGF,kDACE,aAIJ,wCCnVE,aACA,mBDqVA,cACA,cACA,cAEA,mDACE,cAGF,8CC/UA,YACA,cDiVE,YACA,cACA,8CACA,mBAGF,8CCxVA,YACA,cD0VE,YACA,mBAGF,6DC9WA,aACA,mBAcA,YACA,cDkWE,WAEA,oECrWF,YACA,cDuWI,WACA,gBACA,cACA,8CAGF,oECnYF,aACA,mBACA,uBAmBA,YACA,cDiXI,WACA,gBACA,eACA,iBACA,cACA,iCACA,eAIJ,mDACE,aAIJ,sCChZE,aACA,mBDkZA,cACA,cACA,cAEA,4CCxYA,YACA,cD0YE,YACA,cACA,8CAGF,iDACE,aEnaJ,MACE,0CAGF,gBACE,2BAGF,gBACE,aACA,WACA,YACA,kBACA,gBAGF,+BACE,WACA","file":"index.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../style/_diagram-editor.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/index.scss"],"names":[],"mappings":"AAkBA,gBACE,YACA,WACA,aACA,sBACA,gBAEA,wBCKA,aACA,mBDHE,yBACA,cACA,sCACA,6CAGF,iCCJA,aACA,mBDME,YAGF,gCChBA,aACA,mBACA,uBA2BA,YACA,cDVE,cACA,aAEA,oCACE,iCAKA,sFACE,kCAKN,kCC7BA,aACA,mBD+BE,kBACA,cACA,8CAEA,yCC1CF,aACA,mBACA,uBA2BA,YACA,cDgBI,YACA,iCACA,gBACA,iBAGF,2CCpDF,aACA,mBACA,uBA2BA,YACA,cD0BI,YACA,eAEA,+CACE,iCAMJ,iDACE,WAGF,mDACE,WAGF,sDC1EF,aACA,mBACA,uBD2EI,WAIJ,yBACE,2BACA,WACA,aACA,kBACA,gBAGF,uBACE,YACA,WACA,aACA,kBAGF,yBACE,kBACA,UACA,WACA,YACA,oBAGF,wEAEE,oBAGF,uBCvGA,aACA,mBDyGE,sBACA,aACA,YACA,sCACA,cACA,kDAEA,gCC1FF,YACA,cD4FI,WACA,oBACA,aACA,sCACA,eAIJ,sBClIA,aACA,mBACA,uBA2BA,YACA,cDwGE,cACA,aACA,oBAEA,8BACE,oBACA,sCACA,yCAIA,gCACE,kCAMF,8EACE,iCAIJ,0BACE,kCAKF,wLAME,iBAGF,gCACE,iBACA,yBAGF,mCACE,iBAGF,mCACE,iBACA,wBAGF,mCACE,iBAIJ,wBACE,0BAIA,mCACE,iBAGF,8BACE,YAGF,iCACE,eAGF,gCACE,mBAGF,6BACE,YAGF,iCACE,eAGF,kCACE,gBAGF,8BACE,YAGF,kCACE,gBAGF,qCACE,mBAIJ,4BACE,qCACA,kDAGF,8CACE,aAGF,yCCzNA,YACA,cD2NE,WACA,aACA,sCACA,eAGF,+BCzPA,aACA,mBD2PE,gBAGF,oCACE,aACA,qBACA,yBACA,mBACA,YACA,iCACA,gBAKE,2CACE,kCACA,sCAGF,gDACE,kCAMR,mCACE,YACA,WAEA,2CACE,cACA,WAEA,iDACE,cACA,UACA,aACA,mBACA,kBAGF,gDACE,YACA,oBACA,mBACA,uBACA,eACA,oDACA,kCACA,mBACA,eAGF,wDACE,kBAGF,+DACE,WACA,aACA,WACA,kBACA,SACA,mCAIJ,4CACE,kBACA,2BACA,WAGF,kDACE,aAIJ,wCC5UE,aACA,mBD8UA,cACA,cACA,cAEA,mDACE,cAGF,8CChUA,YACA,cDkUE,YACA,cACA,8CACA,mBAGF,8CCzUA,YACA,cD2UE,YACA,mBAGF,6DCvWA,aACA,mBAsBA,YACA,cDmVE,WAEA,oECtVF,YACA,cDwVI,WACA,gBACA,cACA,8CAGF,oEC5XF,aACA,mBACA,uBA2BA,YACA,cDkWI,WACA,gBACA,eACA,iBACA,cACA,iCACA,eAIJ,mDACE,aAIJ,sCCzYE,aACA,mBD2YA,cACA,cACA,cAEA,4CCzXA,YACA,cD2XE,YACA,cACA,8CAGF,iDACE,aEraJ,MACE,0CAGF,gBACE,2BAGF,gBACE,aACA,WACA,YACA,kBACA,gBAGF,+BACE,WACA","file":"index.css"}
package/lib/index.d.ts CHANGED
@@ -14,7 +14,10 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export * from './DSLDiagram_Extension';
17
- export { DiagramRenderer } from './DiagramRenderer';
17
+ export { DSLDiagram_LegendStudioPlugin } from './components/studio/DSLDiagram_LegendStudioPlugin';
18
+ export * from './components/studio/DSLDiagram_LegendStudioPlugin_Extension';
19
+ export { DiagramEditorState } from './stores/studio/DiagramEditorState';
20
+ export { DiagramRenderer, DIAGRAM_INTERACTION_MODE } from './DiagramRenderer';
18
21
  export { Diagram } from './models/metamodels/pure/packageableElements/diagram/Diagram';
19
22
  export { ClassView } from './models/metamodels/pure/packageableElements/diagram/ClassView';
20
23
  export { RelationshipView, manageInsidePointsDynamically, } from './models/metamodels/pure/packageableElements/diagram/RelationshipView';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,8DAA8D,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EACL,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,mEAAmE,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,KAAK,EAAE,MAAM,qEAAqE,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,yEAAyE,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mFAAmF,CAAC;AAExH,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,8DAA8D,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EACL,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,mEAAmE,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,KAAK,EAAE,MAAM,qEAAqE,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,yEAAyE,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mFAAmF,CAAC;AAExH,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
package/lib/index.js CHANGED
@@ -14,7 +14,10 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export * from './DSLDiagram_Extension';
17
- export { DiagramRenderer } from './DiagramRenderer';
17
+ export { DSLDiagram_LegendStudioPlugin } from './components/studio/DSLDiagram_LegendStudioPlugin';
18
+ export * from './components/studio/DSLDiagram_LegendStudioPlugin_Extension';
19
+ export { DiagramEditorState } from './stores/studio/DiagramEditorState';
20
+ export { DiagramRenderer, DIAGRAM_INTERACTION_MODE } from './DiagramRenderer';
18
21
  export { Diagram } from './models/metamodels/pure/packageableElements/diagram/Diagram';
19
22
  export { ClassView } from './models/metamodels/pure/packageableElements/diagram/ClassView';
20
23
  export { RelationshipView, manageInsidePointsDynamically, } from './models/metamodels/pure/packageableElements/diagram/RelationshipView';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,8DAA8D,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EACL,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,mEAAmE,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,KAAK,EAAE,MAAM,qEAAqE,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,yEAAyE,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mFAAmF,CAAC;AAExH,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,cAAc,6DAA6D,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,8DAA8D,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EACL,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,mEAAmE,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,KAAK,EAAE,MAAM,qEAAqE,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,yEAAyE,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mFAAmF,CAAC;AAExH,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,2CAA2C,EAAE,MAAM,gEAAgE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,oBAAoB,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC;;GAEG;AACH,eAAO,MAAM,6BAA6B,SAClC,KAAK,EAAE,QACP,SAAS,MACX,SAAS,KACZ,KAAK,EAkBP,CAAC;AAEF,qBAAa,gBAAiB,YAAW,QAAQ;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,oBAAoB,CAAC;IAC3B,EAAE,EAAE,oBAAoB,CAAC;IAGzB,IAAI,EAAE,KAAK,EAAE,CAAM;gBAEP,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS;IAe1D,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI;IAG3B,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI;IAI5C;;;OAGG;IACH,aAAa,CAAC,WAAW,UAAO,GAAG,KAAK,EAAE;IAQ1C;;OAEG;IACH,IAAI,QAAQ,IAAI,KAAK,EAAE,CAMtB;IAED;;;OAGG;IACH,mBAAmB,IAAI,IAAI;IAuC3B;;;;OAIG;IACH,gBAAgB,CACd,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,WAAW,UAAO,GACjB,KAAK,GAAG,SAAS;IA0CpB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAkB3B,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
1
+ {"version":3,"file":"RelationshipView.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/diagram/RelationshipView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,oBAAoB,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC;;GAEG;AACH,eAAO,MAAM,6BAA6B,SAClC,KAAK,EAAE,QACP,SAAS,MACX,SAAS,KACZ,KAAK,EAsBP,CAAC;AAEF,qBAAa,gBAAiB,YAAW,QAAQ;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,oBAAoB,CAAC;IAC3B,EAAE,EAAE,oBAAoB,CAAC;IAGzB,IAAI,EAAE,KAAK,EAAE,CAAM;gBAEP,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS;IAe1D,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI;IAG3B,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI;IAI5C;;;OAGG;IACH,aAAa,CAAC,WAAW,UAAO,GAAG,KAAK,EAAE;IAQ1C;;OAEG;IACH,IAAI,QAAQ,IAAI,KAAK,EAAE,CAMtB;IAED;;;OAGG;IACH,mBAAmB,IAAI,IAAI;IA6C3B;;;;OAIG;IACH,gBAAgB,CACd,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,WAAW,UAAO,GACjB,KAAK,GAAG,SAAS;IA0CpB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAkB3B,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
@@ -24,6 +24,9 @@ import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils';
24
24
  * For a path, only counts the points which lie outside of the 2 class views
25
25
  */
26
26
  export const manageInsidePointsDynamically = (path, from, to) => {
27
+ if (!path.length) {
28
+ return [];
29
+ }
27
30
  let start = 0;
28
31
  let startPoint = path[start];
29
32
  while (start < path.length - 1 && from.contains(startPoint.x, startPoint.y)) {