@lxlib/seed
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.
16 lines (14 loc) • 4.6 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/router"),require("@lxlib/theme"),require("@lxlib/util"),require("@angular/common")):"function"==typeof define&&define.amd?define("@lxlib/seed/global-footer",["exports","@angular/core","@angular/platform-browser","@angular/router","@lxlib/theme","@lxlib/util","@angular/common"],t):t(((e=e||self).lxlib=e.lxlib||{},e.lxlib.seed=e.lxlib.seed||{},e.lxlib.seed["global-footer"]={}),e.ng.core,e.ng.platformBrowser,e.ng.router,e.lxlib.theme,e.lxlib.util,e.ng.common)}(this,(function(e,t,o,n,r,l,i){"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 a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,l=o.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=l.next()).done;)i.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return i}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}var u=function(){function e(){}return e.decorators=[{type:t.Component,args:[{selector:"global-footer-item",exportAs:"globalFooterItem",template:" <ng-template #host><ng-content></ng-content></ng-template> ",preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None}]}],e.propDecorators={host:[{type:t.ViewChild,args:["host",{static:!0}]}],href:[{type:t.Input}],blankTarget:[{type:t.Input}]},function(e,t,o,n){var r,l=arguments.length,i=l<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(i=(l<3?r(i):l>3?r(t,o,i):r(t,o))||i);l>3&&i&&Object.defineProperty(t,o,i)}([l.InputBoolean(),a("design:type",Boolean)],e.prototype,"blankTarget",void 0),e}();var f=function(){function e(e,t,o){this.router=e,this.win=t,this.dom=o,this._links=[]}return Object.defineProperty(e.prototype,"links",{get:function(){return this._links},set:function(e){var t=this;e.forEach((function(e){return e._title=t.dom.bypassSecurityTrustHtml(e.title)})),this._links=e},enumerable:!0,configurable:!0}),e.prototype.to=function(e){e.href&&(e.blankTarget?this.win.open(e.href):/^https?:\/\//.test(e.href)?this.win.location.href=e.href:this.router.navigateByUrl(e.href))},e.decorators=[{type:t.Component,args:[{selector:"global-footer",exportAs:"globalFooter",template:'<div *ngIf="links.length > 0 || items.length > 0" class="global-footer__links">\n <a *ngFor="let i of links" class="global-footer__links-item" (click)="to(i)" [innerHTML]="i._title"></a>\n <a *ngFor="let i of items" class="global-footer__links-item" (click)="to(i)">\n <ng-container *ngTemplateOutlet="i.host"></ng-container>\n </a>\n</div>\n<div class="global-footer__copyright">\n <ng-content></ng-content>\n</div>\n',host:{"[class.global-footer]":"true"},preserveWhitespaces:!1,changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[{type:n.Router},{type:Window,decorators:[{type:t.Inject,args:[r.WINDOW]}]},{type:o.DomSanitizer}]},e.propDecorators={links:[{type:t.Input}],items:[{type:t.ContentChildren,args:[u]}]},e}();var p=[f,u],g=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[i.CommonModule,n.RouterModule,l.LxlibUtilModule],declarations:c(p),exports:c(p)}]}],e}();e.GlobalFooterComponent=f,e.GlobalFooterItemComponent=u,e.GlobalFooterModule=g,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=globalFooter.umd.min.js.map