cavalion-vcl 1.1.38 → 1.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 2021/12/17 - 1.1.41
2
+
3
+ * Working around autoWidth bug (ListColumn)
4
+
5
+ ### 2021/12/07 - 1.1.40
6
+
7
+ * Updating
8
+
1
9
  ### 2021/10/23 - 1.1.37
2
10
 
3
11
  * Updating
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cavalion-vcl",
3
- "version": "1.1.38",
3
+ "version": "1.1.41",
4
4
  "description": "Visual Component Library for vcl-comps",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/data/Array.js CHANGED
@@ -21,6 +21,7 @@ define(function(require) {
21
21
  _notifications: null,
22
22
 
23
23
  _onUpdate: null,
24
+ _onChange: null,
24
25
  _onBusyChanged: null,
25
26
  _onActiveChanged: null,
26
27
  _onGetAttributeValue: null,
@@ -86,6 +87,8 @@ define(function(require) {
86
87
  this.fire("onActiveChanged", args);
87
88
  } else if(event === SourceEvent.updated) {
88
89
  this.fire("onUpdate", args);
90
+ } else if(event === SourceEvent.changed) {
91
+ this.fire("onChange", args);
89
92
  }
90
93
  this.emit("event", arguments);
91
94
  },
@@ -329,6 +332,9 @@ define(function(require) {
329
332
  type: Type.EVENT
330
333
  },
331
334
  "onUpdate": {
335
+ type: Type.EVENT
336
+ },
337
+ "onChange": {
332
338
  type: Type.EVENT
333
339
  },
334
340
  "onFilterObject": {
@@ -368,7 +368,7 @@ define(function(require) {
368
368
  this.notify(SourceEvent.layoutChanged);
369
369
  }
370
370
 
371
- if(this._arr === null) {
371
+ if(this._arr === 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;
@@ -380,10 +380,13 @@ define(function(require) {
380
380
  }
381
381
  while(instances.length < res.count) {
382
382
  instances.push(Source.Pending);
383
+ }
384
+ while(tuples.length < res.count) {
383
385
  tuples.push(Source.Pending);
384
386
  }
385
387
  this._tuples = tuples;
386
388
  this.setArray(instances);
389
+ this.notify(SourceEvent.updated, {}); // TODO #VA-20211123-1
387
390
  } else {
388
391
  for(var i = 0; i < size; ++i) {
389
392
  this._array[i + base] = instances[i];
@@ -342,8 +342,13 @@ define(function(require) {
342
342
  return this._autoWidthValue;
343
343
  },
344
344
  setAutoWidthValue: function(value, force) {
345
- if(value === "&nbsp;") value = " ";
346
345
  value = value.trim();
346
+ if(value === "&nbsp;") value = " ";
347
+
348
+ if(value.length <= 10) {
349
+ value += "W";
350
+ }
351
+
347
352
  if(force === true || (this._autoWidthValue !== value && value.length > this._autoWidthValue.length)) {
348
353
  this._autoWidthValue = value;
349
354
  if(this._node !== null) {