@node-projects/web-component-designer 0.0.281 → 0.0.282

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.
@@ -11,13 +11,13 @@ export class AttributesPropertiesService {
11
11
  return true;
12
12
  }
13
13
  getProperty(designItem, name) {
14
- return { name: name, type: 'string', service: this, propertyType: PropertyType.propertyAndAttribute };
14
+ return { name: name, type: 'string', service: this, propertyType: PropertyType.attribute };
15
15
  }
16
16
  getProperties(designItem) {
17
17
  if (designItem) {
18
18
  let p = [];
19
19
  for (let a of designItem.attributes()) {
20
- p.push({ name: a[0], renamable: true, type: 'string', service: this, propertyType: PropertyType.propertyAndAttribute });
20
+ p.push({ name: a[0], renamable: true, type: 'string', service: this, propertyType: PropertyType.attribute });
21
21
  }
22
22
  p.push({ name: '', type: 'addNew', service: this, propertyType: PropertyType.complex });
23
23
  return p;
@@ -54,6 +54,12 @@ export class AttributesPropertiesService {
54
54
  all = all && has;
55
55
  some = some || has;
56
56
  });
57
+ //todo: optimize perf, do not call bindings service for each property.
58
+ const bindings = designItems[0].serviceContainer.forSomeServicesTillResult('bindingService', (s) => {
59
+ return s.getBindings(designItems[0]);
60
+ });
61
+ if (bindings && bindings.find(x => x.target == BindingTarget.property && x.targetName == property.name))
62
+ return ValueType.bound;
57
63
  }
58
64
  else
59
65
  return ValueType.none;
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.0.281",
4
+ "version": "0.0.282",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "",
package/debug.log DELETED
@@ -1,8 +0,0 @@
1
- [0823/112712.281:ERROR:registration_protocol_win.cc(103)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)
2
- [0907/074645.949:ERROR:registration_protocol_win.cc(103)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)
3
- [0910/083941.590:ERROR:registration_protocol_win.cc(103)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)
4
- [0919/084817.864:ERROR:registration_protocol_win.cc(103)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)
5
- [0928/190147.234:ERROR:registration_protocol_win.cc(103)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)
6
- [0930/210040.588:ERROR:registration_protocol_win.cc(103)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)
7
- [0107/215230.051:ERROR:registration_protocol_win.cc(102)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)
8
- [0108/121546.570:ERROR:registration_protocol_win.cc(102)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)