@metadev/daga 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +33 -2
- package/assets/icon/context/copy.svg +4 -0
- package/assets/icon/context/cross.svg +3 -0
- package/assets/icon/context/cut.svg +4 -0
- package/assets/icon/context/delete.svg +4 -0
- package/assets/icon/context/paste.svg +4 -0
- package/assets/styles/_context-menu.scss +32 -0
- package/assets/styles/daga.scss +1 -0
- package/fesm2022/metadev-daga.mjs +4935 -4274
- package/fesm2022/metadev-daga.mjs.map +1 -1
- package/lib/diagram-editor/diagram/collab/collab-action.d.ts +26 -2
- package/lib/diagram-editor/diagram/converters/daga-exporter.d.ts +18 -1
- package/lib/diagram-editor/diagram/converters/daga-importer.d.ts +10 -1
- package/lib/diagram-editor/diagram/converters/daga-model.d.ts +77 -89
- package/lib/diagram-editor/diagram/diagram-action.d.ts +33 -1
- package/lib/diagram-editor/diagram/diagram-canvas.d.ts +17 -2
- package/lib/diagram-editor/diagram/diagram-model.d.ts +7 -0
- package/lib/diagram-editor/diagram/diagram-object.d.ts +52 -0
- package/lib/diagram-editor/diagram/diagram-property.d.ts +6 -8
- package/lib/interfaces/canvas.d.ts +51 -0
- package/lib/util/events.d.ts +6 -0
- package/package.json +5 -5
package/Changelog.md
CHANGED
|
@@ -4,12 +4,43 @@ List of releases and changes.
|
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Next release Lobera
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## v. 1.5.2
|
|
10
|
+
|
|
11
|
+
Date: _2024-08-30_
|
|
12
|
+
|
|
13
|
+
- Create new UpdateValuesAction on debounced user changes instead of only on closing the property editor [#136](https://github.com/metadevpro/daga/issues/136) [#152](https://github.com/metadevpro/daga/pull/152)
|
|
14
|
+
- Fix bug with failing to highlight ports due to attempting to highlight ports from a removed node instead [#156](https://github.com/metadevpro/daga/pull/156)
|
|
15
|
+
- Stop propagation of keydown events on input fields to prevent deleting nodes on pressing backspace while editing a node's label [#155](https://github.com/metadevpro/daga/issues/155) [#157](https://github.com/metadevpro/daga/pull/157)
|
|
16
|
+
- Add hasProperty method to PropertySet [#158](https://github.com/metadevpro/daga/pull/158)
|
|
17
|
+
|
|
18
|
+
## v. 1.5.1
|
|
19
|
+
|
|
20
|
+
Date: _2024-06-19_
|
|
21
|
+
|
|
22
|
+
- Highlight elements when opening the context menu on them [#142](https://github.com/metadevpro/daga/pull/142)
|
|
23
|
+
- Add select all (Control+A) and invert selection (Control+I) keyboard shortcuts [#143](https://github.com/metadevpro/daga/pull/143)
|
|
24
|
+
- Enable adding to selection with Shift+Click as well as Control+Click [#145](https://github.com/metadevpro/daga/pull/145)
|
|
25
|
+
- Make context menu items focusable [#145](https://github.com/metadevpro/daga/pull/145)
|
|
26
|
+
- Only show context menu buttons if they can be clicked [#145](https://github.com/metadevpro/daga/pull/145)
|
|
27
|
+
- Select elements when opening the context menu on them [#145](https://github.com/metadevpro/daga/pull/145)
|
|
28
|
+
- Paste selection centered on the user's view or on the context menu location instead of in the place of the original selection [#147](https://github.com/metadevpro/daga/pull/147)
|
|
29
|
+
- Add diagram objects [#148](https://github.com/metadevpro/daga/pull/148)
|
|
30
|
+
- Enable toggling context menu in diagram configuration [#149](https://github.com/metadevpro/daga/pull/149)
|
|
31
|
+
- Center icons of context menu buttons [#149](https://github.com/metadevpro/daga/pull/149)
|
|
32
|
+
|
|
33
|
+
## v. 1.5.0 Colada
|
|
34
|
+
|
|
35
|
+
Date: _2024-06-06_
|
|
36
|
+
|
|
37
|
+
- Ported to Angular 18, nx 19, node 20 [#140](https://github.com/metadevpro/daga/pull/140)
|
|
38
|
+
- Add context menu and clipboard functionality [#139](https://github.com/metadevpro/daga/pull/139)
|
|
10
39
|
|
|
11
40
|
## v. 1.4.3
|
|
12
41
|
|
|
42
|
+
Date: _2024-06-04_
|
|
43
|
+
|
|
13
44
|
- Add property editor settings page [#113](https://github.com/metadevpro/daga/issues/113) [#119](https://github.com/metadevpro/daga/pull/119) [#120](https://github.com/metadevpro/daga/pull/120)
|
|
14
45
|
- Add `TextSet` and `OptionSet` property types [#121](https://github.com/metadevpro/daga/pull/121)
|
|
15
46
|
- Don't allow adding empty values in `TextList`, `TextSet` and `TextMap` property types [#121](https://github.com/metadevpro/daga/pull/121)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.091 0.65901C4.84051 1.40852 4.95069 2.55525 4.42155 3.42155L11.5 10.5L10.75 11.25H8.5L5.125 7.875L4.42155 8.57845C4.95069 9.44475 4.84051 10.5915 4.091 11.341C3.65166 11.7803 3.07583 12 2.5 12H2.37132C1.19975 12 0.25 11.0503 0.25 9.87868C0.25 9.31607 0.473495 8.7765 0.87132 8.37868L3.25 6L0.87132 3.62132C0.473495 3.2235 0.25 2.68393 0.25 2.12132C0.25 0.949748 1.19975 0 2.37132 0H2.5C3.07583 -2.34227e-06 3.65166 0.219667 4.091 0.65901ZM1.75 2.25C1.75 2.66421 2.08579 3 2.5 3C2.91421 3 3.25 2.66421 3.25 2.25C3.25 1.83579 2.91421 1.5 2.5 1.5C2.08579 1.5 1.75 1.83579 1.75 2.25ZM2.5 9C2.08579 9 1.75 9.33579 1.75 9.75C1.75 10.1642 2.08579 10.5 2.5 10.5C2.91421 10.5 3.25 10.1642 3.25 9.75C3.25 9.33579 2.91421 9 2.5 9Z" fill="#233154"/>
|
|
3
|
+
<path d="M8.5 0.75L6.25 3L8.125 4.875L11.5 1.5L10.75 0.75L8.5 0.75Z" fill="#233154"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M 3 1.5 H 0.75 V 3 H 11.25 V 1.5 H 9 V 0 H 3 V 1.5 Z" fill="#233154"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M 2.25 4.5 H 9.75 V 12 H 2.25 V 4.5 Z M 5.25 6.75 H 6.75 V 9.75 H 5.25 V 6.75 Z" fill="#233154"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.context-menu {
|
|
2
|
+
.context-menu-button {
|
|
3
|
+
color: #979ba3;
|
|
4
|
+
background-color: #f7f8fc;
|
|
5
|
+
border: 2px solid #dadeed;
|
|
6
|
+
}
|
|
7
|
+
.context-menu-button.clickable {
|
|
8
|
+
color: #233154;
|
|
9
|
+
background-color: #f7f8fc;
|
|
10
|
+
border: 2px solid #dadeed;
|
|
11
|
+
}
|
|
12
|
+
.context-menu-button.clickable:hover {
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
background-color: #dadeed;
|
|
15
|
+
border: 2px solid #f7f8fc;
|
|
16
|
+
}
|
|
17
|
+
div.copy {
|
|
18
|
+
background-image: url(../icon/context/copy.svg);
|
|
19
|
+
}
|
|
20
|
+
div.cross {
|
|
21
|
+
background-image: url(../icon/context/cross.svg);
|
|
22
|
+
}
|
|
23
|
+
div.cut {
|
|
24
|
+
background-image: url(../icon/context/cut.svg);
|
|
25
|
+
}
|
|
26
|
+
div.delete {
|
|
27
|
+
background-image: url(../icon/context/delete.svg);
|
|
28
|
+
}
|
|
29
|
+
div.paste {
|
|
30
|
+
background-image: url(../icon/context/paste.svg);
|
|
31
|
+
}
|
|
32
|
+
}
|