@porscheinformatik/material-addons 21.0.2 → 21.0.4

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.
@@ -0,0 +1,1344 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ElementRef, OnInit, Renderer2, InjectionToken, AfterViewInit, OnChanges, AfterViewChecked, EventEmitter, ChangeDetectorRef, SimpleChanges, OnDestroy, ModuleWithProviders, TemplateRef, QueryList, ViewContainerRef, AfterContentInit } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { Location } from '@angular/common';
5
+ import * as i2 from '@angular/router';
6
+ import { Router, Params } from '@angular/router';
7
+ import * as i2$1 from '@angular/material/button';
8
+ import { MatAnchor, MatButton } from '@angular/material/button';
9
+ import * as i3 from '@angular/material/icon';
10
+ import * as i5 from '@angular/material/tooltip';
11
+ import { ThemePalette } from '@angular/material/core';
12
+ import * as i3$1 from '@angular/material/form-field';
13
+ import * as i4 from '@angular/material/input';
14
+ import * as i5$1 from '@angular/forms';
15
+ import { FormGroupDirective, ControlValueAccessor, FormBuilder, FormArray, AbstractControl } from '@angular/forms';
16
+ import * as i2$2 from '@angular/material/card';
17
+ import * as i9 from '@angular/material/table';
18
+ import { MatTableDataSource } from '@angular/material/table';
19
+ import * as i7 from '@angular/material/paginator';
20
+ import { MatPaginator, PageEvent } from '@angular/material/paginator';
21
+ import * as i8 from '@angular/material/sort';
22
+ import { Sort, MatSort, MatSortHeader } from '@angular/material/sort';
23
+ import * as i6 from '@angular/material/menu';
24
+ import { MatDialogRef, MatDialog } from '@angular/material/dialog';
25
+ import { CdkDragDrop, CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
26
+ import { Directionality } from '@angular/cdk/bidi';
27
+ import * as i4$1 from '@angular/cdk/stepper';
28
+ import { CdkStepHeader, CdkStep, CdkStepper, StepContentPositionState } from '@angular/cdk/stepper';
29
+ import { AnimationEvent, AnimationTriggerMetadata } from '@angular/animations';
30
+ import { Subject, Observable, Subscription } from 'rxjs';
31
+ import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
32
+ import * as i2$3 from '@angular/material/stepper';
33
+ import { TemplatePortal } from '@angular/cdk/portal';
34
+ import * as i5$2 from '@angular/material/toolbar';
35
+ import * as i10 from '@angular/material/badge';
36
+ import { Title } from '@angular/platform-browser';
37
+ import { TranslateService } from '@ngx-translate/core';
38
+ import { BreakpointObserver } from '@angular/cdk/layout';
39
+
40
+ declare class MaterialActionButtonComponent {
41
+ actionName: string;
42
+ id: string;
43
+ icon: string;
44
+ routerLink: string;
45
+ liftHigher: boolean;
46
+ liftHigher2: boolean;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialActionButtonComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<MaterialActionButtonComponent, "mad-material-action-button", never, { "actionName": { "alias": "actionName"; "required": false; }; "id": { "alias": "id"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "liftHigher": { "alias": "liftHigher"; "required": false; }; "liftHigher2": { "alias": "liftHigher2"; "required": false; }; }, {}, never, never, true, never>;
49
+ }
50
+
51
+ declare class MaterialActionButtonModule {
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialActionButtonModule, never>;
53
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialActionButtonModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof i5.MatTooltipModule, typeof MaterialActionButtonComponent], [typeof MaterialActionButtonComponent]>;
54
+ static ɵinj: i0.ɵɵInjectorDeclaration<MaterialActionButtonModule>;
55
+ }
56
+
57
+ declare abstract class MadBasicButton {
58
+ button: ElementRef;
59
+ disabled: boolean;
60
+ get pointerEvent(): string;
61
+ get opacity(): string;
62
+ disableClick: (e: Event) => any;
63
+ ngOnChanges(): void;
64
+ disableButton(): void;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<MadBasicButton, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<MadBasicButton, "ng-component", never, {}, {}, never, never, false, never>;
67
+ }
68
+
69
+ declare class DangerButtonComponent extends MadBasicButton {
70
+ type: string;
71
+ disabled: boolean;
72
+ title: string;
73
+ button: ElementRef;
74
+ constructor();
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<DangerButtonComponent, never>;
76
+ static ɵcmp: i0.ɵɵComponentDeclaration<DangerButtonComponent, "mad-danger-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
77
+ }
78
+
79
+ declare class LinkButtonComponent extends MadBasicButton {
80
+ type: string;
81
+ disabled: boolean;
82
+ title: string;
83
+ button: ElementRef;
84
+ constructor();
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<LinkButtonComponent, never>;
86
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinkButtonComponent, "mad-link-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
87
+ }
88
+
89
+ declare class IconButtonComponent extends MadBasicButton {
90
+ type: string;
91
+ disabled: boolean;
92
+ title: string;
93
+ button: ElementRef;
94
+ constructor();
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
96
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "mad-icon-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
97
+ }
98
+
99
+ declare class OutlineButtonComponent extends MadBasicButton {
100
+ type: string;
101
+ disabled: boolean;
102
+ title: string;
103
+ color: ThemePalette;
104
+ button: ElementRef;
105
+ constructor();
106
+ static ɵfac: i0.ɵɵFactoryDeclaration<OutlineButtonComponent, never>;
107
+ static ɵcmp: i0.ɵɵComponentDeclaration<OutlineButtonComponent, "mad-outline-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
108
+ }
109
+
110
+ declare class PrimaryButtonComponent extends MadBasicButton {
111
+ type: string;
112
+ disabled: boolean;
113
+ title: string;
114
+ button: ElementRef;
115
+ constructor();
116
+ static ɵfac: i0.ɵɵFactoryDeclaration<PrimaryButtonComponent, never>;
117
+ static ɵcmp: i0.ɵɵComponentDeclaration<PrimaryButtonComponent, "mad-primary-button", never, { "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
118
+ }
119
+
120
+ declare class MadButtonDirective implements OnInit {
121
+ private renderer;
122
+ private elementRef;
123
+ static readonly UPPERCASE_CLASS = "mad-uppercase";
124
+ static readonly OUTLINE_CLASS = "mad-outline";
125
+ static readonly DEFAULT_COLOR = "primary";
126
+ color: ThemePalette;
127
+ private readonly matComponent;
128
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLButtonElement | HTMLAnchorElement>, anchor: MatAnchor, button: MatButton);
129
+ set outline(value: boolean);
130
+ set uppercase(value: boolean);
131
+ ngOnInit(): void;
132
+ setUppercase(value: boolean): void;
133
+ setOutline(value: boolean): void;
134
+ addOrRemoveClass(condition: boolean, className: string): void;
135
+ static ɵfac: i0.ɵɵFactoryDeclaration<MadButtonDirective, [null, null, { optional: true; }, { optional: true; }]>;
136
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MadButtonDirective, "[madButton]", never, { "color": { "alias": "color"; "required": false; }; "outline": { "alias": "outline"; "required": false; }; "uppercase": { "alias": "uppercase"; "required": false; }; }, {}, never, never, true, never>;
137
+ }
138
+
139
+ declare class MadButtonGroupComponent {
140
+ setClass: boolean;
141
+ static ɵfac: i0.ɵɵFactoryDeclaration<MadButtonGroupComponent, never>;
142
+ static ɵcmp: i0.ɵɵComponentDeclaration<MadButtonGroupComponent, "mad-button-group", never, {}, {}, never, ["*"], true, never>;
143
+ }
144
+
145
+ declare class ButtonModule {
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonModule, never>;
147
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof i5.MatTooltipModule, typeof PrimaryButtonComponent, typeof OutlineButtonComponent, typeof LinkButtonComponent, typeof DangerButtonComponent, typeof IconButtonComponent, typeof MadButtonDirective, typeof MadButtonGroupComponent], [typeof PrimaryButtonComponent, typeof OutlineButtonComponent, typeof LinkButtonComponent, typeof DangerButtonComponent, typeof IconButtonComponent, typeof MadButtonDirective, typeof MadButtonGroupComponent]>;
148
+ static ɵinj: i0.ɵɵInjectorDeclaration<ButtonModule>;
149
+ }
150
+
151
+ interface FormFieldDefaultOptions {
152
+ textAlign?: 'left' | 'right';
153
+ unitPosition?: 'left' | 'right';
154
+ textOverflow?: 'ellipsis' | 'clip' | '';
155
+ multiline?: boolean;
156
+ multilineAutosize?: boolean;
157
+ rows?: number;
158
+ shrinkIfEmpty?: boolean;
159
+ autofillDecimals?: boolean;
160
+ decimalPlaces?: number;
161
+ formatNumber?: boolean;
162
+ roundDisplayValue?: boolean;
163
+ }
164
+ declare const MAD_READONLY_FORM_FIELD_DEFAULT_CONFIGURATION: InjectionToken<FormFieldDefaultOptions>;
165
+ /**
166
+ * Read-only mat-form-field representation of provided value
167
+ *
168
+ * @author Stefan Laesser
169
+ */
170
+ declare class ReadOnlyFormFieldComponent {
171
+ private readonly defaultConfig;
172
+ private readonly numberFormatService;
173
+ readonly inputEl: i0.Signal<ElementRef<HTMLInputElement>>;
174
+ readonly label: i0.InputSignal<string>;
175
+ readonly value: i0.InputSignal<any>;
176
+ readonly useProjectedContent: i0.InputSignal<boolean>;
177
+ readonly textAlign: i0.InputSignal<"left" | "right">;
178
+ readonly textOverflow: i0.InputSignal<"" | "ellipsis" | "clip">;
179
+ readonly errorMessage: i0.InputSignal<string>;
180
+ readonly id: i0.InputSignal<string>;
181
+ readonly unit: i0.InputSignal<string>;
182
+ readonly unitPosition: i0.InputSignal<"left" | "right">;
183
+ readonly formatNumber: i0.InputSignal<boolean>;
184
+ readonly decimalPlaces: i0.InputSignal<number>;
185
+ readonly roundDisplayValue: i0.InputSignal<boolean>;
186
+ readonly autofillDecimals: i0.InputSignal<boolean>;
187
+ readonly multiline: i0.InputSignal<boolean>;
188
+ /**
189
+ * if cdkTextareaAutosize is active for textareas
190
+ */
191
+ readonly multilineAutoSize: i0.InputSignal<boolean>;
192
+ readonly shrinkIfEmpty: i0.InputSignal<boolean>;
193
+ readonly rows: i0.InputSignal<number>;
194
+ /**
195
+ * suffix iocon
196
+ */
197
+ readonly suffix: i0.InputSignal<string>;
198
+ /**
199
+ * prefix iocon
200
+ */
201
+ readonly prefix: i0.InputSignal<string>;
202
+ readonly suffixClickedEmitter: i0.OutputEmitterRef<void>;
203
+ readonly prefixClickedEmitter: i0.OutputEmitterRef<void>;
204
+ protected readonly errorMatcher: i0.Signal<{
205
+ isErrorState: () => boolean;
206
+ }>;
207
+ private readonly displayValue;
208
+ protected readonly displayValueWithUnit: i0.Signal<any>;
209
+ protected readonly actualAmountOfRows: i0.Signal<number>;
210
+ protected readonly sizeChanges: i0.WritableSignal<ResizeObserverEntry>;
211
+ protected toolTipForInputEnabled: i0.Signal<boolean>;
212
+ protected toolTipText: i0.Signal<any>;
213
+ suffixClicked(): void;
214
+ prefixClicked(): void;
215
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReadOnlyFormFieldComponent, never>;
216
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReadOnlyFormFieldComponent, "mad-readonly-form-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "useProjectedContent": { "alias": "useProjectedContent"; "required": false; "isSignal": true; }; "textAlign": { "alias": "textAlign"; "required": false; "isSignal": true; }; "textOverflow": { "alias": "textOverflow"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "unitPosition": { "alias": "unitPosition"; "required": false; "isSignal": true; }; "formatNumber": { "alias": "formatNumber"; "required": false; "isSignal": true; }; "decimalPlaces": { "alias": "decimalPlaces"; "required": false; "isSignal": true; }; "roundDisplayValue": { "alias": "roundDisplayValue"; "required": false; "isSignal": true; }; "autofillDecimals": { "alias": "autofillDecimals"; "required": false; "isSignal": true; }; "multiline": { "alias": "multiline"; "required": false; "isSignal": true; }; "multilineAutoSize": { "alias": "multilineAutoSize"; "required": false; "isSignal": true; }; "shrinkIfEmpty": { "alias": "shrinkIfEmpty"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; }, { "suffixClickedEmitter": "suffixClickedEmitter"; "prefixClickedEmitter": "prefixClickedEmitter"; }, never, ["*"], true, never>;
217
+ }
218
+
219
+ /**
220
+ * Wraps a mat-form-field to replace it by a readOnly representation if necessary
221
+ *
222
+ * @author Stefan Laesser
223
+ */
224
+ declare class ReadOnlyFormFieldWrapperComponent implements OnInit, AfterViewInit, OnChanges, AfterViewChecked {
225
+ private changeDetector;
226
+ private rootFormGroup;
227
+ originalContent: ElementRef;
228
+ readOnlyContentWrapper: ElementRef;
229
+ /**
230
+ * If set to "false", the contained mat-form-field is rendered in all it's glory.
231
+ * If set to "true", a readonly representation of the value is shown using the mat-form-fields label.
232
+ */
233
+ readonly: boolean;
234
+ /**
235
+ * This input *MUST MATCH* the mat-form-field value to ensure correct data
236
+ * binding and formatting of readOnly representation!
237
+ */
238
+ value?: any;
239
+ textAlign: 'right' | 'left';
240
+ formatNumber: boolean;
241
+ decimalPlaces: number;
242
+ roundValue: boolean;
243
+ autofillDecimals: boolean;
244
+ unit: string | null;
245
+ unitPosition: 'right' | 'left';
246
+ errorMessage: string | null;
247
+ id: string;
248
+ /**
249
+ * If set to "false", a readonly input will be rendered.
250
+ * If set to "true", a readonly textarea will be rendered instead.
251
+ */
252
+ multiline: boolean;
253
+ /**
254
+ * Defines the rows for the readonly textarea.
255
+ */
256
+ rows: number;
257
+ /**
258
+ * If shrinkIfEmpty is set to "false", nothing changes
259
+ * If set to "true" and multiline is also "true", the textarea will
260
+ * shrink to one row, if value is empty/null/undefined.
261
+ * Otherwise, the defined rows-value will be used
262
+ */
263
+ shrinkIfEmpty: boolean;
264
+ hideIconInReadOnlyMode: boolean;
265
+ /**
266
+ * suffix iocon
267
+ */
268
+ suffix: string;
269
+ /**
270
+ * prefix iocon
271
+ */
272
+ prefix: string;
273
+ /**
274
+ * if cdkTextareaAutosize is active for textareas
275
+ */
276
+ multilineAutoSize: boolean;
277
+ suffixClickedEmitter: EventEmitter<any>;
278
+ prefixClickedEmitter: EventEmitter<any>;
279
+ /**
280
+ * Automatically taken from the contained <mat-label>
281
+ */
282
+ label: string;
283
+ constructor(changeDetector: ChangeDetectorRef, rootFormGroup: FormGroupDirective);
284
+ ngOnInit(): void;
285
+ ngAfterViewInit(): void;
286
+ ngAfterViewChecked(): void;
287
+ ngOnChanges(_: SimpleChanges): void;
288
+ getLabel(): string;
289
+ suffixClicked(): void;
290
+ prefixClicked(): void;
291
+ private doRendering;
292
+ private extractLabel;
293
+ private extractValue;
294
+ private correctWidth;
295
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReadOnlyFormFieldWrapperComponent, never>;
296
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReadOnlyFormFieldWrapperComponent, "mad-readonly-form-field-wrapper", never, { "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "formatNumber": { "alias": "formatNumber"; "required": false; }; "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; "roundValue": { "alias": "roundDisplayValue"; "required": false; }; "autofillDecimals": { "alias": "autofillDecimals"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "unitPosition": { "alias": "unitPosition"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "id": { "alias": "id"; "required": false; }; "multiline": { "alias": "multiline"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "shrinkIfEmpty": { "alias": "shrinkIfEmpty"; "required": false; }; "hideIconInReadOnlyMode": { "alias": "hideIconInReadOnlyMode"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "multilineAutoSize": { "alias": "multilineAutoSize"; "required": false; }; }, { "suffixClickedEmitter": "suffixClickedEmitter"; "prefixClickedEmitter": "prefixClickedEmitter"; }, never, ["*"], true, never>;
297
+ }
298
+
299
+ declare class ReadOnlyFormFieldModule {
300
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReadOnlyFormFieldModule, never>;
301
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ReadOnlyFormFieldModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3$1.MatFormFieldModule, typeof i4.MatInputModule, typeof i5$1.FormsModule, typeof i5.MatTooltipModule, typeof i3.MatIconModule, typeof ReadOnlyFormFieldComponent, typeof ReadOnlyFormFieldWrapperComponent], [typeof ReadOnlyFormFieldComponent, typeof ReadOnlyFormFieldWrapperComponent]>;
302
+ static ɵinj: i0.ɵɵInjectorDeclaration<ReadOnlyFormFieldModule>;
303
+ }
304
+
305
+ declare interface FormatOptions {
306
+ decimalPlaces?: number;
307
+ finalFormatting?: boolean;
308
+ autofillDecimals?: boolean;
309
+ }
310
+ declare interface StripOptions {
311
+ decimalPlaces?: number;
312
+ removeLeadingZeros?: boolean;
313
+ }
314
+ declare class NumberFormatService {
315
+ static readonly NEGATIVE = "-";
316
+ static readonly NUMBERS: string[];
317
+ static readonly DEFAULT_FINAL_FORMATTING = true;
318
+ static readonly DEFAULT_DECIMAL_PLACES = 2;
319
+ static readonly DEFAULT_AUTOFILL_DECIMALS = false;
320
+ static readonly DEFAULT_REMOVE_LEADING_ZEROS = false;
321
+ decimalSeparator: ',' | '.';
322
+ groupingSeparator: ',' | '.';
323
+ allowedKeys: string[];
324
+ constructor(locale: string);
325
+ /**
326
+ * Call this if the locale is changed to update the separators.
327
+ * @param locale the new locale
328
+ */
329
+ prepareSeparators(locale: string): void;
330
+ static valueIsSet(value: any): boolean;
331
+ format(value: number, options?: Partial<FormatOptions>): string;
332
+ formatNumber(value: string, options?: Partial<FormatOptions>): string;
333
+ strip(value: string, options?: StripOptions): string;
334
+ private addMissingLeadingZero;
335
+ private valueOrDefault;
336
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberFormatService, never>;
337
+ static ɵprov: i0.ɵɵInjectableDeclaration<NumberFormatService>;
338
+ }
339
+
340
+ declare class NumericFieldDirective implements OnInit, OnDestroy, AfterViewChecked, ControlValueAccessor {
341
+ private renderer;
342
+ private inputEl;
343
+ private numberFormatService;
344
+ textAlign: 'right' | 'left';
345
+ decimalPlaces: number;
346
+ roundValue: boolean;
347
+ autofillDecimals: boolean;
348
+ unit: string | null;
349
+ unitPosition: 'right' | 'left';
350
+ numericValueChanged: EventEmitter<number>;
351
+ private displayValue;
352
+ private originalValue;
353
+ private _numericValue;
354
+ private inputChangeListener;
355
+ private keyupListener;
356
+ private keydownListener;
357
+ set numericValue(value: number);
358
+ private unitSpan;
359
+ private textSpan;
360
+ constructor(renderer: Renderer2, inputEl: ElementRef, numberFormatService: NumberFormatService);
361
+ onChange: any;
362
+ onTouched: any;
363
+ registerOnChange(fn: any): void;
364
+ registerOnTouched(fn: any): void;
365
+ setDisabledState(): void;
366
+ writeValue(value: number): void;
367
+ ngOnInit(): void;
368
+ ngOnDestroy(): void;
369
+ ngAfterViewChecked(): void;
370
+ handleInputChanged(): void;
371
+ formatInput(element: HTMLInputElement, finalFormatting: boolean): void;
372
+ updateInput(value: string): void;
373
+ getValueForFormControl(): number | undefined;
374
+ private injectUnitSymbol;
375
+ private detachListener;
376
+ private roundOrTruncate;
377
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumericFieldDirective, never>;
378
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NumericFieldDirective, "[madNumericField]", never, { "textAlign": { "alias": "textAlign"; "required": false; }; "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; "roundValue": { "alias": "roundDisplayValue"; "required": false; }; "autofillDecimals": { "alias": "autofillDecimals"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "unitPosition": { "alias": "unitPosition"; "required": false; }; "numericValue": { "alias": "numericValue"; "required": false; }; }, { "numericValueChanged": "numericValueChange"; }, never, never, true, never>;
379
+ }
380
+
381
+ declare class NumericFieldModule {
382
+ static forRoot(): ModuleWithProviders<NumericFieldModule>;
383
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumericFieldModule, never>;
384
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NumericFieldModule, never, [typeof NumericFieldDirective], [typeof NumericFieldDirective]>;
385
+ static ɵinj: i0.ɵɵInjectorDeclaration<NumericFieldModule>;
386
+ }
387
+
388
+ declare class CardComponent {
389
+ cancelDisabled: boolean;
390
+ cancelText: string;
391
+ readonly: boolean;
392
+ editText: string;
393
+ expandable: boolean;
394
+ expanded: boolean;
395
+ saveDisabled: boolean;
396
+ saveText: string;
397
+ title?: string;
398
+ editMode: boolean;
399
+ additionalActionIcon: string;
400
+ additionalActionText: string;
401
+ edit: EventEmitter<any>;
402
+ cancel: EventEmitter<any>;
403
+ save: EventEmitter<any>;
404
+ additionalAction: EventEmitter<any>;
405
+ onCancel(): void;
406
+ onEdit(): void;
407
+ onSave(): void;
408
+ toggleCollapse(): void;
409
+ additionalActionClicked(): void;
410
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
411
+ static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "mad-card", never, { "cancelDisabled": { "alias": "cancelDisabled"; "required": false; }; "cancelText": { "alias": "cancelText"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "editText": { "alias": "editText"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "saveDisabled": { "alias": "saveDisabled"; "required": false; }; "saveText": { "alias": "saveText"; "required": false; }; "title": { "alias": "title"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "additionalActionIcon": { "alias": "additionalActionIcon"; "required": false; }; "additionalActionText": { "alias": "additionalActionText"; "required": false; }; }, { "edit": "edit"; "cancel": "cancel"; "save": "save"; "additionalAction": "additionalAction"; }, never, ["*"], true, never>;
412
+ }
413
+
414
+ declare class ThrottleClickDirective implements OnInit, OnDestroy {
415
+ throttleTime: number;
416
+ throttleClick: EventEmitter<any>;
417
+ private clicks;
418
+ private subscription;
419
+ clickEvent(event: any): void;
420
+ ngOnInit(): void;
421
+ ngOnDestroy(): void;
422
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThrottleClickDirective, never>;
423
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThrottleClickDirective, "[madThrottleClick]", never, { "throttleTime": { "alias": "throttleTime"; "required": false; }; }, { "throttleClick": "throttleClick"; }, never, never, true, never>;
424
+ }
425
+
426
+ declare class ThrottleClickModule {
427
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThrottleClickModule, never>;
428
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ThrottleClickModule, never, [typeof i1.CommonModule, typeof ThrottleClickDirective], [typeof ThrottleClickDirective]>;
429
+ static ɵinj: i0.ɵɵInjectorDeclaration<ThrottleClickModule>;
430
+ }
431
+
432
+ declare class CardModule {
433
+ static ɵfac: i0.ɵɵFactoryDeclaration<CardModule, never>;
434
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CardModule, never, [typeof i1.CommonModule, typeof i2$2.MatCardModule, typeof i3.MatIconModule, typeof ButtonModule, typeof i2$1.MatButtonModule, typeof ThrottleClickModule, typeof CardComponent], [typeof CardComponent]>;
435
+ static ɵinj: i0.ɵɵInjectorDeclaration<CardModule>;
436
+ }
437
+
438
+ interface QuickListItem {
439
+ id: string;
440
+ }
441
+ declare class BaseQuickListComponent<T> implements OnInit, AfterViewInit {
442
+ changeDetectorRef: ChangeDetectorRef;
443
+ formBuilder: FormBuilder;
444
+ allItems: T[];
445
+ addLabel: string;
446
+ addPossible: boolean;
447
+ removePossible: boolean;
448
+ blankItem: any;
449
+ readonly: boolean;
450
+ maxItems: number;
451
+ minItems: number;
452
+ formArray: FormArray;
453
+ added: EventEmitter<T>;
454
+ removed: EventEmitter<T>;
455
+ itemTemplate: TemplateRef<any>;
456
+ itemRows: QueryList<ElementRef>;
457
+ rowCountFocus: number;
458
+ addEventFunction: Function;
459
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
460
+ ngOnInit(): void;
461
+ ngAfterViewInit(): void;
462
+ addItem(): void;
463
+ addReactiveItem(): void;
464
+ removeItem(item: T): void;
465
+ removeReactiveItem(item: AbstractControl<any>): void;
466
+ setFocusOnAdd(): void;
467
+ isAddAllowed(): boolean;
468
+ isAddReactiveAllowed(): boolean;
469
+ isDeleteAllowed(): boolean;
470
+ isDeleteReactiveAllowed(): boolean;
471
+ private interalAddItem;
472
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseQuickListComponent<any>, never>;
473
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseQuickListComponent<any>, "mad-base-quick-list", never, { "allItems": { "alias": "allItems"; "required": false; }; "addLabel": { "alias": "addLabel"; "required": false; }; "addPossible": { "alias": "addPossible"; "required": false; }; "removePossible": { "alias": "removePossible"; "required": false; }; "blankItem": { "alias": "blankItem"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxItems": { "alias": "maxItems"; "required": false; }; "minItems": { "alias": "minItems"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; }, { "added": "added"; "removed": "removed"; }, ["itemTemplate"], never, true, never>;
474
+ }
475
+
476
+ declare class QuickListCompactComponent extends BaseQuickListComponent<QuickListItem> {
477
+ changeDetectorRef: ChangeDetectorRef;
478
+ formBuilder: FormBuilder;
479
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
480
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuickListCompactComponent, never>;
481
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuickListCompactComponent, "mad-quick-list-compact", never, {}, {}, never, ["label"], true, never>;
482
+ }
483
+
484
+ declare class QuickListComponent extends BaseQuickListComponent<QuickListItem> {
485
+ changeDetectorRef: ChangeDetectorRef;
486
+ formBuilder: FormBuilder;
487
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
488
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuickListComponent, never>;
489
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuickListComponent, "mad-quick-list", never, {}, {}, never, ["label"], true, never>;
490
+ }
491
+
492
+ declare class ReactiveFormQuickListComponent extends BaseQuickListComponent<QuickListItem> {
493
+ changeDetectorRef: ChangeDetectorRef;
494
+ formBuilder: FormBuilder;
495
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
496
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveFormQuickListComponent, never>;
497
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReactiveFormQuickListComponent, "mad-reactive-form-quick-list", never, {}, {}, never, ["label"], true, never>;
498
+ }
499
+
500
+ declare class ReactiveFormQuickListCompactComponent extends BaseQuickListComponent<QuickListItem> {
501
+ changeDetectorRef: ChangeDetectorRef;
502
+ formBuilder: FormBuilder;
503
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
504
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveFormQuickListCompactComponent, never>;
505
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReactiveFormQuickListCompactComponent, "mad-reactive-form-quick-list-compact", never, {}, {}, never, ["label"], true, never>;
506
+ }
507
+
508
+ declare class QuickListModule {
509
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuickListModule, never>;
510
+ static ɵmod: i0.ɵɵNgModuleDeclaration<QuickListModule, never, [typeof i1.CommonModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof ButtonModule, typeof i5$1.ReactiveFormsModule, typeof QuickListComponent, typeof BaseQuickListComponent, typeof QuickListCompactComponent, typeof ReactiveFormQuickListComponent, typeof ReactiveFormQuickListCompactComponent], [typeof QuickListComponent, typeof QuickListCompactComponent, typeof BaseQuickListComponent, typeof ReactiveFormQuickListComponent, typeof ReactiveFormQuickListCompactComponent]>;
511
+ static ɵinj: i0.ɵɵInjectorDeclaration<QuickListModule>;
512
+ }
513
+
514
+ interface ColumnHeader {
515
+ label: string;
516
+ isSortable?: boolean;
517
+ dataPropertyName: string;
518
+ isRightAligned?: boolean;
519
+ isSticky?: boolean;
520
+ }
521
+
522
+ interface TableAction {
523
+ label: string;
524
+ action: string;
525
+ outputRow?: any;
526
+ }
527
+
528
+ declare class TableComponent implements OnInit, AfterViewInit {
529
+ columns: ColumnHeader[];
530
+ filterLabel: string;
531
+ filterPlaceholder: string;
532
+ noDataText: string;
533
+ pageSizeOptions: number[];
534
+ defaultPageSize: number;
535
+ rowActions: TableAction[];
536
+ tableActions: TableAction[];
537
+ tableAction: EventEmitter<TableAction>;
538
+ rowAction: EventEmitter<TableAction>;
539
+ sortEvent: EventEmitter<Sort>;
540
+ paginator: MatPaginator;
541
+ sort: MatSort;
542
+ readonly ACTION_COLUMN_NAME = "__action__";
543
+ dataSource: MatTableDataSource<any[]>;
544
+ columnNames: string[];
545
+ isRowClickable: boolean;
546
+ defaultAction: TableAction;
547
+ isFilterEnabled: boolean;
548
+ isPaginationEnabled: boolean;
549
+ set displayedData(data: any[]);
550
+ set paginationEnabled(isPaginationEnabled: boolean);
551
+ set filterEnabled(isFilterEnabled: boolean);
552
+ ngOnInit(): void;
553
+ ngAfterViewInit(): void;
554
+ onFilter(value: string): void;
555
+ onRowEvent(event: MouseEvent, row: any, action?: TableAction): void;
556
+ onSortingEvent(sortingParams: Sort): void;
557
+ onTableAction(tableAction: TableAction): void;
558
+ private setFilterValue;
559
+ private isClickOnRowMenuIcon;
560
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
561
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "mad-table", never, { "columns": { "alias": "columns"; "required": false; }; "filterLabel": { "alias": "filterLabel"; "required": false; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; }; "noDataText": { "alias": "noDataText"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "defaultPageSize": { "alias": "defaultPageSize"; "required": false; }; "rowActions": { "alias": "rowActions"; "required": false; }; "tableActions": { "alias": "tableActions"; "required": false; }; "displayedData": { "alias": "displayedData"; "required": false; }; "paginationEnabled": { "alias": "paginationEnabled"; "required": false; }; "filterEnabled": { "alias": "filterEnabled"; "required": false; }; }, { "tableAction": "tableAction"; "rowAction": "rowAction"; "sortEvent": "sortEvent"; }, never, never, true, never>;
562
+ }
563
+
564
+ declare class TableModule {
565
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
566
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, never, [typeof i1.CommonModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof i3$1.MatFormFieldModule, typeof i4.MatInputModule, typeof i6.MatMenuModule, typeof i7.MatPaginatorModule, typeof i8.MatSortModule, typeof i9.MatTableModule, typeof ButtonModule, typeof TableComponent], [typeof TableComponent]>;
567
+ static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
568
+ }
569
+
570
+ interface DataTableFilterOption {
571
+ key: string;
572
+ label: string;
573
+ }
574
+
575
+ interface DataTableColumn {
576
+ id: string;
577
+ label: string;
578
+ orderByName?: string;
579
+ dataPropertyName: string;
580
+ isSortable?: boolean;
581
+ isRightAligned?: boolean;
582
+ transformer?: any;
583
+ transformerParams?: any[];
584
+ isFilterable?: boolean;
585
+ filterParams?: {
586
+ filterOptions: DataTableFilterOption[];
587
+ };
588
+ }
589
+
590
+ interface DataTableColumnDefinition {
591
+ id: string;
592
+ label: string;
593
+ editable?: boolean;
594
+ infotext?: string;
595
+ displayedColumns: DataTableColumn[];
596
+ }
597
+ interface DataTableColumnDefinitionChange {
598
+ action: string;
599
+ definition: DataTableColumnDefinition;
600
+ }
601
+ interface DataTableDialogData {
602
+ allColumns: DataTableColumn[];
603
+ definition: DataTableColumnDefinition;
604
+ deleteDefinitionAllowed: boolean;
605
+ filterColumnsLabel: string;
606
+ filterColumnsPlaceHolder: string;
607
+ noDataText: string;
608
+ titleLabel: string;
609
+ selectedLabel: string;
610
+ availableLabel: string;
611
+ saveLabel: string;
612
+ deleteLabel: string;
613
+ cancelLabel: string;
614
+ infoTextLabel: string;
615
+ }
616
+
617
+ declare class DataTableColumnsModalComponent implements OnInit {
618
+ dialogRef: MatDialogRef<DataTableColumnsModalComponent>;
619
+ data: DataTableDialogData;
620
+ definition: DataTableColumnDefinition;
621
+ searchFilter: string;
622
+ selectedColumns: DataTableColumn[];
623
+ availableColumns: DataTableColumn[];
624
+ filteredAvailableColumns: DataTableColumn[];
625
+ constructor(dialogRef: MatDialogRef<DataTableColumnsModalComponent>, data: DataTableDialogData);
626
+ ngOnInit(): void;
627
+ onDrop(event: CdkDragDrop<DataTableColumn[]>): void;
628
+ onSave(): void;
629
+ onDelete(): void;
630
+ onCancel(): void;
631
+ updateFilterValue(): void;
632
+ findMatchingItemIndex(previousContainer: CdkDropList, item: CdkDrag): number;
633
+ clearFilterValue(): void;
634
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableColumnsModalComponent, never>;
635
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataTableColumnsModalComponent, "mad-data-table-columns-modal.component", never, {}, {}, never, never, true, never>;
636
+ }
637
+
638
+ type DataTableSelectionEmitMode = 'ON_ACTION' | 'ON_SELECTION' | 'NONE';
639
+
640
+ type DataTableSelectionMode = 'SINGLE' | 'BATCH';
641
+
642
+ interface DataTableAction {
643
+ label: string;
644
+ action: string;
645
+ type: 'SINGLE' | 'BATCH' | 'NONE';
646
+ selected?: any[];
647
+ hiddenInMode?: string;
648
+ groupId?: string | number;
649
+ isHidden?: (data?: any[]) => boolean;
650
+ isDisabled?: (data?: any[]) => boolean;
651
+ }
652
+
653
+ declare class DataTableActionType {
654
+ static SINGLE: string;
655
+ static BATCH: string;
656
+ static NONE: string;
657
+ }
658
+
659
+ type DataTableSelectionEmitType = 'ID' | 'DATA';
660
+
661
+ type DataTableHeaderType = 'PLAIN' | 'SORT' | 'FILTER' | 'SORT_AND_FILTER';
662
+
663
+ type DataTableFilterMode = 'NONE' | 'TABLE_BASED' | 'COLUMN_BASED';
664
+
665
+ type DataTableFilterObject = {
666
+ [key: string]: any;
667
+ };
668
+
669
+ declare class DataTableFilterHeader implements OnInit, AfterViewInit, OnDestroy {
670
+ private element;
671
+ private viewContainerRef;
672
+ private renderer;
673
+ private madFilter;
674
+ private matSortHeader;
675
+ id: string;
676
+ madFilterColumnRightAligned?: boolean;
677
+ set madFilterOptions(filterOptions: DataTableFilterOption[] | undefined);
678
+ private _filterComponent;
679
+ private _filterValue;
680
+ private _filterOptions;
681
+ private _subscription;
682
+ constructor(element: ElementRef, viewContainerRef: ViewContainerRef, renderer: Renderer2, madFilter: DataTableFilter, matSortHeader: MatSortHeader);
683
+ ngOnInit(): void;
684
+ ngAfterViewInit(): void;
685
+ ngOnDestroy(): void;
686
+ observeFilterComponent(): void;
687
+ get filterValue(): string | null;
688
+ set filterValue(filterValue: string | null);
689
+ onMouseenter(): void;
690
+ onMouseleave(): void;
691
+ private insertFilterComponent;
692
+ private getWrappedHeader;
693
+ private findArrow;
694
+ private findArrowInList;
695
+ private isArrowElement;
696
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableFilterHeader, [null, null, null, { optional: true; }, { optional: true; }]>;
697
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableFilterHeader, "th[mad-filter-header]", never, { "id": { "alias": "mad-filter-header"; "required": false; }; "madFilterColumnRightAligned": { "alias": "madFilterColumnRightAligned"; "required": false; }; "madFilterOptions": { "alias": "madFilterOptions"; "required": false; }; }, {}, never, never, true, never>;
698
+ }
699
+
700
+ declare class DataTableFilter {
701
+ readonly filterChange: EventEmitter<DataTableFilterObject>;
702
+ filterables: Map<string, DataTableFilterHeader>;
703
+ register(filterable: DataTableFilterHeader): void;
704
+ unregister(filterable: DataTableFilterHeader): void;
705
+ changeFilter(): void;
706
+ updateFilterables(dataTableFilterObject: DataTableFilterObject | undefined): void;
707
+ getActiveFilterCount(): number;
708
+ private createFilter;
709
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableFilter, never>;
710
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableFilter, "[madFilter]", never, {}, { "filterChange": "madFilterChange"; }, never, never, true, never>;
711
+ }
712
+
713
+ declare class DataTablePersistenceService {
714
+ sortKey: string;
715
+ filterKey: string;
716
+ pageSizeKey: string;
717
+ saveSort(tableId: string, sort: Sort | undefined): void;
718
+ loadSort(tableId: string): Sort | undefined;
719
+ saveFilter(tableId: string, filter: string | DataTableFilterObject | undefined): void;
720
+ loadFilter(tableId: string): DataTableFilterObject | undefined;
721
+ savePageSize(tableId: string, pageSize: number | undefined): void;
722
+ loadPageSize(tableId: string): number | undefined;
723
+ protected save<T>(id: string, item: T | undefined): void;
724
+ protected load<T>(id: string): T | undefined;
725
+ protected getId(tableId: string, key: string): string;
726
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTablePersistenceService, never>;
727
+ static ɵprov: i0.ɵɵInjectableDeclaration<DataTablePersistenceService>;
728
+ }
729
+ declare const MAD_DATA_TABLE_PERSISTENCE_SERVICE: InjectionToken<DataTablePersistenceService>;
730
+
731
+ interface NumberFormat {
732
+ decimalSeparator: string;
733
+ groupingSeparator: string;
734
+ units: string[];
735
+ }
736
+ interface DataTableGlobalConfiguration {
737
+ dateTimeFormat?: string | string[];
738
+ numberFormat?: NumberFormat;
739
+ }
740
+ declare const MAD_DATA_TABLE_GLOBAL_CONFIGURATION: InjectionToken<DataTableGlobalConfiguration>;
741
+
742
+ declare class DataTableTemplateCellDefinition implements OnInit, OnDestroy {
743
+ private templateRef;
744
+ private columnDef;
745
+ constructor(templateRef: TemplateRef<any>, columnDef: DataTableTemplateColumnDefinition);
746
+ ngOnInit(): void;
747
+ ngOnDestroy(): void;
748
+ getCellTemplate(): TemplateRef<any>;
749
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableTemplateCellDefinition, never>;
750
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableTemplateCellDefinition, "[madCellDef]", never, {}, {}, never, never, true, never>;
751
+ }
752
+
753
+ declare class DataTableTemplateColumnDefinition {
754
+ madColumnDef: string;
755
+ cellDef: DataTableTemplateCellDefinition | null;
756
+ register(cellDef: DataTableTemplateCellDefinition): void;
757
+ unregister(): void;
758
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableTemplateColumnDefinition, never>;
759
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableTemplateColumnDefinition, "[madColumnDef]", never, { "madColumnDef": { "alias": "madColumnDef"; "required": false; }; }, {}, never, never, true, never>;
760
+ }
761
+
762
+ declare class DataTableTemplateExpandableColumnDefinition {
763
+ madExpandableColumnDef: string;
764
+ cellDef: DataTableTemplateExpandableCellDefinition | null;
765
+ register(cellDef: DataTableTemplateExpandableCellDefinition): void;
766
+ unregister(): void;
767
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableTemplateExpandableColumnDefinition, never>;
768
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableTemplateExpandableColumnDefinition, "[madExpandableColumnDef]", never, { "madExpandableColumnDef": { "alias": "madExpandableColumnDef"; "required": false; }; }, {}, never, never, true, never>;
769
+ }
770
+
771
+ declare class DataTableTemplateExpandableCellDefinition implements OnInit, OnDestroy {
772
+ private templateRef;
773
+ columnDef: DataTableTemplateExpandableColumnDefinition;
774
+ constructor(templateRef: TemplateRef<any>, columnDef: DataTableTemplateExpandableColumnDefinition);
775
+ ngOnInit(): void;
776
+ ngOnDestroy(): void;
777
+ getCellTemplate(): TemplateRef<any>;
778
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableTemplateExpandableCellDefinition, never>;
779
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableTemplateExpandableCellDefinition, "[madExpandableCellDef]", never, {}, {}, never, never, true, never>;
780
+ }
781
+
782
+ interface DataTablePersistenceConfiguration {
783
+ persistSort: boolean;
784
+ persistFilter: boolean;
785
+ persistPageSize: boolean;
786
+ }
787
+
788
+ declare class DataTableComponent implements AfterViewInit, OnChanges {
789
+ private changeDetectorRef;
790
+ private matDialog;
791
+ private persistenceService;
792
+ private dataTableGlobalConfig;
793
+ id: string;
794
+ filterLabel: string;
795
+ filterPlaceholder: string;
796
+ filterColumnsLabel: string;
797
+ filterColumnsPlaceHolder: string;
798
+ showEmptyTable: boolean;
799
+ noDataText: string;
800
+ columnSettingsModalTitleLabel: string;
801
+ selectedLabel: string;
802
+ availableLabel: string;
803
+ saveLabel: string;
804
+ deleteLabel: string;
805
+ cancelLabel: string;
806
+ infoTextLabel: string;
807
+ tableClass: string;
808
+ translateLabels: boolean;
809
+ set useAsync(useAsync: boolean);
810
+ /**
811
+ * @deprecated
812
+ * Please use the more specific persistenceConfig instead
813
+ */
814
+ set stateful(stateful: boolean);
815
+ persistenceConfig: DataTablePersistenceConfiguration;
816
+ loading: boolean;
817
+ tableData: any;
818
+ idGenerator: any;
819
+ parentIdGenerator: any;
820
+ defaultSort: Sort;
821
+ externalFilter: any;
822
+ paginationEnabled: boolean;
823
+ page: PageEvent;
824
+ pageSizeOptions: number[];
825
+ actions: DataTableAction[];
826
+ selectionEmitType: DataTableSelectionEmitType;
827
+ showDeleteFilterAction: boolean;
828
+ disableRowClick: boolean;
829
+ deleteDefinitionAllowed: boolean;
830
+ rowExpandable: (data: any) => boolean;
831
+ set selection(selection: string[] | any[]);
832
+ /**
833
+ * @deprecated
834
+ * Please use "filterMode" instead
835
+ */
836
+ set filterEnabled(isFilterEnabled: boolean);
837
+ set filterMode(filterMode: DataTableFilterMode);
838
+ set filterValue(filterValue: string | DataTableFilterObject | undefined);
839
+ set externalPaginator(paginator: any);
840
+ set defaultPageSize(defaultSize: number);
841
+ set selectionEmitMode(selectionEmitMode: DataTableSelectionEmitMode);
842
+ /**
843
+ * @deprecated
844
+ * This function mixes up 2 responsibilities:
845
+ * - determining if actions should be displayed / handled
846
+ * - determining whether actions are row based (single) or table based (batch)
847
+ * Please use a combination of "selectionEmitMode" and "selectionMode" instead:
848
+ * - selectionEmitMode determines how selected items are handled (as part of actions, as selections or not at all)
849
+ * - selectionMode determines if selected items are treated separately (single) or together (batch)
850
+ */
851
+ set forceMode(selectionMode: string);
852
+ set forceSelectionMode(selectionMode: DataTableSelectionMode);
853
+ set displayedColumns(cols: DataTableColumn[]);
854
+ set displayedColumnDefinition(def: DataTableColumnDefinition);
855
+ set columnDefinitions(definitions: DataTableColumnDefinition[]);
856
+ set allColumns(allColumns: DataTableColumn[]);
857
+ actionEvent: EventEmitter<DataTableAction>;
858
+ selectionEvent: EventEmitter<any[]>;
859
+ sortEvent: EventEmitter<Sort>;
860
+ filterEvent: EventEmitter<string | DataTableFilterObject>;
861
+ pageEvent: EventEmitter<PageEvent>;
862
+ allColumnsEvent: EventEmitter<void>;
863
+ columnDefinitionChangeEvent: EventEmitter<DataTableColumnDefinitionChange>;
864
+ viewDefinitionChangeEvent: EventEmitter<DataTableColumnDefinition>;
865
+ paginator: MatPaginator;
866
+ set matSort(matSort: MatSort);
867
+ filter: DataTableFilter;
868
+ set columnDefs(columnDefs: QueryList<DataTableTemplateColumnDefinition> | undefined);
869
+ get columnDefs(): QueryList<DataTableTemplateColumnDefinition> | undefined;
870
+ set expandableDef(expandableDef: DataTableTemplateExpandableCellDefinition | undefined);
871
+ get expandableDef(): DataTableTemplateExpandableCellDefinition | undefined;
872
+ dataSource: MatTableDataSource<any[]>;
873
+ allSelected: boolean;
874
+ extPaginator: MatPaginator;
875
+ readonly ACTION_COLUMN_NAME = "__action__";
876
+ tableActions: DataTableAction[][];
877
+ rowActions: DataTableAction[];
878
+ columns: DataTableColumn[];
879
+ columnIds: string[];
880
+ expandedElement: DataTableColumn | null;
881
+ editableColumnDefinitions: DataTableColumnDefinition[];
882
+ viewableColumnDefinitions: DataTableColumnDefinition[];
883
+ private _useAsync;
884
+ private _rowMap;
885
+ private _selectionModel;
886
+ private _selection;
887
+ private _sort;
888
+ private _forceSelectionMode;
889
+ private _selectionEmitMode;
890
+ private _filterMode;
891
+ private _filterValue;
892
+ private _allColumnDefinitions;
893
+ private _allAvailableColumns;
894
+ private _selectedColumnDefinition;
895
+ private _showColumnModal;
896
+ private _columnDefs;
897
+ private _expandableDef;
898
+ constructor(changeDetectorRef: ChangeDetectorRef, matDialog: MatDialog, persistenceService: DataTablePersistenceService, dataTableGlobalConfig: DataTableGlobalConfiguration);
899
+ ngAfterViewInit(): void;
900
+ ngOnChanges(changes: SimpleChanges): void;
901
+ /** TABLE DISPLAY HANDLING */
902
+ getDataTableHeaderType(column: DataTableColumn): DataTableHeaderType;
903
+ getCustomCellTemplate(columnId: string): TemplateRef<any> | null;
904
+ getCustomExpandableTemplate(): TemplateRef<any> | null;
905
+ get expandableColumnDef(): string;
906
+ onExpand(event: MouseEvent, element: DataTableColumn): void;
907
+ /** ACTION BUTTON DISPLAY HANDLING */
908
+ hasVisibleRowActions(displayedData: any): boolean;
909
+ isHidden(action: DataTableAction): boolean;
910
+ private isHiddenForData;
911
+ isDisabled(action: DataTableAction): boolean;
912
+ private isDisabledForActionType;
913
+ getSelectedCount(actionType: string): string;
914
+ private get selectedCount();
915
+ /** TABLE DATA CHANGE HANDLING */
916
+ private updateDataTableData;
917
+ private updateSelectionModel;
918
+ /** ACTION & SELECTION HANDLING */
919
+ get selectionEmitMode(): DataTableSelectionEmitMode;
920
+ get selectionMode(): DataTableSelectionMode;
921
+ get displayedData(): any[];
922
+ get showActionColumn(): boolean;
923
+ showCheckbox(displayedData: any): boolean;
924
+ showRowActionIcon(displayedData: any): boolean;
925
+ showRadioButton(displayedData: any): boolean;
926
+ showExpandableButton(displayedData: any): boolean;
927
+ isSelected(rowId: string): boolean;
928
+ onToggleSelectAll(): void;
929
+ onActionEvent(action: DataTableAction): void;
930
+ onSelectionEvent(id: any): void;
931
+ onRowEvent(event: MouseEvent, row: any, action?: DataTableAction): void;
932
+ private get defaultAction();
933
+ private get hideActionColumn();
934
+ private processSelection;
935
+ private emitSelection;
936
+ private getSelection;
937
+ private static isClickOnRowMenuIcon;
938
+ /** SORT HANDLING */
939
+ onSortingEvent(sort: Sort): void;
940
+ private applySortData;
941
+ /** FILTER HANDLING */
942
+ get filterMode(): DataTableFilterMode;
943
+ onTableBasedFilterEvent(event: Event): void;
944
+ onColumnBasedFilterEvent(filter: DataTableFilterObject | undefined): void;
945
+ onDeleteFilter(): void;
946
+ private onFilteringEvent;
947
+ private applyFilterPredicate;
948
+ private applyFilterValue;
949
+ /** PAGINATION HANDLING */
950
+ onPageEvent(event: PageEvent): void;
951
+ get pageIndex(): number;
952
+ get pageSize(): number;
953
+ get pageLength(): number;
954
+ private updatePaginator;
955
+ private get dataLength();
956
+ private get showAll();
957
+ /** INIT STATE */
958
+ private initState;
959
+ private initSortState;
960
+ private setSort;
961
+ private initFilterState;
962
+ private initPaginatorState;
963
+ /** COLUMN HANDLING */
964
+ onViewDefinition(definition: DataTableColumnDefinition): void;
965
+ onColumnSettings(definition?: DataTableColumnDefinition): void;
966
+ isCurrentDefinition(definition: DataTableColumnDefinition): boolean;
967
+ private openColumnModal;
968
+ getFilterBadgeContent(): string;
969
+ disableDeleteFilterButton(): boolean;
970
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
971
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "mad-data-table", never, { "id": { "alias": "id"; "required": false; }; "filterLabel": { "alias": "filterLabel"; "required": false; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; }; "filterColumnsLabel": { "alias": "filterColumnsLabel"; "required": false; }; "filterColumnsPlaceHolder": { "alias": "filterColumnsPlaceHolder"; "required": false; }; "showEmptyTable": { "alias": "showEmptyTable"; "required": false; }; "noDataText": { "alias": "noDataText"; "required": false; }; "columnSettingsModalTitleLabel": { "alias": "columnSettingsModalTitleLabel"; "required": false; }; "selectedLabel": { "alias": "selectedLabel"; "required": false; }; "availableLabel": { "alias": "availableLabel"; "required": false; }; "saveLabel": { "alias": "saveLabel"; "required": false; }; "deleteLabel": { "alias": "deleteLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "infoTextLabel": { "alias": "infoTextLabel"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "translateLabels": { "alias": "translateLabels"; "required": false; }; "useAsync": { "alias": "useAsync"; "required": false; }; "stateful": { "alias": "stateful"; "required": false; }; "persistenceConfig": { "alias": "persistenceConfig"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "idGenerator": { "alias": "idGenerator"; "required": false; }; "parentIdGenerator": { "alias": "parentIdGenerator"; "required": false; }; "defaultSort": { "alias": "defaultSort"; "required": false; }; "externalFilter": { "alias": "externalFilter"; "required": false; }; "paginationEnabled": { "alias": "paginationEnabled"; "required": false; }; "page": { "alias": "page"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "selectionEmitType": { "alias": "selectionEmitType"; "required": false; }; "showDeleteFilterAction": { "alias": "showDeleteFilterAction"; "required": false; }; "disableRowClick": { "alias": "disableRowClick"; "required": false; }; "deleteDefinitionAllowed": { "alias": "deleteDefinitionAllowed"; "required": false; }; "rowExpandable": { "alias": "rowExpandable"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "filterEnabled": { "alias": "filterEnabled"; "required": false; }; "filterMode": { "alias": "filterMode"; "required": false; }; "filterValue": { "alias": "filterValue"; "required": false; }; "externalPaginator": { "alias": "externalPaginator"; "required": false; }; "defaultPageSize": { "alias": "defaultPageSize"; "required": false; }; "selectionEmitMode": { "alias": "selectionEmitMode"; "required": false; }; "forceMode": { "alias": "forceMode"; "required": false; }; "forceSelectionMode": { "alias": "forceSelectionMode"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "displayedColumnDefinition": { "alias": "displayedColumnDefinition"; "required": false; }; "columnDefinitions": { "alias": "columnDefinitions"; "required": false; }; "allColumns": { "alias": "allColumns"; "required": false; }; }, { "actionEvent": "actionEvent"; "selectionEvent": "selectionEvent"; "sortEvent": "sortEvent"; "filterEvent": "filterEvent"; "pageEvent": "pageEvent"; "allColumnsEvent": "allColumnsEvent"; "columnDefinitionChangeEvent": "columnDefinitionChangeEvent"; "viewDefinitionChangeEvent": "viewDefinitionChangeEvent"; }, ["expandableDef", "columnDefs"], ["*"], true, never>;
972
+ }
973
+
974
+ declare class StepHeaderComponent extends CdkStepHeader implements AfterViewInit, OnDestroy {
975
+ private _focusMonitor;
976
+ index: number;
977
+ label: string;
978
+ stepControl: any;
979
+ errorMessage: string;
980
+ selected: boolean;
981
+ active: boolean;
982
+ optional: boolean;
983
+ hasError: boolean;
984
+ completed: boolean;
985
+ closed: boolean;
986
+ constructor(_focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>);
987
+ ngAfterViewInit(): void;
988
+ ngOnDestroy(): void;
989
+ /** Focuses the step header. */
990
+ focus(origin?: FocusOrigin, options?: FocusOptions): void;
991
+ getCssForState(): string;
992
+ getIcon(): string;
993
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepHeaderComponent, never>;
994
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepHeaderComponent, "mad-step-header", never, { "color": { "alias": "color"; "required": false; }; "index": { "alias": "index"; "required": false; }; "label": { "alias": "label"; "required": false; }; "stepControl": { "alias": "stepControl"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "active": { "alias": "active"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "completed": { "alias": "completed"; "required": false; }; "closed": { "alias": "closed"; "required": false; }; }, {}, never, never, true, never>;
995
+ }
996
+
997
+ declare class StepComponent extends CdkStep implements AfterContentInit, OnDestroy {
998
+ private stepper;
999
+ private _viewContainerRef;
1000
+ /** Action event for the next button. If not set the StepComponent will handle the step navigation */
1001
+ onNext: EventEmitter<any>;
1002
+ /** Action event for the done button. If not set the StepComponent will handle the step navigation */
1003
+ onDone: EventEmitter<any>;
1004
+ /*** Action event when the header is clicked. If not set the StepComponent will handle the step navigation*/
1005
+ onHeaderClick: EventEmitter<any>;
1006
+ stepClosed: boolean;
1007
+ private _isSelected;
1008
+ constructor(stepper: StepperComponent, _viewContainerRef: ViewContainerRef);
1009
+ ngAfterContentInit(): void;
1010
+ ngOnDestroy(): void;
1011
+ next(markFormAsTouched?: boolean): void;
1012
+ selectAndMarkAsTouched(index: number): void;
1013
+ completeLast(): void;
1014
+ resetValidations(): void;
1015
+ private stepValidation;
1016
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepComponent, never>;
1017
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepComponent, "mad-step", never, {}, { "onNext": "onNext"; "onDone": "onDone"; "onHeaderClick": "onHeaderClick"; }, never, ["*"], true, never>;
1018
+ }
1019
+ declare class StepperComponent extends CdkStepper implements OnInit, AfterContentInit {
1020
+ /** Event emitted when the current step is done transitioning in. */
1021
+ readonly animationDone: EventEmitter<void>;
1022
+ nextButtonLabel: string;
1023
+ doneButtonLabel: string;
1024
+ /** Step headers of all steps inside the stepper */
1025
+ _stepHeader: QueryList<StepHeaderComponent>;
1026
+ /** Steps inside the Stepper */
1027
+ _steps: QueryList<StepComponent>;
1028
+ /** Steps that belong to the current stepper, excluding ones from nested steppers. */
1029
+ steps: QueryList<StepComponent>;
1030
+ readonly _animationDone: Subject<AnimationEvent>;
1031
+ constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>);
1032
+ ngOnInit(): void;
1033
+ ngAfterContentInit(): void;
1034
+ /**
1035
+ * Method patched to enable the closing of the last step.
1036
+ */
1037
+ _getAnimationDirection(index: number): StepContentPositionState;
1038
+ _stepIsNavigable(index: number, step: StepComponent): boolean;
1039
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, [{ optional: true; }, null, null]>;
1040
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "mad-stepper", never, { "nextButtonLabel": { "alias": "nextButtonLabel"; "required": false; }; "doneButtonLabel": { "alias": "doneButtonLabel"; "required": false; }; }, { "animationDone": "animationDone"; }, ["_steps"], never, true, never>;
1041
+ }
1042
+
1043
+ /**
1044
+ * Animations used by the MAD stepper.
1045
+ */
1046
+ declare const madStepperAnimations: {
1047
+ readonly verticalStepTransition: AnimationTriggerMetadata;
1048
+ };
1049
+
1050
+ declare class StepperModule {
1051
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepperModule, never>;
1052
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StepperModule, never, [typeof i1.CommonModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof i4$1.CdkStepperModule, typeof ButtonModule, typeof StepperComponent, typeof StepHeaderComponent, typeof StepComponent], [typeof StepperComponent, typeof StepHeaderComponent, typeof StepComponent]>;
1053
+ static ɵinj: i0.ɵɵInjectorDeclaration<StepperModule>;
1054
+ }
1055
+
1056
+ declare class ContentHeaderComponent {
1057
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentHeaderComponent, never>;
1058
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContentHeaderComponent, "mad-content-header", never, {}, {}, never, ["*"], true, never>;
1059
+ }
1060
+
1061
+ declare class ContentPanelContainerComponent {
1062
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentPanelContainerComponent, never>;
1063
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContentPanelContainerComponent, "mad-content-panel-container", never, {}, {}, never, ["mad-content-panel-container-sidebar", "mad-content-panel-container-content", "mad-content-panel-container-footer"], true, never>;
1064
+ }
1065
+
1066
+ declare class ContentPanelContainerContentComponent {
1067
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentPanelContainerContentComponent, never>;
1068
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContentPanelContainerContentComponent, "mad-content-panel-container-content", never, {}, {}, never, ["*"], true, never>;
1069
+ }
1070
+
1071
+ declare class ContentPanelContainerFooterComponent {
1072
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentPanelContainerFooterComponent, never>;
1073
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContentPanelContainerFooterComponent, "mad-content-panel-container-footer", never, {}, {}, never, ["*"], true, never>;
1074
+ }
1075
+
1076
+ declare class ContentPanelContainerSidebarComponent {
1077
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentPanelContainerSidebarComponent, never>;
1078
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContentPanelContainerSidebarComponent, "mad-content-panel-container-sidebar", never, {}, {}, never, ["*"], true, never>;
1079
+ }
1080
+
1081
+ declare class MainContainerComponent {
1082
+ static ɵfac: i0.ɵɵFactoryDeclaration<MainContainerComponent, never>;
1083
+ static ɵcmp: i0.ɵɵComponentDeclaration<MainContainerComponent, "mad-main-container", never, {}, {}, never, ["mad-content-header", "mad-flowbar", "mad-content-panel-container"], true, never>;
1084
+ }
1085
+
1086
+ declare class ContentPanelModule {
1087
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentPanelModule, never>;
1088
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ContentPanelModule, never, [typeof i1.CommonModule, typeof ContentHeaderComponent, typeof ContentPanelContainerComponent, typeof ContentPanelContainerContentComponent, typeof ContentPanelContainerFooterComponent, typeof ContentPanelContainerSidebarComponent, typeof MainContainerComponent], [typeof ContentHeaderComponent, typeof ContentPanelContainerComponent, typeof ContentPanelContainerContentComponent, typeof ContentPanelContainerFooterComponent, typeof ContentPanelContainerSidebarComponent, typeof MainContainerComponent]>;
1089
+ static ɵinj: i0.ɵɵInjectorDeclaration<ContentPanelModule>;
1090
+ }
1091
+
1092
+ interface IStep {
1093
+ label: string;
1094
+ enabled?: boolean;
1095
+ subSteps?: IStep[];
1096
+ activeSubStep?: IStep;
1097
+ }
1098
+ declare class FlowbarComponent implements OnInit {
1099
+ _steps: IStep[];
1100
+ _activeStep: IStep;
1101
+ _activeStepChange: EventEmitter<IStep>;
1102
+ /**
1103
+ * Event emitted when a step header is clicked.
1104
+ * When defined header navigation has to be implemented programmatically.
1105
+ * e.g. {@see changeActiveStepOnHeader}
1106
+ */
1107
+ _headerClick: EventEmitter<IStep>;
1108
+ private stepper;
1109
+ get currentStepLabel(): string;
1110
+ get currentSubStepLabel(): string;
1111
+ ngOnInit(): void;
1112
+ getIndexForActiveStep(): number;
1113
+ changeActiveStep(step: IStep): void;
1114
+ changeActiveStepOnHeader(step: IStep): void;
1115
+ changeActiveSubStep(subStep: IStep): void;
1116
+ previous(): void;
1117
+ next(): void;
1118
+ isPreviousAvailable(): boolean;
1119
+ isNextAvailable(): boolean;
1120
+ isLastStep(): boolean;
1121
+ getCurrentIndex(): number;
1122
+ getCurrentSubStepIndex(): number;
1123
+ triggerClick(): void;
1124
+ headerClick(event: any, step: IStep): void;
1125
+ private activeTabHasSubSteps;
1126
+ private isFirstSubStep;
1127
+ private isLastSubStep;
1128
+ private isAnyPreviousStepEnabled;
1129
+ private isAnyFollowingStepEnabled;
1130
+ private findPreviousEnabledStep;
1131
+ private findNextEnabledStep;
1132
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowbarComponent, never>;
1133
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowbarComponent, "mad-flowbar", never, { "_steps": { "alias": "steps"; "required": false; }; "_activeStep": { "alias": "activeStep"; "required": false; }; }, { "_activeStepChange": "activeStepChange"; "_headerClick": "headerClick"; }, never, never, true, never>;
1134
+ }
1135
+
1136
+ declare class FlowbarModule {
1137
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowbarModule, never>;
1138
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowbarModule, never, [typeof i1.CommonModule, typeof i2$3.MatStepperModule, typeof FlowbarComponent], [typeof FlowbarComponent]>;
1139
+ static ɵinj: i0.ɵɵInjectorDeclaration<FlowbarModule>;
1140
+ }
1141
+
1142
+ declare class SidebarComponent {
1143
+ collapsed: boolean;
1144
+ toggleCollapse(): void;
1145
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
1146
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "mad-sidebar", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, ["*"], true, never>;
1147
+ }
1148
+
1149
+ declare class SidebarItemComponent {
1150
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarItemComponent, never>;
1151
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarItemComponent, "[mad-sidebar-item]", never, {}, {}, never, ["*"], true, never>;
1152
+ }
1153
+
1154
+ declare class SidebarModule {
1155
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarModule, never>;
1156
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SidebarModule, never, [typeof i1.CommonModule, typeof i3.MatIconModule, typeof i2$1.MatButtonModule, typeof SidebarComponent, typeof SidebarItemComponent], [typeof SidebarComponent, typeof SidebarItemComponent]>;
1157
+ static ɵinj: i0.ɵɵInjectorDeclaration<SidebarModule>;
1158
+ }
1159
+
1160
+ declare class SidebarLayoutComponent {
1161
+ private _viewContainerRef;
1162
+ private router;
1163
+ private location;
1164
+ title: string;
1165
+ hasBackButton: boolean;
1166
+ titleTemplate: TemplateRef<unknown> | null;
1167
+ set sideBarItems(ref: TemplateRef<unknown>);
1168
+ sideBarItemsPortal?: TemplatePortal<unknown>;
1169
+ set headerContent(ref: TemplateRef<unknown>);
1170
+ headerContentPortal?: TemplatePortal<unknown>;
1171
+ set actionGroup(ref: TemplateRef<unknown>);
1172
+ actionGroupPortal?: TemplatePortal<unknown>;
1173
+ set content(ref: TemplateRef<unknown>);
1174
+ contentPortal?: TemplatePortal<unknown>;
1175
+ set footer(ref: TemplateRef<unknown>);
1176
+ footerPortal?: TemplatePortal<unknown>;
1177
+ constructor(_viewContainerRef: ViewContainerRef, router: Router, location: Location);
1178
+ goToPreviousPage(): void;
1179
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarLayoutComponent, never>;
1180
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarLayoutComponent, "mad-sidebar-layout", never, { "title": { "alias": "title"; "required": false; }; "hasBackButton": { "alias": "hasBackButton"; "required": false; }; "titleTemplate": { "alias": "titleTemplate"; "required": false; }; "sideBarItems": { "alias": "sideBarItems"; "required": true; }; "headerContent": { "alias": "headerContent"; "required": false; }; "actionGroup": { "alias": "actionGroup"; "required": false; }; "content": { "alias": "content"; "required": true; }; "footer": { "alias": "footer"; "required": false; }; }, {}, never, never, true, never>;
1181
+ }
1182
+
1183
+ interface Action {
1184
+ matIcon: string;
1185
+ i18nActionKey: string;
1186
+ actionName?: string;
1187
+ showIf?: Observable<boolean>;
1188
+ }
1189
+ interface MainAction extends Action {
1190
+ routerLink?: string;
1191
+ action?: () => any;
1192
+ liftHigherOnMobile?: boolean;
1193
+ tooltip?: string;
1194
+ }
1195
+ interface BackAction extends Action {
1196
+ routerLink?: string;
1197
+ queryParams?: Params;
1198
+ href?: string;
1199
+ action?: () => any;
1200
+ }
1201
+ interface ToolbarActionBadge {
1202
+ value: any;
1203
+ color?: ThemePalette;
1204
+ }
1205
+ interface ToolbarAction extends Action {
1206
+ action: () => any;
1207
+ importantAction?: boolean;
1208
+ badge?: ToolbarActionBadge;
1209
+ }
1210
+
1211
+ declare class ToolbarService implements OnDestroy {
1212
+ private router;
1213
+ private translate;
1214
+ backAction: BackAction;
1215
+ mainActions: MainAction[];
1216
+ toolbarActions: ToolbarAction[];
1217
+ toolbarActionsAlwaysAsMenu: boolean;
1218
+ dataTitle: string;
1219
+ routerSubscription: Subscription;
1220
+ private title;
1221
+ private toolbarActionsMenuTitle;
1222
+ private currentUrl;
1223
+ constructor(router: Router, translate: TranslateService);
1224
+ get toolbarTitle(): string;
1225
+ set toolbarTitle(toolbarTitle: string);
1226
+ ngOnDestroy(): void;
1227
+ getToolbarActions(): ToolbarAction[];
1228
+ addToolbarAction(action: ToolbarAction): void;
1229
+ setDataTitle(dataTitle: string): void;
1230
+ setToolbarActionsAlwaysAsMenu(toolbarActionsAlwaysAsMenu: boolean): void;
1231
+ getToolbarActionsAlwaysAsMenu(): boolean;
1232
+ getDataTitle(): string;
1233
+ clearToolbarActions(): void;
1234
+ getMainActions(): MainAction[];
1235
+ getBackAction(): BackAction;
1236
+ setToolbarActionsMenuTitle(toolbarActionsMenuTitle: string): void;
1237
+ getToolbarActionsMenuTitle(): string;
1238
+ addMainAction(mainAction: MainAction): void;
1239
+ /**
1240
+ * Per default the goBackRoute is a routerLink. But if a href should be used (for absolute browser routing) then isAbsoluteUrl can be set to true.
1241
+ */
1242
+ addBackAction(goBackRoute: string, isAbsoluteUrl?: boolean): void;
1243
+ /**
1244
+ * Only supports routerLink (no href), but with additional query parameters
1245
+ */
1246
+ addBackActionRoute(goBackRoute: string, queryParams?: Params): void;
1247
+ addSimpleBackButton(overrideIfPresent?: boolean): void;
1248
+ clearMainActions(): void;
1249
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarService, never>;
1250
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarService>;
1251
+ }
1252
+
1253
+ declare class ToolbarComponent {
1254
+ private breakpointObserver;
1255
+ private titleService;
1256
+ private toolbarService;
1257
+ isHandset$: Observable<boolean>;
1258
+ constructor(breakpointObserver: BreakpointObserver, titleService: Title, toolbarService: ToolbarService);
1259
+ getTitle(): string;
1260
+ getToolbarActions(): ToolbarAction[];
1261
+ getMainActions(): MainAction[];
1262
+ hasPermission(action: Action): Observable<boolean>;
1263
+ isRouterLink(action: BackAction | MainAction): boolean;
1264
+ isAbsoluteLink(action: BackAction): boolean;
1265
+ isAction(action: BackAction | MainAction): boolean;
1266
+ getBackAction(): BackAction;
1267
+ getToolbarActionsAlwaysAsMenu(): boolean;
1268
+ getToolbarActionsMenuTitle(): string;
1269
+ showBadgeForMenu(): boolean;
1270
+ hasImportantToolbarActions(): boolean;
1271
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
1272
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "mad-toolbar", never, {}, {}, never, never, true, never>;
1273
+ }
1274
+
1275
+ declare class ToolbarModule {
1276
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarModule, never>;
1277
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ToolbarModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i6.MatMenuModule, typeof i2$1.MatButtonModule, typeof i5$2.MatToolbarModule, typeof i3.MatIconModule, typeof MaterialActionButtonModule, typeof i5.MatTooltipModule, typeof ButtonModule, typeof i10.MatBadgeModule, typeof ToolbarComponent], [typeof ToolbarComponent]>;
1278
+ static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
1279
+ }
1280
+
1281
+ declare class MaterialAddonsModule {
1282
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialAddonsModule, never>;
1283
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialAddonsModule, never, never, [typeof ReadOnlyFormFieldModule, typeof ButtonModule, typeof ToolbarModule, typeof MaterialActionButtonModule, typeof NumericFieldModule, typeof CardModule, typeof QuickListModule, typeof ThrottleClickModule, typeof SidebarModule]>;
1284
+ static ɵinj: i0.ɵɵInjectorDeclaration<MaterialAddonsModule>;
1285
+ }
1286
+
1287
+ type UploadError = 'ONLY_SINGLE_FILE' | 'FILETYPE_NOT_SUPPORTED';
1288
+ declare class FileUploadComponent implements OnInit {
1289
+ id: string;
1290
+ multiple: boolean;
1291
+ accept: string[];
1292
+ text: string;
1293
+ showFileList: boolean;
1294
+ removable: boolean;
1295
+ fileEmitter: EventEmitter<FileList>;
1296
+ errorEmitter: EventEmitter<UploadError>;
1297
+ fileList: File[];
1298
+ acceptedFileTypes: string[];
1299
+ ngOnInit(): void;
1300
+ private setAcceptedFileTypes;
1301
+ uploadFile(files: FileList): void;
1302
+ private validateFileList;
1303
+ private emitError;
1304
+ private isAcceptedFileType;
1305
+ private addFiles;
1306
+ openFile(file: File): void;
1307
+ remove(file: File): void;
1308
+ private createFileListFromArray;
1309
+ hasSingleFile(): boolean;
1310
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
1311
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "mad-file-upload", never, { "id": { "alias": "id"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "text": { "alias": "text"; "required": false; }; "showFileList": { "alias": "showFileList"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; }, { "fileEmitter": "fileEmitter"; "errorEmitter": "errorEmitter"; }, never, never, true, never>;
1312
+ }
1313
+
1314
+ declare const VERSION = "21.0.1";
1315
+
1316
+ type AlertType = 'success' | 'info' | 'warning' | 'error';
1317
+ type AlertSize = 'small' | 'medium' | 'large';
1318
+ declare class AlertComponent {
1319
+ private alertConfig;
1320
+ type: AlertType;
1321
+ message: string;
1322
+ size: AlertSize;
1323
+ actionText: string;
1324
+ closeable: boolean;
1325
+ close: EventEmitter<void>;
1326
+ action: EventEmitter<void>;
1327
+ get icon(): "error" | "" | "info" | "warning" | "check_circle";
1328
+ constructor(alertConfig: AlertDefaultOptions);
1329
+ closeAlert(): void;
1330
+ onAction(): void;
1331
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
1332
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "mad-alert", never, { "type": { "alias": "type"; "required": false; }; "message": { "alias": "message"; "required": false; }; "size": { "alias": "size"; "required": false; }; "actionText": { "alias": "actionText"; "required": false; }; "closeable": { "alias": "closeable"; "required": false; }; }, { "close": "close"; "action": "action"; }, never, never, true, never>;
1333
+ }
1334
+
1335
+ interface AlertDefaultOptions {
1336
+ type?: AlertType;
1337
+ size?: AlertSize;
1338
+ }
1339
+ declare const MAD_ALERT_DEFAULT_CONFIGURATION: InjectionToken<AlertDefaultOptions>;
1340
+ declare function MAD_ALERT_DEFAULT_CONFIGURATION_FACTORY(): AlertDefaultOptions;
1341
+
1342
+ export { AlertComponent, BaseQuickListComponent, ButtonModule, CardComponent, CardModule, ContentHeaderComponent, ContentPanelContainerComponent, ContentPanelContainerContentComponent, ContentPanelContainerFooterComponent, ContentPanelContainerSidebarComponent, ContentPanelModule, DangerButtonComponent, DataTableActionType, DataTableColumnsModalComponent, DataTableComponent, DataTablePersistenceService, DataTableTemplateCellDefinition, DataTableTemplateColumnDefinition, DataTableTemplateExpandableCellDefinition, DataTableTemplateExpandableColumnDefinition, FileUploadComponent, FlowbarComponent, FlowbarModule, IconButtonComponent, LinkButtonComponent, MAD_ALERT_DEFAULT_CONFIGURATION, MAD_ALERT_DEFAULT_CONFIGURATION_FACTORY, MAD_DATA_TABLE_GLOBAL_CONFIGURATION, MAD_DATA_TABLE_PERSISTENCE_SERVICE, MAD_READONLY_FORM_FIELD_DEFAULT_CONFIGURATION, MadBasicButton, MadButtonDirective, MadButtonGroupComponent, MainContainerComponent, MaterialActionButtonComponent, MaterialActionButtonModule, MaterialAddonsModule, NumberFormatService, NumericFieldDirective, NumericFieldModule, OutlineButtonComponent, PrimaryButtonComponent, QuickListCompactComponent, QuickListComponent, QuickListModule, ReactiveFormQuickListCompactComponent, ReactiveFormQuickListComponent, ReadOnlyFormFieldComponent, ReadOnlyFormFieldModule, ReadOnlyFormFieldWrapperComponent, SidebarComponent, SidebarItemComponent, SidebarLayoutComponent, SidebarModule, StepComponent, StepHeaderComponent, StepperComponent, StepperModule, TableComponent, TableModule, ThrottleClickDirective, ThrottleClickModule, ToolbarComponent, ToolbarModule, ToolbarService, VERSION, madStepperAnimations };
1343
+ export type { Action, AlertDefaultOptions, AlertSize, AlertType, BackAction, ColumnHeader, DataTableAction, DataTableColumn, DataTableColumnDefinition, DataTableColumnDefinitionChange, DataTableFilterMode, DataTableFilterObject, DataTableFilterOption, DataTableGlobalConfiguration, DataTablePersistenceConfiguration, DataTableSelectionEmitMode, DataTableSelectionEmitType, DataTableSelectionMode, FormFieldDefaultOptions, FormatOptions, IStep, MainAction, QuickListItem, StripOptions, TableAction, ToolbarAction, ToolbarActionBadge, UploadError };
1344
+ //# sourceMappingURL=porscheinformatik-material-addons.d.ts.map