@jm-7c3/common-lib 22.0.0 → 22.2.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.
- package/README.md +171 -6
- package/fesm2022/jm-7c3-common-lib.mjs +483 -73
- package/fesm2022/jm-7c3-common-lib.mjs.map +1 -1
- package/jm-7c3-common-lib-22.2.0.tgz +0 -0
- package/package.json +11 -3
- package/styles.css +2 -0
- package/types/jm-7c3-common-lib.d.ts +241 -99
- package/jm-7c3-common-lib-22.0.0.tgz +0 -0
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { OnInit, OnDestroy, ElementRef, InjectionToken } from '@angular/core';
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, AfterViewInit, Type, OnDestroy, TemplateRef, ElementRef, InjectionToken } from '@angular/core';
|
|
3
3
|
import { Observable, Subscription } from 'rxjs';
|
|
4
|
-
import { UntypedFormGroup, ControlValueAccessor, Validator, FormArray, FormControl,
|
|
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:
|
|
10
|
-
readonly disabled:
|
|
11
|
-
readonly icon:
|
|
12
|
-
readonly label:
|
|
13
|
-
readonly loading:
|
|
14
|
-
readonly type:
|
|
15
|
-
readonly buttonClass:
|
|
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:
|
|
18
|
-
static ɵcmp:
|
|
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:
|
|
26
|
-
readonly cancelLabel:
|
|
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:
|
|
30
|
-
static ɵcmp:
|
|
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:
|
|
47
|
-
static ɵprov:
|
|
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:
|
|
55
|
-
readonly closeLabel:
|
|
56
|
-
readonly header:
|
|
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:
|
|
61
|
-
static ɵcmp:
|
|
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:
|
|
83
|
-
static ɵprov:
|
|
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:
|
|
93
|
-
readonly form:
|
|
94
|
-
readonly header:
|
|
95
|
-
readonly hideSubmitButton:
|
|
96
|
-
readonly submitLabel:
|
|
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:
|
|
102
|
-
static ɵcmp:
|
|
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,127 @@ 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:
|
|
126
|
-
static ɵprov:
|
|
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:
|
|
131
|
-
readonly icon:
|
|
132
|
-
readonly loading:
|
|
133
|
-
readonly severity:
|
|
134
|
-
readonly type:
|
|
135
|
-
readonly class:
|
|
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:
|
|
139
|
-
static ɵcmp:
|
|
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
|
+
|
|
215
|
+
type PanelTemplate = TemplateRef<any> | undefined;
|
|
216
|
+
declare class PanelComponent {
|
|
217
|
+
protected readonly contentTemplate: _angular_core.Signal<PanelTemplate>;
|
|
218
|
+
protected readonly footerTemplate: _angular_core.Signal<PanelTemplate>;
|
|
219
|
+
protected readonly headerTemplate: _angular_core.Signal<PanelTemplate>;
|
|
220
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
221
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PanelComponent, never>;
|
|
222
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PanelComponent, "cl-panel", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, ["contentTemplate", "footerTemplate", "headerTemplate"], never, true, never>;
|
|
223
|
+
}
|
|
224
|
+
|
|
143
225
|
declare class ProgressBarDialogComponent {
|
|
144
226
|
private readonly cdRef;
|
|
145
227
|
private readonly clStateService;
|
|
146
228
|
visible: boolean;
|
|
147
229
|
constructor();
|
|
148
|
-
static ɵfac:
|
|
149
|
-
static ɵcmp:
|
|
230
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarDialogComponent, never>;
|
|
231
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarDialogComponent, "cl-progress-bar-dialog", never, {}, {}, never, never, true, never>;
|
|
150
232
|
}
|
|
151
233
|
|
|
152
234
|
declare class ProgressBarDialogService {
|
|
153
235
|
private readonly clStateService;
|
|
154
236
|
close(): void;
|
|
155
237
|
open(): void;
|
|
156
|
-
static ɵfac:
|
|
157
|
-
static ɵprov:
|
|
238
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarDialogService, never>;
|
|
239
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ProgressBarDialogService>;
|
|
158
240
|
}
|
|
159
241
|
|
|
160
242
|
declare class ReadonlyValueComponent {
|
|
161
|
-
readonly label:
|
|
162
|
-
readonly value:
|
|
163
|
-
static ɵfac:
|
|
164
|
-
static ɵcmp:
|
|
243
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
244
|
+
readonly value: _angular_core.InputSignal<any>;
|
|
245
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReadonlyValueComponent, never>;
|
|
246
|
+
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
247
|
}
|
|
166
248
|
|
|
167
249
|
declare class ToastsComponent {
|
|
@@ -169,8 +251,8 @@ declare class ToastsComponent {
|
|
|
169
251
|
private readonly messageService;
|
|
170
252
|
constructor();
|
|
171
253
|
private add;
|
|
172
|
-
static ɵfac:
|
|
173
|
-
static ɵcmp:
|
|
254
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastsComponent, never>;
|
|
255
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastsComponent, "cl-toasts", never, {}, {}, never, never, true, never>;
|
|
174
256
|
}
|
|
175
257
|
|
|
176
258
|
interface ToastData {
|
|
@@ -184,13 +266,13 @@ declare class ToastsService {
|
|
|
184
266
|
toastError(detail: string, summary?: string): void;
|
|
185
267
|
toastSuccess(detail: string, summary?: string): void;
|
|
186
268
|
toastWarning(detail: string, summary?: string): void;
|
|
187
|
-
static ɵfac:
|
|
188
|
-
static ɵprov:
|
|
269
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastsService, never>;
|
|
270
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastsService>;
|
|
189
271
|
}
|
|
190
272
|
|
|
191
273
|
declare class BaseFormComponent implements ControlValueAccessor, OnDestroy, Validator {
|
|
192
|
-
readonly control:
|
|
193
|
-
readonly disabled:
|
|
274
|
+
readonly control: FormGroup<any> | FormArray<any> | FormControl<any>;
|
|
275
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
194
276
|
protected readonly subscription: Subscription;
|
|
195
277
|
ngOnDestroy(): void;
|
|
196
278
|
registerOnChange(fn: any): void;
|
|
@@ -205,21 +287,21 @@ declare class BaseFormComponent implements ControlValueAccessor, OnDestroy, Vali
|
|
|
205
287
|
get formArray(): FormArray;
|
|
206
288
|
get formControl(): FormControl;
|
|
207
289
|
get formGroup(): FormGroup;
|
|
208
|
-
static ɵfac:
|
|
209
|
-
static ɵcmp:
|
|
290
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormComponent, never>;
|
|
291
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseFormComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
210
292
|
}
|
|
211
293
|
|
|
212
294
|
declare class FileInputComponent implements ControlValueAccessor {
|
|
213
|
-
readonly directory:
|
|
214
|
-
readonly icon:
|
|
215
|
-
readonly label:
|
|
216
|
-
readonly readonly:
|
|
217
|
-
readonly onDownloadEmitter:
|
|
218
|
-
readonly fileInput:
|
|
219
|
-
readonly fileName:
|
|
220
|
-
readonly isDisabled:
|
|
221
|
-
readonly isFileSelected:
|
|
222
|
-
readonly value:
|
|
295
|
+
readonly directory: _angular_core.InputSignal<string>;
|
|
296
|
+
readonly icon: _angular_core.InputSignal<string>;
|
|
297
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
298
|
+
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
299
|
+
readonly onDownloadEmitter: _angular_core.OutputEmitterRef<FileInput[]>;
|
|
300
|
+
readonly fileInput: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
301
|
+
readonly fileName: _angular_core.WritableSignal<string>;
|
|
302
|
+
readonly isDisabled: _angular_core.WritableSignal<boolean>;
|
|
303
|
+
readonly isFileSelected: _angular_core.WritableSignal<boolean>;
|
|
304
|
+
readonly value: _angular_core.WritableSignal<FileInputValue$1>;
|
|
223
305
|
registerOnChange(fn: any): void;
|
|
224
306
|
registerOnTouched(fn: any): void;
|
|
225
307
|
setDisabledState(isDisabled: boolean): void;
|
|
@@ -236,8 +318,8 @@ declare class FileInputComponent implements ControlValueAccessor {
|
|
|
236
318
|
private onTouched;
|
|
237
319
|
private selectFile;
|
|
238
320
|
private setValue;
|
|
239
|
-
static ɵfac:
|
|
240
|
-
static ɵcmp:
|
|
321
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileInputComponent, never>;
|
|
322
|
+
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
323
|
}
|
|
242
324
|
interface FileInput {
|
|
243
325
|
file?: File;
|
|
@@ -247,52 +329,112 @@ interface FileInput {
|
|
|
247
329
|
path: string;
|
|
248
330
|
toDelete: boolean;
|
|
249
331
|
}
|
|
250
|
-
type FileInputValue = FileInput[] | null;
|
|
332
|
+
type FileInputValue$1 = FileInput[] | null;
|
|
251
333
|
|
|
252
334
|
declare class FileInputsComponent extends BaseFormComponent {
|
|
253
335
|
private readonly cdRef;
|
|
254
|
-
readonly directory:
|
|
255
|
-
readonly icon:
|
|
256
|
-
readonly label:
|
|
257
|
-
readonly max:
|
|
258
|
-
readonly readonly:
|
|
259
|
-
readonly onDownloadEmitter:
|
|
336
|
+
readonly directory: _angular_core.InputSignal<string>;
|
|
337
|
+
readonly icon: _angular_core.InputSignal<string>;
|
|
338
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
339
|
+
readonly max: _angular_core.InputSignal<number>;
|
|
340
|
+
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
341
|
+
readonly onDownloadEmitter: _angular_core.OutputEmitterRef<FileInput[]>;
|
|
260
342
|
onAdd(): void;
|
|
261
343
|
onDelete(index: number): void;
|
|
262
344
|
onDownload(file: FileInput[]): void;
|
|
263
345
|
setDisabledState(isDisabled: boolean): void;
|
|
264
346
|
validate(control?: AbstractControl): ValidationErrors | null;
|
|
265
|
-
writeValue(value: FileInputsValue): void;
|
|
347
|
+
writeValue(value: FileInputsValue$1): void;
|
|
266
348
|
protected getForm(): FormArray<any>;
|
|
267
|
-
static ɵfac:
|
|
268
|
-
static ɵcmp:
|
|
349
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileInputsComponent, never>;
|
|
350
|
+
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
351
|
}
|
|
270
|
-
type FileInputsValue = FileInput[][] | null;
|
|
352
|
+
type FileInputsValue$1 = FileInput[][] | null;
|
|
271
353
|
|
|
272
354
|
declare const ERROR_DIRECTIVE: InjectionToken<ErrorDirective>;
|
|
273
355
|
declare class ErrorDirective {
|
|
274
|
-
static ɵfac:
|
|
275
|
-
static ɵdir:
|
|
356
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ErrorDirective, never>;
|
|
357
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ErrorDirective, "ff-error", never, {}, {}, never, never, true, never>;
|
|
276
358
|
}
|
|
277
359
|
|
|
278
360
|
declare const FORM_FIELD: InjectionToken<FormFieldComponent>;
|
|
279
361
|
declare class FormFieldComponent {
|
|
280
|
-
readonly control:
|
|
281
|
-
readonly isRequired:
|
|
282
|
-
static ɵfac:
|
|
283
|
-
static ɵcmp:
|
|
362
|
+
readonly control: _angular_core.Signal<FormControlName | undefined>;
|
|
363
|
+
readonly isRequired: _angular_core.Signal<boolean>;
|
|
364
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
365
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "cl-form-field", never, {}, {}, ["control"], ["ff-label", "*", "ff-error"], true, never>;
|
|
284
366
|
}
|
|
285
367
|
|
|
286
368
|
declare const LABEL_DIRECTIVE: InjectionToken<LabelDirective>;
|
|
287
369
|
declare class LabelDirective {
|
|
288
|
-
static ɵfac:
|
|
289
|
-
static ɵdir:
|
|
370
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LabelDirective, never>;
|
|
371
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LabelDirective, "ff-label", never, {}, {}, never, never, true, never>;
|
|
290
372
|
}
|
|
291
373
|
|
|
292
374
|
declare class FormFieldModule {
|
|
293
|
-
static ɵfac:
|
|
294
|
-
static ɵmod:
|
|
295
|
-
static ɵinj:
|
|
375
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldModule, never>;
|
|
376
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FormFieldModule, never, [typeof ErrorDirective, typeof FormFieldComponent, typeof LabelDirective], [typeof ErrorDirective, typeof FormFieldComponent, typeof LabelDirective]>;
|
|
377
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<FormFieldModule>;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
interface MatFileInput {
|
|
381
|
+
file?: File;
|
|
382
|
+
hash: string;
|
|
383
|
+
isNew: boolean;
|
|
384
|
+
name: string;
|
|
385
|
+
path: string;
|
|
386
|
+
toDelete: boolean;
|
|
387
|
+
}
|
|
388
|
+
type FileInputValue = MatFileInput[] | null;
|
|
389
|
+
declare class MatFileInputComponent implements ControlValueAccessor {
|
|
390
|
+
readonly directory: _angular_core.InputSignal<string>;
|
|
391
|
+
readonly icon: _angular_core.InputSignal<string>;
|
|
392
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
393
|
+
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
394
|
+
readonly onDownloadEmitter: _angular_core.OutputEmitterRef<MatFileInput[]>;
|
|
395
|
+
readonly fileInput: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
396
|
+
readonly fileName: _angular_core.WritableSignal<string>;
|
|
397
|
+
readonly isDisabled: _angular_core.WritableSignal<boolean>;
|
|
398
|
+
readonly isFileSelected: _angular_core.WritableSignal<boolean>;
|
|
399
|
+
readonly value: _angular_core.WritableSignal<FileInputValue>;
|
|
400
|
+
registerOnChange(fn: any): void;
|
|
401
|
+
registerOnTouched(fn: any): void;
|
|
402
|
+
setDisabledState(isDisabled: boolean): void;
|
|
403
|
+
writeValue(value?: MatFileInput[] | string | null): void;
|
|
404
|
+
onClick(): void;
|
|
405
|
+
onFileSelected(event: Event): void;
|
|
406
|
+
onDelete(): void;
|
|
407
|
+
onDownload(): void;
|
|
408
|
+
private getFileNameParts;
|
|
409
|
+
private getHashFromFileName;
|
|
410
|
+
private getLastFile;
|
|
411
|
+
private getSafeFileName;
|
|
412
|
+
private onChange;
|
|
413
|
+
private onTouched;
|
|
414
|
+
private selectFile;
|
|
415
|
+
private setValue;
|
|
416
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatFileInputComponent, never>;
|
|
417
|
+
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>;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
type FileInputsValue = MatFileInput[][] | null;
|
|
421
|
+
declare class MatFileInputsComponent extends BaseFormComponent {
|
|
422
|
+
private readonly cdRef;
|
|
423
|
+
readonly directory: _angular_core.InputSignal<string>;
|
|
424
|
+
readonly icon: _angular_core.InputSignal<string>;
|
|
425
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
426
|
+
readonly max: _angular_core.InputSignal<number>;
|
|
427
|
+
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
428
|
+
readonly onDownloadEmitter: _angular_core.OutputEmitterRef<MatFileInput[]>;
|
|
429
|
+
onAdd(): void;
|
|
430
|
+
onDelete(index: number): void;
|
|
431
|
+
onDownload(file: MatFileInput[]): void;
|
|
432
|
+
setDisabledState(isDisabled: boolean): void;
|
|
433
|
+
validate(control?: AbstractControl): ValidationErrors | null;
|
|
434
|
+
writeValue(value: FileInputsValue): void;
|
|
435
|
+
protected getForm(): FormArray<any>;
|
|
436
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatFileInputsComponent, never>;
|
|
437
|
+
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
438
|
}
|
|
297
439
|
|
|
298
440
|
interface ConfirmationConfig {
|
|
@@ -322,9 +464,9 @@ interface ClStateMessage {
|
|
|
322
464
|
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
465
|
|
|
324
466
|
declare class CommonLibModule {
|
|
325
|
-
static ɵfac:
|
|
326
|
-
static ɵmod:
|
|
327
|
-
static ɵinj:
|
|
467
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommonLibModule, never>;
|
|
468
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<CommonLibModule, never, never, never>;
|
|
469
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<CommonLibModule>;
|
|
328
470
|
}
|
|
329
471
|
|
|
330
472
|
declare function concatWithToArray<T>(values: Observable<T>[]): Observable<T[]>;
|
|
@@ -335,9 +477,9 @@ declare class ClStateService {
|
|
|
335
477
|
private readonly stateMessage$;
|
|
336
478
|
onStateMessage(type: ClStateMessageType): Observable<ClStateMessage | null>;
|
|
337
479
|
updateStateMessage(stateMessage: ClStateMessage | null): void;
|
|
338
|
-
static ɵfac:
|
|
339
|
-
static ɵprov:
|
|
480
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClStateService, never>;
|
|
481
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ClStateService>;
|
|
340
482
|
}
|
|
341
483
|
|
|
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 };
|
|
484
|
+
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, PanelComponent, ProgressBarDialogComponent, ProgressBarDialogService, ReadonlyValueComponent, ToastsComponent, ToastsService, concatWithToArray };
|
|
485
|
+
export type { ClState, ClStateMessage, ClStateMessageType, ConfirmationConfig, ConfirmationData, ContentDialogConfig, ContentDialogData, ContentDialogDataConfig, FieldOption, FileInput, FormDialogConfig, FormDialogData, FormDialogDataConfig, MatConfirmationComponentConfig, MatConfirmationConfig, MatConfirmationData, MatFileInput, MatFormDialogConfig, MatFormDialogData, ToastData };
|
|
Binary file
|