@meshmakers/shared-ui 3.2.111-0 → 3.2.113-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/index.d.ts CHANGED
@@ -1,5 +1,438 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@meshmakers/shared-ui" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, OnDestroy, DoCheck, ElementRef, EventEmitter, ModuleWithProviders } from '@angular/core';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import { ErrorMessage, AutoCompleteDataSource, EntitySelectDataSource } from '@meshmakers/shared-services';
5
+ import * as i14 from '@angular/material/dialog';
6
+ import { MatDialogRef } from '@angular/material/dialog';
7
+ import { MatFormFieldControl } from '@angular/material/form-field';
8
+ import * as i20 from '@angular/forms';
9
+ import { ControlValueAccessor, Validator, FormControl, NgControl, AbstractControl, ValidationErrors, ValidatorFn, FormGroup } from '@angular/forms';
10
+ import * as i15 from '@angular/material/autocomplete';
11
+ import { MatAutocompleteSelectedEvent, MatAutocompleteActivatedEvent } from '@angular/material/autocomplete';
12
+ import * as i10 from '@angular/common';
13
+ import * as i11 from '@angular/material/toolbar';
14
+ import * as i12 from '@angular/material/button';
15
+ import * as i13 from '@angular/material/snack-bar';
16
+ import * as i16 from '@angular/material/input';
17
+ import * as i17 from '@angular/material/progress-spinner';
18
+ import * as i18 from '@angular/material/chips';
19
+ import * as i19 from '@angular/material/icon';
20
+ import * as i21 from '@angular/material/list';
21
+ import * as i22 from '@angular/router';
22
+ import * as i24 from '@angular/material/progress-bar';
23
+
24
+ declare class BreadcrumbData {
25
+ constructor(label: string, labelTemplate: string, url: string);
26
+ label: string;
27
+ labelTemplate: string;
28
+ url: string;
29
+ }
30
+
31
+ declare class MmBreadcrumbComponent implements OnInit {
32
+ private readonly activatedRoute;
33
+ private readonly router;
34
+ private readonly breadcrumbService;
35
+ protected breadcrumbData: BreadcrumbData[];
36
+ fontSize: string;
37
+ fontColor: string;
38
+ lastLinkColor: string;
39
+ symbol: string;
40
+ constructor();
41
+ ngOnInit(): void;
42
+ breadCrumbData(): void;
43
+ private updateData;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmBreadcrumbComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmBreadcrumbComponent, "mm-breadcrumb", never, { "fontSize": { "alias": "fontSize"; "required": false; }; "fontColor": { "alias": "fontColor"; "required": false; }; "lastLinkColor": { "alias": "lastLinkColor"; "required": false; }; "symbol": { "alias": "symbol"; "required": false; }; }, {}, never, never, false, never>;
46
+ }
47
+
48
+ declare enum ButtonTypes {
49
+ Ok = 0,
50
+ Cancel = 1,
51
+ Yes = 2,
52
+ No = 3
53
+ }
54
+ declare enum DialogType {
55
+ YesNo = 0,
56
+ YesNoCancel = 1,
57
+ OkCancel = 2,
58
+ Ok = 3
59
+ }
60
+ interface ConfirmationWindowData {
61
+ title: string;
62
+ message: string;
63
+ dialogType: DialogType;
64
+ }
65
+ interface ConfirmationWindowResult {
66
+ result: ButtonTypes;
67
+ }
68
+ interface FileUploadData {
69
+ title: string;
70
+ message: string;
71
+ mimeTypes: string;
72
+ fileExtensions: string | null;
73
+ }
74
+ interface FileUploadResult {
75
+ success: boolean;
76
+ selectedFile: File | null;
77
+ }
78
+
79
+ declare class MmConfirmationWindowComponent implements OnInit {
80
+ private readonly dialogRef;
81
+ data: ConfirmationWindowData;
82
+ button1Text: string;
83
+ button1Result: ButtonTypes;
84
+ button2Text: string | null;
85
+ button2Result: ButtonTypes | null;
86
+ button3Text: string | null;
87
+ button3Result: ButtonTypes | null;
88
+ constructor();
89
+ ngOnInit(): void;
90
+ onButton1(): void;
91
+ onButton2(): void;
92
+ onButton3(): void;
93
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmConfirmationWindowComponent, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmConfirmationWindowComponent, "mm-confirmation-window", never, {}, {}, never, never, false, never>;
95
+ }
96
+
97
+ declare class ProgressValue {
98
+ statusText: string | null;
99
+ progressValue: number;
100
+ constructor();
101
+ }
102
+
103
+ interface ProgressWindowData {
104
+ title: string;
105
+ isDeterminate: boolean;
106
+ progress: Observable<ProgressValue>;
107
+ isCancelOperationAvailable: boolean;
108
+ cancelOperation: () => void;
109
+ }
110
+ declare class MmProgressWindowComponent implements OnInit {
111
+ data: ProgressWindowData;
112
+ statusText: string | null;
113
+ progressValue: number;
114
+ constructor();
115
+ ngOnInit(): void;
116
+ onCancelClick(): void;
117
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmProgressWindowComponent, never>;
118
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmProgressWindowComponent, "mm-progress-window", never, {}, {}, never, never, false, never>;
119
+ }
120
+
121
+ declare class MmNotificationBarComponent implements OnInit {
122
+ private readonly messageService;
123
+ private readonly dialog;
124
+ errorMessage: ErrorMessage | null;
125
+ constructor();
126
+ ngOnInit(): void;
127
+ onHide(): void;
128
+ onShowDetails(): void;
129
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmNotificationBarComponent, never>;
130
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmNotificationBarComponent, "mm-notification-bar", never, {}, {}, never, never, false, never>;
131
+ }
132
+
133
+ declare class MmMessageDetailsComponent implements OnInit {
134
+ dialogRef: MatDialogRef<MmMessageDetailsComponent, any>;
135
+ data: any;
136
+ errorMessage: ErrorMessage;
137
+ constructor();
138
+ ngOnInit(): void;
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmMessageDetailsComponent, never>;
140
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmMessageDetailsComponent, "mm-message-details", never, {}, {}, never, never, false, never>;
141
+ }
142
+
143
+ declare class MmAutocompleteInputComponent implements OnInit, OnDestroy, DoCheck, ControlValueAccessor, MatFormFieldControl<any>, Validator {
144
+ elRef: ElementRef<HTMLElement>;
145
+ private readonly injector;
146
+ private readonly fm;
147
+ private static nextId;
148
+ readonly searchFormControl: FormControl;
149
+ isLoading: boolean;
150
+ filteredStrings: string[];
151
+ ngControl: NgControl | null;
152
+ errorState: boolean;
153
+ focused: boolean;
154
+ readonly stateChanges: Subject<void>;
155
+ readonly id: string;
156
+ valueChange: EventEmitter<any>;
157
+ private _selectedString;
158
+ private readonly inputField;
159
+ private describedBy;
160
+ private activatedValue;
161
+ constructor();
162
+ private _dataSource;
163
+ get dataSource(): AutoCompleteDataSource | null;
164
+ set dataSource(value: AutoCompleteDataSource | null);
165
+ private _disabled;
166
+ get disabled(): boolean;
167
+ set disabled(dis: boolean);
168
+ private _placeholder;
169
+ get placeholder(): string;
170
+ set placeholder(plh: string);
171
+ private _required;
172
+ get required(): boolean;
173
+ set required(req: boolean);
174
+ private _prefix;
175
+ get prefix(): string;
176
+ set prefix(value: string);
177
+ get value(): any;
178
+ set value(value: any);
179
+ get empty(): boolean;
180
+ get shouldLabelFloat(): boolean;
181
+ ngOnInit(): void;
182
+ ngOnDestroy(): void;
183
+ ngDoCheck(): void;
184
+ clear(): void;
185
+ focus(): void;
186
+ onOptionSelected(event: MatAutocompleteSelectedEvent): void;
187
+ onOptionActivated(event: MatAutocompleteActivatedEvent): void;
188
+ onAutoCompleteClosed(): void;
189
+ reset(): void;
190
+ onFocusOut(): void;
191
+ onTouched(): void;
192
+ registerOnChange(fn: any): void;
193
+ registerOnTouched(fn: any): void;
194
+ writeValue(obj: any): void;
195
+ setDisabledState(isDisabled: boolean): void;
196
+ onContainerClick(event: MouseEvent): void;
197
+ setDescribedByIds(ids: string[]): void;
198
+ validate(control: AbstractControl): ValidationErrors | null;
199
+ private _propagateChange;
200
+ private readonly _onTouched;
201
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmAutocompleteInputComponent, never>;
202
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmAutocompleteInputComponent, "mm-autocomplete", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; }, {}, never, never, false, never>;
203
+ }
204
+
205
+ declare class MmEntitySelectInputComponent implements OnInit, OnDestroy, DoCheck, ControlValueAccessor, MatFormFieldControl<any>, Validator {
206
+ elRef: ElementRef<HTMLElement>;
207
+ private readonly injector;
208
+ private readonly fm;
209
+ private static nextId;
210
+ readonly searchFormControl: FormControl;
211
+ isLoading: boolean;
212
+ filteredEntities: any[];
213
+ ngControl: NgControl | null;
214
+ errorState: boolean;
215
+ focused: boolean;
216
+ readonly stateChanges: Subject<void>;
217
+ readonly id: string;
218
+ valueChange: EventEmitter<any>;
219
+ private _selectedEntity;
220
+ private readonly inputField;
221
+ private describedBy;
222
+ private activatedValue;
223
+ constructor();
224
+ private _dataSource;
225
+ get dataSource(): EntitySelectDataSource<any> | null;
226
+ set dataSource(value: EntitySelectDataSource<any> | null);
227
+ private _disabled;
228
+ get disabled(): boolean;
229
+ set disabled(dis: boolean);
230
+ private _placeholder;
231
+ get placeholder(): string;
232
+ set placeholder(plh: string);
233
+ private _required;
234
+ get required(): boolean;
235
+ set required(req: boolean);
236
+ private _prefix;
237
+ get prefix(): string;
238
+ set prefix(value: string);
239
+ get value(): any;
240
+ set value(value: any);
241
+ get empty(): boolean;
242
+ get shouldLabelFloat(): boolean;
243
+ ngOnInit(): void;
244
+ ngOnDestroy(): void;
245
+ ngDoCheck(): void;
246
+ clear(): void;
247
+ focus(): void;
248
+ onEntitySelected(event: MatAutocompleteSelectedEvent): void;
249
+ onEntityActivated(event: MatAutocompleteActivatedEvent): void;
250
+ onEntityClosed(): void;
251
+ reset(): void;
252
+ onFocusOut(): void;
253
+ onTouched(): void;
254
+ registerOnChange(fn: any): void;
255
+ registerOnTouched(fn: any): void;
256
+ writeValue(obj: any): void;
257
+ setDisabledState(isDisabled: boolean): void;
258
+ onContainerClick(event: MouseEvent): void;
259
+ setDescribedByIds(ids: string[]): void;
260
+ validate(control: AbstractControl): ValidationErrors | null;
261
+ private _propagateChange;
262
+ private readonly _onTouched;
263
+ private setValue;
264
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmEntitySelectInputComponent, never>;
265
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmEntitySelectInputComponent, "mm-entity-select", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; }, {}, never, never, false, never>;
266
+ }
267
+
268
+ declare class MmMultipleEntitySelectInputComponent implements OnInit, OnDestroy, DoCheck, ControlValueAccessor, MatFormFieldControl<any[]>, Validator {
269
+ elRef: ElementRef<HTMLElement>;
270
+ private readonly injector;
271
+ private readonly fm;
272
+ private static nextId;
273
+ readonly valuesFormControl: FormControl;
274
+ readonly searchFormControl: FormControl;
275
+ isLoading: boolean;
276
+ filteredEntities: any[];
277
+ ngControl: NgControl | null;
278
+ errorState: boolean;
279
+ focused: boolean;
280
+ readonly stateChanges: Subject<void>;
281
+ readonly id: string;
282
+ valuesChange: EventEmitter<any[]>;
283
+ private _selectedEntities;
284
+ private readonly inputField;
285
+ private describedBy;
286
+ private activatedValue;
287
+ readonly separatorKeysCodes: readonly [13, 188];
288
+ constructor();
289
+ private _dataSource;
290
+ get dataSource(): EntitySelectDataSource<any> | null;
291
+ set dataSource(value: EntitySelectDataSource<any> | null);
292
+ private _disabled;
293
+ get disabled(): boolean;
294
+ set disabled(dis: boolean);
295
+ private _placeholder;
296
+ get placeholder(): string;
297
+ set placeholder(plh: string);
298
+ private _required;
299
+ get required(): boolean;
300
+ set required(req: boolean);
301
+ private _prefix;
302
+ get prefix(): string;
303
+ set prefix(value: string);
304
+ get value(): any[] | null;
305
+ set value(value: any[] | null);
306
+ get empty(): boolean;
307
+ get shouldLabelFloat(): boolean;
308
+ ngOnInit(): void;
309
+ ngOnDestroy(): void;
310
+ ngDoCheck(): void;
311
+ clear(): void;
312
+ focus(): void;
313
+ onEntitySelected(event: MatAutocompleteSelectedEvent): void;
314
+ onEntityActivated(event: MatAutocompleteActivatedEvent): void;
315
+ onEntityClosed(): void;
316
+ reset(): void;
317
+ onFocusOut(): void;
318
+ onTouched(): void;
319
+ registerOnChange(fn: any): void;
320
+ registerOnTouched(fn: any): void;
321
+ writeValue(obj: any): void;
322
+ setDisabledState(isDisabled: boolean): void;
323
+ onContainerClick(event: MouseEvent): void;
324
+ setDescribedByIds(ids: string[]): void;
325
+ validate(control: AbstractControl): ValidationErrors | null;
326
+ remove(value: any): void;
327
+ private _propagateChange;
328
+ private readonly _onTouched;
329
+ private setValue;
330
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmMultipleEntitySelectInputComponent, never>;
331
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmMultipleEntitySelectInputComponent, "mm-multiple-entity-select", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; }, {}, never, never, false, never>;
332
+ }
333
+
334
+ declare class MmFileUploadComponent {
335
+ private readonly dialogRef;
336
+ protected data: FileUploadData;
337
+ private snackBar;
338
+ protected fileName: i0.WritableSignal<string>;
339
+ protected fileSize: i0.WritableSignal<number>;
340
+ protected uploadProgress: i0.WritableSignal<number>;
341
+ protected fileInput: ElementRef | undefined;
342
+ protected selectedFile: File | null;
343
+ protected uploadSuccess: boolean;
344
+ protected uploadError: boolean;
345
+ constructor();
346
+ onFileChange(event: any): void;
347
+ onFileDrop(event: DragEvent): void;
348
+ onDragOver(event: DragEvent): void;
349
+ uploadFile(file: File | null): void;
350
+ removeFile(): void;
351
+ onOk(): void;
352
+ onCancel(): void;
353
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmFileUploadComponent, never>;
354
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmFileUploadComponent, "mm-mm-file-upload", never, {}, {}, never, never, false, never>;
355
+ }
356
+
357
+ declare class MmTableSimpleComponent {
358
+ sortColumn: string;
359
+ items: any[];
360
+ columns: {
361
+ key: string;
362
+ header: string;
363
+ }[];
364
+ get displayedColumns(): string[];
365
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmTableSimpleComponent, never>;
366
+ static ɵcmp: i0.ɵɵComponentDeclaration<MmTableSimpleComponent, "mm-table-simple", never, { "sortColumn": { "alias": "sortColumn"; "required": false; }; "items": { "alias": "items"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; }, {}, never, never, true, never>;
367
+ }
368
+
369
+ declare class MmSharedUiModule {
370
+ static forRoot(): ModuleWithProviders<MmSharedUiModule>;
371
+ static ɵfac: i0.ɵɵFactoryDeclaration<MmSharedUiModule, never>;
372
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MmSharedUiModule, [typeof MmBreadcrumbComponent, typeof MmConfirmationWindowComponent, typeof MmProgressWindowComponent, typeof MmNotificationBarComponent, typeof MmMessageDetailsComponent, typeof MmAutocompleteInputComponent, typeof MmEntitySelectInputComponent, typeof MmMultipleEntitySelectInputComponent, typeof MmFileUploadComponent], [typeof i10.CommonModule, typeof i11.MatToolbarModule, typeof i12.MatButtonModule, typeof i13.MatSnackBarModule, typeof i14.MatDialogModule, typeof i15.MatAutocompleteModule, typeof i16.MatInputModule, typeof i17.MatProgressSpinnerModule, typeof i18.MatChipsModule, typeof i19.MatIconModule, typeof i20.ReactiveFormsModule, typeof i19.MatIcon, typeof i21.MatListModule, typeof i22.RouterLink, typeof MmTableSimpleComponent, typeof i24.MatProgressBar], [typeof MmBreadcrumbComponent, typeof MmConfirmationWindowComponent, typeof MmNotificationBarComponent, typeof MmAutocompleteInputComponent, typeof MmEntitySelectInputComponent, typeof MmMultipleEntitySelectInputComponent, typeof MmFileUploadComponent, typeof MmTableSimpleComponent]>;
373
+ static ɵinj: i0.ɵɵInjectorDeclaration<MmSharedUiModule>;
374
+ }
375
+
376
+ declare class ConfirmationService {
377
+ private readonly dialog;
378
+ showYesNoConfirmationDialog(title: string, message: string): Observable<boolean>;
379
+ showYesNoCancelConfirmationDialog(title: string, message: string): Observable<ConfirmationWindowResult | undefined>;
380
+ showOkCancelConfirmationDialog(title: string, message: string): Observable<boolean>;
381
+ showOkDialog(title: string, message: string): Observable<boolean>;
382
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
383
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
384
+ }
385
+
386
+ declare class ProgressNotifierService {
387
+ private readonly dialog;
388
+ private readonly _currentProgressValue;
389
+ private currentDialogRef;
390
+ constructor();
391
+ private _isCanceled;
392
+ get isCanceled(): boolean;
393
+ set isCanceled(value: boolean);
394
+ start(title: string, isDeterminate: boolean, isCancelOperationAvailable: boolean): void;
395
+ reportProgressDeterminate(progressCurrent: number, progressMax: number, statusText: string): void;
396
+ reportProgressIndeterminate(statusText: string): void;
397
+ complete(): void;
398
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressNotifierService, never>;
399
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProgressNotifierService>;
400
+ }
401
+
402
+ declare class FileUploadService {
403
+ private readonly dialog;
404
+ showUploadDialog(title: string, message: string, mimeTypes: string, fileExtensions?: string | null): Promise<File | null>;
405
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadService, never>;
406
+ static ɵprov: i0.ɵɵInjectableDeclaration<FileUploadService>;
407
+ }
408
+
409
+ type CompareValueFn<TValue> = (value: TValue) => boolean;
410
+ declare class CommonValidators {
411
+ static phoneNumber(): ValidatorFn;
412
+ static httpUri(): ValidatorFn;
413
+ static ensureSameValue(sourceControlName: string): ValidatorFn;
414
+ static conditionalRequired<TCompareValue>(sourceControlName: string, sourceValueCompareExpression: CompareValueFn<TCompareValue>): ValidatorFn;
415
+ static dependentControls(controlNames: string[]): ValidatorFn;
416
+ }
417
+
418
+ declare abstract class AbstractDetailsComponent<TEntity> {
419
+ private _loading;
420
+ private readonly _ownerForm;
421
+ private _entity;
422
+ protected constructor(formGroup: FormGroup);
423
+ get loading(): boolean;
424
+ set loading(value: boolean);
425
+ get entity(): TEntity | null;
426
+ set entity(value: TEntity | null);
427
+ get ownerForm(): FormGroup;
428
+ get isLoaded(): boolean;
429
+ hasError: (controlName: string, errorName: string) => boolean;
430
+ hasFormError: (errorName: string) => boolean;
431
+ updateDateTime(controlName: string): void;
432
+ copyInputMessage(inputElement: any): void;
433
+ protected onProgressStarting(): void;
434
+ protected onProgressCompleted(): void;
435
+ }
436
+
437
+ export { AbstractDetailsComponent, ButtonTypes, CommonValidators, ConfirmationService, DialogType, FileUploadService, MmAutocompleteInputComponent, MmBreadcrumbComponent, MmConfirmationWindowComponent, MmEntitySelectInputComponent, MmFileUploadComponent, MmMultipleEntitySelectInputComponent, MmNotificationBarComponent, MmSharedUiModule, MmTableSimpleComponent, ProgressNotifierService };
438
+ export type { CompareValueFn, ConfirmationWindowData, ConfirmationWindowResult, FileUploadData, FileUploadResult };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@meshmakers/shared-ui",
3
- "version": "3.2.111-0",
3
+ "version": "3.2.113-0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^19.2.12",
6
- "@angular/core": "^19.2.12"
5
+ "@angular/common": "^20.1.2",
6
+ "@angular/core": "^20.1.2"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.8.1"
@@ -1,69 +0,0 @@
1
- import { DoCheck, ElementRef, EventEmitter, Injector, OnDestroy, OnInit } from "@angular/core";
2
- import { MatFormFieldControl } from "@angular/material/form-field";
3
- import { AbstractControl, ControlValueAccessor, FormControl, NgControl, ValidationErrors, Validator } from "@angular/forms";
4
- import { MatAutocompleteActivatedEvent, MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
5
- import { Subject } from "rxjs";
6
- import { FocusMonitor } from "@angular/cdk/a11y";
7
- import { AutoCompleteDataSource } from "@meshmakers/shared-services";
8
- import * as i0 from "@angular/core";
9
- export declare class MmAutocompleteInputComponent implements OnInit, OnDestroy, DoCheck, ControlValueAccessor, MatFormFieldControl<any>, Validator {
10
- elRef: ElementRef<HTMLElement>;
11
- private readonly injector;
12
- private readonly fm;
13
- private static nextId;
14
- readonly searchFormControl: FormControl;
15
- isLoading: boolean;
16
- filteredStrings: string[];
17
- ngControl: NgControl | null;
18
- errorState: boolean;
19
- focused: boolean;
20
- readonly stateChanges: Subject<void>;
21
- readonly id: string;
22
- valueChange: EventEmitter<any>;
23
- private _selectedString;
24
- private readonly inputField;
25
- private describedBy;
26
- private activatedValue;
27
- constructor(elRef: ElementRef<HTMLElement>, injector: Injector, fm: FocusMonitor);
28
- private _dataSource;
29
- get dataSource(): AutoCompleteDataSource | null;
30
- set dataSource(value: AutoCompleteDataSource | null);
31
- private _disabled;
32
- get disabled(): boolean;
33
- set disabled(dis: boolean);
34
- private _placeholder;
35
- get placeholder(): string;
36
- set placeholder(plh: string);
37
- private _required;
38
- get required(): boolean;
39
- set required(req: boolean);
40
- private _prefix;
41
- get prefix(): string;
42
- set prefix(value: string);
43
- get value(): any;
44
- set value(value: any);
45
- get empty(): boolean;
46
- get shouldLabelFloat(): boolean;
47
- ngOnInit(): void;
48
- ngOnDestroy(): void;
49
- ngDoCheck(): void;
50
- clear(): void;
51
- focus(): void;
52
- onOptionSelected(event: MatAutocompleteSelectedEvent): void;
53
- onOptionActivated(event: MatAutocompleteActivatedEvent): void;
54
- onAutoCompleteClosed(): void;
55
- reset(): void;
56
- onFocusOut(): void;
57
- onTouched(): void;
58
- registerOnChange(fn: any): void;
59
- registerOnTouched(fn: any): void;
60
- writeValue(obj: any): void;
61
- setDisabledState(isDisabled: boolean): void;
62
- onContainerClick(event: MouseEvent): void;
63
- setDescribedByIds(ids: string[]): void;
64
- validate(control: AbstractControl): ValidationErrors | null;
65
- private _propagateChange;
66
- private readonly _onTouched;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<MmAutocompleteInputComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<MmAutocompleteInputComponent, "mm-autocomplete", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; }, {}, never, never, false, never>;
69
- }
@@ -1,21 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- import { BreadcrumbService } from '@meshmakers/shared-services';
4
- import { BreadcrumbData } from "../services/breadcrumbData";
5
- import * as i0 from "@angular/core";
6
- export declare class MmBreadcrumbComponent implements OnInit {
7
- private readonly activatedRoute;
8
- private readonly router;
9
- private readonly breadcrumbService;
10
- protected breadcrumbData: BreadcrumbData[];
11
- fontSize: string;
12
- fontColor: string;
13
- lastLinkColor: string;
14
- symbol: string;
15
- constructor(activatedRoute: ActivatedRoute, router: Router, breadcrumbService: BreadcrumbService);
16
- ngOnInit(): void;
17
- breadCrumbData(): void;
18
- private updateData;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<MmBreadcrumbComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<MmBreadcrumbComponent, "mm-breadcrumb", never, { "fontSize": { "alias": "fontSize"; "required": false; }; "fontColor": { "alias": "fontColor"; "required": false; }; "lastLinkColor": { "alias": "lastLinkColor"; "required": false; }; "symbol": { "alias": "symbol"; "required": false; }; }, {}, never, never, false, never>;
21
- }
@@ -1,21 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import { ButtonTypes, ConfirmationWindowData } from "../models/confirmation";
4
- import * as i0 from "@angular/core";
5
- export declare class MmConfirmationWindowComponent implements OnInit {
6
- private readonly dialogRef;
7
- data: ConfirmationWindowData;
8
- button1Text: string;
9
- button1Result: ButtonTypes;
10
- button2Text: string | null;
11
- button2Result: ButtonTypes | null;
12
- button3Text: string | null;
13
- button3Result: ButtonTypes | null;
14
- constructor(dialogRef: MatDialogRef<MmConfirmationWindowComponent>, data: ConfirmationWindowData);
15
- ngOnInit(): void;
16
- onButton1(): void;
17
- onButton2(): void;
18
- onButton3(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<MmConfirmationWindowComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<MmConfirmationWindowComponent, "mm-confirmation-window", never, {}, {}, never, never, false, never>;
21
- }
@@ -1,70 +0,0 @@
1
- import { DoCheck, ElementRef, EventEmitter, Injector, OnDestroy, OnInit } from "@angular/core";
2
- import { AbstractControl, ControlValueAccessor, FormControl, NgControl, ValidationErrors, Validator } from "@angular/forms";
3
- import { MatFormFieldControl } from "@angular/material/form-field";
4
- import { EntitySelectDataSource } from "@meshmakers/shared-services";
5
- import { Subject } from "rxjs";
6
- import { FocusMonitor } from "@angular/cdk/a11y";
7
- import { MatAutocompleteActivatedEvent, MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
8
- import * as i0 from "@angular/core";
9
- export declare class MmEntitySelectInputComponent implements OnInit, OnDestroy, DoCheck, ControlValueAccessor, MatFormFieldControl<any>, Validator {
10
- elRef: ElementRef<HTMLElement>;
11
- private readonly injector;
12
- private readonly fm;
13
- private static nextId;
14
- readonly searchFormControl: FormControl;
15
- isLoading: boolean;
16
- filteredEntities: any[];
17
- ngControl: NgControl | null;
18
- errorState: boolean;
19
- focused: boolean;
20
- readonly stateChanges: Subject<void>;
21
- readonly id: string;
22
- valueChange: EventEmitter<any>;
23
- private _selectedEntity;
24
- private readonly inputField;
25
- private describedBy;
26
- private activatedValue;
27
- constructor(elRef: ElementRef<HTMLElement>, injector: Injector, fm: FocusMonitor);
28
- private _dataSource;
29
- get dataSource(): EntitySelectDataSource<any> | null;
30
- set dataSource(value: EntitySelectDataSource<any> | null);
31
- private _disabled;
32
- get disabled(): boolean;
33
- set disabled(dis: boolean);
34
- private _placeholder;
35
- get placeholder(): string;
36
- set placeholder(plh: string);
37
- private _required;
38
- get required(): boolean;
39
- set required(req: boolean);
40
- private _prefix;
41
- get prefix(): string;
42
- set prefix(value: string);
43
- get value(): any;
44
- set value(value: any);
45
- get empty(): boolean;
46
- get shouldLabelFloat(): boolean;
47
- ngOnInit(): void;
48
- ngOnDestroy(): void;
49
- ngDoCheck(): void;
50
- clear(): void;
51
- focus(): void;
52
- onEntitySelected(event: MatAutocompleteSelectedEvent): void;
53
- onEntityActivated(event: MatAutocompleteActivatedEvent): void;
54
- onEntityClosed(): void;
55
- reset(): void;
56
- onFocusOut(): void;
57
- onTouched(): void;
58
- registerOnChange(fn: any): void;
59
- registerOnTouched(fn: any): void;
60
- writeValue(obj: any): void;
61
- setDisabledState(isDisabled: boolean): void;
62
- onContainerClick(event: MouseEvent): void;
63
- setDescribedByIds(ids: string[]): void;
64
- validate(control: AbstractControl): ValidationErrors | null;
65
- private _propagateChange;
66
- private readonly _onTouched;
67
- private setValue;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<MmEntitySelectInputComponent, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<MmEntitySelectInputComponent, "mm-entity-select", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; }, {}, never, never, false, never>;
70
- }
@@ -1,27 +0,0 @@
1
- import { ElementRef } from "@angular/core";
2
- import { MatDialogRef } from "@angular/material/dialog";
3
- import { FileUploadData } from "../models/confirmation";
4
- import { MatSnackBar } from "@angular/material/snack-bar";
5
- import * as i0 from "@angular/core";
6
- export declare class MmFileUploadComponent {
7
- private readonly dialogRef;
8
- protected data: FileUploadData;
9
- private snackBar;
10
- protected fileName: import("@angular/core").WritableSignal<string>;
11
- protected fileSize: import("@angular/core").WritableSignal<number>;
12
- protected uploadProgress: import("@angular/core").WritableSignal<number>;
13
- protected fileInput: ElementRef | undefined;
14
- protected selectedFile: File | null;
15
- protected uploadSuccess: boolean;
16
- protected uploadError: boolean;
17
- constructor(dialogRef: MatDialogRef<MmFileUploadComponent>, data: FileUploadData, snackBar: MatSnackBar);
18
- onFileChange(event: any): void;
19
- onFileDrop(event: DragEvent): void;
20
- onDragOver(event: DragEvent): void;
21
- uploadFile(file: File | null): void;
22
- removeFile(): void;
23
- onOk(): void;
24
- onCancel(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<MmFileUploadComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<MmFileUploadComponent, "mm-mm-file-upload", never, {}, {}, never, never, false, never>;
27
- }