cavalion-vcl 1.1.45 → 1.1.46
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 +7 -0
- package/package.json +1 -1
- package/src/prototypes/ui/forms/Home.tree.js +1 -1
- package/src/ui/List.js +6 -7
- package/src/ui/ListColumn.js +1 -2
- package/src/ui/ListHeader.js +5 -32
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -337,7 +337,7 @@ var Handlers = {
|
|
|
337
337
|
// @overrides ui/forms/Home<>
|
|
338
338
|
container.setVisible(false);
|
|
339
339
|
container.setParent(scope.client);
|
|
340
|
-
node.setText(params.title || " ");
|
|
340
|
+
node.setText(params.text || params.title || " ");
|
|
341
341
|
node.setVar("control", container);
|
|
342
342
|
node.setParent(parent || scope.tree);
|
|
343
343
|
node.update(function() {
|
package/src/ui/List.js
CHANGED
|
@@ -346,8 +346,6 @@ define(function(require) {
|
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
var start = this._topRow - this._rowBuffer;
|
|
349
|
-
|
|
350
|
-
|
|
351
349
|
var end = start + vrc + this._rowBuffer * 2;
|
|
352
350
|
|
|
353
351
|
if(start < 0) {
|
|
@@ -655,12 +653,13 @@ define(function(require) {
|
|
|
655
653
|
this.notifyEvent("columnsChanged");
|
|
656
654
|
},
|
|
657
655
|
updateColumns: function() {
|
|
658
|
-
this.resetColumnAutoWidth();
|
|
659
|
-
|
|
660
656
|
var updateColumns = this.updateColumns;
|
|
661
657
|
this.updateColumns = function() {
|
|
662
658
|
console.log("updateColumns blocked");
|
|
663
659
|
};
|
|
660
|
+
|
|
661
|
+
this.resetColumnAutoWidth();
|
|
662
|
+
|
|
664
663
|
try {
|
|
665
664
|
if(this._source !== null) {
|
|
666
665
|
var columns = [].concat(this._columns);
|
|
@@ -751,7 +750,7 @@ define(function(require) {
|
|
|
751
750
|
break;
|
|
752
751
|
|
|
753
752
|
case SourceEvent.busyChanged:
|
|
754
|
-
if(data && this._topRow > 0) { /* TODO what about scrolling up? */
|
|
753
|
+
if((data && this._topRow > 0) || this.hasClass("ignore-busy")) { /* TODO what about scrolling up? */
|
|
755
754
|
return;
|
|
756
755
|
}
|
|
757
756
|
this.setTimeout("update-busy", function() {
|
|
@@ -833,10 +832,10 @@ define(function(require) {
|
|
|
833
832
|
}
|
|
834
833
|
return value;
|
|
835
834
|
},
|
|
836
|
-
|
|
835
|
+
groupBy(column/*, ... TODO */) {
|
|
837
836
|
var r = {};
|
|
838
837
|
this._source.getObjects().forEach((obj, row) => {
|
|
839
|
-
var value = this.
|
|
838
|
+
var value = this.valueByColumnAndRow(column, row);
|
|
840
839
|
(r[value] = r[value] || []).push(obj);
|
|
841
840
|
});
|
|
842
841
|
return r;
|
package/src/ui/ListColumn.js
CHANGED
package/src/ui/ListHeader.js
CHANGED
|
@@ -9,9 +9,7 @@ define(function(require) {
|
|
|
9
9
|
var ListColumn = require("js/referenceClass!./List");
|
|
10
10
|
|
|
11
11
|
var ListHeader = {
|
|
12
|
-
|
|
13
12
|
inherits: Panel,
|
|
14
|
-
|
|
15
13
|
prototype: {
|
|
16
14
|
|
|
17
15
|
"@css": {
|
|
@@ -44,30 +42,17 @@ define(function(require) {
|
|
|
44
42
|
}
|
|
45
43
|
},
|
|
46
44
|
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
constructor: function() {
|
|
50
|
-
},
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @overrides ../Control.prototype
|
|
55
|
-
*/
|
|
45
|
+
/** @overrides ../Control.prototype */
|
|
56
46
|
_align: "top",
|
|
57
47
|
_autoSize: "height",
|
|
58
48
|
_content: "<div></div>",
|
|
59
49
|
|
|
60
|
-
/**
|
|
61
|
-
* @overrides ../Control.prototype.getClientNode
|
|
62
|
-
*/
|
|
63
50
|
getClientNode: function() {
|
|
51
|
+
/** overrides ../Control.prototype.getClientNode */
|
|
64
52
|
return this._node.childNodes[0];
|
|
65
53
|
},
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @overrides ../Control.prototype.setParent
|
|
69
|
-
*/
|
|
70
54
|
setParent: function(value) {
|
|
55
|
+
/** overrides ../Control.prototype.setParent */
|
|
71
56
|
if(this._parent !== value) {
|
|
72
57
|
if(this._parent !== null) {
|
|
73
58
|
Method.disconnect(this._parent, "notifyEvent", this, "listNotifyEvent");
|
|
@@ -81,11 +66,8 @@ define(function(require) {
|
|
|
81
66
|
}
|
|
82
67
|
}
|
|
83
68
|
},
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @overrides ../Control.prototype.dispatchChildEvent
|
|
87
|
-
*/
|
|
88
69
|
dispatchChildEvent: function(component, name, evt, f) {
|
|
70
|
+
/** overrides ../Control.prototype.dispatchChildEvent */
|
|
89
71
|
if(component instanceof ListColumn && component._parent === this) {
|
|
90
72
|
if(name === "dragstart" && component.hasClass("size") === false) {
|
|
91
73
|
var listview = this.getList();
|
|
@@ -141,25 +123,16 @@ define(function(require) {
|
|
|
141
123
|
return this.inherited(arguments);
|
|
142
124
|
},
|
|
143
125
|
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
126
|
listNotifyEvent: function(event, data) {
|
|
148
127
|
if(event === "setScrollLeft" && this._node !== null) {
|
|
149
128
|
this._node/*.childNodes[0]*/.scrollLeft = data;
|
|
150
129
|
}
|
|
151
130
|
},
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
156
131
|
getList: function() {
|
|
157
132
|
return this._parent !== null ? this._parent : null;
|
|
158
133
|
}
|
|
159
134
|
},
|
|
160
|
-
|
|
161
135
|
properties: {
|
|
162
|
-
|
|
163
136
|
"align": {
|
|
164
137
|
set: Method,
|
|
165
138
|
type: Panel.ALIGN
|
|
@@ -172,4 +145,4 @@ define(function(require) {
|
|
|
172
145
|
};
|
|
173
146
|
|
|
174
147
|
return (ListHeader = Class.define(require, ListHeader));
|
|
175
|
-
});
|
|
148
|
+
});
|