@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/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AlertComponent implements OnInit {
|
|
4
|
-
title: string;
|
|
5
|
-
type: 'info' | 'success' | 'error' | 'warning';
|
|
6
|
-
body: TemplateRef<any> | undefined | null;
|
|
7
|
-
footer: TemplateRef<any> | undefined | null;
|
|
8
|
-
constructor();
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
getAlertClass(): string;
|
|
11
|
-
getAlertIcon(): string;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
13
|
-
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>;
|
|
14
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class MzAsyncError {
|
|
3
|
-
constructor();
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzAsyncError, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MzAsyncError, "[mzAsyncError]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class MzAsyncLoading {
|
|
3
|
-
constructor();
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzAsyncLoading, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MzAsyncLoading, "[mzAsyncLoading]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class MzAsync {
|
|
3
|
-
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
4
|
-
error: import("@angular/core").InputSignal<Error | undefined>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzAsync, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MzAsync, "mz-async", never, { "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; }, {}, never, ["[mzAsyncLoading]", "[mzAsyncError]", "[mzAsyncSuccess]"], true, never>;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ButtonAppearance = 'primary' | 'secondary' | 'subtle' | 'danger' | 'warning';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { ButtonAppearance } from './button-appearance';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MzButton {
|
|
5
|
-
appearance: import("@angular/core").InputSignal<ButtonAppearance>;
|
|
6
|
-
busy: import("@angular/core").InputSignal<boolean>;
|
|
7
|
-
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8
|
-
get elementClass(): string;
|
|
9
|
-
constructor(elementRef: ElementRef<HTMLElement>);
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzButton, never>;
|
|
11
|
-
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>;
|
|
12
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use MzButton component instead: `<button mz-button appearance="primary">...</button>`
|
|
5
|
-
*/
|
|
6
|
-
export declare class ButtonDirective implements OnChanges, OnDestroy {
|
|
7
|
-
private renderer;
|
|
8
|
-
private hostElement;
|
|
9
|
-
variant?: string | undefined;
|
|
10
|
-
busy?: boolean;
|
|
11
|
-
private svgContent;
|
|
12
|
-
private subscription;
|
|
13
|
-
constructor(renderer: Renderer2, hostElement: ElementRef);
|
|
14
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
get elementClass(): string;
|
|
17
|
-
attachOrDeattachSpinner(): void;
|
|
18
|
-
private addEventSubscription;
|
|
19
|
-
private getChildElement;
|
|
20
|
-
private getElementsToVerify;
|
|
21
|
-
private getOverlayDiv;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[mzButton]", never, { "variant": { "alias": "variant"; "required": false; }; "busy": { "alias": "busy"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "@angular/forms";
|
|
4
|
-
import * as i3 from "./button.directive";
|
|
5
|
-
import * as i4 from "./svg-icon/svg-icon.component";
|
|
6
|
-
import * as i5 from "./spinner/spinner.component";
|
|
7
|
-
import * as i6 from "./wizard-progress-tracker/wizard-progress-tracker.component";
|
|
8
|
-
import * as i7 from "./alert/alert.component";
|
|
9
|
-
import * as i8 from "./enum-display/enum-display.pipe";
|
|
10
|
-
import * as i9 from "./result-table/result-table.component";
|
|
11
|
-
import * as i10 from "./infinite-scroll/infinite-scroll.component";
|
|
12
|
-
import * as i11 from "./pagination/pagination.component";
|
|
13
|
-
import * as i12 from "./page-loading-indicator/page-loading-indicator.component";
|
|
14
|
-
import * as i13 from "./page-header/page-header.component";
|
|
15
|
-
import * as i14 from "./date-display/date-display.pipe";
|
|
16
|
-
import * as i15 from "./phone-number/phone-number.pipe";
|
|
17
|
-
import * as i16 from "./sort-key.directive";
|
|
18
|
-
import * as i17 from "./sort.directive";
|
|
19
|
-
import * as i18 from "./subject-display/subject-display.pipe";
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Import components and component modules separately.
|
|
22
|
-
*/
|
|
23
|
-
export declare class MuziehComponentsModule {
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MuziehComponentsModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MuziehComponentsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.ButtonDirective, typeof i4.SvgIconComponent, typeof i5.MzSpinner, typeof i6.WizardProgressTrackerComponent, typeof i7.AlertComponent, typeof i8.EnumDisplayPipe, typeof i9.ResultTableComponent, typeof i10.InfiniteScrollComponent, typeof i11.MzPagination, typeof i12.PageLoadingIndicatorComponent, typeof i13.PageHeaderComponent, typeof i14.DateDisplayPipe, typeof i15.PhoneNumberPipe, typeof i16.SortKeyDirective, typeof i17.SortDirective, typeof i18.SubjectDisplayPipe], [typeof i8.EnumDisplayPipe, typeof i5.MzSpinner, typeof i4.SvgIconComponent, typeof i9.ResultTableComponent, typeof i10.InfiniteScrollComponent, typeof i11.MzPagination, typeof i12.PageLoadingIndicatorComponent, typeof i13.PageHeaderComponent, typeof i14.DateDisplayPipe, typeof i7.AlertComponent, typeof i15.PhoneNumberPipe, typeof i16.SortKeyDirective, typeof i17.SortDirective, typeof i18.SubjectDisplayPipe, typeof i3.ButtonDirective, typeof i6.WizardProgressTrackerComponent]>;
|
|
26
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MuziehComponentsModule>;
|
|
27
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DatePipeConfig } from "@angular/common";
|
|
2
|
-
import { InjectionToken } from "@angular/core";
|
|
3
|
-
export declare const DATE_PIPE_CONFIG_OPTIONS: Readonly<{
|
|
4
|
-
formats: Map<string, string>;
|
|
5
|
-
dateFormat: string;
|
|
6
|
-
}>;
|
|
7
|
-
export interface MzDatePipeConfig extends DatePipeConfig {
|
|
8
|
-
formats: Map<string, string>;
|
|
9
|
-
}
|
|
10
|
-
export declare const MZ_DATE_PIPE_DEFAULT_OPTIONS: InjectionToken<MzDatePipeConfig>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DatePipe } from '@angular/common';
|
|
2
|
-
import { PipeTransform } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated use mzDate instead
|
|
6
|
-
*/
|
|
7
|
-
export declare class DateDisplayPipe implements PipeTransform {
|
|
8
|
-
private datePipe;
|
|
9
|
-
constructor(datePipe: DatePipe);
|
|
10
|
-
transform(value: Date | string, format?: string): string | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateDisplayPipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DateDisplayPipe, "mzDateDisplay", true>;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DatePipe } from '@angular/common';
|
|
2
|
-
import { MzDatePipeConfig } from './date-display-config';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MzDatePipe extends DatePipe {
|
|
5
|
-
private options;
|
|
6
|
-
constructor(locale: string, defaultMzOptions?: MzDatePipeConfig | null);
|
|
7
|
-
transform(value: string | number | Date, format?: string | undefined, timezone?: string | undefined, locale?: string | undefined): string | null;
|
|
8
|
-
transform(value: null | undefined, format?: string | undefined, timezone?: string | undefined, locale?: string | undefined): null;
|
|
9
|
-
transform(value: string | number | Date | null | undefined, format?: string | undefined, timezone?: string | undefined, locale?: string | undefined): string | null;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDatePipe, [null, { optional: true; }]>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MzDatePipe, "mzDate", true>;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type DialogAppearance = 'danger' | 'warning';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { AutoFocusTarget } from "@angular/cdk/dialog";
|
|
2
|
-
import { InjectionToken } from "@angular/core";
|
|
3
|
-
export declare const MZ_DIALOG_DEFAULT_OPTIONS: InjectionToken<MzDialogConfig<any>>;
|
|
4
|
-
export declare class MzDialogConfig<D> {
|
|
5
|
-
/** Optional CSS class or classes applied to the overlay panel. */
|
|
6
|
-
panelClass?: string | string[];
|
|
7
|
-
/** Whether the dialog has a backdrop. */
|
|
8
|
-
hasBackdrop?: boolean;
|
|
9
|
-
/** Optional CSS class or classes applied to the overlay backdrop. */
|
|
10
|
-
backdropClass?: string | string[];
|
|
11
|
-
/** Whether the dialog closes with the escape key or pointer events outside the panel element. */
|
|
12
|
-
disableClose?: boolean;
|
|
13
|
-
/** Width of the dialog. */
|
|
14
|
-
width?: string;
|
|
15
|
-
/** Height of the dialog. */
|
|
16
|
-
height?: string;
|
|
17
|
-
/** Min-width of the dialog. If a number is provided, assumes pixel units. */
|
|
18
|
-
minWidth?: number | string;
|
|
19
|
-
/** Min-height of the dialog. If a number is provided, assumes pixel units. */
|
|
20
|
-
minHeight?: number | string;
|
|
21
|
-
/** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
|
|
22
|
-
maxWidth?: number | string;
|
|
23
|
-
/** Max-height of the dialog. If a number is provided, assumes pixel units. */
|
|
24
|
-
maxHeight?: number | string;
|
|
25
|
-
/** Data being injected into the child component. */
|
|
26
|
-
data?: D | null;
|
|
27
|
-
/**
|
|
28
|
-
* Where the dialog should focus on open.
|
|
29
|
-
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
30
|
-
* AutoFocusTarget instead.
|
|
31
|
-
*/
|
|
32
|
-
autoFocus?: AutoFocusTarget;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the dialog should restore focus to the previously-focused element upon closing.
|
|
35
|
-
* Has the following behavior based on the type that is passed in:
|
|
36
|
-
* - `boolean` - when true, will return focus to the element that was focused before the dialog
|
|
37
|
-
* was opened, otherwise won't restore focus at all.
|
|
38
|
-
* - `string` - focus will be restored to the first element that matches the CSS selector.
|
|
39
|
-
* - `HTMLElement` - focus will be restored to the specific element.
|
|
40
|
-
*/
|
|
41
|
-
restoreFocus?: boolean | string | HTMLElement;
|
|
42
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CdkDialogContainer, DialogConfig } from '@angular/cdk/dialog';
|
|
2
|
-
import { ElementRef, NgZone } from '@angular/core';
|
|
3
|
-
import { FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
|
|
4
|
-
import { OverlayRef } from '@angular/cdk/overlay';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MzDialogContainer extends CdkDialogContainer<DialogConfig> {
|
|
7
|
-
private elementRef;
|
|
8
|
-
readonly dialogConfig: DialogConfig;
|
|
9
|
-
protected interactivityChecker: InteractivityChecker;
|
|
10
|
-
protected ngZone: NgZone;
|
|
11
|
-
protected overlayRef: OverlayRef;
|
|
12
|
-
constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, dialogConfig: DialogConfig, interactivityChecker: InteractivityChecker, ngZone: NgZone, overlayRef: OverlayRef, _document: any);
|
|
13
|
-
protected _contentAttached(): void;
|
|
14
|
-
private enter;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogContainer, [null, null, null, null, null, null, { optional: true; }]>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MzDialogContainer, "mz-dialog-container", never, {}, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class MzDialogHeader {
|
|
3
|
-
title: import("@angular/core").InputSignal<string>;
|
|
4
|
-
constructor();
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogHeader, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MzDialogHeader, "mz-dialog-header", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
package/lib/dialog/dialog.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { DialogConfig, DialogRef } from '@angular/cdk/dialog';
|
|
2
|
-
import { ComponentType } from '@angular/cdk/overlay';
|
|
3
|
-
import { Injector, TemplateRef } from '@angular/core';
|
|
4
|
-
import { MzMessageDialog } from './message-dialog/message-dialog.component';
|
|
5
|
-
import { DialogAppearance } from './dialog-appearance';
|
|
6
|
-
import { MzDialogConfig } from './dialog-config';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MzDialog {
|
|
9
|
-
private defaultOptions;
|
|
10
|
-
private cdkDialog;
|
|
11
|
-
constructor(injector: Injector, defaultOptions: DialogConfig<any>);
|
|
12
|
-
/**
|
|
13
|
-
* Displays a message modal dialog.
|
|
14
|
-
* @param title The title of the dialog.
|
|
15
|
-
* @param message The message to display.
|
|
16
|
-
* @param action The text for the action button. Not displayed if empty.
|
|
17
|
-
* @param cancelAction The text for the cancel button. Not displayed if empty.
|
|
18
|
-
* @param appearance The appearance of the dialog.
|
|
19
|
-
* @returns A reference to the opened dialog.
|
|
20
|
-
*/
|
|
21
|
-
display(title: string, message: string, action?: string, cancelAction?: string, appearance?: DialogAppearance): DialogRef<void, MzMessageDialog>;
|
|
22
|
-
/**
|
|
23
|
-
* Opens a confirmation modal dialog.
|
|
24
|
-
* @param title The title of the dialog.
|
|
25
|
-
* @param message The message to display in the dialog.
|
|
26
|
-
* @param action The text for the OK button.
|
|
27
|
-
* @param cancelAction The text for the Cancel button. Not displayed if empty.
|
|
28
|
-
* @param appearance The appearance of the dialog.
|
|
29
|
-
* @returns A promise that resolves to true if the user confirmed, false if canceled, undefined if dismissed.
|
|
30
|
-
*/
|
|
31
|
-
confirm(title: string, message: string, action?: string, cancelAction?: string, appearance?: DialogAppearance): Promise<boolean | undefined>;
|
|
32
|
-
open<R = any, D = any, T = any>(template: TemplateRef<T>, config?: MzDialogConfig<D>): DialogRef<R, T>;
|
|
33
|
-
open<R = any, D = any, T = any>(component: ComponentType<T>, config?: MzDialogConfig<D>): DialogRef<R, T>;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialog, [null, { optional: true; }]>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MzDialog>;
|
|
36
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/cdk/dialog";
|
|
3
|
-
import * as i2 from "@angular/cdk/overlay";
|
|
4
|
-
import * as i3 from "./dialog-container/dialog-container.component";
|
|
5
|
-
import * as i4 from "./dialog-header/dialog-header.component";
|
|
6
|
-
import * as i5 from "./dialog-content/dialog-content.component";
|
|
7
|
-
import * as i6 from "./dialog-footer/dialog-footer.component";
|
|
8
|
-
import * as i7 from "./message-dialog/message-dialog.component";
|
|
9
|
-
export declare class MzDialogModule {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MzDialogModule, never, [typeof i1.DialogModule, typeof i2.OverlayModule, typeof i3.MzDialogContainer, typeof i4.MzDialogHeader, typeof i5.MzDialogContent, typeof i6.MzDialogFooter, typeof i7.MzMessageDialog], [typeof i1.DialogModule, typeof i4.MzDialogHeader, typeof i5.MzDialogContent, typeof i6.MzDialogFooter, typeof i3.MzDialogContainer, typeof i7.MzMessageDialog]>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MzDialogModule>;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DialogRef } from '@angular/cdk/dialog';
|
|
2
|
-
import { MessageDialogData } from './message-dialog-data';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MzMessageDialog {
|
|
5
|
-
private dialogRef;
|
|
6
|
-
protected data: MessageDialogData;
|
|
7
|
-
constructor(dialogRef: DialogRef, data: MessageDialogData);
|
|
8
|
-
ok(): void;
|
|
9
|
-
close(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzMessageDialog, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MzMessageDialog, "mz-message-dialog", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CdkDialogContainer } from '@angular/cdk/dialog';
|
|
2
|
-
import { ElementRef, NgZone } from '@angular/core';
|
|
3
|
-
import { OverlayRef } from '@angular/cdk/overlay';
|
|
4
|
-
import { FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
|
|
5
|
-
import { MzDrawerConfig } from '../drawer-config';
|
|
6
|
-
import { MzDrawerRef } from '../drawer-ref';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MzDrawerContainer extends CdkDialogContainer<MzDrawerConfig> {
|
|
9
|
-
private elementRef;
|
|
10
|
-
readonly dialogConfig: MzDrawerConfig;
|
|
11
|
-
protected interactivityChecker: InteractivityChecker;
|
|
12
|
-
protected ngZone: NgZone;
|
|
13
|
-
protected overlayRef: OverlayRef;
|
|
14
|
-
private dialogRef?;
|
|
15
|
-
protected open: boolean;
|
|
16
|
-
constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, dialogConfig: MzDrawerConfig, interactivityChecker: InteractivityChecker, ngZone: NgZone, overlayRef: OverlayRef, _document: any);
|
|
17
|
-
associateDialogRef(dialogRef: MzDrawerRef<any>): void;
|
|
18
|
-
onBeforeUnload(event: BeforeUnloadEvent): void;
|
|
19
|
-
protected _contentAttached(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerContainer, [null, null, null, null, null, null, { optional: true; }]>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MzDrawerContainer, "mz-drawer-container", never, {}, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Direction } from "@angular/cdk/bidi";
|
|
2
|
-
import { AutoFocusTarget, DialogRole } from "@angular/cdk/dialog";
|
|
3
|
-
import { PositionStrategy, ScrollStrategy } from "@angular/cdk/overlay";
|
|
4
|
-
import { BasePortalOutlet } from "@angular/cdk/portal";
|
|
5
|
-
import { Injector, ViewContainerRef } from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Configuration opening a modal dialog with the MzDrawer service. Properties here are exposes what's available in @angular/cdk DialogConfig
|
|
8
|
-
* and with a few additional properties for MzDrawer.
|
|
9
|
-
* See https://material.angular.io/cdk/dialog/api#DialogConfig
|
|
10
|
-
*/
|
|
11
|
-
export declare class MzDrawerConfig<D = any, C extends BasePortalOutlet = BasePortalOutlet> {
|
|
12
|
-
/**
|
|
13
|
-
* Where the attached component should live in Angular's *logical* component tree.
|
|
14
|
-
* This affects what is available for injection and the change detection order for the
|
|
15
|
-
* component instantiated inside of the dialog. This does not affect where the dialog
|
|
16
|
-
* content will be rendered.
|
|
17
|
-
*/
|
|
18
|
-
viewContainerRef?: ViewContainerRef;
|
|
19
|
-
/**
|
|
20
|
-
* Injector used for the instantiation of the component to be attached. If provided,
|
|
21
|
-
* takes precedence over the injector indirectly provided by `ViewContainerRef`.
|
|
22
|
-
*/
|
|
23
|
-
injector?: Injector;
|
|
24
|
-
/** ID for the dialog. If omitted, a unique one will be generated. */
|
|
25
|
-
id?: string;
|
|
26
|
-
/** The ARIA role of the dialog element. */
|
|
27
|
-
role?: DialogRole;
|
|
28
|
-
/** Optional CSS class or classes applied to the overlay panel. */
|
|
29
|
-
panelClass?: string | string[];
|
|
30
|
-
/** Whether the dialog has a backdrop. */
|
|
31
|
-
hasBackdrop?: boolean;
|
|
32
|
-
/** Optional CSS class or classes applied to the overlay backdrop. */
|
|
33
|
-
backdropClass?: string | string[];
|
|
34
|
-
/** Whether the dialog closes with the escape key or pointer events outside the panel element. */
|
|
35
|
-
disableClose?: boolean;
|
|
36
|
-
/** Width of the dialog. */
|
|
37
|
-
width?: string;
|
|
38
|
-
/** Height of the dialog. */
|
|
39
|
-
height?: string;
|
|
40
|
-
/** Min-width of the dialog. If a number is provided, assumes pixel units. */
|
|
41
|
-
minWidth?: number | string;
|
|
42
|
-
/** Min-height of the dialog. If a number is provided, assumes pixel units. */
|
|
43
|
-
minHeight?: number | string;
|
|
44
|
-
/** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
|
|
45
|
-
maxWidth?: number | string;
|
|
46
|
-
/** Max-height of the dialog. If a number is provided, assumes pixel units. */
|
|
47
|
-
maxHeight?: number | string;
|
|
48
|
-
/** Strategy to use when positioning the dialog. Defaults to centering it on the page. */
|
|
49
|
-
positionStrategy?: PositionStrategy;
|
|
50
|
-
/** Data being injected into the child component. */
|
|
51
|
-
data?: D | null;
|
|
52
|
-
/** Layout direction for the dialog's content. */
|
|
53
|
-
direction?: Direction;
|
|
54
|
-
/** ID of the element that describes the dialog. */
|
|
55
|
-
ariaDescribedBy?: string | null;
|
|
56
|
-
/** ID of the element that labels the dialog. */
|
|
57
|
-
ariaLabelledBy?: string | null;
|
|
58
|
-
/** Dialog label applied via `aria-label` */
|
|
59
|
-
ariaLabel?: string | null;
|
|
60
|
-
/** Whether this is a modal dialog. Used to set the `aria-modal` attribute. */
|
|
61
|
-
ariaModal?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Where the dialog should focus on open.
|
|
64
|
-
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
65
|
-
* AutoFocusTarget instead.
|
|
66
|
-
*/
|
|
67
|
-
autoFocus?: AutoFocusTarget;
|
|
68
|
-
/**
|
|
69
|
-
* Whether the dialog should restore focus to the previously-focused element upon closing.
|
|
70
|
-
* Has the following behavior based on the type that is passed in:
|
|
71
|
-
* - `boolean` - when true, will return focus to the element that was focused before the dialog
|
|
72
|
-
* was opened, otherwise won't restore focus at all.
|
|
73
|
-
* - `string` - focus will be restored to the first element that matches the CSS selector.
|
|
74
|
-
* - `HTMLElement` - focus will be restored to the specific element.
|
|
75
|
-
*/
|
|
76
|
-
restoreFocus?: boolean | string | HTMLElement;
|
|
77
|
-
/**
|
|
78
|
-
* Scroll strategy to be used for the dialog. This determines how
|
|
79
|
-
* the dialog responds to scrolling underneath the panel element.
|
|
80
|
-
*/
|
|
81
|
-
scrollStrategy?: ScrollStrategy;
|
|
82
|
-
/**
|
|
83
|
-
* Whether the dialog should close when the user goes backwards/forwards in history.
|
|
84
|
-
*/
|
|
85
|
-
closeOnNavigation?: boolean;
|
|
86
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MzDrawerRef } from '../drawer-ref';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MzDrawerHeader {
|
|
4
|
-
private drawerRef;
|
|
5
|
-
title: import("@angular/core").InputSignal<string>;
|
|
6
|
-
constructor(drawerRef: MzDrawerRef<any>);
|
|
7
|
-
protected close(e: UIEvent): void;
|
|
8
|
-
protected get disableClose(): boolean;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerHeader, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MzDrawerHeader, "mz-drawer-header", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import { MzDrawerConfig } from "./drawer-config";
|
|
3
|
-
/** Injection token that can be used to provide default options for the dialog module. */
|
|
4
|
-
export declare const DEFAULT_MZ_DRAWER_CONFIG: InjectionToken<MzDrawerConfig<any, import("@angular/cdk/portal-directives.d-C698lRc2").BasePortalOutlet>>;
|
|
5
|
-
export declare const MZ_DRAWER_DATA: InjectionToken<any>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DialogCloseOptions, DialogRef } from "@angular/cdk/dialog";
|
|
2
|
-
import { MzDrawerConfig } from "./drawer-config";
|
|
3
|
-
import { BasePortalOutlet } from "@angular/cdk/portal";
|
|
4
|
-
import { Observable } from "rxjs";
|
|
5
|
-
export declare class MzDrawerRef<R, C = any> {
|
|
6
|
-
readonly cdkRef: DialogRef<R, C>;
|
|
7
|
-
readonly config: MzDrawerConfig;
|
|
8
|
-
readonly containerInstance: BasePortalOutlet;
|
|
9
|
-
/** Whether the user is allowed to close the dialog. */
|
|
10
|
-
readonly disableClose: boolean | undefined;
|
|
11
|
-
readonly id: string;
|
|
12
|
-
constructor(cdkRef: DialogRef<R, C>, config: MzDrawerConfig, containerInstance: BasePortalOutlet);
|
|
13
|
-
get componentInstance(): C | null;
|
|
14
|
-
get closed(): Observable<R | undefined>;
|
|
15
|
-
/**
|
|
16
|
-
* Confirms the component's deactivation then closes the dialog.
|
|
17
|
-
* @param result
|
|
18
|
-
* @param options
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
tryClose(result?: R, options?: DialogCloseOptions): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Closes the dialog without confirmation.
|
|
24
|
-
* @param result
|
|
25
|
-
* @param options
|
|
26
|
-
*/
|
|
27
|
-
close(result?: R, options?: DialogCloseOptions): void;
|
|
28
|
-
confirmDeactivation(): boolean;
|
|
29
|
-
canDeactivate(): boolean;
|
|
30
|
-
}
|
package/lib/drawer/drawer.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ComponentType, Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
-
import { MzDrawerConfig } from './drawer-config';
|
|
4
|
-
import { MzDrawerRef } from './drawer-ref';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MzDrawer implements OnDestroy {
|
|
7
|
-
private injector;
|
|
8
|
-
private overlay;
|
|
9
|
-
private configuredOptions;
|
|
10
|
-
private viewContainerRef?;
|
|
11
|
-
private cdkDialog;
|
|
12
|
-
private openDialogs;
|
|
13
|
-
constructor(injector: Injector, overlay: Overlay, configuredOptions: MzDrawerConfig, viewContainerRef?: (ViewContainerRef | null) | undefined);
|
|
14
|
-
/**
|
|
15
|
-
* Opens a modal dialog containing the given component.
|
|
16
|
-
* @param component Type of the component to load into the dialog.
|
|
17
|
-
* @param config Extra configuration options.
|
|
18
|
-
* @returns Reference to the newly-opened dialog.
|
|
19
|
-
*/
|
|
20
|
-
open<R = any, D = any, T = any>(component: ComponentType<T>, config?: MzDrawerConfig<D>): MzDrawerRef<R, T>;
|
|
21
|
-
/**
|
|
22
|
-
* Opens a modal dialog containing the given template.
|
|
23
|
-
* @param template TemplateRef to instantiate as the dialog content.
|
|
24
|
-
* @param config Extra configuration options.
|
|
25
|
-
* @returns Reference to the newly-opened dialog.
|
|
26
|
-
*/
|
|
27
|
-
open<R = any, D = any, T = any>(template: TemplateRef<T>, config?: MzDrawerConfig<D>): MzDrawerRef<R, T>;
|
|
28
|
-
open<R = any, D = any, T = any>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: MzDrawerConfig<D>): MzDrawerRef<R, T>;
|
|
29
|
-
/**
|
|
30
|
-
* Gets an array of currently opened dialogs that were opened with this instance of service.
|
|
31
|
-
*/
|
|
32
|
-
getDialogs(): MzDrawerRef<any>[];
|
|
33
|
-
confirmDeactivation(): boolean;
|
|
34
|
-
closeAll(): void;
|
|
35
|
-
ngOnDestroy(): void;
|
|
36
|
-
private closeDialogs;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawer, [null, null, { optional: true; }, { optional: true; }]>;
|
|
38
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MzDrawer>;
|
|
39
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/cdk/dialog";
|
|
3
|
-
import * as i2 from "@angular/cdk/overlay";
|
|
4
|
-
import * as i3 from "@angular/cdk/portal";
|
|
5
|
-
import * as i4 from "./container/drawer-container.component";
|
|
6
|
-
import * as i5 from "./drawer-header/drawer-header.component";
|
|
7
|
-
import * as i6 from "./drawer-content/drawer-content.component";
|
|
8
|
-
import * as i7 from "./drawer-footer/drawer-footer.component";
|
|
9
|
-
export declare class MzDrawerModule {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MzDrawerModule, never, [typeof i1.DialogModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.MzDrawerContainer, typeof i5.MzDrawerHeader, typeof i6.MzDrawerContent, typeof i7.MzDrawerFooter], [typeof i1.DialogModule, typeof i4.MzDrawerContainer, typeof i5.MzDrawerHeader, typeof i6.MzDrawerContent, typeof i7.MzDrawerFooter]>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MzDrawerModule>;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class EnumDisplayPipe implements PipeTransform {
|
|
4
|
-
transform(value?: string): string;
|
|
5
|
-
private transformValue;
|
|
6
|
-
private firstLetterToUppercase;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnumDisplayPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<EnumDisplayPipe, "mzEnumDisplay", true>;
|
|
9
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { NgForm, NgModel } from '@angular/forms';
|
|
3
|
-
import { FilterComponent } from '../filter.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FilterMenuComponent implements AfterContentInit {
|
|
6
|
-
private filter;
|
|
7
|
-
ngAfterContentInit(): void;
|
|
8
|
-
myTemplate: TemplateRef<any>;
|
|
9
|
-
container: ViewContainerRef;
|
|
10
|
-
form?: NgForm;
|
|
11
|
-
models?: QueryList<NgModel>;
|
|
12
|
-
constructor(filter: FilterComponent | null);
|
|
13
|
-
reset(): void;
|
|
14
|
-
apply(): void;
|
|
15
|
-
clear(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterMenuComponent, [{ optional: true; }]>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterMenuComponent, "mz-filter-menu", ["mzFilterMenu"], {}, {}, ["form", "models"], ["*"], true, never>;
|
|
18
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
|
2
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
3
|
-
import { NgForm } from '@angular/forms';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FilterComponent {
|
|
6
|
-
label: string;
|
|
7
|
-
display: string;
|
|
8
|
-
menuTemplate: TemplateRef<unknown> | null;
|
|
9
|
-
clear: EventEmitter<void>;
|
|
10
|
-
apply: EventEmitter<any>;
|
|
11
|
-
protected menuForm?: NgForm;
|
|
12
|
-
protected menuTrigger?: CdkMenuTrigger;
|
|
13
|
-
close(): void;
|
|
14
|
-
protected clearFilter(): void;
|
|
15
|
-
protected applyFilter($event: Event): void;
|
|
16
|
-
protected get filterLabel(): string;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
18
|
-
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>;
|
|
19
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface CanDeactivateComponent {
|
|
2
|
-
canDeactivate(): boolean;
|
|
3
|
-
confirmDeactivation(): boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const hasImplementation: <T>(obj: any, func: keyof T) => obj is T;
|
|
6
|
-
export type ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';
|
|
7
|
-
/**
|
|
8
|
-
* Checks whether a modifier key is pressed.
|
|
9
|
-
* @param event Event to be checked.
|
|
10
|
-
*/
|
|
11
|
-
export declare function hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKey[]): boolean;
|