@webilix/ngx-form-m3 0.0.8 → 0.0.10

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.
Files changed (29) hide show
  1. package/fesm2022/webilix-ngx-form-m3.mjs +352 -45
  2. package/fesm2022/webilix-ngx-form-m3.mjs.map +1 -1
  3. package/lib/inputs/color/input-color.component.d.ts +4 -1
  4. package/lib/inputs/component/input-component.component.d.ts +16 -0
  5. package/lib/inputs/component/input-component.interface.d.ts +15 -0
  6. package/lib/inputs/date/input-date.component.d.ts +4 -1
  7. package/lib/inputs/email/input-email.component.d.ts +4 -1
  8. package/lib/inputs/file/input-file.component.d.ts +4 -1
  9. package/lib/inputs/index.d.ts +4 -0
  10. package/lib/inputs/input.component.d.ts +17 -4
  11. package/lib/inputs/input.interface.d.ts +7 -0
  12. package/lib/inputs/mobile/input-mobile.component.d.ts +4 -1
  13. package/lib/inputs/moment/input-moment.component.d.ts +4 -1
  14. package/lib/inputs/name/input-name.component.d.ts +4 -1
  15. package/lib/inputs/name/input-name.interface.d.ts +1 -1
  16. package/lib/inputs/number/input-number.component.d.ts +22 -0
  17. package/lib/inputs/number/input-number.interface.d.ts +18 -0
  18. package/lib/inputs/password/input-password.component.d.ts +4 -1
  19. package/lib/inputs/select/input-select.component.d.ts +4 -1
  20. package/lib/inputs/text/input-text.component.d.ts +4 -1
  21. package/lib/inputs/textarea/input-textarea.component.d.ts +5 -2
  22. package/lib/inputs/url/input-url.component.d.ts +4 -1
  23. package/lib/ngx-form.component.d.ts +1 -0
  24. package/lib/ngx-form.interface.d.ts +6 -3
  25. package/lib/validators/index.d.ts +3 -0
  26. package/lib/validators/number/max-number.validator.d.ts +2 -0
  27. package/lib/validators/number/min-number.validator.d.ts +2 -0
  28. package/lib/validators/number/multiply-of.validator.d.ts +2 -0
  29. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputColor } from './input-color.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,6 +7,8 @@ export declare class InputColorComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputColor;
8
9
  config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<InputColorComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<InputColorComponent, "ng-component", never, {}, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputColorComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
11
14
  }
@@ -0,0 +1,16 @@
1
+ import { Injector } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { INgxFormValues } from '../../ngx-form.interface';
4
+ import { IInputConfig } from '../input.interface';
5
+ import { IInputComponent } from './input-component.interface';
6
+ import * as i0 from "@angular/core";
7
+ export declare class InputComponentComponent {
8
+ formControl: FormControl;
9
+ input: IInputComponent;
10
+ config: IInputConfig;
11
+ values: INgxFormValues;
12
+ isButtonDisabled: boolean;
13
+ injector: Injector;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputComponentComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponentComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
16
+ }
@@ -0,0 +1,15 @@
1
+ import { ValidatorFn, FormControl } from '@angular/forms';
2
+ import { ComponentType } from '@angular/cdk/portal';
3
+ import { InputMethods, IInput } from '../input.interface';
4
+ export interface IInputComponent extends Omit<IInput, 'value' | 'english' | 'autoFocus'> {
5
+ readonly type: 'COMPONENT';
6
+ readonly value?: any;
7
+ readonly component: ComponentType<any>;
8
+ readonly componentInputs?: {
9
+ [key: string]: any;
10
+ };
11
+ }
12
+ export declare class InputComponentMethods extends InputMethods<IInputComponent, any> {
13
+ control(input: IInputComponent, validators: ValidatorFn[]): FormControl<any>;
14
+ value(value: any, input: IInputComponent): any;
15
+ }
@@ -1,5 +1,6 @@
1
1
  import { FormControl } from '@angular/forms';
2
2
  import { NgxCalendarService } from '@webilix/ngx-calendar-m3';
3
+ import { INgxFormValues } from '../../ngx-form.interface';
3
4
  import { IInputConfig } from '../input.interface';
4
5
  import { IInputDate } from './input-date.interface';
5
6
  import * as i0 from "@angular/core";
@@ -8,8 +9,10 @@ export declare class InputDateComponent {
8
9
  formControl: FormControl;
9
10
  input: IInputDate;
10
11
  config: IInputConfig;
12
+ values: INgxFormValues;
13
+ isButtonDisabled: boolean;
11
14
  constructor(ngxCalendarService: NgxCalendarService);
12
15
  setDate(): void;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "ng-component", never, {}, {}, never, never, true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
15
18
  }
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputEmail } from './input-email.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,6 +7,8 @@ export declare class InputEmailComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputEmail;
8
9
  config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<InputEmailComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<InputEmailComponent, "ng-component", never, {}, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputEmailComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
11
14
  }
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputFile } from './input-file.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,7 +7,9 @@ export declare class InputFileComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputFile;
8
9
  config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
9
12
  setFile(event: Event | null): void;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputFileComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<InputFileComponent, "ng-component", never, {}, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputFileComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
12
15
  }
@@ -1,5 +1,7 @@
1
1
  export * from './color/input-color.component';
2
2
  export * from './color/input-color.interface';
3
+ export * from './component/input-component.component';
4
+ export * from './component/input-component.interface';
3
5
  export * from './date/input-date.component';
4
6
  export * from './date/input-date.interface';
5
7
  export * from './email/input-email.component';
@@ -12,6 +14,8 @@ export * from './moment/input-moment.component';
12
14
  export * from './moment/input-moment.interface';
13
15
  export * from './name/input-name.component';
14
16
  export * from './name/input-name.interface';
17
+ export * from './number/input-number.component';
18
+ export * from './number/input-number.interface';
15
19
  export * from './password/input-password.component';
16
20
  export * from './password/input-password.interface';
17
21
  export * from './select/input-select.component';
@@ -1,12 +1,13 @@
1
- import { Injector, OnInit } from '@angular/core';
1
+ import { Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
- import { NgxFormInputs } from '../ngx-form.interface';
3
+ import { INgxFormValues, NgxFormInputs } from '../ngx-form.interface';
4
4
  import { IInputConfig } from '.';
5
5
  import * as i0 from "@angular/core";
6
- export declare class InputComponent implements OnInit {
6
+ export declare class InputComponent implements OnInit, OnChanges {
7
7
  formGroup: FormGroup;
8
8
  input: NgxFormInputs;
9
9
  config: IInputConfig;
10
+ values: INgxFormValues;
10
11
  inputInfo: {
11
12
  EMAIL: {
12
13
  readonly title: string;
@@ -33,6 +34,11 @@ export declare class InputComponent implements OnInit {
33
34
  readonly methods: import("./input.interface").InputMethods<any, any>;
34
35
  readonly component: import("@angular/cdk/portal").ComponentType<any>;
35
36
  };
37
+ COMPONENT: {
38
+ readonly title: string;
39
+ readonly methods: import("./input.interface").InputMethods<any, any>;
40
+ readonly component: import("@angular/cdk/portal").ComponentType<any>;
41
+ };
36
42
  DATE: {
37
43
  readonly title: string;
38
44
  readonly methods: import("./input.interface").InputMethods<any, any>;
@@ -53,6 +59,11 @@ export declare class InputComponent implements OnInit {
53
59
  readonly methods: import("./input.interface").InputMethods<any, any>;
54
60
  readonly component: import("@angular/cdk/portal").ComponentType<any>;
55
61
  };
62
+ NUMBER: {
63
+ readonly title: string;
64
+ readonly methods: import("./input.interface").InputMethods<any, any>;
65
+ readonly component: import("@angular/cdk/portal").ComponentType<any>;
66
+ };
56
67
  SELECT: {
57
68
  readonly title: string;
58
69
  readonly methods: import("./input.interface").InputMethods<any, any>;
@@ -70,7 +81,9 @@ export declare class InputComponent implements OnInit {
70
81
  };
71
82
  };
72
83
  injector: Injector;
84
+ isButtonDisabled: boolean;
73
85
  ngOnInit(): void;
86
+ ngOnChanges(changes: SimpleChanges): void;
74
87
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "form-input", never, { "formGroup": { "alias": "formGroup"; "required": true; }; "input": { "alias": "input"; "required": true; }; "config": { "alias": "config"; "required": true; }; }, {}, never, never, true, never>;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "form-input", never, { "formGroup": { "alias": "formGroup"; "required": true; }; "input": { "alias": "input"; "required": true; }; "config": { "alias": "config"; "required": true; }; "values": { "alias": "values"; "required": true; }; }, {}, never, never, true, never>;
76
89
  }
@@ -2,6 +2,12 @@ import { InjectionToken } from '@angular/core';
2
2
  import { FormControl, ValidatorFn } from '@angular/forms';
3
3
  import { MatFormFieldAppearance } from '@angular/material/form-field';
4
4
  import { INgxFormValues } from '../ngx-form.interface';
5
+ export interface IInputButton {
6
+ readonly icon: string;
7
+ readonly color?: string;
8
+ readonly onClick: (values: INgxFormValues) => void;
9
+ readonly disableOn?: (values: INgxFormValues) => boolean;
10
+ }
5
11
  export interface IInput {
6
12
  readonly name: string;
7
13
  readonly title?: string;
@@ -12,6 +18,7 @@ export interface IInput {
12
18
  readonly english?: boolean;
13
19
  readonly autoFocus?: boolean;
14
20
  readonly appearance?: MatFormFieldAppearance;
21
+ readonly button?: IInputButton;
15
22
  readonly disableOn?: (values: INgxFormValues) => boolean;
16
23
  readonly hideOn?: (values: INgxFormValues) => boolean;
17
24
  }
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputMobile } from './input-mobile.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,7 +7,9 @@ export declare class InputMobileComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputMobile;
8
9
  config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
9
12
  inputTransformFn: (value: any) => string;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputMobileComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<InputMobileComponent, "ng-component", never, {}, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputMobileComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
12
15
  }
@@ -1,5 +1,6 @@
1
1
  import { FormControl } from '@angular/forms';
2
2
  import { NgxCalendarService } from '@webilix/ngx-calendar-m3';
3
+ import { INgxFormValues } from '../../ngx-form.interface';
3
4
  import { IInputConfig } from '../input.interface';
4
5
  import { IInputMoment } from './input-moment.interface';
5
6
  import * as i0 from "@angular/core";
@@ -8,8 +9,10 @@ export declare class InputMomentComponent {
8
9
  formControl: FormControl;
9
10
  input: IInputMoment;
10
11
  config: IInputConfig;
12
+ values: INgxFormValues;
13
+ isButtonDisabled: boolean;
11
14
  constructor(ngxCalendarService: NgxCalendarService);
12
15
  setMoment(): void;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<InputMomentComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<InputMomentComponent, "ng-component", never, {}, {}, never, never, true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputMomentComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
15
18
  }
@@ -1,5 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
+ import { INgxFormValues } from '../../ngx-form.interface';
3
4
  import { IInputConfig } from '../input.interface';
4
5
  import { IInputName } from './input-name.interface';
5
6
  import * as i0 from "@angular/core";
@@ -7,10 +8,12 @@ export declare class InputNameComponent implements OnInit {
7
8
  formControl: FormControl;
8
9
  input: IInputName;
9
10
  config: IInputConfig;
11
+ values: INgxFormValues;
12
+ isButtonDisabled: boolean;
10
13
  firstFormControl: FormControl;
11
14
  lastFormControl: FormControl;
12
15
  ngOnInit(): void;
13
16
  setName(): void;
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<InputNameComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<InputNameComponent, "ng-component", never, {}, {}, never, never, true, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputNameComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
16
19
  }
@@ -4,7 +4,7 @@ interface IName {
4
4
  readonly first: string;
5
5
  readonly last: string;
6
6
  }
7
- export interface IInputName extends Omit<IInput, 'value' | 'hint' | 'english' | 'description'> {
7
+ export interface IInputName extends Omit<IInput, 'value' | 'hint' | 'english' | 'description' | 'button'> {
8
8
  readonly type: 'NAME';
9
9
  readonly value?: IName | null;
10
10
  }
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { INgxFormValues } from '../../ngx-form.interface';
4
+ import { IInputConfig } from '../input.interface';
5
+ import { IInputNumber } from './input-number.interface';
6
+ import * as i0 from "@angular/core";
7
+ export declare class InputNumberComponent implements OnInit {
8
+ formControl: FormControl;
9
+ input: IInputNumber;
10
+ config: IInputConfig;
11
+ values: INgxFormValues;
12
+ isButtonDisabled: boolean;
13
+ maxLength: number;
14
+ hintText?: string;
15
+ isFocused: boolean;
16
+ inputTransformFn: (value: any) => string;
17
+ ngOnInit(): void;
18
+ setValue(input: string): void;
19
+ updateHint(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputNumberComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputNumberComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1,18 @@
1
+ import { ValidatorFn, FormControl } from '@angular/forms';
2
+ import { InputMethods, IInput } from '../input.interface';
3
+ export interface IInputNumber extends Omit<IInput, 'value' | 'english'> {
4
+ readonly type: 'NUMBER';
5
+ readonly title: string;
6
+ readonly value?: number | null;
7
+ readonly minimum?: number;
8
+ readonly maximum?: number;
9
+ readonly multiplyOf?: number;
10
+ readonly allowNegatives?: boolean;
11
+ readonly fractionDigits?: boolean | number;
12
+ readonly showIcon?: boolean;
13
+ readonly showText?: boolean;
14
+ }
15
+ export declare class InputNumberMethods extends InputMethods<IInputNumber, number | null> {
16
+ control(input: IInputNumber, validators: ValidatorFn[]): FormControl<number | null>;
17
+ value(value: any, input: IInputNumber): number | null;
18
+ }
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputPassword } from './input-password.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,7 +7,9 @@ export declare class InputPasswordComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputPassword;
8
9
  config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
9
12
  showPassword: boolean;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputPasswordComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<InputPasswordComponent, "ng-component", never, {}, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputPasswordComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
12
15
  }
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputSelect } from './input-select.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,7 +7,9 @@ export declare class InputSelectComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputSelect;
8
9
  config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
9
12
  getTitle(): string;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent, "ng-component", never, {}, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
12
15
  }
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputText } from './input-text.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,6 +7,8 @@ export declare class InputTextComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputText;
8
9
  config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "ng-component", never, {}, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
11
14
  }
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputTextarea } from './input-textarea.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,7 +7,9 @@ export declare class InputTextareaComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputTextarea;
8
9
  config: IInputConfig;
9
- focused: boolean;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
12
+ isFocused: boolean;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextareaComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<InputTextareaComponent, "ng-component", never, {}, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTextareaComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
12
15
  }
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { INgxFormValues } from '../../ngx-form.interface';
2
3
  import { IInputConfig } from '../input.interface';
3
4
  import { IInputUrl } from './input-url.interface';
4
5
  import * as i0 from "@angular/core";
@@ -6,6 +7,8 @@ export declare class InputUrlComponent {
6
7
  formControl: FormControl;
7
8
  input: IInputUrl;
8
9
  config: IInputConfig;
10
+ values: INgxFormValues;
11
+ isButtonDisabled: boolean;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<InputUrlComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<InputUrlComponent, "ng-component", never, {}, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputUrlComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
11
14
  }
@@ -31,6 +31,7 @@ export declare class NgxFormComponent implements OnInit, OnChanges, AfterViewIni
31
31
  protected formGroup: FormGroup;
32
32
  protected sections: ISection[];
33
33
  protected hiddenInputs: string[];
34
+ protected values: INgxFormValues;
34
35
  protected lastValues: INgxFormValues;
35
36
  protected lastSubmit?: Date;
36
37
  protected isMobile: boolean;
@@ -1,7 +1,8 @@
1
- import { FormGroup, NgForm } from '@angular/forms';
1
+ import { InjectionToken } from '@angular/core';
2
+ import { FormControl, FormGroup, NgForm } from '@angular/forms';
2
3
  import { MatFormFieldAppearance } from '@angular/material/form-field';
3
- import { IInputColor, IInputDate, IInputEmail, IInputFile, IInputMobile, IInputMoment, IInputName, IInputPassword, IInputSelect, IInputText, IInputTextarea, IInputUrl } from './inputs';
4
- export type NgxFormInputs = IInputColor | IInputDate | IInputEmail | IInputFile | IInputMobile | IInputMoment | IInputName | IInputPassword | IInputSelect | IInputText | IInputTextarea | IInputUrl;
4
+ import { IInputColor, IInputComponent, IInputDate, IInputEmail, IInputFile, IInputMobile, IInputMoment, IInputName, IInputNumber, IInputPassword, IInputSelect, IInputText, IInputTextarea, IInputUrl } from './inputs';
5
+ export type NgxFormInputs = IInputColor | IInputComponent | IInputDate | IInputEmail | IInputFile | IInputMobile | IInputMoment | IInputName | IInputNumber | IInputPassword | IInputSelect | IInputText | IInputTextarea | IInputUrl;
5
6
  type Inputs = NgxFormInputs | {
6
7
  readonly header: string;
7
8
  readonly input: NgxFormInputs;
@@ -39,4 +40,6 @@ export interface INgxFormButton {
39
40
  export interface INgxFormValues {
40
41
  [key: string]: any;
41
42
  }
43
+ export declare const NGX_FORM_CONTROL: InjectionToken<FormControl>;
44
+ export declare const NGX_FORM_INPUT: InjectionToken<any>;
42
45
  export {};
@@ -2,4 +2,7 @@ export * from './date/max-date.validator';
2
2
  export * from './date/min-date.validator';
3
3
  export * from './moment/max-moment.validator';
4
4
  export * from './moment/min-moment.validator';
5
+ export * from './number/max-number.validator';
6
+ export * from './number/min-number.validator';
7
+ export * from './number/multiply-of.validator';
5
8
  export * from './length.validator';
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare const MaxNumberValidator: (maximum: number) => ValidatorFn;
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare const MinNumberValidator: (minimum: number) => ValidatorFn;
@@ -0,0 +1,2 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare const MultiplyOfNumberValidator: (multiplyOf: number) => ValidatorFn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-form-m3",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "author": "Ali Amirnezhad",
5
5
  "description": "Persian form library for Angular and Material 3",
6
6
  "repository": {