@webilix/ngx-form-m3 0.0.30 → 0.0.31
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/fesm2022/webilix-ngx-form-m3.mjs +93 -93
- package/fesm2022/webilix-ngx-form-m3.mjs.map +1 -1
- package/index.d.ts +314 -5
- package/ngx-form-m3.css +1 -1
- package/package.json +9 -9
- package/lib/directives/auto-complete.directive.d.ts +0 -6
- package/lib/directives/auto-focus.directive.d.ts +0 -10
- package/lib/directives/auto-height.directive.d.ts +0 -18
- package/lib/directives/form-error.directive.d.ts +0 -13
- package/lib/directives/index.d.ts +0 -4
- package/lib/inputs/auto-complete/input-auto-complete.component.d.ts +0 -18
- package/lib/inputs/auto-complete/input-auto-complete.interface.d.ts +0 -11
- package/lib/inputs/bank-card/input-bank-card.component.d.ts +0 -19
- package/lib/inputs/bank-card/input-bank-card.interface.d.ts +0 -10
- package/lib/inputs/bank-sheba/input-bank-sheba.component.d.ts +0 -16
- package/lib/inputs/bank-sheba/input-bank-sheba.interface.d.ts +0 -10
- package/lib/inputs/checkbox/input-checkbox.component.d.ts +0 -15
- package/lib/inputs/checkbox/input-checkbox.interface.d.ts +0 -11
- package/lib/inputs/color/input-color.component.d.ts +0 -14
- package/lib/inputs/color/input-color.interface.d.ts +0 -9
- package/lib/inputs/component/input-component.component.d.ts +0 -18
- package/lib/inputs/component/input-component.interface.d.ts +0 -16
- package/lib/inputs/coordinates/input-coordinates.component.d.ts +0 -20
- package/lib/inputs/coordinates/input-coordinates.interface.d.ts +0 -16
- package/lib/inputs/date/input-date.component.d.ts +0 -18
- package/lib/inputs/date/input-date.interface.d.ts +0 -12
- package/lib/inputs/email/input-email.component.d.ts +0 -14
- package/lib/inputs/email/input-email.interface.d.ts +0 -10
- package/lib/inputs/file/input-file.component.d.ts +0 -15
- package/lib/inputs/file/input-file.interface.d.ts +0 -10
- package/lib/inputs/icon/input-icon.component.d.ts +0 -14
- package/lib/inputs/icon/input-icon.interface.d.ts +0 -9
- package/lib/inputs/index.d.ts +0 -49
- package/lib/inputs/input.component.d.ts +0 -134
- package/lib/inputs/input.info.d.ts +0 -10
- package/lib/inputs/input.interface.d.ts +0 -35
- package/lib/inputs/ip/input-ip.component.d.ts +0 -14
- package/lib/inputs/ip/input-ip.interface.d.ts +0 -10
- package/lib/inputs/mobile/input-mobile.component.d.ts +0 -15
- package/lib/inputs/mobile/input-mobile.interface.d.ts +0 -10
- package/lib/inputs/moment/input-moment.component.d.ts +0 -18
- package/lib/inputs/moment/input-moment.interface.d.ts +0 -12
- package/lib/inputs/multi-select/input-multi-select.component.d.ts +0 -22
- package/lib/inputs/multi-select/input-multi-select.interface.d.ts +0 -24
- package/lib/inputs/name/input-name.component.d.ts +0 -19
- package/lib/inputs/name/input-name.interface.d.ts +0 -15
- package/lib/inputs/number/input-number.component.d.ts +0 -22
- package/lib/inputs/number/input-number.interface.d.ts +0 -19
- package/lib/inputs/password/input-password.component.d.ts +0 -15
- package/lib/inputs/password/input-password.interface.d.ts +0 -15
- package/lib/inputs/price/input-price.component.d.ts +0 -22
- package/lib/inputs/price/input-price.interface.d.ts +0 -16
- package/lib/inputs/select/input-select.component.d.ts +0 -16
- package/lib/inputs/select/input-select.interface.d.ts +0 -15
- package/lib/inputs/text/input-text.component.d.ts +0 -14
- package/lib/inputs/text/input-text.interface.d.ts +0 -13
- package/lib/inputs/textarea/input-textarea.component.d.ts +0 -15
- package/lib/inputs/textarea/input-textarea.interface.d.ts +0 -15
- package/lib/inputs/url/input-url.component.d.ts +0 -14
- package/lib/inputs/url/input-url.interface.d.ts +0 -10
- package/lib/ngx-form.component.d.ts +0 -57
- package/lib/ngx-form.config.d.ts +0 -9
- package/lib/ngx-form.interface.d.ts +0 -45
- package/lib/pipes/index.d.ts +0 -2
- package/lib/pipes/input-error.pipe.d.ts +0 -8
- package/lib/pipes/multi-line.pipe.d.ts +0 -12
- package/lib/validators/bank/card.validator.d.ts +0 -2
- package/lib/validators/bank/sheba.validator.d.ts +0 -2
- package/lib/validators/count/max-count.validator.d.ts +0 -2
- package/lib/validators/count/min-count.validator.d.ts +0 -2
- package/lib/validators/date/max-date.validator.d.ts +0 -2
- package/lib/validators/date/min-date.validator.d.ts +0 -2
- package/lib/validators/index.d.ts +0 -12
- package/lib/validators/length.validator.d.ts +0 -2
- package/lib/validators/moment/max-moment.validator.d.ts +0 -2
- package/lib/validators/moment/min-moment.validator.d.ts +0 -2
- package/lib/validators/number/max-number.validator.d.ts +0 -2
- package/lib/validators/number/min-number.validator.d.ts +0 -2
- package/lib/validators/number/multiply-of.validator.d.ts +0 -2
- package/public-api.d.ts +0 -4
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { NgxCalendarService } from '@webilix/ngx-calendar-m3';
|
|
3
|
-
import { INgxFormValues } from '../../ngx-form.interface';
|
|
4
|
-
import { IInputConfig } from '../input.interface';
|
|
5
|
-
import { IInputDate } from './input-date.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class InputDateComponent {
|
|
8
|
-
private readonly ngxCalendarService;
|
|
9
|
-
formControl: FormControl;
|
|
10
|
-
input: IInputDate;
|
|
11
|
-
config: IInputConfig;
|
|
12
|
-
values: INgxFormValues;
|
|
13
|
-
isButtonDisabled: boolean;
|
|
14
|
-
constructor(ngxCalendarService: NgxCalendarService);
|
|
15
|
-
setDate(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputDate extends Omit<IInput, 'english' | 'value' | 'autoFocus'> {
|
|
4
|
-
readonly type: 'DATE';
|
|
5
|
-
readonly value?: Date | null;
|
|
6
|
-
readonly minDate?: Date | 'NOW';
|
|
7
|
-
readonly maxDate?: Date | 'NOW';
|
|
8
|
-
}
|
|
9
|
-
export declare class InputDateMethods extends InputMethods<IInputDate, Date | null> {
|
|
10
|
-
control(input: IInputDate, validators: ValidatorFn[]): FormControl<Date | null>;
|
|
11
|
-
value(value: any, input: IInputDate): Date | null;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { INgxFormValues } from '../../ngx-form.interface';
|
|
3
|
-
import { IInputConfig } from '../input.interface';
|
|
4
|
-
import { IInputEmail } from './input-email.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class InputEmailComponent {
|
|
7
|
-
formControl: FormControl;
|
|
8
|
-
input: IInputEmail;
|
|
9
|
-
config: IInputConfig;
|
|
10
|
-
values: INgxFormValues;
|
|
11
|
-
isButtonDisabled: boolean;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputEmailComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputEmailComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputEmail extends Omit<IInput, 'english'> {
|
|
4
|
-
readonly type: 'EMAIL';
|
|
5
|
-
readonly showIcon?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class InputEmailMethods extends InputMethods<IInputEmail, string | null> {
|
|
8
|
-
control(input: IInputEmail, validators: ValidatorFn[]): FormControl<string | null>;
|
|
9
|
-
value(value: any, input: IInputEmail): string | null;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { INgxFormValues } from '../../ngx-form.interface';
|
|
3
|
-
import { IInputConfig } from '../input.interface';
|
|
4
|
-
import { IInputFile } from './input-file.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class InputFileComponent {
|
|
7
|
-
formControl: FormControl;
|
|
8
|
-
input: IInputFile;
|
|
9
|
-
config: IInputConfig;
|
|
10
|
-
values: INgxFormValues;
|
|
11
|
-
isButtonDisabled: boolean;
|
|
12
|
-
setFile(event: Event | null): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputFileComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputFileComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputFile extends Omit<IInput, 'value' | 'english' | 'autoFocus'> {
|
|
4
|
-
readonly type: 'FILE';
|
|
5
|
-
readonly mimes?: 'IMAGE' | string[];
|
|
6
|
-
}
|
|
7
|
-
export declare class InputFileMethods extends InputMethods<IInputFile, File | null> {
|
|
8
|
-
control(input: IInputFile, validators: ValidatorFn[]): FormControl<File | null>;
|
|
9
|
-
value(value: any, input: IInputFile): File | null;
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { INgxFormValues } from '../../ngx-form.interface';
|
|
3
|
-
import { IInputConfig } from '../input.interface';
|
|
4
|
-
import { IInputIcon } from './input-icon.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class InputIconComponent {
|
|
7
|
-
formControl: FormControl;
|
|
8
|
-
input: IInputIcon;
|
|
9
|
-
config: IInputConfig;
|
|
10
|
-
values: INgxFormValues;
|
|
11
|
-
isButtonDisabled: boolean;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputIconComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputIconComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputIcon extends Omit<IInput, 'english'> {
|
|
4
|
-
readonly type: 'ICON';
|
|
5
|
-
}
|
|
6
|
-
export declare class InputIconMethods extends InputMethods<IInputIcon, string | null> {
|
|
7
|
-
control(input: IInputIcon, validators: ValidatorFn[]): FormControl<string | null>;
|
|
8
|
-
value(value: any, input: IInputIcon): string | null;
|
|
9
|
-
}
|
package/lib/inputs/index.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export * from './auto-complete/input-auto-complete.component';
|
|
2
|
-
export * from './auto-complete/input-auto-complete.interface';
|
|
3
|
-
export * from './bank-card/input-bank-card.component';
|
|
4
|
-
export * from './bank-card/input-bank-card.interface';
|
|
5
|
-
export * from './bank-sheba/input-bank-sheba.component';
|
|
6
|
-
export * from './bank-sheba/input-bank-sheba.interface';
|
|
7
|
-
export * from './checkbox/input-checkbox.component';
|
|
8
|
-
export * from './checkbox/input-checkbox.interface';
|
|
9
|
-
export * from './color/input-color.component';
|
|
10
|
-
export * from './color/input-color.interface';
|
|
11
|
-
export * from './component/input-component.component';
|
|
12
|
-
export * from './component/input-component.interface';
|
|
13
|
-
export * from './coordinates/input-coordinates.component';
|
|
14
|
-
export * from './coordinates/input-coordinates.interface';
|
|
15
|
-
export * from './date/input-date.component';
|
|
16
|
-
export * from './date/input-date.interface';
|
|
17
|
-
export * from './email/input-email.component';
|
|
18
|
-
export * from './email/input-email.interface';
|
|
19
|
-
export * from './file/input-file.component';
|
|
20
|
-
export * from './file/input-file.interface';
|
|
21
|
-
export * from './icon/input-icon.component';
|
|
22
|
-
export * from './icon/input-icon.interface';
|
|
23
|
-
export * from './ip/input-ip.component';
|
|
24
|
-
export * from './ip/input-ip.interface';
|
|
25
|
-
export * from './mobile/input-mobile.component';
|
|
26
|
-
export * from './mobile/input-mobile.interface';
|
|
27
|
-
export * from './moment/input-moment.component';
|
|
28
|
-
export * from './moment/input-moment.interface';
|
|
29
|
-
export * from './multi-select/input-multi-select.component';
|
|
30
|
-
export * from './multi-select/input-multi-select.interface';
|
|
31
|
-
export * from './name/input-name.component';
|
|
32
|
-
export * from './name/input-name.interface';
|
|
33
|
-
export * from './number/input-number.component';
|
|
34
|
-
export * from './number/input-number.interface';
|
|
35
|
-
export * from './password/input-password.component';
|
|
36
|
-
export * from './password/input-password.interface';
|
|
37
|
-
export * from './price/input-price.component';
|
|
38
|
-
export * from './price/input-price.interface';
|
|
39
|
-
export * from './select/input-select.component';
|
|
40
|
-
export * from './select/input-select.interface';
|
|
41
|
-
export * from './text/input-text.component';
|
|
42
|
-
export * from './text/input-text.interface';
|
|
43
|
-
export * from './textarea/input-textarea.component';
|
|
44
|
-
export * from './textarea/input-textarea.interface';
|
|
45
|
-
export * from './url/input-url.component';
|
|
46
|
-
export * from './url/input-url.interface';
|
|
47
|
-
export * from './input.component';
|
|
48
|
-
export * from './input.info';
|
|
49
|
-
export * from './input.interface';
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { INgxFormValues, NgxFormInputs } from '../ngx-form.interface';
|
|
4
|
-
import { IInputConfig } from '.';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class InputComponent implements OnInit, OnChanges {
|
|
7
|
-
formGroup: FormGroup;
|
|
8
|
-
input: NgxFormInputs;
|
|
9
|
-
config: IInputConfig;
|
|
10
|
-
values: INgxFormValues;
|
|
11
|
-
inputInfo: {
|
|
12
|
-
EMAIL: {
|
|
13
|
-
readonly title: string;
|
|
14
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
15
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
16
|
-
};
|
|
17
|
-
PASSWORD: {
|
|
18
|
-
readonly title: string;
|
|
19
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
20
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
21
|
-
};
|
|
22
|
-
URL: {
|
|
23
|
-
readonly title: string;
|
|
24
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
25
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
26
|
-
};
|
|
27
|
-
"BANK-CARD": {
|
|
28
|
-
readonly title: string;
|
|
29
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
30
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
31
|
-
};
|
|
32
|
-
"BANK-SHEBA": {
|
|
33
|
-
readonly title: string;
|
|
34
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
35
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
36
|
-
};
|
|
37
|
-
MOBILE: {
|
|
38
|
-
readonly title: string;
|
|
39
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
40
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
41
|
-
};
|
|
42
|
-
"AUTO-COMPLETE": {
|
|
43
|
-
readonly title: string;
|
|
44
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
45
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
46
|
-
};
|
|
47
|
-
CHECKBOX: {
|
|
48
|
-
readonly title: string;
|
|
49
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
50
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
51
|
-
};
|
|
52
|
-
COLOR: {
|
|
53
|
-
readonly title: string;
|
|
54
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
55
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
56
|
-
};
|
|
57
|
-
COMPONENT: {
|
|
58
|
-
readonly title: string;
|
|
59
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
60
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
61
|
-
};
|
|
62
|
-
COORDINATES: {
|
|
63
|
-
readonly title: string;
|
|
64
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
65
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
66
|
-
};
|
|
67
|
-
DATE: {
|
|
68
|
-
readonly title: string;
|
|
69
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
70
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
71
|
-
};
|
|
72
|
-
FILE: {
|
|
73
|
-
readonly title: string;
|
|
74
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
75
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
76
|
-
};
|
|
77
|
-
ICON: {
|
|
78
|
-
readonly title: string;
|
|
79
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
80
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
81
|
-
};
|
|
82
|
-
IP: {
|
|
83
|
-
readonly title: string;
|
|
84
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
85
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
86
|
-
};
|
|
87
|
-
MOMENT: {
|
|
88
|
-
readonly title: string;
|
|
89
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
90
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
91
|
-
};
|
|
92
|
-
"MULTI-SELECT": {
|
|
93
|
-
readonly title: string;
|
|
94
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
95
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
96
|
-
};
|
|
97
|
-
SELECT: {
|
|
98
|
-
readonly title: string;
|
|
99
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
100
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
101
|
-
};
|
|
102
|
-
NAME: {
|
|
103
|
-
readonly title: string;
|
|
104
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
105
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
106
|
-
};
|
|
107
|
-
NUMBER: {
|
|
108
|
-
readonly title: string;
|
|
109
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
110
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
111
|
-
};
|
|
112
|
-
PRICE: {
|
|
113
|
-
readonly title: string;
|
|
114
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
115
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
116
|
-
};
|
|
117
|
-
TEXT: {
|
|
118
|
-
readonly title: string;
|
|
119
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
120
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
121
|
-
};
|
|
122
|
-
TEXTAREA: {
|
|
123
|
-
readonly title: string;
|
|
124
|
-
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
125
|
-
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
injector: Injector;
|
|
129
|
-
isButtonDisabled: boolean;
|
|
130
|
-
ngOnInit(): void;
|
|
131
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
132
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
133
|
-
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>;
|
|
134
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
-
import { NgxFormInputs } from '../ngx-form.interface';
|
|
3
|
-
import { InputMethods } from './input.interface';
|
|
4
|
-
export declare const InputInfo: {
|
|
5
|
-
[key in NgxFormInputs['type']]: {
|
|
6
|
-
readonly title: string;
|
|
7
|
-
readonly methods: InputMethods<any, any>;
|
|
8
|
-
readonly component: ComponentType<any>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { FormControl, ValidatorFn } from '@angular/forms';
|
|
3
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
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
|
-
}
|
|
11
|
-
export interface IInput {
|
|
12
|
-
readonly name: string;
|
|
13
|
-
readonly title?: string;
|
|
14
|
-
readonly value?: string | null;
|
|
15
|
-
readonly hint?: string;
|
|
16
|
-
readonly description?: string;
|
|
17
|
-
readonly optional?: boolean;
|
|
18
|
-
readonly english?: boolean;
|
|
19
|
-
readonly autoFocus?: boolean;
|
|
20
|
-
readonly appearance?: MatFormFieldAppearance;
|
|
21
|
-
readonly button?: IInputButton;
|
|
22
|
-
readonly disableOn?: (values: INgxFormValues) => boolean;
|
|
23
|
-
readonly hideOn?: (values: INgxFormValues) => boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare abstract class InputMethods<I /** INPUT **/, V /** VALUE **/> {
|
|
26
|
-
abstract control(input: I, validators: ValidatorFn[]): FormControl<V>;
|
|
27
|
-
abstract value(value: any, input: I): V;
|
|
28
|
-
}
|
|
29
|
-
export interface IInputConfig {
|
|
30
|
-
readonly appearance: MatFormFieldAppearance;
|
|
31
|
-
readonly autoFocus?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare const INPUT_CONTROL: InjectionToken<FormControl>;
|
|
34
|
-
export declare const INPUT_TYPE: InjectionToken<any>;
|
|
35
|
-
export declare const INPUT_CONFIG: InjectionToken<IInputConfig>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { INgxFormValues } from '../../ngx-form.interface';
|
|
3
|
-
import { IInputConfig } from '../input.interface';
|
|
4
|
-
import { IInputIp } from './input-ip.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class InputIpComponent {
|
|
7
|
-
formControl: FormControl;
|
|
8
|
-
input: IInputIp;
|
|
9
|
-
config: IInputConfig;
|
|
10
|
-
values: INgxFormValues;
|
|
11
|
-
isButtonDisabled: boolean;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputIpComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputIpComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputIp extends Omit<IInput, 'english'> {
|
|
4
|
-
readonly type: 'IP';
|
|
5
|
-
readonly showIcon?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class InputIpMethods extends InputMethods<IInputIp, string | null> {
|
|
8
|
-
control(input: IInputIp, validators: ValidatorFn[]): FormControl<string | null>;
|
|
9
|
-
value(value: any, input: IInputIp): string | null;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { INgxFormValues } from '../../ngx-form.interface';
|
|
3
|
-
import { IInputConfig } from '../input.interface';
|
|
4
|
-
import { IInputMobile } from './input-mobile.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class InputMobileComponent {
|
|
7
|
-
formControl: FormControl;
|
|
8
|
-
input: IInputMobile;
|
|
9
|
-
config: IInputConfig;
|
|
10
|
-
values: INgxFormValues;
|
|
11
|
-
isButtonDisabled: boolean;
|
|
12
|
-
inputTransformFn: (value: any) => string;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputMobileComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputMobileComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputMobile extends Omit<IInput, 'english'> {
|
|
4
|
-
readonly type: 'MOBILE';
|
|
5
|
-
readonly showIcon?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class InputMobileMethods extends InputMethods<IInputMobile, string | null> {
|
|
8
|
-
control(input: IInputMobile, validators: ValidatorFn[]): FormControl<string | null>;
|
|
9
|
-
value(value: any, input: IInputMobile): string | null;
|
|
10
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { NgxCalendarService } from '@webilix/ngx-calendar-m3';
|
|
3
|
-
import { INgxFormValues } from '../../ngx-form.interface';
|
|
4
|
-
import { IInputConfig } from '../input.interface';
|
|
5
|
-
import { IInputMoment } from './input-moment.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class InputMomentComponent {
|
|
8
|
-
private readonly ngxCalendarService;
|
|
9
|
-
formControl: FormControl;
|
|
10
|
-
input: IInputMoment;
|
|
11
|
-
config: IInputConfig;
|
|
12
|
-
values: INgxFormValues;
|
|
13
|
-
isButtonDisabled: boolean;
|
|
14
|
-
constructor(ngxCalendarService: NgxCalendarService);
|
|
15
|
-
setMoment(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputMomentComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputMomentComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputMoment extends Omit<IInput, 'english' | 'value' | 'autoFocus'> {
|
|
4
|
-
readonly type: 'MOMENT';
|
|
5
|
-
readonly value?: Date | null;
|
|
6
|
-
readonly minDate?: Date | 'NOW';
|
|
7
|
-
readonly maxDate?: Date | 'NOW';
|
|
8
|
-
}
|
|
9
|
-
export declare class InputMomentMethods extends InputMethods<IInputMoment, Date | null> {
|
|
10
|
-
control(input: IInputMoment, validators: ValidatorFn[]): FormControl<Date | null>;
|
|
11
|
-
value(value: any, input: IInputMoment): Date | null;
|
|
12
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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 { IInputMultiSelect } from './input-multi-select.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class InputMultiSelectComponent implements OnInit {
|
|
8
|
-
listHeight: string;
|
|
9
|
-
formControl: FormControl;
|
|
10
|
-
input: IInputMultiSelect;
|
|
11
|
-
config: IInputConfig;
|
|
12
|
-
values: INgxFormValues;
|
|
13
|
-
isButtonDisabled: boolean;
|
|
14
|
-
ids: string[];
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
select(type: 'ALL' | 'NONE'): void;
|
|
17
|
-
selectGroup(index: number): void;
|
|
18
|
-
toggleValue(id: string): void;
|
|
19
|
-
getSelectValues(): string;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputMultiSelectComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputMultiSelectComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputMultiSelect extends Omit<IInput, 'value' | 'optional' | 'autoFocus'> {
|
|
4
|
-
readonly type: 'MULTI-SELECT';
|
|
5
|
-
readonly title: string;
|
|
6
|
-
readonly value?: string[] | null;
|
|
7
|
-
readonly options: {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
readonly title: string;
|
|
10
|
-
}[];
|
|
11
|
-
readonly groups?: {
|
|
12
|
-
readonly title: string;
|
|
13
|
-
readonly ids: string[];
|
|
14
|
-
}[];
|
|
15
|
-
readonly minCount?: number;
|
|
16
|
-
readonly maxCount?: number;
|
|
17
|
-
readonly listMaxHeight?: number;
|
|
18
|
-
readonly selectButtons?: boolean;
|
|
19
|
-
readonly view?: 'SELECT';
|
|
20
|
-
}
|
|
21
|
-
export declare class InputMultiSelectMethods extends InputMethods<IInputMultiSelect, string[] | null> {
|
|
22
|
-
control(input: IInputMultiSelect, validators: ValidatorFn[]): FormControl<string[] | null>;
|
|
23
|
-
value(value: any, input: IInputMultiSelect): string[] | null;
|
|
24
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 { IInputName } from './input-name.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class InputNameComponent implements OnInit {
|
|
8
|
-
formControl: FormControl;
|
|
9
|
-
input: IInputName;
|
|
10
|
-
config: IInputConfig;
|
|
11
|
-
values: INgxFormValues;
|
|
12
|
-
isButtonDisabled: boolean;
|
|
13
|
-
firstFormControl: FormControl;
|
|
14
|
-
lastFormControl: FormControl;
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
setName(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputNameComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputNameComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
interface IName {
|
|
4
|
-
readonly first: string;
|
|
5
|
-
readonly last: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IInputName extends Omit<IInput, 'value' | 'hint' | 'english' | 'description' | 'button'> {
|
|
8
|
-
readonly type: 'NAME';
|
|
9
|
-
readonly value?: IName | null;
|
|
10
|
-
}
|
|
11
|
-
export declare class InputNameMethods extends InputMethods<IInputName, IName | null> {
|
|
12
|
-
control(input: IInputName, validators: ValidatorFn[]): FormControl<IName | null>;
|
|
13
|
-
value(value: any, input: IInputName): IName | null;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 suffix?: string;
|
|
10
|
-
readonly multiplyOf?: number;
|
|
11
|
-
readonly allowNegatives?: boolean;
|
|
12
|
-
readonly fractionDigits?: boolean | number;
|
|
13
|
-
readonly showIcon?: boolean;
|
|
14
|
-
readonly showText?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class InputNumberMethods extends InputMethods<IInputNumber, number | null> {
|
|
17
|
-
control(input: IInputNumber, validators: ValidatorFn[]): FormControl<number | null>;
|
|
18
|
-
value(value: any, input: IInputNumber): number | null;
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { INgxFormValues } from '../../ngx-form.interface';
|
|
3
|
-
import { IInputConfig } from '../input.interface';
|
|
4
|
-
import { IInputPassword } from './input-password.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class InputPasswordComponent {
|
|
7
|
-
formControl: FormControl;
|
|
8
|
-
input: IInputPassword;
|
|
9
|
-
config: IInputConfig;
|
|
10
|
-
values: INgxFormValues;
|
|
11
|
-
isButtonDisabled: boolean;
|
|
12
|
-
showPassword: boolean;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputPasswordComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputPasswordComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputPassword extends Omit<IInput, 'english' | 'value'> {
|
|
4
|
-
readonly type: 'PASSWORD';
|
|
5
|
-
readonly verify?: {
|
|
6
|
-
readonly minLength: number;
|
|
7
|
-
readonly forceLowerCase?: boolean;
|
|
8
|
-
readonly forceUpperCase?: boolean;
|
|
9
|
-
readonly forceNumber?: boolean;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare class InputPasswordMethods extends InputMethods<IInputPassword, string | null> {
|
|
13
|
-
control(input: IInputPassword, validators: ValidatorFn[]): FormControl<string | null>;
|
|
14
|
-
value(value: any, input: IInputPassword): string | null;
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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 { IInputPrice } from './input-price.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class InputPriceComponent implements OnInit {
|
|
8
|
-
formControl: FormControl;
|
|
9
|
-
input: IInputPrice;
|
|
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<InputPriceComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputPriceComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
-
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
-
export interface IInputPrice extends Omit<IInput, 'value' | 'english'> {
|
|
4
|
-
readonly type: 'PRICE';
|
|
5
|
-
readonly value?: number | null;
|
|
6
|
-
readonly minimum?: number;
|
|
7
|
-
readonly maximum?: number;
|
|
8
|
-
readonly multiplyOf?: number;
|
|
9
|
-
readonly fractionDigits?: boolean | number;
|
|
10
|
-
readonly currency?: string;
|
|
11
|
-
readonly hideText?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare class InputPriceMethods extends InputMethods<IInputPrice, number | null> {
|
|
14
|
-
control(input: IInputPrice, validators: ValidatorFn[]): FormControl<number | null>;
|
|
15
|
-
value(value: any, input: IInputPrice): number | null;
|
|
16
|
-
}
|