-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48c15bd
commit ac30de2
Showing
19 changed files
with
542 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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です。'; | ||
} | ||
} | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.