UNPKG

ng-zorro-antd-yj

Version:

An enterprise-class UI components based on Ant Design and Angular

616 lines 44.6 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import * as tslib_1 from "tslib"; import { DOCUMENT } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Inject, Injector, Input, Optional, Output, Renderer2, TemplateRef, Type, ViewChild, ViewContainerRef } from '@angular/core'; import { FocusTrapFactory } from '@angular/cdk/a11y'; import { Overlay, OverlayConfig } from '@angular/cdk/overlay'; import { CdkPortalOutlet, ComponentPortal, PortalInjector, TemplatePortal } from '@angular/cdk/portal'; import { Subject } from 'rxjs'; import { toCssPixel, InputBoolean } from '../core/util/convert'; import { NzDrawerRef } from './nz-drawer-ref'; /** @type {?} */ export var DRAWER_ANIMATE_DURATION = 300; /** * @template T, R, D */ var NzDrawerComponent = /** @class */ (function (_super) { tslib_1.__extends(NzDrawerComponent, _super); function NzDrawerComponent(document, renderer, overlay, injector, changeDetectorRef, focusTrapFactory, viewContainerRef) { var _this = _super.call(this) || this; _this.document = document; _this.renderer = renderer; _this.overlay = overlay; _this.injector = injector; _this.changeDetectorRef = changeDetectorRef; _this.focusTrapFactory = focusTrapFactory; _this.viewContainerRef = viewContainerRef; _this.nzClosable = true; _this.nzMaskClosable = true; _this.nzMask = true; _this.nzNoAnimation = false; _this.nzPlacement = 'right'; _this.nzMaskStyle = {}; _this.nzBodyStyle = {}; _this.nzWidth = 256; _this.nzHeight = 256; _this.nzZIndex = 1000; _this.nzOffsetX = 0; _this.nzOffsetY = 0; _this.nzOnViewInit = new EventEmitter(); _this.nzOnClose = new EventEmitter(); _this.isOpen = false; _this.templateContext = { $implicit: undefined, drawerRef: (/** @type {?} */ (_this)) }; _this.nzAfterOpen = new Subject(); _this.nzAfterClose = new Subject(); return _this; } Object.defineProperty(NzDrawerComponent.prototype, "nzVisible", { get: /** * @return {?} */ function () { return this.isOpen; }, set: /** * @param {?} value * @return {?} */ function (value) { this.isOpen = value; }, enumerable: true, configurable: true }); Object.defineProperty(NzDrawerComponent.prototype, "offsetTransform", { get: /** * @return {?} */ function () { if (!this.isOpen || this.nzOffsetX + this.nzOffsetY === 0) { return null; } switch (this.nzPlacement) { case 'left': return "translateX(" + this.nzOffsetX + "px)"; case 'right': return "translateX(-" + this.nzOffsetX + "px)"; case 'top': return "translateY(" + this.nzOffsetY + "px)"; case 'bottom': return "translateY(-" + this.nzOffsetY + "px)"; } }, enumerable: true, configurable: true }); Object.defineProperty(NzDrawerComponent.prototype, "transform", { get: /** * @return {?} */ function () { if (this.isOpen) { return null; } switch (this.nzPlacement) { case 'left': return "translateX(-100%)"; case 'right': return "translateX(100%)"; case 'top': return "translateY(-100%)"; case 'bottom': return "translateY(100%)"; } }, enumerable: true, configurable: true }); Object.defineProperty(NzDrawerComponent.prototype, "width", { get: /** * @return {?} */ function () { return this.isLeftOrRight ? toCssPixel(this.nzWidth) : null; }, enumerable: true, configurable: true }); Object.defineProperty(NzDrawerComponent.prototype, "height", { get: /** * @return {?} */ function () { return !this.isLeftOrRight ? toCssPixel(this.nzHeight) : null; }, enumerable: true, configurable: true }); Object.defineProperty(NzDrawerComponent.prototype, "isLeftOrRight", { get: /** * @return {?} */ function () { return this.nzPlacement === 'left' || this.nzPlacement === 'right'; }, enumerable: true, configurable: true }); Object.defineProperty(NzDrawerComponent.prototype, "afterOpen", { get: /** * @return {?} */ function () { return this.nzAfterOpen.asObservable(); }, enumerable: true, configurable: true }); Object.defineProperty(NzDrawerComponent.prototype, "afterClose", { get: /** * @return {?} */ function () { return this.nzAfterClose.asObservable(); }, enumerable: true, configurable: true }); /** * @param {?} value * @return {?} */ NzDrawerComponent.prototype.isTemplateRef = /** * @param {?} value * @return {?} */ function (value) { return value instanceof TemplateRef; }; /** * @return {?} */ NzDrawerComponent.prototype.ngOnInit = /** * @return {?} */ function () { this.attachOverlay(); this.updateOverlayStyle(); this.updateBodyOverflow(); this.templateContext = { $implicit: this.nzContentParams, drawerRef: (/** @type {?} */ (this)) }; this.changeDetectorRef.detectChanges(); }; /** * @return {?} */ NzDrawerComponent.prototype.ngAfterViewInit = /** * @return {?} */ function () { var _this = this; this.attachBodyContent(); setTimeout((/** * @return {?} */ function () { _this.nzOnViewInit.emit(); })); }; /** * @param {?} changes * @return {?} */ NzDrawerComponent.prototype.ngOnChanges = /** * @param {?} changes * @return {?} */ function (changes) { var _this = this; if (changes.hasOwnProperty('nzVisible')) { /** @type {?} */ var value = changes.nzVisible.currentValue; this.updateOverlayStyle(); if (value) { this.updateBodyOverflow(); this.savePreviouslyFocusedElement(); this.trapFocus(); } else { setTimeout((/** * @return {?} */ function () { _this.updateBodyOverflow(); _this.restoreFocus(); }), this.getAnimationDuration()); } } }; /** * @return {?} */ NzDrawerComponent.prototype.ngOnDestroy = /** * @return {?} */ function () { this.disposeOverlay(); }; /** * @private * @return {?} */ NzDrawerComponent.prototype.getAnimationDuration = /** * @private * @return {?} */ function () { return this.nzNoAnimation ? 0 : DRAWER_ANIMATE_DURATION; }; /** * @param {?=} result * @return {?} */ NzDrawerComponent.prototype.close = /** * @param {?=} result * @return {?} */ function (result) { var _this = this; this.isOpen = false; this.updateOverlayStyle(); this.changeDetectorRef.detectChanges(); setTimeout((/** * @return {?} */ function () { _this.updateBodyOverflow(); _this.restoreFocus(); _this.nzAfterClose.next(result); _this.nzAfterClose.complete(); }), this.getAnimationDuration()); }; /** * @return {?} */ NzDrawerComponent.prototype.open = /** * @return {?} */ function () { var _this = this; this.isOpen = true; this.updateOverlayStyle(); this.updateBodyOverflow(); this.savePreviouslyFocusedElement(); this.trapFocus(); this.changeDetectorRef.detectChanges(); setTimeout((/** * @return {?} */ function () { _this.nzAfterOpen.next(); }), this.getAnimationDuration()); }; /** * @return {?} */ NzDrawerComponent.prototype.closeClick = /** * @return {?} */ function () { this.nzOnClose.emit(); }; /** * @return {?} */ NzDrawerComponent.prototype.maskClick = /** * @return {?} */ function () { if (this.nzMaskClosable && this.nzMask) { this.nzOnClose.emit(); } }; /** * @private * @return {?} */ NzDrawerComponent.prototype.attachBodyContent = /** * @private * @return {?} */ function () { this.bodyPortalOutlet.dispose(); if (this.nzContent instanceof Type) { /** @type {?} */ var childInjector = new PortalInjector(this.injector, new WeakMap([[NzDrawerRef, this]])); /** @type {?} */ var componentPortal = new ComponentPortal(this.nzContent, null, childInjector); /** @type {?} */ var componentRef = this.bodyPortalOutlet.attachComponentPortal(componentPortal); Object.assign(componentRef.instance, this.nzContentParams); componentRef.changeDetectorRef.detectChanges(); } }; /** * @private * @return {?} */ NzDrawerComponent.prototype.attachOverlay = /** * @private * @return {?} */ function () { if (!this.overlayRef) { this.portal = new TemplatePortal(this.drawerTemplate, this.viewContainerRef); this.overlayRef = this.overlay.create(this.getOverlayConfig()); } if (this.overlayRef && !this.overlayRef.hasAttached()) { this.overlayRef.attach(this.portal); } }; /** * @private * @return {?} */ NzDrawerComponent.prototype.disposeOverlay = /** * @private * @return {?} */ function () { if (this.overlayRef) { this.overlayRef.dispose(); } this.overlayRef = null; }; /** * @private * @return {?} */ NzDrawerComponent.prototype.getOverlayConfig = /** * @private * @return {?} */ function () { return new OverlayConfig({ positionStrategy: this.overlay.position().global(), scrollStrategy: this.overlay.scrollStrategies.block() }); }; /** * @private * @return {?} */ NzDrawerComponent.prototype.updateOverlayStyle = /** * @private * @return {?} */ function () { if (this.overlayRef && this.overlayRef.overlayElement) { this.renderer.setStyle(this.overlayRef.overlayElement, 'pointer-events', this.isOpen ? 'auto' : 'none'); } }; /** * @private * @return {?} */ NzDrawerComponent.prototype.updateBodyOverflow = /** * @private * @return {?} */ function () { if (this.overlayRef) { if (this.isOpen) { (/** @type {?} */ (this.overlayRef.getConfig().scrollStrategy)).enable(); } else { (/** @type {?} */ (this.overlayRef.getConfig().scrollStrategy)).disable(); } } }; /** * @return {?} */ NzDrawerComponent.prototype.savePreviouslyFocusedElement = /** * @return {?} */ function () { if (this.document && !this.previouslyFocusedElement) { this.previouslyFocusedElement = (/** @type {?} */ (this.document.activeElement)); // We need the extra check, because IE's svg element has no blur method. if (this.previouslyFocusedElement && typeof this.previouslyFocusedElement.blur === 'function') { this.previouslyFocusedElement.blur(); } } }; /** * @private * @return {?} */ NzDrawerComponent.prototype.trapFocus = /** * @private * @return {?} */ function () { if (!this.focusTrap) { this.focusTrap = this.focusTrapFactory.create((/** @type {?} */ (this.overlayRef)).overlayElement); } this.focusTrap.focusInitialElement(); }; /** * @private * @return {?} */ NzDrawerComponent.prototype.restoreFocus = /** * @private * @return {?} */ function () { // We need the extra check, because IE can set the `activeElement` to null in some cases. if (this.previouslyFocusedElement && typeof this.previouslyFocusedElement.focus === 'function') { this.previouslyFocusedElement.focus(); } if (this.focusTrap) { this.focusTrap.destroy(); } }; NzDrawerComponent.decorators = [ { type: Component, args: [{ selector: 'nz-drawer', template: "<ng-template #drawerTemplate>\n <div\n class=\"ant-drawer\"\n [nzNoAnimation]=\"nzNoAnimation\"\n [class.ant-drawer-open]=\"isOpen\"\n [class.ant-drawer-top]=\"nzPlacement === 'top'\"\n [class.ant-drawer-bottom]=\"nzPlacement === 'bottom'\"\n [class.ant-drawer-right]=\"nzPlacement === 'right'\"\n [class.ant-drawer-left]=\"nzPlacement === 'left'\"\n [style.transform]=\"offsetTransform\">\n <div class=\"ant-drawer-mask\" (click)=\"maskClick()\" *ngIf=\"nzMask\" [style.zIndex]=\"nzZIndex\" [ngStyle]=\"nzMaskStyle\"></div>\n <div class=\"ant-drawer-content-wrapper {{ nzWrapClassName }}\"\n [style.zIndex]=\"nzZIndex\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.transform]=\"transform\">\n <div class=\"ant-drawer-content\">\n <div class=\"ant-drawer-wrapper-body\"\n [style.overflow]=\"isLeftOrRight ? 'auto' : null\"\n [style.height]=\"isLeftOrRight ? '100%' : null\">\n <div *ngIf=\"nzTitle\" class=\"ant-drawer-header\">\n <div class=\"ant-drawer-title\">\n <ng-container *nzStringTemplateOutlet=\"nzTitle\"><div [innerHTML]=\"nzTitle\"></div></ng-container>\n </div>\n </div>\n <button *ngIf=\"nzClosable\" (click)=\"closeClick()\" aria-label=\"Close\" class=\"ant-drawer-close\">\n <span class=\"ant-drawer-close-x\"><i nz-icon type=\"close\"></i></span>\n </button>\n <div class=\"ant-drawer-body\" [ngStyle]=\"nzBodyStyle\">\n <ng-template cdkPortalOutlet></ng-template>\n <ng-container *ngIf=\"isTemplateRef(nzContent)\">\n <ng-container *ngTemplateOutlet=\"nzContent; context: templateContext\"></ng-container>\n </ng-container>\n <ng-content *ngIf=\"!nzContent\"></ng-content>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>", preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush }] } ]; /** @nocollapse */ NzDrawerComponent.ctorParameters = function () { return [ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DOCUMENT,] }] }, { type: Renderer2 }, { type: Overlay }, { type: Injector }, { type: ChangeDetectorRef }, { type: FocusTrapFactory }, { type: ViewContainerRef } ]; }; NzDrawerComponent.propDecorators = { nzContent: [{ type: Input }], nzClosable: [{ type: Input }], nzMaskClosable: [{ type: Input }], nzMask: [{ type: Input }], nzNoAnimation: [{ type: Input }], nzTitle: [{ type: Input }], nzPlacement: [{ type: Input }], nzMaskStyle: [{ type: Input }], nzBodyStyle: [{ type: Input }], nzWrapClassName: [{ type: Input }], nzWidth: [{ type: Input }], nzHeight: [{ type: Input }], nzZIndex: [{ type: Input }], nzOffsetX: [{ type: Input }], nzOffsetY: [{ type: Input }], nzVisible: [{ type: Input }], nzOnViewInit: [{ type: Output }], nzOnClose: [{ type: Output }], drawerTemplate: [{ type: ViewChild, args: ['drawerTemplate',] }], contentTemplate: [{ type: ViewChild, args: ['contentTemplate',] }], bodyPortalOutlet: [{ type: ViewChild, args: [CdkPortalOutlet,] }] }; tslib_1.__decorate([ InputBoolean(), tslib_1.__metadata("design:type", Object) ], NzDrawerComponent.prototype, "nzClosable", void 0); tslib_1.__decorate([ InputBoolean(), tslib_1.__metadata("design:type", Object) ], NzDrawerComponent.prototype, "nzMaskClosable", void 0); tslib_1.__decorate([ InputBoolean(), tslib_1.__metadata("design:type", Object) ], NzDrawerComponent.prototype, "nzMask", void 0); tslib_1.__decorate([ InputBoolean(), tslib_1.__metadata("design:type", Object) ], NzDrawerComponent.prototype, "nzNoAnimation", void 0); return NzDrawerComponent; }(NzDrawerRef)); export { NzDrawerComponent }; if (false) { /** @type {?} */ NzDrawerComponent.prototype.nzContent; /** @type {?} */ NzDrawerComponent.prototype.nzClosable; /** @type {?} */ NzDrawerComponent.prototype.nzMaskClosable; /** @type {?} */ NzDrawerComponent.prototype.nzMask; /** @type {?} */ NzDrawerComponent.prototype.nzNoAnimation; /** @type {?} */ NzDrawerComponent.prototype.nzTitle; /** @type {?} */ NzDrawerComponent.prototype.nzPlacement; /** @type {?} */ NzDrawerComponent.prototype.nzMaskStyle; /** @type {?} */ NzDrawerComponent.prototype.nzBodyStyle; /** @type {?} */ NzDrawerComponent.prototype.nzWrapClassName; /** @type {?} */ NzDrawerComponent.prototype.nzWidth; /** @type {?} */ NzDrawerComponent.prototype.nzHeight; /** @type {?} */ NzDrawerComponent.prototype.nzZIndex; /** @type {?} */ NzDrawerComponent.prototype.nzOffsetX; /** @type {?} */ NzDrawerComponent.prototype.nzOffsetY; /** @type {?} */ NzDrawerComponent.prototype.nzOnViewInit; /** @type {?} */ NzDrawerComponent.prototype.nzOnClose; /** @type {?} */ NzDrawerComponent.prototype.drawerTemplate; /** @type {?} */ NzDrawerComponent.prototype.contentTemplate; /** @type {?} */ NzDrawerComponent.prototype.bodyPortalOutlet; /** @type {?} */ NzDrawerComponent.prototype.previouslyFocusedElement; /** @type {?} */ NzDrawerComponent.prototype.nzContentParams; /** @type {?} */ NzDrawerComponent.prototype.overlayRef; /** @type {?} */ NzDrawerComponent.prototype.portal; /** @type {?} */ NzDrawerComponent.prototype.focusTrap; /** @type {?} */ NzDrawerComponent.prototype.isOpen; /** @type {?} */ NzDrawerComponent.prototype.templateContext; /** @type {?} */ NzDrawerComponent.prototype.nzAfterOpen; /** @type {?} */ NzDrawerComponent.prototype.nzAfterClose; /** * @type {?} * @private */ NzDrawerComponent.prototype.document; /** * @type {?} * @private */ NzDrawerComponent.prototype.renderer; /** * @type {?} * @private */ NzDrawerComponent.prototype.overlay; /** * @type {?} * @private */ NzDrawerComponent.prototype.injector; /** * @type {?} * @private */ NzDrawerComponent.prototype.changeDetectorRef; /** * @type {?} * @private */ NzDrawerComponent.prototype.focusTrapFactory; /** * @type {?} * @private */ NzDrawerComponent.prototype.viewContainerRef; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnotZHJhd2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXpvcnJvLWFudGQteWovIiwic291cmNlcyI6WyJkcmF3ZXIvbnotZHJhd2VyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMzQyxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsWUFBWSxFQUNaLE1BQU0sRUFDTixRQUFRLEVBQ1IsS0FBSyxFQUlMLFFBQVEsRUFDUixNQUFNLEVBQ04sU0FBUyxFQUVULFdBQVcsRUFDWCxJQUFJLEVBQ0osU0FBUyxFQUNULGdCQUFnQixFQUNqQixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQWEsZ0JBQWdCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsT0FBTyxFQUFFLGFBQWEsRUFBYyxNQUFNLHNCQUFzQixDQUFDO0FBQzFFLE9BQU8sRUFBRSxlQUFlLEVBQUUsZUFBZSxFQUFFLGNBQWMsRUFBRS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