Skip to content

Commit

Permalink
chore(build): built latest for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanderhaegen committed Jun 28, 2015
1 parent 299065d commit a94c58d
Show file tree
Hide file tree
Showing 12 changed files with 763 additions and 4 deletions.
90 changes: 90 additions & 0 deletions dist/amd/resources/bg-BG.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
define(['exports', '../validation/utilities'], function (exports, _validationUtilities) {
'use strict';

exports.__esModule = true;
var data = {
settings: {
'numericRegex': /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/
},
messages: {
'isRequired': 'е задължително',
'onValidateCallback': 'невалидна стойност',
'AlphaNumericOrWhitespaceValidationRule': function AlphaNumericOrWhitespaceValidationRule(newValue, threshold) {
return 'трябва да съдържа само букви, цифри и интервали';
},
'AlphaNumericValidationRule': function AlphaNumericValidationRule(newValue, threshold) {
return 'трябва да съдържа само букви и цифри';
},
'AlphaValidationRule': function AlphaValidationRule(newValue, threshold) {
return 'трябва да съдържа само букви';
},
'AlphaOrWhitespaceValidationRule': function AlphaOrWhitespaceValidationRule(newValue, threshold) {
return 'трябва да съдържа само букви или интервали';
},
'BetweenLengthValidationRule': function BetweenLengthValidationRule(newValue, threshold) {
return 'броят на символите трябва да бъде между ' + _validationUtilities.Utilities.getValue(threshold.minimumLength) + ' и ' + _validationUtilities.Utilities.getValue(threshold.maximumLength);
},
'BetweenValueValidationRule': function BetweenValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде между ' + _validationUtilities.Utilities.getValue(threshold.minimumValue) + ' и ' + _validationUtilities.Utilities.getValue(threshold.maximumValue);
},
'CustomFunctionValidationRule': function CustomFunctionValidationRule(newValue, threshold) {
return 'невалидна стойност';
},
'DigitValidationRule': function DigitValidationRule(newValue, threshold) {
return 'трябва да съдържа само цифри';
},
'EmailValidationRule': function EmailValidationRule(newValue, threshold) {
return 'невалидна електронна поща';
},
'EqualityValidationRule': function EqualityValidationRule(newValue, threshold) {
return 'стойността трябва да бъде ' + _validationUtilities.Utilities.getValue(threshold.otherValue);
},
'InEqualityValidationRule': function InEqualityValidationRule(newValue, threshold) {
return 'стойността не може да бъде ' + _validationUtilities.Utilities.getValue(threshold.otherValue);
},
'EqualityWithOtherLabelValidationRule': function EqualityWithOtherLabelValidationRule(newValue, threshold) {
return 'стойността не съвпада с ' + _validationUtilities.Utilities.getValue(threshold.otherValueLabel);
},
'InEqualityWithOtherLabelValidationRule': function InEqualityWithOtherLabelValidationRule(newValue, threshold) {
return 'стойността не може да съвпада с ' + _validationUtilities.Utilities.getValue(threshold.otherValueLabel);
},
'InCollectionValidationRule': function InCollectionValidationRule(newValue, threshold) {
return 'невалидна стойност';
},
'MinimumInclusiveValueValidationRule': function MinimumInclusiveValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде ' + _validationUtilities.Utilities.getValue(threshold) + ' или повече';
},
'MinimumLengthValidationRule': function MinimumLengthValidationRule(newValue, threshold) {
return 'броят на символите трябва да бъде поне ' + _validationUtilities.Utilities.getValue(threshold);
},
'MinimumValueValidationRule': function MinimumValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде повече от ' + _validationUtilities.Utilities.getValue(threshold);
},
'MaximumInclusiveValueValidationRule': function MaximumInclusiveValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде ' + _validationUtilities.Utilities.getValue(threshold) + ' или по-малко';
},
'MaximumLengthValidationRule': function MaximumLengthValidationRule(newValue, threshold) {
return 'броят на символите не може да бъде повече от ' + _validationUtilities.Utilities.getValue(threshold);
},
'MaximumValueValidationRule': function MaximumValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде по-малко от ' + _validationUtilities.Utilities.getValue(threshold);
},
'NumericValidationRule': function NumericValidationRule(newValue, threshold) {
return 'стойността на полето трябва да бъде число';
},
'RegexValidationRule': function RegexValidationRule(newValue, threshold) {
return 'невалидна стойност';
},
'ContainsOnlyValidationRule': function ContainsOnlyValidationRule(newValue, threshold) {
return 'невалидна стойност';
},
'StrongPasswordValidationRule': function StrongPasswordValidationRule(newValue, threshold) {
return 'трябва да съдържа комбинация от малки и големи букви, цифри и специални знаци';
},
'MediumPasswordValidationRule': function MediumPasswordValidationRule(newValue, threshold) {
return 'трябва да съдържа поне ' + _validationUtilities.Utilities.getValue(threshold) + ' от следните групи: малки и големи букви, цифри и специални знаци';
}
}
};
exports.data = data;
});
96 changes: 96 additions & 0 deletions dist/amd/resources/zh-CN.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
define(['exports', '../validation/utilities'], function (exports, _validationUtilities) {
'use strict';

exports.__esModule = true;
var data = {
settings: {
'numericRegex': /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/
},
messages: {
'isRequired': '必填字段',
'onValidateCallback': '非法字段',
'AlphaNumericOrWhitespaceValidationRule': function AlphaNumericOrWhitespaceValidationRule(newValue, threshold) {
return '不能使用特殊字符';
},
'AlphaNumericValidationRule': function AlphaNumericValidationRule(newValue, threshold) {
return '只能包含字母数字字符';
},
'AlphaValidationRule': function AlphaValidationRule(newValue, threshold) {
return '只能包含字母';
},
'AlphaOrWhitespaceValidationRule': function AlphaOrWhitespaceValidationRule(newValue, threshold) {
return '只能包含字母或空格';
},
'BetweenLengthValidationRule': function BetweenLengthValidationRule(newValue, threshold) {
return '字符长度应该在 ' + _validationUtilities.Utilities.getValue(threshold.minimumLength) + ' ~ ' + _validationUtilities.Utilities.getValue(threshold.maximumLength) + ' 之间';
},
'BetweenValueValidationRule': function BetweenValueValidationRule(newValue, threshold) {
return '字符长度应该在 ' + _validationUtilities.Utilities.getValue(threshold.minimumValue) + ' ~ ' + _validationUtilities.Utilities.getValue(threshold.maximumValue) + ' 之间';
},
'CustomFunctionValidationRule': function CustomFunctionValidationRule(newValue, threshold) {
return '不合法的值';
},
'DigitValidationRule': function DigitValidationRule(newValue, threshold) {
return '只能包含数字';
},
'EmailValidationRule': function EmailValidationRule(newValue, threshold) {
return '邮箱格式不正确';
},
'EqualityValidationRule': function EqualityValidationRule(newValue, threshold) {
return '应该等于 ' + _validationUtilities.Utilities.getValue(threshold.otherValue);
},
'InEqualityValidationRule': function InEqualityValidationRule(newValue, threshold) {
return '不应该等于 ' + _validationUtilities.Utilities.getValue(threshold.otherValue);
},
'EqualityWithOtherLabelValidationRule': function EqualityWithOtherLabelValidationRule(newValue, threshold) {
return '与 ' + _validationUtilities.Utilities.getValue(threshold.otherValueLabel) + ' 不匹配';
},
'InEqualityWithOtherLabelValidationRule': function InEqualityWithOtherLabelValidationRule(newValue, threshold) {
return '不应该和 ' + _validationUtilities.Utilities.getValue(threshold.otherValueLabel) + ' 相等';
},
'InCollectionValidationRule': function InCollectionValidationRule(newValue, threshold) {
return '不合法的值';
},
'MinimumInclusiveValueValidationRule': function MinimumInclusiveValueValidationRule(newValue, threshold) {
return '最小值为 ' + _validationUtilities.Utilities.getValue(threshold) + ' (包含)';
},
'MinimumLengthValidationRule': function MinimumLengthValidationRule(newValue, threshold) {
return '最小字符长度为 ' + _validationUtilities.Utilities.getValue(threshold);
},
'MinimumValueValidationRule': function MinimumValueValidationRule(newValue, threshold) {
return '最小值为 ' + _validationUtilities.Utilities.getValue(threshold) + '(不包含)';
},
'MaximumInclusiveValueValidationRule': function MaximumInclusiveValueValidationRule(newValue, threshold) {
return '最大值为 ' + _validationUtilities.Utilities.getValue(threshold) + ' (包含)';
},
'MaximumLengthValidationRule': function MaximumLengthValidationRule(newValue, threshold) {
return '最大字符长度为 ' + _validationUtilities.Utilities.getValue(threshold);
},
'MaximumValueValidationRule': function MaximumValueValidationRule(newValue, threshold) {
return '最大值为 ' + _validationUtilities.Utilities.getValue(threshold) + '(不包含)';
},
'NumericValidationRule': function NumericValidationRule(newValue, threshold) {
return '请输入一个数字';
},
'NoSpacesValidationRule': function NoSpacesValidationRule(newValue, threshold) {
return '不能包含空字符';
},
'RegexValidationRule': function RegexValidationRule(newValue, threshold) {
return '不合法的值';
},
'ContainsOnlyValidationRule': function ContainsOnlyValidationRule(newValue, threshold) {
return '不合法的值';
},
'StrongPasswordValidationRule': function StrongPasswordValidationRule(newValue, threshold) {
return '应包含大小字母,数字和特殊字符';
},
'MediumPasswordValidationRule': function MediumPasswordValidationRule(newValue, threshold) {
return '至少包含 ' + _validationUtilities.Utilities.getValue(threshold) + ' 种以下组合:小写字母,大写字母,数字和特殊字符';
},
'URLValidationRule': function URLValidationRule(newValue, threshold) {
return 'URL格式不正确';
}
}
};
exports.data = data;
});
3 changes: 2 additions & 1 deletion dist/amd/validation/validation-rules-collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ define(['exports', '../validation/utilities', '../validation/validation-locale']
function ValidationRulesCollection(config) {
_classCallCheck(this, ValidationRulesCollection);

this.isRequired = config.getValue('treatAllPropertiesAsMandatory');
if (config) debugger;
this.isRequired = config ? config.getValue('allPropertiesAreMandatory') : false;
this.validationRules = [];
this.validationCollections = [];
this.isRequiredMessage = null;
Expand Down
91 changes: 91 additions & 0 deletions dist/commonjs/resources/bg-BG.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
'use strict';

exports.__esModule = true;

var _validationUtilities = require('../validation/utilities');

var data = {
settings: {
'numericRegex': /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/
},
messages: {
'isRequired': 'е задължително',
'onValidateCallback': 'невалидна стойност',
'AlphaNumericOrWhitespaceValidationRule': function AlphaNumericOrWhitespaceValidationRule(newValue, threshold) {
return 'трябва да съдържа само букви, цифри и интервали';
},
'AlphaNumericValidationRule': function AlphaNumericValidationRule(newValue, threshold) {
return 'трябва да съдържа само букви и цифри';
},
'AlphaValidationRule': function AlphaValidationRule(newValue, threshold) {
return 'трябва да съдържа само букви';
},
'AlphaOrWhitespaceValidationRule': function AlphaOrWhitespaceValidationRule(newValue, threshold) {
return 'трябва да съдържа само букви или интервали';
},
'BetweenLengthValidationRule': function BetweenLengthValidationRule(newValue, threshold) {
return 'броят на символите трябва да бъде между ' + _validationUtilities.Utilities.getValue(threshold.minimumLength) + ' и ' + _validationUtilities.Utilities.getValue(threshold.maximumLength);
},
'BetweenValueValidationRule': function BetweenValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде между ' + _validationUtilities.Utilities.getValue(threshold.minimumValue) + ' и ' + _validationUtilities.Utilities.getValue(threshold.maximumValue);
},
'CustomFunctionValidationRule': function CustomFunctionValidationRule(newValue, threshold) {
return 'невалидна стойност';
},
'DigitValidationRule': function DigitValidationRule(newValue, threshold) {
return 'трябва да съдържа само цифри';
},
'EmailValidationRule': function EmailValidationRule(newValue, threshold) {
return 'невалидна електронна поща';
},
'EqualityValidationRule': function EqualityValidationRule(newValue, threshold) {
return 'стойността трябва да бъде ' + _validationUtilities.Utilities.getValue(threshold.otherValue);
},
'InEqualityValidationRule': function InEqualityValidationRule(newValue, threshold) {
return 'стойността не може да бъде ' + _validationUtilities.Utilities.getValue(threshold.otherValue);
},
'EqualityWithOtherLabelValidationRule': function EqualityWithOtherLabelValidationRule(newValue, threshold) {
return 'стойността не съвпада с ' + _validationUtilities.Utilities.getValue(threshold.otherValueLabel);
},
'InEqualityWithOtherLabelValidationRule': function InEqualityWithOtherLabelValidationRule(newValue, threshold) {
return 'стойността не може да съвпада с ' + _validationUtilities.Utilities.getValue(threshold.otherValueLabel);
},
'InCollectionValidationRule': function InCollectionValidationRule(newValue, threshold) {
return 'невалидна стойност';
},
'MinimumInclusiveValueValidationRule': function MinimumInclusiveValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде ' + _validationUtilities.Utilities.getValue(threshold) + ' или повече';
},
'MinimumLengthValidationRule': function MinimumLengthValidationRule(newValue, threshold) {
return 'броят на символите трябва да бъде поне ' + _validationUtilities.Utilities.getValue(threshold);
},
'MinimumValueValidationRule': function MinimumValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде повече от ' + _validationUtilities.Utilities.getValue(threshold);
},
'MaximumInclusiveValueValidationRule': function MaximumInclusiveValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде ' + _validationUtilities.Utilities.getValue(threshold) + ' или по-малко';
},
'MaximumLengthValidationRule': function MaximumLengthValidationRule(newValue, threshold) {
return 'броят на символите не може да бъде повече от ' + _validationUtilities.Utilities.getValue(threshold);
},
'MaximumValueValidationRule': function MaximumValueValidationRule(newValue, threshold) {
return 'стойността трябва да бъде по-малко от ' + _validationUtilities.Utilities.getValue(threshold);
},
'NumericValidationRule': function NumericValidationRule(newValue, threshold) {
return 'стойността на полето трябва да бъде число';
},
'RegexValidationRule': function RegexValidationRule(newValue, threshold) {
return 'невалидна стойност';
},
'ContainsOnlyValidationRule': function ContainsOnlyValidationRule(newValue, threshold) {
return 'невалидна стойност';
},
'StrongPasswordValidationRule': function StrongPasswordValidationRule(newValue, threshold) {
return 'трябва да съдържа комбинация от малки и големи букви, цифри и специални знаци';
},
'MediumPasswordValidationRule': function MediumPasswordValidationRule(newValue, threshold) {
return 'трябва да съдържа поне ' + _validationUtilities.Utilities.getValue(threshold) + ' от следните групи: малки и големи букви, цифри и специални знаци';
}
}
};
exports.data = data;
Loading

0 comments on commit a94c58d

Please sign in to comment.