@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.
@@ -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, Type, ViewContainerRef } from "@angular/core";
5
+ import { Injector, ViewContainerRef } from "@angular/core";
6
6
  /**
7
- * Configuration opening a modal dialog with the MzDialog service. Properties here are exposes what's available in @angular/cdk DialogConfig
8
- * and with a few additional properties for MzDialog.
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 MzDialogConfig<D = any, C extends BasePortalOutlet = BasePortalOutlet> {
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,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MzDrawerContent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerContent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<MzDrawerContent, "mz-drawer-content", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MzDrawerFooter {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MzDrawerFooter, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<MzDrawerFooter, "mz-drawer-footer", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -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 { MzDialogConfig } from "./dialog-config";
2
+ import { MzDrawerConfig } from "./drawer-config";
3
3
  import { BasePortalOutlet } from "@angular/cdk/portal";
4
4
  import { Observable } from "rxjs";
5
- export declare class MzDialogRef<R, C = any> {
5
+ export declare class MzDrawerRef<R, C = any> {
6
6
  readonly cdkRef: DialogRef<R, C>;
7
- readonly config: MzDialogConfig;
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: MzDialogConfig, containerInstance: BasePortalOutlet);
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 { MzDialogConfig } from './dialog-config';
4
- import { MzDialogRef } from './dialog-ref';
3
+ import { MzDrawerConfig } from './drawer-config';
4
+ import { MzDrawerRef } from './drawer-ref';
5
5
  import * as i0 from "@angular/core";
6
- export declare class MzDialog implements OnDestroy {
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: MzDialogConfig, viewContainerRef?: (ViewContainerRef | null) | undefined);
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?: MzDialogConfig<D>): MzDialogRef<R, T>;
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?: MzDialogConfig<D>): MzDialogRef<R, T>;
28
- open<R = any, D = any, T = any>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: MzDialogConfig<D>): MzDialogRef<R, T>;
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(): MzDialogRef<any>[];
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<MzDialog, [null, null, { optional: true; }, { optional: true; }]>;
38
- static ɵprov: i0.ɵɵInjectableDeclaration<MzDialog>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muziehdesign/components",
3
- "version": "19.2.8-beta.2539",
3
+ "version": "19.2.8-beta.2551",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.8",
6
6
  "@angular/core": "^19.2.8",
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 { MzDialog } from './lib/dialog/mz-dialog.service';
31
- export { MzDialogConfig } from './lib/dialog/dialog-config';
32
- export { MzDialogRef } from './lib/dialog/dialog-ref';
33
- export { DrawerContainerComponent } from './lib/dialog/container/drawer-container.component';
34
- export { MzDialogModule } from './lib/dialog/dialog.module';
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';
@@ -1,14 +1,14 @@
1
1
  @layer base {
2
2
  h1 {
3
- @apply text-2xl font-medium mt-8;
3
+ @apply text-2xl font-medium;
4
4
  }
5
5
 
6
6
  h2 {
7
- @apply text-xl font-medium mt-8;
7
+ @apply text-xl font-medium;
8
8
  }
9
9
 
10
10
  h3 {
11
- @apply text-lg font-medium mt-8;
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 mt-5;
19
+ @apply text-sm font-semibold;
20
20
  }
21
21
 
22
22
  h6 {
23
- @apply text-sm font-semibold mt-5;
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-blue-500 hover:text-blue-900 hover:underline;
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
@@ -88,4 +88,12 @@ $color: (
88
88
  disabled: var(--color-neutral-400)
89
89
  //link: var(--text-link)
90
90
  ),
91
+ );
92
+
93
+ $breakpoints: (
94
+ sm: 640px,
95
+ md: 768px,
96
+ lg: 1024px,
97
+ xl: 1280px,
98
+ '2xl': 1536px
91
99
  );
@@ -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
- }