ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
16 lines (14 loc) • 5.43 kB
JavaScript
!function(n,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("ng-zorro-antd/core/animation"),require("ng-zorro-antd/core/no-animation"),require("ng-zorro-antd/tooltip"),require("@angular/cdk/overlay"),require("@angular/common"),require("ng-zorro-antd/core/outlet"),require("ng-zorro-antd/core/overlay")):"function"==typeof define&&define.amd?define("ng-zorro-antd/popover",["exports","@angular/core","ng-zorro-antd/core/animation","ng-zorro-antd/core/no-animation","ng-zorro-antd/tooltip","@angular/cdk/overlay","@angular/common","ng-zorro-antd/core/outlet","ng-zorro-antd/core/overlay"],o):o(((n=n||self)["ng-zorro-antd"]=n["ng-zorro-antd"]||{},n["ng-zorro-antd"].popover={}),n.ng.core,n["ng-zorro-antd"].core.animation,n["ng-zorro-antd"].core["no-animation"],n["ng-zorro-antd"].tooltip,n.ng.cdk.overlay,n.ng.common,n["ng-zorro-antd"].core.outlet,n["ng-zorro-antd"].core.overlay)}(this,(function(n,o,e,t,r,i,a,p,c){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var l=function(n,o){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var e in o)o.hasOwnProperty(e)&&(n[e]=o[e])})(n,o)};function s(n,o){function e(){this.constructor=n}l(n,o),n.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}var d=function(n){function e(o,e,t,r,i){var a=n.call(this,o,e,t,r,i)||this;return a.noAnimation=i,a.componentFactory=a.resolver.resolveComponentFactory(v),a}return s(e,n),e.decorators=[{type:o.Directive,args:[{selector:"[nz-popover]",exportAs:"nzPopover",host:{"[class.ant-popover-open]":"visible"}}]}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:o.ViewContainerRef},{type:o.ComponentFactoryResolver},{type:o.Renderer2},{type:t.NzNoAnimationDirective,decorators:[{type:o.Host},{type:o.Optional}]}]},e.propDecorators={specificTitle:[{type:o.Input,args:["nzPopoverTitle"]}],specificContent:[{type:o.Input,args:["nzPopoverContent"]}],directiveNameTitle:[{type:o.Input,args:["nz-popover"]}],specificTrigger:[{type:o.Input,args:["nzPopoverTrigger"]}],specificPlacement:[{type:o.Input,args:["nzPopoverPlacement"]}],specificOrigin:[{type:o.Input,args:["nzPopoverOrigin"]}]},e}(r.NzTooltipBaseDirective);var v=function(n){function i(o,e){var t=n.call(this,o,e)||this;return t.noAnimation=e,t._prefix="ant-popover-placement",t}return s(i,n),i.prototype.isEmpty=function(){return r.isTooltipEmpty(this.nzTitle)&&r.isTooltipEmpty(this.nzContent)},i.decorators=[{type:o.Component,args:[{selector:"nz-popover",exportAs:"nzPopoverComponent",animations:[e.zoomBigMotion],changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,preserveWhitespaces:!1,template:'\n <ng-template\n #overlay="cdkConnectedOverlay"\n cdkConnectedOverlay\n nzConnectedOverlay\n [cdkConnectedOverlayOrigin]="origin"\n [cdkConnectedOverlayHasBackdrop]="_hasBackdrop"\n (backdropClick)="hide()"\n (detach)="hide()"\n (positionChange)="onPositionChange($event)"\n [cdkConnectedOverlayPositions]="_positions"\n [cdkConnectedOverlayOpen]="_visible"\n >\n <div\n class="ant-popover"\n [ngClass]="_classMap"\n [ngStyle]="nzOverlayStyle"\n [@.disabled]="noAnimation?.nzNoAnimation"\n [nzNoAnimation]="noAnimation?.nzNoAnimation"\n [@zoomBigMotion]="\'active\'"\n >\n <div class="ant-popover-content">\n <div class="ant-popover-arrow"></div>\n <div class="ant-popover-inner" role="tooltip">\n <div>\n <div class="ant-popover-title" *ngIf="nzTitle">\n <ng-container *nzStringTemplateOutlet="nzTitle">{{ nzTitle }}</ng-container>\n </div>\n <div class="ant-popover-inner-content">\n <ng-container *nzStringTemplateOutlet="nzContent">{{ nzContent }}</ng-container>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n '}]}],i.ctorParameters=function(){return[{type:o.ChangeDetectorRef},{type:t.NzNoAnimationDirective,decorators:[{type:o.Host},{type:o.Optional}]}]},i}(r.NzToolTipComponent);var u=function(){function n(){}return n.decorators=[{type:o.NgModule,args:[{exports:[d,v],entryComponents:[v],declarations:[d,v],imports:[a.CommonModule,i.OverlayModule,p.NzOutletModule,c.NzOverlayModule,t.NzNoAnimationModule,r.NzToolTipModule]}]}],n}();n.NzPopoverComponent=v,n.NzPopoverDirective=d,n.NzPopoverModule=u,Object.defineProperty(n,"__esModule",{value:!0})}));
//# sourceMappingURL=ng-zorro-antd-popover.umd.min.js.map