@valueadd/ng-validation-messages
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -73,3 +73,24 @@ (function (global, factory) { | ||
*/ | ||
/** @enum {string} */ | ||
var ValidatorValue = { | ||
RequiredLength: 'requiredLength', | ||
RequiredPattern: 'requiredPattern', | ||
}; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @enum {string} */ | ||
var ValidatorWithValue = { | ||
MaxLength: 'maxlength', | ||
MinLength: 'minlength', | ||
Pattern: 'pattern', | ||
}; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var _a; | ||
@@ -83,2 +104,10 @@ /** @type {?} */ | ||
var _a$1; | ||
/** @type {?} */ | ||
var validatorsWithValue = (_a$1 = {}, | ||
_a$1[ValidatorWithValue.MaxLength] = ValidatorValue.RequiredLength, | ||
_a$1[ValidatorWithValue.MinLength] = ValidatorValue.RequiredLength, | ||
_a$1[ValidatorWithValue.Pattern] = ValidatorValue.RequiredPattern, | ||
_a$1); | ||
/** | ||
@@ -523,4 +552,7 @@ * @fileoverview added by tsickle | ||
exports.angularValidatorsWithValueMap = angularValidatorsWithValueMap; | ||
exports.validatorsWithValue = validatorsWithValue; | ||
exports.AngularValidatorValue = AngularValidatorValue; | ||
exports.AngularValidatorsWithValue = AngularValidatorsWithValue; | ||
exports.ValidatorValue = ValidatorValue; | ||
exports.ValidatorWithValue = ValidatorWithValue; | ||
exports.Memoize = Memoize; | ||
@@ -527,0 +559,0 @@ exports.ValidationMessagesService = ValidationMessagesService; |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("rxjs"),require("rxjs/operators"),require("memoizee"),require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@valueadd/ng-validation-messages",["exports","rxjs","rxjs/operators","memoizee","@angular/common","@angular/core"],r):r((e.valueadd=e.valueadd||{},e.valueadd["ng-validation-messages"]={}),e.rxjs,e.rxjs.operators,e.memoizee_,e.ng.common,e.ng.core)}(this,function(e,t,r,s,a,o){"use strict";var i=function(){return(i=Object.assign||function(e){for(var r,t=1,s=arguments.length;t<s;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e}).apply(this,arguments)};function n(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}var l,u={RequiredLength:"requiredLength",RequiredPattern:"requiredPattern"},g={MaxLength:"maxlength",MinLength:"minlength",Pattern:"pattern"},p=((l={})[g.MaxLength]=u.RequiredLength,l[g.MinLength]=u.RequiredLength,l[g.Pattern]=u.RequiredPattern,l),c=s;function h(){return function(e,r,t){var s=t.value;return t.value=c(s),t}}var d=function(){function e(){this.validationMessagesFinalConfig={},this._materialErrorMatcher=!1}return Object.defineProperty(e.prototype,"materialErrorMatcher",{get:function(){return this._materialErrorMatcher},enumerable:!0,configurable:!0}),e.prototype.getValidatorErrorMessage=function(e,r){if(void 0===r&&(r={}),!this.validationMessagesFinalConfig[e])return this.validatorNotSpecified(e);if("pattern"===e)return this.validationMessagesFinalConfig[e][r.requiredPattern]?this.validationMessagesFinalConfig[e][r.requiredPattern].message:this.validatorNotSpecified(e);var t=this.validationMessagesFinalConfig[e];return t.validatorValue?this.interpolateValue(t.message,t.validatorValueParser?t.validatorValueParser(r[t.validatorValue]):r[t.validatorValue]):t.message},e.prototype.setValidationMessages=function(e){var r,t={};for(var s in this.getValidatorErrorMessage.clear&&this.getValidatorErrorMessage.clear(),e)if("string"==typeof e[s])t[s]={message:e[s],validatorValue:this.getValidatorValue(s)};else{var a=e[s];a.pattern?t.pattern=i({},t.pattern,((r={})[a.pattern]=a,r)):t[s]=a}this.validationMessagesFinalConfig=i({},t)},e.prototype.setServerMessagesParser=function(e){this.parser=e},e.prototype.useMaterialErrorMatcher=function(){this._materialErrorMatcher=!0},e.prototype.parseApiErrorMessage=function(e,r){return this.parser?this.parser.parse(e,r):e},e.prototype.interpolateValue=function(e,r){var t=/{{value}}/,s="g";return e.replace(new RegExp(t,s),r)},e.prototype.getValidatorValue=function(e){return p[e]||e},e.prototype.validatorNotSpecified=function(e){return console.warn("Validation message for "+e+" validator is not specified in this.","Did you called 'this.setValidationMessages()'?"),""},e.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],e.ngInjectableDef=o.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),function l(e,r,t,s){var a,o=arguments.length,i=o<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,r,t,s);else for(var n=e.length-1;0<=n;n--)(a=e[n])&&(i=(o<3?a(i):3<o?a(r,t,i):a(r,t))||i);return 3<o&&i&&Object.defineProperty(r,t,i),i}([h(),n("design:type",Function),n("design:paramtypes",[String,Object]),n("design:returntype",String)],e.prototype,"getValidatorErrorMessage",null),e}(),f=function(){function e(e,r){this.cd=e,this.validationMessagesService=r,this.materialErrorMatcher=!1,this.errorMessages=[],this.showServerErrors=!1,this.parsedApiErrorMessages=[],this.valueChanges=null,this.ngUnsubscribe=new t.Subject,this._multiple=!1,this._apiErrorMessages=null,this.unsubscribeAndClearValueChanges=this.unsubscribeAndClearValueChanges.bind(this),this.materialErrorMatcher=r.materialErrorMatcher}return Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=e,this.updateErrorMessages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"apiErrorMessages",{get:function(){return this._apiErrorMessages},set:function(e){this.unsubscribeAndClearValueChanges(),this._apiErrorMessages=e,this.parseApiErrorMessages(this._apiErrorMessages),this.showServerErrors=!0,this.control&&e&&(this.control.setErrors({server:e}),this.observeInputValueChanges())},enumerable:!0,configurable:!0}),e.prototype.observeInputValueChanges=function(){var e=this;this.valueChanges||(this.valueChanges=this.control.valueChanges.pipe(r.takeUntil(this.ngUnsubscribe)).subscribe(this.unsubscribeAndClearValueChanges),setTimeout(function(){e.cd.markForCheck()}))},e.prototype.parseApiErrorMessages=function(e){var r=this;e&&(this.parsedApiErrorMessages=[],e instanceof Array?e.forEach(function(e){e.message=r.validationMessagesService.parseApiErrorMessage(e.message,e.property),r.parsedApiErrorMessages.push(e.message)}):(e.message=this.validationMessagesService.parseApiErrorMessage(e.message,e.property),this.parsedApiErrorMessages.push(e.message)))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.prototype.ngDoCheck=function(){this.control&&(this.control.invalid&&this.control.touched||!this.control.invalid&&0<this.errorMessages.length)&&this.updateErrorMessages()},e.prototype.updateErrorMessages=function(){if(this.errorMessages=[],this.control&&this.control.errors)for(var e in this.control.errors)this.control.errors.hasOwnProperty(e)&&"server"!==e&&(this.multiple||1!==this.errorMessages.length)&&this.errorMessages.push(this.validationMessagesService.getValidatorErrorMessage(e,this.control.errors[e]))},e.prototype.unsubscribeAndClearValueChanges=function(){this.control&&(this.control.setErrors({}),this.control.updateValueAndValidity({onlySelf:!0,emitEvent:!1})),this.valueChanges&&!this.valueChanges.closed&&this.valueChanges.unsubscribe(),this.showServerErrors=!1,this.valueChanges=null},e.decorators=[{type:o.Component,args:[{selector:"ng-validation-messages",template:'<ng-container *ngIf="materialErrorMatcher || (control && (control.dirty || control.touched))">\n <div *ngFor="let errorMessage of errorMessages">{{ errorMessage }}</div>\n</ng-container>\n<ng-container *ngIf="showServerErrors && parsedApiErrorMessages.length">\n <div *ngFor="let errorMessage of parsedApiErrorMessages">\n {{ errorMessage }}\n </div>\n</ng-container>\n'}]}],e.ctorParameters=function(){return[{type:o.ChangeDetectorRef},{type:d}]},e.propDecorators={control:[{type:o.Input}],multiple:[{type:o.Input}],apiErrorMessages:[{type:o.Input}]},e}(),v=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{imports:[a.CommonModule],declarations:[f],exports:[f]}]}],e}();e.ValidationMessagesComponent=f,e.ValidationMessagesModule=v,e.angularValidatorsWithValueMap=p,e.AngularValidatorValue=u,e.AngularValidatorsWithValue=g,e.Memoize=h,e.ValidationMessagesService=d,e.ɵa=d,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("rxjs"),require("rxjs/operators"),require("memoizee"),require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@valueadd/ng-validation-messages",["exports","rxjs","rxjs/operators","memoizee","@angular/common","@angular/core"],r):r((e.valueadd=e.valueadd||{},e.valueadd["ng-validation-messages"]={}),e.rxjs,e.rxjs.operators,e.memoizee_,e.ng.common,e.ng.core)}(this,function(e,t,r,a,s,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e}).apply(this,arguments)};function o(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}var l,u,g={RequiredLength:"requiredLength",RequiredPattern:"requiredPattern"},p={MaxLength:"maxlength",MinLength:"minlength",Pattern:"pattern"},c={RequiredLength:"requiredLength",RequiredPattern:"requiredPattern"},h={MaxLength:"maxlength",MinLength:"minlength",Pattern:"pattern"},d=((l={})[p.MaxLength]=g.RequiredLength,l[p.MinLength]=g.RequiredLength,l[p.Pattern]=g.RequiredPattern,l),f=((u={})[h.MaxLength]=c.RequiredLength,u[h.MinLength]=c.RequiredLength,u[h.Pattern]=c.RequiredPattern,u),v=a;function M(){return function(e,r,t){var a=t.value;return t.value=v(a),t}}var m=function(){function e(){this.validationMessagesFinalConfig={},this._materialErrorMatcher=!1}return Object.defineProperty(e.prototype,"materialErrorMatcher",{get:function(){return this._materialErrorMatcher},enumerable:!0,configurable:!0}),e.prototype.getValidatorErrorMessage=function(e,r){if(void 0===r&&(r={}),!this.validationMessagesFinalConfig[e])return this.validatorNotSpecified(e);if("pattern"===e)return this.validationMessagesFinalConfig[e][r.requiredPattern]?this.validationMessagesFinalConfig[e][r.requiredPattern].message:this.validatorNotSpecified(e);var t=this.validationMessagesFinalConfig[e];return t.validatorValue?this.interpolateValue(t.message,t.validatorValueParser?t.validatorValueParser(r[t.validatorValue]):r[t.validatorValue]):t.message},e.prototype.setValidationMessages=function(e){var r,t={};for(var a in this.getValidatorErrorMessage.clear&&this.getValidatorErrorMessage.clear(),e)if("string"==typeof e[a])t[a]={message:e[a],validatorValue:this.getValidatorValue(a)};else{var s=e[a];s.pattern?t.pattern=i({},t.pattern,((r={})[s.pattern]=s,r)):t[a]=s}this.validationMessagesFinalConfig=i({},t)},e.prototype.setServerMessagesParser=function(e){this.parser=e},e.prototype.useMaterialErrorMatcher=function(){this._materialErrorMatcher=!0},e.prototype.parseApiErrorMessage=function(e,r){return this.parser?this.parser.parse(e,r):e},e.prototype.interpolateValue=function(e,r){var t=/{{value}}/,a="g";return e.replace(new RegExp(t,a),r)},e.prototype.getValidatorValue=function(e){return d[e]||e},e.prototype.validatorNotSpecified=function(e){return console.warn("Validation message for "+e+" validator is not specified in this.","Did you called 'this.setValidationMessages()'?"),""},e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ngInjectableDef=n.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),function l(e,r,t,a){var s,n=arguments.length,i=n<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,r,t,a);else for(var o=e.length-1;0<=o;o--)(s=e[o])&&(i=(n<3?s(i):3<n?s(r,t,i):s(r,t))||i);return 3<n&&i&&Object.defineProperty(r,t,i),i}([M(),o("design:type",Function),o("design:paramtypes",[String,Object]),o("design:returntype",String)],e.prototype,"getValidatorErrorMessage",null),e}(),y=function(){function e(e,r){this.cd=e,this.validationMessagesService=r,this.materialErrorMatcher=!1,this.errorMessages=[],this.showServerErrors=!1,this.parsedApiErrorMessages=[],this.valueChanges=null,this.ngUnsubscribe=new t.Subject,this._multiple=!1,this._apiErrorMessages=null,this.unsubscribeAndClearValueChanges=this.unsubscribeAndClearValueChanges.bind(this),this.materialErrorMatcher=r.materialErrorMatcher}return Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=e,this.updateErrorMessages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"apiErrorMessages",{get:function(){return this._apiErrorMessages},set:function(e){this.unsubscribeAndClearValueChanges(),this._apiErrorMessages=e,this.parseApiErrorMessages(this._apiErrorMessages),this.showServerErrors=!0,this.control&&e&&(this.control.setErrors({server:e}),this.observeInputValueChanges())},enumerable:!0,configurable:!0}),e.prototype.observeInputValueChanges=function(){var e=this;this.valueChanges||(this.valueChanges=this.control.valueChanges.pipe(r.takeUntil(this.ngUnsubscribe)).subscribe(this.unsubscribeAndClearValueChanges),setTimeout(function(){e.cd.markForCheck()}))},e.prototype.parseApiErrorMessages=function(e){var r=this;e&&(this.parsedApiErrorMessages=[],e instanceof Array?e.forEach(function(e){e.message=r.validationMessagesService.parseApiErrorMessage(e.message,e.property),r.parsedApiErrorMessages.push(e.message)}):(e.message=this.validationMessagesService.parseApiErrorMessage(e.message,e.property),this.parsedApiErrorMessages.push(e.message)))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.prototype.ngDoCheck=function(){this.control&&(this.control.invalid&&this.control.touched||!this.control.invalid&&0<this.errorMessages.length)&&this.updateErrorMessages()},e.prototype.updateErrorMessages=function(){if(this.errorMessages=[],this.control&&this.control.errors)for(var e in this.control.errors)this.control.errors.hasOwnProperty(e)&&"server"!==e&&(this.multiple||1!==this.errorMessages.length)&&this.errorMessages.push(this.validationMessagesService.getValidatorErrorMessage(e,this.control.errors[e]))},e.prototype.unsubscribeAndClearValueChanges=function(){this.control&&(this.control.setErrors({}),this.control.updateValueAndValidity({onlySelf:!0,emitEvent:!1})),this.valueChanges&&!this.valueChanges.closed&&this.valueChanges.unsubscribe(),this.showServerErrors=!1,this.valueChanges=null},e.decorators=[{type:n.Component,args:[{selector:"ng-validation-messages",template:'<ng-container *ngIf="materialErrorMatcher || (control && (control.dirty || control.touched))">\n <div *ngFor="let errorMessage of errorMessages">{{ errorMessage }}</div>\n</ng-container>\n<ng-container *ngIf="showServerErrors && parsedApiErrorMessages.length">\n <div *ngFor="let errorMessage of parsedApiErrorMessages">\n {{ errorMessage }}\n </div>\n</ng-container>\n'}]}],e.ctorParameters=function(){return[{type:n.ChangeDetectorRef},{type:m}]},e.propDecorators={control:[{type:n.Input}],multiple:[{type:n.Input}],apiErrorMessages:[{type:n.Input}]},e}(),b=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[s.CommonModule],declarations:[y],exports:[y]}]}],e}();e.ValidationMessagesComponent=y,e.ValidationMessagesModule=b,e.angularValidatorsWithValueMap=d,e.validatorsWithValue=f,e.AngularValidatorValue=g,e.AngularValidatorsWithValue=p,e.ValidatorValue=c,e.ValidatorWithValue=h,e.Memoize=M,e.ValidationMessagesService=m,e.ɵa=m,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=valueadd-ng-validation-messages.umd.min.js.map |
@@ -6,2 +6,3 @@ /** | ||
export { angularValidatorsWithValueMap } from './angular-validators-with-value-map.const'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvY29uc3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDhDQUFjLDJDQUEyQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmd1bGFyLXZhbGlkYXRvcnMtd2l0aC12YWx1ZS1tYXAuY29uc3QnO1xuIl19 | ||
export { validatorsWithValue } from './validators-with-value.const'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvY29uc3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDhDQUFjLDJDQUEyQyxDQUFDO0FBQzFELG9DQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmd1bGFyLXZhbGlkYXRvcnMtd2l0aC12YWx1ZS1tYXAuY29uc3QnO1xuZXhwb3J0ICogZnJvbSAnLi92YWxpZGF0b3JzLXdpdGgtdmFsdWUuY29uc3QnO1xuIl19 |
@@ -7,2 +7,4 @@ /** | ||
export { AngularValidatorsWithValue } from './angular-validators-with-value.enum'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvZW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHNDQUFjLGdDQUFnQyxDQUFDO0FBQy9DLDJDQUFjLHNDQUFzQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmd1bGFyLXZhbGlkYXRvci12YWx1ZS5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vYW5ndWxhci12YWxpZGF0b3JzLXdpdGgtdmFsdWUuZW51bSc7XG4iXX0= | ||
export { ValidatorValue } from './validator-value.enum'; | ||
export { ValidatorWithValue } from './validator-with-value.enum'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvZW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHNDQUFjLGdDQUFnQyxDQUFDO0FBQy9DLDJDQUFjLHNDQUFzQyxDQUFDO0FBQ3JELCtCQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLG1DQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmd1bGFyLXZhbGlkYXRvci12YWx1ZS5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vYW5ndWxhci12YWxpZGF0b3JzLXdpdGgtdmFsdWUuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL3ZhbGlkYXRvci12YWx1ZS5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vdmFsaWRhdG9yLXdpdGgtdmFsdWUuZW51bSc7XG4iXX0= |
@@ -6,5 +6,5 @@ /** | ||
export {} from './interfaces'; | ||
export { angularValidatorsWithValueMap } from './const'; | ||
export { AngularValidatorValue, AngularValidatorsWithValue } from './enums'; | ||
export { angularValidatorsWithValueMap, validatorsWithValue } from './const'; | ||
export { AngularValidatorValue, AngularValidatorsWithValue, ValidatorValue, ValidatorWithValue } from './enums'; | ||
export { Memoize } from './decorators'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGVBQWMsY0FBYyxDQUFDO0FBQzdCLDhDQUFjLFNBQVMsQ0FBQztBQUN4QixrRUFBYyxTQUFTLENBQUM7QUFDeEIsd0JBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vY29uc3QnO1xuZXhwb3J0ICogZnJvbSAnLi9lbnVtcyc7XG5leHBvcnQgKiBmcm9tICcuL2RlY29yYXRvcnMnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGVBQWMsY0FBYyxDQUFDO0FBQzdCLG1FQUFjLFNBQVMsQ0FBQztBQUN4QixzR0FBYyxTQUFTLENBQUM7QUFDeEIsd0JBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vY29uc3QnO1xuZXhwb3J0ICogZnJvbSAnLi9lbnVtcyc7XG5leHBvcnQgKiBmcm9tICcuL2RlY29yYXRvcnMnO1xuIl19 |
@@ -10,4 +10,4 @@ /** | ||
export { ValidationMessagesModule } from './lib/validation-messages.module'; | ||
export { angularValidatorsWithValueMap, AngularValidatorValue, AngularValidatorsWithValue, Memoize } from './lib/resources'; | ||
export { angularValidatorsWithValueMap, validatorsWithValue, AngularValidatorValue, AngularValidatorsWithValue, ValidatorValue, ValidatorWithValue, Memoize } from './lib/resources'; | ||
export { ValidationMessagesService } from './lib/services'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2YWx1ZWFkZC9uZy12YWxpZGF0aW9uLW1lc3NhZ2VzLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsNENBQWMsb0VBQW9FLENBQUM7QUFDbkYseUNBQWMsa0NBQWtDLENBQUM7QUFDakQsMEdBQWMsaUJBQWlCLENBQUM7QUFDaEMsMENBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHZhbGlkYXRpb24tbWVzc2FnZXNcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3ZhbGlkYXRpb24tbWVzc2FnZXMvdmFsaWRhdGlvbi1tZXNzYWdlcy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdmFsaWRhdGlvbi1tZXNzYWdlcy5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVzb3VyY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NlcnZpY2VzJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2YWx1ZWFkZC9uZy12YWxpZGF0aW9uLW1lc3NhZ2VzLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsNENBQWMsb0VBQW9FLENBQUM7QUFDbkYseUNBQWMsa0NBQWtDLENBQUM7QUFDakQsbUtBQWMsaUJBQWlCLENBQUM7QUFDaEMsMENBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHZhbGlkYXRpb24tbWVzc2FnZXNcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3ZhbGlkYXRpb24tbWVzc2FnZXMvdmFsaWRhdGlvbi1tZXNzYWdlcy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdmFsaWRhdGlvbi1tZXNzYWdlcy5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVzb3VyY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NlcnZpY2VzJztcbiJdfQ== |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
export { ValidationMessagesComponent, ValidationMessagesModule, angularValidatorsWithValueMap, AngularValidatorValue, AngularValidatorsWithValue, Memoize, ValidationMessagesService } from './public-api'; | ||
export { ValidationMessagesComponent, ValidationMessagesModule, angularValidatorsWithValueMap, validatorsWithValue, AngularValidatorValue, AngularValidatorsWithValue, ValidatorValue, ValidatorWithValue, Memoize, ValidationMessagesService } from './public-api'; | ||
export { ValidationMessagesService as ɵa } from './lib/services'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVhZGQtbmctdmFsaWRhdGlvbi1tZXNzYWdlcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2YWx1ZWFkZC9uZy12YWxpZGF0aW9uLW1lc3NhZ2VzLyIsInNvdXJjZXMiOlsidmFsdWVhZGQtbmctdmFsaWRhdGlvbi1tZXNzYWdlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsNExBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyx5QkFBeUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtWYWxpZGF0aW9uTWVzc2FnZXNTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvc2VydmljZXMnOyJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVhZGQtbmctdmFsaWRhdGlvbi1tZXNzYWdlcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2YWx1ZWFkZC9uZy12YWxpZGF0aW9uLW1lc3NhZ2VzLyIsInNvdXJjZXMiOlsidmFsdWVhZGQtbmctdmFsaWRhdGlvbi1tZXNzYWdlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEscVBBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyx5QkFBeUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtWYWxpZGF0aW9uTWVzc2FnZXNTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvc2VydmljZXMnOyJdfQ== |
@@ -6,2 +6,3 @@ /** | ||
export { angularValidatorsWithValueMap } from './angular-validators-with-value-map.const'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvY29uc3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDhDQUFjLDJDQUEyQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmd1bGFyLXZhbGlkYXRvcnMtd2l0aC12YWx1ZS1tYXAuY29uc3QnO1xuIl19 | ||
export { validatorsWithValue } from './validators-with-value.const'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvY29uc3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDhDQUFjLDJDQUEyQyxDQUFDO0FBQzFELG9DQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmd1bGFyLXZhbGlkYXRvcnMtd2l0aC12YWx1ZS1tYXAuY29uc3QnO1xuZXhwb3J0ICogZnJvbSAnLi92YWxpZGF0b3JzLXdpdGgtdmFsdWUuY29uc3QnO1xuIl19 |
@@ -7,2 +7,4 @@ /** | ||
export { AngularValidatorsWithValue } from './angular-validators-with-value.enum'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvZW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHNDQUFjLGdDQUFnQyxDQUFDO0FBQy9DLDJDQUFjLHNDQUFzQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmd1bGFyLXZhbGlkYXRvci12YWx1ZS5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vYW5ndWxhci12YWxpZGF0b3JzLXdpdGgtdmFsdWUuZW51bSc7XG4iXX0= | ||
export { ValidatorValue } from './validator-value.enum'; | ||
export { ValidatorWithValue } from './validator-with-value.enum'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvZW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHNDQUFjLGdDQUFnQyxDQUFDO0FBQy9DLDJDQUFjLHNDQUFzQyxDQUFDO0FBQ3JELCtCQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLG1DQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbmd1bGFyLXZhbGlkYXRvci12YWx1ZS5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vYW5ndWxhci12YWxpZGF0b3JzLXdpdGgtdmFsdWUuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL3ZhbGlkYXRvci12YWx1ZS5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vdmFsaWRhdG9yLXdpdGgtdmFsdWUuZW51bSc7XG4iXX0= |
@@ -6,5 +6,5 @@ /** | ||
export {} from './interfaces'; | ||
export { angularValidatorsWithValueMap } from './const'; | ||
export { AngularValidatorValue, AngularValidatorsWithValue } from './enums'; | ||
export { angularValidatorsWithValueMap, validatorsWithValue } from './const'; | ||
export { AngularValidatorValue, AngularValidatorsWithValue, ValidatorValue, ValidatorWithValue } from './enums'; | ||
export { Memoize } from './decorators'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGVBQWMsY0FBYyxDQUFDO0FBQzdCLDhDQUFjLFNBQVMsQ0FBQztBQUN4QixrRUFBYyxTQUFTLENBQUM7QUFDeEIsd0JBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vY29uc3QnO1xuZXhwb3J0ICogZnJvbSAnLi9lbnVtcyc7XG5leHBvcnQgKiBmcm9tICcuL2RlY29yYXRvcnMnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdmFsdWVhZGQvbmctdmFsaWRhdGlvbi1tZXNzYWdlcy8iLCJzb3VyY2VzIjpbImxpYi9yZXNvdXJjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGVBQWMsY0FBYyxDQUFDO0FBQzdCLG1FQUFjLFNBQVMsQ0FBQztBQUN4QixzR0FBYyxTQUFTLENBQUM7QUFDeEIsd0JBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vY29uc3QnO1xuZXhwb3J0ICogZnJvbSAnLi9lbnVtcyc7XG5leHBvcnQgKiBmcm9tICcuL2RlY29yYXRvcnMnO1xuIl19 |
@@ -10,4 +10,4 @@ /** | ||
export { ValidationMessagesModule } from './lib/validation-messages.module'; | ||
export { angularValidatorsWithValueMap, AngularValidatorValue, AngularValidatorsWithValue, Memoize } from './lib/resources'; | ||
export { angularValidatorsWithValueMap, validatorsWithValue, AngularValidatorValue, AngularValidatorsWithValue, ValidatorValue, ValidatorWithValue, Memoize } from './lib/resources'; | ||
export { ValidationMessagesService } from './lib/services'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2YWx1ZWFkZC9uZy12YWxpZGF0aW9uLW1lc3NhZ2VzLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsNENBQWMsb0VBQW9FLENBQUM7QUFDbkYseUNBQWMsa0NBQWtDLENBQUM7QUFDakQsMEdBQWMsaUJBQWlCLENBQUM7QUFDaEMsMENBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHZhbGlkYXRpb24tbWVzc2FnZXNcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3ZhbGlkYXRpb24tbWVzc2FnZXMvdmFsaWRhdGlvbi1tZXNzYWdlcy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdmFsaWRhdGlvbi1tZXNzYWdlcy5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVzb3VyY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NlcnZpY2VzJztcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2YWx1ZWFkZC9uZy12YWxpZGF0aW9uLW1lc3NhZ2VzLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsNENBQWMsb0VBQW9FLENBQUM7QUFDbkYseUNBQWMsa0NBQWtDLENBQUM7QUFDakQsbUtBQWMsaUJBQWlCLENBQUM7QUFDaEMsMENBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHZhbGlkYXRpb24tbWVzc2FnZXNcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3ZhbGlkYXRpb24tbWVzc2FnZXMvdmFsaWRhdGlvbi1tZXNzYWdlcy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdmFsaWRhdGlvbi1tZXNzYWdlcy5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVzb3VyY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3NlcnZpY2VzJztcbiJdfQ== |
@@ -8,4 +8,4 @@ /** | ||
*/ | ||
export { ValidationMessagesComponent, ValidationMessagesModule, angularValidatorsWithValueMap, AngularValidatorValue, AngularValidatorsWithValue, Memoize, ValidationMessagesService } from './public-api'; | ||
export { ValidationMessagesComponent, ValidationMessagesModule, angularValidatorsWithValueMap, validatorsWithValue, AngularValidatorValue, AngularValidatorsWithValue, ValidatorValue, ValidatorWithValue, Memoize, ValidationMessagesService } from './public-api'; | ||
export { ValidationMessagesService as ɵa } from './lib/services'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVhZGQtbmctdmFsaWRhdGlvbi1tZXNzYWdlcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2YWx1ZWFkZC9uZy12YWxpZGF0aW9uLW1lc3NhZ2VzLyIsInNvdXJjZXMiOlsidmFsdWVhZGQtbmctdmFsaWRhdGlvbi1tZXNzYWdlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsNExBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyx5QkFBeUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtWYWxpZGF0aW9uTWVzc2FnZXNTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvc2VydmljZXMnOyJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVhZGQtbmctdmFsaWRhdGlvbi1tZXNzYWdlcy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B2YWx1ZWFkZC9uZy12YWxpZGF0aW9uLW1lc3NhZ2VzLyIsInNvdXJjZXMiOlsidmFsdWVhZGQtbmctdmFsaWRhdGlvbi1tZXNzYWdlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEscVBBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyx5QkFBeUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtWYWxpZGF0aW9uTWVzc2FnZXNTZXJ2aWNlIGFzIMm1YX0gZnJvbSAnLi9saWIvc2VydmljZXMnOyJdfQ== |
@@ -34,2 +34,7 @@ import '@angular/forms'; | ||
*/ | ||
/** @enum {string} */ | ||
const ValidatorValue = { | ||
RequiredLength: 'requiredLength', | ||
RequiredPattern: 'requiredPattern', | ||
}; | ||
@@ -40,2 +45,18 @@ /** | ||
*/ | ||
/** @enum {string} */ | ||
const ValidatorWithValue = { | ||
MaxLength: 'maxlength', | ||
MinLength: 'minlength', | ||
Pattern: 'pattern', | ||
}; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
@@ -52,2 +73,8 @@ const angularValidatorsWithValueMap = { | ||
*/ | ||
/** @type {?} */ | ||
const validatorsWithValue = { | ||
[ValidatorWithValue.MaxLength]: ValidatorValue.RequiredLength, | ||
[ValidatorWithValue.MinLength]: ValidatorValue.RequiredLength, | ||
[ValidatorWithValue.Pattern]: ValidatorValue.RequiredPattern | ||
}; | ||
@@ -58,2 +85,7 @@ /** | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
@@ -445,4 +477,4 @@ const memoize = memoizee_; | ||
export { ValidationMessagesComponent, ValidationMessagesModule, angularValidatorsWithValueMap, AngularValidatorValue, AngularValidatorsWithValue, Memoize, ValidationMessagesService, ValidationMessagesService as ɵa }; | ||
export { ValidationMessagesComponent, ValidationMessagesModule, angularValidatorsWithValueMap, validatorsWithValue, AngularValidatorValue, AngularValidatorsWithValue, ValidatorValue, ValidatorWithValue, Memoize, ValidationMessagesService, ValidationMessagesService as ɵa }; | ||
//# sourceMappingURL=valueadd-ng-validation-messages.js.map |
@@ -34,3 +34,24 @@ import '@angular/forms'; | ||
*/ | ||
/** @enum {string} */ | ||
var ValidatorValue = { | ||
RequiredLength: 'requiredLength', | ||
RequiredPattern: 'requiredPattern', | ||
}; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @enum {string} */ | ||
var ValidatorWithValue = { | ||
MaxLength: 'maxlength', | ||
MinLength: 'minlength', | ||
Pattern: 'pattern', | ||
}; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var _a; | ||
@@ -44,2 +65,10 @@ /** @type {?} */ | ||
var _a$1; | ||
/** @type {?} */ | ||
var validatorsWithValue = (_a$1 = {}, | ||
_a$1[ValidatorWithValue.MaxLength] = ValidatorValue.RequiredLength, | ||
_a$1[ValidatorWithValue.MinLength] = ValidatorValue.RequiredLength, | ||
_a$1[ValidatorWithValue.Pattern] = ValidatorValue.RequiredPattern, | ||
_a$1); | ||
/** | ||
@@ -515,4 +544,4 @@ * @fileoverview added by tsickle | ||
export { ValidationMessagesComponent, ValidationMessagesModule, angularValidatorsWithValueMap, AngularValidatorValue, AngularValidatorsWithValue, Memoize, ValidationMessagesService, ValidationMessagesService as ɵa }; | ||
export { ValidationMessagesComponent, ValidationMessagesModule, angularValidatorsWithValueMap, validatorsWithValue, AngularValidatorValue, AngularValidatorsWithValue, ValidatorValue, ValidatorWithValue, Memoize, ValidationMessagesService, ValidationMessagesService as ɵa }; | ||
//# sourceMappingURL=valueadd-ng-validation-messages.js.map |
export * from './angular-validators-with-value-map.const'; | ||
export * from './validators-with-value.const'; |
export * from './angular-validator-value.enum'; | ||
export * from './angular-validators-with-value.enum'; | ||
export * from './validator-value.enum'; | ||
export * from './validator-with-value.enum'; |
@@ -17,3 +17,3 @@ { | ||
"license": "MIT", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"dependencies": { | ||
@@ -20,0 +20,0 @@ "memoizee": "^0.4.14", |
@@ -1,24 +0,21 @@ | ||
# ValidationMessagesLibrary | ||
# ValidationMessages | ||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.3. | ||
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0. | ||
## Development server | ||
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. | ||
## Code scaffolding | ||
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. | ||
Run `ng generate component component-name --project validation-messages` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project validation-messages`. | ||
> Note: Don't forget to add `--project validation-messages` or else it will be added to the default project in your `angular.json` file. | ||
## Build | ||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. | ||
Run `ng build validation-messages` to build the project. The build artifacts will be stored in the `dist/` directory. | ||
## Running unit tests | ||
## Publishing | ||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
After building your library with `ng build validation-messages`, go to the dist folder `cd dist/validation-messages` and run `npm publish`. | ||
## Running end-to-end tests | ||
## Running unit tests | ||
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). | ||
Run `ng test validation-messages` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
@@ -25,0 +22,0 @@ ## Further help |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
279077
78
2907
0
25