@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.
Files changed (80) hide show
  1. package/fesm2022/webilix-ngx-form-m3.mjs +93 -93
  2. package/fesm2022/webilix-ngx-form-m3.mjs.map +1 -1
  3. package/index.d.ts +314 -5
  4. package/ngx-form-m3.css +1 -1
  5. package/package.json +9 -9
  6. package/lib/directives/auto-complete.directive.d.ts +0 -6
  7. package/lib/directives/auto-focus.directive.d.ts +0 -10
  8. package/lib/directives/auto-height.directive.d.ts +0 -18
  9. package/lib/directives/form-error.directive.d.ts +0 -13
  10. package/lib/directives/index.d.ts +0 -4
  11. package/lib/inputs/auto-complete/input-auto-complete.component.d.ts +0 -18
  12. package/lib/inputs/auto-complete/input-auto-complete.interface.d.ts +0 -11
  13. package/lib/inputs/bank-card/input-bank-card.component.d.ts +0 -19
  14. package/lib/inputs/bank-card/input-bank-card.interface.d.ts +0 -10
  15. package/lib/inputs/bank-sheba/input-bank-sheba.component.d.ts +0 -16
  16. package/lib/inputs/bank-sheba/input-bank-sheba.interface.d.ts +0 -10
  17. package/lib/inputs/checkbox/input-checkbox.component.d.ts +0 -15
  18. package/lib/inputs/checkbox/input-checkbox.interface.d.ts +0 -11
  19. package/lib/inputs/color/input-color.component.d.ts +0 -14
  20. package/lib/inputs/color/input-color.interface.d.ts +0 -9
  21. package/lib/inputs/component/input-component.component.d.ts +0 -18
  22. package/lib/inputs/component/input-component.interface.d.ts +0 -16
  23. package/lib/inputs/coordinates/input-coordinates.component.d.ts +0 -20
  24. package/lib/inputs/coordinates/input-coordinates.interface.d.ts +0 -16
  25. package/lib/inputs/date/input-date.component.d.ts +0 -18
  26. package/lib/inputs/date/input-date.interface.d.ts +0 -12
  27. package/lib/inputs/email/input-email.component.d.ts +0 -14
  28. package/lib/inputs/email/input-email.interface.d.ts +0 -10
  29. package/lib/inputs/file/input-file.component.d.ts +0 -15
  30. package/lib/inputs/file/input-file.interface.d.ts +0 -10
  31. package/lib/inputs/icon/input-icon.component.d.ts +0 -14
  32. package/lib/inputs/icon/input-icon.interface.d.ts +0 -9
  33. package/lib/inputs/index.d.ts +0 -49
  34. package/lib/inputs/input.component.d.ts +0 -134
  35. package/lib/inputs/input.info.d.ts +0 -10
  36. package/lib/inputs/input.interface.d.ts +0 -35
  37. package/lib/inputs/ip/input-ip.component.d.ts +0 -14
  38. package/lib/inputs/ip/input-ip.interface.d.ts +0 -10
  39. package/lib/inputs/mobile/input-mobile.component.d.ts +0 -15
  40. package/lib/inputs/mobile/input-mobile.interface.d.ts +0 -10
  41. package/lib/inputs/moment/input-moment.component.d.ts +0 -18
  42. package/lib/inputs/moment/input-moment.interface.d.ts +0 -12
  43. package/lib/inputs/multi-select/input-multi-select.component.d.ts +0 -22
  44. package/lib/inputs/multi-select/input-multi-select.interface.d.ts +0 -24
  45. package/lib/inputs/name/input-name.component.d.ts +0 -19
  46. package/lib/inputs/name/input-name.interface.d.ts +0 -15
  47. package/lib/inputs/number/input-number.component.d.ts +0 -22
  48. package/lib/inputs/number/input-number.interface.d.ts +0 -19
  49. package/lib/inputs/password/input-password.component.d.ts +0 -15
  50. package/lib/inputs/password/input-password.interface.d.ts +0 -15
  51. package/lib/inputs/price/input-price.component.d.ts +0 -22
  52. package/lib/inputs/price/input-price.interface.d.ts +0 -16
  53. package/lib/inputs/select/input-select.component.d.ts +0 -16
  54. package/lib/inputs/select/input-select.interface.d.ts +0 -15
  55. package/lib/inputs/text/input-text.component.d.ts +0 -14
  56. package/lib/inputs/text/input-text.interface.d.ts +0 -13
  57. package/lib/inputs/textarea/input-textarea.component.d.ts +0 -15
  58. package/lib/inputs/textarea/input-textarea.interface.d.ts +0 -15
  59. package/lib/inputs/url/input-url.component.d.ts +0 -14
  60. package/lib/inputs/url/input-url.interface.d.ts +0 -10
  61. package/lib/ngx-form.component.d.ts +0 -57
  62. package/lib/ngx-form.config.d.ts +0 -9
  63. package/lib/ngx-form.interface.d.ts +0 -45
  64. package/lib/pipes/index.d.ts +0 -2
  65. package/lib/pipes/input-error.pipe.d.ts +0 -8
  66. package/lib/pipes/multi-line.pipe.d.ts +0 -12
  67. package/lib/validators/bank/card.validator.d.ts +0 -2
  68. package/lib/validators/bank/sheba.validator.d.ts +0 -2
  69. package/lib/validators/count/max-count.validator.d.ts +0 -2
  70. package/lib/validators/count/min-count.validator.d.ts +0 -2
  71. package/lib/validators/date/max-date.validator.d.ts +0 -2
  72. package/lib/validators/date/min-date.validator.d.ts +0 -2
  73. package/lib/validators/index.d.ts +0 -12
  74. package/lib/validators/length.validator.d.ts +0 -2
  75. package/lib/validators/moment/max-moment.validator.d.ts +0 -2
  76. package/lib/validators/moment/min-moment.validator.d.ts +0 -2
  77. package/lib/validators/number/max-number.validator.d.ts +0 -2
  78. package/lib/validators/number/min-number.validator.d.ts +0 -2
  79. package/lib/validators/number/multiply-of.validator.d.ts +0 -2
  80. package/public-api.d.ts +0 -4
package/index.d.ts CHANGED
@@ -1,5 +1,314 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@webilix/ngx-form-m3" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, EnvironmentProviders, OnInit, OnChanges, AfterViewInit, EventEmitter, SimpleChanges } from '@angular/core';
3
+ import { FormGroup, NgForm, FormControl } from '@angular/forms';
4
+ import { Router } from '@angular/router';
5
+ import { MatFormFieldAppearance } from '@angular/material/form-field';
6
+ import { ComponentType } from '@angular/cdk/portal';
7
+
8
+ type NgxFormInputs = IInputAutoComplete | IInputBankCard | IInputBankSheba | IInputCheckbox | IInputColor | IInputComponent | IInputCoordinates | IInputDate | IInputEmail | IInputFile | IInputIcon | IInputIp | IInputMobile | IInputMoment | IInputMultiSelect | IInputName | IInputNumber | IInputPassword | IInputPrice | IInputSelect | IInputText | IInputTextarea | IInputUrl;
9
+ type Inputs = NgxFormInputs | {
10
+ readonly header: string;
11
+ readonly input: NgxFormInputs;
12
+ } | {
13
+ readonly header?: string;
14
+ readonly inputs: NgxFormInputs[];
15
+ readonly flex?: number[];
16
+ };
17
+ interface INgxFormColumn {
18
+ readonly header?: string;
19
+ readonly rows: Inputs[];
20
+ }
21
+ interface INgxForm {
22
+ readonly submit: string;
23
+ readonly inputs: (Inputs | {
24
+ readonly header?: string;
25
+ readonly columns: INgxFormColumn[];
26
+ readonly flex?: number[];
27
+ })[];
28
+ readonly buttons?: INgxFormButton[];
29
+ readonly mobileView?: boolean;
30
+ readonly appearance?: MatFormFieldAppearance;
31
+ updateValues?: (values: INgxFormValues) => {
32
+ [key: string]: any;
33
+ };
34
+ }
35
+ interface INgxFormInit {
36
+ readonly formGroup?: FormGroup;
37
+ readonly ngForm?: NgForm;
38
+ }
39
+ interface INgxFormButton {
40
+ readonly title: string;
41
+ readonly action: string[] | (() => void);
42
+ }
43
+ interface INgxFormValues {
44
+ [key: string]: any;
45
+ }
46
+ declare const NGX_FORM_CONTROL: InjectionToken<FormControl>;
47
+ declare const NGX_FORM_INPUT: InjectionToken<IInputComponent>;
48
+
49
+ interface IInputButton {
50
+ readonly icon: string;
51
+ readonly color?: string;
52
+ readonly onClick: (values: INgxFormValues) => void;
53
+ readonly disableOn?: (values: INgxFormValues) => boolean;
54
+ }
55
+ interface IInput {
56
+ readonly name: string;
57
+ readonly title?: string;
58
+ readonly value?: string | null;
59
+ readonly hint?: string;
60
+ readonly description?: string;
61
+ readonly optional?: boolean;
62
+ readonly english?: boolean;
63
+ readonly autoFocus?: boolean;
64
+ readonly appearance?: MatFormFieldAppearance;
65
+ readonly button?: IInputButton;
66
+ readonly disableOn?: (values: INgxFormValues) => boolean;
67
+ readonly hideOn?: (values: INgxFormValues) => boolean;
68
+ }
69
+ interface IInputConfig {
70
+ readonly appearance: MatFormFieldAppearance;
71
+ readonly autoFocus?: string;
72
+ }
73
+
74
+ interface IInputAutoComplete extends IInput {
75
+ readonly type: 'AUTO-COMPLETE';
76
+ readonly title: string;
77
+ readonly options: string[];
78
+ }
79
+
80
+ interface IInputBankCard extends Omit<IInput, 'english'> {
81
+ readonly type: 'BANK-CARD';
82
+ readonly hideBank?: boolean;
83
+ }
84
+
85
+ interface IInputBankSheba extends Omit<IInput, 'english'> {
86
+ readonly type: 'BANK-SHEBA';
87
+ readonly hideBank?: boolean;
88
+ }
89
+
90
+ interface IInputCheckbox extends Omit<IInput, 'title' | 'value' | 'optional' | 'autoFocus'> {
91
+ readonly type: 'CHECKBOX';
92
+ readonly message: string;
93
+ readonly value?: boolean;
94
+ }
95
+
96
+ interface IInputColor extends Omit<IInput, 'english' | 'autoFocus'> {
97
+ readonly type: 'COLOR';
98
+ }
99
+
100
+ interface IInputComponent extends Omit<IInput, 'value' | 'english' | 'autoFocus'> {
101
+ readonly type: 'COMPONENT';
102
+ readonly value?: any;
103
+ readonly component: ComponentType<any>;
104
+ readonly componentInputs?: {
105
+ [key: string]: any;
106
+ };
107
+ readonly zeroPadding?: boolean;
108
+ }
109
+
110
+ interface ICoordinates {
111
+ latitude: number;
112
+ longitude: number;
113
+ }
114
+ interface IInputCoordinates extends Omit<IInput, 'value' | 'english' | 'autoFocus'> {
115
+ readonly type: 'COORDINATES';
116
+ readonly value?: ICoordinates | null;
117
+ readonly center?: ICoordinates;
118
+ readonly zoom?: number;
119
+ }
120
+
121
+ interface IInputDate extends Omit<IInput, 'english' | 'value' | 'autoFocus'> {
122
+ readonly type: 'DATE';
123
+ readonly value?: Date | null;
124
+ readonly minDate?: Date | 'NOW';
125
+ readonly maxDate?: Date | 'NOW';
126
+ }
127
+
128
+ interface IInputEmail extends Omit<IInput, 'english'> {
129
+ readonly type: 'EMAIL';
130
+ readonly showIcon?: boolean;
131
+ }
132
+
133
+ interface IInputFile extends Omit<IInput, 'value' | 'english' | 'autoFocus'> {
134
+ readonly type: 'FILE';
135
+ readonly mimes?: 'IMAGE' | string[];
136
+ }
137
+
138
+ interface IInputIcon extends Omit<IInput, 'english'> {
139
+ readonly type: 'ICON';
140
+ }
141
+
142
+ interface IInputIp extends Omit<IInput, 'english'> {
143
+ readonly type: 'IP';
144
+ readonly showIcon?: boolean;
145
+ }
146
+
147
+ interface IInputMobile extends Omit<IInput, 'english'> {
148
+ readonly type: 'MOBILE';
149
+ readonly showIcon?: boolean;
150
+ }
151
+
152
+ interface IInputMoment extends Omit<IInput, 'english' | 'value' | 'autoFocus'> {
153
+ readonly type: 'MOMENT';
154
+ readonly value?: Date | null;
155
+ readonly minDate?: Date | 'NOW';
156
+ readonly maxDate?: Date | 'NOW';
157
+ }
158
+
159
+ interface IInputMultiSelect extends Omit<IInput, 'value' | 'optional' | 'autoFocus'> {
160
+ readonly type: 'MULTI-SELECT';
161
+ readonly title: string;
162
+ readonly value?: string[] | null;
163
+ readonly options: {
164
+ readonly id: string;
165
+ readonly title: string;
166
+ }[];
167
+ readonly groups?: {
168
+ readonly title: string;
169
+ readonly ids: string[];
170
+ }[];
171
+ readonly minCount?: number;
172
+ readonly maxCount?: number;
173
+ readonly listMaxHeight?: number;
174
+ readonly selectButtons?: boolean;
175
+ readonly view?: 'SELECT';
176
+ }
177
+
178
+ interface IName {
179
+ readonly first: string;
180
+ readonly last: string;
181
+ }
182
+ interface IInputName extends Omit<IInput, 'value' | 'hint' | 'english' | 'description' | 'button'> {
183
+ readonly type: 'NAME';
184
+ readonly value?: IName | null;
185
+ }
186
+
187
+ interface IInputNumber extends Omit<IInput, 'value' | 'english'> {
188
+ readonly type: 'NUMBER';
189
+ readonly title: string;
190
+ readonly value?: number | null;
191
+ readonly minimum?: number;
192
+ readonly maximum?: number;
193
+ readonly suffix?: string;
194
+ readonly multiplyOf?: number;
195
+ readonly allowNegatives?: boolean;
196
+ readonly fractionDigits?: boolean | number;
197
+ readonly showIcon?: boolean;
198
+ readonly showText?: boolean;
199
+ }
200
+
201
+ interface IInputPassword extends Omit<IInput, 'english' | 'value'> {
202
+ readonly type: 'PASSWORD';
203
+ readonly verify?: {
204
+ readonly minLength: number;
205
+ readonly forceLowerCase?: boolean;
206
+ readonly forceUpperCase?: boolean;
207
+ readonly forceNumber?: boolean;
208
+ };
209
+ }
210
+
211
+ interface IInputPrice extends Omit<IInput, 'value' | 'english'> {
212
+ readonly type: 'PRICE';
213
+ readonly value?: number | null;
214
+ readonly minimum?: number;
215
+ readonly maximum?: number;
216
+ readonly multiplyOf?: number;
217
+ readonly fractionDigits?: boolean | number;
218
+ readonly currency?: string;
219
+ readonly hideText?: boolean;
220
+ }
221
+
222
+ interface IInputSelect extends IInput {
223
+ readonly type: 'SELECT';
224
+ readonly title: string;
225
+ readonly options: {
226
+ readonly id: string;
227
+ readonly title: string;
228
+ }[];
229
+ readonly hideSearch?: boolean;
230
+ }
231
+
232
+ interface IInputText extends IInput {
233
+ readonly type: 'TEXT';
234
+ readonly title: string;
235
+ readonly minLength?: number;
236
+ readonly maxLength?: number;
237
+ readonly readonly?: boolean;
238
+ }
239
+
240
+ interface IInputTextarea extends IInput {
241
+ readonly type: 'TEXTAREA';
242
+ readonly title: string;
243
+ readonly height?: number;
244
+ readonly autoHeight?: boolean;
245
+ readonly maxHeight?: number;
246
+ readonly maxLength?: number;
247
+ readonly counter?: boolean;
248
+ }
249
+
250
+ interface IInputUrl extends Omit<IInput, 'english'> {
251
+ readonly type: 'URL';
252
+ readonly showIcon?: boolean;
253
+ }
254
+
255
+ interface INgxFormConfig {
256
+ readonly mobileWidth: number;
257
+ readonly submitTimeout: number;
258
+ readonly appearance: MatFormFieldAppearance;
259
+ }
260
+ declare const NGX_FORM_CONFIG: InjectionToken<Partial<INgxFormConfig>>;
261
+ declare const provideNgxFormConfig: (config: Partial<INgxFormConfig>) => EnvironmentProviders;
262
+
263
+ interface IRow {
264
+ header: string;
265
+ inputs: NgxFormInputs[];
266
+ flex: number[];
267
+ }
268
+ interface IColumn {
269
+ header: string;
270
+ rows: IRow[];
271
+ }
272
+ interface ISection {
273
+ header: string;
274
+ columns: IColumn[];
275
+ flex: number[];
276
+ }
277
+ declare class NgxFormComponent implements OnInit, OnChanges, AfterViewInit {
278
+ private readonly router;
279
+ private readonly config?;
280
+ ngForm?: NgForm;
281
+ onResize: (event: any) => void;
282
+ ngxForm: INgxForm;
283
+ onInit: EventEmitter<INgxFormInit>;
284
+ onSubmit: EventEmitter<INgxFormValues>;
285
+ onChange: EventEmitter<INgxFormValues>;
286
+ protected formGroup: FormGroup;
287
+ protected sections: ISection[];
288
+ protected hiddenInputs: string[];
289
+ protected values: INgxFormValues;
290
+ protected lastValues: INgxFormValues;
291
+ protected lastSubmit?: Date;
292
+ protected isMobile: boolean;
293
+ protected inputConfig: IInputConfig;
294
+ constructor(router: Router, config?: Partial<INgxFormConfig> | undefined);
295
+ ngOnInit(): void;
296
+ ngOnChanges(changes: SimpleChanges): void;
297
+ ngAfterViewInit(): void;
298
+ getInputs(): NgxFormInputs[];
299
+ getValues(): INgxFormValues;
300
+ setInput(input: NgxFormInputs): void;
301
+ checkInputs(): void;
302
+ checkSubmit(): void;
303
+ setSize(): void;
304
+ showSection(section: ISection): boolean;
305
+ showColumn(column: IColumn): boolean;
306
+ showRow(row: IRow): boolean;
307
+ showInput(input: NgxFormInputs): boolean;
308
+ onClick(action: string[] | (() => void)): void;
309
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxFormComponent, [null, { optional: true; }]>;
310
+ static ɵcmp: i0.ɵɵComponentDeclaration<NgxFormComponent, "ngx-form", never, { "ngxForm": { "alias": "ngxForm"; "required": true; }; }, { "onInit": "onInit"; "onSubmit": "onSubmit"; "onChange": "onChange"; }, never, never, true, never>;
311
+ }
312
+
313
+ export { NGX_FORM_CONFIG, NGX_FORM_CONTROL, NGX_FORM_INPUT, NgxFormComponent, provideNgxFormConfig };
314
+ export type { IInputComponent, INgxForm, INgxFormButton, INgxFormConfig, INgxFormInit, INgxFormValues, NgxFormInputs };
package/ngx-form-m3.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /* COLUMN AND SECTION HEADER */
2
2
  .ngx-form-m3-header {
3
3
  font-size: 15px;
4
- background-color: var(--mdc-filled-text-field-container-color);
4
+ background-color: var(--mat-form-field-filled-container-color);
5
5
  border-width: 0;
6
6
  border-radius: 0;
7
7
  border-right: 2px solid var(--secondary-fixed);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-form-m3",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
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.2.10",
24
- "@angular/core": ">=19.2.10",
25
- "@angular/forms": ">=19.2.10",
26
- "@angular/material": ">=19.2.15",
27
- "@webilix/helper-library": ">=6.1.2",
28
- "@webilix/jalali-date-time": ">=2.0.6",
29
- "@webilix/ngx-calendar-m3": ">=0.0.13",
30
- "@webilix/ngx-helper-m3": ">=0.0.27",
23
+ "@angular/common": ">=20.0.0",
24
+ "@angular/core": ">=20.0.0",
25
+ "@angular/forms": ">=20.0.0",
26
+ "@angular/material": ">=20.0.1",
27
+ "@webilix/helper-library": ">=6.1.3",
28
+ "@webilix/jalali-date-time": ">=2.0.7",
29
+ "@webilix/ngx-calendar-m3": ">=0.0.15",
30
+ "@webilix/ngx-helper-m3": ">=0.0.29",
31
31
  "ngx-mask": ">=19.0.7"
32
32
  },
33
33
  "dependencies": {
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AutoCompleteDirective {
3
- autocomplete: string;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<AutoCompleteDirective, "input[type=\"text\"]", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,10 +0,0 @@
1
- import { AfterViewInit, ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AutoFocusDirective implements AfterViewInit {
4
- private elementRef;
5
- AutoFocusDirective: boolean;
6
- constructor(elementRef: ElementRef);
7
- ngAfterViewInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<AutoFocusDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<AutoFocusDirective, "[AutoFocusDirective]", never, { "AutoFocusDirective": { "alias": "AutoFocusDirective"; "required": true; }; }, {}, never, never, true, never>;
10
- }
@@ -1,18 +0,0 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AutoHeightDirective {
4
- private elementRef;
5
- private renderer2;
6
- AutoHeightDirective: boolean;
7
- minHeight: number;
8
- maxHeight: number;
9
- private _focused;
10
- private focus;
11
- private blur;
12
- constructor(elementRef: ElementRef, renderer2: Renderer2);
13
- ngAfterViewInit(): void;
14
- private resize;
15
- private setHeight;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AutoHeightDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<AutoHeightDirective, "[AutoHeightDirective]", never, { "AutoHeightDirective": { "alias": "AutoHeightDirective"; "required": true; }; "minHeight": { "alias": "minHeight"; "required": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; }, {}, never, never, true, never>;
18
- }
@@ -1,13 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { FormGroupDirective } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class FormErrorDirective {
5
- private elementRef;
6
- private formGroupDirective;
7
- onSubmit(): void;
8
- constructor(elementRef: ElementRef, formGroupDirective: FormGroupDirective);
9
- private getElementTop;
10
- private scrollToElement;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorDirective, [null, { optional: true; }]>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormErrorDirective, "form.ngx-form", never, {}, {}, never, never, true, never>;
13
- }
@@ -1,4 +0,0 @@
1
- export * from './auto-complete.directive';
2
- export * from './auto-focus.directive';
3
- export * from './auto-height.directive';
4
- export * from './form-error.directive';
@@ -1,18 +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 { IInputAutoComplete } from './input-auto-complete.interface';
6
- import * as i0 from "@angular/core";
7
- export declare class InputAutoCompleteComponent implements OnInit {
8
- formControl: FormControl;
9
- input: IInputAutoComplete;
10
- config: IInputConfig;
11
- values: INgxFormValues;
12
- isButtonDisabled: boolean;
13
- filtered: string[];
14
- ngOnInit(): void;
15
- filter(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<InputAutoCompleteComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<InputAutoCompleteComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
18
- }
@@ -1,11 +0,0 @@
1
- import { ValidatorFn, FormControl } from '@angular/forms';
2
- import { InputMethods, IInput } from '../input.interface';
3
- export interface IInputAutoComplete extends IInput {
4
- readonly type: 'AUTO-COMPLETE';
5
- readonly title: string;
6
- readonly options: string[];
7
- }
8
- export declare class InputAutoCompleteMethods extends InputMethods<IInputAutoComplete, string | null> {
9
- control(input: IInputAutoComplete, validators: ValidatorFn[]): FormControl<string | null>;
10
- value(value: any, input: IInputAutoComplete): string | null;
11
- }
@@ -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 { 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
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- }
@@ -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 { IInputCheckbox } from './input-checkbox.interface';
5
- import * as i0 from "@angular/core";
6
- export declare class InputCheckboxComponent {
7
- formControl: FormControl;
8
- input: IInputCheckbox;
9
- config: IInputConfig;
10
- values: INgxFormValues;
11
- isButtonDisabled: boolean;
12
- toggleValue(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<InputCheckboxComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<InputCheckboxComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
15
- }
@@ -1,11 +0,0 @@
1
- import { ValidatorFn, FormControl } from '@angular/forms';
2
- import { InputMethods, IInput } from '../input.interface';
3
- export interface IInputCheckbox extends Omit<IInput, 'title' | 'value' | 'optional' | 'autoFocus'> {
4
- readonly type: 'CHECKBOX';
5
- readonly message: string;
6
- readonly value?: boolean;
7
- }
8
- export declare class InputCheckboxMethods extends InputMethods<IInputCheckbox, boolean | null> {
9
- control(input: IInputCheckbox, validators: ValidatorFn[]): FormControl<boolean | null>;
10
- value(value: any, input: IInputCheckbox): boolean | null;
11
- }
@@ -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 { IInputColor } from './input-color.interface';
5
- import * as i0 from "@angular/core";
6
- export declare class InputColorComponent {
7
- formControl: FormControl;
8
- input: IInputColor;
9
- config: IInputConfig;
10
- values: INgxFormValues;
11
- isButtonDisabled: boolean;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<InputColorComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<InputColorComponent, "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 IInputColor extends Omit<IInput, 'english' | 'autoFocus'> {
4
- readonly type: 'COLOR';
5
- }
6
- export declare class InputColorMethods extends InputMethods<IInputColor, string | null> {
7
- control(input: IInputColor, validators: ValidatorFn[]): FormControl<string | null>;
8
- value(value: any, input: IInputColor): string | null;
9
- }
@@ -1,18 +0,0 @@
1
- import { Injector, OnChanges, SimpleChanges } 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 implements OnChanges {
8
- paddig: string;
9
- formControl: FormControl;
10
- input: IInputComponent;
11
- config: IInputConfig;
12
- values: INgxFormValues;
13
- isButtonDisabled: boolean;
14
- injector: Injector;
15
- ngOnChanges(changes: SimpleChanges): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<InputComponentComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponentComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
18
- }
@@ -1,16 +0,0 @@
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
- readonly zeroPadding?: boolean;
12
- }
13
- export declare class InputComponentMethods extends InputMethods<IInputComponent, any> {
14
- control(input: IInputComponent, validators: ValidatorFn[]): FormControl<any>;
15
- value(value: any, input: IInputComponent): any;
16
- }
@@ -1,20 +0,0 @@
1
- import { FormControl } from '@angular/forms';
2
- import { INgxHelperCoordinates, NgxHelperCoordinatesService } from '@webilix/ngx-helper-m3';
3
- import { INgxFormValues } from '../../ngx-form.interface';
4
- import { IInputConfig } from '../input.interface';
5
- import { IInputCoordinates } from './input-coordinates.interface';
6
- import * as i0 from "@angular/core";
7
- export declare class InputCoordinatesComponent {
8
- private readonly ngxHelperCoordinatesService;
9
- formControl: FormControl;
10
- input: IInputCoordinates;
11
- config: IInputConfig;
12
- values: INgxFormValues;
13
- isButtonDisabled: boolean;
14
- coordinates?: INgxHelperCoordinates;
15
- constructor(ngxHelperCoordinatesService: NgxHelperCoordinatesService);
16
- setCoordinates(): void;
17
- resetCoordinates(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<InputCoordinatesComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<InputCoordinatesComponent, "ng-component", never, { "values": { "alias": "values"; "required": true; }; "isButtonDisabled": { "alias": "isButtonDisabled"; "required": true; }; }, {}, never, never, true, never>;
20
- }
@@ -1,16 +0,0 @@
1
- import { ValidatorFn, FormControl } from '@angular/forms';
2
- import { InputMethods, IInput } from '../input.interface';
3
- export interface ICoordinates {
4
- latitude: number;
5
- longitude: number;
6
- }
7
- export interface IInputCoordinates extends Omit<IInput, 'value' | 'english' | 'autoFocus'> {
8
- readonly type: 'COORDINATES';
9
- readonly value?: ICoordinates | null;
10
- readonly center?: ICoordinates;
11
- readonly zoom?: number;
12
- }
13
- export declare class InputCoordinatesMethods extends InputMethods<IInputCoordinates, ICoordinates | null> {
14
- control(input: IInputCoordinates, validators: ValidatorFn[]): FormControl<ICoordinates | null>;
15
- value(value: any, input: IInputCoordinates): ICoordinates | null;
16
- }