@node-projects/web-component-designer 0.1.147 → 0.1.149
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/dist/elements/helper/contextMenu/ContextMenu.js +3 -0
- package/dist/elements/services/modelCommandService/DefaultModelCommandService.js +5 -2
- package/dist/elements/widgets/propertyGrid/PropertyGrid.d.ts +1 -0
- package/dist/elements/widgets/propertyGrid/PropertyGrid.js +2 -1
- package/package.json +1 -1
|
@@ -191,11 +191,14 @@ export class ContextMenu {
|
|
|
191
191
|
else {
|
|
192
192
|
if (item.action)
|
|
193
193
|
li.addEventListener('click', (e) => {
|
|
194
|
+
e.stopPropagation();
|
|
195
|
+
e.preventDefault();
|
|
194
196
|
item.action(e, item, this.context, this);
|
|
195
197
|
this.close();
|
|
196
198
|
});
|
|
197
199
|
if (this.options?.mode == 'undo') {
|
|
198
200
|
li.addEventListener('mouseup', (e) => {
|
|
201
|
+
e.stopPropagation();
|
|
199
202
|
item.action(e, item, this.context, this);
|
|
200
203
|
this.close();
|
|
201
204
|
});
|
|
@@ -37,10 +37,12 @@ export class DefaultModelCommandService {
|
|
|
37
37
|
if (idx < sel.parent.childCount)
|
|
38
38
|
sel.parent.insertChild(sel, idx);
|
|
39
39
|
}
|
|
40
|
-
else if (command.type == CommandType.moveToBack)
|
|
40
|
+
else if (command.type == CommandType.moveToBack) {
|
|
41
41
|
sel.parent.insertChild(sel, 0);
|
|
42
|
-
|
|
42
|
+
}
|
|
43
|
+
else if (command.type == CommandType.moveToFront) {
|
|
43
44
|
sel.parent.insertChild(sel);
|
|
45
|
+
}
|
|
44
46
|
else if (command.type == CommandType.arrangeTop) {
|
|
45
47
|
ArrangeHelper.arrangeElements(Orientation.TOP, designerCanvas, designerCanvas.instanceServiceContainer.selectionService.selectedElements);
|
|
46
48
|
}
|
|
@@ -141,6 +143,7 @@ export class DefaultModelCommandService {
|
|
|
141
143
|
}
|
|
142
144
|
else
|
|
143
145
|
return null;
|
|
146
|
+
designerCanvas.instanceServiceContainer.selectionService.setSelectedElements(null);
|
|
144
147
|
designerCanvas.instanceServiceContainer.selectionService.setSelectedElements(selection);
|
|
145
148
|
return true;
|
|
146
149
|
}
|
|
@@ -25,6 +25,7 @@ export declare class PropertyGrid extends BaseCustomWebComponentLazyAppend {
|
|
|
25
25
|
selectedItems: ArrayConstructor;
|
|
26
26
|
propertyGroupHover: FunctionConstructor;
|
|
27
27
|
propertyGroupClick: FunctionConstructor;
|
|
28
|
+
propertyContextMenuProvider: FunctionConstructor;
|
|
28
29
|
};
|
|
29
30
|
constructor();
|
|
30
31
|
set serviceContainer(value: ServiceContainer);
|
|
@@ -34,7 +34,8 @@ export class PropertyGrid extends BaseCustomWebComponentLazyAppend {
|
|
|
34
34
|
instanceServiceContainer: Object,
|
|
35
35
|
selectedItems: Array,
|
|
36
36
|
propertyGroupHover: Function,
|
|
37
|
-
propertyGroupClick: Function
|
|
37
|
+
propertyGroupClick: Function,
|
|
38
|
+
propertyContextMenuProvider: Function
|
|
38
39
|
};
|
|
39
40
|
constructor() {
|
|
40
41
|
super();
|
package/package.json
CHANGED