@jm-7c3/common-lib 1.7.5 → 1.8.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.
Files changed (52) hide show
  1. package/fesm2022/jm-7c3-common-lib.mjs +149 -140
  2. package/fesm2022/jm-7c3-common-lib.mjs.map +1 -1
  3. package/index.d.ts +343 -5
  4. package/jm-7c3-common-lib-1.8.0.tgz +0 -0
  5. package/package.json +3 -3
  6. package/jm-7c3-common-lib-1.7.5.tgz +0 -0
  7. package/lib/common-lib.module.d.ts +0 -6
  8. package/lib/controls/button/button.component.d.ts +0 -14
  9. package/lib/controls/button/button.models.d.ts +0 -1
  10. package/lib/controls/button/index.d.ts +0 -1
  11. package/lib/controls/confirmation/confirmation.component.d.ts +0 -12
  12. package/lib/controls/confirmation/confirmation.models.d.ts +0 -7
  13. package/lib/controls/confirmation/confirmation.service.d.ts +0 -11
  14. package/lib/controls/confirmation/index.d.ts +0 -3
  15. package/lib/controls/content-dialog/content-dialog.component.d.ts +0 -15
  16. package/lib/controls/content-dialog/content-dialog.models.d.ts +0 -10
  17. package/lib/controls/content-dialog/content-dialog.service.d.ts +0 -13
  18. package/lib/controls/content-dialog/index.d.ts +0 -3
  19. package/lib/controls/form-dialog/form-dialog.component.d.ts +0 -21
  20. package/lib/controls/form-dialog/form-dialog.models.d.ts +0 -13
  21. package/lib/controls/form-dialog/form-dialog.service.d.ts +0 -12
  22. package/lib/controls/form-dialog/index.d.ts +0 -3
  23. package/lib/controls/icon-button/icon-button.component.d.ts +0 -15
  24. package/lib/controls/icon-button/index.d.ts +0 -1
  25. package/lib/controls/progress-bar-dialog/index.d.ts +0 -2
  26. package/lib/controls/progress-bar-dialog/progress-bar-dialog.component.d.ts +0 -9
  27. package/lib/controls/progress-bar-dialog/progress-bar-dialog.service.d.ts +0 -8
  28. package/lib/controls/readonly-value/index.d.ts +0 -1
  29. package/lib/controls/readonly-value/readonly-value.component.d.ts +0 -7
  30. package/lib/controls/toasts/index.d.ts +0 -3
  31. package/lib/controls/toasts/toasts.component.d.ts +0 -9
  32. package/lib/controls/toasts/toasts.models.d.ts +0 -5
  33. package/lib/controls/toasts/toasts.service.d.ts +0 -9
  34. package/lib/forms/base-form/base-form.component.d.ts +0 -24
  35. package/lib/forms/base-form/index.d.ts +0 -1
  36. package/lib/forms/file-input/file-input.component.d.ts +0 -40
  37. package/lib/forms/file-input/index.d.ts +0 -1
  38. package/lib/forms/file-inputs/file-inputs.component.d.ts +0 -24
  39. package/lib/forms/file-inputs/index.d.ts +0 -1
  40. package/lib/forms/form-field/error.directive.d.ts +0 -7
  41. package/lib/forms/form-field/form-field.component.d.ts +0 -10
  42. package/lib/forms/form-field/form-field.module.d.ts +0 -9
  43. package/lib/forms/form-field/index.d.ts +0 -4
  44. package/lib/forms/form-field/label.directive.d.ts +0 -7
  45. package/lib/models/cl-dialog.model.d.ts +0 -15
  46. package/lib/models/cl-state.model.d.ts +0 -9
  47. package/lib/models/index.d.ts +0 -2
  48. package/lib/rxjs-operators/index.d.ts +0 -1
  49. package/lib/rxjs-operators/operators.d.ts +0 -2
  50. package/lib/services/cl-state.service.d.ts +0 -12
  51. package/lib/services/index.d.ts +0 -1
  52. package/public-api.d.ts +0 -16
package/index.d.ts CHANGED
@@ -1,5 +1,343 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@jm-7c3/common-lib" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, OnDestroy, ElementRef, InjectionToken } from '@angular/core';
3
+ import { Observable, Subscription } from 'rxjs';
4
+ import { UntypedFormGroup, ControlValueAccessor, Validator, FormArray, FormControl, FormGroup, AbstractControl, ValidationErrors, FormControlName } from '@angular/forms';
5
+
6
+ type ButtonColor = 'danger' | 'link' | 'main' | 'primary' | 'secondary';
7
+
8
+ 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>;
16
+ 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>;
19
+ }
20
+
21
+ declare class ConfirmationComponent {
22
+ private readonly env;
23
+ private readonly clStateService;
24
+ private readonly confirmationService;
25
+ readonly acceptLabel: i0.WritableSignal<string>;
26
+ readonly cancelLabel: i0.WritableSignal<string>;
27
+ constructor(env: any);
28
+ private openConfirmDialog;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationComponent, "cl-confirmation", never, {}, {}, never, never, true, never>;
31
+ }
32
+
33
+ interface ConfirmationData {
34
+ header: string;
35
+ data?: any;
36
+ key: string;
37
+ message: string;
38
+ type?: 'warning';
39
+ }
40
+
41
+ declare class ConfirmationService {
42
+ private readonly clStateService;
43
+ confirm({ data, header, key, message, type }: ConfirmationData): void;
44
+ onAccept(key: string): Observable<any>;
45
+ onCancel(key: string): Observable<null>;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
47
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
48
+ }
49
+
50
+ declare class ContentDialogComponent implements OnInit {
51
+ private readonly env;
52
+ private readonly dialogConfig;
53
+ private readonly dialogRef;
54
+ readonly component: i0.WritableSignal<any>;
55
+ readonly closeLabel: i0.WritableSignal<string>;
56
+ readonly header: i0.WritableSignal<string>;
57
+ constructor(env: any);
58
+ ngOnInit(): void;
59
+ onClose(): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentDialogComponent, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContentDialogComponent, "cl-content-dialog", never, {}, {}, never, never, true, never>;
62
+ }
63
+
64
+ interface ContentDialogData {
65
+ component: any;
66
+ config?: ContentDialogDataConfig;
67
+ header?: string;
68
+ key: string;
69
+ styleClass?: string;
70
+ }
71
+ interface ContentDialogDataConfig {
72
+ closeLabel?: string;
73
+ }
74
+
75
+ declare class ContentDialogService {
76
+ private readonly clStateService;
77
+ private readonly dialogService;
78
+ onCancel(key: string): Observable<{
79
+ key: string;
80
+ }>;
81
+ open(data: ContentDialogData): void;
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentDialogService, never>;
83
+ static ɵprov: i0.ɵɵInjectableDeclaration<ContentDialogService>;
84
+ }
85
+
86
+ declare class FormDialogComponent implements OnInit {
87
+ private readonly env;
88
+ private readonly cdRef;
89
+ private readonly dialogConfig;
90
+ private readonly dialogRef;
91
+ 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>;
97
+ constructor(env: any);
98
+ ngOnInit(): void;
99
+ onCancel(): void;
100
+ onSubmit(): void;
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
102
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "cl-form-dialog", never, {}, {}, never, never, true, never>;
103
+ }
104
+
105
+ interface FormDialogData {
106
+ component: any;
107
+ config?: FormDialogDataConfig;
108
+ header: string;
109
+ key: string;
110
+ styleClass?: string;
111
+ value?: any;
112
+ }
113
+ interface FormDialogDataConfig {
114
+ cancelLabel?: string;
115
+ hideSubmitButton?: boolean;
116
+ submitLabel?: string;
117
+ }
118
+
119
+ declare class FormDialogService {
120
+ private readonly clStateService;
121
+ private readonly dialogService;
122
+ onCancel(key: string): Observable<null>;
123
+ onSubmit(key: string): Observable<any>;
124
+ open(data: FormDialogData): void;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogService, never>;
126
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormDialogService>;
127
+ }
128
+
129
+ 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>;
136
+ constructor();
137
+ 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>;
140
+ }
141
+ type Severity = '' | 'danger' | 'help' | 'info' | 'secondary' | 'success' | 'warning';
142
+
143
+ declare class ProgressBarDialogComponent {
144
+ private readonly cdRef;
145
+ private readonly clStateService;
146
+ visible: boolean;
147
+ constructor();
148
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDialogComponent, never>;
149
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarDialogComponent, "cl-progress-bar-dialog", never, {}, {}, never, never, true, never>;
150
+ }
151
+
152
+ declare class ProgressBarDialogService {
153
+ private readonly clStateService;
154
+ close(): void;
155
+ open(): void;
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDialogService, never>;
157
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProgressBarDialogService>;
158
+ }
159
+
160
+ 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>;
165
+ }
166
+
167
+ declare class ToastsComponent {
168
+ private readonly clStateService;
169
+ private readonly messageService;
170
+ constructor();
171
+ private add;
172
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastsComponent, never>;
173
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToastsComponent, "cl-toasts", never, {}, {}, never, never, true, never>;
174
+ }
175
+
176
+ interface ToastData {
177
+ detail: string;
178
+ severity: 'error' | 'success' | 'warning';
179
+ summary: string;
180
+ }
181
+
182
+ declare class ToastsService {
183
+ private readonly clStateService;
184
+ toastError(detail: string, summary?: string): void;
185
+ toastSuccess(detail: string, summary?: string): void;
186
+ toastWarning(detail: string, summary?: string): void;
187
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastsService, never>;
188
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToastsService>;
189
+ }
190
+
191
+ declare class BaseFormComponent implements ControlValueAccessor, OnDestroy, Validator {
192
+ readonly control: FormArray<any> | FormControl<any> | FormGroup<any>;
193
+ readonly disabled: i0.WritableSignal<boolean>;
194
+ protected readonly subscription: Subscription;
195
+ ngOnDestroy(): void;
196
+ registerOnChange(fn: any): void;
197
+ registerOnTouched(fn: any): void;
198
+ setDisabledState(isDisabled: boolean): void;
199
+ writeValue(obj: any): void;
200
+ validate(control?: AbstractControl): ValidationErrors | null;
201
+ protected getForm(): FormArray | FormControl | FormGroup;
202
+ protected setValue(value: any): void;
203
+ private onChanged;
204
+ private onTouched;
205
+ get formArray(): FormArray;
206
+ get formControl(): FormControl;
207
+ get formGroup(): FormGroup;
208
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormComponent, never>;
209
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormComponent, "ng-component", never, {}, {}, never, never, true, never>;
210
+ }
211
+
212
+ 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>;
223
+ registerOnChange(fn: any): void;
224
+ registerOnTouched(fn: any): void;
225
+ setDisabledState(isDisabled: boolean): void;
226
+ writeValue(value?: FileInput[] | string | null): void;
227
+ onClick(): void;
228
+ onFileSelected(event: Event): void;
229
+ onDelete(): void;
230
+ onDownload(): void;
231
+ private getFileNameParts;
232
+ private getHashFromFileName;
233
+ private getLastFile;
234
+ private getSafeFileName;
235
+ private onChange;
236
+ private onTouched;
237
+ private selectFile;
238
+ 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>;
241
+ }
242
+ interface FileInput {
243
+ file?: File;
244
+ hash: string;
245
+ isNew: boolean;
246
+ name: string;
247
+ path: string;
248
+ toDelete: boolean;
249
+ }
250
+ type FileInputValue = FileInput[] | null;
251
+
252
+ declare class FileInputsComponent extends BaseFormComponent {
253
+ 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[]>;
260
+ onAdd(): void;
261
+ onDelete(index: number): void;
262
+ onDownload(file: FileInput[]): void;
263
+ setDisabledState(isDisabled: boolean): void;
264
+ validate(control?: AbstractControl): ValidationErrors | null;
265
+ writeValue(value: FileInputsValue): void;
266
+ 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>;
269
+ }
270
+ type FileInputsValue = FileInput[][] | null;
271
+
272
+ declare const ERROR_DIRECTIVE: InjectionToken<ErrorDirective>;
273
+ declare class ErrorDirective {
274
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorDirective, never>;
275
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ErrorDirective, "ff-error", never, {}, {}, never, never, true, never>;
276
+ }
277
+
278
+ declare const FORM_FIELD: InjectionToken<FormFieldComponent>;
279
+ 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>;
284
+ }
285
+
286
+ declare const LABEL_DIRECTIVE: InjectionToken<LabelDirective>;
287
+ declare class LabelDirective {
288
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelDirective, never>;
289
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LabelDirective, "ff-label", never, {}, {}, never, never, true, never>;
290
+ }
291
+
292
+ 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>;
296
+ }
297
+
298
+ interface ConfirmationConfig {
299
+ acceptLabel: string;
300
+ cancelLabel: string;
301
+ }
302
+ interface ContentDialogConfig {
303
+ closeLabel: string;
304
+ }
305
+ interface FieldOption {
306
+ label: string;
307
+ value: any;
308
+ }
309
+ interface FormDialogConfig {
310
+ cancelLabel: string;
311
+ submitLabel: string;
312
+ }
313
+
314
+ type ClState = {
315
+ stateMessage: ClStateMessage | null;
316
+ };
317
+ interface ClStateMessage {
318
+ key?: string;
319
+ payload?: any;
320
+ type: ClStateMessageType;
321
+ }
322
+ 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
+
324
+ 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>;
328
+ }
329
+
330
+ declare function concatWithToArray<T>(values: Observable<T>[]): Observable<T[]>;
331
+
332
+ declare class ClStateService {
333
+ private readonly state;
334
+ readonly stateMessage: any;
335
+ private readonly stateMessage$;
336
+ onStateMessage(type: ClStateMessageType): Observable<ClStateMessage | null>;
337
+ updateStateMessage(stateMessage: ClStateMessage | null): void;
338
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClStateService, never>;
339
+ static ɵprov: i0.ɵɵInjectableDeclaration<ClStateService>;
340
+ }
341
+
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 };
Binary file
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@jm-7c3/common-lib",
3
- "version": "1.7.5",
3
+ "version": "1.8.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^19.1.0",
6
- "@angular/core": "^19.1.0",
5
+ "@angular/common": "^20.3.15",
6
+ "@angular/core": "^20.3.15",
7
7
  "@ngrx/signals": "^19.0.1",
8
8
  "lodash-es": "^4.17.21",
9
9
  "primeflex": "^3.3.1",
Binary file
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CommonLibModule {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<CommonLibModule, never>;
4
- static ɵmod: i0.ɵɵNgModuleDeclaration<CommonLibModule, never, never, never>;
5
- static ɵinj: i0.ɵɵInjectorDeclaration<CommonLibModule>;
6
- }
@@ -1,14 +0,0 @@
1
- import { ButtonColor } from './button.models';
2
- import * as i0 from "@angular/core";
3
- export declare class ButtonComponent {
4
- readonly color: import("@angular/core").InputSignal<ButtonColor>;
5
- readonly disabled: import("@angular/core").InputSignal<boolean>;
6
- readonly icon: import("@angular/core").InputSignal<string | undefined>;
7
- readonly label: import("@angular/core").InputSignal<string | undefined>;
8
- readonly loading: import("@angular/core").InputSignal<boolean>;
9
- readonly type: import("@angular/core").InputSignal<"button" | "submit">;
10
- readonly buttonClass: import("@angular/core").WritableSignal<string>;
11
- constructor();
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
13
- 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>;
14
- }
@@ -1 +0,0 @@
1
- export type ButtonColor = 'danger' | 'link' | 'main' | 'primary' | 'secondary';
@@ -1 +0,0 @@
1
- export * from './button.component';
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ConfirmationComponent {
3
- private readonly env;
4
- private readonly clStateService;
5
- private readonly confirmationService;
6
- readonly acceptLabel: import("@angular/core").WritableSignal<string>;
7
- readonly cancelLabel: import("@angular/core").WritableSignal<string>;
8
- constructor(env: any);
9
- private openConfirmDialog;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationComponent, "cl-confirmation", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,7 +0,0 @@
1
- export interface ConfirmationData {
2
- header: string;
3
- data?: any;
4
- key: string;
5
- message: string;
6
- type?: 'warning';
7
- }
@@ -1,11 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ConfirmationData } from './confirmation.models';
3
- import * as i0 from "@angular/core";
4
- export declare class ConfirmationService {
5
- private readonly clStateService;
6
- confirm({ data, header, key, message, type }: ConfirmationData): void;
7
- onAccept(key: string): Observable<any>;
8
- onCancel(key: string): Observable<null>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
11
- }
@@ -1,3 +0,0 @@
1
- export * from './confirmation.component';
2
- export * from './confirmation.models';
3
- export * from './confirmation.service';
@@ -1,15 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ContentDialogComponent implements OnInit {
4
- private readonly env;
5
- private readonly dialogConfig;
6
- private readonly dialogRef;
7
- readonly component: import("@angular/core").WritableSignal<any>;
8
- readonly closeLabel: import("@angular/core").WritableSignal<string>;
9
- readonly header: import("@angular/core").WritableSignal<string>;
10
- constructor(env: any);
11
- ngOnInit(): void;
12
- onClose(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentDialogComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<ContentDialogComponent, "cl-content-dialog", never, {}, {}, never, never, true, never>;
15
- }
@@ -1,10 +0,0 @@
1
- export interface ContentDialogData {
2
- component: any;
3
- config?: ContentDialogDataConfig;
4
- header?: string;
5
- key: string;
6
- styleClass?: string;
7
- }
8
- export interface ContentDialogDataConfig {
9
- closeLabel?: string;
10
- }
@@ -1,13 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ContentDialogData } from './content-dialog.models';
3
- import * as i0 from "@angular/core";
4
- export declare class ContentDialogService {
5
- private readonly clStateService;
6
- private readonly dialogService;
7
- onCancel(key: string): Observable<{
8
- key: string;
9
- }>;
10
- open(data: ContentDialogData): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentDialogService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<ContentDialogService>;
13
- }
@@ -1,3 +0,0 @@
1
- export * from './content-dialog.component';
2
- export * from './content-dialog.models';
3
- export * from './content-dialog.service';
@@ -1,21 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { UntypedFormGroup } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class FormDialogComponent implements OnInit {
5
- private readonly env;
6
- private readonly cdRef;
7
- private readonly dialogConfig;
8
- private readonly dialogRef;
9
- private readonly formContainer;
10
- readonly cancelLabel: import("@angular/core").WritableSignal<string>;
11
- readonly form: import("@angular/core").WritableSignal<UntypedFormGroup | null>;
12
- readonly header: import("@angular/core").WritableSignal<string>;
13
- readonly hideSubmitButton: import("@angular/core").WritableSignal<boolean>;
14
- readonly submitLabel: import("@angular/core").WritableSignal<string>;
15
- constructor(env: any);
16
- ngOnInit(): void;
17
- onCancel(): void;
18
- onSubmit(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "cl-form-dialog", never, {}, {}, never, never, true, never>;
21
- }
@@ -1,13 +0,0 @@
1
- export interface FormDialogData {
2
- component: any;
3
- config?: FormDialogDataConfig;
4
- header: string;
5
- key: string;
6
- styleClass?: string;
7
- value?: any;
8
- }
9
- export interface FormDialogDataConfig {
10
- cancelLabel?: string;
11
- hideSubmitButton?: boolean;
12
- submitLabel?: string;
13
- }
@@ -1,12 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { FormDialogData } from './form-dialog.models';
3
- import * as i0 from "@angular/core";
4
- export declare class FormDialogService {
5
- private readonly clStateService;
6
- private readonly dialogService;
7
- onCancel(key: string): Observable<null>;
8
- onSubmit(key: string): Observable<any>;
9
- open(data: FormDialogData): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<FormDialogService>;
12
- }
@@ -1,3 +0,0 @@
1
- export * from './form-dialog.component';
2
- export * from './form-dialog.models';
3
- export * from './form-dialog.service';
@@ -1,15 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class IconButtonComponent {
3
- readonly disabled: import("@angular/core").InputSignal<boolean>;
4
- readonly icon: import("@angular/core").InputSignal<string>;
5
- readonly loading: import("@angular/core").InputSignal<boolean>;
6
- readonly severity: import("@angular/core").InputSignal<Severity>;
7
- readonly type: import("@angular/core").InputSignal<"button" | "submit">;
8
- readonly class: import("@angular/core").WritableSignal<string>;
9
- constructor();
10
- private updateClass;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
12
- 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>;
13
- }
14
- type Severity = '' | 'danger' | 'help' | 'info' | 'secondary' | 'success' | 'warning';
15
- export {};
@@ -1 +0,0 @@
1
- export * from './icon-button.component';
@@ -1,2 +0,0 @@
1
- export * from './progress-bar-dialog.component';
2
- export * from './progress-bar-dialog.service';
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ProgressBarDialogComponent {
3
- private readonly cdRef;
4
- private readonly clStateService;
5
- visible: boolean;
6
- constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDialogComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarDialogComponent, "cl-progress-bar-dialog", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ProgressBarDialogService {
3
- private readonly clStateService;
4
- close(): void;
5
- open(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDialogService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<ProgressBarDialogService>;
8
- }
@@ -1 +0,0 @@
1
- export * from './readonly-value.component';
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ReadonlyValueComponent {
3
- readonly label: import("@angular/core").InputSignal<string | undefined>;
4
- readonly value: import("@angular/core").InputSignal<any>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ReadonlyValueComponent, never>;
6
- 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>;
7
- }
@@ -1,3 +0,0 @@
1
- export * from './toasts.component';
2
- export * from './toasts.models';
3
- export * from './toasts.service';
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ToastsComponent {
3
- private readonly clStateService;
4
- private readonly messageService;
5
- constructor();
6
- private add;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastsComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<ToastsComponent, "cl-toasts", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,5 +0,0 @@
1
- export interface ToastData {
2
- detail: string;
3
- severity: 'error' | 'success' | 'warning';
4
- summary: string;
5
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ToastsService {
3
- private readonly clStateService;
4
- toastError(detail: string, summary?: string): void;
5
- toastSuccess(detail: string, summary?: string): void;
6
- toastWarning(detail: string, summary?: string): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastsService, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<ToastsService>;
9
- }