@jm-7c3/common-lib 21.1.0 → 22.1.0

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.
@@ -1,33 +1,34 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, ElementRef, InjectionToken } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit, AfterViewInit, Type, OnDestroy, ElementRef, InjectionToken } from '@angular/core';
3
3
  import { Observable, Subscription } from 'rxjs';
4
- import { UntypedFormGroup, ControlValueAccessor, Validator, FormArray, FormControl, FormGroup, AbstractControl, ValidationErrors, FormControlName } from '@angular/forms';
4
+ import { UntypedFormGroup, FormGroup, ControlValueAccessor, Validator, FormArray, FormControl, AbstractControl, ValidationErrors, FormControlName } from '@angular/forms';
5
+ import { MatDialogConfig } from '@angular/material/dialog';
5
6
 
6
7
  type ButtonColor = 'danger' | 'link' | 'main' | 'primary' | 'secondary';
7
8
 
8
9
  declare class ButtonComponent {
9
- readonly color: i0.InputSignal<ButtonColor>;
10
- readonly disabled: i0.InputSignal<boolean>;
11
- readonly icon: i0.InputSignal<string | undefined>;
12
- readonly label: i0.InputSignal<string | undefined>;
13
- readonly loading: i0.InputSignal<boolean>;
14
- readonly type: i0.InputSignal<"button" | "submit">;
15
- readonly buttonClass: i0.WritableSignal<string>;
10
+ readonly color: _angular_core.InputSignal<ButtonColor>;
11
+ readonly disabled: _angular_core.InputSignal<boolean>;
12
+ readonly icon: _angular_core.InputSignal<string | undefined>;
13
+ readonly label: _angular_core.InputSignal<string | undefined>;
14
+ readonly loading: _angular_core.InputSignal<boolean>;
15
+ readonly type: _angular_core.InputSignal<"button" | "submit">;
16
+ readonly buttonClass: _angular_core.WritableSignal<string>;
16
17
  constructor();
17
- static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "cl-button", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
19
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "cl-button", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
20
  }
20
21
 
21
22
  declare class ConfirmationComponent {
22
23
  private readonly env;
23
24
  private readonly clStateService;
24
25
  private readonly confirmationService;
25
- readonly acceptLabel: i0.WritableSignal<string>;
26
- readonly cancelLabel: i0.WritableSignal<string>;
26
+ readonly acceptLabel: _angular_core.WritableSignal<string>;
27
+ readonly cancelLabel: _angular_core.WritableSignal<string>;
27
28
  constructor(env: any);
28
29
  private openConfirmDialog;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationComponent, "cl-confirmation", never, {}, {}, never, never, true, never>;
30
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmationComponent, never>;
31
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmationComponent, "cl-confirmation", never, {}, {}, never, never, true, never>;
31
32
  }
32
33
 
33
34
  interface ConfirmationData {
@@ -43,22 +44,22 @@ declare class ConfirmationService {
43
44
  confirm({ data, header, key, message, type }: ConfirmationData): void;
44
45
  onAccept(key: string): Observable<any>;
45
46
  onCancel(key: string): Observable<null>;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
47
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
47
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmationService, never>;
48
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ConfirmationService>;
48
49
  }
49
50
 
50
51
  declare class ContentDialogComponent implements OnInit {
51
52
  private readonly env;
52
53
  private readonly dialogConfig;
53
54
  private readonly dialogRef;
54
- readonly component: i0.WritableSignal<any>;
55
- readonly closeLabel: i0.WritableSignal<string>;
56
- readonly header: i0.WritableSignal<string>;
55
+ readonly component: _angular_core.WritableSignal<any>;
56
+ readonly closeLabel: _angular_core.WritableSignal<string>;
57
+ readonly header: _angular_core.WritableSignal<string>;
57
58
  constructor(env: any);
58
59
  ngOnInit(): void;
59
60
  onClose(): void;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentDialogComponent, never>;
61
- static ɵcmp: i0.ɵɵComponentDeclaration<ContentDialogComponent, "cl-content-dialog", never, {}, {}, never, never, true, never>;
61
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentDialogComponent, never>;
62
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentDialogComponent, "cl-content-dialog", never, {}, {}, never, never, true, never>;
62
63
  }
63
64
 
64
65
  interface ContentDialogData {
@@ -79,8 +80,8 @@ declare class ContentDialogService {
79
80
  key: string;
80
81
  }>;
81
82
  open(data: ContentDialogData): void;
82
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentDialogService, never>;
83
- static ɵprov: i0.ɵɵInjectableDeclaration<ContentDialogService>;
83
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentDialogService, never>;
84
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ContentDialogService>;
84
85
  }
85
86
 
86
87
  declare class FormDialogComponent implements OnInit {
@@ -89,17 +90,17 @@ declare class FormDialogComponent implements OnInit {
89
90
  private readonly dialogConfig;
90
91
  private readonly dialogRef;
91
92
  private readonly formContainer;
92
- readonly cancelLabel: i0.WritableSignal<string>;
93
- readonly form: i0.WritableSignal<UntypedFormGroup | null>;
94
- readonly header: i0.WritableSignal<string>;
95
- readonly hideSubmitButton: i0.WritableSignal<boolean>;
96
- readonly submitLabel: i0.WritableSignal<string>;
93
+ readonly cancelLabel: _angular_core.WritableSignal<string>;
94
+ readonly form: _angular_core.WritableSignal<UntypedFormGroup | null>;
95
+ readonly header: _angular_core.WritableSignal<string>;
96
+ readonly hideSubmitButton: _angular_core.WritableSignal<boolean>;
97
+ readonly submitLabel: _angular_core.WritableSignal<string>;
97
98
  constructor(env: any);
98
99
  ngOnInit(): void;
99
100
  onCancel(): void;
100
101
  onSubmit(): void;
101
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
102
- static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "cl-form-dialog", never, {}, {}, never, never, true, never>;
102
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormDialogComponent, never>;
103
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormDialogComponent, "cl-form-dialog", never, {}, {}, never, never, true, never>;
103
104
  }
104
105
 
105
106
  interface FormDialogData {
@@ -122,46 +123,117 @@ declare class FormDialogService {
122
123
  onCancel(key: string): Observable<null>;
123
124
  onSubmit(key: string): Observable<any>;
124
125
  open(data: FormDialogData): void;
125
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogService, never>;
126
- static ɵprov: i0.ɵɵInjectableDeclaration<FormDialogService>;
126
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormDialogService, never>;
127
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<FormDialogService>;
127
128
  }
128
129
 
129
130
  declare class IconButtonComponent {
130
- readonly disabled: i0.InputSignal<boolean>;
131
- readonly icon: i0.InputSignal<string>;
132
- readonly loading: i0.InputSignal<boolean>;
133
- readonly severity: i0.InputSignal<Severity>;
134
- readonly type: i0.InputSignal<"button" | "submit">;
135
- readonly class: i0.WritableSignal<string>;
131
+ readonly disabled: _angular_core.InputSignal<boolean>;
132
+ readonly icon: _angular_core.InputSignal<string>;
133
+ readonly loading: _angular_core.InputSignal<boolean>;
134
+ readonly severity: _angular_core.InputSignal<Severity>;
135
+ readonly type: _angular_core.InputSignal<"button" | "submit">;
136
+ readonly class: _angular_core.WritableSignal<string>;
136
137
  constructor();
137
138
  private updateClass;
138
- static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
139
- static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "cl-icon-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
139
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconButtonComponent, never>;
140
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconButtonComponent, "cl-icon-button", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
140
141
  }
141
142
  type Severity = '' | 'danger' | 'help' | 'info' | 'secondary' | 'success' | 'warning';
142
143
 
144
+ interface MatConfirmationData {
145
+ title: string;
146
+ message?: string;
147
+ component?: Type<unknown>;
148
+ componentData?: unknown;
149
+ acceptButtonLabel?: string;
150
+ cancelButtonLabel?: string;
151
+ }
152
+ declare class MatConfirmationComponent implements AfterViewInit {
153
+ private readonly data;
154
+ private readonly contentHost;
155
+ protected readonly title: _angular_core.WritableSignal<string>;
156
+ protected readonly message: _angular_core.WritableSignal<string | undefined>;
157
+ protected readonly acceptButtonLabel: _angular_core.WritableSignal<string>;
158
+ protected readonly cancelButtonLabel: _angular_core.WritableSignal<string>;
159
+ ngAfterViewInit(): void;
160
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatConfirmationComponent, never>;
161
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatConfirmationComponent, "cl-mat-confirmation", never, {}, {}, never, never, true, never>;
162
+ }
163
+
164
+ type MatConfirmationConfig = Omit<MatConfirmationData, 'component' | 'componentData'> & {};
165
+ type MatConfirmationComponentConfig<T> = Omit<MatConfirmationData, 'message' | 'component'> & {
166
+ component: Type<T>;
167
+ };
168
+ declare class MatConfirmationService {
169
+ private readonly dialog;
170
+ confirm(data: MatConfirmationConfig | MatConfirmationComponentConfig<unknown>, width?: string): Observable<boolean>;
171
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatConfirmationService, never>;
172
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<MatConfirmationService>;
173
+ }
174
+
175
+ interface MatFormDialogConfig {
176
+ actionsAlign?: 'center' | 'end' | 'start';
177
+ cancelButtonLabel?: string;
178
+ submitButtonLabel?: string;
179
+ }
180
+ declare abstract class MatFormHostableComponent {
181
+ abstract form: FormGroup;
182
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatFormHostableComponent, never>;
183
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatFormHostableComponent, never, never, {}, {}, never, never, true, never>;
184
+ }
185
+ declare class MatFormDialogComponent implements AfterViewInit, OnDestroy {
186
+ private readonly data;
187
+ private readonly dialogRef;
188
+ private readonly formHost;
189
+ protected readonly actionsAlign: _angular_core.WritableSignal<"center" | "end" | "start" | undefined>;
190
+ protected readonly cancelButtonLabel: _angular_core.WritableSignal<string>;
191
+ protected readonly submitButtonLabel: _angular_core.WritableSignal<string>;
192
+ protected isFormValid: _angular_core.WritableSignal<boolean>;
193
+ private hostedComponentRef?;
194
+ private readonly destroy$;
195
+ protected readonly title: _angular_core.WritableSignal<string>;
196
+ ngAfterViewInit(): void;
197
+ ngOnDestroy(): void;
198
+ protected onSubmit(): void;
199
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatFormDialogComponent, never>;
200
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatFormDialogComponent, "cl-mat-form-dialog", never, {}, {}, never, never, true, never>;
201
+ }
202
+
203
+ interface MatFormDialogData {
204
+ formDialogConfig?: MatFormDialogConfig;
205
+ formValue?: any;
206
+ matDialogConfig?: MatDialogConfig;
207
+ }
208
+ declare class MatFormDialogService {
209
+ private readonly dialog;
210
+ open<T extends MatFormHostableComponent, R = unknown>(component: Type<T>, dialogTitle: string, data?: MatFormDialogData): Observable<R>;
211
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatFormDialogService, never>;
212
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<MatFormDialogService>;
213
+ }
214
+
143
215
  declare class ProgressBarDialogComponent {
144
216
  private readonly cdRef;
145
217
  private readonly clStateService;
146
218
  visible: boolean;
147
219
  constructor();
148
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDialogComponent, never>;
149
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarDialogComponent, "cl-progress-bar-dialog", never, {}, {}, never, never, true, never>;
220
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarDialogComponent, never>;
221
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarDialogComponent, "cl-progress-bar-dialog", never, {}, {}, never, never, true, never>;
150
222
  }
151
223
 
152
224
  declare class ProgressBarDialogService {
153
225
  private readonly clStateService;
154
226
  close(): void;
155
227
  open(): void;
156
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDialogService, never>;
157
- static ɵprov: i0.ɵɵInjectableDeclaration<ProgressBarDialogService>;
228
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarDialogService, never>;
229
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ProgressBarDialogService>;
158
230
  }
159
231
 
160
232
  declare class ReadonlyValueComponent {
161
- readonly label: i0.InputSignal<string | undefined>;
162
- readonly value: i0.InputSignal<any>;
163
- static ɵfac: i0.ɵɵFactoryDeclaration<ReadonlyValueComponent, never>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<ReadonlyValueComponent, "cl-readonly-value", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
233
+ readonly label: _angular_core.InputSignal<string | undefined>;
234
+ readonly value: _angular_core.InputSignal<any>;
235
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReadonlyValueComponent, never>;
236
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReadonlyValueComponent, "cl-readonly-value", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
165
237
  }
166
238
 
167
239
  declare class ToastsComponent {
@@ -169,8 +241,8 @@ declare class ToastsComponent {
169
241
  private readonly messageService;
170
242
  constructor();
171
243
  private add;
172
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastsComponent, never>;
173
- static ɵcmp: i0.ɵɵComponentDeclaration<ToastsComponent, "cl-toasts", never, {}, {}, never, never, true, never>;
244
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastsComponent, never>;
245
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastsComponent, "cl-toasts", never, {}, {}, never, never, true, never>;
174
246
  }
175
247
 
176
248
  interface ToastData {
@@ -184,13 +256,13 @@ declare class ToastsService {
184
256
  toastError(detail: string, summary?: string): void;
185
257
  toastSuccess(detail: string, summary?: string): void;
186
258
  toastWarning(detail: string, summary?: string): void;
187
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastsService, never>;
188
- static ɵprov: i0.ɵɵInjectableDeclaration<ToastsService>;
259
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastsService, never>;
260
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastsService>;
189
261
  }
190
262
 
191
263
  declare class BaseFormComponent implements ControlValueAccessor, OnDestroy, Validator {
192
264
  readonly control: FormArray<any> | FormControl<any> | FormGroup<any>;
193
- readonly disabled: i0.WritableSignal<boolean>;
265
+ readonly disabled: _angular_core.WritableSignal<boolean>;
194
266
  protected readonly subscription: Subscription;
195
267
  ngOnDestroy(): void;
196
268
  registerOnChange(fn: any): void;
@@ -205,21 +277,21 @@ declare class BaseFormComponent implements ControlValueAccessor, OnDestroy, Vali
205
277
  get formArray(): FormArray;
206
278
  get formControl(): FormControl;
207
279
  get formGroup(): FormGroup;
208
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormComponent, never>;
209
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormComponent, "ng-component", never, {}, {}, never, never, true, never>;
280
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormComponent, never>;
281
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseFormComponent, "ng-component", never, {}, {}, never, never, true, never>;
210
282
  }
211
283
 
212
284
  declare class FileInputComponent implements ControlValueAccessor {
213
- readonly directory: i0.InputSignal<string>;
214
- readonly icon: i0.InputSignal<string>;
215
- readonly label: i0.InputSignal<string>;
216
- readonly readonly: i0.InputSignal<boolean>;
217
- readonly onDownloadEmitter: i0.OutputEmitterRef<FileInput[]>;
218
- readonly fileInput: i0.Signal<ElementRef<any> | undefined>;
219
- readonly fileName: i0.WritableSignal<string>;
220
- readonly isDisabled: i0.WritableSignal<boolean>;
221
- readonly isFileSelected: i0.WritableSignal<boolean>;
222
- readonly value: i0.WritableSignal<FileInputValue>;
285
+ readonly directory: _angular_core.InputSignal<string>;
286
+ readonly icon: _angular_core.InputSignal<string>;
287
+ readonly label: _angular_core.InputSignal<string>;
288
+ readonly readonly: _angular_core.InputSignal<boolean>;
289
+ readonly onDownloadEmitter: _angular_core.OutputEmitterRef<FileInput[]>;
290
+ readonly fileInput: _angular_core.Signal<ElementRef<any> | undefined>;
291
+ readonly fileName: _angular_core.WritableSignal<string>;
292
+ readonly isDisabled: _angular_core.WritableSignal<boolean>;
293
+ readonly isFileSelected: _angular_core.WritableSignal<boolean>;
294
+ readonly value: _angular_core.WritableSignal<FileInputValue$1>;
223
295
  registerOnChange(fn: any): void;
224
296
  registerOnTouched(fn: any): void;
225
297
  setDisabledState(isDisabled: boolean): void;
@@ -236,8 +308,8 @@ declare class FileInputComponent implements ControlValueAccessor {
236
308
  private onTouched;
237
309
  private selectFile;
238
310
  private setValue;
239
- static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent, never>;
240
- static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent, "cl-file-input", never, { "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onDownloadEmitter": "onDownload"; }, never, never, true, never>;
311
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileInputComponent, never>;
312
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileInputComponent, "cl-file-input", never, { "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onDownloadEmitter": "onDownload"; }, never, never, true, never>;
241
313
  }
242
314
  interface FileInput {
243
315
  file?: File;
@@ -247,52 +319,112 @@ interface FileInput {
247
319
  path: string;
248
320
  toDelete: boolean;
249
321
  }
250
- type FileInputValue = FileInput[] | null;
322
+ type FileInputValue$1 = FileInput[] | null;
251
323
 
252
324
  declare class FileInputsComponent extends BaseFormComponent {
253
325
  private readonly cdRef;
254
- readonly directory: i0.InputSignal<string>;
255
- readonly icon: i0.InputSignal<string>;
256
- readonly label: i0.InputSignal<string>;
257
- readonly max: i0.InputSignal<number>;
258
- readonly readonly: i0.InputSignal<boolean>;
259
- readonly onDownloadEmitter: i0.OutputEmitterRef<FileInput[]>;
326
+ readonly directory: _angular_core.InputSignal<string>;
327
+ readonly icon: _angular_core.InputSignal<string>;
328
+ readonly label: _angular_core.InputSignal<string>;
329
+ readonly max: _angular_core.InputSignal<number>;
330
+ readonly readonly: _angular_core.InputSignal<boolean>;
331
+ readonly onDownloadEmitter: _angular_core.OutputEmitterRef<FileInput[]>;
260
332
  onAdd(): void;
261
333
  onDelete(index: number): void;
262
334
  onDownload(file: FileInput[]): void;
263
335
  setDisabledState(isDisabled: boolean): void;
264
336
  validate(control?: AbstractControl): ValidationErrors | null;
265
- writeValue(value: FileInputsValue): void;
337
+ writeValue(value: FileInputsValue$1): void;
266
338
  protected getForm(): FormArray<any>;
267
- static ɵfac: i0.ɵɵFactoryDeclaration<FileInputsComponent, never>;
268
- static ɵcmp: i0.ɵɵComponentDeclaration<FileInputsComponent, "cl-file-inputs", never, { "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onDownloadEmitter": "onDownload"; }, never, never, true, never>;
339
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileInputsComponent, never>;
340
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileInputsComponent, "cl-file-inputs", never, { "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onDownloadEmitter": "onDownload"; }, never, never, true, never>;
269
341
  }
270
- type FileInputsValue = FileInput[][] | null;
342
+ type FileInputsValue$1 = FileInput[][] | null;
271
343
 
272
344
  declare const ERROR_DIRECTIVE: InjectionToken<ErrorDirective>;
273
345
  declare class ErrorDirective {
274
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorDirective, never>;
275
- static ɵdir: i0.ɵɵDirectiveDeclaration<ErrorDirective, "ff-error", never, {}, {}, never, never, true, never>;
346
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ErrorDirective, never>;
347
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ErrorDirective, "ff-error", never, {}, {}, never, never, true, never>;
276
348
  }
277
349
 
278
350
  declare const FORM_FIELD: InjectionToken<FormFieldComponent>;
279
351
  declare class FormFieldComponent {
280
- readonly control: i0.Signal<FormControlName | undefined>;
281
- readonly isRequired: i0.Signal<boolean>;
282
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
283
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "cl-form-field", never, {}, {}, ["control"], ["ff-label", "*", "ff-error"], true, never>;
352
+ readonly control: _angular_core.Signal<FormControlName | undefined>;
353
+ readonly isRequired: _angular_core.Signal<boolean>;
354
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, never>;
355
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "cl-form-field", never, {}, {}, ["control"], ["ff-label", "*", "ff-error"], true, never>;
284
356
  }
285
357
 
286
358
  declare const LABEL_DIRECTIVE: InjectionToken<LabelDirective>;
287
359
  declare class LabelDirective {
288
- static ɵfac: i0.ɵɵFactoryDeclaration<LabelDirective, never>;
289
- static ɵdir: i0.ɵɵDirectiveDeclaration<LabelDirective, "ff-label", never, {}, {}, never, never, true, never>;
360
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LabelDirective, never>;
361
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LabelDirective, "ff-label", never, {}, {}, never, never, true, never>;
290
362
  }
291
363
 
292
364
  declare class FormFieldModule {
293
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldModule, never>;
294
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldModule, never, [typeof ErrorDirective, typeof FormFieldComponent, typeof LabelDirective], [typeof ErrorDirective, typeof FormFieldComponent, typeof LabelDirective]>;
295
- static ɵinj: i0.ɵɵInjectorDeclaration<FormFieldModule>;
365
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldModule, never>;
366
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FormFieldModule, never, [typeof ErrorDirective, typeof FormFieldComponent, typeof LabelDirective], [typeof ErrorDirective, typeof FormFieldComponent, typeof LabelDirective]>;
367
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<FormFieldModule>;
368
+ }
369
+
370
+ interface MatFileInput {
371
+ file?: File;
372
+ hash: string;
373
+ isNew: boolean;
374
+ name: string;
375
+ path: string;
376
+ toDelete: boolean;
377
+ }
378
+ type FileInputValue = MatFileInput[] | null;
379
+ declare class MatFileInputComponent implements ControlValueAccessor {
380
+ readonly directory: _angular_core.InputSignal<string>;
381
+ readonly icon: _angular_core.InputSignal<string>;
382
+ readonly label: _angular_core.InputSignal<string>;
383
+ readonly readonly: _angular_core.InputSignal<boolean>;
384
+ readonly onDownloadEmitter: _angular_core.OutputEmitterRef<MatFileInput[]>;
385
+ readonly fileInput: _angular_core.Signal<ElementRef<any> | undefined>;
386
+ readonly fileName: _angular_core.WritableSignal<string>;
387
+ readonly isDisabled: _angular_core.WritableSignal<boolean>;
388
+ readonly isFileSelected: _angular_core.WritableSignal<boolean>;
389
+ readonly value: _angular_core.WritableSignal<FileInputValue>;
390
+ registerOnChange(fn: any): void;
391
+ registerOnTouched(fn: any): void;
392
+ setDisabledState(isDisabled: boolean): void;
393
+ writeValue(value?: MatFileInput[] | string | null): void;
394
+ onClick(): void;
395
+ onFileSelected(event: Event): void;
396
+ onDelete(): void;
397
+ onDownload(): void;
398
+ private getFileNameParts;
399
+ private getHashFromFileName;
400
+ private getLastFile;
401
+ private getSafeFileName;
402
+ private onChange;
403
+ private onTouched;
404
+ private selectFile;
405
+ private setValue;
406
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatFileInputComponent, never>;
407
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatFileInputComponent, "cl-mat-file-input", never, { "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onDownloadEmitter": "onDownload"; }, never, never, true, never>;
408
+ }
409
+
410
+ type FileInputsValue = MatFileInput[][] | null;
411
+ declare class MatFileInputsComponent extends BaseFormComponent {
412
+ private readonly cdRef;
413
+ readonly directory: _angular_core.InputSignal<string>;
414
+ readonly icon: _angular_core.InputSignal<string>;
415
+ readonly label: _angular_core.InputSignal<string>;
416
+ readonly max: _angular_core.InputSignal<number>;
417
+ readonly readonly: _angular_core.InputSignal<boolean>;
418
+ readonly onDownloadEmitter: _angular_core.OutputEmitterRef<MatFileInput[]>;
419
+ onAdd(): void;
420
+ onDelete(index: number): void;
421
+ onDownload(file: MatFileInput[]): void;
422
+ setDisabledState(isDisabled: boolean): void;
423
+ validate(control?: AbstractControl): ValidationErrors | null;
424
+ writeValue(value: FileInputsValue): void;
425
+ protected getForm(): FormArray<any>;
426
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatFileInputsComponent, never>;
427
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatFileInputsComponent, "cl-mat-file-inputs", never, { "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onDownloadEmitter": "onDownload"; }, never, never, true, never>;
296
428
  }
297
429
 
298
430
  interface ConfirmationConfig {
@@ -322,9 +454,9 @@ interface ClStateMessage {
322
454
  type ClStateMessageType = 'confirmation' | 'confirmation-accept' | 'confirmation-cancel' | 'content-dialog' | 'content-dialog-cancel' | 'content-dialog-close' | 'form-dialog' | 'form-dialog-cancel' | 'form-dialog-submit' | 'progess-bar-dialog-close' | 'progess-bar-dialog-open' | 'toast';
323
455
 
324
456
  declare class CommonLibModule {
325
- static ɵfac: i0.ɵɵFactoryDeclaration<CommonLibModule, never>;
326
- static ɵmod: i0.ɵɵNgModuleDeclaration<CommonLibModule, never, never, never>;
327
- static ɵinj: i0.ɵɵInjectorDeclaration<CommonLibModule>;
457
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommonLibModule, never>;
458
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<CommonLibModule, never, never, never>;
459
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<CommonLibModule>;
328
460
  }
329
461
 
330
462
  declare function concatWithToArray<T>(values: Observable<T>[]): Observable<T[]>;
@@ -335,9 +467,9 @@ declare class ClStateService {
335
467
  private readonly stateMessage$;
336
468
  onStateMessage(type: ClStateMessageType): Observable<ClStateMessage | null>;
337
469
  updateStateMessage(stateMessage: ClStateMessage | null): void;
338
- static ɵfac: i0.ɵɵFactoryDeclaration<ClStateService, never>;
339
- static ɵprov: i0.ɵɵInjectableDeclaration<ClStateService>;
470
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClStateService, never>;
471
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ClStateService>;
340
472
  }
341
473
 
342
- export { BaseFormComponent, ButtonComponent, ClStateService, CommonLibModule, ConfirmationComponent, ConfirmationService, ContentDialogComponent, ContentDialogService, ERROR_DIRECTIVE, ErrorDirective, FORM_FIELD, FileInputComponent, FileInputsComponent, FormDialogComponent, FormDialogService, FormFieldComponent, FormFieldModule, IconButtonComponent, LABEL_DIRECTIVE, LabelDirective, ProgressBarDialogComponent, ProgressBarDialogService, ReadonlyValueComponent, ToastsComponent, ToastsService, concatWithToArray };
343
- export type { ClState, ClStateMessage, ClStateMessageType, ConfirmationConfig, ConfirmationData, ContentDialogConfig, ContentDialogData, ContentDialogDataConfig, FieldOption, FileInput, FormDialogConfig, FormDialogData, FormDialogDataConfig, ToastData };
474
+ export { BaseFormComponent, ButtonComponent, ClStateService, CommonLibModule, ConfirmationComponent, ConfirmationService, ContentDialogComponent, ContentDialogService, ERROR_DIRECTIVE, ErrorDirective, FORM_FIELD, FileInputComponent, FileInputsComponent, FormDialogComponent, FormDialogService, FormFieldComponent, FormFieldModule, IconButtonComponent, LABEL_DIRECTIVE, LabelDirective, MatConfirmationComponent, MatConfirmationService, MatFileInputComponent, MatFileInputsComponent, MatFormDialogComponent, MatFormDialogService, MatFormHostableComponent, ProgressBarDialogComponent, ProgressBarDialogService, ReadonlyValueComponent, ToastsComponent, ToastsService, concatWithToArray };
475
+ export type { ClState, ClStateMessage, ClStateMessageType, ConfirmationConfig, ConfirmationData, ContentDialogConfig, ContentDialogData, ContentDialogDataConfig, FieldOption, FileInput, FormDialogConfig, FormDialogData, FormDialogDataConfig, MatConfirmationComponentConfig, MatConfirmationConfig, MatConfirmationData, MatFileInput, MatFormDialogConfig, MatFormDialogData, ToastData };
Binary file