@node-projects/web-component-designer 0.1.146 → 0.1.148
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/propertiesService/services/AbstractPropertiesService.js +10 -6
- 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
|
});
|
|
@@ -302,14 +302,18 @@ export class AbstractPropertiesService {
|
|
|
302
302
|
let binding = property.service.getBinding(designItems, property);
|
|
303
303
|
designItems[0].serviceContainer.config.openBindingsEditor(property, designItems, binding, target);
|
|
304
304
|
}
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
title: 'clear binding', action: () => {
|
|
308
|
-
property.service.clearValue(designItems, property, 'binding');
|
|
309
|
-
designItems[0].instanceServiceContainer.designerCanvas.extensionManager.refreshAllExtensions(designItems);
|
|
310
|
-
}
|
|
311
305
|
}
|
|
312
306
|
]);
|
|
307
|
+
if (property.service.isSet(designItems, property) == ValueType.bound) {
|
|
308
|
+
ctxMenuItems.push(...[
|
|
309
|
+
{
|
|
310
|
+
title: 'clear binding', action: () => {
|
|
311
|
+
property.service.clearValue(designItems, property, 'binding');
|
|
312
|
+
designItems[0].instanceServiceContainer.designerCanvas.extensionManager.refreshAllExtensions(designItems);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
]);
|
|
316
|
+
}
|
|
313
317
|
}
|
|
314
318
|
;
|
|
315
319
|
return ctxMenuItems;
|
|
@@ -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