@stratio/egeo
Version:
15 lines (13 loc) • 299 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("rxjs"),require("@angular/animations"),require("lodash"),require("rxjs/operators"),require("@angular/forms"),require("@angular/common/http"),require("prismjs"),require("prismjs/components/prism-typescript"),require("@angular/platform-browser"),require("@angular/router"),require("ngx-virtual-scroller")):"function"==typeof define&&define.amd?define("@stratio/egeo",["exports","@angular/common","@angular/core","rxjs","@angular/animations","lodash","rxjs/operators","@angular/forms","@angular/common/http","prismjs","prismjs/components/prism-typescript","@angular/platform-browser","@angular/router","ngx-virtual-scroller"],e):e(((t=t||self).stratio=t.stratio||{},t.stratio.egeo={}),t.ng.common,t.ng.core,t.rxjs,t.ng.animations,t._,t.rxjs.operators,t.ng.forms,t.ng.common.http,t.prismjs,null,t.ng.platformBrowser,t.ng.router,t.vscroller)}(this,(function(t,e,n,i,o,s,r,a,l,c,u,p,h,d){"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 m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function f(t,e){function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var g=function(){return(g=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function y(t,e,n,i){var o,s=arguments.length,r=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(e,n,r):o(e,n))||r);return s>3&&r&&Object.defineProperty(e,n,r),r}function b(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function v(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function I(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,s=n.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return r}function S(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(I(arguments[e]));return t}var w={SUCCESS:0,WARNING:1,ERROR:2,INFO:3};w[w.SUCCESS]="SUCCESS",w[w.WARNING]="WARNING",w[w.ERROR]="ERROR",w[w.INFO]="INFO";var C=function(){};var T=function(){function t(t,e,n,o,s,r,a){this.id=t,this.title=e,this.message=n,this.severity=o,this.timeout=s,this.extendedTimeout=r,this.link=a,this._readed=!1,this._opacity=0,this._opacityState=new i.Subject,this._removeEvent=new i.Subject}return Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacityState.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeAlertEvent",{get:function(){return this._removeEvent.asObservable()},enumerable:!0,configurable:!0}),t.prototype.notify=function(){this.setVisible(!0)},t.prototype.pauseNotify=function(){this._opacity=1,this._readed=!0,this.clearAnimation(),this.stopLife(),this._opacityState.next(this._opacity)},t.prototype.continueNotify=function(){this.startLife()},t.prototype.cancel=function(){this.setVisible(!1)},t.prototype.setVisible=function(t){var e=this;this.clearAnimation(),this._changeVisibilityInterval=window.setInterval((function(){return e.modifyVisibility(t)}),50)},t.prototype.modifyVisibility=function(t){this._opacity+=t?.1:-.1,(this._opacity>=1||this._opacity<=0)&&(this.clearAnimation(),t?this.startLife():this.notifyForRemove()),this._opacityState.next(this._opacity)},t.prototype.notifyForRemove=function(){this._opacityState.complete(),this._removeEvent.next(this),this._removeEvent.complete()},t.prototype.clearAnimation=function(){window.clearInterval(this._changeVisibilityInterval)},t.prototype.stopLife=function(){window.clearTimeout(this._lifeTimeout)},t.prototype.startLife=function(){var t=this,e=this._readed?this.extendedTimeout:this.timeout;this._lifeTimeout=window.setTimeout((function(){return t.setVisible(!1)}),e)},t}();var _=function(){function t(){this._alertsList=[],this._nextId=0,this._alertsStream=new i.BehaviorSubject([])}return Object.defineProperty(t.prototype,"alertList",{get:function(){return this._alertsStream.asObservable()},enumerable:!0,configurable:!0}),t.prototype.notifyAlert=function(t,e,n,i,o,s){var r=this;o=void 0!==o?o:5e3,s=void 0!==s?s:4e3;var a=new T(this._nextId,t,e,n,o,s,i);a.removeAlertEvent.subscribe((function(t){return r.onNotifyRemove(t)})),this.insertAlert(a),this._nextId++},t.prototype.insertAlert=function(t){this._alertsList.push(t),this._alertsStream.next(this._alertsList)},t.prototype.onNotifyRemove=function(t){var e=this._alertsList.findIndex((function(e){return e.id===t.id}));this._alertsList.splice(e,1),this._alertsStream.next(this._alertsList)},t.decorators=[{type:n.Injectable}],t}();var x={YES:0,NO:1,CLOSE:2};x[x.YES]="YES",x[x.NO]="NO",x[x.CLOSE]="CLOSE";var A={DELETE:0,CONFIRM:1,INFO:2,WARNING:3};A[A.DELETE]="DELETE",A[A.CONFIRM]="CONFIRM",A[A.INFO]="INFO",A[A.WARNING]="WARNING";var O=function(){};var E=function(){};var k=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return window},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Injectable}],t}(),L=function(){function t(t,e){this.cfr=t,this.windowRef=e,this.disabledAnimation=!0,this.click=new n.EventEmitter,this.endAnimation=new n.EventEmitter,this.defaultMaxWidth=600,this.defaultMinWidth=400,this.visibility="visible",this._subscriptions=[]}return Object.defineProperty(t.prototype,"hasIcon",{get:function(){return this.modalConfig.iconStatus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFullscreen",{get:function(){return this.modalConfig.fullscreen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.modalConfig.modalTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttons",{get:function(){return this.modalConfig.buttons||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMessageModal",{get:function(){return this.modalConfig.message&&this.modalConfig.message.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isComplexMessageModal",{get:function(){return this.modalConfig.html&&this.modalConfig.html.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.modalConfig.html},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this.modalConfig.message},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"messageTitle",{get:function(){return this.modalConfig.messageTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modalStyles",{get:function(){var t=this.modalConfig.maxWidth||this.defaultMaxWidth,e=this.modalConfig.minWidth||this.defaultMinWidth;return{"max-width":t+"px","min-width":e+"px",width:this.getModalActualWidth(t,e)+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"emptyModal",{get:function(){return this.modalConfig&&this.modalConfig.empty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCloseBtn",{get:function(){return this.modalConfig.showCloseBtn},enumerable:!0,configurable:!0}),t.prototype.animationDone=function(t){"hidden"===t.toState&&this.endAnimation.emit(!0)},t.prototype.onClickButtons=function(t){var e=this;this.visibility="hidden",this._subscriptions.push(this.endAnimation.subscribe((function(n){n&&e.click.emit(t)})))},t.prototype.onClose=function(){var t=this;this.visibility="hidden",this._subscriptions.push(this.endAnimation.subscribe((function(e){e&&t.click.emit({response:x.CLOSE,close:!0})})))},t.prototype.ngAfterViewInit=function(){this.target=this.emptyModal?this.targetEmpty:this.targetContent,!this.component||this.modalConfig.html||this.modalConfig.message||this.loadBody(),this.windowRef.nativeWindow.document.body.classList.add("st-modal-overlay")},t.prototype.ngOnDestroy=function(){this.componentRef&&this.componentRef.destroy(),this.windowRef.nativeWindow.document.body.classList.remove("st-modal-overlay"),this._subscriptions.length>0&&this._subscriptions.forEach((function(t){t&&t.unsubscribe()}))},t.prototype.getModalActualWidth=function(t,e){var n=this.windowRef.nativeWindow.screen.width;return n>t?t:n<e?e:n},t.prototype.loadBody=function(){if(!this.componentRef){this.target.clear();var t=this.cfr.resolveComponentFactory(this.component);this.componentRef=this.target.createComponent(t),this.bindModalInputs()}},t.prototype.bindModalInputs=function(){var t=this;Object.keys(this.modalConfig.inputs).forEach((function(e){t.componentRef.instance[e]=t.modalConfig.inputs[e]})),Object.keys(this.modalConfig.outputs).forEach((function(e){t.componentRef.instance[e].subscribe(t.modalConfig.outputs[e])})),this.componentRef.changeDetectorRef.detectChanges()},t.decorators=[{type:n.Component,args:[{selector:"st-modal",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<div class="st-modal-container" [@state]="visibility" (@state.done)="animationDone($event)" [@.disabled]="disabledAnimation">\n <section *ngIf="emptyModal" class="st-modal" [ngClass]="{\'st-modal-fullscreen\': isFullscreen}" [ngStyle]="modalStyles" [hidden]="emptyModal">\n <div #stModalBodyEmpty></div>\n </section>\n <section *ngIf="!emptyModal" class="st-modal" [ngClass]="{\'st-modal-fullscreen\': isFullscreen}" [ngStyle]="modalStyles" [hidden]="!emptyModal">\n <div class="st-modal-header">\n <div class="container">\n <span class="status-icon" [ngClass]="hasIcon" *ngIf="hasIcon"></span>\n <p class="title">{{title}}</p> <span class="close-button" *ngIf="showCloseBtn" (click)="onClose()"></span>\n\n <st-modal-buttons *ngIf="isFullscreen" [buttonConfig]="buttons" [fullscreen]="isFullscreen" (click)="onClickButtons($event)"></st-modal-buttons>\n </div>\n </div>\n <div class="st-modal-body">\n <div class="container">\n\n <div *ngIf="isMessageModal" class="message">\n <h1 id="st-modal-message-plain-title" class="st-modal-message-plain-title">{{messageTitle}}</h1>\n <p id="st-modal-message-plain-message" class="st-modal-message-plain-message">{{message}}</p>\n </div>\n <div *ngIf="isComplexMessageModal" [innerHTML]="html" id="st-modal-message-html"></div>\n <div #stModalBody id="st-modal-message-component"></div>\n\n </div>\n </div>\n <footer class="st-modal-footer" *ngIf="buttons && buttons.length > 0">\n <div class="container">\n <st-modal-buttons *ngIf="!isFullscreen" [buttonConfig]="buttons" (click)="onClickButtons($event)"></st-modal-buttons>\n </div>\n </footer>\n </section>\n</div>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,animations:[o.trigger("state",[o.state("void, hidden",o.style({opacity:0})),o.state("visible",o.style({opacity:1})),o.transition("* => visible",[o.style({opacity:0}),o.animate(300)]),o.transition("* => hidden",[o.style({opacity:1}),o.animate(300)])])],styles:['@charset "UTF-8";.st-modal-container{display:flex;height:100vh;left:0;position:fixed;top:0;width:100%}.st-modal-container .st-modal{-ms-grid-row-align:center;align-self:center;display:flex;flex-direction:column;margin:auto}.st-modal-container .st-modal.st-modal-fullscreen{min-height:100vh;max-height:100vh;min-width:100%;max-width:100%}.st-modal-container .st-modal .st-modal-header{display:flex;flex-direction:row;height:70px;width:100%}.st-modal-container .st-modal .st-modal-header .container{display:flex;margin-right:auto;margin-left:auto;width:100%;align-items:center;flex-wrap:nowrap}.st-modal-container .st-modal .st-modal-header .container .status-icon{padding-right:1.05rem}.st-modal-container .st-modal .st-modal-header .container .status-icon.delete:before{content:var(--egeo-st-modal__delete-icon--content, "")}.st-modal-container .st-modal .st-modal-header .container .status-icon.alert:before{content:var(--egeo-st-modal__warning-icon--content, "")}.st-modal-container .st-modal .st-modal-header .container .close-button{font-size:var(--egeo-st-modal__close-icon--font-size,inherit);color:var(--egeo-st-modal__close-icon--color,inherit)}.st-modal-container .st-modal .st-modal-header .container .close-button:before{content:var(--egeo-st-modal__close-icon--content, "")}.st-modal-container .st-modal st-modal-buttons{display:flex;justify-content:flex-end;margin-left:auto}.st-modal-container .st-modal .container{min-width:auto}']}]}],t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:k}]},t.propDecorators={modalConfig:[{type:n.Input}],component:[{type:n.Input}],disabledAnimation:[{type:n.HostBinding,args:["@.disabled"]},{type:n.Input}],click:[{type:n.Output}],endAnimation:[{type:n.Output}],targetContent:[{type:n.ViewChild,args:["stModalBody",{read:n.ViewContainerRef,static:!1}]}],targetEmpty:[{type:n.ViewChild,args:["stModalBodyEmpty",{read:n.ViewContainerRef,static:!1}]}]},t}();var R=function(){function t(t){this._cfr=t,this._containerRef=void 0,this.dynamicModal=void 0}return Object.defineProperty(t.prototype,"container",{set:function(t){this._containerRef=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t,e,n){var o=this.canCreateModal(t,e);if(o&&o.length>0)throw new Error(o.join(" "));return this.notifyButtonInteraction=new i.Subject,this.createModal(this.createConfig(t),e,n),this.notifyButtonInteraction.asObservable()},t.prototype.showBasicModal=function(t,e,n,i,o,s,r,a,l,c){var u;void 0===s&&(s=""),void 0===r&&(r=600),void 0===a&&(a=400),void 0===l&&(l=""),void 0===c&&(c=!1);var p=[{label:o,classes:t===A.DELETE?"button-critical":"button-primary",responseValue:x.YES,closeOnClick:!0}];switch(t!==A.INFO&&p.unshift({label:s,classes:t===A.DELETE?"button-borderless":"button-secondary",responseValue:x.NO,closeOnClick:!0}),t){case A.DELETE:u="delete";break;case A.WARNING:u="alert";break;default:u=l}return this.show({fullscreen:!1,message:i,messageTitle:n,modalTitle:e,buttons:p,maxWidth:r,minWidth:a,showCloseBtn:c,iconStatus:u})},t.prototype.close=function(){this.destroy()},t.prototype.createModal=function(t,e,n){var i=this._cfr.resolveComponentFactory(L);i&&(this._containerRef.clear(),this.dynamicModal=this._containerRef.createComponent(i),this.bindVars(t,e,n))},t.prototype.destroy=function(){this.dynamicModal&&(this.dynamicModal.destroy(),this.dynamicModal=void 0,this.notifyButtonInteraction.next(x.CLOSE),this.notifyButtonInteraction.complete())},t.prototype.bindVars=function(t,e,n){this.dynamicModal.instance.component=e,this.dynamicModal.instance.click.subscribe(this.notify.bind(this)),this.dynamicModal.instance.modalConfig=t,this.dynamicModal.instance.disabledAnimation=null===n||n,this.dynamicModal.changeDetectorRef.detectChanges()},t.prototype.notify=function(t){this.notifyButtonInteraction.next(t.response),t.close&&this.close()},t.prototype.canCreateModal=function(t,e){var n=[];return this._containerRef||n.push("[ERROR]: StModalService => Cant find container, are you sure you declarate in MAIN APP component in html and typescript?"),void 0!==this.dynamicModal&&n.push("[ERROR]: StModalService => Can't create modal beacause already exists one. Are you sure that you call close method?)"),e||t.message||t.html||n.push("[ERROR]: StModalService => Can't find message, html or component to show in modal"),n},t.prototype.createConfig=function(t){var e={fullscreen:!1,inputs:{},outputs:{},modalTitle:"Default title",messageTitle:"Default subtitle",buttons:[],message:void 0,html:void 0,maxWidth:void 0,minWidth:void 0,empty:!1},n=Object.assign({},e,t);return n.buttons=this.checkButtons(n.buttons),n},t.prototype.checkButtons=function(t){return t.map((function(t){return Object.assign({},{label:"Button",closeOnClick:!1},t)}))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver}]},t}();var M=function(){function t(){}return t.prototype.newPage=function(t,e,n){return this.initItem=1===e?0:n*(e-1),n>=t.length?Object.assign([],t):this.initItem>=t.length?(this.initItem=t.length-(n+1),Object.assign([],s.takeRight(t,n))):(this.lastItem=this.initItem+n,Object.assign([],t.slice(this.initItem,this.lastItem)))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}();var P=function(){function t(){}return t.prototype.getKeys=function(t,e,n){return this.searchInDeep(t,e,n)},t.prototype.setKeys=function(t,e){e.forEach((function(e){return s.set(t,e.path,e.resolved)}))},t.prototype.translate=function(t,e){var n=this,o=this.getKeys(t,"translate");if(o&&o.length>0){var s=this.extractTranslationKeys(o);return e.get(s).pipe(r.map((function(e){return n.remapObjectWithTranslations(e,o,t)})))}return i.Observable.create((function(e){e.next(t),e.complete()}))},t.prototype.translateArrayOfKeys=function(t,e){var n=this;return e.get(t).pipe(r.map((function(e){return n.remapArrayWithTranslations(e,t)})))},t.prototype.remapArrayWithTranslations=function(t,e){return e.map((function(e){return t[e]?t[e]:e}))},t.prototype.remapObjectWithTranslations=function(t,e,n){var i=this,o=s.cloneDeep(n);return(t||s.keys(t).length>0)&&s.forEach(e,(function(e){s.set(o,e.path,i.getTranslationFromTranslatedKey(t,e))})),o},t.prototype.getTranslationFromTranslatedKey=function(t,e){var n=e&&e.toResolve&&e.toResolve.key?e.toResolve.key:"";return t[n]?t[n]:n},t.prototype.extractTranslationKeys=function(t){return t.map((function(t){return s.values(s.omit(t.toResolve,"translate"))[0]}))},t.prototype.searchInDeep=function(t,e,n,i){var o=this;void 0===i&&(i="");var r=[];s.has(t,e)&&(void 0!==n?t[e]===n&&r.push({path:i,toResolve:t}):r.push({path:i,toResolve:t}));var a=0;return s.forEach(t,(function(s,l){"object"==typeof s&&(r=S(r,o.searchInDeep(s,e,n,o.getPath(i,t,a,l)))),a++})),r},t.prototype.getPath=function(t,e,n,i){return t=this.isArray(e)?t+"["+n+"]":""===t?i:t+"."+i},t.prototype.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.decorators=[{type:n.Injectable}],t}(),F=function(){function t(){this.listeners=[]}return t.prototype.notify=function(t,e){var n,i;try{for(var o=v(this.listeners),s=o.next();!s.done;s=o.next()){(0,s.value)(t,e)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.listen=function(t){this.listeners.push(t)},t.decorators=[{type:n.Injectable}],t}();var D=function(){function t(){}return t.prototype.transform=function(t,e,n){var i=this;return this.checkParams(e),n?t&&t.length>0&&e?t.filter((function(t){return i.contains(t,e,n)})):[]:t},t.prototype.contains=function(t,e,n){return!!(this.isDefined(t)&&this.isString(e)&&this.isString(n)&&this.isString(t[e]))&&t[e].toUpperCase().search(n.toUpperCase())>-1},t.prototype.isDefined=function(t){return null!=t},t.prototype.isString=function(t){return this.isDefined(t)&&"string"==typeof t},t.prototype.checkParams=function(t){if(!this.isString(t))throw new Error('PIPE: stFilterList: "field" is a required and string parameter')},t.decorators=[{type:n.Pipe,args:[{name:"stFilterList"}]}],t}(),N=function(){function t(){}return t.prototype.transform=function(t){return t?Object.keys(t).map((function(e){return{key:e,value:t[e]}})):[]},t.decorators=[{type:n.Pipe,args:[{name:"stObjectToArray"}]}],t}(),B=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[D,N],exports:[D,N]}]}],t}(),V=function(){function t(t){this.alertService=t,this.showInConsole=!1,this.qaTag="st-alert-manager"}return t.decorators=[{type:n.Component,args:[{selector:"st-alerts",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<div [attr.id]=\'qaTag\' class="st-alerts sth-alerts">\n <st-alert-box class="st-alert-box" *ngFor="let alert of (alertService.alertList | async)" [alert]="alert" [showInConsole]="showInConsole"></st-alert-box>\n</div>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.st-alert-box{margin-top:15px;display:block}.st-alerts{width:288px;position:fixed;right:15px;top:0}']}]}],t.ctorParameters=function(){return[{type:_}]},t.propDecorators={showInConsole:[{type:n.Input}],qaTag:[{type:n.Input}]},t}();var H=function(){function t(t){this._cd=t,this.showInConsole=!1,this.clickLink=new n.EventEmitter,this.close=new n.EventEmitter,this.opacity=0}return t.prototype.ngOnInit=function(){var t=this;this.alert.opacity.subscribe((function(e){return t.changeOpacity(e)})),this.alert.notify(),this.showInConsole&&this.notifyConsole(),this.severityColorValue=this.getSeverityColor(),this.iconValue=this.getIcon()},t.prototype.closeAlert=function(){this.alert.cancel(),this.close.emit(!0)},t.prototype.getIcon=function(){switch(this.alert.severity){case w.ERROR:return"icon-circle-alert";case w.WARNING:return"icon-alert";case w.SUCCESS:return"icon-circle-check";case w.INFO:return"icon-info";default:return""}},t.prototype.getSeverityColor=function(){switch(this.alert.severity){case w.ERROR:return"sth-alert-box-error";case w.WARNING:return"sth-alert-box-warning";case w.SUCCESS:return"sth-alert-box-success";case w.INFO:return"sth-alert-box-info";default:return""}},t.prototype.goTo=function(){this.clickLink.emit(this.alert.link)},t.prototype.changeOpacity=function(t){this.opacity=t,this._cd.markForCheck()},t.prototype.notifyConsole=function(){switch(this.alert.severity){case w.ERROR:console.error("ERROR-"+this.alert.title+": "+this.alert.message);break;case w.WARNING:console.warn("WARNING-"+this.alert.title+": "+this.alert.message);break;case w.SUCCESS:console.log("SUCCESS-"+this.alert.title+": "+this.alert.message);break;default:console.error("ERROR: severity not found for "+this.alert.title+": "+this.alert.message)}},t.decorators=[{type:n.Component,args:[{selector:"st-alert-box",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<div class="sth-alert-box" [ngClass]="severityColorValue" [ngStyle]="{opacity: opacity}">\n <div class="sth-alert-box-content">\n <div class="sth-alert-box-close-button">\n <i (click)="closeAlert()" class="icon-cross"></i>\n </div>\n <header class="sth-alert-box-header">\n <i class="status-icon" [ngClass]="iconValue"></i>\n <span>{{alert.title}}</span>\n </header>\n <div class="sth-alert-box-body">\n <p>{{alert.message}}</p>\n </div>\n </div>\n <footer *ngIf="alert.link" class="sth-alert-box-footer">\n <a (click)="goTo()">{{alert.link.title}}</a>\n </footer>\n</div>\n',changeDetection:n.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},t.propDecorators={alert:[{type:n.Input}],showInConsole:[{type:n.Input}],clickLink:[{type:n.Output}],close:[{type:n.Output}]},t}();var U=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[H],exports:[H]}]}],t}(),j=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,U],declarations:[V],exports:[V]}]}],t}(),W={TOP:0,TOP_START:1,TOP_END:2,BOTTOM:3,BOTTOM_START:4,BOTTOM_END:5};W[W.TOP]="TOP",W[W.TOP_START]="TOP_START",W[W.TOP_END]="TOP_END",W[W.BOTTOM]="BOTTOM",W[W.BOTTOM_START]="BOTTOM_START",W[W.BOTTOM_END]="BOTTOM_END";var Y=function(){this.x=0,this.y=0};var q=function(){function t(){this.hidden=!1,this.offset={x:0,y:17},this.showArrow=!0,this.animation=!0,this.openToLeft=!0,this.small=!1,this.placement=W.BOTTOM}return t.decorators=[{type:n.Component,args:[{selector:"st-bubble",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n\n\n<st-pop [hidden]="hidden" [placement]="placement" [offset]="offset" class="st-bubble" [openToLeft]="openToLeft">\n <div pop-button>\n <ng-content select=[bubble-button]></ng-content>\n </div>\n <div pop-content [style.z-index]="9" class="st-bubble__content"\n [ngClass]="{\n \'st-bubble__content--animated\': animation,\n \'st-bubble__content--small\': small,\n \'st-bubble__content--with-arrow\': showArrow,\n \'st-bubble__content--to-left\': openToLeft,\n \'st-bubble__content--to-right\': !openToLeft,\n \'st-bubble__content--show\': !hidden,\n \'st-bubble__content--cut-words\': maxWidth}"\n [style.min-width]="minWidth"\n [style.max-width]="maxWidth">\n <span class="text"> {{text}} </span>\n </div>\n</st-pop>\n',styles:['@charset "UTF-8";.content{display:inline-block}.arrow{border-radius:2px;bottom:47px;float:right;height:13px;margin-right:15px;position:relative;transform:rotate(-45deg);width:13px}.text{display:block;text-align:center}']}]}],t.propDecorators={text:[{type:n.Input}],hidden:[{type:n.Input}],offset:[{type:n.Input}],showArrow:[{type:n.Input}],animation:[{type:n.Input}],openToLeft:[{type:n.Input}],small:[{type:n.Input}],minWidth:[{type:n.Input}],maxWidth:[{type:n.Input}]},t}();var $=function(){function t(t,e){this._el=t,this._cd=e,this.placement=W.BOTTOM_START,this.offset={x:0,y:0},this.openToLeft=!1,this._hidden=!0}return Object.defineProperty(t.prototype,"hidden",{get:function(){return this._hidden},set:function(t){var e=this;setTimeout((function(){t||e.calculatePosition(),e._hidden=t,e._cd.markForCheck()}))},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.calculatePosition()},t.prototype.ngOnChanges=function(t){this.calculatePosition()},t.prototype.updateWidth=function(){this.calculatePosition()},t.prototype.getContentElement=function(){return this._el.nativeElement.querySelector("[pop-content]")},t.prototype.calculatePosition=function(){var t=this._el.nativeElement.querySelector("[pop-button]"),e=this.getContentElement(),n=t&&t.firstElementChild?t.firstElementChild:void 0;if(n){var i=this.getCoords(n);e.style.position="absolute",e.style.transform="translate3d("+i.x+"px, "+i.y+"px, "+i.z+"px)"}},t.prototype.getCoords=function(t){var e={x:0,y:0,z:0},n=this.openToLeft?this.getContentElement().getBoundingClientRect().width:0,i=t.getBoundingClientRect();switch(this.placement){case W.BOTTOM:e.x=i.width/2;break;case W.BOTTOM_END:e.x=i.width;break;case W.TOP:e.y=-1*i.height,e.x=i.width/2;break;case W.TOP_START:e.y=-1*i.height;break;case W.TOP_END:e.y=-1*i.height,e.x=i.width}return e.x=Math.ceil(e.x+this.offset.x-n),e.y=Math.ceil(e.y+this.offset.y),e},t.decorators=[{type:n.Component,args:[{selector:"st-pop",template:"\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<ng-content select=[pop-button]></ng-content>\n<div [style.visibility]=\"hidden ? 'hidden' : 'visible'\" class=\"content\">\n <ng-content select=[pop-content]></ng-content>\n</div>\n",changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.content{height:0}']}]}],t.ctorParameters=function(){return[{type:n.ElementRef},{type:n.ChangeDetectorRef}]},t.propDecorators={placement:[{type:n.Input}],offset:[{type:n.Input}],openToLeft:[{type:n.Input}],hidden:[{type:n.Input}],updateWidth:[{type:n.HostListener,args:["window:load"]}]},t}();var z=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],exports:[$],declarations:[$],providers:[k]}]}],t}(),X=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,z],declarations:[q],exports:[q]}]}],t}(),G=function(){};var Q={DEFAULT:"default",TITLE:"title"},K=function(){function t(){this.options=[],this.elementsToShow=5,this.mode=Q.DEFAULT,this.select=new n.EventEmitter,this.indexArray=[],this._initPos=0}return t.prototype.ngOnInit=function(){this.calculateStart(this.options,this.elementsToShow)},t.prototype.ngOnChanges=function(t){if(t.options||t.elementsToShow){var e=t.elementsToShow?t.elementsToShow.currentValue:this.elementsToShow,n=t.options?t.options.currentValue:this.options;this.calculateStart(n,e)}},t.prototype.onSelect=function(t){var e=t>-1?t:this._initPos-1;e<this.options.length-1&&this.select.emit(e)},t.prototype.getId=function(t){return this.options[t].id},t.prototype.getLabel=function(t){return t>-1?this.options[t].label:"..."},t.prototype.getIcon=function(t){return t>-1?this.options[t].icon:""},t.prototype.hasIcon=function(t){return t>-1&&Boolean(this.options[t].icon)},t.prototype.calculateStart=function(t,e){t.length>e?(this._initPos=t.length-e+1,this.indexArray=s.range(this._initPos,this._initPos+e-1),this.indexArray.unshift(-1),this.indexArray.unshift(0)):(this._initPos=0,this.indexArray=s.range(0,t.length))},t.decorators=[{type:n.Component,args:[{selector:"st-breadcrumbs",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<ul class="st-breadcrumbs {{mode}}-mode" [attr.id]="qaTag">\n <ng-content select="st-breadcrumbs-item"></ng-content>\n <ng-container *ngIf="options.length">\n <st-breadcrumbs-item\n class="sth-breadcrumbs__item-container"\n *ngFor="let idx of indexArray; let last=last"\n (click)="onSelect(idx)"\n [active]="last"\n [qaTag]="qaTag + \'-\' + idx">\n <i *ngIf="hasIcon(idx)" [ngClass]="getIcon(idx)"></i>\n <span>{{getLabel(idx)}}</span>\n </st-breadcrumbs-item>\n </ng-container>\n</ul>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";ul{text-overflow:ellipsis;overflow:hidden;list-style:none;margin:0;padding:0}']}]}],t.propDecorators={options:[{type:n.Input}],elementsToShow:[{type:n.Input}],mode:[{type:n.Input}],qaTag:[{type:n.Input}],select:[{type:n.Output}]},t}();var Z=function(){function t(){}return Object.defineProperty(t.prototype,"qaTag",{get:function(){return this._qaTag.replace(/ /g,"-")},set:function(t){this._qaTag=t},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Component,args:[{selector:"st-breadcrumbs-item",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<li class="st-breadcrumbs__item" [ngClass]="{\'last\': active}" [attr.id]="qaTag">\n <span class="st-breadcrumbs__item--text">\n <ng-content select="i"></ng-content>\n <ng-content select="span"></ng-content>\n </span>\n</li>\n',styles:['@charset "UTF-8";.st-breadcrumbs__item{display:inline}.st-breadcrumbs__item--text{cursor:pointer}.last .st-breadcrumbs__item--text{cursor:default;background-color:transparent}']}]}],t.propDecorators={qaTag:[{type:n.Input}],active:[{type:n.Input}]},t}();var J=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],exports:[K,Z],declarations:[K,Z]}]}],t}(),tt={provide:a.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return et})),multi:!0},et=function(){function t(t){this._changeDetectorRef=t,this.change=new n.EventEmitter,this._checked=!1,this._controlValueAccessorChangeFn=function(t){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){t!==this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelQaTag",{get:function(){return(this.qaTag||this.name)+"-label"},enumerable:!0,configurable:!0}),t.prototype.handleClick=function(){this.readonly||this.disabled||(this._checked=!this._checked,this._controlValueAccessorChangeFn(this._checked),this.change.emit({checked:this.checked,value:this.value}))},t.prototype.handleChange=function(t){t.stopPropagation()},t.prototype.writeValue=function(t){this._checked=t,this._changeDetectorRef.markForCheck()},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},t.decorators=[{type:n.Component,args:[{selector:"st-checkbox",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<label st-label class="st-checkbox" [ngClass]="{\'disabled\' : disabled}" [attr.id]="labelQaTag" [attr.title]="contextualHelp">\n <div class="st-checkbox-container">\n <input\n type="checkbox"\n [id]="qaTag"\n [name]="name"\n [required]="required"\n [checked]="checked"\n [disabled]="disabled"\n [value]="value"\n [hidden]="true"\n [readonly]="readonly"\n (click)="handleClick()"\n (change)="handleChange($event)" />\n </div>\n <div class="custom-checkbox st-checkbox-custom" [ngClass]="{\'custom-checkbox--checked\' : checked}"></div><ng-content></ng-content>\n</label>\n',providers:[tt],changeDetection:n.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},t.propDecorators={checked:[{type:n.Input}],name:[{type:n.Input}],qaTag:[{type:n.Input}],disabled:[{type:n.Input}],required:[{type:n.Input}],readonly:[{type:n.Input}],value:[{type:n.Input}],contextualHelp:[{type:n.Input}],change:[{type:n.Output}]},t}();var nt=function(){function t(t,e){this._el=t,this._cd=e,this._onClick=this._onClick.bind(this)}return Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t,t?this._el.nativeElement.setAttribute("title",t):this._el.nativeElement.removeAttribute("title")},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.title=this._el.nativeElement.title,this._checkTooltipState()},t.prototype.ngOnDestroy=function(){document.removeEventListener("click",this._onClick)},t.prototype.ngOnChanges=function(){this._el&&this._checkTooltipState()},t.prototype.onClick=function(){this.showOnClick&&this.title&&(this.classTooltipOn=!0,document.addEventListener("click",this._onClick))},t.prototype._checkTooltipState=function(){this.classTooltip=this.title&&this.title.length&&!this.showOnClick,this.classTooltipOn=!1},t.prototype._onClick=function(t){this._el.nativeElement.contains(t.target)||(this.classTooltipOn=!1,document.removeEventListener("click",this._onClick),this._cd.markForCheck())},t.decorators=[{type:n.Component,args:[{selector:"[st-tooltip]",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<span title=""><ng-content></ng-content></span>\n',styles:['@charset "UTF-8";:host.st-tooltip,:host.st-tooltip-on{position:relative}:host.st-tooltip-on:before,:host.st-tooltip:before{content:attr(title)}:host.st-tooltip-on:after,:host.st-tooltip:after{content:" "}:host.st-tooltip-on:after,:host.st-tooltip-on:before,:host.st-tooltip:after,:host.st-tooltip:before{pointer-events:none;position:absolute}:host.st-tooltip:after,:host.st-tooltip:before{opacity:0;visibility:hidden}:host.st-tooltip-on:after,:host.st-tooltip-on:before,:host.st-tooltip:hover:after,:host.st-tooltip:hover:before{opacity:1;visibility:visible}']}]}],t.ctorParameters=function(){return[{type:n.ElementRef},{type:n.ChangeDetectorRef}]},t.propDecorators={classTooltip:[{type:n.HostBinding,args:["class.st-tooltip"]}],classTooltipOn:[{type:n.HostBinding,args:["class.st-tooltip-on"]}],showOnClick:[{type:n.Input}],title:[{type:n.Input,args:["attr.title"]}],onClick:[{type:n.HostListener,args:["click"]}]},t}();var it=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.classStLabel=!0,i}return f(e,t),e.decorators=[{type:n.Component,args:[{selector:"[st-label]",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<span title=""><ng-content></ng-content></span>\n',styles:['@charset "UTF-8";:host.st-tooltip,:host.st-tooltip-on{position:relative}:host.st-tooltip-on:before,:host.st-tooltip:before{content:attr(title)}:host.st-tooltip-on:after,:host.st-tooltip:after{content:" "}:host.st-tooltip-on:after,:host.st-tooltip-on:before,:host.st-tooltip:after,:host.st-tooltip:before{pointer-events:none;position:absolute}:host.st-tooltip:after,:host.st-tooltip:before{opacity:0;visibility:hidden}:host.st-tooltip-on:after,:host.st-tooltip-on:before,:host.st-tooltip:hover:after,:host.st-tooltip:hover:before{opacity:1;visibility:visible}']}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.ChangeDetectorRef}]},e.propDecorators={classStLabel:[{type:n.HostBinding,args:["class.st-label"]}]},e}(nt);var ot=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:[nt],exports:[nt],imports:[e.CommonModule]}]}],t}(),st=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:[it],exports:[it],imports:[e.CommonModule,ot]}]}],t}(),rt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,st],declarations:[et],exports:[et]}]}],t}(),at=function(){function t(t){this.http=t}return t.prototype.getFile=function(t){return this.http.get(location.pathname+"assets/source-code/"+t,{responseType:"text"}).pipe(r.map((function(t){return t})),r.catchError((function(){return i.of(null)})))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:l.HttpClient}]},t}();var lt=function(){function t(t,e){this.cd=t,this.docsService=e,this.options=[{id:"demo",text:"Overview"},{id:"html",text:"Html"},{id:"implementation",text:"Implementation"},{id:"component",text:"Component"}],this.active=this.options[0]}return t.prototype.ngOnInit=function(){var t=this;this.subscription=this.getFile(this.htmlFile).pipe(r.zip(this.getFile(this.tsFile),this.getFile(this.componentFile),(function(t,e,n){return{htmlCode:t,tsCode:e,componentCode:n}}))).subscribe((function(e){t.htmlCode=e&&e.htmlCode?e.htmlCode:null,t.demoTsCode=e&&e.tsCode?e.tsCode:null,t.componentTsCode=e&&e.componentCode?e.componentCode:null,t.disableTabOption(null===t.htmlCode,null===t.demoTsCode,null===t.componentTsCode),t.cd.markForCheck()}))},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onChangeOption=function(t){this.active=t},t.prototype.getFile=function(t){return this.docsService.getFile(t)},t.prototype.disableTabOption=function(t,e,n){t&&(this.options=this.filterOption(this.options,"html")),e&&(this.options=this.filterOption(this.options,"implementation")),n&&(this.options=this.filterOption(this.options,"component"))},t.prototype.filterOption=function(t,e){return t.filter((function(t){return t.id!==e}))},t.decorators=[{type:n.Component,args:[{selector:"st-docs",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<div>\n <st-horizontal-tabs [options]="options" [(activeOption)]="active" qaTag="horizontal-tabs-demo" (changedOption)="onChangeOption($event)">\n </st-horizontal-tabs>\n <div class="st-docs">\n <div *ngIf="active.id === \'demo\'">\n <ng-content></ng-content>\n </div>\n <div *ngIf="active.id === \'html\'">\n <st-prism-highlight [language]="\'html\'" id="codeinput">{{htmlCode}}</st-prism-highlight>\n </div>\n <div *ngIf="active.id === \'implementation\'">\n <st-prism-highlight [language]="\'javascript\'" id="codeinput">{{demoTsCode}}</st-prism-highlight>\n </div>\n\n <div *ngIf="active.id === \'component\'">\n <st-prism-highlight [language]="\'javascript\'" id="codeinput">{{componentTsCode}}</st-prism-highlight>\n </div>\n </div>\n</div>\n',styles:['@charset "UTF-8";.st-docs{width:100%;margin-top:22px}.st-docs__header{display:flex;flex-direction:row;background-color:rgba(0,0,0,.03);min-height:50px;align-items:center}.st-docs__header__icon-code{display:flex;flex-direction:row;margin-left:auto;align-items:center;margin-right:15px}.st-docs__header__copy-code{display:flex;flex-direction:row;align-items:center;margin-right:15px}.st-docs__content__component{min-height:100px;display:flex;justify-content:center;align-items:center}']}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef},{type:at}]},t.propDecorators={htmlFile:[{type:n.Input}],tsFile:[{type:n.Input}],componentFile:[{type:n.Input}]},t}();var ct={warning:"warning",error:"error"};var ut=function(){function t(){}return t.isDefined=function(t){return null!=t},t.validateInputs=function(t,e,n){var i=this;e.forEach((function(e){if(!i.isDefined(t[e]))throw new Error(i.toDash(n)+": field "+e+" is a required field")}))},t.toDash=function(t){try{return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()})).substring(1)}catch(e){return t}},t}(),pt=Symbol("EgeoLibraryMetadata");function ht(t){return function(e,n){var i=Reflect.getOwnMetadata(pt,e.constructor)||{};i[n]=i.hasOwnProperty(n)&&i[n]||{type:0},i[n].required=!0,void 0!==t&&(i[n].requireCondition=t),Reflect.defineMetadata(pt,i,e.constructor)}}function dt(t){return function(t){var e=t.prototype.ngOnInit;t.prototype.ngOnInit=void 0!==e?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];mt(t,this),ft(t,this),e.apply(this,n)}:function(){mt(t,this),ft(t,this)}}}function mt(t,e){var n=Reflect.getOwnMetadata(pt,t);void 0!==n&&Object.keys(n).forEach((function(i){n[i].deprecated&&(void 0!==e[i]?console.warn(ut.toDash(t.name)+": field "+i+" is a deprecated field"):n[i].initialValue&&(e[i]=n[i].initialValue))}))}function ft(t,e){var n=Reflect.getOwnMetadata(pt,t);if(void 0!==n){var i=function(t,e,n){return t.reduce((function(t,i){return void 0!==e[i].requireCondition?function(t,e){return"function"==typeof t[e]?t[e].apply(t):t[e]}(n,e[i].requireCondition)&&t.push(i):e[i].required&&t.push(i),t}),[])}(Object.keys(n),n,e);ut.validateInputs(e,i,t.name)}}var gt=function(){function t(){this.changedOption=new n.EventEmitter}return t.prototype.ngOnInit=function(){this.options&&this.options.length>0&&(this.activeOption=this.activeOption||this.options[0],this.activateOption(this.activeOption))},t.prototype.isActive=function(t){return this.activeOption===t},t.prototype.activateOption=function(t){this.activeOption=t,this.changedOption.emit(t)},t.prototype.getTabStatus=function(t){return t.status?ct[t.status]:""},t.decorators=[{type:n.Component,args:[{selector:"st-horizontal-tabs",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<nav class="st-horizontal-tabs">\n <a *ngFor="let option of options; let i = index;"\n class="tab {{getTabStatus(option)}}"\n (click)="activateOption(option)"\n href="javascript:void(0)"\n [ngClass]="{\'tab--active\': isActive(option)}"\n [attr.id]="qaTag + \'-tab-\' + i">{{option.text}}</a>\n <ng-content></ng-content>\n</nav>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.st-horizontal-tabs{position:relative;display:flex;width:100%;list-style:none}.tab{display:inline-block;text-align:center;box-sizing:border-box;line-height:1;padding:0 30px 7px;margin-top:auto;cursor:pointer}.tab--active{padding-bottom:5px}.line{display:block;transition:.4s ease-in-out}']}]}],t.propDecorators={activeOption:[{type:n.Input}],options:[{type:n.Input}],qaTag:[{type:n.Input}],changedOption:[{type:n.Output}]},y([ht(),b("design:type",Array)],t.prototype,"options",void 0),t=y([dt()],t)}();var yt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[gt],exports:[gt]}]}],t}(),bt=function(){function t(){this.async=!1,this.callback=void 0}return t.prototype.ngAfterViewChecked=function(){this.highlightAll(this.async,this.callback)},t.prototype.highlightElement=function(t,e,n){Prism.highlightElement(t,e,n)},t.prototype.highlightAll=function(t,e){Prism.highlightAll(t,e)},t.decorators=[{type:n.Component,args:[{encapsulation:n.ViewEncapsulation.None,selector:"st-prism-highlight",template:'<pre class="language-{{language}}" *ngIf="language"><code class="language-{{language}}"><ng-content></ng-content></code></pre>'}]}],t.propDecorators={language:[{type:n.Input,args:["language"]}],async:[{type:n.Input,args:["async"]}],callback:[{type:n.Input,args:["callback"]}]},t}();var vt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[bt],exports:[bt]}]}],t}(),It=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,l.HttpClientModule,vt,yt],declarations:[lt],exports:[lt],providers:[at]}]}],t}(),St="ArrowUp",wt="ArrowDown",Ct=function(){};var Tt=function(){};var _t=function(){};var xt=function(){};var At={OPTION_LIST:0,MENU_LIST:1};At[At.OPTION_LIST]="OPTION_LIST",At[At.MENU_LIST]="MENU_LIST";var Ot=function(){function t(t,e,i){this.el=t,this.cd=e,this.renderer=i,this.active=!1,this.items=[],this.placement=W.BOTTOM_START,this.emptyListMessage="",this.se