@node-projects/web-component-designer-visualization-addons 0.1.39 → 0.1.41

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.
@@ -199,7 +199,7 @@ export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
199
199
  this._parseAttributesToProperties();
200
200
  this._assignEvents();
201
201
  this.twoWayPossible = false;
202
- if (this._bindingTarget == BindingTarget.property)
202
+ if (this._bindingTarget == BindingTarget.property || this._bindingTarget == BindingTarget.attribute)
203
203
  this.twoWayPossible = true;
204
204
  if (this._binding) {
205
205
  this.twoWay = this._binding.mode == BindingMode.twoWay;
@@ -160,6 +160,8 @@ export class BindingsHelper {
160
160
  }
161
161
  if (bindingTarget === BindingTarget.cssvar || bindingTarget === BindingTarget.class)
162
162
  return [BindingsHelper.dotToCamelCase(propname), binding];
163
+ if (bindingTarget === BindingTarget.attribute)
164
+ return [propname, binding];
163
165
  return [PropertiesHelper.dashToCamelCase(propname), binding];
164
166
  }
165
167
  let binding = JSON.parse(value);
@@ -175,6 +177,8 @@ export class BindingsHelper {
175
177
  }
176
178
  if (bindingTarget === BindingTarget.cssvar || bindingTarget === BindingTarget.class)
177
179
  return [BindingsHelper.dotToCamelCase(propname), binding];
180
+ if (bindingTarget === BindingTarget.attribute)
181
+ return [propname, binding];
178
182
  return [PropertiesHelper.dashToCamelCase(propname), binding];
179
183
  }
180
184
  serializeBinding(element, targetName, binding) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "web-component-designer addon for visualizations",
3
3
  "name": "@node-projects/web-component-designer-visualization-addons",
4
- "version": "0.1.39",
4
+ "version": "0.1.41",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",