@igo2/common 20.2.0 → 21.0.0-next.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 (109) hide show
  1. package/fesm2022/igo2-common-action.mjs +62 -77
  2. package/fesm2022/igo2-common-action.mjs.map +1 -1
  3. package/fesm2022/igo2-common-backdrop.mjs +11 -20
  4. package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
  5. package/fesm2022/igo2-common-badge.mjs +7 -8
  6. package/fesm2022/igo2-common-badge.mjs.map +1 -1
  7. package/fesm2022/igo2-common-clickout.mjs +11 -11
  8. package/fesm2022/igo2-common-clickout.mjs.map +1 -1
  9. package/fesm2022/igo2-common-clone.mjs +8 -9
  10. package/fesm2022/igo2-common-clone.mjs.map +1 -1
  11. package/fesm2022/igo2-common-collapsible.mjs +18 -27
  12. package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
  13. package/fesm2022/igo2-common-color.mjs +10 -10
  14. package/fesm2022/igo2-common-color.mjs.map +1 -1
  15. package/fesm2022/igo2-common-confirm-dialog.mjs +12 -11
  16. package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
  17. package/fesm2022/igo2-common-context-menu.mjs +23 -27
  18. package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
  19. package/fesm2022/igo2-common-custom-html.mjs +11 -12
  20. package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
  21. package/fesm2022/igo2-common-datepicker.mjs +26 -20
  22. package/fesm2022/igo2-common-datepicker.mjs.map +1 -1
  23. package/fesm2022/igo2-common-dom.mjs +10 -8
  24. package/fesm2022/igo2-common-dom.mjs.map +1 -1
  25. package/fesm2022/igo2-common-drag-drop.mjs +83 -55
  26. package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
  27. package/fesm2022/igo2-common-dynamic-component.mjs +27 -21
  28. package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
  29. package/fesm2022/igo2-common-entity.mjs +181 -148
  30. package/fesm2022/igo2-common-entity.mjs.map +1 -1
  31. package/fesm2022/igo2-common-flexible.mjs +26 -78
  32. package/fesm2022/igo2-common-flexible.mjs.map +1 -1
  33. package/fesm2022/igo2-common-form.mjs +426 -125
  34. package/fesm2022/igo2-common-form.mjs.map +1 -1
  35. package/fesm2022/igo2-common-home-button.mjs +7 -7
  36. package/fesm2022/igo2-common-icon.mjs +8 -8
  37. package/fesm2022/igo2-common-icon.mjs.map +1 -1
  38. package/fesm2022/igo2-common-image.mjs +14 -16
  39. package/fesm2022/igo2-common-image.mjs.map +1 -1
  40. package/fesm2022/igo2-common-interactive-tour.mjs +55 -32
  41. package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
  42. package/fesm2022/igo2-common-json-dialog.mjs +11 -11
  43. package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
  44. package/fesm2022/igo2-common-keyvalue.mjs +11 -10
  45. package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
  46. package/fesm2022/igo2-common-list.mjs +28 -31
  47. package/fesm2022/igo2-common-list.mjs.map +1 -1
  48. package/fesm2022/igo2-common-panel.mjs +12 -13
  49. package/fesm2022/igo2-common-panel.mjs.map +1 -1
  50. package/fesm2022/igo2-common-resizable-bar.mjs +11 -17
  51. package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
  52. package/fesm2022/igo2-common-select-value-dialog.mjs +23 -13
  53. package/fesm2022/igo2-common-select-value-dialog.mjs.map +1 -1
  54. package/fesm2022/igo2-common-sidenav.mjs +14 -19
  55. package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
  56. package/fesm2022/igo2-common-spinner.mjs +14 -15
  57. package/fesm2022/igo2-common-spinner.mjs.map +1 -1
  58. package/fesm2022/igo2-common-stop-propagation.mjs +12 -14
  59. package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
  60. package/fesm2022/igo2-common-table.mjs +62 -69
  61. package/fesm2022/igo2-common-table.mjs.map +1 -1
  62. package/fesm2022/igo2-common-timepicker.mjs +14 -15
  63. package/fesm2022/igo2-common-timepicker.mjs.map +1 -1
  64. package/fesm2022/igo2-common-tool.mjs +35 -32
  65. package/fesm2022/igo2-common-tool.mjs.map +1 -1
  66. package/fesm2022/igo2-common-widget.mjs +18 -18
  67. package/fesm2022/igo2-common-widget.mjs.map +1 -1
  68. package/fesm2022/igo2-common-workspace.mjs +28 -32
  69. package/fesm2022/igo2-common-workspace.mjs.map +1 -1
  70. package/package.json +60 -59
  71. package/{action/index.d.ts → types/igo2-common-action.d.ts} +2 -5
  72. package/{backdrop/index.d.ts → types/igo2-common-backdrop.d.ts} +2 -4
  73. package/{badge/index.d.ts → types/igo2-common-badge.d.ts} +4 -4
  74. package/{clickout/index.d.ts → types/igo2-common-clickout.d.ts} +1 -1
  75. package/{collapsible/index.d.ts → types/igo2-common-collapsible.d.ts} +2 -4
  76. package/{confirm-dialog/index.d.ts → types/igo2-common-confirm-dialog.d.ts} +1 -1
  77. package/{context-menu/index.d.ts → types/igo2-common-context-menu.d.ts} +2 -2
  78. package/{datepicker/index.d.ts → types/igo2-common-datepicker.d.ts} +9 -9
  79. package/{drag-drop/index.d.ts → types/igo2-common-drag-drop.d.ts} +15 -13
  80. package/{dynamic-component/index.d.ts → types/igo2-common-dynamic-component.d.ts} +3 -3
  81. package/{entity/index.d.ts → types/igo2-common-entity.d.ts} +64 -60
  82. package/types/igo2-common-flexible.d.ts +42 -0
  83. package/types/igo2-common-form.d.ts +568 -0
  84. package/{icon/index.d.ts → types/igo2-common-icon.d.ts} +1 -1
  85. package/{interactive-tour/index.d.ts → types/igo2-common-interactive-tour.d.ts} +6 -6
  86. package/{json-dialog/index.d.ts → types/igo2-common-json-dialog.d.ts} +4 -4
  87. package/{keyvalue/index.d.ts → types/igo2-common-keyvalue.d.ts} +4 -1
  88. package/{list/index.d.ts → types/igo2-common-list.d.ts} +7 -7
  89. package/{panel/index.d.ts → types/igo2-common-panel.d.ts} +1 -1
  90. package/{resizable-bar/index.d.ts → types/igo2-common-resizable-bar.d.ts} +4 -5
  91. package/{select-value-dialog/index.d.ts → types/igo2-common-select-value-dialog.d.ts} +2 -2
  92. package/{sidenav/index.d.ts → types/igo2-common-sidenav.d.ts} +2 -2
  93. package/{spinner/index.d.ts → types/igo2-common-spinner.d.ts} +1 -1
  94. package/{table/index.d.ts → types/igo2-common-table.d.ts} +17 -18
  95. package/{timepicker/index.d.ts → types/igo2-common-timepicker.d.ts} +3 -3
  96. package/{tool/index.d.ts → types/igo2-common-tool.d.ts} +7 -8
  97. package/{widget/index.d.ts → types/igo2-common-widget.d.ts} +7 -7
  98. package/{workspace/index.d.ts → types/igo2-common-workspace.d.ts} +12 -12
  99. package/flexible/index.d.ts +0 -56
  100. package/form/index.d.ts +0 -429
  101. /package/{clone/index.d.ts → types/igo2-common-clone.d.ts} +0 -0
  102. /package/{color/index.d.ts → types/igo2-common-color.d.ts} +0 -0
  103. /package/{custom-html/index.d.ts → types/igo2-common-custom-html.d.ts} +0 -0
  104. /package/{dom/index.d.ts → types/igo2-common-dom.d.ts} +0 -0
  105. /package/{environment/index.d.ts → types/igo2-common-environment.d.ts} +0 -0
  106. /package/{home-button/index.d.ts → types/igo2-common-home-button.d.ts} +0 -0
  107. /package/{image/index.d.ts → types/igo2-common-image.d.ts} +0 -0
  108. /package/{stop-propagation/index.d.ts → types/igo2-common-stop-propagation.d.ts} +0 -0
  109. /package/{index.d.ts → types/igo2-common.d.ts} +0 -0
package/form/index.d.ts DELETED
@@ -1,429 +0,0 @@
1
- import * as _igo2_common_form from '@igo2/common/form';
2
- import * as i0 from '@angular/core';
3
- import { OnChanges, ElementRef, SimpleChanges, OnInit, ModuleWithProviders } from '@angular/core';
4
- import { ValidatorFn, UntypedFormControl, UntypedFormGroup, AbstractControl } from '@angular/forms';
5
- import { BehaviorSubject, Observable } from 'rxjs';
6
- import * as i1 from '@angular/material/dialog';
7
- import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
8
- import { LanguageService } from '@igo2/core/language';
9
-
10
- interface Form {
11
- fields: FormField[];
12
- groups: FormFieldGroup[];
13
- control: UntypedFormGroup;
14
- }
15
- interface FormFieldGroupConfig {
16
- name: string;
17
- title?: string;
18
- options?: FormFieldGroupOptions;
19
- }
20
- interface FormFieldGroup extends FormFieldGroupConfig {
21
- fields: FormField[];
22
- control: UntypedFormGroup;
23
- }
24
- interface FormFieldGroupOptions {
25
- validator?: ValidatorFn;
26
- errors?: Record<string, string>;
27
- }
28
- interface FormGroupsConfig {
29
- name: string;
30
- formFieldConfigs: FormFieldConfig[];
31
- }
32
- interface FormFieldConfig<T extends FormFieldInputs = FormFieldInputs> {
33
- name: string;
34
- title: string;
35
- type?: string;
36
- options?: FormFieldOptions;
37
- inputs?: T;
38
- subscribers?: FormFieldSubscribers;
39
- }
40
- type FormFieldSubscribers = Record<string, FormFieldSubscriber>;
41
- type FormFieldSubscriber = (options: FormFieldSubscriberOptions) => void;
42
- interface FormFieldSubscriberOptions {
43
- field: FormField;
44
- control: UntypedFormControl;
45
- }
46
- interface FormField<T extends FormFieldInputs = FormFieldInputs> extends FormFieldConfig<T> {
47
- control: UntypedFormControl;
48
- }
49
- interface FormFieldOptions {
50
- initialValue?: unknown;
51
- validator?: ValidatorFn;
52
- disabled?: boolean;
53
- visible?: boolean;
54
- cols?: number;
55
- errors?: Record<string, string>;
56
- disableSwitch?: boolean;
57
- }
58
- interface FormFieldInputs {
59
- }
60
- interface FormFieldSelectInputs extends FormFieldInputs {
61
- choices: BehaviorSubject<FormFieldSelectChoice[]> | FormFieldSelectChoice[];
62
- }
63
- interface FormFieldSelectChoice {
64
- value: any;
65
- title: string;
66
- }
67
-
68
- /**
69
- * A configurable form
70
- */
71
- declare class FormComponent implements OnChanges {
72
- /**
73
- * Form
74
- */
75
- readonly form: i0.InputSignal<Form>;
76
- /**
77
- * Input data
78
- */
79
- readonly formData: i0.InputSignal<Record<string, any>>;
80
- /**
81
- * Form autocomplete
82
- */
83
- readonly autocomplete: i0.InputSignal<string>;
84
- /**
85
- * Event emitted when the form is submitted
86
- */
87
- readonly submitForm: i0.OutputEmitterRef<Record<string, any>>;
88
- readonly buttons: i0.Signal<ElementRef<any>>;
89
- get hasButtons(): boolean;
90
- /**
91
- * Is the entity or the template change, recreate the form or repopulate it.
92
- * @internal
93
- */
94
- ngOnChanges(changes: SimpleChanges): void;
95
- /**
96
- * Transform the form data to a feature and emit an event
97
- * @param event Form submit event
98
- * @internal
99
- */
100
- onSubmit(): void;
101
- getData(): Record<string, any>;
102
- private setData;
103
- private updateDataWithFormField;
104
- /**
105
- * Clear form
106
- */
107
- private clear;
108
- static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
109
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": false; "isSignal": true; }; "formData": { "alias": "formData"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; }, { "submitForm": "submitForm"; }, never, ["*", "[formButtons]"], true, never>;
110
- }
111
-
112
- /**
113
- * @deprecated import the FormComponent directly
114
- */
115
- declare class IgoFormFormModule {
116
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormFormModule, never>;
117
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormFormModule, never, [typeof FormComponent], [typeof FormComponent]>;
118
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormFormModule>;
119
- }
120
-
121
- /**
122
- * A configurable form, optionnally bound to an entity
123
- * (for example in case of un update). Submitting that form
124
- * emits an event with the form data but no other operation is performed.
125
- */
126
- declare class FormGroupComponent {
127
- /**
128
- * Form field group
129
- */
130
- readonly group: i0.InputSignal<FormFieldGroup>;
131
- /**
132
- * Field placeholder
133
- */
134
- readonly errors: i0.InputSignal<Record<string, string>>;
135
- /**
136
- * Form group control
137
- */
138
- get formControl(): UntypedFormGroup;
139
- /**
140
- * Return the number of columns a field should occupy.
141
- * The maximum allowed is 2, even if the field config says more.
142
- * @param field Field
143
- * @returns Number of columns
144
- * @internal
145
- */
146
- getFieldColSpan(field: FormField): number;
147
- /**
148
- * Return the number of columns a field should occupy.
149
- * The maximum allowed is 2, even if the field config says more.
150
- * @param field Field
151
- * @returns Number of columns
152
- * @internal
153
- */
154
- getFieldNgClass(field: FormField): Record<string, boolean>;
155
- /**
156
- * Get error message
157
- */
158
- getErrorMessage(): string;
159
- static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupComponent, never>;
160
- static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "igo-form-group", never, { "group": { "alias": "group"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
161
- }
162
-
163
- /**
164
- * @deprecated import the FormGroupComponent directly
165
- */
166
- declare class IgoFormGroupModule {
167
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormGroupModule, never>;
168
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormGroupModule, never, [typeof FormGroupComponent], [typeof FormGroupComponent]>;
169
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormGroupModule>;
170
- }
171
-
172
- /**
173
- * This component renders the proper form input based on
174
- * the field configuration it receives.
175
- */
176
- declare class FormFieldComponent {
177
- private formFieldService;
178
- /**
179
- * Field configuration
180
- */
181
- readonly field: i0.InputSignal<FormField<FormFieldInputs>>;
182
- /**
183
- * Field inputs cache
184
- */
185
- private fieldInputs;
186
- /**
187
- * Field subscribers cache
188
- */
189
- private fieldSubscribers;
190
- get fieldOptions(): FormFieldOptions;
191
- getFieldComponent(): any;
192
- getFieldInputs(): FormFieldInputs;
193
- getFieldSubscribers(): FormFieldSubscribers;
194
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
195
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
196
- }
197
-
198
- /**
199
- * This component renders a select field
200
- */
201
- declare class FormFieldSelectComponent implements OnInit {
202
- readonly disabled: i0.WritableSignal<boolean>;
203
- /**
204
- * Select input choices
205
- */
206
- readonly choices: i0.InputSignal<FormFieldSelectChoice[]>;
207
- /**
208
- * If the select allow multiple selections
209
- */
210
- readonly multiple: i0.InputSignal<boolean>;
211
- /**
212
- * The field's form control
213
- */
214
- readonly formControl: i0.InputSignal<UntypedFormControl>;
215
- /**
216
- * Field placeholder
217
- */
218
- readonly placeholder: i0.InputSignal<string>;
219
- /**
220
- * Field placeholder
221
- */
222
- readonly errors: i0.InputSignal<Record<string, string>>;
223
- /**
224
- * Wheter a disable switch should be available
225
- */
226
- readonly disableSwitch: i0.InputSignal<boolean>;
227
- /**
228
- * Whether the field is required
229
- */
230
- get required(): boolean;
231
- ngOnInit(): void;
232
- /**
233
- * Get error message
234
- */
235
- getErrorMessage(): string;
236
- onDisableSwitchClick(): void;
237
- private toggleDisabled;
238
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldSelectComponent, never>;
239
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSelectComponent, "igo-form-field-select", never, { "choices": { "alias": "choices"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
240
- }
241
-
242
- /**
243
- * This component renders a text field
244
- */
245
- declare class FormFieldTextComponent implements OnInit {
246
- private cdRef;
247
- disabled$: BehaviorSubject<boolean>;
248
- hide: boolean;
249
- private lastTimeoutRequest;
250
- /**
251
- * The field's form control
252
- */
253
- readonly formControl: i0.InputSignal<UntypedFormControl>;
254
- /**
255
- * Field placeholder
256
- */
257
- readonly placeholder: i0.InputSignal<string>;
258
- /**
259
- * if the input is a password
260
- */
261
- readonly isPassword: i0.InputSignal<boolean>;
262
- /**
263
- * Field placeholder
264
- */
265
- readonly errors: i0.InputSignal<Record<string, string>>;
266
- /**
267
- * Wheter a disable switch should be available
268
- */
269
- readonly disableSwitch: i0.InputSignal<boolean>;
270
- /**
271
- * Whether the field is required
272
- */
273
- get required(): boolean;
274
- ngOnInit(): void;
275
- /**
276
- * Get error message
277
- */
278
- getErrorMessage(): string;
279
- onDisableSwitchClick(): void;
280
- private toggleDisabled;
281
- togglePassword(): void;
282
- delayedHide(delayMS?: number): void;
283
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextComponent, never>;
284
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "isPassword": { "alias": "isPassword"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
285
- }
286
-
287
- /**
288
- * This component renders a textarea field
289
- */
290
- declare class FormFieldTextareaComponent implements OnInit {
291
- disabled$: BehaviorSubject<boolean>;
292
- /**
293
- * The field's form control
294
- */
295
- readonly formControl: i0.InputSignal<UntypedFormControl>;
296
- /**
297
- * Field placeholder
298
- */
299
- readonly placeholder: i0.InputSignal<string>;
300
- /**
301
- * Field placeholder
302
- */
303
- readonly errors: i0.InputSignal<Record<string, string>>;
304
- /**
305
- * Wheter a disable switch should be available
306
- */
307
- readonly disableSwitch: i0.InputSignal<boolean>;
308
- /**
309
- * Whether the field is required
310
- */
311
- get required(): boolean;
312
- ngOnInit(): void;
313
- /**
314
- * Get error message
315
- */
316
- getErrorMessage(): string;
317
- onDisableSwitchClick(): void;
318
- private toggleDisabled;
319
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTextareaComponent, never>;
320
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTextareaComponent, "igo-form-field-textarea", never, { "formControl": { "alias": "formControl"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
321
- }
322
-
323
- declare const FORM_DIRECTIVES: readonly [typeof _igo2_common_form.FormFieldComponent, typeof _igo2_common_form.FormFieldSelectComponent, typeof _igo2_common_form.FormFieldTextComponent, typeof _igo2_common_form.FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent];
324
- /**
325
- * @deprecated import the components directly or FORM_DIRECTIVES for every components/directives
326
- */
327
- declare class IgoFormModule {
328
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormModule, never>;
329
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormModule, never, [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent], [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent]>;
330
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormModule>;
331
- }
332
-
333
- declare function formControlIsRequired(control: AbstractControl): boolean;
334
- declare function getDefaultErrorMessages(): Record<string, string>;
335
- declare function getControlErrorMessage(control: AbstractControl, messages: Record<string, string>): string;
336
- declare function getAllFormFields(form: Form): FormField[];
337
- declare function getFormFieldByName(form: Form, name: string): FormField;
338
-
339
- declare class FormService {
340
- private formBuilder;
341
- form(fields: FormField[], groups: FormFieldGroup[]): Form;
342
- group(config: FormFieldGroupConfig, fields: FormField[]): FormFieldGroup;
343
- field(config: FormFieldConfig): FormField;
344
- extendFieldConfig(config: FormFieldConfig, partial: Partial<FormFieldConfig>): FormFieldConfig;
345
- private getValidators;
346
- private getValidator;
347
- static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
348
- static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
349
- }
350
-
351
- /**
352
- * Service where all available form fields are registered.
353
- */
354
- declare class FormFieldService {
355
- static fields: Record<string, any>;
356
- static register(type: string, component: any): void;
357
- /**
358
- * Return field component by type
359
- * @param type Field type
360
- * @returns Field component
361
- */
362
- getFieldByType(type: string): any;
363
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldService, never>;
364
- static ɵprov: i0.ɵɵInjectableDeclaration<FormFieldService>;
365
- }
366
-
367
- declare function IgoFormFieldComponent(type: string): (cls: any) => any;
368
-
369
- /**
370
- * @deprecated import the components directly or FORM_FIELD_DIRECTIVES for every components/directives
371
- */
372
- declare class IgoFormFieldModule {
373
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormFieldModule, never>;
374
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormFieldModule, never, [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent], [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent]>;
375
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormFieldModule>;
376
- }
377
-
378
- declare const FORM_FIELD_DIRECTIVES: readonly [typeof FormFieldComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent];
379
-
380
- interface FormDialogFormConfig {
381
- formFieldConfigs?: FormFieldConfig[];
382
- formGroupsConfigs?: FormGroupsConfig[];
383
- }
384
- interface FormDialogData extends FormDialogOptions, FormDialogFormConfig {
385
- }
386
- interface FormDialogOptions extends MatDialogConfig {
387
- data$?: BehaviorSubject<Record<string, any>>;
388
- title?: string;
389
- processButtonText?: string;
390
- cancelButtonText?: string;
391
- notice?: string;
392
- }
393
-
394
- declare class FormDialogComponent {
395
- languageService: LanguageService;
396
- dialogRef: MatDialogRef<FormDialogComponent, any>;
397
- private formService;
398
- data: FormDialogData;
399
- form$: BehaviorSubject<Form>;
400
- data$: BehaviorSubject<Record<string, any>>;
401
- constructor();
402
- onSubmit(data: Record<string, any>): void;
403
- cancel(): void;
404
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
405
- static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, true, never>;
406
- }
407
-
408
- /**
409
- * @deprecated import the FlexibleComponent directly
410
- */
411
- declare class IgoFormDialogModule {
412
- /**
413
- * @deprecated it has no effect
414
- */
415
- static forRoot(): ModuleWithProviders<IgoFormDialogModule>;
416
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormDialogModule, never>;
417
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormDialogModule, never, [typeof i1.MatDialogModule, typeof FormDialogComponent], [typeof FormDialogComponent]>;
418
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormDialogModule>;
419
- }
420
-
421
- declare class FormDialogService {
422
- private dialog;
423
- open(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<Record<string, any>>;
424
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogService, never>;
425
- static ɵprov: i0.ɵɵInjectableDeclaration<FormDialogService>;
426
- }
427
-
428
- export { FORM_DIRECTIVES, FORM_FIELD_DIRECTIVES, FormComponent, FormDialogComponent, FormDialogService, FormFieldComponent, FormFieldSelectComponent, FormFieldService, FormFieldTextComponent, FormFieldTextareaComponent, FormGroupComponent, FormService, IgoFormDialogModule, IgoFormFieldComponent, IgoFormFieldModule, IgoFormFormModule, IgoFormGroupModule, IgoFormModule, formControlIsRequired, getAllFormFields, getControlErrorMessage, getDefaultErrorMessages, getFormFieldByName };
429
- export type { Form, FormDialogData, FormDialogFormConfig, FormDialogOptions, FormField, FormFieldConfig, FormFieldGroup, FormFieldGroupConfig, FormFieldGroupOptions, FormFieldInputs, FormFieldOptions, FormFieldSelectChoice, FormFieldSelectInputs, FormFieldSubscribers, FormGroupsConfig };
File without changes
File without changes