@metadev/daga 1.5.0 → 1.5.1

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 CHANGED
@@ -4,12 +4,34 @@ List of releases and changes.
4
4
 
5
5
  ![Daga logo](https://metadev.pro/icons/daga-logo-header.svg)
6
6
 
7
- ## v. 1.5.0
7
+ ## Next release Lobera
8
8
 
9
- - Ported to Angular 18, nx 19, node 20
9
+ ## v. 1.5.1
10
+
11
+ Date: _2024-06-19_
12
+
13
+ - Highlight elements when opening the context menu on them [#142](https://github.com/metadevpro/daga/pull/142)
14
+ - Add select all (Control+A) and invert selection (Control+I) keyboard shortcuts [#143](https://github.com/metadevpro/daga/pull/143)
15
+ - Enable adding to selection with Shift+Click as well as Control+Click [#145](https://github.com/metadevpro/daga/pull/145)
16
+ - Make context menu items focusable [#145](https://github.com/metadevpro/daga/pull/145)
17
+ - Only show context menu buttons if they can be clicked [#145](https://github.com/metadevpro/daga/pull/145)
18
+ - Select elements when opening the context menu on them [#145](https://github.com/metadevpro/daga/pull/145)
19
+ - 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)
20
+ - Add diagram objects [#148](https://github.com/metadevpro/daga/pull/148)
21
+ - Enable toggling context menu in diagram configuration [#149](https://github.com/metadevpro/daga/pull/149)
22
+ - Center icons of context menu buttons [#149](https://github.com/metadevpro/daga/pull/149)
23
+
24
+ ## v. 1.5.0 Colada
25
+
26
+ Date: _2024-06-06_
27
+
28
+ - Ported to Angular 18, nx 19, node 20 [#140](https://github.com/metadevpro/daga/pull/140)
29
+ - Add context menu and clipboard functionality [#139](https://github.com/metadevpro/daga/pull/139)
10
30
 
11
31
  ## v. 1.4.3
12
32
 
33
+ Date: _2024-06-04_
34
+
13
35
  - 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
36
  - Add `TextSet` and `OptionSet` property types [#121](https://github.com/metadevpro/daga/pull/121)
15
37
  - 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 d="M 0 0 H 7.5 V 3 H 3 V 7.5 H 0 V 0 Z" fill="#233154"/>
3
+ <path d="M 12 4.5 H 4.5 V 12 H 12 V 4.5 Z" fill="#233154"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="12" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M 0 1 L 1 0 L 6 5 L 11 0 L 12 1 L 7 6 L 12 11 L 11 12 L 6 7 L 1 12 L 0 11 L 5 6 Z" fill="#979ba3"/>
3
+ </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 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,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 4 0 H 8 V 2 H 4 Z" fill="#233154"/>
3
+ <path d="M 1 1 H 3 V 3 H 9 V 1 H 11 V 12 H 1 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
+ }
@@ -1,4 +1,5 @@
1
1
  @import 'collapse-button.scss';
2
+ @import 'context-menu.scss';
2
3
  @import 'diagram-buttons.scss';
3
4
  @import 'diagram.scss';
4
5
  @import 'errors.scss';