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 +8 -0
- package/package.json +1 -1
- package/src/data/Array.js +6 -0
- package/src/entities/Query.js +4 -1
- package/src/ui/ListColumn.js +6 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
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": {
|
package/src/entities/Query.js
CHANGED
|
@@ -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];
|
package/src/ui/ListColumn.js
CHANGED
|
@@ -342,8 +342,13 @@ define(function(require) {
|
|
|
342
342
|
return this._autoWidthValue;
|
|
343
343
|
},
|
|
344
344
|
setAutoWidthValue: function(value, force) {
|
|
345
|
-
if(value === " ") value = " ";
|
|
346
345
|
value = value.trim();
|
|
346
|
+
if(value === " ") 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) {
|