@paperless/angular 0.1.0-alpha.284 → 0.1.0-alpha.286

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.
@@ -1,6 +1,7 @@
1
1
  import { OverlayRef as CDKOverlayRef } from '@angular/cdk/overlay';
2
- export declare class OverlayRef {
2
+ export declare class OverlayRef<T> {
3
3
  private _overlay;
4
+ instance: T;
4
5
  constructor(_overlay: CDKOverlayRef);
5
6
  close(): void;
6
7
  }
@@ -4,18 +4,20 @@ import { Injector, StaticProvider } from '@angular/core';
4
4
  import { OverlayRef } from '../overlay.ref';
5
5
  import * as i0 from "@angular/core";
6
6
  interface ModalOptions {
7
+ data?: any;
7
8
  providers?: StaticProvider[];
8
9
  }
9
10
  export declare class OverlayService {
10
11
  private injector;
11
12
  private overlay;
12
- overlayRef: OverlayRef;
13
+ overlayRef: OverlayRef<any>;
13
14
  constructor(injector: Injector, overlay: Overlay);
14
- open<T>(component: ComponentType<T> | CdkPortal, options?: ModalOptions): OverlayRef;
15
- private attachModalContainer;
16
- private createInjector;
17
- private getOverlayConfig;
18
- private createOverlay;
15
+ open<T>(component: ComponentType<T> | CdkPortal, options?: ModalOptions): OverlayRef<T>;
16
+ private _attachModalContainer;
17
+ private _createInjector;
18
+ private _getOverlayConfig;
19
+ private _createOverlay;
20
+ private _attachData;
19
21
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayService, never>;
20
22
  static ɵprov: i0.ɵɵInjectableDeclaration<OverlayService>;
21
23
  }
@@ -117,7 +117,10 @@ export declare interface PDrawer extends Components.PDrawer {
117
117
  /**
118
118
  * Close click event
119
119
  */
120
- closeClicked: EventEmitter<CustomEvent<MouseEvent>>;
120
+ closeClicked: EventEmitter<CustomEvent<{
121
+ event: MouseEvent;
122
+ canClose: boolean;
123
+ }>>;
121
124
  /**
122
125
  * Closed event
123
126
  */
@@ -128,7 +131,7 @@ export declare class PDrawer {
128
131
  protected el: HTMLElement;
129
132
  constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
130
133
  static ɵfac: i0.ɵɵFactoryDeclaration<PDrawer, never>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<PDrawer, "p-drawer", never, { "applyBlur": "applyBlur"; "backdropClickClose": "backdropClickClose"; "header": "header"; "show": "show"; "showClose": "showClose"; }, {}, never, ["*"], false, never>;
134
+ static ɵcmp: i0.ɵɵComponentDeclaration<PDrawer, "p-drawer", never, { "applyBlur": "applyBlur"; "backdropClickClose": "backdropClickClose"; "canClose": "canClose"; "header": "header"; "show": "show"; "showClose": "showClose"; }, {}, never, ["*"], false, never>;
132
135
  }
133
136
  export declare interface PDrawerBody extends Components.PDrawerBody {
134
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/angular",
3
- "version": "0.1.0-alpha.284",
3
+ "version": "0.1.0-alpha.286",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^13.3.0 || ^14.0.0 || ^15.0.0",
6
6
  "@angular/common": "^13.3.0 || ^14.0.0 || ^15.0.0",