@webilix/ngx-form-m3 0.0.22 → 0.0.24
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/README.md +0 -0
- package/fesm2022/webilix-ngx-form-m3.mjs +313 -191
- package/fesm2022/webilix-ngx-form-m3.mjs.map +1 -1
- package/lib/inputs/bank-card/input-bank-card.component.d.ts +19 -0
- package/lib/inputs/bank-card/input-bank-card.interface.d.ts +10 -0
- package/lib/inputs/bank-sheba/input-bank-sheba.component.d.ts +16 -0
- package/lib/inputs/bank-sheba/input-bank-sheba.interface.d.ts +10 -0
- package/lib/inputs/index.d.ts +4 -0
- package/lib/inputs/input.component.d.ts +30 -20
- package/lib/ngx-form.interface.d.ts +2 -2
- package/lib/validators/bank/card.validator.d.ts +2 -0
- package/lib/validators/bank/sheba.validator.d.ts +2 -0
- package/lib/validators/index.d.ts +2 -0
- package/ngx-form-m3.css +15 -0
- package/package.json +8 -8
|
@@ -0,0 +1,19 @@
|
|
|
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 { IInputBankCard } from './input-bank-card.interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class InputBankCardComponent implements OnInit {
|
|
8
|
+
formControl: FormControl;
|
|
9
|
+
input: IInputBankCard;
|
|
10
|
+
config: IInputConfig;
|
|
11
|
+
values: INgxFormValues;
|
|
12
|
+
isButtonDisabled: boolean;
|
|
13
|
+
bank: string;
|
|
14
|
+
inputTransformFn: (value: any) => string;
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
setBank(card: string): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputBankCardComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputBankCardComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
+
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
+
export interface IInputBankCard extends Omit<IInput, 'english'> {
|
|
4
|
+
readonly type: 'BANK-CARD';
|
|
5
|
+
readonly hideBank?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class InputBankCardMethods extends InputMethods<IInputBankCard, string | null> {
|
|
8
|
+
control(input: IInputBankCard, validators: ValidatorFn[]): FormControl<string | null>;
|
|
9
|
+
value(value: any, input: IInputBankCard): string | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { INgxFormValues } from '../../ngx-form.interface';
|
|
3
|
+
import { IInputConfig } from '../input.interface';
|
|
4
|
+
import { IInputBankSheba } from './input-bank-sheba.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class InputBankShebaComponent {
|
|
7
|
+
formControl: FormControl;
|
|
8
|
+
input: IInputBankSheba;
|
|
9
|
+
config: IInputConfig;
|
|
10
|
+
values: INgxFormValues;
|
|
11
|
+
isButtonDisabled: boolean;
|
|
12
|
+
bank: string;
|
|
13
|
+
inputTransformFn: (value: any) => string;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputBankShebaComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputBankShebaComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValidatorFn, FormControl } from '@angular/forms';
|
|
2
|
+
import { InputMethods, IInput } from '../input.interface';
|
|
3
|
+
export interface IInputBankSheba extends Omit<IInput, 'english'> {
|
|
4
|
+
readonly type: 'BANK-SHEBA';
|
|
5
|
+
readonly hideBank?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class InputBankShebaMethods extends InputMethods<IInputBankSheba, string | null> {
|
|
8
|
+
control(input: IInputBankSheba, validators: ValidatorFn[]): FormControl<string | null>;
|
|
9
|
+
value(value: any, input: IInputBankSheba): string | null;
|
|
10
|
+
}
|
package/lib/inputs/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from './auto-complete/input-auto-complete.component';
|
|
2
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';
|
|
3
7
|
export * from './checkbox/input-checkbox.component';
|
|
4
8
|
export * from './checkbox/input-checkbox.interface';
|
|
5
9
|
export * from './color/input-color.component';
|
|
@@ -12,102 +12,112 @@ export declare class InputComponent implements OnInit, OnChanges {
|
|
|
12
12
|
EMAIL: {
|
|
13
13
|
readonly title: string;
|
|
14
14
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
15
|
-
readonly component: import("@angular/cdk/
|
|
15
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
16
16
|
};
|
|
17
17
|
PASSWORD: {
|
|
18
18
|
readonly title: string;
|
|
19
19
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
20
|
-
readonly component: import("@angular/cdk/
|
|
20
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
21
21
|
};
|
|
22
22
|
URL: {
|
|
23
23
|
readonly title: string;
|
|
24
24
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
25
|
-
readonly component: import("@angular/cdk/
|
|
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>;
|
|
26
36
|
};
|
|
27
37
|
MOBILE: {
|
|
28
38
|
readonly title: string;
|
|
29
39
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
30
|
-
readonly component: import("@angular/cdk/
|
|
40
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
31
41
|
};
|
|
32
42
|
"AUTO-COMPLETE": {
|
|
33
43
|
readonly title: string;
|
|
34
44
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
35
|
-
readonly component: import("@angular/cdk/
|
|
45
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
36
46
|
};
|
|
37
47
|
CHECKBOX: {
|
|
38
48
|
readonly title: string;
|
|
39
49
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
40
|
-
readonly component: import("@angular/cdk/
|
|
50
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
41
51
|
};
|
|
42
52
|
COLOR: {
|
|
43
53
|
readonly title: string;
|
|
44
54
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
45
|
-
readonly component: import("@angular/cdk/
|
|
55
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
46
56
|
};
|
|
47
57
|
COMPONENT: {
|
|
48
58
|
readonly title: string;
|
|
49
59
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
50
|
-
readonly component: import("@angular/cdk/
|
|
60
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
51
61
|
};
|
|
52
62
|
COORDINATES: {
|
|
53
63
|
readonly title: string;
|
|
54
64
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
55
|
-
readonly component: import("@angular/cdk/
|
|
65
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
56
66
|
};
|
|
57
67
|
DATE: {
|
|
58
68
|
readonly title: string;
|
|
59
69
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
60
|
-
readonly component: import("@angular/cdk/
|
|
70
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
61
71
|
};
|
|
62
72
|
FILE: {
|
|
63
73
|
readonly title: string;
|
|
64
74
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
65
|
-
readonly component: import("@angular/cdk/
|
|
75
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
66
76
|
};
|
|
67
77
|
ICON: {
|
|
68
78
|
readonly title: string;
|
|
69
79
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
70
|
-
readonly component: import("@angular/cdk/
|
|
80
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
71
81
|
};
|
|
72
82
|
IP: {
|
|
73
83
|
readonly title: string;
|
|
74
84
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
75
|
-
readonly component: import("@angular/cdk/
|
|
85
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
76
86
|
};
|
|
77
87
|
MOMENT: {
|
|
78
88
|
readonly title: string;
|
|
79
89
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
80
|
-
readonly component: import("@angular/cdk/
|
|
90
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
81
91
|
};
|
|
82
92
|
"MULTI-SELECT": {
|
|
83
93
|
readonly title: string;
|
|
84
94
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
85
|
-
readonly component: import("@angular/cdk/
|
|
95
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
86
96
|
};
|
|
87
97
|
NAME: {
|
|
88
98
|
readonly title: string;
|
|
89
99
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
90
|
-
readonly component: import("@angular/cdk/
|
|
100
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
91
101
|
};
|
|
92
102
|
NUMBER: {
|
|
93
103
|
readonly title: string;
|
|
94
104
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
95
|
-
readonly component: import("@angular/cdk/
|
|
105
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
96
106
|
};
|
|
97
107
|
SELECT: {
|
|
98
108
|
readonly title: string;
|
|
99
109
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
100
|
-
readonly component: import("@angular/cdk/
|
|
110
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
101
111
|
};
|
|
102
112
|
TEXT: {
|
|
103
113
|
readonly title: string;
|
|
104
114
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
105
|
-
readonly component: import("@angular/cdk/
|
|
115
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
106
116
|
};
|
|
107
117
|
TEXTAREA: {
|
|
108
118
|
readonly title: string;
|
|
109
119
|
readonly methods: import("./input.interface").InputMethods<any, any>;
|
|
110
|
-
readonly component: import("@angular/cdk/
|
|
120
|
+
readonly component: import("@angular/cdk/overlay").ComponentType<any>;
|
|
111
121
|
};
|
|
112
122
|
};
|
|
113
123
|
injector: Injector;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { FormControl, FormGroup, NgForm } from '@angular/forms';
|
|
3
3
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
4
|
-
import { IInputAutoComplete, IInputCheckbox, IInputColor, IInputComponent, IInputCoordinates, IInputDate, IInputEmail, IInputFile, IInputIcon, IInputIp, IInputMobile, IInputMoment, IInputMultiSelect, IInputName, IInputNumber, IInputPassword, IInputSelect, IInputText, IInputTextarea, IInputUrl } from './inputs';
|
|
5
|
-
export type NgxFormInputs = IInputAutoComplete | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputIp | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputPassword | IInputSelect | IInputText | IInputTextarea | IInputUrl;
|
|
4
|
+
import { IInputAutoComplete, IInputBankCard, IInputBankSheba, IInputCheckbox, IInputColor, IInputComponent, IInputCoordinates, IInputDate, IInputEmail, IInputFile, IInputIcon, IInputIp, IInputMobile, IInputMoment, IInputMultiSelect, IInputName, IInputNumber, IInputPassword, IInputSelect, IInputText, IInputTextarea, IInputUrl } from './inputs';
|
|
5
|
+
export type NgxFormInputs = IInputAutoComplete | IInputBankCard | IInputBankSheba | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputIp | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputPassword | IInputSelect | IInputText | IInputTextarea | IInputUrl;
|
|
6
6
|
type Inputs = NgxFormInputs | {
|
|
7
7
|
readonly header: string;
|
|
8
8
|
readonly input: NgxFormInputs;
|
package/ngx-form-m3.css
CHANGED
|
@@ -59,6 +59,21 @@
|
|
|
59
59
|
cursor: default;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
/* INPUTS: BANK-CARD */
|
|
63
|
+
.ngx-helper-form-m3-bank-card-input {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
width: 100%;
|
|
67
|
+
|
|
68
|
+
.bank {
|
|
69
|
+
font-size: 80%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
input {
|
|
73
|
+
flex: 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
62
77
|
/* INPUTS: CHECKBOX */
|
|
63
78
|
.ngx-helper-form-m3-checkbox-input {
|
|
64
79
|
display: inline-flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webilix/ngx-form-m3",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"author": "Ali Amirnezhad",
|
|
5
5
|
"description": "Persian form library for Angular and Material 3",
|
|
6
6
|
"repository": {
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/webilix/ngx-form-m3#readme",
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@angular/common": ">=19.
|
|
24
|
-
"@angular/core": ">=19.
|
|
25
|
-
"@angular/forms": ">=19.
|
|
26
|
-
"@angular/material": ">=19.
|
|
27
|
-
"@webilix/helper-library": ">=6.
|
|
23
|
+
"@angular/common": ">=19.2.4",
|
|
24
|
+
"@angular/core": ">=19.2.4",
|
|
25
|
+
"@angular/forms": ">=19.2.4",
|
|
26
|
+
"@angular/material": ">=19.2.7",
|
|
27
|
+
"@webilix/helper-library": ">=6.1.1",
|
|
28
28
|
"@webilix/jalali-date-time": ">=2.0.5",
|
|
29
|
-
"@webilix/ngx-calendar-m3": ">=0.0.
|
|
30
|
-
"@webilix/ngx-helper-m3": ">=0.0.
|
|
29
|
+
"@webilix/ngx-calendar-m3": ">=0.0.11",
|
|
30
|
+
"@webilix/ngx-helper-m3": ">=0.0.24",
|
|
31
31
|
"ngx-mask": ">=19.0.6"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|