Skip to content

Commit

Permalink
chore(all): prepare release 0.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Apr 13, 2016
1 parent 48c15bd commit ac30de2
Show file tree
Hide file tree
Showing 19 changed files with 542 additions and 477 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-validation",
"version": "0.6.6",
"version": "0.6.7",
"description": "A validation plugin for Aurelia.",
"keywords": [
"aurelia",
Expand All @@ -19,6 +19,7 @@
"dependencies": {
"aurelia-binding": "^1.0.0-beta.1.1.0",
"aurelia-dependency-injection": "^1.0.0-beta.1.1.2",
"aurelia-loader": "^1.0.0-beta.1.2.0",
"aurelia-logging": "^1.0.0-beta.1.1.1",
"aurelia-metadata": "^1.0.0-beta.1.1.3",
"aurelia-templating": "^1.0.0-beta.1.1.0"
Expand Down
6 changes: 5 additions & 1 deletion dist/amd/aurelia-validation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ declare module 'aurelia-validation' {
metadata
} from 'aurelia-metadata';
import {
inject
inject,
Container
} from 'aurelia-dependency-injection';
import {
customAttribute
} from 'aurelia-templating';
import {
Loader
} from 'aurelia-loader';
import {
ObserverLocator
} from 'aurelia-binding';
Expand Down
190 changes: 95 additions & 95 deletions dist/amd/resources/ja-JP.js
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
define(['exports', '../utilities'], function (exports, _utilities) {
'use strict';
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.data = undefined;
var data = exports.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 _utilities.Utilities.getValue(threshold.minimumLength) + '文字以上' + _utilities.Utilities.getValue(threshold.maximumLength) + '文字以内で入力してください。';
},
'BetweenValueValidationRule': function BetweenValueValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold.minimumValue) + '以上' + _utilities.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 _utilities.Utilities.getValue(threshold.otherValue) + 'である必要があります。';
},
'InEqualityValidationRule': function InEqualityValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold.otherValue) + 'は指定できません。';
},
'EqualityWithOtherLabelValidationRule': function EqualityWithOtherLabelValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold.otherValueLabel) + 'と一致しません。';
},
'InEqualityWithOtherLabelValidationRule': function InEqualityWithOtherLabelValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold.otherValueLabel) + 'と同じ値は指定できません。';
},
'InCollectionValidationRule': function InCollectionValidationRule(newValue, threshold) {
return '無効な入力値です。';
},
'MinimumInclusiveValueValidationRule': function MinimumInclusiveValueValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + '以上である必要があります。';
},
'MinimumLengthValidationRule': function MinimumLengthValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + '文字以上入力してください。';
},
'MinimumValueValidationRule': function MinimumValueValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + 'より大きな値を指定してください。';
},
'MaximumInclusiveValueValidationRule': function MaximumInclusiveValueValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + '以下である必要があります。';
},
'MaximumLengthValidationRule': function MaximumLengthValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + '文字以下で入力してください。';
},
'MaximumValueValidationRule': function MaximumValueValidationRule(newValue, threshold) {
return _utilities.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 '小文字、大文字、数字、記号のうち' + _utilities.Utilities.getValue(threshold) + '種類の文字を含める必要があります。';
},
'URLValidationRule': function URLValidationRule(newValue, threshold) {
return '無効なURLです。';
}
}
};
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.data = undefined;
var data = exports.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 _utilities.Utilities.getValue(threshold.minimumLength) + '文字以上' + _utilities.Utilities.getValue(threshold.maximumLength) + '文字以内で入力してください。';
},
'BetweenValueValidationRule': function BetweenValueValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold.minimumValue) + '以上' + _utilities.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 _utilities.Utilities.getValue(threshold.otherValue) + 'である必要があります。';
},
'InEqualityValidationRule': function InEqualityValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold.otherValue) + 'は指定できません。';
},
'EqualityWithOtherLabelValidationRule': function EqualityWithOtherLabelValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold.otherValueLabel) + 'と一致しません。';
},
'InEqualityWithOtherLabelValidationRule': function InEqualityWithOtherLabelValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold.otherValueLabel) + 'と同じ値は指定できません。';
},
'InCollectionValidationRule': function InCollectionValidationRule(newValue, threshold) {
return '無効な入力値です。';
},
'MinimumInclusiveValueValidationRule': function MinimumInclusiveValueValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + '以上である必要があります。';
},
'MinimumLengthValidationRule': function MinimumLengthValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + '文字以上入力してください。';
},
'MinimumValueValidationRule': function MinimumValueValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + 'より大きな値を指定してください。';
},
'MaximumInclusiveValueValidationRule': function MaximumInclusiveValueValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + '以下である必要があります。';
},
'MaximumLengthValidationRule': function MaximumLengthValidationRule(newValue, threshold) {
return _utilities.Utilities.getValue(threshold) + '文字以下で入力してください。';
},
'MaximumValueValidationRule': function MaximumValueValidationRule(newValue, threshold) {
return _utilities.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 '小文字、大文字、数字、記号のうち' + _utilities.Utilities.getValue(threshold) + '種類の文字を含める必要があります。';
},
'URLValidationRule': function URLValidationRule(newValue, threshold) {
return '無効なURLです。';
}
}
};
});
6 changes: 4 additions & 2 deletions dist/amd/validation-locale.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
define(['exports'], function (exports) {
define(['exports', 'aurelia-dependency-injection', 'aurelia-loader'], function (exports, _aureliaDependencyInjection, _aureliaLoader) {
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ValidationLocale = undefined;

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
Expand Down Expand Up @@ -80,7 +81,8 @@ define(['exports'], function (exports) {
var locale = _this.instances.get(localeIdentifier);
resolve(locale);
} else {
System.import(basePath + localeIdentifier).then(function (resource) {
var loader = _aureliaDependencyInjection.Container.instance.get(_aureliaLoader.Loader);
loader.loadModule(basePath + localeIdentifier).then(function (resource) {
var locale = _this.addLocale(localeIdentifier, resource.data);
resolve(locale);
});
Expand Down
6 changes: 5 additions & 1 deletion dist/aurelia-validation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ declare module 'aurelia-validation' {
metadata
} from 'aurelia-metadata';
import {
inject
inject,
Container
} from 'aurelia-dependency-injection';
import {
customAttribute
} from 'aurelia-templating';
import {
Loader
} from 'aurelia-loader';
import {
ObserverLocator
} from 'aurelia-binding';
Expand Down
7 changes: 5 additions & 2 deletions dist/aurelia-validation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {metadata} from 'aurelia-metadata';
import {inject} from 'aurelia-dependency-injection';
import {inject,Container} from 'aurelia-dependency-injection';
import {customAttribute} from 'aurelia-templating';
import {Loader} from 'aurelia-loader';
import {ObserverLocator} from 'aurelia-binding';

export class Debouncer {
Expand Down Expand Up @@ -1136,7 +1137,8 @@ class ValidationLocaleRepository {
let locale = this.instances.get(localeIdentifier);
resolve(locale);
} else {
System.import(basePath + localeIdentifier).then((resource) => {
let loader = Container.instance.get(Loader);
loader.loadModule(basePath + localeIdentifier).then((resource) => {
let locale = this.addLocale(localeIdentifier, resource.data);
resolve(locale);
});
Expand All @@ -1152,6 +1154,7 @@ class ValidationLocaleRepository {
return instance;
}
}

ValidationLocale.Repository = new ValidationLocaleRepository();

export class ValidationProperty {
Expand Down
6 changes: 5 additions & 1 deletion dist/commonjs/aurelia-validation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ declare module 'aurelia-validation' {
metadata
} from 'aurelia-metadata';
import {
inject
inject,
Container
} from 'aurelia-dependency-injection';
import {
customAttribute
} from 'aurelia-templating';
import {
Loader
} from 'aurelia-loader';
import {
ObserverLocator
} from 'aurelia-binding';
Expand Down
Loading

0 comments on commit ac30de2

Please sign in to comment.