zek 14.2.78 → 14.2.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/modules/password/password.component.mjs +2 -2
- package/esm2020/lib/modules/validator/field-validator.mjs +20 -0
- package/esm2020/lib/modules/validator/index.mjs +2 -2
- package/esm2020/lib/modules/validator/validator.module.mjs +6 -6
- package/esm2020/lib/utils/index.mjs +2 -1
- package/esm2020/lib/utils/validation-helper.mjs +10 -0
- package/fesm2015/zek.mjs +20 -10
- package/fesm2015/zek.mjs.map +1 -1
- package/fesm2020/zek.mjs +20 -10
- package/fesm2020/zek.mjs.map +1 -1
- package/lib/modules/validator/field-validator.d.ts +7 -0
- package/lib/modules/validator/index.d.ts +1 -1
- package/lib/modules/validator/validator.module.d.ts +2 -2
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/validation-helper.d.ts +4 -0
- package/package.json +1 -1
- package/esm2020/lib/modules/validator/field-validator.component.mjs +0 -20
- package/lib/modules/validator/field-validator.component.d.ts +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ZekFieldValidator {
|
|
3
|
+
field: any;
|
|
4
|
+
constructor();
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekFieldValidator, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekFieldValidator, "zek-field-validator, [zek-field-validator]", never, { "field": "field"; }, {}, never, never, false>;
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './validator.module';
|
|
2
|
-
export * from './field-validator
|
|
2
|
+
export * from './field-validator';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./field-validator
|
|
2
|
+
import * as i1 from "./field-validator";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@ngx-translate/core";
|
|
5
5
|
export declare class ValidatorModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ValidatorModule, [typeof i1.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ValidatorModule, [typeof i1.ZekFieldValidator], [typeof i2.CommonModule, typeof i3.TranslateModule], [typeof i1.ZekFieldValidator]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<ValidatorModule>;
|
|
9
9
|
}
|
package/lib/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@ngx-translate/core";
|
|
5
|
-
export class FieldValidatorComponent {
|
|
6
|
-
// @Input() field?: NgModel;
|
|
7
|
-
constructor() {
|
|
8
|
-
if (this.field)
|
|
9
|
-
console.log(this.field.errors);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
FieldValidatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FieldValidatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
FieldValidatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: FieldValidatorComponent, selector: "zek-field-validator, [zek-field-validator]", inputs: { field: "field" }, host: { properties: { "class": "\"invalid-tooltip\"" } }, ngImport: i0, template: "<ng-container *ngIf=\"field\">\r\n <ng-container *ngIf=\"field.invalid && (field.dirty || field.touched || field.formDirective?.submitted)\">\r\n <ng-container *ngIf=\"field.errors\">\r\n <ng-container *ngIf=\"field.errors.required\">{{ 'Validation.Required' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.minlength\">{{ 'Validation.MinLengthFormat' | translate:{ value: field.errors.minlength.requiredLength } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.maxlength\">{{ 'Validation.MaxLengthFormat' | translate:{ value: field.errors.maxlength.requiredLength } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.email\">{{ 'Validation.Pattern' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.pattern\">{{ 'Validation.Pattern' | translate }}</ng-container><!-- {{ field.errors.pattern.requiredPattern }} -->\r\n <ng-container *ngIf=\"field.errors.server\">{{field.errors.server}}</ng-container>\r\n </ng-container>\r\n </ng-container>\r\n</ng-container>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FieldValidatorComponent, decorators: [{
|
|
15
|
-
type: Component,
|
|
16
|
-
args: [{ selector: 'zek-field-validator, [zek-field-validator]', host: { '[class]': '"invalid-tooltip"' }, template: "<ng-container *ngIf=\"field\">\r\n <ng-container *ngIf=\"field.invalid && (field.dirty || field.touched || field.formDirective?.submitted)\">\r\n <ng-container *ngIf=\"field.errors\">\r\n <ng-container *ngIf=\"field.errors.required\">{{ 'Validation.Required' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.minlength\">{{ 'Validation.MinLengthFormat' | translate:{ value: field.errors.minlength.requiredLength } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.maxlength\">{{ 'Validation.MaxLengthFormat' | translate:{ value: field.errors.maxlength.requiredLength } }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.email\">{{ 'Validation.Pattern' | translate }}</ng-container>\r\n <ng-container *ngIf=\"field.errors.pattern\">{{ 'Validation.Pattern' | translate }}</ng-container><!-- {{ field.errors.pattern.requiredPattern }} -->\r\n <ng-container *ngIf=\"field.errors.server\">{{field.errors.server}}</ng-container>\r\n </ng-container>\r\n </ng-container>\r\n</ng-container>" }]
|
|
17
|
-
}], ctorParameters: function () { return []; }, propDecorators: { field: [{
|
|
18
|
-
type: Input
|
|
19
|
-
}] } });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtdmFsaWRhdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3play9zcmMvbGliL21vZHVsZXMvdmFsaWRhdG9yL2ZpZWxkLXZhbGlkYXRvci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy96ZWsvc3JjL2xpYi9tb2R1bGVzL3ZhbGlkYXRvci9maWVsZC12YWxpZGF0b3IuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFPakQsTUFBTSxPQUFPLHVCQUF1QjtJQUVoQyw0QkFBNEI7SUFFNUI7UUFDSSxJQUFJLElBQUksQ0FBQyxLQUFLO1lBQ1YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3ZDLENBQUM7O29IQVBRLHVCQUF1Qjt3R0FBdkIsdUJBQXVCLHdLQ1BwQyw2a0NBV2U7MkZESkYsdUJBQXVCO2tCQUxuQyxTQUFTOytCQUNJLDRDQUE0QyxRQUNoRCxFQUFFLFNBQVMsRUFBRSxtQkFBbUIsRUFBRTswRUFJL0IsS0FBSztzQkFBYixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuQENvb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iBmaWVsZC5lcnJvcnMubWlubGVuZ3RoLnJlcXVpcmVkTGVuZ3RoIH0gfX08L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImZpZWxkLmVycm9ycy5tYXhsZW5ndGhcIj57eyAnVmFsaWRhdGlvbi5NYXhMZW5ndGhGb3JtYXQnIHwgdHJhbnNsYXRlOnsgdmFsdWU6IGZpZWxkLmVycm9ycy5tYXhsZW5ndGgucmVxdWlyZWRMZW5ndGggfSB9fTwvbmctY29udGFpbmVyPlxyXG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZmllbGQuZXJyb3JzLmVtYWlsXCI+e3sgJ1ZhbGlkYXRpb24uUGF0dGVybicgfCB0cmFuc2xhdGUgfX08L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImZpZWxkLmVycm9ycy5wYXR0ZXJuXCI+e3sgJ1ZhbGlkYXRpb24uUGF0dGVybicgfCB0cmFuc2xhdGUgfX08L25nLWNvbnRhaW5lcj48IS0tIHt7IGZpZWxkLmVycm9ycy5wYXR0ZXJuLnJlcXVpcmVkUGF0dGVybiB9fSAtLT5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImZpZWxkLmVycm9ycy5zZXJ2ZXJcIj57e2ZpZWxkLmVycm9ycy5zZXJ2ZXJ9fTwvbmctY29udGFpbmVyPlxyXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxyXG4gICAgPC9uZy1jb250YWluZXI+XHJcbjwvbmctY29udGFpbmVyPiJdfQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class FieldValidatorComponent {
|
|
3
|
-
field: any;
|
|
4
|
-
constructor();
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldValidatorComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldValidatorComponent, "zek-field-validator, [zek-field-validator]", never, { "field": "field"; }, {}, never, never, false>;
|
|
7
|
-
}
|