ng2-validation
Advanced tools
Comparing version 3.0.2 to 3.1.2
@@ -222,3 +222,4 @@ "use strict"; | ||
'hu-HU': /^(?:\+?(?:36|\(36\)))[ -\/]?(?:(?:(?:(?!1|20|21|30|31|70|90)[2-9][0-9])[ -\/]?\d{3}[ -\/]?\d{3})|(?:(?:1|20|21|30|31|70|90)[ -\/]?\d{3}[ -\/]?\d{2}[ -\/]?\d{2}))$/, | ||
'nl-NL': /^(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)$/ | ||
'nl-NL': /^(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)$/, | ||
'de-CH': /^(((\+|00)?41)?([ ])?(\(?0?\)?))([1-9]{2})(([ ])?[0-9]{3})(([ ])?[0-9]{2})(([ ])?[0-9]{2})$/ | ||
}; | ||
@@ -225,0 +226,0 @@ return function (control) { |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -55,9 +46,10 @@ var range_length_1 = require('./directives/range-length'); | ||
} | ||
CustomFormsModule = __decorate([ | ||
core_1.NgModule({ | ||
declarations: [exports.CUSTOM_FORM_DIRECTIVES], | ||
exports: [exports.CUSTOM_FORM_DIRECTIVES] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], CustomFormsModule); | ||
CustomFormsModule.decorators = [ | ||
{ type: core_1.NgModule, args: [{ | ||
declarations: [exports.CUSTOM_FORM_DIRECTIVES], | ||
exports: [exports.CUSTOM_FORM_DIRECTIVES] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CustomFormsModule.ctorParameters = []; | ||
return CustomFormsModule; | ||
@@ -64,0 +56,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
Base64Validator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[base64][formControlName],[base64][formControl],[base64][ngModel]', | ||
providers: [BASE64_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Base64Validator); | ||
Base64Validator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[base64][formControlName],[base64][formControl],[base64][ngModel]', | ||
providers: [BASE64_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
Base64Validator.ctorParameters = []; | ||
return Base64Validator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
CreditCardValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[creditCard][formControlName],[creditCard][formControl],[creditCard][ngModel]', | ||
providers: [CREDIT_CARD_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], CreditCardValidator); | ||
CreditCardValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[creditCard][formControlName],[creditCard][formControl],[creditCard][ngModel]', | ||
providers: [CREDIT_CARD_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CreditCardValidator.ctorParameters = []; | ||
return CreditCardValidator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
DateISOValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[dateISO][formControlName],[dateISO][formControl],[dateISO][ngModel]', | ||
providers: [DATE_ISO_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], DateISOValidator); | ||
DateISOValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[dateISO][formControlName],[dateISO][formControl],[dateISO][ngModel]', | ||
providers: [DATE_ISO_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
DateISOValidator.ctorParameters = []; | ||
return DateISOValidator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
DateValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[date][formControlName],[date][formControl],[date][ngModel]', | ||
providers: [DATE_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], DateValidator); | ||
DateValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[date][formControlName],[date][formControl],[date][ngModel]', | ||
providers: [DATE_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
DateValidator.ctorParameters = []; | ||
return DateValidator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
DigitsValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[digits][formControlName],[digits][formControl],[digits][ngModel]', | ||
providers: [DIGITS_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], DigitsValidator); | ||
DigitsValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[digits][formControlName],[digits][formControl],[digits][ngModel]', | ||
providers: [DIGITS_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
DigitsValidator.ctorParameters = []; | ||
return DigitsValidator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
EmailValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[email][formControlName],[email][formControl],[email][ngModel]', | ||
providers: [EMAIL_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], EmailValidator); | ||
EmailValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[email][formControlName],[email][formControl],[email][ngModel]', | ||
providers: [EMAIL_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
EmailValidator.ctorParameters = []; | ||
return EmailValidator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -28,13 +19,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', forms_1.FormControl) | ||
], EqualToValidator.prototype, "equalTo", void 0); | ||
EqualToValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[equalTo][formControlName],[equalTo][formControl],[equalTo][ngModel]', | ||
providers: [EQUAL_TO_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], EqualToValidator); | ||
EqualToValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[equalTo][formControlName],[equalTo][formControl],[equalTo][ngModel]', | ||
providers: [EQUAL_TO_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
EqualToValidator.ctorParameters = []; | ||
EqualToValidator.propDecorators = { | ||
'equalTo': [{ type: core_1.Input },], | ||
}; | ||
return EqualToValidator; | ||
@@ -41,0 +32,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Object) | ||
], EqualValidator.prototype, "equal", void 0); | ||
EqualValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[equal][formControlName],[equal][formControl],[equal][ngModel]', | ||
providers: [EQUAL_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], EqualValidator); | ||
EqualValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[equal][formControlName],[equal][formControl],[equal][ngModel]', | ||
providers: [EQUAL_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
EqualValidator.ctorParameters = []; | ||
EqualValidator.propDecorators = { | ||
'equal': [{ type: core_1.Input },], | ||
}; | ||
return EqualValidator; | ||
@@ -48,0 +39,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
JSONValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[json][formControlName],[json][formControl],[json][ngModel]', | ||
providers: [JSON_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], JSONValidator); | ||
JSONValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[json][formControlName],[json][formControl],[json][ngModel]', | ||
providers: [JSON_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
JSONValidator.ctorParameters = []; | ||
return JSONValidator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Object) | ||
], MaxDateValidator.prototype, "maxDate", void 0); | ||
MaxDateValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[maxDate][formControlName],[maxDate][formControl],[maxDate][ngModel]', | ||
providers: [MAX_DATE_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], MaxDateValidator); | ||
MaxDateValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[maxDate][formControlName],[maxDate][formControl],[maxDate][ngModel]', | ||
providers: [MAX_DATE_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
MaxDateValidator.ctorParameters = []; | ||
MaxDateValidator.propDecorators = { | ||
'maxDate': [{ type: core_1.Input },], | ||
}; | ||
return MaxDateValidator; | ||
@@ -48,0 +39,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number) | ||
], MaxValidator.prototype, "max", void 0); | ||
MaxValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[max][formControlName],[max][formControl],[max][ngModel]', | ||
providers: [MAX_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], MaxValidator); | ||
MaxValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[max][formControlName],[max][formControl],[max][ngModel]', | ||
providers: [MAX_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
MaxValidator.ctorParameters = []; | ||
MaxValidator.propDecorators = { | ||
'max': [{ type: core_1.Input },], | ||
}; | ||
return MaxValidator; | ||
@@ -48,0 +39,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Object) | ||
], MinDateValidator.prototype, "minDate", void 0); | ||
MinDateValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[minDate][formControlName],[minDate][formControl],[minDate][ngModel]', | ||
providers: [MIN_DATE_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], MinDateValidator); | ||
MinDateValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[minDate][formControlName],[minDate][formControl],[minDate][ngModel]', | ||
providers: [MIN_DATE_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
MinDateValidator.ctorParameters = []; | ||
MinDateValidator.propDecorators = { | ||
'minDate': [{ type: core_1.Input },], | ||
}; | ||
return MinDateValidator; | ||
@@ -48,0 +39,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number) | ||
], MinValidator.prototype, "min", void 0); | ||
MinValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[min][formControlName],[min][formControl],[min][ngModel]', | ||
providers: [MIN_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], MinValidator); | ||
MinValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[min][formControlName],[min][formControl],[min][ngModel]', | ||
providers: [MIN_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
MinValidator.ctorParameters = []; | ||
MinValidator.propDecorators = { | ||
'min': [{ type: core_1.Input },], | ||
}; | ||
return MinValidator; | ||
@@ -48,0 +39,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
NumberValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[number][formControlName],[number][formControl],[number][ngModel]', | ||
providers: [NUMBER_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], NumberValidator); | ||
NumberValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[number][formControlName],[number][formControl],[number][ngModel]', | ||
providers: [NUMBER_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
NumberValidator.ctorParameters = []; | ||
return NumberValidator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', String) | ||
], PhoneValidator.prototype, "phone", void 0); | ||
PhoneValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[phone][formControlName],[phone][formControl],[phone][ngModel]', | ||
providers: [PHONE_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], PhoneValidator); | ||
PhoneValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[phone][formControlName],[phone][formControl],[phone][ngModel]', | ||
providers: [PHONE_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
PhoneValidator.ctorParameters = []; | ||
PhoneValidator.propDecorators = { | ||
'phone': [{ type: core_1.Input },], | ||
}; | ||
return PhoneValidator; | ||
@@ -48,0 +39,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Array) | ||
], RangeLengthValidator.prototype, "rangeLength", void 0); | ||
RangeLengthValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[rangeLength][formControlName],[rangeLength][formControl],[rangeLength][ngModel]', | ||
providers: [RANGE_LENGTH_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], RangeLengthValidator); | ||
RangeLengthValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[rangeLength][formControlName],[rangeLength][formControl],[rangeLength][ngModel]', | ||
providers: [RANGE_LENGTH_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
RangeLengthValidator.ctorParameters = []; | ||
RangeLengthValidator.propDecorators = { | ||
'rangeLength': [{ type: core_1.Input },], | ||
}; | ||
return RangeLengthValidator; | ||
@@ -48,0 +39,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Array) | ||
], RangeValidator.prototype, "range", void 0); | ||
RangeValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[range][formControlName],[range][formControl],[range][ngModel]', | ||
providers: [RANGE_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], RangeValidator); | ||
RangeValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[range][formControlName],[range][formControl],[range][ngModel]', | ||
providers: [RANGE_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
RangeValidator.ctorParameters = []; | ||
RangeValidator.propDecorators = { | ||
'range': [{ type: core_1.Input },], | ||
}; | ||
return RangeValidator; | ||
@@ -48,0 +39,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,9 +16,10 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
UrlValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[url][formControlName],[url][formControl],[url][ngModel]', | ||
providers: [URL_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], UrlValidator); | ||
UrlValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[url][formControlName],[url][formControl],[url][ngModel]', | ||
providers: [URL_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
UrlValidator.ctorParameters = []; | ||
return UrlValidator; | ||
@@ -34,0 +26,0 @@ }()); |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -35,13 +26,13 @@ var forms_1 = require('@angular/forms'); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Object) | ||
], UUIDValidator.prototype, "uuid", void 0); | ||
UUIDValidator = __decorate([ | ||
core_1.Directive({ | ||
selector: '[uuid][formControlName],[uuid][formControl],[uuid][ngModel]', | ||
providers: [UUID_VALIDATOR] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], UUIDValidator); | ||
UUIDValidator.decorators = [ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[uuid][formControlName],[uuid][formControl],[uuid][ngModel]', | ||
providers: [UUID_VALIDATOR] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
UUIDValidator.ctorParameters = []; | ||
UUIDValidator.propDecorators = { | ||
'uuid': [{ type: core_1.Input },], | ||
}; | ||
return UUIDValidator; | ||
@@ -48,0 +39,0 @@ }()); |
{ | ||
"name": "ng2-validation", | ||
"version": "3.0.2", | ||
"version": "3.1.2", | ||
"description": "angular2 validation", | ||
@@ -10,5 +10,5 @@ "main": "dist/index.js", | ||
"dev": "webpack-dev-server --port 4001 --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base", | ||
"tsc": "tsc --rootDir src --outDir dist --declaration", | ||
"ngc": "ngc -p tsconfig.json", | ||
"prebuild": "rimraf dist", | ||
"build": "npm run tsc", | ||
"build": "npm run ngc", | ||
"prepublish": "npm run build" | ||
@@ -55,7 +55,8 @@ }, | ||
"ts-loader": "^0.8.2", | ||
"typescript": "^2.0.7", | ||
"typescript": "2.0.7", | ||
"webpack": "^1.13.1", | ||
"webpack-dev-server": "^1.14.1", | ||
"zone.js": "^0.6.23" | ||
"zone.js": "^0.6.23", | ||
"@angular/compiler-cli": "2.1.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95
97887
28
1237