@node-projects/web-component-designer 0.1.45 → 0.1.47
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.
|
@@ -47,9 +47,6 @@ export class PropertyGridPropertyList extends BaseCustomWebComponentLazyAppend {
|
|
|
47
47
|
text-overflow: ellipsis;
|
|
48
48
|
margin-right: 2px;
|
|
49
49
|
}
|
|
50
|
-
label[for] {
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
50
|
input, select {
|
|
54
51
|
height: 24px;
|
|
55
52
|
border: 1px solid var(--input-border-color, #596c7a);
|
|
@@ -164,6 +161,7 @@ export class PropertyGridPropertyList extends BaseCustomWebComponentLazyAppend {
|
|
|
164
161
|
rect.style.width = '7px';
|
|
165
162
|
rect.style.height = '7px';
|
|
166
163
|
rect.style.border = '1px white solid';
|
|
164
|
+
rect.style.cursor = 'pointer';
|
|
167
165
|
if (p.propertyType != PropertyType.complex)
|
|
168
166
|
rectContainer.appendChild(rect);
|
|
169
167
|
this._div.appendChild(rectContainer);
|
|
@@ -171,6 +169,10 @@ export class PropertyGridPropertyList extends BaseCustomWebComponentLazyAppend {
|
|
|
171
169
|
event.preventDefault();
|
|
172
170
|
this.openContextMenu(event, p);
|
|
173
171
|
};
|
|
172
|
+
rect.onclick = (event) => {
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
this.openContextMenu(event, p);
|
|
175
|
+
};
|
|
174
176
|
if (p.type == 'addNew') {
|
|
175
177
|
let input = editor.element;
|
|
176
178
|
input.disabled = true;
|