@muziehdesign/components 19.2.8-beta.2539 → 19.2.8-beta.2551
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 +91 -51
- package/fesm2022/muziehdesign-components.mjs.map +1 -1
- package/lib/drawer/container/drawer-container.component.d.ts +22 -0
- package/lib/{dialog/dialog-config.d.ts → drawer/drawer-config.d.ts} +4 -11
- package/lib/drawer/drawer-content/drawer-content.component.d.ts +5 -0
- package/lib/drawer/drawer-footer/drawer-footer.component.d.ts +5 -0
- package/lib/drawer/drawer-header/drawer-header.component.d.ts +11 -0
- package/lib/drawer/drawer-injectors.d.ts +5 -0
- package/lib/{dialog/dialog-ref.d.ts → drawer/drawer-ref.d.ts} +4 -4
- package/lib/{dialog/mz-dialog.service.d.ts → drawer/drawer.d.ts} +10 -10
- package/lib/drawer/drawer.module.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +8 -5
- package/styles/design/_base.scss +7 -7
- package/styles/mixins/_utilities.scss +12 -0
- package/styles/theme.scss +8 -0
- package/lib/dialog/container/drawer-container.component.d.ts +0 -25
- package/lib/dialog/dialog-injectors.d.ts +0 -5
- package/lib/dialog/dialog.module.d.ts +0 -10
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -2,14 +2,13 @@ import { Direction } from "@angular/cdk/bidi";
|
|
|
2
2
|
import { AutoFocusTarget, DialogRole } from "@angular/cdk/dialog";
|
|
3
3
|
import { PositionStrategy, ScrollStrategy } from "@angular/cdk/overlay";
|
|
4
4
|
import { BasePortalOutlet } from "@angular/cdk/portal";
|
|
5
|
-
import { Injector,
|
|
5
|
+
import { Injector, ViewContainerRef } from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* Configuration opening a modal dialog with the
|
|
8
|
-
* and with a few additional properties for
|
|
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
9
|
* See https://material.angular.io/cdk/dialog/api#DialogConfig
|
|
10
10
|
*/
|
|
11
|
-
export declare class
|
|
12
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
export declare class MzDrawerConfig<D = any, C extends BasePortalOutlet = BasePortalOutlet> {
|
|
13
12
|
/**
|
|
14
13
|
* Where the attached component should live in Angular's *logical* component tree.
|
|
15
14
|
* This affects what is available for injection and the change detection order for the
|
|
@@ -84,10 +83,4 @@ export declare class MzDialogConfig<D = any, C extends BasePortalOutlet = BasePo
|
|
|
84
83
|
* Whether the dialog should close when the user goes backwards/forwards in history.
|
|
85
84
|
*/
|
|
86
85
|
closeOnNavigation?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Component into which the dialog content will be rendered. Defaults to `CdkDialogContainer`.
|
|
89
|
-
* A configuration object can be passed in to customize the providers that will be exposed
|
|
90
|
-
* to the dialog container.
|
|
91
|
-
*/
|
|
92
|
-
container?: Type<C>;
|
|
93
86
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
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,15 +1,15 @@
|
|
|
1
1
|
import { DialogCloseOptions, DialogRef } from "@angular/cdk/dialog";
|
|
2
|
-
import {
|
|
2
|
+
import { MzDrawerConfig } from "./drawer-config";
|
|
3
3
|
import { BasePortalOutlet } from "@angular/cdk/portal";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class MzDrawerRef<R, C = any> {
|
|
6
6
|
readonly cdkRef: DialogRef<R, C>;
|
|
7
|
-
readonly config:
|
|
7
|
+
readonly config: MzDrawerConfig;
|
|
8
8
|
readonly containerInstance: BasePortalOutlet;
|
|
9
9
|
/** Whether the user is allowed to close the dialog. */
|
|
10
10
|
readonly disableClose: boolean | undefined;
|
|
11
11
|
readonly id: string;
|
|
12
|
-
constructor(cdkRef: DialogRef<R, C>, config:
|
|
12
|
+
constructor(cdkRef: DialogRef<R, C>, config: MzDrawerConfig, containerInstance: BasePortalOutlet);
|
|
13
13
|
get componentInstance(): C | null;
|
|
14
14
|
get closed(): Observable<R | undefined>;
|
|
15
15
|
/**
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { ComponentType, Overlay } from '@angular/cdk/overlay';
|
|
2
2
|
import { Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { MzDrawerConfig } from './drawer-config';
|
|
4
|
+
import { MzDrawerRef } from './drawer-ref';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class MzDrawer implements OnDestroy {
|
|
7
7
|
private injector;
|
|
8
8
|
private overlay;
|
|
9
9
|
private configuredOptions;
|
|
10
10
|
private viewContainerRef?;
|
|
11
11
|
private cdkDialog;
|
|
12
12
|
private openDialogs;
|
|
13
|
-
constructor(injector: Injector, overlay: Overlay, configuredOptions:
|
|
13
|
+
constructor(injector: Injector, overlay: Overlay, configuredOptions: MzDrawerConfig, viewContainerRef?: (ViewContainerRef | null) | undefined);
|
|
14
14
|
/**
|
|
15
15
|
* Opens a modal dialog containing the given component.
|
|
16
16
|
* @param component Type of the component to load into the dialog.
|
|
17
17
|
* @param config Extra configuration options.
|
|
18
18
|
* @returns Reference to the newly-opened dialog.
|
|
19
19
|
*/
|
|
20
|
-
open<R = any, D = any, T = any>(component: ComponentType<T>, config?:
|
|
20
|
+
open<R = any, D = any, T = any>(component: ComponentType<T>, config?: MzDrawerConfig<D>): MzDrawerRef<R, T>;
|
|
21
21
|
/**
|
|
22
22
|
* Opens a modal dialog containing the given template.
|
|
23
23
|
* @param template TemplateRef to instantiate as the dialog content.
|
|
24
24
|
* @param config Extra configuration options.
|
|
25
25
|
* @returns Reference to the newly-opened dialog.
|
|
26
26
|
*/
|
|
27
|
-
open<R = any, D = any, T = any>(template: TemplateRef<T>, config?:
|
|
28
|
-
open<R = any, D = any, T = any>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?:
|
|
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
29
|
/**
|
|
30
30
|
* Gets an array of currently opened dialogs that were opened with this instance of service.
|
|
31
31
|
*/
|
|
32
|
-
getDialogs():
|
|
32
|
+
getDialogs(): MzDrawerRef<any>[];
|
|
33
33
|
confirmDeactivation(): boolean;
|
|
34
34
|
closeAll(): void;
|
|
35
35
|
ngOnDestroy(): void;
|
|
36
36
|
private closeDialogs;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
38
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawer, [null, null, { optional: true; }, { optional: true; }]>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MzDrawer>;
|
|
39
39
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -27,11 +27,14 @@ export { ButtonDirective } from './lib/button.directive';
|
|
|
27
27
|
export { SortEvent } from './lib/models/sort-event';
|
|
28
28
|
export { WizardStepLink } from './lib/models/wizard-step-link';
|
|
29
29
|
export { WizardProgressTrackerComponent } from './lib/wizard-progress-tracker/wizard-progress-tracker.component';
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
30
|
+
export { MzDrawer } from './lib/drawer/drawer';
|
|
31
|
+
export { MzDrawerConfig } from './lib/drawer/drawer-config';
|
|
32
|
+
export { MzDrawerRef } from './lib/drawer/drawer-ref';
|
|
33
|
+
export { MzDrawerContainer } from './lib/drawer/container/drawer-container.component';
|
|
34
|
+
export { MzDrawerModule } from './lib/drawer/drawer.module';
|
|
35
|
+
export { MzDrawerHeader } from './lib/drawer/drawer-header/drawer-header.component';
|
|
36
|
+
export { MzDrawerContent } from './lib/drawer/drawer-content/drawer-content.component';
|
|
37
|
+
export { MzDrawerFooter } from './lib/drawer/drawer-footer/drawer-footer.component';
|
|
35
38
|
export { FilterComponent } from './lib/filter/filter.component';
|
|
36
39
|
export { FilterOptionModel } from './lib/filter/filter-option.model';
|
|
37
40
|
export { OptionsFilterComponent } from './lib/options-filter/options-filter.component';
|
package/styles/design/_base.scss
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@layer base {
|
|
2
2
|
h1 {
|
|
3
|
-
@apply text-2xl font-medium
|
|
3
|
+
@apply text-2xl font-medium;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
h2 {
|
|
7
|
-
@apply text-xl font-medium
|
|
7
|
+
@apply text-xl font-medium;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
h3 {
|
|
11
|
-
@apply text-lg font-medium
|
|
11
|
+
@apply text-lg font-medium;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
h4 {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
h5 {
|
|
19
|
-
@apply text-sm font-semibold
|
|
19
|
+
@apply text-sm font-semibold;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
h6 {
|
|
23
|
-
@apply text-sm font-semibold
|
|
23
|
+
@apply text-sm font-semibold;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
h1,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
a {
|
|
36
|
-
@apply text-
|
|
36
|
+
@apply text-primary hover:underline;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
p {
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
strong {
|
|
52
52
|
@apply font-medium;
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|
|
@@ -103,3 +103,15 @@
|
|
|
103
103
|
@include py($i);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
+
|
|
107
|
+
@mixin respond($breakpoint) {
|
|
108
|
+
$size: map-get($breakpoints, $breakpoint);
|
|
109
|
+
|
|
110
|
+
@if $size {
|
|
111
|
+
@media (min-width: #{$size}) {
|
|
112
|
+
@content;
|
|
113
|
+
}
|
|
114
|
+
} @else {
|
|
115
|
+
@warn "No value found for breakpoint: #{$breakpoint}";
|
|
116
|
+
}
|
|
117
|
+
}
|
package/styles/theme.scss
CHANGED
|
@@ -1,25 +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 { MzDialogConfig } from '../dialog-config';
|
|
6
|
-
import { MzDialogRef } from '../dialog-ref';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DrawerContainerComponent extends CdkDialogContainer<MzDialogConfig> {
|
|
9
|
-
readonly dialogConfig: MzDialogConfig;
|
|
10
|
-
protected interactivityChecker: InteractivityChecker;
|
|
11
|
-
protected ngZone: NgZone;
|
|
12
|
-
protected overlayRef: OverlayRef;
|
|
13
|
-
private dialogRef?;
|
|
14
|
-
protected open: boolean;
|
|
15
|
-
constructor(elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, dialogConfig: MzDialogConfig, interactivityChecker: InteractivityChecker, ngZone: NgZone, overlayRef: OverlayRef, _document: any);
|
|
16
|
-
associateDialogRef(dialogRef: MzDialogRef<any>): void;
|
|
17
|
-
protected tryClose(e: UIEvent): void;
|
|
18
|
-
onBeforeUnload(event: BeforeUnloadEvent): void;
|
|
19
|
-
/**
|
|
20
|
-
* Marks state of container for animation purposes.
|
|
21
|
-
*/
|
|
22
|
-
enter(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerContainerComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerContainerComponent, "mz-drawer-container", never, {}, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import { MzDialogConfig } from "./dialog-config";
|
|
3
|
-
/** Injection token that can be used to provide default options for the dialog module. */
|
|
4
|
-
export declare const DEFAULT_MZ_DIALOG_CONFIG: InjectionToken<MzDialogConfig<any, import("@angular/cdk/portal-directives.d-C698lRc2").BasePortalOutlet>>;
|
|
5
|
-
export declare const MZ_DIALOG_DATA: InjectionToken<any>;
|
|
@@ -1,10 +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
|
-
export declare class MzDialogModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MzDialogModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MzDialogModule, never, [typeof i1.DialogModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.DrawerContainerComponent], [typeof i1.DialogModule, typeof i4.DrawerContainerComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MzDialogModule>;
|
|
10
|
-
}
|