@node-projects/web-component-designer 0.1.18 → 0.1.20

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.
@@ -48,6 +48,8 @@ export class DesignItem {
48
48
  replaceNode(newNode) {
49
49
  DesignItem._designItemMap.delete(this.node);
50
50
  DesignItem._designItemMap.set(newNode, this);
51
+ if (this.view == this.node)
52
+ this.view = newNode;
51
53
  this.node = newNode;
52
54
  this.nodeReplaced.emit();
53
55
  }
@@ -155,14 +155,6 @@ export class PropertyGridPropertyList extends BaseCustomWebComponentLazyAppend {
155
155
  editor = this._serviceContainer.forSomeServicesTillResult("editorTypesService", x => x.getEditorForProperty(p));
156
156
  }
157
157
  if (editor) {
158
- if (editor.element instanceof HTMLInputElement) {
159
- const ip = editor.element;
160
- ip.ondrop = e => {
161
- e.preventDefault();
162
- const data = e.dataTransfer.getData("text/plain");
163
- ip.value = data;
164
- };
165
- }
166
158
  let rectContainer = document.createElement("div");
167
159
  rectContainer.style.width = '20px';
168
160
  rectContainer.style.height = '20px';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.18",
4
+ "version": "0.1.20",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",