Backup
This commit is contained in:
parent
ff0b899fa2
commit
d327be4780
|
@ -1,6 +1,5 @@
|
|||
|
||||
var Model = require ('./model');
|
||||
var Iterator = require ('./iterator');
|
||||
|
||||
/**
|
||||
* Interface for handle foreach operations on the model.
|
||||
|
@ -25,7 +24,7 @@ module.exports = new Class
|
|||
,'row-inserted': this.onRowInsert
|
||||
});
|
||||
|
||||
var set = new Iterator ({model: x});
|
||||
var set = new Vn.Iterator ({model: x});
|
||||
this.link ({_set: set});
|
||||
}
|
||||
,get: function ()
|
||||
|
|
|
@ -6,9 +6,6 @@ Db = module.exports = {
|
|||
,Result : require ('./result')
|
||||
,ResultSet : require ('./result-set')
|
||||
,Model : require ('./model')
|
||||
,IteratorIface : require ('./iterator-iface')
|
||||
,Iterator : require ('./iterator')
|
||||
,Form : require ('./form')
|
||||
,Query : require ('./query')
|
||||
,Calc : require ('./calc')
|
||||
,CalcSum : require ('./calc-sum')
|
||||
|
|
|
@ -10,7 +10,7 @@ var nativeEvents = {
|
|||
module.exports = new Class
|
||||
({
|
||||
Extends: Htk.Field
|
||||
,Implements: Db.Iterator
|
||||
,Implements: Vn.Iterator
|
||||
,Tag: 'htk-combo'
|
||||
,Properties:
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ module.exports = new Class
|
|||
return;
|
||||
|
||||
this._row = x;
|
||||
this.changed ();
|
||||
this.rowChanged ();
|
||||
}
|
||||
,get: function ()
|
||||
{
|
||||
|
@ -107,19 +107,28 @@ module.exports = new Class
|
|||
return this._notNull;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* The current row parameters.
|
||||
*/
|
||||
params:
|
||||
{
|
||||
type: Object
|
||||
,set: function (x)
|
||||
{
|
||||
this.setAll (x);
|
||||
}
|
||||
,get: function ()
|
||||
{
|
||||
return this._params;
|
||||
}
|
||||
}
|
||||
,$:
|
||||
{
|
||||
type: Object
|
||||
,set: function (x)
|
||||
{
|
||||
this.assign (x);
|
||||
this.setAll (x);
|
||||
}
|
||||
,get: function ()
|
||||
{
|
||||
return this.getParams ();
|
||||
return this._params;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ module.exports = new Class
|
|||
,'updatable-changed': this.onUpdatableChange
|
||||
});
|
||||
|
||||
var set = new Db.Iterator ({model: x});
|
||||
var set = new Vn.Iterator ({model: x});
|
||||
this.link ({_set: set});
|
||||
|
||||
this.onUpdatableChange ();
|
||||
|
|
|
@ -47,7 +47,7 @@ module.exports = new Class
|
|||
}
|
||||
}
|
||||
/**
|
||||
* {Function (Vn.BuilderResult, Db.Iterator)} Function to call after
|
||||
* {Function (Vn.BuilderResult, Vn.Iterator)} Function to call after
|
||||
* every box rendering.
|
||||
*/
|
||||
,renderer:
|
||||
|
@ -112,7 +112,7 @@ module.exports = new Class
|
|||
|
||||
,_buildBox: function (index)
|
||||
{
|
||||
var set = new Db.Iterator ({
|
||||
var set = new Vn.Iterator ({
|
||||
model: this._model,
|
||||
row: index
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
var Iterator = require ('./iterator');
|
||||
var Model = require ('./model');
|
||||
var ModelIface = require ('./model-iface');
|
||||
|
||||
module.exports = new Class
|
||||
({
|
||||
|
@ -10,13 +10,13 @@ module.exports = new Class
|
|||
{
|
||||
model:
|
||||
{
|
||||
type: Model
|
||||
type: ModelIface
|
||||
,set: function (x)
|
||||
{
|
||||
this.link ({_model: x},
|
||||
{
|
||||
'status-changed': this.onModelChange
|
||||
,'row-updated': this.onRowUpdate
|
||||
,'row-updated': this.onModelRowUpdate
|
||||
});
|
||||
}
|
||||
,get: function ()
|
||||
|
@ -38,8 +38,7 @@ module.exports = new Class
|
|||
return;
|
||||
|
||||
this._row = x;
|
||||
this._rowChanged ();
|
||||
this.changed ();
|
||||
this.rowChanged ();
|
||||
}
|
||||
,get: function ()
|
||||
{
|
||||
|
@ -77,7 +76,7 @@ module.exports = new Class
|
|||
}
|
||||
}
|
||||
|
||||
,onRowUpdate: function (model, row)
|
||||
,onModelRowUpdate: function (model, row)
|
||||
{
|
||||
if (row == this._row)
|
||||
this.rowChanged();
|
|
@ -1,9 +1,10 @@
|
|||
|
||||
var Model = require ('./model');
|
||||
var LotIface = require ('./lot-iface');
|
||||
var ModelIface = require ('./model-iface');
|
||||
|
||||
module.exports = new Class
|
||||
({
|
||||
Implements: Vn.LotIface
|
||||
Implements: LotIface
|
||||
,Properties:
|
||||
{
|
||||
/**
|
||||
|
@ -11,7 +12,7 @@ module.exports = new Class
|
|||
*/
|
||||
model:
|
||||
{
|
||||
type: Model
|
||||
type: ModelIface
|
||||
},
|
||||
/**
|
||||
* The row where the form positioned, has -1 if the row is unselected.
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
var Lot = require ('./lot');
|
||||
var IteratorIface = require ('./iterator-iface');
|
||||
var Model = require ('./model');
|
||||
var ModelIface = require ('./model-iface');
|
||||
|
||||
/**
|
||||
* A light iterator for models. It assumes that its row and model properties
|
||||
|
@ -8,13 +9,13 @@ var Model = require ('./model');
|
|||
*/
|
||||
module.exports = new Class
|
||||
({
|
||||
Extends: Vn.Lot
|
||||
Extends: Lot
|
||||
,Implements: IteratorIface
|
||||
,Properties:
|
||||
{
|
||||
model:
|
||||
{
|
||||
type: Model
|
||||
type: ModelIface
|
||||
,set: function (x)
|
||||
{
|
||||
this._model = x;
|
|
@ -44,7 +44,7 @@ module.exports = new Class
|
|||
{
|
||||
var params = {};
|
||||
params[field] = value;
|
||||
this.assign (param);
|
||||
this.assign (params);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,9 @@ Vn = module.exports = {
|
|||
,ModelIface : require ('./model-iface')
|
||||
,ModelProxy : require ('./model-proxy')
|
||||
,JsonModel : require ('./json-model')
|
||||
,IteratorIface : require ('./iterator-iface')
|
||||
,Iterator : require ('./iterator')
|
||||
,Form : require ('./form')
|
||||
,Node : require ('./node')
|
||||
,Builder : require ('./builder')
|
||||
,JsonException : require ('./json-exception')
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
"raw-loader": "^0.5.1",
|
||||
"style-loader": "^0.13.1",
|
||||
"url-loader": "^0.5.7",
|
||||
"webpack": "^2.2.0",
|
||||
"webpack": "^2.5.1",
|
||||
"webpack-chunk-hash": "^0.4.0",
|
||||
"webpack-dev-server": "^2.2.0",
|
||||
"webpack-dev-server": "^2.4.5",
|
||||
"webpack-merge": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in New Issue