ende 0.4.17 → 0.4.18
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.
- checksums.yaml +4 -4
- data/component.json +0 -1
- data/lib/assets/javascripts/aura/extensions/domain.js.coffee +8 -6
- data/lib/assets/javascripts/aura/extensions/rivets.js.coffee +2 -2
- data/lib/assets/javascripts/aura/extensions/states.js.coffee +27 -26
- data/lib/assets/javascripts/aura/extensions/widget/composable.js.coffee +12 -13
- data/lib/assets/javascripts/aura/extensions/widget/eventable.js.coffee +1 -5
- data/lib/assets/javascripts/aura/extensions/widget/lifecycleable.js.coffee +3 -2
- data/lib/assets/javascripts/config/load_components.js.coffee +2 -0
- data/lib/ende/version.rb +1 -1
- data/vendor/assets/components/ende_build.js +684 -5384
- data/vendor/components/indefinido-indemma/build/development.js +44 -21901
- data/vendor/components/indefinido-indemma/build/release.js +228 -256
- data/vendor/components/indefinido-indemma/build/test.js +44 -21901
- data/vendor/components/indefinido-indemma/lib/record/rest.js +7 -2
- data/vendor/components/indefinido-indemma/lib/record/restfulable.js +17 -7
- data/vendor/components/indefinido-indemma/lib/record/scopable.js +1 -41
- data/vendor/components/indefinido-indemma/lib/record/validatable.js +206 -191
- data/vendor/components/indefinido-indemma/src/lib/record/rest.coffee +7 -1
- data/vendor/components/indefinido-indemma/src/lib/record/restfulable.coffee +12 -5
- data/vendor/components/indefinido-indemma/src/lib/record/scopable.coffee +14 -23
- data/vendor/components/indefinido-indemma/src/lib/record/validatable.coffee +12 -1
- metadata +3 -3
- /data/{vendor/assets/javascripts/stampit → lib/assets/javascripts/aura/extensions/stamps}/stampit.js +0 -0
@@ -26,14 +26,10 @@ function require(path, parent, orig) {
|
|
26
26
|
// perform real require()
|
27
27
|
// by invoking the module's
|
28
28
|
// registered function
|
29
|
-
if (!module.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
module._resolving = true;
|
34
|
-
module.call(this, mod.exports, require.relative(resolved), mod);
|
35
|
-
delete module._resolving;
|
36
|
-
module.exports = mod.exports;
|
29
|
+
if (!module.exports) {
|
30
|
+
module.exports = {};
|
31
|
+
module.client = module.component = true;
|
32
|
+
module.call(this, module.exports, require.relative(resolved), module);
|
37
33
|
}
|
38
34
|
|
39
35
|
return module.exports;
|
@@ -20737,7 +20733,7 @@ model.pluralize = resourceable.pluralize;
|
|
20737
20733
|
|
20738
20734
|
});
|
20739
20735
|
require.register("indemma/lib/record/rest.js", function(exports, require, module){
|
20740
|
-
var $, request;
|
20736
|
+
var $, data_for, request;
|
20741
20737
|
|
20742
20738
|
$ = require('jquery');
|
20743
20739
|
|
@@ -20756,7 +20752,7 @@ module.exports = {
|
|
20756
20752
|
}
|
20757
20753
|
};
|
20758
20754
|
|
20759
|
-
|
20755
|
+
data_for = function(data) {
|
20760
20756
|
var param_name;
|
20761
20757
|
|
20762
20758
|
param_name = this.resource.param_name || this.resource.toString();
|
@@ -20768,6 +20764,11 @@ request = function(method, url, data) {
|
|
20768
20764
|
delete data[param_name]['id'];
|
20769
20765
|
delete data[param_name]['_id'];
|
20770
20766
|
}
|
20767
|
+
return data;
|
20768
|
+
};
|
20769
|
+
|
20770
|
+
request = function(method, url, data) {
|
20771
|
+
data = data_for.call(this, data);
|
20771
20772
|
return $.ajax({
|
20772
20773
|
url: url,
|
20773
20774
|
data: data,
|
@@ -21120,11 +21121,11 @@ restful = {
|
|
21120
21121
|
return JSON.stringify(serialized);
|
21121
21122
|
}
|
21122
21123
|
},
|
21123
|
-
json: function(
|
21124
|
-
var definition, json, name, nature, nested, value;
|
21124
|
+
json: function(options) {
|
21125
|
+
var definition, json, method, name, nature, nested, value, _ref, _ref1;
|
21125
21126
|
|
21126
|
-
if (
|
21127
|
-
|
21127
|
+
if (options == null) {
|
21128
|
+
options = {};
|
21128
21129
|
}
|
21129
21130
|
json = {};
|
21130
21131
|
definition = model[this.resource.toString()];
|
@@ -21150,15 +21151,15 @@ restful = {
|
|
21150
21151
|
console.warn("json: Tryied to serialize nested attribute '" + name + "' without serialization method!");
|
21151
21152
|
continue;
|
21152
21153
|
}
|
21153
|
-
json["" + name + "_attributes"] = value.json(
|
21154
|
+
json["" + name + "_attributes"] = value.json(options[name]);
|
21154
21155
|
} else if ((value.toJSON != null) || (value.json != null)) {
|
21155
21156
|
if (value.resource) {
|
21156
21157
|
continue;
|
21157
21158
|
}
|
21158
21159
|
if (value.json != null) {
|
21159
|
-
json[name] = value.json(
|
21160
|
+
json[name] = value.json(options[name]);
|
21160
21161
|
} else {
|
21161
|
-
json[name] = value.toJSON(
|
21162
|
+
json[name] = value.toJSON(options[name]);
|
21162
21163
|
}
|
21163
21164
|
} else {
|
21164
21165
|
continue;
|
@@ -21168,6 +21169,16 @@ restful = {
|
|
21168
21169
|
}
|
21169
21170
|
}
|
21170
21171
|
json = observable.unobserve(json);
|
21172
|
+
_ref1 = (_ref = options.methods) != null ? _ref : {};
|
21173
|
+
for (name in _ref1) {
|
21174
|
+
value = _ref1[name];
|
21175
|
+
method = this[name];
|
21176
|
+
if (typeof method === 'function') {
|
21177
|
+
json[name] = method();
|
21178
|
+
} else {
|
21179
|
+
json[name] = method;
|
21180
|
+
}
|
21181
|
+
}
|
21171
21182
|
delete json.dirty;
|
21172
21183
|
delete json.resource;
|
21173
21184
|
delete json.route;
|
@@ -21351,7 +21362,7 @@ scopable = {
|
|
21351
21362
|
return this.scope.fetch.call(this, data, done, fail);
|
21352
21363
|
},
|
21353
21364
|
forward_scopes_to_associations: function() {
|
21354
|
-
var associated_factory, associated_resource, association, association_name, factory,
|
21365
|
+
var associated_factory, associated_resource, association, association_name, factory, scope, _i, _j, _len, _len1, _ref, _ref1;
|
21355
21366
|
|
21356
21367
|
factory = model[this.resource.name];
|
21357
21368
|
_ref = factory.has_many;
|
@@ -21371,46 +21382,6 @@ scopable = {
|
|
21371
21382
|
association.scope(scope, associated_factory["$" + scope]);
|
21372
21383
|
}
|
21373
21384
|
}
|
21374
|
-
_ref2 = factory.has_one;
|
21375
|
-
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
|
21376
|
-
associated_resource = _ref2[_k];
|
21377
|
-
if (!model[associated_resource]) {
|
21378
|
-
console.warn("Associated factory not found for associated resource: " + associated_resource);
|
21379
|
-
continue;
|
21380
|
-
}
|
21381
|
-
_ref3 = model[associated_resource].scope.declared;
|
21382
|
-
for (_l = 0, _len3 = _ref3.length; _l < _len3; _l++) {
|
21383
|
-
scope = _ref3[_l];
|
21384
|
-
this[associated_resource][scope] = factory[scope];
|
21385
|
-
}
|
21386
|
-
}
|
21387
|
-
if (factory.belongs_to.length) {
|
21388
|
-
generate_forwarder = function(associated_resource) {
|
21389
|
-
var declared_scopes;
|
21390
|
-
|
21391
|
-
associated_factory = model[associated_resource];
|
21392
|
-
if (!associated_factory) {
|
21393
|
-
return console.warn("Associated factory not found for associated resource: " + associated_resource);
|
21394
|
-
}
|
21395
|
-
declared_scopes = associated_factory.scope.declared;
|
21396
|
-
return function() {
|
21397
|
-
var _len4, _m, _results;
|
21398
|
-
|
21399
|
-
_results = [];
|
21400
|
-
for (_m = 0, _len4 = declared_scopes.length; _m < _len4; _m++) {
|
21401
|
-
scope = declared_scopes[_m];
|
21402
|
-
_results.push(this[associated_resource][scope] = associated_factory[scope]);
|
21403
|
-
}
|
21404
|
-
return _results;
|
21405
|
-
};
|
21406
|
-
};
|
21407
|
-
_ref4 = factory.belongs_to;
|
21408
|
-
for (_m = 0, _len4 = _ref4.length; _m < _len4; _m++) {
|
21409
|
-
associated_resource = _ref4[_m];
|
21410
|
-
forwarder = generate_forwarder(associated_resource);
|
21411
|
-
this.after("build_" + associated_resource, forwarder);
|
21412
|
-
}
|
21413
|
-
}
|
21414
21385
|
return true;
|
21415
21386
|
}
|
21416
21387
|
},
|
@@ -21855,219 +21826,230 @@ module.exports = composed;
|
|
21855
21826
|
|
21856
21827
|
});
|
21857
21828
|
require.register("indemma/lib/record/validatable.js", function(exports, require, module){
|
21858
|
-
|
21859
|
-
var errorsable, extensions, initializers, manager, messages, observable, root, stampit, type;
|
21829
|
+
var errorsable, extensions, initializers, manager, messages, observable, root, stampit, type;
|
21860
21830
|
|
21861
|
-
|
21831
|
+
require('./translationable');
|
21862
21832
|
|
21863
|
-
|
21833
|
+
root = typeof exports !== "undefined" && exports !== null ? exports : this;
|
21864
21834
|
|
21865
|
-
|
21835
|
+
stampit = require('../../vendor/stampit');
|
21866
21836
|
|
21867
|
-
|
21837
|
+
observable = require('observable').mixin;
|
21868
21838
|
|
21869
|
-
|
21839
|
+
type = require('type');
|
21870
21840
|
|
21871
|
-
|
21872
|
-
|
21873
|
-
|
21874
|
-
|
21875
|
-
|
21876
|
-
|
21877
|
-
|
21878
|
-
|
21879
|
-
|
21880
|
-
|
21881
|
-
|
21882
|
-
|
21883
|
-
|
21884
|
-
|
21885
|
-
|
21886
|
-
|
21887
|
-
|
21888
|
-
|
21889
|
-
|
21890
|
-
|
21891
|
-
|
21892
|
-
|
21893
|
-
|
21894
|
-
|
21895
|
-
return "" + attribute_name + " " + options.server_message + ".";
|
21896
|
-
}
|
21897
|
-
},
|
21898
|
-
type: function(attribute_name, options) {
|
21841
|
+
messages = {
|
21842
|
+
blank: function(attribute_name) {
|
21843
|
+
attribute_name = this.human_attribute_name(attribute_name);
|
21844
|
+
return "O campo " + attribute_name + " não pode ficar em branco.";
|
21845
|
+
},
|
21846
|
+
cpf: function(attribute_name) {
|
21847
|
+
attribute_name = this.human_attribute_name(attribute_name);
|
21848
|
+
return "O campo " + attribute_name + " não está válido.";
|
21849
|
+
},
|
21850
|
+
confirmation: function(attribute_name) {
|
21851
|
+
var confirmation_attribute_name;
|
21852
|
+
|
21853
|
+
confirmation_attribute_name = this.human_attribute_name(attribute_name);
|
21854
|
+
attribute_name = this.human_attribute_name(attribute_name.replace('_confirmation', ''));
|
21855
|
+
return "O campo " + attribute_name + " não está de acordo com o campo " + confirmation_attribute_name + ".";
|
21856
|
+
},
|
21857
|
+
associated: function(attribute_name) {
|
21858
|
+
attribute_name = this.human_attribute_name(attribute_name);
|
21859
|
+
return "O registro associado " + attribute_name + " não é válido.";
|
21860
|
+
},
|
21861
|
+
server: function(attribute_name, options) {
|
21862
|
+
if (attribute_name === 'base') {
|
21863
|
+
return options.server_message;
|
21864
|
+
} else {
|
21899
21865
|
attribute_name = this.human_attribute_name(attribute_name);
|
21900
|
-
return "
|
21866
|
+
return "" + attribute_name + " " + options.server_message + ".";
|
21901
21867
|
}
|
21902
|
-
}
|
21868
|
+
},
|
21869
|
+
type: function(attribute_name, options) {
|
21870
|
+
attribute_name = this.human_attribute_name(attribute_name);
|
21871
|
+
return "O campo " + attribute_name + " não está válido.";
|
21872
|
+
}
|
21873
|
+
};
|
21903
21874
|
|
21904
|
-
|
21905
|
-
|
21906
|
-
|
21907
|
-
this.push([attribute_name, message_key, options]);
|
21908
|
-
this.messages[attribute_name] = '';
|
21909
|
-
translator = messages[message_key];
|
21910
|
-
if (translator != null) {
|
21911
|
-
return this.messages[attribute_name] += translator.call(this.model, attribute_name, options);
|
21912
|
-
} else {
|
21913
|
-
return this.messages[attribute_name] += message_key;
|
21914
|
-
}
|
21915
|
-
},
|
21916
|
-
clear: function() {
|
21917
|
-
var attribute_name, _results;
|
21918
|
-
if (this.length) {
|
21919
|
-
this.length = 0;
|
21920
|
-
_results = [];
|
21921
|
-
for (attribute_name in this.messages) {
|
21922
|
-
_results.push(this.messages[attribute_name] = null);
|
21923
|
-
}
|
21924
|
-
return _results;
|
21925
|
-
}
|
21926
|
-
},
|
21927
|
-
push: Array.prototype.push,
|
21928
|
-
splice: Array.prototype.splice,
|
21929
|
-
indexOf: Array.prototype.indexOf
|
21930
|
-
}, {
|
21931
|
-
model: null,
|
21932
|
-
messages: null,
|
21933
|
-
length: 0
|
21934
|
-
}, function() {
|
21935
|
-
this.messages = {};
|
21936
|
-
return this;
|
21937
|
-
});
|
21875
|
+
errorsable = stampit({
|
21876
|
+
add: function(attribute_name, message_key, options) {
|
21877
|
+
var translator;
|
21938
21878
|
|
21939
|
-
|
21940
|
-
|
21941
|
-
|
21942
|
-
|
21943
|
-
|
21944
|
-
|
21945
|
-
|
21946
|
-
|
21947
|
-
|
21948
|
-
|
21949
|
-
|
21950
|
-
|
21951
|
-
|
21952
|
-
|
21953
|
-
this.validate();
|
21954
|
-
if (this.validation.state() === 'resolved') {
|
21955
|
-
return !this.errors.length;
|
21956
|
-
} else {
|
21957
|
-
return null;
|
21958
|
-
}
|
21959
|
-
},
|
21960
|
-
set: function() {
|
21961
|
-
throw new TypeError("You can't set the value for the valid property.");
|
21962
|
-
},
|
21963
|
-
enumerable: false
|
21964
|
-
});
|
21965
|
-
},
|
21966
|
-
create_validators: function(definitions) {
|
21967
|
-
var definition, name, validator, validator_options, _ref, _results;
|
21968
|
-
this.validators = [];
|
21969
|
-
_ref = manager.validators;
|
21879
|
+
this.push([attribute_name, message_key, options]);
|
21880
|
+
this.messages[attribute_name] = '';
|
21881
|
+
translator = messages[message_key];
|
21882
|
+
if (translator != null) {
|
21883
|
+
return this.messages[attribute_name] += translator.call(this.model, attribute_name, options);
|
21884
|
+
} else {
|
21885
|
+
return this.messages[attribute_name] += message_key;
|
21886
|
+
}
|
21887
|
+
},
|
21888
|
+
clear: function() {
|
21889
|
+
var attribute_name, _results;
|
21890
|
+
|
21891
|
+
if (this.length) {
|
21892
|
+
this.length = 0;
|
21970
21893
|
_results = [];
|
21971
|
-
for (
|
21972
|
-
|
21973
|
-
definition = definitions[validator.definition_key];
|
21974
|
-
if (definition) {
|
21975
|
-
if (type(definition) !== 'array') definition = [definition];
|
21976
|
-
_results.push((function() {
|
21977
|
-
var _i, _len, _results2;
|
21978
|
-
_results2 = [];
|
21979
|
-
for (_i = 0, _len = definition.length; _i < _len; _i++) {
|
21980
|
-
validator_options = definition[_i];
|
21981
|
-
if (type(validator_options) !== 'object') {
|
21982
|
-
validator_options = {
|
21983
|
-
attribute_name: validator_options
|
21984
|
-
};
|
21985
|
-
}
|
21986
|
-
validator_options.model = this;
|
21987
|
-
this.validators.push(validator(validator_options));
|
21988
|
-
_results2.push(delete definitions[validator.definition_key]);
|
21989
|
-
}
|
21990
|
-
return _results2;
|
21991
|
-
}).call(this));
|
21992
|
-
} else {
|
21993
|
-
_results.push(void 0);
|
21994
|
-
}
|
21894
|
+
for (attribute_name in this.messages) {
|
21895
|
+
_results.push(this.messages[attribute_name] = null);
|
21995
21896
|
}
|
21996
21897
|
return _results;
|
21997
21898
|
}
|
21998
|
-
}
|
21899
|
+
},
|
21900
|
+
push: Array.prototype.push,
|
21901
|
+
splice: Array.prototype.splice,
|
21902
|
+
indexOf: Array.prototype.indexOf
|
21903
|
+
}, {
|
21904
|
+
model: null,
|
21905
|
+
messages: null,
|
21906
|
+
length: 0
|
21907
|
+
}, function() {
|
21908
|
+
this.messages = {};
|
21909
|
+
return this;
|
21910
|
+
});
|
21999
21911
|
|
22000
|
-
|
22001
|
-
|
22002
|
-
|
22003
|
-
|
22004
|
-
|
22005
|
-
|
22006
|
-
|
22007
|
-
|
22008
|
-
|
22009
|
-
|
22010
|
-
|
22011
|
-
|
22012
|
-
|
22013
|
-
|
22014
|
-
|
22015
|
-
|
22016
|
-
|
22017
|
-
|
22018
|
-
|
22019
|
-
|
21912
|
+
initializers = {
|
21913
|
+
define_triggers: function() {
|
21914
|
+
this.errors = errorsable({
|
21915
|
+
model: model[this.resource]
|
21916
|
+
});
|
21917
|
+
this.before('save', function() {
|
21918
|
+
if (this.save) {
|
21919
|
+
return this.validate();
|
21920
|
+
}
|
21921
|
+
});
|
21922
|
+
this.validated = false;
|
21923
|
+
this.subscribe('dirty', function(value) {
|
21924
|
+
return value && (this.validated = false);
|
21925
|
+
});
|
21926
|
+
return Object.defineProperty(this, 'valid', {
|
21927
|
+
get: function() {
|
21928
|
+
this.validate();
|
21929
|
+
if (this.validation.state() === 'resolved') {
|
21930
|
+
return !this.errors.length;
|
21931
|
+
} else {
|
21932
|
+
return null;
|
21933
|
+
}
|
22020
21934
|
},
|
22021
|
-
|
22022
|
-
|
22023
|
-
|
22024
|
-
|
22025
|
-
|
22026
|
-
|
22027
|
-
|
22028
|
-
|
22029
|
-
|
22030
|
-
|
22031
|
-
|
22032
|
-
|
22033
|
-
|
22034
|
-
|
22035
|
-
|
22036
|
-
|
22037
|
-
|
22038
|
-
|
22039
|
-
|
22040
|
-
|
22041
|
-
|
21935
|
+
set: function() {
|
21936
|
+
throw new TypeError("You can't set the value for the valid property.");
|
21937
|
+
},
|
21938
|
+
enumerable: false
|
21939
|
+
});
|
21940
|
+
},
|
21941
|
+
create_validators: function(definitions) {
|
21942
|
+
var definition, name, validator, validator_options, _ref, _results;
|
21943
|
+
|
21944
|
+
this.validators = [];
|
21945
|
+
_ref = manager.validators;
|
21946
|
+
_results = [];
|
21947
|
+
for (name in _ref) {
|
21948
|
+
validator = _ref[name];
|
21949
|
+
definition = definitions[validator.definition_key];
|
21950
|
+
if (definition) {
|
21951
|
+
if (type(definition) !== 'array') {
|
21952
|
+
definition = [definition];
|
21953
|
+
}
|
21954
|
+
_results.push((function() {
|
21955
|
+
var _i, _len, _results1;
|
21956
|
+
|
21957
|
+
_results1 = [];
|
21958
|
+
for (_i = 0, _len = definition.length; _i < _len; _i++) {
|
21959
|
+
validator_options = definition[_i];
|
21960
|
+
if (type(validator_options) !== 'object') {
|
21961
|
+
validator_options = {
|
21962
|
+
attribute_name: validator_options
|
21963
|
+
};
|
21964
|
+
}
|
21965
|
+
validator_options.model = this;
|
21966
|
+
this.validators.push(validator(validator_options));
|
21967
|
+
_results1.push(delete definitions[validator.definition_key]);
|
21968
|
+
}
|
21969
|
+
return _results1;
|
21970
|
+
}).call(this));
|
21971
|
+
} else {
|
21972
|
+
_results.push(void 0);
|
22042
21973
|
}
|
22043
21974
|
}
|
22044
|
-
|
21975
|
+
return _results;
|
21976
|
+
}
|
21977
|
+
};
|
22045
21978
|
|
22046
|
-
|
22047
|
-
|
22048
|
-
|
21979
|
+
extensions = {
|
21980
|
+
model: {
|
21981
|
+
validators: null
|
21982
|
+
},
|
21983
|
+
record: {
|
21984
|
+
validate_attribute: function(attribute, doned, failed) {
|
21985
|
+
var results, validation, validator, _i, _len, _ref;
|
22049
21986
|
|
22050
|
-
|
22051
|
-
|
22052
|
-
|
22053
|
-
|
22054
|
-
|
22055
|
-
|
22056
|
-
|
21987
|
+
this.errors.messages[attribute] = null;
|
21988
|
+
results = [this, attribute];
|
21989
|
+
_ref = model[this.resource.toString()].validators;
|
21990
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
21991
|
+
validator = _ref[_i];
|
21992
|
+
if (validator.attribute_name === attribute) {
|
21993
|
+
results.push(validator.validate_each(this, validator.attribute_name, this[validator.attribute_name]));
|
21994
|
+
}
|
21995
|
+
}
|
21996
|
+
validation = jQuery.when.apply(jQuery, results);
|
21997
|
+
validation.done(doned);
|
21998
|
+
validation.fail(failed);
|
21999
|
+
return validation;
|
22000
|
+
},
|
22001
|
+
validate: function(doned, failed) {
|
22002
|
+
var results, validator, _i, _len, _ref;
|
22057
22003
|
|
22058
|
-
|
22004
|
+
if (this.validated && !this.dirty) {
|
22005
|
+
return this.validation;
|
22006
|
+
}
|
22007
|
+
this.errors.clear();
|
22008
|
+
results = [this];
|
22009
|
+
_ref = model[this.resource.toString()].validators;
|
22010
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
22011
|
+
validator = _ref[_i];
|
22012
|
+
results.push(validator.validate_each(this, validator.attribute_name, this[validator.attribute_name]));
|
22013
|
+
}
|
22014
|
+
this.validation = jQuery.when.apply(jQuery, results);
|
22015
|
+
this.validation.done(doned);
|
22016
|
+
this.validation.fail(failed);
|
22017
|
+
return this.validation.done(function(record) {
|
22018
|
+
var old_dirty;
|
22019
|
+
|
22020
|
+
old_dirty = record.dirty;
|
22021
|
+
record.dirty = null;
|
22022
|
+
record.validated || (record.validated = true);
|
22023
|
+
record.dirty = old_dirty;
|
22024
|
+
return record;
|
22025
|
+
});
|
22026
|
+
}
|
22027
|
+
}
|
22028
|
+
};
|
22059
22029
|
|
22060
|
-
|
22030
|
+
manager = {
|
22031
|
+
validators: {}
|
22032
|
+
};
|
22061
22033
|
|
22062
|
-
|
22034
|
+
model.mix(function(modelable) {
|
22035
|
+
jQuery.extend(modelable, extensions.model);
|
22036
|
+
jQuery.extend(modelable.record, extensions.record);
|
22037
|
+
modelable.after_mix.unshift(initializers.create_validators);
|
22038
|
+
modelable.record.after_initialize.push(initializers.define_triggers);
|
22039
|
+
return model.validators = manager.validators;
|
22040
|
+
});
|
22063
22041
|
|
22064
|
-
|
22042
|
+
manager.validators.confirmation = require('./validations/confirmation');
|
22065
22043
|
|
22066
|
-
|
22044
|
+
manager.validators.associated = require('./validations/associated');
|
22067
22045
|
|
22068
|
-
|
22046
|
+
manager.validators.presence = require('./validations/presence');
|
22069
22047
|
|
22070
|
-
|
22048
|
+
manager.validators.remote = require('./validations/remote');
|
22049
|
+
|
22050
|
+
manager.validators.type = require('./validations/type');
|
22051
|
+
|
22052
|
+
manager.validators.cpf = require('./validations/cpf');
|
22071
22053
|
|
22072
22054
|
});
|
22073
22055
|
require.register("indemma/lib/extensions/rivets.js", function(exports, require, module){
|
@@ -22096,22 +22078,11 @@ model.rivets = function() {
|
|
22096
22078
|
};
|
22097
22079
|
|
22098
22080
|
});
|
22099
|
-
|
22100
|
-
|
22101
|
-
|
22102
|
-
|
22103
|
-
|
22104
|
-
|
22105
|
-
|
22106
|
-
|
22107
|
-
|
22108
|
-
|
22109
|
-
|
22110
|
-
|
22111
22081
|
require.alias("pluma-assimilate/dist/assimilate.js", "indemma/deps/assimilate/dist/assimilate.js");
|
22112
22082
|
require.alias("pluma-assimilate/dist/assimilate.js", "indemma/deps/assimilate/index.js");
|
22113
22083
|
require.alias("pluma-assimilate/dist/assimilate.js", "assimilate/index.js");
|
22114
22084
|
require.alias("pluma-assimilate/dist/assimilate.js", "pluma-assimilate/index.js");
|
22085
|
+
|
22115
22086
|
require.alias("component-type/index.js", "indemma/deps/type/index.js");
|
22116
22087
|
require.alias("component-type/index.js", "type/index.js");
|
22117
22088
|
|
@@ -22137,3 +22108,4 @@ require.alias("indefinido-advisable/index.js", "indemma/deps/advisable/index.js"
|
|
22137
22108
|
require.alias("indefinido-advisable/lib/advisable.js", "indemma/deps/advisable/lib/advisable.js");
|
22138
22109
|
require.alias("indefinido-advisable/index.js", "advisable/index.js");
|
22139
22110
|
require.alias("component-jquery/index.js", "indefinido-advisable/deps/jquery/index.js");
|
22111
|
+
|