@qooxdoo/framework 7.0.0-beta.8 → 7.1.0
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 -3
- package/Manifest.json +2 -2
- package/README.md +2 -4
- package/lib/compiler/compile-info.json +72 -70
- package/lib/compiler/index.js +1907 -1639
- package/npm-shrinkwrap.json +950 -42
- package/package.json +5 -3
- package/source/class/qx/Class.js +0 -28
- package/source/class/qx/Mixin.js +6 -0
- package/source/class/qx/data/Array.js +1 -1
- package/source/class/qx/test/Mixin.js +206 -1
- package/source/class/qx/tool/cli/api/AbstractApi.js +4 -1
- package/source/class/qx/tool/cli/commands/Compile.js +1 -0
- package/source/class/qx/tool/cli/commands/Lint.js +19 -8
- package/source/class/qx/tool/compiler/ClassFile.js +73 -5
- package/source/class/qx/tool/compiler/TargetError.js +27 -0
- package/source/class/qx/tool/compiler/targets/Target.js +6 -0
- package/source/class/qx/tool/compiler/targets/meta/AbstractJavascriptMeta.js +1 -1
- package/source/class/qx/tool/compiler/targets/meta/Browserify.js +143 -0
- package/source/class/qx/tool/compiler/targets/meta/Uglify.js +4 -25
- package/source/class/qx/ui/form/AbstractSelectBox.js +4 -1
- package/source/class/qx/ui/form/DateField.js +4 -1
- package/source/class/qx/ui/progressive/renderer/table/Row.js +2 -1
- package/source/class/qx/ui/progressive/renderer/table/cell/Boolean.js +24 -26
- package/source/class/qx/ui/progressive/renderer/table/cell/Icon.js +9 -7
- package/source/class/qx/ui/progressive/renderer/table/cell/Image.js +16 -13
- package/source/class/qx/ui/table/Table.js +0 -1
- package/source/class/qx/ui/table/model/Abstract.js +31 -1
- package/source/class/qx/ui/table/model/Remote.js +1 -0
- package/source/class/qx/ui/table/model/Simple.js +14 -3
- package/source/class/qx/ui/table/pane/Pane.js +3 -1
- package/source/class/qx/ui/treevirtual/MNode.js +60 -5
- package/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js +11 -3
|
@@ -165,7 +165,33 @@ qx.Mixin.define("qx.ui.treevirtual.MNode", {
|
|
|
165
165
|
},
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* Opens all nodes in the tree with minimal redraw
|
|
169
|
+
*/
|
|
170
|
+
nodeOpenAll() {
|
|
171
|
+
var model = this.getTableModel();
|
|
172
|
+
model.getData().forEach(node => {
|
|
173
|
+
if (node) {
|
|
174
|
+
model.setState(node.nodeId, {bOpened: true}, true);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
model.setData();
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Closes all nodes in the tree with minimal redraw
|
|
182
|
+
*/
|
|
183
|
+
nodeCloseAll() {
|
|
184
|
+
var model = this.getTableModel();
|
|
185
|
+
model.getData().forEach(node => {
|
|
186
|
+
if (node) {
|
|
187
|
+
model.setState(node.nodeId, {bOpened: false}, true);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
model.setData();
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Internal call to set the opened state for a node. (Note that this method has no effect
|
|
169
195
|
* if the requested state is the same as the current state.)
|
|
170
196
|
*
|
|
171
197
|
* @param nodeReference {Object | Integer}
|
|
@@ -173,11 +199,16 @@ qx.Mixin.define("qx.ui.treevirtual.MNode", {
|
|
|
173
199
|
* represented either by the node object, or the node id (as would have
|
|
174
200
|
* been returned by addBranch(), addLeaf(), etc.)
|
|
175
201
|
*
|
|
176
|
-
* @param
|
|
202
|
+
* @param opened {Boolean}
|
|
177
203
|
* The new opened state for the specified node.
|
|
178
204
|
*
|
|
205
|
+
* @param cascade {Boolean}
|
|
206
|
+
* Whether to descend the tree changing opened state of all children
|
|
207
|
+
*
|
|
208
|
+
* @param isRecursed {Boolean?}
|
|
209
|
+
* For internal use when cascading to determine outer level and call setData
|
|
179
210
|
*/
|
|
180
|
-
|
|
211
|
+
_nodeSetOpenedInternal(nodeReference, opened, cascade, isRecursed) {
|
|
181
212
|
var node;
|
|
182
213
|
|
|
183
214
|
if (typeof nodeReference == "object") {
|
|
@@ -190,10 +221,34 @@ qx.Mixin.define("qx.ui.treevirtual.MNode", {
|
|
|
190
221
|
|
|
191
222
|
// Only set new state if not already in the requested state, since
|
|
192
223
|
// setting new state involves dispatching events.
|
|
193
|
-
if (
|
|
194
|
-
this.
|
|
224
|
+
if (opened != node.bOpened) {
|
|
225
|
+
this.getTableModel().setState(node.nodeId, { bOpened: opened }, true);
|
|
226
|
+
}
|
|
227
|
+
if (cascade) {
|
|
228
|
+
node.children.forEach(child => this.nodeSetOpened(child, opened, cascade, true));
|
|
229
|
+
}
|
|
230
|
+
if (!cascade || !isRecursed) {
|
|
231
|
+
this.getTableModel().setData();
|
|
195
232
|
}
|
|
196
233
|
},
|
|
234
|
+
/**
|
|
235
|
+
* Set the opened state for a node. (Note that this method has no effect
|
|
236
|
+
* if the requested state is the same as the current state.)
|
|
237
|
+
*
|
|
238
|
+
* @param nodeReference {Object | Integer}
|
|
239
|
+
* The node for which the opened state is being set. The node can be
|
|
240
|
+
* represented either by the node object, or the node id (as would have
|
|
241
|
+
* been returned by addBranch(), addLeaf(), etc.)
|
|
242
|
+
*
|
|
243
|
+
* @param opened {Boolean}
|
|
244
|
+
* The new opened state for the specified node.
|
|
245
|
+
*
|
|
246
|
+
* @param cascade {Boolean}
|
|
247
|
+
* Whether to descend the tree changing opened state of all children
|
|
248
|
+
*/
|
|
249
|
+
nodeSetOpened(nodeReference, opened, cascade) {
|
|
250
|
+
this._nodeSetOpenedInternal(nodeReference, opened, cascade, false);
|
|
251
|
+
},
|
|
197
252
|
|
|
198
253
|
/**
|
|
199
254
|
* Get the opened state for a node.
|
|
@@ -795,7 +795,7 @@ qx.Class.define("qx.ui.treevirtual.SimpleTreeDataModel", {
|
|
|
795
795
|
* Sets the whole data en bulk, or notifies the data model that node
|
|
796
796
|
* modifications are complete.
|
|
797
797
|
*
|
|
798
|
-
* @param nodeArr {Array
|
|
798
|
+
* @param nodeArr {Array?null}
|
|
799
799
|
* Pass either an Array of node objects, or null.
|
|
800
800
|
*
|
|
801
801
|
* If non-null, nodeArr is an array of node objects containing the
|
|
@@ -813,6 +813,7 @@ qx.Class.define("qx.ui.treevirtual.SimpleTreeDataModel", {
|
|
|
813
813
|
* @throws {Error} If the parameter has the wrong type.
|
|
814
814
|
*/
|
|
815
815
|
setData(nodeArr) {
|
|
816
|
+
this._checkEditing();
|
|
816
817
|
if (nodeArr instanceof Array) {
|
|
817
818
|
// Save the user-supplied data.
|
|
818
819
|
this._nodeArr = nodeArr;
|
|
@@ -853,6 +854,7 @@ qx.Class.define("qx.ui.treevirtual.SimpleTreeDataModel", {
|
|
|
853
854
|
*
|
|
854
855
|
*/
|
|
855
856
|
clearData() {
|
|
857
|
+
this._checkEditing();
|
|
856
858
|
this._clearSelections();
|
|
857
859
|
this.setData([qx.ui.treevirtual.MTreePrimitive._getEmptyTree()]);
|
|
858
860
|
},
|
|
@@ -907,9 +909,13 @@ qx.Class.define("qx.ui.treevirtual.SimpleTreeDataModel", {
|
|
|
907
909
|
* {@link SimpleTreeDataModel}. Each property value will be assigned
|
|
908
910
|
* to the corresponding property of the node specified by nodeId.
|
|
909
911
|
*
|
|
912
|
+
* @param suppressRedraw {Boolean}
|
|
913
|
+
* If true then prevents redraw; it becomes the caller's responsibility to
|
|
914
|
+
* call setData() subsequently, to cause a redraw.
|
|
915
|
+
*
|
|
910
916
|
* @throws {Error} If the node object or id is not valid.
|
|
911
917
|
*/
|
|
912
|
-
setState(nodeReference, attributes) {
|
|
918
|
+
setState(nodeReference, attributes, suppressRedraw) {
|
|
913
919
|
var node;
|
|
914
920
|
var nodeId;
|
|
915
921
|
|
|
@@ -1003,7 +1009,9 @@ qx.Class.define("qx.ui.treevirtual.SimpleTreeDataModel", {
|
|
|
1003
1009
|
|
|
1004
1010
|
// Re-render the row data since formerly visible rows may now be
|
|
1005
1011
|
// invisible, or vice versa.
|
|
1006
|
-
|
|
1012
|
+
if (!suppressRedraw) {
|
|
1013
|
+
this.setData();
|
|
1014
|
+
}
|
|
1007
1015
|
break;
|
|
1008
1016
|
|
|
1009
1017
|
default:
|