@muziehdesign/components 19.2.8-beta.2643 → 19.2.8-beta.2675
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/fesm2022/muziehdesign-components.mjs +123 -160
- package/fesm2022/muziehdesign-components.mjs.map +1 -1
- package/index.d.ts +735 -3
- package/package.json +1 -1
- package/lib/alert/alert.component.d.ts +0 -14
- package/lib/async/async-error.directive.d.ts +0 -6
- package/lib/async/async-loading.directive.d.ts +0 -6
- package/lib/async/async.component.d.ts +0 -7
- package/lib/button/button-appearance.d.ts +0 -1
- package/lib/button/button.component.d.ts +0 -12
- package/lib/button.directive.d.ts +0 -24
- package/lib/components.module.d.ts +0 -27
- package/lib/date-display/date-display-config.d.ts +0 -10
- package/lib/date-display/date-display.pipe.d.ts +0 -13
- package/lib/date-display/date.pipe.d.ts +0 -12
- package/lib/dialog/dialog-appearance.d.ts +0 -1
- package/lib/dialog/dialog-config.d.ts +0 -42
- package/lib/dialog/dialog-container/dialog-container.component.d.ts +0 -17
- package/lib/dialog/dialog-content/dialog-content.component.d.ts +0 -5
- package/lib/dialog/dialog-footer/dialog-footer.component.d.ts +0 -5
- package/lib/dialog/dialog-header/dialog-header.component.d.ts +0 -7
- package/lib/dialog/dialog.d.ts +0 -36
- package/lib/dialog/dialog.module.d.ts +0 -13
- package/lib/dialog/message-dialog/message-dialog-data.d.ts +0 -8
- package/lib/dialog/message-dialog/message-dialog.component.d.ts +0 -12
- package/lib/drawer/container/drawer-container.component.d.ts +0 -22
- package/lib/drawer/drawer-config.d.ts +0 -86
- package/lib/drawer/drawer-content/drawer-content.component.d.ts +0 -5
- package/lib/drawer/drawer-footer/drawer-footer.component.d.ts +0 -5
- package/lib/drawer/drawer-header/drawer-header.component.d.ts +0 -11
- package/lib/drawer/drawer-injectors.d.ts +0 -5
- package/lib/drawer/drawer-ref.d.ts +0 -30
- package/lib/drawer/drawer.d.ts +0 -39
- package/lib/drawer/drawer.module.d.ts +0 -13
- package/lib/enum-display/enum-display.pipe.d.ts +0 -9
- package/lib/filter/filter-menu/filter-menu.component.d.ts +0 -18
- package/lib/filter/filter-option.model.d.ts +0 -5
- package/lib/filter/filter.component.d.ts +0 -19
- package/lib/guard-deactivate.d.ts +0 -11
- package/lib/infinite-scroll/infinite-scroll.component.d.ts +0 -15
- package/lib/inline-edit/inline-edit.component.d.ts +0 -22
- package/lib/models/loading-state.d.ts +0 -4
- package/lib/models/page-event.d.ts +0 -4
- package/lib/models/result-table-options.d.ts +0 -4
- package/lib/models/sort-event.d.ts +0 -3
- package/lib/models/subject.d.ts +0 -7
- package/lib/models/wizard-step-link.d.ts +0 -4
- package/lib/options-filter/options-filter.component.d.ts +0 -27
- package/lib/page-header/page-header.component.d.ts +0 -13
- package/lib/page-loading-indicator/page-loading-indicator.component.d.ts +0 -12
- package/lib/pagination/pagination-config.d.ts +0 -6
- package/lib/pagination/pagination.component.d.ts +0 -24
- package/lib/phone-number/phone-number.pipe.d.ts +0 -7
- package/lib/result-table/result-table.component.d.ts +0 -23
- package/lib/result-table/result-table.model.d.ts +0 -6
- package/lib/sort-key.directive.d.ts +0 -24
- package/lib/sort.directive.d.ts +0 -16
- package/lib/spinner/spinner.component.d.ts +0 -10
- package/lib/subject-display/subject-display.pipe.d.ts +0 -8
- package/lib/svg-icon/svg-icon-config.d.ts +0 -5
- package/lib/svg-icon/svg-icon.component.d.ts +0 -17
- package/lib/testing/muzieh-component-harness.d.ts +0 -2
- package/lib/testing/result-table-harness.d.ts +0 -22
- package/lib/wizard-progress-tracker/wizard-progress-tracker.component.d.ts +0 -13
- package/public-api.d.ts +0 -54
package/index.d.ts
CHANGED
|
@@ -1,5 +1,737 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, PipeTransform, OnChanges, OnDestroy, Renderer2, ElementRef, SimpleChanges, EventEmitter, OnInit, TemplateRef, AfterViewInit, DebugElement, ViewContainerRef, Injector, NgZone, AfterContentInit, QueryList } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { DatePipe, DatePipeConfig } from '@angular/common';
|
|
5
|
+
import * as i2 from '@angular/forms';
|
|
6
|
+
import { NgModel, NgForm } from '@angular/forms';
|
|
7
|
+
import { Router } from '@angular/router';
|
|
8
|
+
import { Title } from '@angular/platform-browser';
|
|
9
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
10
|
+
import * as i2$1 from '@angular/cdk/overlay';
|
|
11
|
+
import { PositionStrategy, ScrollStrategy, Overlay, ComponentType, OverlayRef } from '@angular/cdk/overlay';
|
|
12
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
13
|
+
import * as i1$1 from '@angular/cdk/dialog';
|
|
14
|
+
import { DialogRole, AutoFocusTarget, DialogRef, DialogCloseOptions, CdkDialogContainer, DialogConfig } from '@angular/cdk/dialog';
|
|
15
|
+
import * as i3 from '@angular/cdk/portal';
|
|
16
|
+
import { BasePortalOutlet } from '@angular/cdk/portal';
|
|
17
|
+
import { InteractivityChecker, FocusTrapFactory } from '@angular/cdk/a11y';
|
|
18
|
+
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
|
19
|
+
|
|
20
|
+
interface SvgIconOptions {
|
|
21
|
+
svgIconDefinitionUrl: string;
|
|
22
|
+
}
|
|
23
|
+
declare const SVG_ICON_DEFAULT_OPTIONS: InjectionToken<SvgIconOptions>;
|
|
24
|
+
|
|
25
|
+
declare class SvgIconComponent {
|
|
26
|
+
config: SvgIconOptions;
|
|
27
|
+
key: string;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Pass in whole key instead.
|
|
30
|
+
*/
|
|
31
|
+
type: 'outline' | 'solid' | string;
|
|
32
|
+
size: string;
|
|
33
|
+
fileUrl: string;
|
|
34
|
+
constructor(config: SvgIconOptions);
|
|
35
|
+
get url(): string;
|
|
36
|
+
get classes(): string;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SvgIconComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SvgIconComponent, "mz-svg-icon", never, { "key": { "alias": "key"; "required": false; }; "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class EnumDisplayPipe implements PipeTransform {
|
|
42
|
+
transform(value?: string): string;
|
|
43
|
+
private transformValue;
|
|
44
|
+
private firstLetterToUppercase;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnumDisplayPipe, never>;
|
|
46
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<EnumDisplayPipe, "mzEnumDisplay", true>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare class MzSpinner {
|
|
50
|
+
size: SpinnerSize;
|
|
51
|
+
appearance: SpinnerAppearance;
|
|
52
|
+
get elementClass(): string;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzSpinner, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzSpinner, "mz-spinner", never, { "size": { "alias": "size"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
type SpinnerSize = 'medium' | 'large';
|
|
57
|
+
type SpinnerAppearance = 'primary' | 'secondary';
|
|
58
|
+
|
|
1
59
|
/**
|
|
2
|
-
*
|
|
60
|
+
* @deprecated Use MzButton component instead: `<button mz-button appearance="primary">...</button>`
|
|
3
61
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
62
|
+
declare class ButtonDirective implements OnChanges, OnDestroy {
|
|
63
|
+
private renderer;
|
|
64
|
+
private hostElement;
|
|
65
|
+
variant?: string | undefined;
|
|
66
|
+
busy?: boolean;
|
|
67
|
+
private svgContent;
|
|
68
|
+
private subscription;
|
|
69
|
+
constructor(renderer: Renderer2, hostElement: ElementRef);
|
|
70
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
71
|
+
ngOnDestroy(): void;
|
|
72
|
+
get elementClass(): string;
|
|
73
|
+
attachOrDeattachSpinner(): void;
|
|
74
|
+
private addEventSubscription;
|
|
75
|
+
private getChildElement;
|
|
76
|
+
private getElementsToVerify;
|
|
77
|
+
private getOverlayDiv;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
79
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[mzButton]", never, { "variant": { "alias": "variant"; "required": false; }; "busy": { "alias": "busy"; "required": false; }; }, {}, never, never, true, never>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface WizardStepLink {
|
|
83
|
+
route: string;
|
|
84
|
+
name: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare class WizardProgressTrackerComponent {
|
|
88
|
+
steps: WizardStepLink[];
|
|
89
|
+
currentStep: number;
|
|
90
|
+
stepChange: EventEmitter<WizardStepLink>;
|
|
91
|
+
toggled: boolean;
|
|
92
|
+
goToStep(step: WizardStepLink): void;
|
|
93
|
+
toggle(): void;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WizardProgressTrackerComponent, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WizardProgressTrackerComponent, "mz-wizard-progress-tracker", never, { "steps": { "alias": "steps"; "required": false; }; "currentStep": { "alias": "currentStep"; "required": false; }; }, { "stepChange": "stepChange"; }, never, never, true, never>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare class AlertComponent implements OnInit {
|
|
99
|
+
title: string;
|
|
100
|
+
type: 'info' | 'success' | 'error' | 'warning';
|
|
101
|
+
body: TemplateRef<any> | undefined | null;
|
|
102
|
+
footer: TemplateRef<any> | undefined | null;
|
|
103
|
+
constructor();
|
|
104
|
+
ngOnInit(): void;
|
|
105
|
+
getAlertClass(): string;
|
|
106
|
+
getAlertIcon(): string;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "mz-alert", never, { "title": { "alias": "title"; "required": false; }; "type": { "alias": "type"; "required": false; }; "body": { "alias": "body"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; }, {}, never, never, true, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
type PageEvent = {
|
|
112
|
+
pageNumber: number;
|
|
113
|
+
pageSize: number;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
interface ResultTableOptions {
|
|
117
|
+
hidePagination?: boolean;
|
|
118
|
+
skipScrolling?: boolean;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
type ResultTableModel<T> = {
|
|
122
|
+
totalItems: number;
|
|
123
|
+
items: T[];
|
|
124
|
+
pageNumber: number;
|
|
125
|
+
pageSize: number;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
declare class ResultTableComponent implements AfterViewInit {
|
|
129
|
+
loading: boolean;
|
|
130
|
+
error?: Error;
|
|
131
|
+
model: ResultTableModel<any> | undefined | null;
|
|
132
|
+
headerTemplate: TemplateRef<any>;
|
|
133
|
+
bodyTemplate: TemplateRef<any>;
|
|
134
|
+
pageSizeOptions: number[];
|
|
135
|
+
pageChange: EventEmitter<PageEvent>;
|
|
136
|
+
options: ResultTableOptions;
|
|
137
|
+
constructor();
|
|
138
|
+
ngAfterViewInit(): void;
|
|
139
|
+
changePage(page: PageEvent): void;
|
|
140
|
+
searchAgain(): void;
|
|
141
|
+
get state(): 'loading' | 'failed' | 'succeeded';
|
|
142
|
+
get isEmpty(): boolean;
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResultTableComponent, never>;
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResultTableComponent, "mz-result-table", never, { "loading": { "alias": "loading"; "required": false; }; "error": { "alias": "error"; "required": false; }; "model": { "alias": "model"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "pageChange": "pageChange"; }, ["headerTemplate", "bodyTemplate"], never, true, never>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare class InfiniteScrollComponent {
|
|
148
|
+
items: any[];
|
|
149
|
+
isLoading: boolean;
|
|
150
|
+
containerHeight: string;
|
|
151
|
+
itemSelected: EventEmitter<any>;
|
|
152
|
+
loadMore: EventEmitter<boolean>;
|
|
153
|
+
itemTemplate: TemplateRef<any>;
|
|
154
|
+
selectedItem: any;
|
|
155
|
+
onContainerScroll(event: any): void;
|
|
156
|
+
onItemClick(item: any): void;
|
|
157
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfiniteScrollComponent, never>;
|
|
158
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfiniteScrollComponent, "mz-infinite-scroll", never, { "items": { "alias": "items"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "containerHeight": { "alias": "containerHeight"; "required": false; }; }, { "itemSelected": "itemSelected"; "loadMore": "loadMore"; }, ["itemTemplate"], never, true, never>;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
declare class MzPaginationConfig {
|
|
162
|
+
pageSize: number;
|
|
163
|
+
pageSizeOptions: number[];
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare class MzPagination implements OnChanges {
|
|
167
|
+
private paginationOptions;
|
|
168
|
+
totalItems: number;
|
|
169
|
+
pageNumber: number;
|
|
170
|
+
scrollTo?: HTMLElement;
|
|
171
|
+
pageSizeOptions: number[];
|
|
172
|
+
pageSize: number;
|
|
173
|
+
changePage: EventEmitter<PageEvent>;
|
|
174
|
+
pages: number[];
|
|
175
|
+
pageCount: number;
|
|
176
|
+
protected options: MzPaginationConfig;
|
|
177
|
+
constructor(paginationOptions: MzPaginationConfig);
|
|
178
|
+
ngOnChanges(): void;
|
|
179
|
+
protected isEllipsis(v: number): v is -1;
|
|
180
|
+
changePageNumber(newValue: number): void;
|
|
181
|
+
changePageSize(newValue: string): void;
|
|
182
|
+
private updatePages;
|
|
183
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzPagination, [{ optional: true; }]>;
|
|
184
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzPagination, "mz-pagination", never, { "totalItems": { "alias": "totalItems"; "required": true; }; "pageNumber": { "alias": "pageNumber"; "required": true; }; "scrollTo": { "alias": "scrollTo"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; }, { "changePage": "changePage"; }, never, never, true, never>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare class PageLoadingIndicatorComponent implements OnInit {
|
|
188
|
+
private router;
|
|
189
|
+
isLoading: boolean;
|
|
190
|
+
expectedMilisecondsDelay: number;
|
|
191
|
+
constructor(router: Router);
|
|
192
|
+
ngOnInit(): void;
|
|
193
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageLoadingIndicatorComponent, never>;
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageLoadingIndicatorComponent, "mz-page-loading-indicator", never, { "isLoading": { "alias": "isLoading"; "required": false; }; }, {}, never, never, true, never>;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare class PageHeaderComponent implements OnInit {
|
|
198
|
+
private title;
|
|
199
|
+
private pageTitleValue;
|
|
200
|
+
constructor(title: Title);
|
|
201
|
+
get pageTitle(): string;
|
|
202
|
+
set pageTitle(newValue: string);
|
|
203
|
+
ngOnInit(): void;
|
|
204
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
|
|
205
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "mz-page-header", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @deprecated use mzDate instead
|
|
210
|
+
*/
|
|
211
|
+
declare class DateDisplayPipe implements PipeTransform {
|
|
212
|
+
private datePipe;
|
|
213
|
+
constructor(datePipe: DatePipe);
|
|
214
|
+
transform(value: Date | string, format?: string): string | null;
|
|
215
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateDisplayPipe, never>;
|
|
216
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateDisplayPipe, "mzDateDisplay", true>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare class PhoneNumberPipe implements PipeTransform {
|
|
220
|
+
transform(number?: string): string | null;
|
|
221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberPipe, never>;
|
|
222
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PhoneNumberPipe, "mzPhoneNumber", true>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
interface SortEvent {
|
|
226
|
+
sort: string;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
declare class SortDirective implements OnChanges {
|
|
230
|
+
sort: EventEmitter<SortEvent>;
|
|
231
|
+
set mzSort(value: string);
|
|
232
|
+
mzSortOnChange$: BehaviorSubject<string>;
|
|
233
|
+
_mzSort: string;
|
|
234
|
+
active: string;
|
|
235
|
+
constructor();
|
|
236
|
+
ngOnChanges(): any;
|
|
237
|
+
setActiveHeaderSort(): void;
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortDirective, never>;
|
|
239
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SortDirective, "[mzSort]", never, { "mzSort": { "alias": "mzSort"; "required": false; }; }, { "sort": "sort"; }, never, never, true, never>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
declare class SortKeyDirective implements OnInit {
|
|
243
|
+
private sortable;
|
|
244
|
+
private renderer;
|
|
245
|
+
private hostElement;
|
|
246
|
+
mzSortKey: string;
|
|
247
|
+
order: string;
|
|
248
|
+
updatedSort: string;
|
|
249
|
+
constructor(sortable: SortDirective, renderer: Renderer2, hostElement: ElementRef);
|
|
250
|
+
ngOnInit(): void;
|
|
251
|
+
onClick($event: Event): void;
|
|
252
|
+
getAriaSortAttribute(): "none" | "ascending" | "descending";
|
|
253
|
+
private updateSortKeyValue;
|
|
254
|
+
private updateActiveValue;
|
|
255
|
+
private addSortClass;
|
|
256
|
+
private addActiveClass;
|
|
257
|
+
private removeActiveClass;
|
|
258
|
+
private isActive;
|
|
259
|
+
private setOrder;
|
|
260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortKeyDirective, never>;
|
|
261
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SortKeyDirective, "[mzSortKey]", never, { "mzSortKey": { "alias": "mzSortKey"; "required": false; }; }, {}, never, never, true, never>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
interface Subject {
|
|
265
|
+
subjectId: string;
|
|
266
|
+
name: string;
|
|
267
|
+
givenName: string;
|
|
268
|
+
familyName: string;
|
|
269
|
+
userPrincipalName: string;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
declare class SubjectDisplayPipe implements PipeTransform {
|
|
273
|
+
transform(subject?: Subject): string | null;
|
|
274
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubjectDisplayPipe, never>;
|
|
275
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SubjectDisplayPipe, "mzSubjectDisplay", true>;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @deprecated Import components and component modules separately.
|
|
280
|
+
*/
|
|
281
|
+
declare class MuziehComponentsModule {
|
|
282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MuziehComponentsModule, never>;
|
|
283
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MuziehComponentsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof ButtonDirective, typeof SvgIconComponent, typeof MzSpinner, typeof WizardProgressTrackerComponent, typeof AlertComponent, typeof EnumDisplayPipe, typeof ResultTableComponent, typeof InfiniteScrollComponent, typeof MzPagination, typeof PageLoadingIndicatorComponent, typeof PageHeaderComponent, typeof DateDisplayPipe, typeof PhoneNumberPipe, typeof SortKeyDirective, typeof SortDirective, typeof SubjectDisplayPipe], [typeof EnumDisplayPipe, typeof MzSpinner, typeof SvgIconComponent, typeof ResultTableComponent, typeof InfiniteScrollComponent, typeof MzPagination, typeof PageLoadingIndicatorComponent, typeof PageHeaderComponent, typeof DateDisplayPipe, typeof AlertComponent, typeof PhoneNumberPipe, typeof SortKeyDirective, typeof SortDirective, typeof SubjectDisplayPipe, typeof ButtonDirective, typeof WizardProgressTrackerComponent]>;
|
|
284
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MuziehComponentsModule>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface MzDatePipeConfig extends DatePipeConfig {
|
|
288
|
+
formats: Map<string, string>;
|
|
289
|
+
}
|
|
290
|
+
declare const MZ_DATE_PIPE_DEFAULT_OPTIONS: InjectionToken<MzDatePipeConfig>;
|
|
291
|
+
|
|
292
|
+
declare class MzDatePipe extends DatePipe {
|
|
293
|
+
private options;
|
|
294
|
+
constructor(locale: string, defaultMzOptions?: MzDatePipeConfig | null);
|
|
295
|
+
transform(value: string | number | Date, format?: string | undefined, timezone?: string | undefined, locale?: string | undefined): string | null;
|
|
296
|
+
transform(value: null | undefined, format?: string | undefined, timezone?: string | undefined, locale?: string | undefined): null;
|
|
297
|
+
transform(value: string | number | Date | null | undefined, format?: string | undefined, timezone?: string | undefined, locale?: string | undefined): string | null;
|
|
298
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDatePipe, [null, { optional: true; }]>;
|
|
299
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MzDatePipe, "mzDate", true>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
declare class MzInlineEditComponent implements AfterViewInit {
|
|
303
|
+
private renderer;
|
|
304
|
+
isEditing: boolean;
|
|
305
|
+
busy: boolean;
|
|
306
|
+
label?: string;
|
|
307
|
+
layout: 'horizontal' | 'vertical';
|
|
308
|
+
save: EventEmitter<any>;
|
|
309
|
+
ngModel: NgModel;
|
|
310
|
+
private ngModelElement?;
|
|
311
|
+
originalValue: unknown;
|
|
312
|
+
constructor(renderer: Renderer2);
|
|
313
|
+
ngAfterViewInit(): void;
|
|
314
|
+
activate(): void;
|
|
315
|
+
submitForm(): void;
|
|
316
|
+
cancelEdit(): void;
|
|
317
|
+
exitEdit(): void;
|
|
318
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzInlineEditComponent, never>;
|
|
319
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzInlineEditComponent, "mz-inline-edit", never, { "label": { "alias": "label"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; }, { "save": "save"; }, ["ngModel", "ngModelElement"], ["*"], true, never>;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
interface LoadingState {
|
|
323
|
+
error?: Error;
|
|
324
|
+
loading: boolean;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare abstract class MuziehComponentHarness<T> {
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare class ResultTableHarness extends MuziehComponentHarness<ResultTableComponent> {
|
|
331
|
+
private refreshContainerEvent;
|
|
332
|
+
private get resultTableDebugElement();
|
|
333
|
+
get resultTableComponentInstance(): ResultTableComponent;
|
|
334
|
+
constructor(refreshContainerEvent: () => DebugElement);
|
|
335
|
+
getHeaderColumns(): string[];
|
|
336
|
+
getRenderedResults(): {
|
|
337
|
+
results: string[][];
|
|
338
|
+
page: number;
|
|
339
|
+
pageSize: number;
|
|
340
|
+
total: number;
|
|
341
|
+
};
|
|
342
|
+
getResultsHeaderSummary(): string;
|
|
343
|
+
hasErrorMessage(): boolean;
|
|
344
|
+
hasNoResultsMessage(): boolean;
|
|
345
|
+
hasPaginationAvailable(): boolean;
|
|
346
|
+
hasResultsHeaderSummary(): boolean;
|
|
347
|
+
private evaluateComponentInstance;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
type ButtonAppearance = 'primary' | 'secondary' | 'subtle' | 'danger' | 'warning';
|
|
351
|
+
|
|
352
|
+
declare class MzButton {
|
|
353
|
+
appearance: i0.InputSignal<ButtonAppearance>;
|
|
354
|
+
busy: i0.InputSignal<boolean>;
|
|
355
|
+
disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
356
|
+
get elementClass(): string;
|
|
357
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
358
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzButton, never>;
|
|
359
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzButton, "button[mz-button], a[mz-button], button[mzButton], a[mzButton]", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Configuration opening a modal dialog with the MzDrawer service. Properties here are exposes what's available in @angular/cdk DialogConfig
|
|
364
|
+
* and with a few additional properties for MzDrawer.
|
|
365
|
+
* See https://material.angular.io/cdk/dialog/api#DialogConfig
|
|
366
|
+
*/
|
|
367
|
+
declare class MzDrawerConfig<D = any, C extends BasePortalOutlet = BasePortalOutlet> {
|
|
368
|
+
/**
|
|
369
|
+
* Where the attached component should live in Angular's *logical* component tree.
|
|
370
|
+
* This affects what is available for injection and the change detection order for the
|
|
371
|
+
* component instantiated inside of the dialog. This does not affect where the dialog
|
|
372
|
+
* content will be rendered.
|
|
373
|
+
*/
|
|
374
|
+
viewContainerRef?: ViewContainerRef;
|
|
375
|
+
/**
|
|
376
|
+
* Injector used for the instantiation of the component to be attached. If provided,
|
|
377
|
+
* takes precedence over the injector indirectly provided by `ViewContainerRef`.
|
|
378
|
+
*/
|
|
379
|
+
injector?: Injector;
|
|
380
|
+
/** ID for the dialog. If omitted, a unique one will be generated. */
|
|
381
|
+
id?: string;
|
|
382
|
+
/** The ARIA role of the dialog element. */
|
|
383
|
+
role?: DialogRole;
|
|
384
|
+
/** Optional CSS class or classes applied to the overlay panel. */
|
|
385
|
+
panelClass?: string | string[];
|
|
386
|
+
/** Whether the dialog has a backdrop. */
|
|
387
|
+
hasBackdrop?: boolean;
|
|
388
|
+
/** Optional CSS class or classes applied to the overlay backdrop. */
|
|
389
|
+
backdropClass?: string | string[];
|
|
390
|
+
/** Whether the dialog closes with the escape key or pointer events outside the panel element. */
|
|
391
|
+
disableClose?: boolean;
|
|
392
|
+
/** Width of the dialog. */
|
|
393
|
+
width?: string;
|
|
394
|
+
/** Height of the dialog. */
|
|
395
|
+
height?: string;
|
|
396
|
+
/** Min-width of the dialog. If a number is provided, assumes pixel units. */
|
|
397
|
+
minWidth?: number | string;
|
|
398
|
+
/** Min-height of the dialog. If a number is provided, assumes pixel units. */
|
|
399
|
+
minHeight?: number | string;
|
|
400
|
+
/** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
|
|
401
|
+
maxWidth?: number | string;
|
|
402
|
+
/** Max-height of the dialog. If a number is provided, assumes pixel units. */
|
|
403
|
+
maxHeight?: number | string;
|
|
404
|
+
/** Strategy to use when positioning the dialog. Defaults to centering it on the page. */
|
|
405
|
+
positionStrategy?: PositionStrategy;
|
|
406
|
+
/** Data being injected into the child component. */
|
|
407
|
+
data?: D | null;
|
|
408
|
+
/** Layout direction for the dialog's content. */
|
|
409
|
+
direction?: Direction;
|
|
410
|
+
/** ID of the element that describes the dialog. */
|
|
411
|
+
ariaDescribedBy?: string | null;
|
|
412
|
+
/** ID of the element that labels the dialog. */
|
|
413
|
+
ariaLabelledBy?: string | null;
|
|
414
|
+
/** Dialog label applied via `aria-label` */
|
|
415
|
+
ariaLabel?: string | null;
|
|
416
|
+
/** Whether this is a modal dialog. Used to set the `aria-modal` attribute. */
|
|
417
|
+
ariaModal?: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* Where the dialog should focus on open.
|
|
420
|
+
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
421
|
+
* AutoFocusTarget instead.
|
|
422
|
+
*/
|
|
423
|
+
autoFocus?: AutoFocusTarget;
|
|
424
|
+
/**
|
|
425
|
+
* Whether the dialog should restore focus to the previously-focused element upon closing.
|
|
426
|
+
* Has the following behavior based on the type that is passed in:
|
|
427
|
+
* - `boolean` - when true, will return focus to the element that was focused before the dialog
|
|
428
|
+
* was opened, otherwise won't restore focus at all.
|
|
429
|
+
* - `string` - focus will be restored to the first element that matches the CSS selector.
|
|
430
|
+
* - `HTMLElement` - focus will be restored to the specific element.
|
|
431
|
+
*/
|
|
432
|
+
restoreFocus?: boolean | string | HTMLElement;
|
|
433
|
+
/**
|
|
434
|
+
* Scroll strategy to be used for the dialog. This determines how
|
|
435
|
+
* the dialog responds to scrolling underneath the panel element.
|
|
436
|
+
*/
|
|
437
|
+
scrollStrategy?: ScrollStrategy;
|
|
438
|
+
/**
|
|
439
|
+
* Whether the dialog should close when the user goes backwards/forwards in history.
|
|
440
|
+
*/
|
|
441
|
+
closeOnNavigation?: boolean;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare class MzDrawerRef<R, C = any> {
|
|
445
|
+
readonly cdkRef: DialogRef<R, C>;
|
|
446
|
+
readonly config: MzDrawerConfig;
|
|
447
|
+
readonly containerInstance: BasePortalOutlet;
|
|
448
|
+
/** Whether the user is allowed to close the dialog. */
|
|
449
|
+
readonly disableClose: boolean | undefined;
|
|
450
|
+
readonly id: string;
|
|
451
|
+
constructor(cdkRef: DialogRef<R, C>, config: MzDrawerConfig, containerInstance: BasePortalOutlet);
|
|
452
|
+
get componentInstance(): C | null;
|
|
453
|
+
get closed(): Observable<R | undefined>;
|
|
454
|
+
/**
|
|
455
|
+
* Confirms the component's deactivation then closes the dialog.
|
|
456
|
+
* @param result
|
|
457
|
+
* @param options
|
|
458
|
+
* @returns
|
|
459
|
+
*/
|
|
460
|
+
tryClose(result?: R, options?: DialogCloseOptions): boolean;
|
|
461
|
+
/**
|
|
462
|
+
* Closes the dialog without confirmation.
|
|
463
|
+
* @param result
|
|
464
|
+
* @param options
|
|
465
|
+
*/
|
|
466
|
+
close(result?: R, options?: DialogCloseOptions): void;
|
|
467
|
+
confirmDeactivation(): boolean;
|
|
468
|
+
canDeactivate(): boolean;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
declare class MzDrawer implements OnDestroy {
|
|
472
|
+
private injector;
|
|
473
|
+
private overlay;
|
|
474
|
+
private configuredOptions;
|
|
475
|
+
private viewContainerRef?;
|
|
476
|
+
private cdkDialog;
|
|
477
|
+
private openDialogs;
|
|
478
|
+
constructor(injector: Injector, overlay: Overlay, configuredOptions: MzDrawerConfig, viewContainerRef?: (ViewContainerRef | null) | undefined);
|
|
479
|
+
/**
|
|
480
|
+
* Opens a modal dialog containing the given component.
|
|
481
|
+
* @param component Type of the component to load into the dialog.
|
|
482
|
+
* @param config Extra configuration options.
|
|
483
|
+
* @returns Reference to the newly-opened dialog.
|
|
484
|
+
*/
|
|
485
|
+
open<R = any, D = any, T = any>(component: ComponentType<T>, config?: MzDrawerConfig<D>): MzDrawerRef<R, T>;
|
|
486
|
+
/**
|
|
487
|
+
* Opens a modal dialog containing the given template.
|
|
488
|
+
* @param template TemplateRef to instantiate as the dialog content.
|
|
489
|
+
* @param config Extra configuration options.
|
|
490
|
+
* @returns Reference to the newly-opened dialog.
|
|
491
|
+
*/
|
|
492
|
+
open<R = any, D = any, T = any>(template: TemplateRef<T>, config?: MzDrawerConfig<D>): MzDrawerRef<R, T>;
|
|
493
|
+
open<R = any, D = any, T = any>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: MzDrawerConfig<D>): MzDrawerRef<R, T>;
|
|
494
|
+
/**
|
|
495
|
+
* Gets an array of currently opened dialogs that were opened with this instance of service.
|
|
496
|
+
*/
|
|
497
|
+
getDialogs(): MzDrawerRef<any>[];
|
|
498
|
+
confirmDeactivation(): boolean;
|
|
499
|
+
closeAll(): void;
|
|
500
|
+
ngOnDestroy(): void;
|
|
501
|
+
private closeDialogs;
|
|
502
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawer, [null, null, { optional: true; }, { optional: true; }]>;
|
|
503
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MzDrawer>;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
declare class MzDrawerContainer extends CdkDialogContainer<MzDrawerConfig> {
|
|
507
|
+
private elementRef;
|
|
508
|
+
readonly dialogConfig: MzDrawerConfig;
|
|
509
|
+
protected interactivityChecker: InteractivityChecker;
|
|
510
|
+
protected ngZone: NgZone;
|
|
511
|
+
protected overlayRef: OverlayRef;
|
|
512
|
+
private dialogRef?;
|
|
513
|
+
protected open: boolean;
|
|
514
|
+
constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, dialogConfig: MzDrawerConfig, interactivityChecker: InteractivityChecker, ngZone: NgZone, overlayRef: OverlayRef, _document: any);
|
|
515
|
+
associateDialogRef(dialogRef: MzDrawerRef<any>): void;
|
|
516
|
+
onBeforeUnload(event: BeforeUnloadEvent): void;
|
|
517
|
+
protected _contentAttached(): void;
|
|
518
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerContainer, [null, null, null, null, null, null, { optional: true; }]>;
|
|
519
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDrawerContainer, "mz-drawer-container", never, {}, {}, never, never, true, never>;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
declare class MzDrawerHeader {
|
|
523
|
+
private drawerRef;
|
|
524
|
+
title: i0.InputSignal<string>;
|
|
525
|
+
constructor(drawerRef: MzDrawerRef<any>);
|
|
526
|
+
protected close(e: UIEvent): void;
|
|
527
|
+
protected get disableClose(): boolean;
|
|
528
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerHeader, never>;
|
|
529
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDrawerHeader, "mz-drawer-header", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
declare class MzDrawerContent {
|
|
533
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerContent, never>;
|
|
534
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDrawerContent, "mz-drawer-content", never, {}, {}, never, ["*"], true, never>;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
declare class MzDrawerFooter {
|
|
538
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerFooter, never>;
|
|
539
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDrawerFooter, "mz-drawer-footer", never, {}, {}, never, ["*"], true, never>;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
declare class MzDrawerModule {
|
|
543
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerModule, never>;
|
|
544
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MzDrawerModule, never, [typeof i1$1.DialogModule, typeof i2$1.OverlayModule, typeof i3.PortalModule, typeof MzDrawerContainer, typeof MzDrawerHeader, typeof MzDrawerContent, typeof MzDrawerFooter], [typeof i1$1.DialogModule, typeof MzDrawerContainer, typeof MzDrawerHeader, typeof MzDrawerContent, typeof MzDrawerFooter]>;
|
|
545
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MzDrawerModule>;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare class MzDialogContainer extends CdkDialogContainer<DialogConfig> {
|
|
549
|
+
private elementRef;
|
|
550
|
+
readonly dialogConfig: DialogConfig;
|
|
551
|
+
protected interactivityChecker: InteractivityChecker;
|
|
552
|
+
protected ngZone: NgZone;
|
|
553
|
+
protected overlayRef: OverlayRef;
|
|
554
|
+
constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, dialogConfig: DialogConfig, interactivityChecker: InteractivityChecker, ngZone: NgZone, overlayRef: OverlayRef, _document: any);
|
|
555
|
+
protected _contentAttached(): void;
|
|
556
|
+
private enter;
|
|
557
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogContainer, [null, null, null, null, null, null, { optional: true; }]>;
|
|
558
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDialogContainer, "mz-dialog-container", never, {}, {}, never, never, true, never>;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
declare class MzDialogHeader {
|
|
562
|
+
title: i0.InputSignal<string>;
|
|
563
|
+
constructor();
|
|
564
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogHeader, never>;
|
|
565
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDialogHeader, "mz-dialog-header", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
declare class MzDialogContent {
|
|
569
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogContent, never>;
|
|
570
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDialogContent, "mz-dialog-content", never, {}, {}, never, ["*"], true, never>;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
declare class MzDialogFooter {
|
|
574
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogFooter, never>;
|
|
575
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzDialogFooter, "mz-dialog-footer", never, {}, {}, never, ["*"], true, never>;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
type DialogAppearance = 'danger' | 'warning';
|
|
579
|
+
|
|
580
|
+
interface MessageDialogData {
|
|
581
|
+
title: string;
|
|
582
|
+
message: string;
|
|
583
|
+
appearance?: DialogAppearance;
|
|
584
|
+
action: string;
|
|
585
|
+
cancelAction: string;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
declare class MzMessageDialog {
|
|
589
|
+
private dialogRef;
|
|
590
|
+
protected data: MessageDialogData;
|
|
591
|
+
constructor(dialogRef: DialogRef, data: MessageDialogData);
|
|
592
|
+
ok(): void;
|
|
593
|
+
close(): void;
|
|
594
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzMessageDialog, never>;
|
|
595
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MzMessageDialog, "mz-message-dialog", never, {}, {}, never, never, true, never>;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
declare class MzDialogModule {
|
|
599
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogModule, never>;
|
|
600
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MzDialogModule, never, [typeof i1$1.DialogModule, typeof i2$1.OverlayModule, typeof MzDialogContainer, typeof MzDialogHeader, typeof MzDialogContent, typeof MzDialogFooter, typeof MzMessageDialog], [typeof i1$1.DialogModule, typeof MzDialogHeader, typeof MzDialogContent, typeof MzDialogFooter, typeof MzDialogContainer, typeof MzMessageDialog]>;
|
|
601
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MzDialogModule>;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
declare class MzDialogConfig<D> {
|
|
605
|
+
/** Optional CSS class or classes applied to the overlay panel. */
|
|
606
|
+
panelClass?: string | string[];
|
|
607
|
+
/** Whether the dialog has a backdrop. */
|
|
608
|
+
hasBackdrop?: boolean;
|
|
609
|
+
/** Optional CSS class or classes applied to the overlay backdrop. */
|
|
610
|
+
backdropClass?: string | string[];
|
|
611
|
+
/** Whether the dialog closes with the escape key or pointer events outside the panel element. */
|
|
612
|
+
disableClose?: boolean;
|
|
613
|
+
/** Width of the dialog. */
|
|
614
|
+
width?: string;
|
|
615
|
+
/** Height of the dialog. */
|
|
616
|
+
height?: string;
|
|
617
|
+
/** Min-width of the dialog. If a number is provided, assumes pixel units. */
|
|
618
|
+
minWidth?: number | string;
|
|
619
|
+
/** Min-height of the dialog. If a number is provided, assumes pixel units. */
|
|
620
|
+
minHeight?: number | string;
|
|
621
|
+
/** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
|
|
622
|
+
maxWidth?: number | string;
|
|
623
|
+
/** Max-height of the dialog. If a number is provided, assumes pixel units. */
|
|
624
|
+
maxHeight?: number | string;
|
|
625
|
+
/** Data being injected into the child component. */
|
|
626
|
+
data?: D | null;
|
|
627
|
+
/**
|
|
628
|
+
* Where the dialog should focus on open.
|
|
629
|
+
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
630
|
+
* AutoFocusTarget instead.
|
|
631
|
+
*/
|
|
632
|
+
autoFocus?: AutoFocusTarget;
|
|
633
|
+
/**
|
|
634
|
+
* Whether the dialog should restore focus to the previously-focused element upon closing.
|
|
635
|
+
* Has the following behavior based on the type that is passed in:
|
|
636
|
+
* - `boolean` - when true, will return focus to the element that was focused before the dialog
|
|
637
|
+
* was opened, otherwise won't restore focus at all.
|
|
638
|
+
* - `string` - focus will be restored to the first element that matches the CSS selector.
|
|
639
|
+
* - `HTMLElement` - focus will be restored to the specific element.
|
|
640
|
+
*/
|
|
641
|
+
restoreFocus?: boolean | string | HTMLElement;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
declare class MzDialog {
|
|
645
|
+
private defaultOptions;
|
|
646
|
+
private cdkDialog;
|
|
647
|
+
constructor(injector: Injector, defaultOptions: DialogConfig<any>);
|
|
648
|
+
/**
|
|
649
|
+
* Displays a message modal dialog.
|
|
650
|
+
* @param title The title of the dialog.
|
|
651
|
+
* @param message The message to display.
|
|
652
|
+
* @param action The text for the action button. Not displayed if empty.
|
|
653
|
+
* @param cancelAction The text for the cancel button. Not displayed if empty.
|
|
654
|
+
* @param appearance The appearance of the dialog.
|
|
655
|
+
* @returns A reference to the opened dialog.
|
|
656
|
+
*/
|
|
657
|
+
display(title: string, message: string, action?: string, cancelAction?: string, appearance?: DialogAppearance): DialogRef<void, MzMessageDialog>;
|
|
658
|
+
/**
|
|
659
|
+
* Opens a confirmation modal dialog.
|
|
660
|
+
* @param title The title of the dialog.
|
|
661
|
+
* @param message The message to display in the dialog.
|
|
662
|
+
* @param action The text for the OK button.
|
|
663
|
+
* @param cancelAction The text for the Cancel button. Not displayed if empty.
|
|
664
|
+
* @param appearance The appearance of the dialog.
|
|
665
|
+
* @returns A promise that resolves to true if the user confirmed, false if canceled, undefined if dismissed.
|
|
666
|
+
*/
|
|
667
|
+
confirm(title: string, message: string, action?: string, cancelAction?: string, appearance?: DialogAppearance): Promise<boolean | undefined>;
|
|
668
|
+
open<R = any, D = any, T = any>(template: TemplateRef<T>, config?: MzDialogConfig<D>): DialogRef<R, T>;
|
|
669
|
+
open<R = any, D = any, T = any>(component: ComponentType<T>, config?: MzDialogConfig<D>): DialogRef<R, T>;
|
|
670
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialog, [null, { optional: true; }]>;
|
|
671
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MzDialog>;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
declare class FilterComponent {
|
|
675
|
+
label: string;
|
|
676
|
+
display: string;
|
|
677
|
+
menuTemplate: TemplateRef<unknown> | null;
|
|
678
|
+
clear: EventEmitter<void>;
|
|
679
|
+
apply: EventEmitter<any>;
|
|
680
|
+
protected menuForm?: NgForm;
|
|
681
|
+
protected menuTrigger?: CdkMenuTrigger;
|
|
682
|
+
close(): void;
|
|
683
|
+
protected clearFilter(): void;
|
|
684
|
+
protected applyFilter($event: Event): void;
|
|
685
|
+
protected get filterLabel(): string;
|
|
686
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
687
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "mz-filter", ["mzFilter"], { "label": { "alias": "label"; "required": false; }; "display": { "alias": "display"; "required": false; }; "menuTemplate": { "alias": "menuTemplate"; "required": false; }; }, { "clear": "clear"; "apply": "apply"; }, never, never, true, never>;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
interface FilterOptionModel<T> {
|
|
691
|
+
label: string;
|
|
692
|
+
selected: boolean;
|
|
693
|
+
value: T;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
declare class OptionsFilterComponent {
|
|
697
|
+
options?: FilterOptionModel<string>[];
|
|
698
|
+
values: string[];
|
|
699
|
+
label: string;
|
|
700
|
+
change: EventEmitter<string | undefined>;
|
|
701
|
+
selected?: string;
|
|
702
|
+
form: NgForm;
|
|
703
|
+
protected open: boolean;
|
|
704
|
+
protected search: string;
|
|
705
|
+
get filterLabel(): string;
|
|
706
|
+
get filteredOptions(): FilterOptionModel<string>[];
|
|
707
|
+
apply(): void;
|
|
708
|
+
clear(): void;
|
|
709
|
+
toggleOverlay(): void;
|
|
710
|
+
dismiss(): void;
|
|
711
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsFilterComponent, never>;
|
|
712
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionsFilterComponent, "mz-options-filter", never, { "options": { "alias": "options"; "required": false; }; "values": { "alias": "values"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare class FilterMenuComponent implements AfterContentInit {
|
|
716
|
+
private filter;
|
|
717
|
+
ngAfterContentInit(): void;
|
|
718
|
+
myTemplate: TemplateRef<any>;
|
|
719
|
+
container: ViewContainerRef;
|
|
720
|
+
form?: NgForm;
|
|
721
|
+
models?: QueryList<NgModel>;
|
|
722
|
+
constructor(filter: FilterComponent | null);
|
|
723
|
+
reset(): void;
|
|
724
|
+
apply(): void;
|
|
725
|
+
clear(): void;
|
|
726
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterMenuComponent, [{ optional: true; }]>;
|
|
727
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterMenuComponent, "mz-filter-menu", ["mzFilterMenu"], {}, {}, ["form", "models"], ["*"], true, never>;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
interface CanDeactivateComponent {
|
|
731
|
+
canDeactivate(): boolean;
|
|
732
|
+
confirmDeactivation(): boolean;
|
|
733
|
+
}
|
|
734
|
+
declare const hasImplementation: <T>(obj: any, func: keyof T) => obj is T;
|
|
735
|
+
|
|
736
|
+
export { AlertComponent, ButtonDirective, DateDisplayPipe, EnumDisplayPipe, FilterComponent, FilterMenuComponent, InfiniteScrollComponent, MZ_DATE_PIPE_DEFAULT_OPTIONS, MuziehComponentHarness, MuziehComponentsModule, MzButton, MzDatePipe, MzDialog, MzDialogContainer, MzDialogContent, MzDialogFooter, MzDialogHeader, MzDialogModule, MzDrawer, MzDrawerConfig, MzDrawerContainer, MzDrawerContent, MzDrawerFooter, MzDrawerHeader, MzDrawerModule, MzDrawerRef, MzInlineEditComponent, MzMessageDialog as MzMessageModal, MzPagination, MzSpinner, OptionsFilterComponent, PageHeaderComponent, PageLoadingIndicatorComponent, PhoneNumberPipe, ResultTableComponent, ResultTableHarness, SVG_ICON_DEFAULT_OPTIONS, SortDirective, SortKeyDirective, SubjectDisplayPipe, SvgIconComponent, WizardProgressTrackerComponent, hasImplementation };
|
|
737
|
+
export type { CanDeactivateComponent, DialogAppearance, FilterOptionModel, LoadingState, MzDatePipeConfig, PageEvent, ResultTableModel, ResultTableOptions, SortEvent, Subject, SvgIconOptions, WizardStepLink };
|