@skyux/validation
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.validation = {}), global.ng.core, global.ng.forms)); | ||
}(this, (function (exports, i0, forms) { 'use strict'; | ||
})(this, (function (exports, i0, forms) { 'use strict'; | ||
@@ -17,5 +17,3 @@ function _interopNamespace(e) { | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
get: function () { return e[k]; } | ||
}); | ||
@@ -25,3 +23,3 @@ } | ||
} | ||
n['default'] = e; | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
@@ -53,3 +51,3 @@ } | ||
useExisting: i0.forwardRef(function () { return SkyEmailValidationDirective; }), | ||
multi: true | ||
multi: true, | ||
}; | ||
@@ -72,5 +70,5 @@ // tslint:enable | ||
return { | ||
'skyEmail': { | ||
invalid: control.value | ||
} | ||
skyEmail: { | ||
invalid: control.value, | ||
}, | ||
}; | ||
@@ -84,9 +82,9 @@ } | ||
}()); | ||
SkyEmailValidationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyEmailValidationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive }); | ||
SkyEmailValidationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyEmailValidationDirective, selector: "[skyEmailValidation]", providers: [SKY_EMAIL_VALIDATION_VALIDATOR], ngImport: i0__namespace }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyEmailValidationDirective, decorators: [{ | ||
SkyEmailValidationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyEmailValidationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive }); | ||
SkyEmailValidationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: SkyEmailValidationDirective, selector: "[skyEmailValidation]", providers: [SKY_EMAIL_VALIDATION_VALIDATOR], ngImport: i0__namespace }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyEmailValidationDirective, decorators: [{ | ||
type: i0.Directive, | ||
args: [{ | ||
selector: '[skyEmailValidation]', | ||
providers: [SKY_EMAIL_VALIDATION_VALIDATOR] | ||
providers: [SKY_EMAIL_VALIDATION_VALIDATOR], | ||
}] | ||
@@ -100,19 +98,11 @@ }] }); | ||
}()); | ||
SkyEmailValidationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyEmailValidationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule }); | ||
SkyEmailValidationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyEmailValidationModule, declarations: [SkyEmailValidationDirective], imports: [forms.FormsModule], exports: [SkyEmailValidationDirective] }); | ||
SkyEmailValidationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyEmailValidationModule, imports: [[ | ||
forms.FormsModule | ||
]] }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyEmailValidationModule, decorators: [{ | ||
SkyEmailValidationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyEmailValidationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule }); | ||
SkyEmailValidationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyEmailValidationModule, declarations: [SkyEmailValidationDirective], imports: [forms.FormsModule], exports: [SkyEmailValidationDirective] }); | ||
SkyEmailValidationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyEmailValidationModule, imports: [[forms.FormsModule]] }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyEmailValidationModule, decorators: [{ | ||
type: i0.NgModule, | ||
args: [{ | ||
declarations: [ | ||
SkyEmailValidationDirective | ||
], | ||
imports: [ | ||
forms.FormsModule | ||
], | ||
exports: [ | ||
SkyEmailValidationDirective | ||
] | ||
declarations: [SkyEmailValidationDirective], | ||
imports: [forms.FormsModule], | ||
exports: [SkyEmailValidationDirective], | ||
}] | ||
@@ -125,3 +115,3 @@ }] }); | ||
useExisting: i0.forwardRef(function () { return SkyUrlValidationDirective; }), | ||
multi: true | ||
multi: true, | ||
}; | ||
@@ -144,5 +134,5 @@ // tslint:enable | ||
return { | ||
'skyUrl': { | ||
invalid: control.value | ||
} | ||
skyUrl: { | ||
invalid: control.value, | ||
}, | ||
}; | ||
@@ -156,9 +146,9 @@ } | ||
}()); | ||
SkyUrlValidationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyUrlValidationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive }); | ||
SkyUrlValidationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyUrlValidationDirective, selector: "[skyUrlValidation]", providers: [SKY_URL_VALIDATION_VALIDATOR], ngImport: i0__namespace }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyUrlValidationDirective, decorators: [{ | ||
SkyUrlValidationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUrlValidationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive }); | ||
SkyUrlValidationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: SkyUrlValidationDirective, selector: "[skyUrlValidation]", providers: [SKY_URL_VALIDATION_VALIDATOR], ngImport: i0__namespace }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUrlValidationDirective, decorators: [{ | ||
type: i0.Directive, | ||
args: [{ | ||
selector: '[skyUrlValidation]', | ||
providers: [SKY_URL_VALIDATION_VALIDATOR] | ||
providers: [SKY_URL_VALIDATION_VALIDATOR], | ||
}] | ||
@@ -172,19 +162,11 @@ }] }); | ||
}()); | ||
SkyUrlValidationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyUrlValidationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule }); | ||
SkyUrlValidationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyUrlValidationModule, declarations: [SkyUrlValidationDirective], imports: [forms.FormsModule], exports: [SkyUrlValidationDirective] }); | ||
SkyUrlValidationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyUrlValidationModule, imports: [[ | ||
forms.FormsModule | ||
]] }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyUrlValidationModule, decorators: [{ | ||
SkyUrlValidationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUrlValidationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule }); | ||
SkyUrlValidationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUrlValidationModule, declarations: [SkyUrlValidationDirective], imports: [forms.FormsModule], exports: [SkyUrlValidationDirective] }); | ||
SkyUrlValidationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUrlValidationModule, imports: [[forms.FormsModule]] }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyUrlValidationModule, decorators: [{ | ||
type: i0.NgModule, | ||
args: [{ | ||
declarations: [ | ||
SkyUrlValidationDirective | ||
], | ||
imports: [ | ||
forms.FormsModule | ||
], | ||
exports: [ | ||
SkyUrlValidationDirective | ||
] | ||
declarations: [SkyUrlValidationDirective], | ||
imports: [forms.FormsModule], | ||
exports: [SkyUrlValidationDirective], | ||
}] | ||
@@ -211,3 +193,5 @@ }] }); | ||
} | ||
return SkyValidation.isEmail(value) ? undefined : { 'skyEmail': { invalid: value } }; | ||
return SkyValidation.isEmail(value) | ||
? undefined | ||
: { skyEmail: { invalid: value } }; | ||
}; | ||
@@ -226,3 +210,5 @@ /** | ||
} | ||
return SkyValidation.isUrl(value) ? undefined : { 'skyUrl': { invalid: value } }; | ||
return SkyValidation.isUrl(value) | ||
? undefined | ||
: { skyUrl: { invalid: value } }; | ||
}; | ||
@@ -240,8 +226,8 @@ return SkyValidators; | ||
exports.SkyValidators = SkyValidators; | ||
exports.λ1 = SkyEmailValidationDirective; | ||
exports.λ2 = SkyUrlValidationDirective; | ||
exports["λ1"] = SkyEmailValidationDirective; | ||
exports["λ2"] = SkyUrlValidationDirective; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); | ||
})); | ||
//# sourceMappingURL=skyux-validation.umd.js.map |
@@ -13,3 +13,3 @@ { | ||
"name": "@skyux/validation", | ||
"kind": 0, | ||
"kind": 1, | ||
"kindString": "Project", | ||
@@ -33,3 +33,3 @@ "flags": {}, | ||
"arguments": { | ||
"obj": "{\n declarations: [\n SkyEmailValidationDirective\n ],\n imports: [\n FormsModule\n ],\n exports: [\n SkyEmailValidationDirective\n ]\n}" | ||
"obj": "{\n declarations: [SkyEmailValidationDirective],\n imports: [FormsModule],\n exports: [SkyEmailValidationDirective],\n}" | ||
} | ||
@@ -73,3 +73,3 @@ } | ||
"fileName": "projects/validation/src/modules/email-validation/email-validation.module.ts", | ||
"line": 21, | ||
"line": 11, | ||
"character": 13 | ||
@@ -93,3 +93,3 @@ } | ||
"arguments": { | ||
"obj": "{\n declarations: [\n SkyUrlValidationDirective\n ],\n imports: [\n FormsModule\n ],\n exports: [\n SkyUrlValidationDirective\n ]\n}" | ||
"obj": "{\n declarations: [SkyUrlValidationDirective],\n imports: [FormsModule],\n exports: [SkyUrlValidationDirective],\n}" | ||
} | ||
@@ -133,3 +133,3 @@ } | ||
"fileName": "projects/validation/src/modules/url-validation/url-validation.module.ts", | ||
"line": 23, | ||
"line": 11, | ||
"character": 13 | ||
@@ -224,3 +224,3 @@ } | ||
"fileName": "projects/validation/src/modules/validation/validation.ts", | ||
"line": 10, | ||
"line": 11, | ||
"character": 16 | ||
@@ -322,3 +322,3 @@ } | ||
"fileName": "projects/validation/src/modules/validators/validators.ts", | ||
"line": 22, | ||
"line": 16, | ||
"character": 16 | ||
@@ -345,3 +345,3 @@ } | ||
"comment": { | ||
"text": "\n" | ||
"shortText": "\n" | ||
}, | ||
@@ -373,3 +373,3 @@ "type": { | ||
"fileName": "projects/validation/src/modules/validators/validators.ts", | ||
"line": 39, | ||
"line": 35, | ||
"character": 16 | ||
@@ -396,3 +396,3 @@ } | ||
"comment": { | ||
"text": "\n" | ||
"shortText": "\n" | ||
}, | ||
@@ -433,3 +433,3 @@ "type": { | ||
"fileName": "projects/validation/src/modules/validators/validators.ts", | ||
"line": 13, | ||
"line": 8, | ||
"character": 13 | ||
@@ -456,3 +456,3 @@ } | ||
"arguments": { | ||
"obj": "{\n selector: '[skyEmailValidation]',\n providers: [SKY_EMAIL_VALIDATION_VALIDATOR]\n}" | ||
"obj": "{\n selector: '[skyEmailValidation]',\n providers: [SKY_EMAIL_VALIDATION_VALIDATOR],\n}" | ||
} | ||
@@ -494,3 +494,3 @@ } | ||
"fileName": "projects/validation/src/modules/email-validation/email-validation.directive.ts", | ||
"line": 53, | ||
"line": 41, | ||
"character": 9 | ||
@@ -537,3 +537,3 @@ } | ||
"fileName": "projects/validation/src/modules/email-validation/email-validation.directive.ts", | ||
"line": 36, | ||
"line": 25, | ||
"character": 9 | ||
@@ -627,3 +627,3 @@ } | ||
"fileName": "projects/validation/src/modules/email-validation/email-validation.directive.ts", | ||
"line": 34, | ||
"line": 24, | ||
"character": 13 | ||
@@ -656,3 +656,3 @@ } | ||
"arguments": { | ||
"obj": "{\n selector: '[skyUrlValidation]',\n providers: [SKY_URL_VALIDATION_VALIDATOR]\n}" | ||
"obj": "{\n selector: '[skyUrlValidation]',\n providers: [SKY_URL_VALIDATION_VALIDATOR],\n}" | ||
} | ||
@@ -694,3 +694,3 @@ } | ||
"fileName": "projects/validation/src/modules/url-validation/url-validation.directive.ts", | ||
"line": 51, | ||
"line": 41, | ||
"character": 9 | ||
@@ -737,3 +737,3 @@ } | ||
"fileName": "projects/validation/src/modules/url-validation/url-validation.directive.ts", | ||
"line": 35, | ||
"line": 25, | ||
"character": 9 | ||
@@ -827,3 +827,3 @@ } | ||
"fileName": "projects/validation/src/modules/url-validation/url-validation.directive.ts", | ||
"line": 34, | ||
"line": 24, | ||
"character": 13 | ||
@@ -864,5 +864,10 @@ } | ||
{ | ||
"fileName": ".eslintrc.json", | ||
"filePath": "/projects/validation/documentation/code-examples/.eslintrc.json", | ||
"rawContents": "{\n \"extends\": [\"../../.eslintrc.json\"],\n \"overrides\": [\n {\n \"files\": [\"*.ts\"],\n \"rules\": {\n \"@angular-eslint/directive-selector\": [\n \"error\",\n {\n \"type\": \"attribute\",\n \"prefix\": \"app\",\n \"style\": \"camelCase\"\n }\n ],\n \"@angular-eslint/component-selector\": [\n \"error\",\n {\n \"type\": \"element\",\n \"prefix\": \"app\",\n \"style\": \"kebab-case\"\n }\n ]\n }\n }\n ]\n}\n" | ||
}, | ||
{ | ||
"fileName": "email-validation-demo.component.html", | ||
"filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.component.html", | ||
"rawContents": "<form\n novalidate\n [formGroup]=\"formGroup\"\n>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"emailInput.id\"\n >\n Email address\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"email\"\n skyId\n #emailInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n\n <ng-container *ngIf=\"emailControl.errors && emailControl.touched\">\n\n <div *ngIf=\"emailControl.errors.required\"\n class=\"sky-error-label\"\n >\n Email address is required.\n </div>\n\n <div *ngIf=\"emailControl.errors.skyEmail && emailControl.dirty\"\n class=\"sky-error-label\"\n >\n Enter a valid email in the \"joe@abc.com\" format.\n </div>\n\n </ng-container>\n\n</form>\n" | ||
"rawContents": "<form novalidate [formGroup]=\"formGroup\">\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"emailInput.id\">\n Email address\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"email\"\n skyId\n #emailInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n\n <ng-container *ngIf=\"emailControl.errors && emailControl.touched\">\n <div *ngIf=\"emailControl.errors.required\" class=\"sky-error-label\">\n Email address is required.\n </div>\n\n <div\n *ngIf=\"emailControl.errors.skyEmail && emailControl.dirty\"\n class=\"sky-error-label\"\n >\n Enter a valid email in the \"joe@abc.com\" format.\n </div>\n </ng-container>\n</form>\n" | ||
}, | ||
@@ -872,3 +877,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.component.ts", | ||
"rawContents": "import {\n Component,\n OnInit\n} from '@angular/core';\n\nimport {\n AbstractControl,\n FormBuilder,\n FormControl,\n FormGroup,\n Validators\n} from '@angular/forms';\n\nimport {\n SkyValidators\n} from '@skyux/validation';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html'\n})\nexport class EmailValidationDemoComponent implements OnInit {\n\n public get emailControl(): AbstractControl {\n return this.formGroup.get('email');\n }\n\n public formGroup: FormGroup;\n\n constructor(\n private formBuilder: FormBuilder\n ) { }\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n email: new FormControl(undefined, [\n Validators.required,\n SkyValidators.email\n ])\n });\n }\n}\n" | ||
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n AbstractControl,\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyValidators } from '@skyux/validation';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html',\n})\nexport class EmailValidationDemoComponent implements OnInit {\n public get emailControl(): AbstractControl {\n return this.formGroup.get('email');\n }\n\n public formGroup: FormGroup;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n email: new FormControl(undefined, [\n Validators.required,\n SkyValidators.email,\n ]),\n });\n }\n}\n" | ||
}, | ||
@@ -878,3 +883,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.module.ts", | ||
"rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n FormsModule,\n ReactiveFormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyEmailValidationModule\n} from '@skyux/validation';\n\nimport {\n EmailValidationDemoComponent\n} from './email-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyEmailValidationModule,\n SkyIdModule,\n SkyInputBoxModule\n ],\n exports: [\n EmailValidationDemoComponent\n ],\n declarations: [\n EmailValidationDemoComponent\n ]\n})\nexport class EmailValidationDemoModule { }\n" | ||
"rawContents": "import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyEmailValidationModule } from '@skyux/validation';\n\nimport { EmailValidationDemoComponent } from './email-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyEmailValidationModule,\n SkyIdModule,\n SkyInputBoxModule,\n ],\n exports: [EmailValidationDemoComponent],\n declarations: [EmailValidationDemoComponent],\n})\nexport class EmailValidationDemoModule {}\n" | ||
}, | ||
@@ -884,3 +889,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.component.html", | ||
"rawContents": "<form\n novalidate\n>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"emailInput.id\"\n >\n Email address\n </label>\n <input\n class=\"sky-form-control\"\n name=\"emailAddress\"\n skyEmailValidation\n skyId\n [(ngModel)]=\"demoModel.emailAddress\"\n #emailInput=\"skyId\"\n #emailControl=\"ngModel\"\n />\n </sky-input-box>\n </div>\n\n <div *ngIf=\"emailControl.errors?.skyEmail && emailControl.dirty && emailControl.touched\"\n class=\"sky-error-label\"\n >\n Enter a valid email in the \"joe@abc.com\" format.\n </div>\n</form>\n" | ||
"rawContents": "<form novalidate>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"emailInput.id\">\n Email address\n </label>\n <input\n class=\"sky-form-control\"\n name=\"emailAddress\"\n skyEmailValidation\n skyId\n [(ngModel)]=\"demoModel.emailAddress\"\n #emailInput=\"skyId\"\n #emailControl=\"ngModel\"\n />\n </sky-input-box>\n </div>\n\n <div\n *ngIf=\"\n emailControl.errors?.skyEmail &&\n emailControl.dirty &&\n emailControl.touched\n \"\n class=\"sky-error-label\"\n >\n Enter a valid email in the \"joe@abc.com\" format.\n </div>\n</form>\n" | ||
}, | ||
@@ -890,3 +895,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.component.ts", | ||
"rawContents": "import {\n Component\n} from '@angular/core';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html'\n})\nexport class EmailValidationDemoComponent {\n\n public demoModel: {\n emailAddress?: string;\n } = {};\n\n}\n" | ||
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html',\n})\nexport class EmailValidationDemoComponent {\n public demoModel: {\n emailAddress?: string;\n } = {};\n}\n" | ||
}, | ||
@@ -896,3 +901,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.module.ts", | ||
"rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n FormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyEmailValidationModule\n} from '@skyux/validation';\n\nimport {\n EmailValidationDemoComponent\n} from './email-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyEmailValidationModule,\n SkyIdModule,\n SkyInputBoxModule\n ],\n exports: [\n EmailValidationDemoComponent\n ],\n declarations: [\n EmailValidationDemoComponent\n ]\n})\nexport class EmailValidationDemoModule { }\n" | ||
"rawContents": "import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { FormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyEmailValidationModule } from '@skyux/validation';\n\nimport { EmailValidationDemoComponent } from './email-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyEmailValidationModule,\n SkyIdModule,\n SkyInputBoxModule,\n ],\n exports: [EmailValidationDemoComponent],\n declarations: [EmailValidationDemoComponent],\n})\nexport class EmailValidationDemoModule {}\n" | ||
}, | ||
@@ -902,3 +907,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/url-validation/control-validator/url-validation-demo.component.html", | ||
"rawContents": "<form\n novalidate\n [formGroup]=\"formGroup\"\n>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"urlInput.id\"\n >\n URL\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"url\"\n skyId\n #urlInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n\n <ng-container *ngIf=\"urlControl.errors && urlControl.touched\">\n\n <div *ngIf=\"urlControl.errors.required\"\n class=\"sky-error-label\"\n >\n URL is required.\n </div>\n\n <div *ngIf=\"urlControl.errors.skyUrl && urlControl.dirty\"\n class=\"sky-error-label\"\n >\n Enter a valid URL in the \"http(s)://site.domain\" format.\n </div>\n\n </ng-container>\n\n</form>\n" | ||
"rawContents": "<form novalidate [formGroup]=\"formGroup\">\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"urlInput.id\"> URL </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"url\"\n skyId\n #urlInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n\n <ng-container *ngIf=\"urlControl.errors && urlControl.touched\">\n <div *ngIf=\"urlControl.errors.required\" class=\"sky-error-label\">\n URL is required.\n </div>\n\n <div\n *ngIf=\"urlControl.errors.skyUrl && urlControl.dirty\"\n class=\"sky-error-label\"\n >\n Enter a valid URL in the \"http(s)://site.domain\" format.\n </div>\n </ng-container>\n</form>\n" | ||
}, | ||
@@ -908,3 +913,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/url-validation/control-validator/url-validation-demo.component.ts", | ||
"rawContents": "import {\n Component,\n OnInit\n} from '@angular/core';\n\nimport {\n AbstractControl,\n FormBuilder,\n FormControl,\n FormGroup,\n Validators\n} from '@angular/forms';\n\nimport {\n SkyValidators\n} from '@skyux/validation';\n\n@Component({\n selector: 'app-url-validation-demo',\n templateUrl: './url-validation-demo.component.html'\n})\nexport class UrlValidationDemoComponent implements OnInit {\n\n public get urlControl(): AbstractControl {\n return this.formGroup.get('url');\n }\n\n public formGroup: FormGroup;\n\n constructor(\n private formBuilder: FormBuilder\n ) { }\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n url: new FormControl(undefined, [\n Validators.required,\n SkyValidators.url\n ])\n });\n }\n}\n" | ||
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n AbstractControl,\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyValidators } from '@skyux/validation';\n\n@Component({\n selector: 'app-url-validation-demo',\n templateUrl: './url-validation-demo.component.html',\n})\nexport class UrlValidationDemoComponent implements OnInit {\n public get urlControl(): AbstractControl {\n return this.formGroup.get('url');\n }\n\n public formGroup: FormGroup;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n url: new FormControl(undefined, [Validators.required, SkyValidators.url]),\n });\n }\n}\n" | ||
}, | ||
@@ -914,3 +919,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/url-validation/control-validator/url-validation-demo.module.ts", | ||
"rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n FormsModule,\n ReactiveFormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyUrlValidationModule\n} from '@skyux/validation';\n\nimport {\n UrlValidationDemoComponent\n} from './url-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyUrlValidationModule\n ],\n exports: [\n UrlValidationDemoComponent\n ],\n declarations: [\n UrlValidationDemoComponent\n ]\n})\nexport class UrlValidationDemoModule { }\n" | ||
"rawContents": "import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyUrlValidationModule } from '@skyux/validation';\n\nimport { UrlValidationDemoComponent } from './url-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyUrlValidationModule,\n ],\n exports: [UrlValidationDemoComponent],\n declarations: [UrlValidationDemoComponent],\n})\nexport class UrlValidationDemoModule {}\n" | ||
}, | ||
@@ -920,3 +925,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.component.html", | ||
"rawContents": "<form\n novalidate\n>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"urlInput.id\"\n >\n Url\n </label>\n <input\n class=\"sky-form-control\"\n name=\"url\"\n skyUrlValidation\n skyId\n [(ngModel)]=\"demoModel.url\"\n #urlInput=\"skyId\"\n #urlControl=\"ngModel\"\n />\n </sky-input-box>\n </div>\n\n <div *ngIf=\"urlControl.errors?.skyUrl && urlControl.dirty && urlControl.touched\"\n class=\"sky-error-label\"\n >\n Enter a valid URL in the \"http(s)://site.domain\" format.\n </div>\n</form>\n" | ||
"rawContents": "<form novalidate>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"urlInput.id\"> Url </label>\n <input\n class=\"sky-form-control\"\n name=\"url\"\n skyUrlValidation\n skyId\n [(ngModel)]=\"demoModel.url\"\n #urlInput=\"skyId\"\n #urlControl=\"ngModel\"\n />\n </sky-input-box>\n </div>\n\n <div\n *ngIf=\"urlControl.errors?.skyUrl && urlControl.dirty && urlControl.touched\"\n class=\"sky-error-label\"\n >\n Enter a valid URL in the \"http(s)://site.domain\" format.\n </div>\n</form>\n" | ||
}, | ||
@@ -926,3 +931,3 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.component.ts", | ||
"rawContents": "import {\n Component\n} from '@angular/core';\n\n@Component({\n selector: 'app-url-validation-demo',\n templateUrl: './url-validation-demo.component.html'\n})\nexport class UrlValidationDemoComponent {\n\n public demoModel: {\n url?: string;\n } = {};\n\n}\n" | ||
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-url-validation-demo',\n templateUrl: './url-validation-demo.component.html',\n})\nexport class UrlValidationDemoComponent {\n public demoModel: {\n url?: string;\n } = {};\n}\n" | ||
}, | ||
@@ -932,5 +937,5 @@ { | ||
"filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.module.ts", | ||
"rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n FormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyUrlValidationModule\n} from '@skyux/validation';\n\nimport {\n UrlValidationDemoComponent\n} from './url-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyUrlValidationModule\n ],\n exports: [\n UrlValidationDemoComponent\n ],\n declarations: [\n UrlValidationDemoComponent\n ]\n})\nexport class UrlValidationDemoModule { }\n" | ||
"rawContents": "import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { FormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyUrlValidationModule } from '@skyux/validation';\n\nimport { UrlValidationDemoComponent } from './url-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyUrlValidationModule,\n ],\n exports: [UrlValidationDemoComponent],\n declarations: [UrlValidationDemoComponent],\n})\nexport class UrlValidationDemoModule {}\n" | ||
} | ||
] | ||
} |
@@ -9,3 +9,3 @@ import { Directive, forwardRef } from '@angular/core'; | ||
useExisting: forwardRef(() => SkyEmailValidationDirective), | ||
multi: true | ||
multi: true, | ||
}; | ||
@@ -26,5 +26,5 @@ // tslint:enable | ||
return { | ||
'skyEmail': { | ||
invalid: control.value | ||
} | ||
skyEmail: { | ||
invalid: control.value, | ||
}, | ||
}; | ||
@@ -37,11 +37,11 @@ } | ||
} | ||
SkyEmailValidationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); | ||
SkyEmailValidationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyEmailValidationDirective, selector: "[skyEmailValidation]", providers: [SKY_EMAIL_VALIDATION_VALIDATOR], ngImport: i0 }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationDirective, decorators: [{ | ||
SkyEmailValidationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); | ||
SkyEmailValidationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: SkyEmailValidationDirective, selector: "[skyEmailValidation]", providers: [SKY_EMAIL_VALIDATION_VALIDATOR], ngImport: i0 }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationDirective, decorators: [{ | ||
type: Directive, | ||
args: [{ | ||
selector: '[skyEmailValidation]', | ||
providers: [SKY_EMAIL_VALIDATION_VALIDATOR] | ||
providers: [SKY_EMAIL_VALIDATION_VALIDATOR], | ||
}] | ||
}] }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1haWwtdmFsaWRhdGlvbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWxpZGF0aW9uL3NyYy9tb2R1bGVzL2VtYWlsLXZhbGlkYXRpb24vZW1haWwtdmFsaWRhdGlvbi5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxVQUFVLEVBQ1gsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUVMLGFBQWEsRUFFZCxNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFDTCxhQUFhLEVBQ2QsTUFBTSwwQkFBMEIsQ0FBQzs7QUFFbEMsc0RBQXNEO0FBQ3RELE1BQU0sOEJBQThCLEdBQUc7SUFDckMsT0FBTyxFQUFFLGFBQWE7SUFDdEIsV0FBVyxFQUFFLFVBQVUsQ0FBQyxHQUFHLEVBQUUsQ0FBQywyQkFBMkIsQ0FBQztJQUMxRCxLQUFLLEVBQUUsSUFBSTtDQUNaLENBQUM7QUFDRixnQkFBZ0I7QUFFaEI7Ozs7R0FJRztBQU1ILE1BQU0sT0FBTywyQkFBMkI7SUFFL0IsUUFBUSxDQUFDLE9BQXdCO1FBQ3RDLElBQUksS0FBSyxHQUFHLE9BQU8sQ0FBQyxLQUFLLENBQUM7UUFFMUIs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FjZSB0aGlzIGF0dHJpYnV0ZSBvbiBhbiBgaW5wdXRgIGVsZW1lbnQuXG4gKiBJZiB1c2VycyBlbnRlciB2YWx1ZXMgdGhhdCBhcmUgbm90IHZhbGlkIGVtYWlsIGFkZHJlc3NlcywgYW4gZXJyb3IgbWVzc2FnZSBhcHBlYXJzLlxuICogVGhlIGRpcmVjdGl2ZSB1c2VzIGBOZ01vZGVsYCB0byBiaW5kIGRhdGEuXG4gKi9cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogJ1tza3lFbWFpbFZhbGlkYXRpb25dJyxcbiAgcHJvdmlkZXJzOiBbU0tZX0VNQUlMX1ZBTElEQVRJT05fVkFMSURBVE9SXSxcbn0pXG5leHBvcnQgY2xhc3MgU2t5RW1haWxWYWxpZGF0aW9uRGlyZWN0aXZlIGltcGxlbWVudHMgVmFsaWRhdG9yIHtcbiAgcHVibGljIHZhbGlkYXRlKGNvbnRyb2w6IEFic3RyYWN0Q29udHJvbCk6IHsgW2tleTogc3RyaW5nXTogYW55IH0ge1xuICAgIGxldCB2YWx1ZSA9IGNvbnRyb2wudmFsdWU7XG5cbiAgICBpZiAoIXZhbHVlKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgaWYgKCF0aGlzLmVtYWlsSXNWYWxpZCh2YWx1ZSkpIHtcbiAgICAgIHJldHVybiB7XG4gICAgICAgIHNreUVtYWlsOiB7XG4gICAgICAgICAgaW52YWxpZDogY29udHJvbC52YWx1ZSxcbiAgICAgICAgfSxcbiAgICAgIH07XG4gICAgfVxuICB9XG5cbiAgcHVibGljIGVtYWlsSXNWYWxpZChlbWFpbDogc3RyaW5nKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIFNreVZhbGlkYXRpb24uaXNFbWFpbChlbWFpbCk7XG4gIH1cbn1cbiJdfQ== |
@@ -7,21 +7,13 @@ import { NgModule } from '@angular/core'; | ||
} | ||
SkyEmailValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
SkyEmailValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationModule, declarations: [SkyEmailValidationDirective], imports: [FormsModule], exports: [SkyEmailValidationDirective] }); | ||
SkyEmailValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationModule, imports: [[ | ||
FormsModule | ||
]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationModule, decorators: [{ | ||
SkyEmailValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
SkyEmailValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationModule, declarations: [SkyEmailValidationDirective], imports: [FormsModule], exports: [SkyEmailValidationDirective] }); | ||
SkyEmailValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationModule, imports: [[FormsModule]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationModule, decorators: [{ | ||
type: NgModule, | ||
args: [{ | ||
declarations: [ | ||
SkyEmailValidationDirective | ||
], | ||
imports: [ | ||
FormsModule | ||
], | ||
exports: [ | ||
SkyEmailValidationDirective | ||
] | ||
declarations: [SkyEmailValidationDirective], | ||
imports: [FormsModule], | ||
exports: [SkyEmailValidationDirective], | ||
}] | ||
}] }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ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kJBQTJCLENBQUM7aUJBQ3ZDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEZvcm1zTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvZm9ybXMnO1xuXG5pbXBvcnQgeyBTa3lFbWFpbFZhbGlkYXRpb25EaXJlY3RpdmUgfSBmcm9tICcuL2VtYWlsLXZhbGlkYXRpb24uZGlyZWN0aXZlJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbU2t5RW1haWxWYWxpZGF0aW9uRGlyZWN0aXZlXSxcbiAgaW1wb3J0czogW0Zvcm1zTW9kdWxlXSxcbiAgZXhwb3J0czogW1NreUVtYWlsVmFsaWRhdGlvbkRpcmVjdGl2ZV0sXG59KVxuZXhwb3J0IGNsYXNzIFNreUVtYWlsVmFsaWRhdGlvbk1vZHVsZSB7fVxuIl19 |
@@ -9,3 +9,3 @@ import { Directive, forwardRef } from '@angular/core'; | ||
useExisting: forwardRef(() => SkyUrlValidationDirective), | ||
multi: true | ||
multi: true, | ||
}; | ||
@@ -26,5 +26,5 @@ // tslint:enable | ||
return { | ||
'skyUrl': { | ||
invalid: control.value | ||
} | ||
skyUrl: { | ||
invalid: control.value, | ||
}, | ||
}; | ||
@@ -37,11 +37,11 @@ } | ||
} | ||
SkyUrlValidationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); | ||
SkyUrlValidationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyUrlValidationDirective, selector: "[skyUrlValidation]", providers: [SKY_URL_VALIDATION_VALIDATOR], ngImport: i0 }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationDirective, decorators: [{ | ||
SkyUrlValidationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); | ||
SkyUrlValidationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: SkyUrlValidationDirective, selector: "[skyUrlValidation]", providers: [SKY_URL_VALIDATION_VALIDATOR], ngImport: i0 }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationDirective, decorators: [{ | ||
type: Directive, | ||
args: [{ | ||
selector: '[skyUrlValidation]', | ||
providers: [SKY_URL_VALIDATION_VALIDATOR] | ||
providers: [SKY_URL_VALIDATION_VALIDATOR], | ||
}] | ||
}] }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsLXZhbGlkYXRpb24uZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsaWRhdGlvbi9zcmMvbW9kdWxlcy91cmwtdmFsaWRhdGlvbi91cmwtdmFsaWRhdGlvbi5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxVQUFVLEVBQ1gsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUVMLGFBQWEsRUFFZCxNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFDTCxhQUFhLEVBQ2QsTUFBTSwwQkFBMEIsQ0FBQzs7QUFFbEMsc0RBQXNEO0FBQ3RELE1BQU0sNEJBQTRCLEdBQUc7SUFDbkMsT0FBTyxFQUFFLGFBQWE7SUFDdEIsV0FBVyxFQUFFLFVBQVUsQ0FBQyxHQUFHLEVBQUUsQ0FBQy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l19 |
@@ -7,21 +7,13 @@ import { NgModule } from '@angular/core'; | ||
} | ||
SkyUrlValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
SkyUrlValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationModule, declarations: [SkyUrlValidationDirective], imports: [FormsModule], exports: [SkyUrlValidationDirective] }); | ||
SkyUrlValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationModule, imports: [[ | ||
FormsModule | ||
]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationModule, decorators: [{ | ||
SkyUrlValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
SkyUrlValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationModule, declarations: [SkyUrlValidationDirective], imports: [FormsModule], exports: [SkyUrlValidationDirective] }); | ||
SkyUrlValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationModule, imports: [[FormsModule]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationModule, decorators: [{ | ||
type: NgModule, | ||
args: [{ | ||
declarations: [ | ||
SkyUrlValidationDirective | ||
], | ||
imports: [ | ||
FormsModule | ||
], | ||
exports: [ | ||
SkyUrlValidationDirective | ||
] | ||
declarations: [SkyUrlValidationDirective], | ||
imports: [FormsModule], | ||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KVxcW1xcXVxcXFwuLDs6XFxzQFwiXSsoXFwuW148PigpXFxbXFxdXFxcXC4sOzpcXHNAXCJdKykqKXwoXCIuK1wiKSlAKChcXFtbMC05XXsxLDN9XFwuWzAtOV17MSwzfVxcLlswLTldezEsM31cXC5bMC05XXsxLDN9XSl8KChbYS16QS1aXFwtMC05XStcXC4pK1thLXpBLVpdezIsfSkpJC87XG4gICAgcmV0dXJuIHJlZ2V4LnRlc3QoZW1haWxBZGRyZXNzKTtcbiAgfVxuXG4gIHB1YmxpYyBzdGF0aWMgaXNVcmwodXJsOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICBsZXQgcmVnZXggPSAvXigoaHR0cHxodHRwcyk6XFwvXFwvKT8oW1xcd1xcLV0rXFwuKStbXFx3XFwtXSsvaTtcbiAgICByZXR1cm4gcmVnZXgudGVzdCh1cmwpO1xuICB9XG59XG4iXX0= |
@@ -18,3 +18,5 @@ import { SkyValidation } from '../validation/validation'; | ||
} | ||
return SkyValidation.isEmail(value) ? undefined : { 'skyEmail': { invalid: value } }; | ||
return SkyValidation.isEmail(value) | ||
? undefined | ||
: { skyEmail: { invalid: value } }; | ||
} | ||
@@ -33,5 +35,7 @@ /** | ||
} | ||
return SkyValidation.isUrl(value) ? undefined : { 'skyUrl': { invalid: value } }; | ||
return SkyValidation.isUrl(value) | ||
? undefined | ||
: { skyUrl: { invalid: value } }; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbGlkYXRpb24vc3JjL21vZHVsZXMvdmFsaWRhdG9ycy92YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtBLE9BQU8sRUFDTCxhQUFhLEVBQ2QsTUFBTSwwQkFBMEIsQ0FBQztBQUVsQyx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ICAgID8gdW5kZWZpbmVkXG4gICAgICA6IHsgc2t5RW1haWw6IHsgaW52YWxpZDogdmFsdWUgfSB9O1xuICB9XG5cbiAgLyoqXG4gICAqIFZhbGlkYXRlcyBVUkxzIGluIHJlYWN0aXZlIGZvcm1zLiBBZGQgdGhpcyB2YWxpZGF0b3IgZGlyZWN0bHkgdG8gdGhlIGZvcm0gY29udHJvbCBtb2RlbCBpblxuICAgKiB0aGUgY29tcG9uZW50IGNsYXNzLiBJZiB1c2VycyBlbnRlciB2YWx1ZXMgdGhhdCBhcmUgbm90IHZhbGlkIFVSTHMsIHRoZSB2YWxpZGF0b3IgdGhyb3dzIGFuXG4gICAqIGVycm9yLiBTaW5jZSB0aGlzIGlzIGEgc3luYyB2YWxpZGF0b3IsIGl0IHJldHVybnMgYSBzZXQgb2YgdmFsaWRhdGlvbiBlcnJvcnMgb3IgYHVuZGVmaW5lZGBcbiAgICogaW1tZWRpYXRlbHkgd2hlbiB1c2VycyBlbnRlciB2YWx1ZXMuXG4gICAqIEBwYXJhbSBjb250cm9sXG4gICAqL1xuICBwdWJsaWMgc3RhdGljIHVybChjb250cm9sOiBBYnN0cmFjdENvbnRyb2wpOiBWYWxpZGF0aW9uRXJyb3JzIHwgbnVsbCB7XG4gICAgY29uc3QgdmFsdWUgPSBjb250cm9sLnZhbHVlO1xuXG4gICAgaWYgKCF2YWx1ZSkge1xuICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG5cbiAgICByZXR1cm4gU2t5VmFsaWRhdGlvbi5pc1VybCh2YWx1ZSlcbiAgICAgID8gdW5kZWZpbmVkXG4gICAgICA6IHsgc2t5VXJsOiB7IGludmFsaWQ6IHZhbHVlIH0gfTtcbiAgfVxufVxuIl19 |
@@ -9,2 +9,2 @@ export * from './modules/email-validation/email-validation.module'; | ||
export { SkyUrlValidationDirective as λ2 } from './modules/url-validation/url-validation.directive'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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ZhbGlkYXRvcnMvdmFsaWRhdG9ycyc7XG5cbi8vIENvbXBvbmVudHMgYW5kIGRpcmVjdGl2ZXMgbXVzdCBiZSBleHBvcnRlZCB0byBzdXBwb3J0IEFuZ3VsYXIncyBcInBhcnRpYWxcIiBJdnkgY29tcGlsZXIuXG4vLyBPYnNjdXJlIG5hbWVzIGFyZSB1c2VkIHRvIGluZGljYXRlIHR5cGVzIGFyZSBub3QgcGFydCBvZiB0aGUgcHVibGljIEFQSS5cbmV4cG9ydCB7IFNreUVtYWlsVmFsaWRhdGlvbkRpcmVjdGl2ZSBhcyDOuzEgfSBmcm9tICcuL21vZHVsZXMvZW1haWwtdmFsaWRhdGlvbi9lbWFpbC12YWxpZGF0aW9uLmRpcmVjdGl2ZSc7XG5leHBvcnQgeyBTa3lVcmxWYWxpZGF0aW9uRGlyZWN0aXZlIGFzIM67MiB9IGZyb20gJy4vbW9kdWxlcy91cmwtdmFsaWRhdGlvbi91cmwtdmFsaWRhdGlvbi5kaXJlY3RpdmUnO1xuIl19 |
@@ -23,3 +23,3 @@ import * as i0 from '@angular/core'; | ||
useExisting: forwardRef(() => SkyEmailValidationDirective), | ||
multi: true | ||
multi: true, | ||
}; | ||
@@ -40,5 +40,5 @@ // tslint:enable | ||
return { | ||
'skyEmail': { | ||
invalid: control.value | ||
} | ||
skyEmail: { | ||
invalid: control.value, | ||
}, | ||
}; | ||
@@ -51,9 +51,9 @@ } | ||
} | ||
SkyEmailValidationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); | ||
SkyEmailValidationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyEmailValidationDirective, selector: "[skyEmailValidation]", providers: [SKY_EMAIL_VALIDATION_VALIDATOR], ngImport: i0 }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationDirective, decorators: [{ | ||
SkyEmailValidationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); | ||
SkyEmailValidationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: SkyEmailValidationDirective, selector: "[skyEmailValidation]", providers: [SKY_EMAIL_VALIDATION_VALIDATOR], ngImport: i0 }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationDirective, decorators: [{ | ||
type: Directive, | ||
args: [{ | ||
selector: '[skyEmailValidation]', | ||
providers: [SKY_EMAIL_VALIDATION_VALIDATOR] | ||
providers: [SKY_EMAIL_VALIDATION_VALIDATOR], | ||
}] | ||
@@ -64,19 +64,11 @@ }] }); | ||
} | ||
SkyEmailValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
SkyEmailValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationModule, declarations: [SkyEmailValidationDirective], imports: [FormsModule], exports: [SkyEmailValidationDirective] }); | ||
SkyEmailValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationModule, imports: [[ | ||
FormsModule | ||
]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyEmailValidationModule, decorators: [{ | ||
SkyEmailValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
SkyEmailValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationModule, declarations: [SkyEmailValidationDirective], imports: [FormsModule], exports: [SkyEmailValidationDirective] }); | ||
SkyEmailValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationModule, imports: [[FormsModule]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyEmailValidationModule, decorators: [{ | ||
type: NgModule, | ||
args: [{ | ||
declarations: [ | ||
SkyEmailValidationDirective | ||
], | ||
imports: [ | ||
FormsModule | ||
], | ||
exports: [ | ||
SkyEmailValidationDirective | ||
] | ||
declarations: [SkyEmailValidationDirective], | ||
imports: [FormsModule], | ||
exports: [SkyEmailValidationDirective], | ||
}] | ||
@@ -89,3 +81,3 @@ }] }); | ||
useExisting: forwardRef(() => SkyUrlValidationDirective), | ||
multi: true | ||
multi: true, | ||
}; | ||
@@ -106,5 +98,5 @@ // tslint:enable | ||
return { | ||
'skyUrl': { | ||
invalid: control.value | ||
} | ||
skyUrl: { | ||
invalid: control.value, | ||
}, | ||
}; | ||
@@ -117,9 +109,9 @@ } | ||
} | ||
SkyUrlValidationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); | ||
SkyUrlValidationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyUrlValidationDirective, selector: "[skyUrlValidation]", providers: [SKY_URL_VALIDATION_VALIDATOR], ngImport: i0 }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationDirective, decorators: [{ | ||
SkyUrlValidationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); | ||
SkyUrlValidationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: SkyUrlValidationDirective, selector: "[skyUrlValidation]", providers: [SKY_URL_VALIDATION_VALIDATOR], ngImport: i0 }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationDirective, decorators: [{ | ||
type: Directive, | ||
args: [{ | ||
selector: '[skyUrlValidation]', | ||
providers: [SKY_URL_VALIDATION_VALIDATOR] | ||
providers: [SKY_URL_VALIDATION_VALIDATOR], | ||
}] | ||
@@ -130,19 +122,11 @@ }] }); | ||
} | ||
SkyUrlValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
SkyUrlValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationModule, declarations: [SkyUrlValidationDirective], imports: [FormsModule], exports: [SkyUrlValidationDirective] }); | ||
SkyUrlValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationModule, imports: [[ | ||
FormsModule | ||
]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyUrlValidationModule, decorators: [{ | ||
SkyUrlValidationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); | ||
SkyUrlValidationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationModule, declarations: [SkyUrlValidationDirective], imports: [FormsModule], exports: [SkyUrlValidationDirective] }); | ||
SkyUrlValidationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationModule, imports: [[FormsModule]] }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyUrlValidationModule, decorators: [{ | ||
type: NgModule, | ||
args: [{ | ||
declarations: [ | ||
SkyUrlValidationDirective | ||
], | ||
imports: [ | ||
FormsModule | ||
], | ||
exports: [ | ||
SkyUrlValidationDirective | ||
] | ||
declarations: [SkyUrlValidationDirective], | ||
imports: [FormsModule], | ||
exports: [SkyUrlValidationDirective], | ||
}] | ||
@@ -167,3 +151,5 @@ }] }); | ||
} | ||
return SkyValidation.isEmail(value) ? undefined : { 'skyEmail': { invalid: value } }; | ||
return SkyValidation.isEmail(value) | ||
? undefined | ||
: { skyEmail: { invalid: value } }; | ||
} | ||
@@ -182,3 +168,5 @@ /** | ||
} | ||
return SkyValidation.isUrl(value) ? undefined : { 'skyUrl': { invalid: value } }; | ||
return SkyValidation.isUrl(value) | ||
? undefined | ||
: { skyUrl: { invalid: value } }; | ||
} | ||
@@ -185,0 +173,0 @@ } |
{ | ||
"name": "@skyux/validation", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"peerDependencies": { | ||
"@angular/common": "^12.2.7", | ||
"@angular/core": "^12.2.7", | ||
"@angular/forms": "^12.2.7" | ||
"@angular/common": "^12.2.13", | ||
"@angular/core": "^12.2.13", | ||
"@angular/forms": "^12.2.13" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -12,0 +12,0 @@ "main": "bundles/skyux-validation.umd.js", |
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
102246
1567
Updatedtslib@^2.3.1