cavalion-vcl 1.1.48 → 1.1.49

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 2022/01/30 - 1.1.50
2
+
3
+ - Extending the methods that can be called on a `Component.prototype.query`-result
4
+
5
+ ### 2022/01/28 - 1.1.49
6
+
7
+ * Fix for `vcl/Component.prototype.set` when called with a single string parameter (parsed by `js.str2obj`)
8
+
1
9
  ### 2022/01/22 - 1.1.48
2
10
 
3
11
  * Removed obsolete files (./vcl-comps/*)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cavalion-vcl",
3
- "version": "1.1.48",
3
+ "version": "1.1.49",
4
4
  "description": "Visual Component Library for vcl-comps",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Component.js CHANGED
@@ -780,7 +780,7 @@ define(function (require) {
780
780
  values[value] = arguments[1];
781
781
  return this.set(values);
782
782
  }
783
- return this.setProperties.apply(this, js.str2obj(value));
783
+ return this.setProperties.apply(this, [js.str2obj(value)]);
784
784
  }
785
785
  return this.setProperties.apply(this, arguments);
786
786
  },
@@ -1462,7 +1462,7 @@ define(function (require) {
1462
1462
  this.override(value, true);
1463
1463
  },
1464
1464
  type: Type.OBJECT
1465
- },
1465
+ }, // Yuk!
1466
1466
  "override": {
1467
1467
  fixUp: true,
1468
1468
  set: function(value) {
@@ -653,7 +653,7 @@ define(function() {
653
653
  Result.prototype = [];
654
654
 
655
655
  /*- Prototype methods of Component, Control, Action to mixin */
656
- "on,un,listen,unlisten,connect,disconnect,execute,show,hide,render,dispatch,emit,fire,once,selectNext,selectPrevious,toggleClass,print".split(",").forEach(function(name) {
656
+ "on,un,once,dispatch,emit,fire,listen,unlisten,connect,disconnect,get,set,execute,toggle,show,hide,render,selectNext,selectPrevious,selectNth,selectFirst,selectLast,toggleClass,print".split(",").forEach(function(name) {
657
657
  Result.prototype[name] = function() {
658
658
  for(var i = 0; i < this.length; ++i) {
659
659
  if(typeof this[i][name] === "function") {
@@ -368,7 +368,7 @@ define(function(require) {
368
368
  this.notify(SourceEvent.layoutChanged);
369
369
  }
370
370
 
371
- if(this._arr === null/* || this._arr.length === 0*/) {
371
+ if(this._arr === null || this._tuples === null/* || this._arr.length === 0*/) {
372
372
  if(!res.hasOwnProperty("count")) {
373
373
  if(this._count === false && page === 0 && res.instances.length === 0) {
374
374
  res.count = 0;
@@ -155,7 +155,7 @@ define(function (require) {
155
155
 
156
156
  if(component !== null) {
157
157
  if(!(component instanceof Form)) {
158
- console.error(String.format("%s is not a %n (but a %n)", uri, Form,
158
+ console.warn(String.format("[warning] %s is not a %n (but a %n)", uri, Form,
159
159
  typeof component.getClass === "function" ?
160
160
  component.getClass() : component));
161
161