UNPKG

teoclits

Version:

Typescript angular Teonet Client module

40 lines (39 loc) 4.96 kB
/** * @fileoverview This file was generated by the Angular template compiler. Do not edit. * /* * The MIT License * * Copyright 2017 Kirill Scherba <kirill@scherba.ru>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} * tslint:disable */ import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "./teocli.module"; var styles_TeonetStatus = [".teonet-status[_ngcontent-%COMP%] { \n opacity: 0.85;\n position: relative;\n float: right;\n right: 20px;\n top: 10px;\n \n }\n ion-nav.menu-content-open + teonet-status {\n display: none;\n }\n ion-app.platform-ios .teonet-status {\n top: 22px;\n }\n .teonet-status-no-badge[_ngcontent-%COMP%] {\n top: 3px;\n }\n ion-app.platform-ios .teonet-status-no-badge {\n top: 35px;\n }\n ion-app.platform-android .teonet-status-no-badge {\n top: 20px;\n }\n .teonet-status-badge[_ngcontent-%COMP%] {\n position: absolute;\n bottom: -15px;\n right: 0;\n font-size: 70%;\n }\n .teonet-badge[_ngcontent-%COMP%] {\n padding: 3px 8px;\n text-align: center;\n display: inline-block;\n min-width: 10px;\n \n font-weight: bold;\n line-height: 1;\n white-space: nowrap;\n vertical-align: baseline;\n }"]; var RenderType_TeonetStatus = i0.ɵcrt({ encapsulation: 0, styles: styles_TeonetStatus, data: {} }); export { RenderType_TeonetStatus as RenderType_TeonetStatus }; function View_TeonetStatus_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "div", [], [[8, "className", 0]], null, null, null, null)), (_l()(), i0.ɵted(1, null, [" ", " "])), i0.ɵppd(2, 1)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = i0.ɵinlineInterpolate(1, "teonet-badge teonet-status-badge badge-md\n badge-md-", ((_co.time >= 0) ? "secondary" : "danger"), ""); _ck(_v, 0, 0, currVal_0); var currVal_1 = (((_co.peer && (_co.show_peer == "true")) ? (i0.ɵunv(_v, 1, 0, _ck(_v, 2, 0, i0.ɵnov(_v.parent, 0), _co.peer)) + ": ") : "") + ((_co.time >= 0) ? (_co.time + " ms") : "offline")); _ck(_v, 1, 0, currVal_1); }); } export function View_TeonetStatus_0(_l) { return i0.ɵvid(0, [i0.ɵpid(0, i1.TitleCasePipe, []), (_l()(), i0.ɵeld(1, 0, null, null, 3, "span", [], [[8, "className", 0]], null, null, null, null)), (_l()(), i0.ɵted(2, null, [" ", " "])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_TeonetStatus_1)), i0.ɵdid(4, 16384, null, 0, i1.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_2 = _co.ifPeer(_co.peer); _ck(_v, 4, 0, currVal_2); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = i0.ɵinlineInterpolate(2, "teonet-status \n text-md-", _co.getStatusColor(_co.t.status), "\n ", (!_co.ifPeer(_co.peer) ? " teonet-status-no-badge" : ""), ""); _ck(_v, 1, 0, currVal_0); var currVal_1 = (((_co.ifOnline() ? (_co.label + " ") : "") + _co.getStatusText(_co.t.status)) + ((_co.ifOnline() && _co.tcli.num_clients) ? (": " + _co.tcli.num_clients) : "")); _ck(_v, 2, 0, currVal_1); }); } export function View_TeonetStatus_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "teonet-status", [], null, null, null, View_TeonetStatus_0, RenderType_TeonetStatus)), i0.ɵdid(1, 1097728, null, 0, i2.TeonetStatus, [i2.TeonetCli], null, null)], null, null); } var TeonetStatusNgFactory = i0.ɵccf("teonet-status", i2.TeonetStatus, View_TeonetStatus_Host_0, { peer: "peer", label: "label", show_peer: "show_peer", reconnect: "reconnect" }, {}, []); export { TeonetStatusNgFactory as TeonetStatusNgFactory }; //# sourceMappingURL=teocli.module.ngfactory.js.map