zek 16.0.21 → 16.0.22

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.
@@ -64,4 +64,20 @@ export declare class RangeValidator extends AbstractValidatorDirective {
64
64
  static ɵfac: i0.ɵɵFactoryDeclaration<RangeValidator, never>;
65
65
  static ɵdir: i0.ɵɵDirectiveDeclaration<RangeValidator, "input[type=number][range][formControlName],input[type=number][range][formControl],input[type=number][range][ngModel]", never, { "range": { "alias": "range"; "required": false; }; }, {}, never, never, false, never>;
66
66
  }
67
+ /**
68
+ * @description
69
+ * Provider which adds `MatchValidator` to the `NG_VALIDATORS` multi-provider list.
70
+ */
71
+ export declare const MATCH_VALIDATOR: any;
72
+ export declare class MatchValidator extends AbstractValidatorDirective {
73
+ equals?: string | null;
74
+ /** @internal */
75
+ inputName: string;
76
+ /** @internal */
77
+ normalizeInput: (input: string) => string;
78
+ /** @internal */
79
+ createValidator: (target: string) => ValidatorFn;
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchValidator, never>;
81
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatchValidator, "input[match][formControlName],input[match][formControl],input[match][ngModel]", never, { "equals": { "alias": "equals"; "required": false; }; }, {}, never, never, false, never>;
82
+ }
67
83
  export {};
@@ -5,29 +5,51 @@ import { AbstractControl, ValidationErrors, ValidatorFn } from "@angular/forms";
5
5
  export declare function nullValidator(control: AbstractControl): ValidationErrors | null;
6
6
  export declare class Validators {
7
7
  /**
8
- * @description
9
- * Validator that requires the control's value to be less than or equal to the provided number.
10
- *
11
- * @usageNotes
12
- *
13
- * ### Validate against a range 0 - 15
14
- *
15
- * ```typescript
16
- * const control = new FormControl(16, Validators.max([0,15]));
17
- *
18
- * console.log(control.errors); // {range: {min: 0, max: 15, actual: 16}}
19
- * ```
20
- *
21
- * @returns A validator function that returns an error map with the
22
- * `range` property if the validation check fails, otherwise `null`.
23
- *
24
- * @see `updateValueAndValidity()`
25
- *
26
- */
8
+ * @description
9
+ * Validator that requires the control's value to be less than or equal to the provided number.
10
+ *
11
+ * @usageNotes
12
+ *
13
+ * ### Validate against a range 0 - 15
14
+ *
15
+ * ```typescript
16
+ * const control = new FormControl(16, Validators.max([0,15]));
17
+ *
18
+ * console.log(control.errors); // {range: {min: 0, max: 15, actual: 16}}
19
+ * ```
20
+ *
21
+ * @returns A validator function that returns an error map with the
22
+ * `range` property if the validation check fails, otherwise `null`.
23
+ *
24
+ * @see `updateValueAndValidity()`
25
+ *
26
+ */
27
27
  static range(min: number, max: number): ValidatorFn;
28
+ /**
29
+ * @description
30
+ * Validator that requires the control's value to be less than or equal to the provided number.
31
+ *
32
+ * @usageNotes
33
+ *
34
+ * ### Validate against a range 0 - 15
35
+ *
36
+ * ```typescript
37
+ * const control = new FormControl(16, Validators.max([0,15]));
38
+ *
39
+ * console.log(control.errors); // {range: {min: 0, max: 15, actual: 16}}
40
+ * ```
41
+ *
42
+ * @returns A validator function that returns an error map with the
43
+ * `range` property if the validation check fails, otherwise `null`.
44
+ *
45
+ * @see `updateValueAndValidity()`
46
+ *
47
+ */
48
+ static match(value: string): ValidatorFn;
28
49
  }
29
50
  /**
30
51
  * Validator that requires the control's value to be between provided numbers.
31
52
  * See `Validators.range` for additional information.
32
53
  */
33
54
  export declare function rangeValidator(range: Array<number>): ValidatorFn;
55
+ export declare function matchValidator(target: string): ValidatorFn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zek",
3
- "version": "16.0.21",
3
+ "version": "16.0.22",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0"