drawer.service.d.ts 1.1 KB

1234567891011121314151617181920212223242526
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { Overlay } from '@angular/cdk/overlay';
  6. import { NzSafeAny } from 'ng-zorro-antd/core/types';
  7. import { NzDrawerOptions, NzDrawerOptionsOfComponent } from './drawer-options';
  8. import { NzDrawerRef } from './drawer-ref';
  9. import * as i0 from "@angular/core";
  10. export declare class DrawerBuilderForService<T extends {}, R> {
  11. private overlay;
  12. private options;
  13. private drawerRef;
  14. private overlayRef;
  15. private unsubscribe$;
  16. constructor(overlay: Overlay, options: NzDrawerOptions);
  17. getInstance(): NzDrawerRef<T, R>;
  18. updateOptions(options: NzDrawerOptionsOfComponent): void;
  19. }
  20. export declare class NzDrawerService {
  21. private overlay;
  22. constructor(overlay: Overlay);
  23. create<T extends {} = NzSafeAny, D = undefined, R = NzSafeAny>(options: NzDrawerOptions<T, D extends undefined ? {} : D>): NzDrawerRef<T, R>;
  24. static ɵfac: i0.ɵɵFactoryDeclaration<NzDrawerService, never>;
  25. static ɵprov: i0.ɵɵInjectableDeclaration<NzDrawerService>;
  26. }