UNPKG

@lxlib/seed

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.

16 lines (14 loc) 3.88 kB
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/common"),require("@angular/core"),require("@lxlib/util"),require("@lxlib/seed/error-collect"),require("ng-zorro-antd/core/outlet")):"function"==typeof define&&define.amd?define("@lxlib/seed/footer-toolbar",["exports","@angular/common","@angular/core","@lxlib/util","@lxlib/seed/error-collect","ng-zorro-antd/core/outlet"],o):o(((e=e||self).lxlib=e.lxlib||{},e.lxlib.seed=e.lxlib.seed||{},e.lxlib.seed["footer-toolbar"]={}),e.ng.common,e.ng.core,e.lxlib.util,e.lxlib.seed["error-collect"],e["ng-zorro-antd/core/outlet"])}(this,(function(e,o,t,r,n,l){"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. ***************************************************************************** */function c(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function i(e,o){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,n,l=t.call(e),c=[];try{for(;(void 0===o||o-- >0)&&!(r=l.next()).done;)c.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}return c}function a(){for(var e=[],o=0;o<arguments.length;o++)e=e.concat(i(arguments[o]));return e}var u=function(){function e(e,o,t){this.el=e,this.renderer=o,this.doc=t,this.errorCollect=!1}return Object.defineProperty(e.prototype,"bodyCls",{get:function(){return this.doc.querySelector("body").classList},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.addClass(this.el.nativeElement,"footer-toolbar"),this.bodyCls.add("footer-toolbar__body")},e.prototype.ngOnDestroy=function(){this.bodyCls.remove("footer-toolbar__body")},e.decorators=[{type:t.Component,args:[{selector:"footer-toolbar",exportAs:"footerToolbar",template:'<div class="footer-toolbar__left">\n <ng-container *nzStringTemplateOutlet="extra">{{ extra }}</ng-container>\n</div>\n<div class="footer-toolbar__right">\n <error-collect *ngIf="errorCollect"></error-collect>\n <ng-content></ng-content>\n</div>\n',preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:void 0,decorators:[{type:t.Inject,args:[o.DOCUMENT]}]}]},e.propDecorators={errorCollect:[{type:t.Input}],extra:[{type:t.Input}]},function(e,o,t,r){var n,l=arguments.length,c=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,o,t,r);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(c=(l<3?n(c):l>3?n(o,t,c):n(o,t))||c);l>3&&c&&Object.defineProperty(o,t,c)}([r.InputBoolean(),c("design:type",Object)],e.prototype,"errorCollect",void 0),e}();var f=[u],d=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[o.CommonModule,n.ErrorCollectModule,r.LxlibUtilModule,l.NzOutletModule],declarations:a(f),exports:a(f)}]}],e}();e.FooterToolbarComponent=u,e.FooterToolbarModule=d,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=footerToolbar.umd.min.js.map