@delon/abc
Version:
Common business components of ng-alain.
24 lines (23 loc) • 1.32 kB
TypeScript
import { HttpResponse } from '@angular/common/http';
import { EventEmitter } from '@angular/core';
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
import * as i0 from "@angular/core";
export declare class DownFileDirective {
private readonly el;
private readonly _http;
httpData: NzSafeAny;
httpBody: NzSafeAny;
httpMethod: string;
httpUrl: string;
fileName?: string | ((rep: HttpResponse<Blob>) => string);
pre?: (ev: MouseEvent) => Promise<boolean>;
readonly success: EventEmitter<HttpResponse<Blob>>;
readonly error: EventEmitter<any>;
private getDisposition;
private isFileSaverSupported;
constructor();
private setDisabled;
_click(ev: MouseEvent): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<DownFileDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<DownFileDirective, "[down-file]", ["downFile"], { "httpData": { "alias": "http-data"; "required": false; }; "httpBody": { "alias": "http-body"; "required": false; }; "httpMethod": { "alias": "http-method"; "required": false; }; "httpUrl": { "alias": "http-url"; "required": true; }; "fileName": { "alias": "file-name"; "required": false; }; "pre": { "alias": "pre"; "required": false; }; }, { "success": "success"; "error": "error"; }, never, never, true, never>;
}