@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
@@ -0,0 +1,568 @@
1
+ import * as _igo2_common_form from '@igo2/common/form';
2
+ import * as _angular_core from '@angular/core';
3
+ import { OnChanges, ElementRef, SimpleChanges, OnInit, OnDestroy, ModuleWithProviders } from '@angular/core';
4
+ import { ValidatorFn, UntypedFormControl, UntypedFormGroup, FormGroup, FormControl, 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: _angular_core.InputSignal<Form>;
76
+ /**
77
+ * Input data
78
+ */
79
+ readonly formData: _angular_core.InputSignal<Record<string, unknown> | undefined>;
80
+ /**
81
+ * Form autocomplete
82
+ */
83
+ readonly autocomplete: _angular_core.InputSignal<string>;
84
+ /**
85
+ * Event emitted when the form is submitted
86
+ */
87
+ readonly submitForm: _angular_core.OutputEmitterRef<Record<string, unknown>>;
88
+ readonly buttons: _angular_core.Signal<ElementRef<any> | undefined>;
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, unknown>;
102
+ private setData;
103
+ private updateDataWithFormField;
104
+ /**
105
+ * Clear form
106
+ */
107
+ private clear;
108
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormComponent, never>;
109
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": true; "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: _angular_core.ɵɵFactoryDeclaration<IgoFormFormModule, never>;
117
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormFormModule, never, [typeof FormComponent], [typeof FormComponent]>;
118
+ static ɵinj: _angular_core.ɵɵ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: _angular_core.InputSignal<FormFieldGroup>;
131
+ /**
132
+ * Field placeholder
133
+ */
134
+ readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
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: _angular_core.ɵɵFactoryDeclaration<FormGroupComponent, never>;
160
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormGroupComponent, "igo-form-group", never, { "group": { "alias": "group"; "required": true; "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: _angular_core.ɵɵFactoryDeclaration<IgoFormGroupModule, never>;
168
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormGroupModule, never, [typeof FormGroupComponent], [typeof FormGroupComponent]>;
169
+ static ɵinj: _angular_core.ɵɵ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: _angular_core.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: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, never>;
195
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "igo-form-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
196
+ }
197
+
198
+ declare class FormFieldDatetimeComponent implements OnInit, OnDestroy {
199
+ readonly disabled: _angular_core.WritableSignal<boolean>;
200
+ readonly dateTimeGroup: FormGroup<{
201
+ date: FormControl<Date | null>;
202
+ time: FormControl<Date | null>;
203
+ }>;
204
+ get dateControl(): FormControl<Date | null>;
205
+ get timeControl(): FormControl<Date | null>;
206
+ private destroy$;
207
+ private syncingExternalToInternal;
208
+ private syncingInternalToExternal;
209
+ /**
210
+ * The field's form control
211
+ */
212
+ readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
213
+ /**
214
+ * Field showLabel
215
+ */
216
+ readonly showLabel: _angular_core.InputSignal<boolean>;
217
+ /**
218
+ * Field placeholder used for date input
219
+ */
220
+ readonly placeholder: _angular_core.InputSignal<string | undefined>;
221
+ /**
222
+ * Placeholder used for time input
223
+ */
224
+ readonly timePlaceholder: _angular_core.InputSignal<string | undefined>;
225
+ /**
226
+ * Minimum selectable date
227
+ */
228
+ readonly minDate: _angular_core.InputSignal<Date | undefined>;
229
+ /**
230
+ * Maximum selectable date
231
+ */
232
+ readonly maxDate: _angular_core.InputSignal<Date | undefined>;
233
+ /**
234
+ * Minimum selectable time
235
+ */
236
+ readonly minTime: _angular_core.InputSignal<string | Date | null>;
237
+ /**
238
+ * Maximum selectable time
239
+ */
240
+ readonly maxTime: _angular_core.InputSignal<string | Date | null>;
241
+ /**
242
+ * Optional explicit options rendered in the timepicker panel.
243
+ */
244
+ readonly options: _angular_core.InputSignal<readonly {
245
+ value: Date;
246
+ label: string;
247
+ }[] | null>;
248
+ /**
249
+ * Time option interval for the panel.
250
+ */
251
+ readonly interval: _angular_core.InputSignal<string | number | null>;
252
+ /**
253
+ * Whether clicking the input should open the timepicker.
254
+ */
255
+ readonly openOnClick: _angular_core.InputSignal<boolean>;
256
+ /**
257
+ * Whether a disable switch should be available
258
+ */
259
+ readonly disableSwitch: _angular_core.InputSignal<boolean>;
260
+ /**
261
+ * Error messages mapping
262
+ */
263
+ readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
264
+ /**
265
+ * Whether the field is required
266
+ */
267
+ get required(): boolean;
268
+ ngOnInit(): void;
269
+ ngOnDestroy(): void;
270
+ getErrorMessage(): string;
271
+ clearDate(): void;
272
+ clearTime(): void;
273
+ onDisableSwitchClick(): void;
274
+ private syncInternalFromExternal;
275
+ private pushInternalToExternal;
276
+ private updateTimeControlState;
277
+ private toDateValue;
278
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldDatetimeComponent, never>;
279
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldDatetimeComponent, "igo-form-field-datetime", never, { "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "timePlaceholder": { "alias": "timePlaceholder"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minTime": { "alias": "minTime"; "required": false; "isSignal": true; }; "maxTime": { "alias": "maxTime"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "openOnClick": { "alias": "openOnClick"; "required": false; "isSignal": true; }; "disableSwitch": { "alias": "disableSwitch"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
280
+ }
281
+
282
+ /**
283
+ * This component renders a number field
284
+ */
285
+ declare class FormFieldNumberComponent implements OnInit {
286
+ private cdRef;
287
+ readonly disabled: _angular_core.WritableSignal<boolean>;
288
+ hide: boolean;
289
+ private lastTimeoutRequest?;
290
+ /**
291
+ * The field's form control
292
+ */
293
+ readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
294
+ /**
295
+ * Field showLabel
296
+ */
297
+ readonly showLabel: _angular_core.InputSignal<boolean>;
298
+ /**
299
+ * Field placeholder
300
+ */
301
+ readonly placeholder: _angular_core.InputSignal<string | undefined>;
302
+ /**
303
+ * Field placeholder
304
+ */
305
+ readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
306
+ /**
307
+ * Wheter a disable switch should be available
308
+ */
309
+ readonly disableSwitch: _angular_core.InputSignal<boolean>;
310
+ /**
311
+ * Whether the field is required
312
+ */
313
+ get required(): boolean;
314
+ ngOnInit(): void;
315
+ /**
316
+ * Get error message
317
+ */
318
+ getErrorMessage(): string;
319
+ onDisableSwitchClick(): void;
320
+ private toggleDisabled;
321
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldNumberComponent, never>;
322
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldNumberComponent, "igo-form-field-number", never, { "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "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>;
323
+ }
324
+
325
+ /**
326
+ * This component renders a select field
327
+ */
328
+ declare class FormFieldSelectComponent implements OnInit {
329
+ readonly disabled: _angular_core.WritableSignal<boolean>;
330
+ /**
331
+ * Select input choices
332
+ */
333
+ readonly choices: _angular_core.InputSignal<FormFieldSelectChoice[]>;
334
+ /**
335
+ * If the select allow multiple selections
336
+ */
337
+ readonly multiple: _angular_core.InputSignal<boolean>;
338
+ /**
339
+ * The field's form control
340
+ */
341
+ readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
342
+ /**
343
+ * Field showLabel
344
+ */
345
+ readonly showLabel: _angular_core.InputSignal<boolean>;
346
+ /**
347
+ * Field placeholder
348
+ */
349
+ readonly placeholder: _angular_core.InputSignal<string | undefined>;
350
+ /**
351
+ * Field placeholder
352
+ */
353
+ readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
354
+ /**
355
+ * Wheter a disable switch should be available
356
+ */
357
+ readonly disableSwitch: _angular_core.InputSignal<boolean>;
358
+ /**
359
+ * Whether the field is required
360
+ */
361
+ get required(): boolean;
362
+ ngOnInit(): void;
363
+ /**
364
+ * Get error message
365
+ */
366
+ getErrorMessage(): string;
367
+ onDisableSwitchClick(): void;
368
+ private toggleDisabled;
369
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldSelectComponent, never>;
370
+ static ɵcmp: _angular_core.ɵɵ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": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "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>;
371
+ }
372
+
373
+ /**
374
+ * This component renders a text field
375
+ */
376
+ declare class FormFieldTextComponent implements OnInit {
377
+ private cdRef;
378
+ readonly disabled: _angular_core.WritableSignal<boolean>;
379
+ hide: boolean;
380
+ private lastTimeoutRequest?;
381
+ /**
382
+ * The field's form control
383
+ */
384
+ readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
385
+ /**
386
+ * Field showLabel
387
+ */
388
+ readonly showLabel: _angular_core.InputSignal<boolean>;
389
+ /**
390
+ * Field placeholder
391
+ */
392
+ readonly placeholder: _angular_core.InputSignal<string | undefined>;
393
+ /**
394
+ * if the input is a password
395
+ */
396
+ readonly isPassword: _angular_core.InputSignal<boolean | undefined>;
397
+ /**
398
+ * Field placeholder
399
+ */
400
+ readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
401
+ /**
402
+ * Wheter a disable switch should be available
403
+ */
404
+ readonly disableSwitch: _angular_core.InputSignal<boolean>;
405
+ /**
406
+ * Whether the field is required
407
+ */
408
+ get required(): boolean;
409
+ ngOnInit(): void;
410
+ /**
411
+ * Get error message
412
+ */
413
+ getErrorMessage(): string;
414
+ onDisableSwitchClick(): void;
415
+ private toggleDisabled;
416
+ togglePassword(): void;
417
+ delayedHide(delayMS?: number): void;
418
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldTextComponent, never>;
419
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldTextComponent, "igo-form-field-text", never, { "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "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>;
420
+ }
421
+
422
+ /**
423
+ * This component renders a textarea field
424
+ */
425
+ declare class FormFieldTextareaComponent implements OnInit {
426
+ readonly disabled: _angular_core.WritableSignal<boolean>;
427
+ /**
428
+ * The field's form control
429
+ */
430
+ readonly formControl: _angular_core.InputSignal<UntypedFormControl>;
431
+ /**
432
+ * Field showLabel
433
+ */
434
+ readonly showLabel: _angular_core.InputSignal<boolean>;
435
+ /**
436
+ * Field placeholder
437
+ */
438
+ readonly placeholder: _angular_core.InputSignal<string | undefined>;
439
+ /**
440
+ * Field placeholder
441
+ */
442
+ readonly errors: _angular_core.InputSignal<Record<string, string> | undefined>;
443
+ /**
444
+ * Wheter a disable switch should be available
445
+ */
446
+ readonly disableSwitch: _angular_core.InputSignal<boolean>;
447
+ /**
448
+ * Whether the field is required
449
+ */
450
+ get required(): boolean;
451
+ ngOnInit(): void;
452
+ /**
453
+ * Get error message
454
+ */
455
+ getErrorMessage(): string;
456
+ onDisableSwitchClick(): void;
457
+ private toggleDisabled;
458
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldTextareaComponent, never>;
459
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldTextareaComponent, "igo-form-field-textarea", never, { "formControl": { "alias": "formControl"; "required": true; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "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>;
460
+ }
461
+
462
+ declare const FORM_DIRECTIVES: readonly [typeof _igo2_common_form.FormFieldComponent, typeof _igo2_common_form.FormFieldDatetimeComponent, typeof _igo2_common_form.FormFieldNumberComponent, typeof _igo2_common_form.FormFieldSelectComponent, typeof _igo2_common_form.FormFieldTextComponent, typeof _igo2_common_form.FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent];
463
+ /**
464
+ * @deprecated import the components directly or FORM_DIRECTIVES for every components/directives
465
+ */
466
+ declare class IgoFormModule {
467
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormModule, never>;
468
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormModule, never, [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent], [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent, typeof FormGroupComponent, typeof FormComponent]>;
469
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormModule>;
470
+ }
471
+
472
+ declare function formControlIsRequired(control: AbstractControl): boolean;
473
+ declare function getDefaultErrorMessages(): Record<string, string>;
474
+ declare function getControlErrorMessage(control: AbstractControl, messages: Record<string, string>): string;
475
+ declare function getAllFormFields(form: Form): FormField[];
476
+ declare function getFormFieldByName(form: Form, name: string): FormField | undefined;
477
+
478
+ declare class FormService {
479
+ private formBuilder;
480
+ form(fields: FormField[], groups: FormFieldGroup[]): Form;
481
+ group(config: FormFieldGroupConfig, fields: FormField[]): FormFieldGroup;
482
+ field(config: FormFieldConfig): FormField;
483
+ extendFieldConfig(config: FormFieldConfig, partial: Partial<FormFieldConfig>): FormFieldConfig;
484
+ private getValidators;
485
+ private getValidator;
486
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormService, never>;
487
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormService>;
488
+ }
489
+
490
+ /**
491
+ * Service where all available form fields are registered.
492
+ */
493
+ declare class FormFieldService {
494
+ static fields: Record<string, any>;
495
+ static register(type: string, component: any): void;
496
+ /**
497
+ * Return field component by type
498
+ * @param type Field type
499
+ * @returns Field component
500
+ */
501
+ getFieldByType(type: string): any;
502
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldService, never>;
503
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormFieldService>;
504
+ }
505
+
506
+ declare function IgoFormFieldComponent(type: string): (cls: any) => any;
507
+
508
+ /**
509
+ * @deprecated import the components directly or FORM_FIELD_DIRECTIVES for every components/directives
510
+ */
511
+ declare class IgoFormFieldModule {
512
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormFieldModule, never>;
513
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormFieldModule, never, [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent], [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent]>;
514
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormFieldModule>;
515
+ }
516
+
517
+ declare const FORM_FIELD_DIRECTIVES: readonly [typeof FormFieldComponent, typeof FormFieldDatetimeComponent, typeof FormFieldNumberComponent, typeof FormFieldSelectComponent, typeof FormFieldTextComponent, typeof FormFieldTextareaComponent];
518
+
519
+ interface FormDialogFormConfig {
520
+ formFieldConfigs?: FormFieldConfig[];
521
+ formGroupsConfigs?: FormGroupsConfig[];
522
+ }
523
+ interface FormDialogData extends FormDialogOptions, FormDialogFormConfig {
524
+ }
525
+ interface FormDialogOptions extends MatDialogConfig {
526
+ data$?: BehaviorSubject<Record<string, any>>;
527
+ title?: string;
528
+ processButtonText?: string;
529
+ cancelButtonText?: string;
530
+ notice?: string;
531
+ }
532
+
533
+ declare class FormDialogComponent {
534
+ languageService: LanguageService;
535
+ dialogRef: MatDialogRef<FormDialogComponent, any>;
536
+ private formService;
537
+ data: FormDialogData;
538
+ form$: BehaviorSubject<Form | undefined>;
539
+ data$: BehaviorSubject<Record<string, any>>;
540
+ constructor();
541
+ onSubmit(data: Record<string, unknown>): void;
542
+ cancel(): void;
543
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormDialogComponent, never>;
544
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, true, never>;
545
+ }
546
+
547
+ /**
548
+ * @deprecated import the FlexibleComponent directly
549
+ */
550
+ declare class IgoFormDialogModule {
551
+ /**
552
+ * @deprecated it has no effect
553
+ */
554
+ static forRoot(): ModuleWithProviders<IgoFormDialogModule>;
555
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IgoFormDialogModule, never>;
556
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IgoFormDialogModule, never, [typeof i1.MatDialogModule, typeof FormDialogComponent], [typeof FormDialogComponent]>;
557
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<IgoFormDialogModule>;
558
+ }
559
+
560
+ declare class FormDialogService {
561
+ private dialog;
562
+ open(formDialogConfig?: FormDialogFormConfig, options?: FormDialogOptions): Observable<Record<string, any>>;
563
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormDialogService, never>;
564
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormDialogService>;
565
+ }
566
+
567
+ export { FORM_DIRECTIVES, FORM_FIELD_DIRECTIVES, FormComponent, FormDialogComponent, FormDialogService, FormFieldComponent, FormFieldDatetimeComponent, FormFieldNumberComponent, FormFieldSelectComponent, FormFieldService, FormFieldTextComponent, FormFieldTextareaComponent, FormGroupComponent, FormService, IgoFormDialogModule, IgoFormFieldComponent, IgoFormFieldModule, IgoFormFormModule, IgoFormGroupModule, IgoFormModule, formControlIsRequired, getAllFormFields, getControlErrorMessage, getDefaultErrorMessages, getFormFieldByName };
568
+ export type { Form, FormDialogData, FormDialogFormConfig, FormDialogOptions, FormField, FormFieldConfig, FormFieldGroup, FormFieldGroupConfig, FormFieldGroupOptions, FormFieldInputs, FormFieldOptions, FormFieldSelectChoice, FormFieldSelectInputs, FormFieldSubscribers, FormGroupsConfig };
@@ -30,7 +30,7 @@ declare function provideIcon(style?: MaterialSymbolStyle): EnvironmentProviders;
30
30
 
31
31
  declare class IgoIconComponent {
32
32
  private iconService;
33
- readonly color: i0.InputSignal<string>;
33
+ readonly color: i0.InputSignal<string | null | undefined>;
34
34
  readonly icon: i0.InputSignal<string | IconSvg>;
35
35
  constructor();
36
36
  registerSvg(icon: IconSvg): void;
@@ -13,7 +13,7 @@ declare class InteractiveTourComponent {
13
13
  * Toolbox that holds main tools
14
14
  */
15
15
  readonly tourToStart: i0.InputSignal<string>;
16
- readonly styleButton: i0.InputSignal<"icon" | "raised">;
16
+ readonly styleButton: i0.InputSignal<"icon" | "raised" | undefined>;
17
17
  readonly discoverTitleInLocale$: i0.InputSignal<Observable<string>>;
18
18
  constructor();
19
19
  getClass(): {
@@ -21,8 +21,8 @@ declare class InteractiveTourComponent {
21
21
  'tour-button-tool': boolean;
22
22
  };
23
23
  get toolbox(): _igo2_common_tool.Toolbox;
24
- getTourToStart(): string;
25
- get activeToolName(): string;
24
+ getTourToStart(): string | undefined;
25
+ get activeToolName(): string | undefined;
26
26
  get isActiveTool(): boolean;
27
27
  get isToolHaveTour(): boolean;
28
28
  get showTourButton(): boolean;
@@ -45,7 +45,7 @@ declare class InteractiveTourService {
45
45
  private languageService;
46
46
  private interactiveTourLoader;
47
47
  private shepherdService;
48
- private previousStep;
48
+ private previousStep?;
49
49
  constructor();
50
50
  isAppHaveTour(): any;
51
51
  isToolHaveTourConfig(toolName: string): boolean;
@@ -102,12 +102,12 @@ declare class InteractiveTourLoader {
102
102
  private http;
103
103
  private configService;
104
104
  private jsonURL;
105
- private allToursOptions;
105
+ private allToursOptions?;
106
106
  constructor();
107
107
  loadConfigTour(): void;
108
108
  getPathToConfigFile(): string;
109
109
  getJSON(): Observable<any>;
110
- getTourOptionData(toolName: any): InteractiveTourOptions;
110
+ getTourOptionData(toolName: string): InteractiveTourOptions | undefined;
111
111
  static ɵfac: i0.ɵɵFactoryDeclaration<InteractiveTourLoader, never>;
112
112
  static ɵprov: i0.ɵɵInjectableDeclaration<InteractiveTourLoader>;
113
113
  }
@@ -5,11 +5,11 @@ import { Observable } from 'rxjs';
5
5
 
6
6
  declare class JsonDialogComponent {
7
7
  dialogRef: MatDialogRef<JsonDialogComponent, any>;
8
- title: string;
8
+ title?: string;
9
9
  data: any;
10
- ignoreKeys: string[];
10
+ ignoreKeys?: string[];
11
11
  isObject(val: any): boolean;
12
- getKey(baseKey: any, key: any): string;
12
+ getKey(baseKey: string, key: string): string;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<JsonDialogComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<JsonDialogComponent, "igo-json-dialog", never, {}, {}, never, never, true, never>;
15
15
  }
@@ -26,7 +26,7 @@ declare class IgoJsonDialogModule {
26
26
 
27
27
  declare class JsonDialogService {
28
28
  private dialog;
29
- open(title: any, data: any, ignoreKeys?: string[]): Observable<any>;
29
+ open(title: string, data: any, ignoreKeys?: string[]): Observable<any>;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<JsonDialogService, never>;
31
31
  static ɵprov: i0.ɵɵInjectableDeclaration<JsonDialogService>;
32
32
  }
@@ -2,7 +2,10 @@ import * as i0 from '@angular/core';
2
2
  import { PipeTransform, ModuleWithProviders } from '@angular/core';
3
3
 
4
4
  declare class KeyValuePipe implements PipeTransform {
5
- transform(value: any): any;
5
+ transform(value: any): {
6
+ key: string;
7
+ value: any;
8
+ }[];
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<KeyValuePipe, never>;
7
10
  static ɵpipe: i0.ɵɵPipeDeclaration<KeyValuePipe, "keyvalue", true>;
8
11
  }