(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{ /***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$": /*!**************************************************!*\ !*** ./node_modules/moment/locale sync ^\.\/.*$ ***! \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var map = { "./af": "./node_modules/moment/locale/af.js", "./af.js": "./node_modules/moment/locale/af.js", "./ar": "./node_modules/moment/locale/ar.js", "./ar-dz": "./node_modules/moment/locale/ar-dz.js", "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", "./ar-kw": "./node_modules/moment/locale/ar-kw.js", "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", "./ar-ly": "./node_modules/moment/locale/ar-ly.js", "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", "./ar-ma": "./node_modules/moment/locale/ar-ma.js", "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", "./ar-sa": "./node_modules/moment/locale/ar-sa.js", "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", "./ar-tn": "./node_modules/moment/locale/ar-tn.js", "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", "./ar.js": "./node_modules/moment/locale/ar.js", "./az": "./node_modules/moment/locale/az.js", "./az.js": "./node_modules/moment/locale/az.js", "./be": "./node_modules/moment/locale/be.js", "./be.js": "./node_modules/moment/locale/be.js", "./bg": "./node_modules/moment/locale/bg.js", "./bg.js": "./node_modules/moment/locale/bg.js", "./bm": "./node_modules/moment/locale/bm.js", "./bm.js": "./node_modules/moment/locale/bm.js", "./bn": "./node_modules/moment/locale/bn.js", "./bn-bd": "./node_modules/moment/locale/bn-bd.js", "./bn-bd.js": "./node_modules/moment/locale/bn-bd.js", "./bn.js": "./node_modules/moment/locale/bn.js", "./bo": "./node_modules/moment/locale/bo.js", "./bo.js": "./node_modules/moment/locale/bo.js", "./br": "./node_modules/moment/locale/br.js", "./br.js": "./node_modules/moment/locale/br.js", "./bs": "./node_modules/moment/locale/bs.js", "./bs.js": "./node_modules/moment/locale/bs.js", "./ca": "./node_modules/moment/locale/ca.js", "./ca.js": "./node_modules/moment/locale/ca.js", "./cs": "./node_modules/moment/locale/cs.js", "./cs.js": "./node_modules/moment/locale/cs.js", "./cv": "./node_modules/moment/locale/cv.js", "./cv.js": "./node_modules/moment/locale/cv.js", "./cy": "./node_modules/moment/locale/cy.js", "./cy.js": "./node_modules/moment/locale/cy.js", "./da": "./node_modules/moment/locale/da.js", "./da.js": "./node_modules/moment/locale/da.js", "./de": "./node_modules/moment/locale/de.js", "./de-at": "./node_modules/moment/locale/de-at.js", "./de-at.js": "./node_modules/moment/locale/de-at.js", "./de-ch": "./node_modules/moment/locale/de-ch.js", "./de-ch.js": "./node_modules/moment/locale/de-ch.js", "./de.js": "./node_modules/moment/locale/de.js", "./dv": "./node_modules/moment/locale/dv.js", "./dv.js": "./node_modules/moment/locale/dv.js", "./el": "./node_modules/moment/locale/el.js", "./el.js": "./node_modules/moment/locale/el.js", "./en-au": "./node_modules/moment/locale/en-au.js", "./en-au.js": "./node_modules/moment/locale/en-au.js", "./en-ca": "./node_modules/moment/locale/en-ca.js", "./en-ca.js": "./node_modules/moment/locale/en-ca.js", "./en-gb": "./node_modules/moment/locale/en-gb.js", "./en-gb.js": "./node_modules/moment/locale/en-gb.js", "./en-ie": "./node_modules/moment/locale/en-ie.js", "./en-ie.js": "./node_modules/moment/locale/en-ie.js", "./en-il": "./node_modules/moment/locale/en-il.js", "./en-il.js": "./node_modules/moment/locale/en-il.js", "./en-in": "./node_modules/moment/locale/en-in.js", "./en-in.js": "./node_modules/moment/locale/en-in.js", "./en-nz": "./node_modules/moment/locale/en-nz.js", "./en-nz.js": "./node_modules/moment/locale/en-nz.js", "./en-sg": "./node_modules/moment/locale/en-sg.js", "./en-sg.js": "./node_modules/moment/locale/en-sg.js", "./eo": "./node_modules/moment/locale/eo.js", "./eo.js": "./node_modules/moment/locale/eo.js", "./es": "./node_modules/moment/locale/es.js", "./es-do": "./node_modules/moment/locale/es-do.js", "./es-do.js": "./node_modules/moment/locale/es-do.js", "./es-mx": "./node_modules/moment/locale/es-mx.js", "./es-mx.js": "./node_modules/moment/locale/es-mx.js", "./es-us": "./node_modules/moment/locale/es-us.js", "./es-us.js": "./node_modules/moment/locale/es-us.js", "./es.js": "./node_modules/moment/locale/es.js", "./et": "./node_modules/moment/locale/et.js", "./et.js": "./node_modules/moment/locale/et.js", "./eu": "./node_modules/moment/locale/eu.js", "./eu.js": "./node_modules/moment/locale/eu.js", "./fa": "./node_modules/moment/locale/fa.js", "./fa.js": "./node_modules/moment/locale/fa.js", "./fi": "./node_modules/moment/locale/fi.js", "./fi.js": "./node_modules/moment/locale/fi.js", "./fil": "./node_modules/moment/locale/fil.js", "./fil.js": "./node_modules/moment/locale/fil.js", "./fo": "./node_modules/moment/locale/fo.js", "./fo.js": "./node_modules/moment/locale/fo.js", "./fr": "./node_modules/moment/locale/fr.js", "./fr-ca": "./node_modules/moment/locale/fr-ca.js", "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", "./fr-ch": "./node_modules/moment/locale/fr-ch.js", "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", "./fr.js": "./node_modules/moment/locale/fr.js", "./fy": "./node_modules/moment/locale/fy.js", "./fy.js": "./node_modules/moment/locale/fy.js", "./ga": "./node_modules/moment/locale/ga.js", "./ga.js": "./node_modules/moment/locale/ga.js", "./gd": "./node_modules/moment/locale/gd.js", "./gd.js": "./node_modules/moment/locale/gd.js", "./gl": "./node_modules/moment/locale/gl.js", "./gl.js": "./node_modules/moment/locale/gl.js", "./gom-deva": "./node_modules/moment/locale/gom-deva.js", "./gom-deva.js": "./node_modules/moment/locale/gom-deva.js", "./gom-latn": "./node_modules/moment/locale/gom-latn.js", "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", "./gu": "./node_modules/moment/locale/gu.js", "./gu.js": "./node_modules/moment/locale/gu.js", "./he": "./node_modules/moment/locale/he.js", "./he.js": "./node_modules/moment/locale/he.js", "./hi": "./node_modules/moment/locale/hi.js", "./hi.js": "./node_modules/moment/locale/hi.js", "./hr": "./node_modules/moment/locale/hr.js", "./hr.js": "./node_modules/moment/locale/hr.js", "./hu": "./node_modules/moment/locale/hu.js", "./hu.js": "./node_modules/moment/locale/hu.js", "./hy-am": "./node_modules/moment/locale/hy-am.js", "./hy-am.js": "./node_modules/moment/locale/hy-am.js", "./id": "./node_modules/moment/locale/id.js", "./id.js": "./node_modules/moment/locale/id.js", "./is": "./node_modules/moment/locale/is.js", "./is.js": "./node_modules/moment/locale/is.js", "./it": "./node_modules/moment/locale/it.js", "./it-ch": "./node_modules/moment/locale/it-ch.js", "./it-ch.js": "./node_modules/moment/locale/it-ch.js", "./it.js": "./node_modules/moment/locale/it.js", "./ja": "./node_modules/moment/locale/ja.js", "./ja.js": "./node_modules/moment/locale/ja.js", "./jv": "./node_modules/moment/locale/jv.js", "./jv.js": "./node_modules/moment/locale/jv.js", "./ka": "./node_modules/moment/locale/ka.js", "./ka.js": "./node_modules/moment/locale/ka.js", "./kk": "./node_modules/moment/locale/kk.js", "./kk.js": "./node_modules/moment/locale/kk.js", "./km": "./node_modules/moment/locale/km.js", "./km.js": "./node_modules/moment/locale/km.js", "./kn": "./node_modules/moment/locale/kn.js", "./kn.js": "./node_modules/moment/locale/kn.js", "./ko": "./node_modules/moment/locale/ko.js", "./ko.js": "./node_modules/moment/locale/ko.js", "./ku": "./node_modules/moment/locale/ku.js", "./ku.js": "./node_modules/moment/locale/ku.js", "./ky": "./node_modules/moment/locale/ky.js", "./ky.js": "./node_modules/moment/locale/ky.js", "./lb": "./node_modules/moment/locale/lb.js", "./lb.js": "./node_modules/moment/locale/lb.js", "./lo": "./node_modules/moment/locale/lo.js", "./lo.js": "./node_modules/moment/locale/lo.js", "./lt": "./node_modules/moment/locale/lt.js", "./lt.js": "./node_modules/moment/locale/lt.js", "./lv": "./node_modules/moment/locale/lv.js", "./lv.js": "./node_modules/moment/locale/lv.js", "./me": "./node_modules/moment/locale/me.js", "./me.js": "./node_modules/moment/locale/me.js", "./mi": "./node_modules/moment/locale/mi.js", "./mi.js": "./node_modules/moment/locale/mi.js", "./mk": "./node_modules/moment/locale/mk.js", "./mk.js": "./node_modules/moment/locale/mk.js", "./ml": "./node_modules/moment/locale/ml.js", "./ml.js": "./node_modules/moment/locale/ml.js", "./mn": "./node_modules/moment/locale/mn.js", "./mn.js": "./node_modules/moment/locale/mn.js", "./mr": "./node_modules/moment/locale/mr.js", "./mr.js": "./node_modules/moment/locale/mr.js", "./ms": "./node_modules/moment/locale/ms.js", "./ms-my": "./node_modules/moment/locale/ms-my.js", "./ms-my.js": "./node_modules/moment/locale/ms-my.js", "./ms.js": "./node_modules/moment/locale/ms.js", "./mt": "./node_modules/moment/locale/mt.js", "./mt.js": "./node_modules/moment/locale/mt.js", "./my": "./node_modules/moment/locale/my.js", "./my.js": "./node_modules/moment/locale/my.js", "./nb": "./node_modules/moment/locale/nb.js", "./nb.js": "./node_modules/moment/locale/nb.js", "./ne": "./node_modules/moment/locale/ne.js", "./ne.js": "./node_modules/moment/locale/ne.js", "./nl": "./node_modules/moment/locale/nl.js", "./nl-be": "./node_modules/moment/locale/nl-be.js", "./nl-be.js": "./node_modules/moment/locale/nl-be.js", "./nl.js": "./node_modules/moment/locale/nl.js", "./nn": "./node_modules/moment/locale/nn.js", "./nn.js": "./node_modules/moment/locale/nn.js", "./oc-lnc": "./node_modules/moment/locale/oc-lnc.js", "./oc-lnc.js": "./node_modules/moment/locale/oc-lnc.js", "./pa-in": "./node_modules/moment/locale/pa-in.js", "./pa-in.js": "./node_modules/moment/locale/pa-in.js", "./pl": "./node_modules/moment/locale/pl.js", "./pl.js": "./node_modules/moment/locale/pl.js", "./pt": "./node_modules/moment/locale/pt.js", "./pt-br": "./node_modules/moment/locale/pt-br.js", "./pt-br.js": "./node_modules/moment/locale/pt-br.js", "./pt.js": "./node_modules/moment/locale/pt.js", "./ro": "./node_modules/moment/locale/ro.js", "./ro.js": "./node_modules/moment/locale/ro.js", "./ru": "./node_modules/moment/locale/ru.js", "./ru.js": "./node_modules/moment/locale/ru.js", "./sd": "./node_modules/moment/locale/sd.js", "./sd.js": "./node_modules/moment/locale/sd.js", "./se": "./node_modules/moment/locale/se.js", "./se.js": "./node_modules/moment/locale/se.js", "./si": "./node_modules/moment/locale/si.js", "./si.js": "./node_modules/moment/locale/si.js", "./sk": "./node_modules/moment/locale/sk.js", "./sk.js": "./node_modules/moment/locale/sk.js", "./sl": "./node_modules/moment/locale/sl.js", "./sl.js": "./node_modules/moment/locale/sl.js", "./sq": "./node_modules/moment/locale/sq.js", "./sq.js": "./node_modules/moment/locale/sq.js", "./sr": "./node_modules/moment/locale/sr.js", "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", "./sr.js": "./node_modules/moment/locale/sr.js", "./ss": "./node_modules/moment/locale/ss.js", "./ss.js": "./node_modules/moment/locale/ss.js", "./sv": "./node_modules/moment/locale/sv.js", "./sv.js": "./node_modules/moment/locale/sv.js", "./sw": "./node_modules/moment/locale/sw.js", "./sw.js": "./node_modules/moment/locale/sw.js", "./ta": "./node_modules/moment/locale/ta.js", "./ta.js": "./node_modules/moment/locale/ta.js", "./te": "./node_modules/moment/locale/te.js", "./te.js": "./node_modules/moment/locale/te.js", "./tet": "./node_modules/moment/locale/tet.js", "./tet.js": "./node_modules/moment/locale/tet.js", "./tg": "./node_modules/moment/locale/tg.js", "./tg.js": "./node_modules/moment/locale/tg.js", "./th": "./node_modules/moment/locale/th.js", "./th.js": "./node_modules/moment/locale/th.js", "./tk": "./node_modules/moment/locale/tk.js", "./tk.js": "./node_modules/moment/locale/tk.js", "./tl-ph": "./node_modules/moment/locale/tl-ph.js", "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", "./tlh": "./node_modules/moment/locale/tlh.js", "./tlh.js": "./node_modules/moment/locale/tlh.js", "./tr": "./node_modules/moment/locale/tr.js", "./tr.js": "./node_modules/moment/locale/tr.js", "./tzl": "./node_modules/moment/locale/tzl.js", "./tzl.js": "./node_modules/moment/locale/tzl.js", "./tzm": "./node_modules/moment/locale/tzm.js", "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", "./tzm.js": "./node_modules/moment/locale/tzm.js", "./ug-cn": "./node_modules/moment/locale/ug-cn.js", "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", "./uk": "./node_modules/moment/locale/uk.js", "./uk.js": "./node_modules/moment/locale/uk.js", "./ur": "./node_modules/moment/locale/ur.js", "./ur.js": "./node_modules/moment/locale/ur.js", "./uz": "./node_modules/moment/locale/uz.js", "./uz-latn": "./node_modules/moment/locale/uz-latn.js", "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", "./uz.js": "./node_modules/moment/locale/uz.js", "./vi": "./node_modules/moment/locale/vi.js", "./vi.js": "./node_modules/moment/locale/vi.js", "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", "./yo": "./node_modules/moment/locale/yo.js", "./yo.js": "./node_modules/moment/locale/yo.js", "./zh-cn": "./node_modules/moment/locale/zh-cn.js", "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", "./zh-hk": "./node_modules/moment/locale/zh-hk.js", "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", "./zh-mo": "./node_modules/moment/locale/zh-mo.js", "./zh-mo.js": "./node_modules/moment/locale/zh-mo.js", "./zh-tw": "./node_modules/moment/locale/zh-tw.js", "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" }; function webpackContext(req) { var id = webpackContextResolve(req); var module = __webpack_require__(id); return module; } function webpackContextResolve(req) { var id = map[req]; if(!(id + 1)) { // check for number or string var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; } return id; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$"; /***/ }), /***/ "./src/$$_lazy_route_resource lazy recursive": /*!**********************************************************!*\ !*** ./src/$$_lazy_route_resource lazy namespace object ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { function webpackEmptyAsyncContext(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncaught exception popping up in devtools return Promise.resolve().then(function() { var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; }); } webpackEmptyAsyncContext.keys = function() { return []; }; webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; module.exports = webpackEmptyAsyncContext; webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive"; /***/ }), /***/ "./src/app/angular2-materialize/custom-event-polyfill.ts": /*!***************************************************************!*\ !*** ./src/app/angular2-materialize/custom-event-polyfill.ts ***! \***************************************************************/ /*! exports provided: CustomEvent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomEvent", function() { return CustomEvent; }); function CustomEvent(type, detail, params) { if (detail === void 0) { detail = undefined; } if (params === void 0) { params = { bubbles: false, cancelable: false }; } var event = document.createEvent('CustomEvent'); event.initCustomEvent(type, params.bubbles, params.cancelable, detail); return event; } if ('Event' in window) { CustomEvent.prototype = window.Event.prototype; } /***/ }), /***/ "./src/app/angular2-materialize/index.ts": /*!***********************************************!*\ !*** ./src/app/angular2-materialize/index.ts ***! \***********************************************/ /*! exports provided: MaterializeDirective, MaterializeModule, toast */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toast", function() { return toast; }); /* harmony import */ var _materialize_directive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./materialize-directive */ "./src/app/angular2-materialize/materialize-directive.ts"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MaterializeDirective", function() { return _materialize_directive__WEBPACK_IMPORTED_MODULE_0__["MaterializeDirective"]; }); /* harmony import */ var _materialize_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./materialize-module */ "./src/app/angular2-materialize/materialize-module.ts"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MaterializeModule", function() { return _materialize_module__WEBPACK_IMPORTED_MODULE_1__["MaterializeModule"]; }); if (!('Materialize' in window)) { throw new Error("Couldn't find Materialize object on window. It is created by the materialize-css library. Please import materialize-css before importing angular2-materialize."); } if (!('Waves' in window)) { throw new Error("Couldn't find Waves object on window. It is supposed to be created by the materialize-css library. Please import materialize-css before importing angular2-materialize."); } Waves.displayEffect(); function toast() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } Materialize.toast.apply(Materialize, args); } // polyfill remove any elem in DOM - https://github.com/InfomediaLtd/angular2-materialize/issues/377 (IE) if (!Element.prototype.remove) { Element.prototype.remove = function remove() { if (this.parentNode) { this.parentNode.removeChild(this); } }; } /***/ }), /***/ "./src/app/angular2-materialize/materialize-directive.ts": /*!***************************************************************!*\ !*** ./src/app/angular2-materialize/materialize-directive.ts ***! \***************************************************************/ /*! exports provided: MaterializeDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterializeDirective", function() { return MaterializeDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _custom_event_polyfill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./custom-event-polyfill */ "./src/app/angular2-materialize/custom-event-polyfill.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var MaterializeDirective = /** @class */ (function () { function MaterializeDirective(_el) { this._el = _el; this._params = null; this._functionName = null; this.previousValue = null; this.previousDisabled = false; this._waitFunction = {}; this.changeListenerShouldBeAdded = true; this.init = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.initialized = false; } Object.defineProperty(MaterializeDirective.prototype, "materializeParams", { set: function (params) { this._params = params; this.performElementUpdates(); }, enumerable: true, configurable: true }); Object.defineProperty(MaterializeDirective.prototype, "materializeActions", { set: function (actions) { var _this = this; actions.subscribe(function (action) { window.setTimeout(function () { if (typeof action === 'string') { _this.performLocalElementUpdates(action); } else { _this.performLocalElementUpdates(action.action, action.params); } }, 1); }); }, enumerable: true, configurable: true }); Object.defineProperty(MaterializeDirective.prototype, "materialize", { set: function (functionName) { this._functionName = functionName; }, enumerable: true, configurable: true }); Object.defineProperty(MaterializeDirective.prototype, "materializeSelectOptions", { // this is here to trigger change detection for select elements set: function (options) { }, enumerable: true, configurable: true }); MaterializeDirective.prototype.ngAfterViewInit = function () { this.performElementUpdates(); }; MaterializeDirective.prototype.ngOnChanges = function (_unused) { var _this = this; if (this.isSelect()) { var nativeElement = this._el.nativeElement; var jQueryElement = $(nativeElement); // run performLocalElementUpdates() only if dropdown closed // otherwise the dropdown closes unexpected if (!jQueryElement.attr('multiple') || jQueryElement.parent().find('input.active').length === 0) { setTimeout(function () { return _this.performLocalElementUpdates(); }, 10); } } }; MaterializeDirective.prototype.ngOnDestroy = function () { this.performElementRemotion(); }; MaterializeDirective.prototype.ngDoCheck = function () { var nativeElement = this._el.nativeElement; var jQueryElement = $(nativeElement); if (this.isSelect()) { var shouldUpdate = false; if (nativeElement.disabled != this.previousDisabled) { this.previousDisabled = nativeElement.disabled; shouldUpdate = true; } if (!jQueryElement.attr('multiple') && nativeElement.value != this.previousValue) { // handle select changes of the model this.previousValue = nativeElement.value; shouldUpdate = true; } if (shouldUpdate) { this.performLocalElementUpdates(); } } else if (this.isTextarea()) { if (nativeElement.value != this.previousValue) { this.previousValue = nativeElement.value; this.performElementUpdates(); } } return false; }; MaterializeDirective.prototype.performElementRemotion = function () { if (this.isTooltip()) { var nativeElement = this._el.nativeElement; var jQueryElement = $(nativeElement); var tooltipId = jQueryElement.attr('data-tooltip-id'); if (tooltipId) { $('#' + tooltipId).remove(); } } }; MaterializeDirective.prototype.performElementUpdates = function () { var _this = this; // it should have been created by now, but confirm anyway if (Materialize && Materialize.updateTextFields) { Materialize.updateTextFields(); } // handle select changes from the HTML if (this.isSelect() && this.changeListenerShouldBeAdded) { var nativeElement_1 = this._el.nativeElement; var jQueryElement = $(nativeElement_1); jQueryElement.on('change', function (e) { if (!e.originalEvent || !e.originalEvent.internalToMaterialize) { var event_1 = document.createEvent('CustomEvent'); // if (jQueryElement.attr("multiple")) { // event.initCustomEvent("input",false,false,undefined); // } // else { event_1.initCustomEvent('change', false, false, undefined); // } event_1.internalToMaterialize = true; nativeElement_1.dispatchEvent(event_1); } }); this.changeListenerShouldBeAdded = false; } if (this.isAutocomplete()) { var nativeElement_2 = this._el.nativeElement; var jQueryElement = $(nativeElement_2); jQueryElement.on('change', function (e) { return nativeElement_2.dispatchEvent(Object(_custom_event_polyfill__WEBPACK_IMPORTED_MODULE_1__["CustomEvent"])('input')); }); } if (this.isDatePicker()) { var nativeElement_3 = this._el.nativeElement; var jqueryPickerElement_1 = $(nativeElement_3); var datePicker = jqueryPickerElement_1[this._functionName].apply(jqueryPickerElement_1, this._params); var picker_1 = datePicker.pickadate('picker'); setTimeout(function () { if (_this.ngModel) { picker_1.set('select', _this.ngModel); } else { var value = jqueryPickerElement_1.val(); if (value && value.length > 0) { picker_1.set('select', value); } } jqueryPickerElement_1.on('change', function (e) { return nativeElement_3.dispatchEvent(Object(_custom_event_polyfill__WEBPACK_IMPORTED_MODULE_1__["CustomEvent"])('input')); }); jqueryPickerElement_1.on('mousedown', function (e) { return e.preventDefault(); }); // TODO consider removal after update }); } if (this.isTimePicker()) { var nativeElement_4 = this._el.nativeElement; var jqueryPickerElement_2 = $(nativeElement_4); var timePicker = jqueryPickerElement_2[this._functionName].apply(jqueryPickerElement_2, this._params); var picker_2 = timePicker.pickatime('picker'); setTimeout(function () { if (_this.ngModel) { picker_2.val(_this.ngModel); } else { picker_2.val(jqueryPickerElement_2.val()); } jqueryPickerElement_2.on('change', function (e) { return nativeElement_4.dispatchEvent(Object(_custom_event_polyfill__WEBPACK_IMPORTED_MODULE_1__["CustomEvent"])('input')); }); jqueryPickerElement_2.on('mousedown', function (e) { return e.preventDefault(); }); // TODO consider removal after update }); } if (this.isChips()) { var nativeElement_5 = this._el.nativeElement; var jQueryElement = $(nativeElement_5); jQueryElement.on('chip.add', function (e, chip) { return nativeElement_5.dispatchEvent(Object(_custom_event_polyfill__WEBPACK_IMPORTED_MODULE_1__["CustomEvent"])('chip.add', chip)); }); jQueryElement.on('chip.delete', function (e, chip) { return nativeElement_5.dispatchEvent(Object(_custom_event_polyfill__WEBPACK_IMPORTED_MODULE_1__["CustomEvent"])('chip.delete', chip)); }); jQueryElement.on('chip.select', function (e, chip) { return nativeElement_5.dispatchEvent(Object(_custom_event_polyfill__WEBPACK_IMPORTED_MODULE_1__["CustomEvent"])('chip.select', chip)); }); } if (this.isTextarea()) { this._el.nativeElement.dispatchEvent(Object(_custom_event_polyfill__WEBPACK_IMPORTED_MODULE_1__["CustomEvent"])('autoresize', { bubbles: true, cancelable: false, detail: undefined })); } this.performLocalElementUpdates(); }; MaterializeDirective.prototype.performLocalElementUpdates = function (functionName, params) { var _this = this; if (functionName === void 0) { functionName = this._functionName; } if (params === void 0) { params = this._params; } if (this._waitFunction[functionName]) { return; } this._waitFunction[functionName] = true; $(document).ready(function () { _this._waitFunction[functionName] = false; if (functionName) { var jQueryElement = $(_this._el.nativeElement); if (jQueryElement[functionName]) { if (params) { if (params instanceof Array) { jQueryElement[functionName].apply(jQueryElement, params); } else { throw new Error('Params has to be an array.'); } } else { jQueryElement[functionName](); } } else { // fallback to running this function on the global Materialize object if (Materialize[functionName]) { if (params) { if (params instanceof Array) { Materialize[functionName].apply(Materialize, params); } else { throw new Error('Params has to be an array.'); } } else { Materialize[functionName](); } } else { throw new Error("Couldn't find materialize function ''" + functionName + "' on element or the global Materialize object."); } } if (!_this.initialized) { _this.initialized = true; _this.init.emit(); } } }); }; MaterializeDirective.prototype.isTooltip = function () { return (this._functionName && this._functionName === 'tooltip'); }; MaterializeDirective.prototype.isSelect = function () { return (this._functionName && this._functionName === 'material_select'); }; MaterializeDirective.prototype.isDatePicker = function () { return (this._functionName && this._functionName === 'pickadate'); }; MaterializeDirective.prototype.isTimePicker = function () { return (this._functionName && this._functionName === 'pickatime'); }; MaterializeDirective.prototype.isChips = function () { return (this._functionName && this._functionName === 'material_chip'); }; MaterializeDirective.prototype.isAutocomplete = function () { return (this._functionName && this._functionName === 'autocomplete'); }; MaterializeDirective.prototype.isTextarea = function () { return this._el.nativeElement.nodeName == 'TEXTAREA'; }; MaterializeDirective.prototype.enableDPButtons = function () { $('.picker__clear').removeAttr('disabled'); $('.picker__today').removeAttr('disabled'); $('.picker__close').removeAttr('disabled'); $('.picker__select--year').removeAttr('disabled'); $('.picker__select--month').removeAttr('disabled'); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], MaterializeDirective.prototype, "init", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], MaterializeDirective.prototype, "materializeParams", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]]) ], MaterializeDirective.prototype, "materializeActions", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], MaterializeDirective.prototype, "materialize", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], MaterializeDirective.prototype, "materializeSelectOptions", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], MaterializeDirective.prototype, "ngModel", void 0); MaterializeDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[materialize]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], MaterializeDirective); return MaterializeDirective; }()); /***/ }), /***/ "./src/app/angular2-materialize/materialize-module.ts": /*!************************************************************!*\ !*** ./src/app/angular2-materialize/materialize-module.ts ***! \************************************************************/ /*! exports provided: MaterializeModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterializeModule", function() { return MaterializeModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js"); /* harmony import */ var _materialize_directive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./materialize-directive */ "./src/app/angular2-materialize/materialize-directive.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var MaterializeModule = /** @class */ (function () { function MaterializeModule() { } MaterializeModule_1 = MaterializeModule; MaterializeModule.forRoot = function () { return { ngModule: MaterializeModule_1 }; }; MaterializeModule = MaterializeModule_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ declarations: [ _materialize_directive__WEBPACK_IMPORTED_MODULE_2__["MaterializeDirective"] ], imports: [ _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"] ], exports: [ _materialize_directive__WEBPACK_IMPORTED_MODULE_2__["MaterializeDirective"] ] }) ], MaterializeModule); return MaterializeModule; var MaterializeModule_1; }()); /***/ }), /***/ "./src/app/app.constants.ts": /*!**********************************!*\ !*** ./src/app/app.constants.ts ***! \**********************************/ /*! exports provided: Const, I18N_ROOT, DEFAULT_LANGUAGE_ID, EXPORT_VERSION_NATURAL_KEY, CRANE_MODE_NATURAL_KEY, NOT_FOUND_URL, LOGIN_PAGE_URL, CHANGE_PASSWORD_PAGE_URL, HOME_PAGE_URL, DYNAMIC_PAGE_URL, DYNAMIC_TAB_URL, NOT_AVAILABLE, MonthDisplayText, DayDisplayText, NotificationTypeDisplayText, MaintenanceTypeDisplayText, TimeUnitDisplayText, StatisticGranularityDisplayText, StatisticChartTypeDisplayText, isStringEmpty, isAliveHeartbeatStatus, formatHeartbeatIcon, twoDigitsNumber, getExportFileName */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Const", function() { return Const; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I18N_ROOT", function() { return I18N_ROOT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_LANGUAGE_ID", function() { return DEFAULT_LANGUAGE_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EXPORT_VERSION_NATURAL_KEY", function() { return EXPORT_VERSION_NATURAL_KEY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CRANE_MODE_NATURAL_KEY", function() { return CRANE_MODE_NATURAL_KEY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOT_FOUND_URL", function() { return NOT_FOUND_URL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOGIN_PAGE_URL", function() { return LOGIN_PAGE_URL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CHANGE_PASSWORD_PAGE_URL", function() { return CHANGE_PASSWORD_PAGE_URL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOME_PAGE_URL", function() { return HOME_PAGE_URL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DYNAMIC_PAGE_URL", function() { return DYNAMIC_PAGE_URL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DYNAMIC_TAB_URL", function() { return DYNAMIC_TAB_URL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOT_AVAILABLE", function() { return NOT_AVAILABLE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonthDisplayText", function() { return MonthDisplayText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DayDisplayText", function() { return DayDisplayText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationTypeDisplayText", function() { return NotificationTypeDisplayText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaintenanceTypeDisplayText", function() { return MaintenanceTypeDisplayText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeUnitDisplayText", function() { return TimeUnitDisplayText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticGranularityDisplayText", function() { return StatisticGranularityDisplayText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticChartTypeDisplayText", function() { return StatisticChartTypeDisplayText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStringEmpty", function() { return isStringEmpty; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAliveHeartbeatStatus", function() { return isAliveHeartbeatStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatHeartbeatIcon", function() { return formatHeartbeatIcon; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "twoDigitsNumber", function() { return twoDigitsNumber; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getExportFileName", function() { return getExportFileName; }); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var types_project__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/project */ "./src/types/project.ts"); var Const = /** @class */ (function () { function Const() { } Const.HighCubeContainerHeight = 2.896; Const.GrappleHeight = 6; Const.IsoContainerHeight = 2.591; Const.HeightTolerance = 0.1; Const.NoValuePlaceholder = '•••'; Const.StateOk = '✔️'; Const.StateError = '❌'; Const.StateSlow = '🐢'; Const.StateUnknown = '❔'; Const.CurrentLanguageCookieKey = 'Current-Language'; Const.AliasGantry = 'gantry'; Const.AliasCockpit = 'cockpit'; Const.AliasConfigurableSettings = 'configurableSettings'; Const.AliasOperatingHours = 'operatingHours'; Const.AliasFireExtinguishing = 'fireExtinguishing'; Const.AliasToolbar = 'toolbar'; Const.AliasHoist = 'hoist'; Const.AliasSlewingGear = 'slewingGear'; Const.AliasSpreader = 'spreader'; Const.AliasTraverse = 'magneticTraverse'; Const.AliasAutomaticMode = 'automaticMode'; Const.AliasAutomaticModeHalfOrder = 'automaticModeHalfOrder'; Const.AliasTrolley = 'trolley'; Const.AliasCraneOrientation = 'craneOrientation'; Const.UseExternalLink = 'Use external link'; return Const; }()); var I18N_ROOT = '/config/i18n'; var DEFAULT_LANGUAGE_ID = 'en'; var EXPORT_VERSION_NATURAL_KEY = 'Gen_ExportVersion'; var CRANE_MODE_NATURAL_KEY = 'Gen_CraneMode'; var NOT_FOUND_URL = 'not-found'; var LOGIN_PAGE_URL = 'login'; var CHANGE_PASSWORD_PAGE_URL = 'changePassword'; var HOME_PAGE_URL = 'home'; var DYNAMIC_PAGE_URL = 'dynamic-page-alias'; var DYNAMIC_TAB_URL = 'dynamic-tab-alias'; var NOT_AVAILABLE = 'N/A'; var MonthDisplayText = { "january": "january", "february": "february", "march": "march", "april": "april", "may": "may", "june": "june", "july": "july", "august": "august", "september": "september", "october": "october", "november": "november", "december": "december", }; var DayDisplayText = { "monday": "monday", "tuesday": "tuesday", "wednesday": "wednesday", "thursday": "thursday", "friday": "friday", "saturday": "saturday", "sunday": "sunday", }; var NotificationTypeDisplayText = (_a = {}, _a[types_config__WEBPACK_IMPORTED_MODULE_0__["NotificationType"].Info] = "info", _a[types_config__WEBPACK_IMPORTED_MODULE_0__["NotificationType"].Warning] = "warning", _a[types_config__WEBPACK_IMPORTED_MODULE_0__["NotificationType"].Error] = "error", _a); var MaintenanceTypeDisplayText = (_b = {}, _b[types_config__WEBPACK_IMPORTED_MODULE_0__["MaintenanceType"].OneTime] = "one_time", _b[types_config__WEBPACK_IMPORTED_MODULE_0__["MaintenanceType"].Regular] = "regular", _b[types_config__WEBPACK_IMPORTED_MODULE_0__["MaintenanceType"].SecurityRelevant] = "security_relevant", _b); var TimeUnitDisplayText = (_c = {}, _c[types_config__WEBPACK_IMPORTED_MODULE_0__["TimeUnit"].Day] = "day", _c[types_config__WEBPACK_IMPORTED_MODULE_0__["TimeUnit"].Week] = "week", _c[types_config__WEBPACK_IMPORTED_MODULE_0__["TimeUnit"].Month] = "month", _c); var StatisticGranularityDisplayText = (_d = {}, _d[types_project__WEBPACK_IMPORTED_MODULE_1__["StatisticGranularity"].Hour] = "hour", _d[types_project__WEBPACK_IMPORTED_MODULE_1__["StatisticGranularity"].Day] = "day", _d[types_project__WEBPACK_IMPORTED_MODULE_1__["StatisticGranularity"].Week] = "week", _d[types_project__WEBPACK_IMPORTED_MODULE_1__["StatisticGranularity"].Month] = "month", _d[types_project__WEBPACK_IMPORTED_MODULE_1__["StatisticGranularity"].Year] = "year", _d); var StatisticChartTypeDisplayText = (_e = {}, _e[types_project__WEBPACK_IMPORTED_MODULE_1__["StatisticChartType"].Bar] = "bar", _e[types_project__WEBPACK_IMPORTED_MODULE_1__["StatisticChartType"].Line] = "line", _e); function isStringEmpty(str) { return (!str || 0 === str.length); } function isAliveHeartbeatStatus(status) { switch (status) { case types_config__WEBPACK_IMPORTED_MODULE_0__["PlcHeartbeatStatus"].CONNECTION_OK: return true; case types_config__WEBPACK_IMPORTED_MODULE_0__["PlcHeartbeatCycleStatus"].COPY_CYCLE_OK: return true; case types_config__WEBPACK_IMPORTED_MODULE_0__["PlcHeartbeatStatus"].CONNECTION_LOST: return false; case types_config__WEBPACK_IMPORTED_MODULE_0__["PlcHeartbeatCycleStatus"].COPY_CYCLE_ERROR: return false; case types_config__WEBPACK_IMPORTED_MODULE_0__["PlcHeartbeatCycleStatus"].COPY_CYCLE_SLOW: return true; default: return false; } } function formatHeartbeatIcon(status) { if (status != null) { if (typeof status === 'boolean') { return status == true ? Const.StateOk : Const.StateError; } else { return isAliveHeartbeatStatus(status) ? Const.StateOk : Const.StateError; } } return Const.StateUnknown; } function twoDigitsNumber(value) { return ('0' + value).slice(-2); } function getExportFileName(translatedTitle, now) { var year = now.getFullYear(); var month = twoDigitsNumber(now.getMonth() + 1); var day = twoDigitsNumber(now.getDate()); var hour = twoDigitsNumber(now.getHours()); var minute = twoDigitsNumber(now.getMinutes()); var second = twoDigitsNumber(now.getSeconds()); var datePrefix = "" + year + month + day + "_" + hour + minute + second; return (translatedTitle + "_" + datePrefix).split(' ').join(''); } var _a, _b, _c, _d, _e; /***/ }), /***/ "./src/app/app.module.ts": /*!*******************************!*\ !*** ./src/app/app.module.ts ***! \*******************************/ /*! exports provided: AsyncTranslateHttpLoader, l10nConfig, initL10n, appInitializerFactory, AppModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncTranslateHttpLoader", function() { return AsyncTranslateHttpLoader; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l10nConfig", function() { return l10nConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initL10n", function() { return initL10n; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "appInitializerFactory", function() { return appInitializerFactory; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; }); /* harmony import */ var _guards_about_modal_guard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./guards/about-modal.guard */ "./src/app/guards/about-modal.guard.ts"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _components_gauges_container_movement_gauge_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/gauges/container-movement-gauge.component */ "./src/app/components/gauges/container-movement-gauge.component.ts"); /* harmony import */ var _services_metrics_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./services/metrics.service */ "./src/app/services/metrics.service.ts"); /* harmony import */ var _services_auxiliary_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./services/auxiliary.service */ "./src/app/services/auxiliary.service.ts"); /* harmony import */ var app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/maintenance/maintenance-point.service */ "./src/app/services/maintenance/maintenance-point.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js"); /* harmony import */ var _angular_http__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/http */ "./node_modules/@angular/http/fesm5/http.js"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js"); /* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/platform-browser/animations */ "./node_modules/@angular/platform-browser/fesm5/animations.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @swimlane/ngx-datatable */ "./node_modules/@swimlane/ngx-datatable/release/index.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var angular2_grid__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! angular2-grid */ "./node_modules/angular2-grid/main.js"); /* harmony import */ var angular2_moment__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! angular2-moment */ "./node_modules/angular2-moment/index.js"); /* harmony import */ var angular2_moment__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(angular2_moment__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var app_components_gauges_clock_gauge_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/components/gauges/clock-gauge.component */ "./src/app/components/gauges/clock-gauge.component.ts"); /* harmony import */ var app_components_gauges_battery_gauge_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/components/gauges/battery-gauge.component */ "./src/app/components/gauges/battery-gauge.component.ts"); /* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts"); /* harmony import */ var ng2_pdf_viewer__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ng2-pdf-viewer */ "./node_modules/ng2-pdf-viewer/ng2-pdf-viewer.es5.js"); /* harmony import */ var ngx_cookie__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ngx-cookie */ "./node_modules/ngx-cookie/fesm5/ngx-cookie.js"); /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ngx-toastr */ "./node_modules/ngx-toastr/fesm5/ngx-toastr.js"); /* harmony import */ var _angular2_materialize__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./angular2-materialize */ "./src/app/angular2-materialize/index.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./configuration */ "./src/app/configuration.ts"); /* harmony import */ var _signalr_configuration__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./signalr-configuration */ "./src/app/signalr-configuration.ts"); /* harmony import */ var _app_routes__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./app.routes */ "./src/app/app.routes.ts"); /* harmony import */ var _components_app_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/app.component */ "./src/app/components/app.component.ts"); /* harmony import */ var _components_automatic_mode_automatic_mode_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/automatic-mode/automatic-mode.component */ "./src/app/components/automatic-mode/automatic-mode.component.ts"); /* harmony import */ var _components_automatic_mode_half_order_automatic_mode_half_order_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/automatic-mode-half-order/automatic-mode-half-order.component */ "./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.ts"); /* harmony import */ var _components_cards_card_loader_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/cards/card-loader.component */ "./src/app/components/cards/card-loader.component.ts"); /* harmony import */ var _components_cards_rail_gantry_card_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/cards/rail-gantry-card.component */ "./src/app/components/cards/rail-gantry-card.component.ts"); /* harmony import */ var _components_cards_rubber_tire_gantry_card_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/cards/rubber-tire-gantry-card.component */ "./src/app/components/cards/rubber-tire-gantry-card.component.ts"); /* harmony import */ var _components_cards_deprecated_hoist_card_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/cards/deprecated/hoist-card.component */ "./src/app/components/cards/deprecated/hoist-card.component.ts"); /* harmony import */ var _components_cards_slewing_gear_card_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/cards/slewing-gear-card.component */ "./src/app/components/cards/slewing-gear-card.component.ts"); /* harmony import */ var _components_cards_spreader_card_component__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/cards/spreader-card.component */ "./src/app/components/cards/spreader-card.component.ts"); /* harmony import */ var _components_cards_traverse_card_component__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/cards/traverse-card.component */ "./src/app/components/cards/traverse-card.component.ts"); /* harmony import */ var _components_cards_trolley_card_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/cards/trolley-card.component */ "./src/app/components/cards/trolley-card.component.ts"); /* harmony import */ var _components_cards_configurable_hoist_card_component__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./components/cards/configurable-hoist-card.component */ "./src/app/components/cards/configurable-hoist-card.component.ts"); /* harmony import */ var _components_cards_configurable_grapple_card_component__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./components/cards/configurable-grapple-card.component */ "./src/app/components/cards/configurable-grapple-card.component.ts"); /* harmony import */ var _components_cards_configurable_svg_card_component__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./components/cards/configurable-svg-card.component */ "./src/app/components/cards/configurable-svg-card.component.ts"); /* harmony import */ var _components_cards_charger_trolley_card_component__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./components/cards/charger-trolley-card.component */ "./src/app/components/cards/charger-trolley-card.component.ts"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js"); /* harmony import */ var _components_common_detail_page_component__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./components/common/detail-page.component */ "./src/app/components/common/detail-page.component.ts"); /* harmony import */ var _components_common_detail_router_page_component__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./components/common/detail-router-page.component */ "./src/app/components/common/detail-router-page.component.ts"); /* harmony import */ var _components_common_detail_tab_page_component__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./components/common/detail-tab-page.component */ "./src/app/components/common/detail-tab-page.component.ts"); /* harmony import */ var _components_common_common_components_view_footer_view_footer_component__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./components/common/common-components/view-footer/view-footer.component */ "./src/app/components/common/common-components/view-footer/view-footer.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_container_svg_footer_svg_footer_component__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component */ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.ts"); /* harmony import */ var _components_dynamic_page_tabbed_dynamic_container_tabbed_dynamic_container_component__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component */ "./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.ts"); /* harmony import */ var _components_common_quickview_switch_component__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./components/common/quickview-switch.component */ "./src/app/components/common/quickview-switch.component.ts"); /* harmony import */ var _components_common_common_components_quickview_trend_switch_quickview_trend_switch_component__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./components/common/common-components/quickview-trend-switch/quickview-trend-switch.component */ "./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.ts"); /* harmony import */ var _components_common_spinner_component__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./components/common/spinner.component */ "./src/app/components/common/spinner.component.ts"); /* harmony import */ var _components_common_common_components_state_progressbar_state_progressbar_component__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./components/common/common-components/state-progressbar/state-progressbar.component */ "./src/app/components/common/common-components/state-progressbar/state-progressbar.component.ts"); /* harmony import */ var _components_common_text_filter_component__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./components/common/text-filter.component */ "./src/app/components/common/text-filter.component.ts"); /* harmony import */ var _components_common_common_components_value_box_value_box_component__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./components/common/common-components/value-box/value-box.component */ "./src/app/components/common/common-components/value-box/value-box.component.ts"); /* harmony import */ var _components_datapoints_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./components/datapoints/datapoint-collection.component */ "./src/app/components/datapoints/datapoint-collection.component.ts"); /* harmony import */ var _components_datapoints_double_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./components/datapoints/double-datapoint-collection.component */ "./src/app/components/datapoints/double-datapoint-collection.component.ts"); /* harmony import */ var _components_datapoints_missing_datapoint_info_component__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./components/datapoints/missing-datapoint-info.component */ "./src/app/components/datapoints/missing-datapoint-info.component.ts"); /* harmony import */ var _components_datapoints_plain_datapoint_component__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./components/datapoints/plain-datapoint.component */ "./src/app/components/datapoints/plain-datapoint.component.ts"); /* harmony import */ var _components_footer_footer_component__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./components/footer/footer.component */ "./src/app/components/footer/footer.component.ts"); /* harmony import */ var _components_fullscreen_fullscreen_pdf_viewer_component__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./components/fullscreen/fullscreen-pdf-viewer.component */ "./src/app/components/fullscreen/fullscreen-pdf-viewer.component.ts"); /* harmony import */ var _components_gantry_gantry_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./components/gantry/gantry-ctk-electrical-svg.component */ "./src/app/components/gantry/gantry-ctk-electrical-svg.component.ts"); /* harmony import */ var _components_gantry_gantry_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./components/gantry/gantry-ctk-mechanical-svg.component */ "./src/app/components/gantry/gantry-ctk-mechanical-svg.component.ts"); /* harmony import */ var _components_gantry_gantry_rtg_electrical_svg_component__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./components/gantry/gantry-rtg-electrical-svg.component */ "./src/app/components/gantry/gantry-rtg-electrical-svg.component.ts"); /* harmony import */ var _components_gantry_gantry_rtg_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./components/gantry/gantry-rtg-mechanical-svg.component */ "./src/app/components/gantry/gantry-rtg-mechanical-svg.component.ts"); /* harmony import */ var _components_gantry_gantry_component__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./components/gantry/gantry.component */ "./src/app/components/gantry/gantry.component.ts"); /* harmony import */ var _components_gantry_gantry_diagnostics_component__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./components/gantry/gantry-diagnostics.component */ "./src/app/components/gantry/gantry-diagnostics.component.ts"); /* harmony import */ var _components_spreader_spreader_diagnostics_component__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./components/spreader/spreader-diagnostics.component */ "./src/app/components/spreader/spreader-diagnostics.component.ts"); /* harmony import */ var _components_traverse_traverse_diagnostics_component__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./components/traverse/traverse-diagnostics.component */ "./src/app/components/traverse/traverse-diagnostics.component.ts"); /* harmony import */ var _components_gauges_assistant_system_assistant_softlanding_gauge_component__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./components/gauges/assistant-system/assistant-softlanding-gauge.component */ "./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.ts"); /* harmony import */ var _components_gauges_floor_gauge_component__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./components/gauges/floor-gauge.component */ "./src/app/components/gauges/floor-gauge.component.ts"); /* harmony import */ var _components_gauges_icon_value_gauge_component__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./components/gauges/icon-value-gauge.component */ "./src/app/components/gauges/icon-value-gauge.component.ts"); /* harmony import */ var _components_gauges_position_cross_gauge_component__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./components/gauges/position-cross-gauge.component */ "./src/app/components/gauges/position-cross-gauge.component.ts"); /* harmony import */ var _components_gauges_radial_offset_gauge_component__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./components/gauges/radial-offset-gauge.component */ "./src/app/components/gauges/radial-offset-gauge.component.ts"); /* harmony import */ var _components_gauges_rotation_gauge_component__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./components/gauges/rotation-gauge.component */ "./src/app/components/gauges/rotation-gauge.component.ts"); /* harmony import */ var _components_gauges_side_shift_gauge_component__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./components/gauges/side-shift-gauge.component */ "./src/app/components/gauges/side-shift-gauge.component.ts"); /* harmony import */ var _components_gauges_vertical_position_gauge_component__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./components/gauges/vertical-position-gauge.component */ "./src/app/components/gauges/vertical-position-gauge.component.ts"); /* harmony import */ var _components_gauges_wind_direction_gauge_component__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./components/gauges/wind-direction-gauge.component */ "./src/app/components/gauges/wind-direction-gauge.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist-ctk-electrical-svg.component */ "./src/app/components/deprecated/hoist/hoist-ctk-electrical-svg.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist-ctk-mechanical-svg.component */ "./src/app/components/deprecated/hoist/hoist-ctk-mechanical-svg.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_rtg_electrical_svg_component__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist-rtg-electrical-svg.component */ "./src/app/components/deprecated/hoist/hoist-rtg-electrical-svg.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_rtg_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist-rtg-mechanical-svg.component */ "./src/app/components/deprecated/hoist/hoist-rtg-mechanical-svg.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_2m4w_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist-2m4w-mechanical-svg.component */ "./src/app/components/deprecated/hoist/hoist-2m4w-mechanical-svg.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_2m4w_electrical_svg_component__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist-2m4w-electrical-svg.component */ "./src/app/components/deprecated/hoist/hoist-2m4w-electrical-svg.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_component__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist.component */ "./src/app/components/deprecated/hoist/hoist.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_diagnostics_component__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist-diagnostics.component */ "./src/app/components/deprecated/hoist/hoist-diagnostics.component.ts"); /* harmony import */ var _components_home_home_component__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./components/home/home.component */ "./src/app/components/home/home.component.ts"); /* harmony import */ var _components_indicators_connection_indicator_component__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./components/indicators/connection-indicator.component */ "./src/app/components/indicators/connection-indicator.component.ts"); /* harmony import */ var _components_indicators_notification_indicator_component__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./components/indicators/notification-indicator.component */ "./src/app/components/indicators/notification-indicator.component.ts"); /* harmony import */ var _components_indicators_power_indicator_component__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./components/indicators/power-indicator.component */ "./src/app/components/indicators/power-indicator.component.ts"); /* harmony import */ var _components_indicators_toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./components/indicators/toolbar-indicator/toolbar-indicator.component */ "./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.ts"); /* harmony import */ var _components_indicators_progress_indicator_progress_indicator_component__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./components/indicators/progress-indicator/progress-indicator.component */ "./src/app/components/indicators/progress-indicator/progress-indicator.component.ts"); /* harmony import */ var _components_keyboard_numpad_numpad_component__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./components/keyboard/numpad/numpad.component */ "./src/app/components/keyboard/numpad/numpad.component.ts"); /* harmony import */ var _components_localizeddatepicker_localizeddatepicker_component__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./components/localizeddatepicker/localizeddatepicker.component */ "./src/app/components/localizeddatepicker/localizeddatepicker.component.ts"); /* harmony import */ var _components_localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./components/localizedtimepicker/localizedtimepicker.component */ "./src/app/components/localizedtimepicker/localizedtimepicker.component.ts"); /* harmony import */ var _components_login_login_component__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./components/login/login.component */ "./src/app/components/login/login.component.ts"); /* harmony import */ var _components_login_logout_component__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ./components/login/logout.component */ "./src/app/components/login/logout.component.ts"); /* harmony import */ var _components_maintenance_customer_maintenance_points_edit_component__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ./components/maintenance/customer-maintenance-points-edit.component */ "./src/app/components/maintenance/customer-maintenance-points-edit.component.ts"); /* harmony import */ var _components_maintenance_maintenance_entrylist_edit_component__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ./components/maintenance/maintenance-entrylist-edit.component */ "./src/app/components/maintenance/maintenance-entrylist-edit.component.ts"); /* harmony import */ var _components_maintenance_maintenance_entrylist_component__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./components/maintenance/maintenance-entrylist.component */ "./src/app/components/maintenance/maintenance-entrylist.component.ts"); /* harmony import */ var _components_maintenance_maintenance_history_component__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./components/maintenance/maintenance-history.component */ "./src/app/components/maintenance/maintenance-history.component.ts"); /* harmony import */ var _components_maintenance_maintenance_component__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./components/maintenance/maintenance.component */ "./src/app/components/maintenance/maintenance.component.ts"); /* harmony import */ var _components_modals_account_settings_account_settings_component__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./components/modals/account-settings/account-settings.component */ "./src/app/components/modals/account-settings/account-settings.component.ts"); /* harmony import */ var _components_modals_connection_modal_component__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./components/modals/connection-modal.component */ "./src/app/components/modals/connection-modal.component.ts"); /* harmony import */ var _components_modals_fullscreen_modal_component__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./components/modals/fullscreen-modal.component */ "./src/app/components/modals/fullscreen-modal.component.ts"); /* harmony import */ var _components_modals_fullscreen_print_preview_component__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./components/modals/fullscreen-print-preview.component */ "./src/app/components/modals/fullscreen-print-preview.component.ts"); /* harmony import */ var _components_modals_notification_log_component__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./components/modals/notification-log.component */ "./src/app/components/modals/notification-log.component.ts"); /* harmony import */ var _components_modals_quickview_component__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./components/modals/quickview.component */ "./src/app/components/modals/quickview.component.ts"); /* harmony import */ var _components_notifications_notification_entrylist_component__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./components/notifications/notification-entrylist.component */ "./src/app/components/notifications/notification-entrylist.component.ts"); /* harmony import */ var _components_notifications_notification_latestlist_component__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./components/notifications/notification-latestlist.component */ "./src/app/components/notifications/notification-latestlist.component.ts"); /* harmony import */ var _components_notifications_notification_statistics_component__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./components/notifications/notification-statistics.component */ "./src/app/components/notifications/notification-statistics.component.ts"); /* harmony import */ var _components_notifications_notification_component__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./components/notifications/notification.component */ "./src/app/components/notifications/notification.component.ts"); /* harmony import */ var _components_slewing_gear_slewing_gear_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./components/slewing-gear/slewing-gear-ctk-electrical-svg.component */ "./src/app/components/slewing-gear/slewing-gear-ctk-electrical-svg.component.ts"); /* harmony import */ var _components_slewing_gear_slewing_gear_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./components/slewing-gear/slewing-gear-ctk-mechanical-svg.component */ "./src/app/components/slewing-gear/slewing-gear-ctk-mechanical-svg.component.ts"); /* harmony import */ var _components_slewing_gear_slewing_gear_component__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./components/slewing-gear/slewing-gear.component */ "./src/app/components/slewing-gear/slewing-gear.component.ts"); /* harmony import */ var _components_spreader_spreader_svg_component__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./components/spreader/spreader-svg.component */ "./src/app/components/spreader/spreader-svg.component.ts"); /* harmony import */ var _components_spreader_spreader_component__WEBPACK_IMPORTED_MODULE_115__ = __webpack_require__(/*! ./components/spreader/spreader.component */ "./src/app/components/spreader/spreader.component.ts"); /* harmony import */ var _components_traverse_traverse_svg_component__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! ./components/traverse/traverse-svg.component */ "./src/app/components/traverse/traverse-svg.component.ts"); /* harmony import */ var _components_traverse_traverse_component__WEBPACK_IMPORTED_MODULE_117__ = __webpack_require__(/*! ./components/traverse/traverse.component */ "./src/app/components/traverse/traverse.component.ts"); /* harmony import */ var _components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_118__ = __webpack_require__(/*! ./components/toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _components_toolbar_toolbar_gauges_component__WEBPACK_IMPORTED_MODULE_119__ = __webpack_require__(/*! ./components/toolbar/toolbar-gauges.component */ "./src/app/components/toolbar/toolbar-gauges.component.ts"); /* harmony import */ var _components_toolbar_toolbar_terminal_mapping_component__WEBPACK_IMPORTED_MODULE_120__ = __webpack_require__(/*! ./components/toolbar/toolbar-terminal-mapping.component */ "./src/app/components/toolbar/toolbar-terminal-mapping.component.ts"); /* harmony import */ var _components_toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_121__ = __webpack_require__(/*! ./components/toolbar/toolbar.component */ "./src/app/components/toolbar/toolbar.component.ts"); /* harmony import */ var _components_trend_quickview_trend_quickview_trend_component__WEBPACK_IMPORTED_MODULE_122__ = __webpack_require__(/*! ./components/trend/quickview-trend/quickview-trend.component */ "./src/app/components/trend/quickview-trend/quickview-trend.component.ts"); /* harmony import */ var _components_analysis_analysis_component__WEBPACK_IMPORTED_MODULE_123__ = __webpack_require__(/*! ./components/analysis/analysis.component */ "./src/app/components/analysis/analysis.component.ts"); /* harmony import */ var _components_trolley_trolley_ctk_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_124__ = __webpack_require__(/*! ./components/trolley/trolley-ctk-double-girder-electrical-svg.component */ "./src/app/components/trolley/trolley-ctk-double-girder-electrical-svg.component.ts"); /* harmony import */ var _components_trolley_trolley_ctk_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_125__ = __webpack_require__(/*! ./components/trolley/trolley-ctk-double-girder-mechanical-svg.component */ "./src/app/components/trolley/trolley-ctk-double-girder-mechanical-svg.component.ts"); /* harmony import */ var _components_trolley_trolley_csx_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_126__ = __webpack_require__(/*! ./components/trolley/trolley-csx-double-girder-electrical-svg.component */ "./src/app/components/trolley/trolley-csx-double-girder-electrical-svg.component.ts"); /* harmony import */ var _components_trolley_trolley_csx_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_127__ = __webpack_require__(/*! ./components/trolley/trolley-csx-double-girder-mechanical-svg.component */ "./src/app/components/trolley/trolley-csx-double-girder-mechanical-svg.component.ts"); /* harmony import */ var _components_trolley_trolley_rtg_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_128__ = __webpack_require__(/*! ./components/trolley/trolley-rtg-double-girder-electrical-svg.component */ "./src/app/components/trolley/trolley-rtg-double-girder-electrical-svg.component.ts"); /* harmony import */ var _components_trolley_trolley_rtg_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_129__ = __webpack_require__(/*! ./components/trolley/trolley-rtg-double-girder-mechanical-svg.component */ "./src/app/components/trolley/trolley-rtg-double-girder-mechanical-svg.component.ts"); /* harmony import */ var _components_trolley_trolley_kc_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_130__ = __webpack_require__(/*! ./components/trolley/trolley-kc-double-girder-electrical-svg.component */ "./src/app/components/trolley/trolley-kc-double-girder-electrical-svg.component.ts"); /* harmony import */ var _components_trolley_trolley_kc_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_131__ = __webpack_require__(/*! ./components/trolley/trolley-kc-double-girder-mechanical-svg.component */ "./src/app/components/trolley/trolley-kc-double-girder-mechanical-svg.component.ts"); /* harmony import */ var _components_trolley_trolley_component__WEBPACK_IMPORTED_MODULE_132__ = __webpack_require__(/*! ./components/trolley/trolley.component */ "./src/app/components/trolley/trolley.component.ts"); /* harmony import */ var _components_user_management_user_detail_user_detail_component__WEBPACK_IMPORTED_MODULE_133__ = __webpack_require__(/*! ./components/user-management/user-detail/user-detail.component */ "./src/app/components/user-management/user-detail/user-detail.component.ts"); /* harmony import */ var _components_user_management_user_list_user_list_component__WEBPACK_IMPORTED_MODULE_134__ = __webpack_require__(/*! ./components/user-management/user-list/user-list.component */ "./src/app/components/user-management/user-list/user-list.component.ts"); /* harmony import */ var _directives_claims_claim_exists_directive__WEBPACK_IMPORTED_MODULE_135__ = __webpack_require__(/*! ./directives/claims/claim-exists.directive */ "./src/app/directives/claims/claim-exists.directive.ts"); /* harmony import */ var _directives_claims_claim_missing_directive__WEBPACK_IMPORTED_MODULE_136__ = __webpack_require__(/*! ./directives/claims/claim-missing.directive */ "./src/app/directives/claims/claim-missing.directive.ts"); /* harmony import */ var _directives_gestures_long_press_directive__WEBPACK_IMPORTED_MODULE_137__ = __webpack_require__(/*! ./directives/gestures/long-press.directive */ "./src/app/directives/gestures/long-press.directive.ts"); /* harmony import */ var _directives_gestures_touch_click_directive__WEBPACK_IMPORTED_MODULE_138__ = __webpack_require__(/*! ./directives/gestures/touch-click.directive */ "./src/app/directives/gestures/touch-click.directive.ts"); /* harmony import */ var _directives_i18n_smart_translate_directive__WEBPACK_IMPORTED_MODULE_139__ = __webpack_require__(/*! ./directives/i18n/smart-translate.directive */ "./src/app/directives/i18n/smart-translate.directive.ts"); /* harmony import */ var _directives_svgs_component_enabled_directive__WEBPACK_IMPORTED_MODULE_140__ = __webpack_require__(/*! ./directives/svgs/component-enabled.directive */ "./src/app/directives/svgs/component-enabled.directive.ts"); /* harmony import */ var _directives_svgs_config_inspector_directive__WEBPACK_IMPORTED_MODULE_141__ = __webpack_require__(/*! ./directives/svgs/config-inspector.directive */ "./src/app/directives/svgs/config-inspector.directive.ts"); /* harmony import */ var _directives_svgs_svg_clickable_directive__WEBPACK_IMPORTED_MODULE_142__ = __webpack_require__(/*! ./directives/svgs/svg-clickable.directive */ "./src/app/directives/svgs/svg-clickable.directive.ts"); /* harmony import */ var _directives_svgs_svg_mirror_move_directive__WEBPACK_IMPORTED_MODULE_143__ = __webpack_require__(/*! ./directives/svgs/svg-mirror-move.directive */ "./src/app/directives/svgs/svg-mirror-move.directive.ts"); /* harmony import */ var _directives_svgs_svg_mirror_flip_directive__WEBPACK_IMPORTED_MODULE_144__ = __webpack_require__(/*! ./directives/svgs/svg-mirror-flip.directive */ "./src/app/directives/svgs/svg-mirror-flip.directive.ts"); /* harmony import */ var _directives_svgs_svg_quickview_directive__WEBPACK_IMPORTED_MODULE_145__ = __webpack_require__(/*! ./directives/svgs/svg-quickview.directive */ "./src/app/directives/svgs/svg-quickview.directive.ts"); /* harmony import */ var _directives_theming_color_theme_directive__WEBPACK_IMPORTED_MODULE_146__ = __webpack_require__(/*! ./directives/theming/color-theme.directive */ "./src/app/directives/theming/color-theme.directive.ts"); /* harmony import */ var _guards_auth_guard__WEBPACK_IMPORTED_MODULE_147__ = __webpack_require__(/*! ./guards/auth.guard */ "./src/app/guards/auth.guard.ts"); /* harmony import */ var _guards_dynamic_page_loader_guard__WEBPACK_IMPORTED_MODULE_148__ = __webpack_require__(/*! ./guards/dynamic-page-loader.guard */ "./src/app/guards/dynamic-page-loader.guard.ts"); /* harmony import */ var _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_149__ = __webpack_require__(/*! ./guards/user-management.guard */ "./src/app/guards/user-management.guard.ts"); /* harmony import */ var _pipes_days_to_due_time_pipe__WEBPACK_IMPORTED_MODULE_150__ = __webpack_require__(/*! ./pipes/days-to-due-time.pipe */ "./src/app/pipes/days-to-due-time.pipe.ts"); /* harmony import */ var _pipes_duration_pipe__WEBPACK_IMPORTED_MODULE_151__ = __webpack_require__(/*! ./pipes/duration.pipe */ "./src/app/pipes/duration.pipe.ts"); /* harmony import */ var _pipes_enum_keys_pipe__WEBPACK_IMPORTED_MODULE_152__ = __webpack_require__(/*! ./pipes/enum-keys.pipe */ "./src/app/pipes/enum-keys.pipe.ts"); /* harmony import */ var _pipes_group_by_pipe__WEBPACK_IMPORTED_MODULE_153__ = __webpack_require__(/*! ./pipes/group-by.pipe */ "./src/app/pipes/group-by.pipe.ts"); /* harmony import */ var _pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_154__ = __webpack_require__(/*! ./pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); /* harmony import */ var _pipes_text_trim_pipe__WEBPACK_IMPORTED_MODULE_155__ = __webpack_require__(/*! ./pipes/text-trim.pipe */ "./src/app/pipes/text-trim.pipe.ts"); /* harmony import */ var _pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_156__ = __webpack_require__(/*! ./pipes/unit-system-convert.pipe */ "./src/app/pipes/unit-system-convert.pipe.ts"); /* harmony import */ var _pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_157__ = __webpack_require__(/*! ./pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var _pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_158__ = __webpack_require__(/*! ./pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); /* harmony import */ var _pipes_unit_system_unit_pipe__WEBPACK_IMPORTED_MODULE_159__ = __webpack_require__(/*! ./pipes/unit-system-unit.pipe */ "./src/app/pipes/unit-system-unit.pipe.ts"); /* harmony import */ var _pipes_safe_content_pipe__WEBPACK_IMPORTED_MODULE_160__ = __webpack_require__(/*! ./pipes/safe-content.pipe */ "./src/app/pipes/safe-content.pipe.ts"); /* harmony import */ var _services_app_init_service__WEBPACK_IMPORTED_MODULE_161__ = __webpack_require__(/*! ./services/app-init.service */ "./src/app/services/app-init.service.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_162__ = __webpack_require__(/*! ./services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _pipes_counter_to_unit_key_pipe__WEBPACK_IMPORTED_MODULE_163__ = __webpack_require__(/*! ./pipes/counter-to-unit-key.pipe */ "./src/app/pipes/counter-to-unit-key.pipe.ts"); /* harmony import */ var _pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_164__ = __webpack_require__(/*! ./pipes/counter-to-si-unit.pipe */ "./src/app/pipes/counter-to-si-unit.pipe.ts"); /* harmony import */ var _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_165__ = __webpack_require__(/*! ./pipes/counter-to-system-unit.pipe */ "./src/app/pipes/counter-to-system-unit.pipe.ts"); /* harmony import */ var _pipes_location_alias_pipe__WEBPACK_IMPORTED_MODULE_166__ = __webpack_require__(/*! ./pipes/location-alias.pipe */ "./src/app/pipes/location-alias.pipe.ts"); /* harmony import */ var _pipes_location_pipe__WEBPACK_IMPORTED_MODULE_167__ = __webpack_require__(/*! ./pipes/location.pipe */ "./src/app/pipes/location.pipe.ts"); /* harmony import */ var _services_browser_visibility_service__WEBPACK_IMPORTED_MODULE_168__ = __webpack_require__(/*! ./services/browser-visibility.service */ "./src/app/services/browser-visibility.service.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_169__ = __webpack_require__(/*! ./services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_170__ = __webpack_require__(/*! ./services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_171__ = __webpack_require__(/*! ./services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_172__ = __webpack_require__(/*! ./services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _services_dashboard_service__WEBPACK_IMPORTED_MODULE_173__ = __webpack_require__(/*! ./services/dashboard.service */ "./src/app/services/dashboard.service.ts"); /* harmony import */ var _services_data_cache_service__WEBPACK_IMPORTED_MODULE_174__ = __webpack_require__(/*! ./services/data-cache.service */ "./src/app/services/data-cache.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_175__ = __webpack_require__(/*! ./services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_176__ = __webpack_require__(/*! ./services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _services_inactivity_detector__WEBPACK_IMPORTED_MODULE_177__ = __webpack_require__(/*! ./services/inactivity-detector */ "./src/app/services/inactivity-detector.ts"); /* harmony import */ var _services_keyboard_service__WEBPACK_IMPORTED_MODULE_178__ = __webpack_require__(/*! ./services/keyboard.service */ "./src/app/services/keyboard.service.ts"); /* harmony import */ var _services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_179__ = __webpack_require__(/*! ./services/storage/local-storage.service */ "./src/app/services/storage/local-storage.service.ts"); /* harmony import */ var _services_storage_session_storage_service__WEBPACK_IMPORTED_MODULE_180__ = __webpack_require__(/*! ./services/storage/session-storage.service */ "./src/app/services/storage/session-storage.service.ts"); /* harmony import */ var _services_monitoring_service__WEBPACK_IMPORTED_MODULE_181__ = __webpack_require__(/*! ./services/monitoring.service */ "./src/app/services/monitoring.service.ts"); /* harmony import */ var _services_notification_statistics_service__WEBPACK_IMPORTED_MODULE_182__ = __webpack_require__(/*! ./services/notification-statistics.service */ "./src/app/services/notification-statistics.service.ts"); /* harmony import */ var _services_notification_service__WEBPACK_IMPORTED_MODULE_183__ = __webpack_require__(/*! ./services/notification.service */ "./src/app/services/notification.service.ts"); /* harmony import */ var _services_signalr_service__WEBPACK_IMPORTED_MODULE_184__ = __webpack_require__(/*! ./services/signalr.service */ "./src/app/services/signalr.service.ts"); /* harmony import */ var _services_terminal_mapping_service__WEBPACK_IMPORTED_MODULE_185__ = __webpack_require__(/*! ./services/terminal-mapping.service */ "./src/app/services/terminal-mapping.service.ts"); /* harmony import */ var _services_time_utils_service__WEBPACK_IMPORTED_MODULE_186__ = __webpack_require__(/*! ./services/time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_187__ = __webpack_require__(/*! ./services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_188__ = __webpack_require__(/*! ./services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_189__ = __webpack_require__(/*! ./services/user-data/user-data.service */ "./src/app/services/user-data/user-data.service.ts"); /* harmony import */ var _services_user_management_service__WEBPACK_IMPORTED_MODULE_190__ = __webpack_require__(/*! ./services/user-management.service */ "./src/app/services/user-management.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_191__ = __webpack_require__(/*! ./services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _services_toast_sevice__WEBPACK_IMPORTED_MODULE_192__ = __webpack_require__(/*! ./services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var _services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_193__ = __webpack_require__(/*! ./services/quickview/quickview.service */ "./src/app/services/quickview/quickview.service.ts"); /* harmony import */ var _utils_general_http_error_handler__WEBPACK_IMPORTED_MODULE_194__ = __webpack_require__(/*! ./utils/general-http-error-handler */ "./src/app/utils/general-http-error-handler.ts"); /* harmony import */ var _utils_http_client_interceptor__WEBPACK_IMPORTED_MODULE_195__ = __webpack_require__(/*! ./utils/http-client.interceptor */ "./src/app/utils/http-client.interceptor.ts"); /* harmony import */ var _utils_http_factory__WEBPACK_IMPORTED_MODULE_196__ = __webpack_require__(/*! ./utils/http.factory */ "./src/app/utils/http.factory.ts"); /* harmony import */ var _components_not_found_error_not_found_error_component__WEBPACK_IMPORTED_MODULE_197__ = __webpack_require__(/*! ./components/not-found-error/not-found-error.component */ "./src/app/components/not-found-error/not-found-error.component.ts"); /* harmony import */ var _directives_theming_card_state_directive__WEBPACK_IMPORTED_MODULE_198__ = __webpack_require__(/*! ./directives/theming/card-state.directive */ "./src/app/directives/theming/card-state.directive.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_loader_dynamic_page_loader_component__WEBPACK_IMPORTED_MODULE_199__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component */ "./src/app/components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component.ts"); /* harmony import */ var _components_statistics_statistics_component__WEBPACK_IMPORTED_MODULE_200__ = __webpack_require__(/*! ./components/statistics/statistics.component */ "./src/app/components/statistics/statistics.component.ts"); /* harmony import */ var _components_statistics_controls_column_chart_statistics_column_chart_component__WEBPACK_IMPORTED_MODULE_201__ = __webpack_require__(/*! ./components/statistics/controls/column-chart/statistics-column-chart.component */ "./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.ts"); /* harmony import */ var _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_202__ = __webpack_require__(/*! ./services/statistics/statistics.service */ "./src/app/services/statistics/statistics.service.ts"); /* harmony import */ var _components_statistics_controls_chart_data_pager_chart_data_pager_component__WEBPACK_IMPORTED_MODULE_203__ = __webpack_require__(/*! ./components/statistics/controls/chart-data-pager/chart-data-pager.component */ "./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.ts"); /* harmony import */ var _components_statistics_statistic_tabs_switching_cycle_statistic_switching_cycle_statistic_component__WEBPACK_IMPORTED_MODULE_204__ = __webpack_require__(/*! ./components/statistics/statistic-tabs/switching-cycle-statistic/switching-cycle-statistic.component */ "./src/app/components/statistics/statistic-tabs/switching-cycle-statistic/switching-cycle-statistic.component.ts"); /* harmony import */ var _components_statistics_statistic_tabs_operating_hour_statistic_operating_hour_statistic_component__WEBPACK_IMPORTED_MODULE_205__ = __webpack_require__(/*! ./components/statistics/statistic-tabs/operating-hour-statistic/operating-hour-statistic.component */ "./src/app/components/statistics/statistic-tabs/operating-hour-statistic/operating-hour-statistic.component.ts"); /* harmony import */ var _components_statistics_statistic_tabs_energy_statistic_energy_statistic_component__WEBPACK_IMPORTED_MODULE_206__ = __webpack_require__(/*! ./components/statistics/statistic-tabs/energy-statistic/energy-statistic.component */ "./src/app/components/statistics/statistic-tabs/energy-statistic/energy-statistic.component.ts"); /* harmony import */ var _components_svgs_orientation_labels_orientation_labels_component__WEBPACK_IMPORTED_MODULE_207__ = __webpack_require__(/*! ./components/svgs/orientation-labels/orientation-labels.component */ "./src/app/components/svgs/orientation-labels/orientation-labels.component.ts"); /* harmony import */ var _components_modals_about_page_about_page_component__WEBPACK_IMPORTED_MODULE_208__ = __webpack_require__(/*! ./components/modals/about-page/about-page.component */ "./src/app/components/modals/about-page/about-page.component.ts"); /* harmony import */ var _directives_gestures_short_press_directive__WEBPACK_IMPORTED_MODULE_209__ = __webpack_require__(/*! ./directives/gestures/short-press.directive */ "./src/app/directives/gestures/short-press.directive.ts"); /* harmony import */ var _components_toolbar_replay_mode_replay_mode_component__WEBPACK_IMPORTED_MODULE_210__ = __webpack_require__(/*! ./components/toolbar/replay-mode/replay-mode.component */ "./src/app/components/toolbar/replay-mode/replay-mode.component.ts"); /* harmony import */ var _components_gauges_control_place_gauge_component__WEBPACK_IMPORTED_MODULE_211__ = __webpack_require__(/*! ./components/gauges/control-place-gauge.component */ "./src/app/components/gauges/control-place-gauge.component.ts"); /* harmony import */ var _components_common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_212__ = __webpack_require__(/*! ./components/common/common-components/confirmation-modal/confirmation-modal.component */ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.ts"); /* harmony import */ var _components_trolley_trolley_diagnostics_component__WEBPACK_IMPORTED_MODULE_213__ = __webpack_require__(/*! ./components/trolley/trolley-diagnostics.component */ "./src/app/components/trolley/trolley-diagnostics.component.ts"); /* harmony import */ var _components_slewing_gear_slewing_gear_diagnostics_component__WEBPACK_IMPORTED_MODULE_214__ = __webpack_require__(/*! ./components/slewing-gear/slewing-gear-diagnostics.component */ "./src/app/components/slewing-gear/slewing-gear-diagnostics.component.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_215__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_216__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_217__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _components_dynamic_page_dynamic_page_container_dynamic_page_container_component__WEBPACK_IMPORTED_MODULE_218__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-container/dynamic-page-container.component */ "./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_button_tip_operator_button_tip_component__WEBPACK_IMPORTED_MODULE_219__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_button_toggle_operator_button_toggle_component__WEBPACK_IMPORTED_MODULE_220__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_221__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_datapoint_collection_operator_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_222__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_image_operator_image_component__WEBPACK_IMPORTED_MODULE_223__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_label_operator_label_component__WEBPACK_IMPORTED_MODULE_224__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_progress_bar_operator_progress_bar_component__WEBPACK_IMPORTED_MODULE_225__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_offset_operator_offset_component__WEBPACK_IMPORTED_MODULE_226__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_radiogroup_multi_operator_radiogroup_multi_component__WEBPACK_IMPORTED_MODULE_227__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_radiogroup_operator_radiogroup_component__WEBPACK_IMPORTED_MODULE_228__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_timerange_operator_timerange_component__WEBPACK_IMPORTED_MODULE_229__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_controls_operator_control_loader_operator_control_loader_component__WEBPACK_IMPORTED_MODULE_230__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-controls/operator-control-loader/operator-control-loader.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-control-loader/operator-control-loader.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_container_component__WEBPACK_IMPORTED_MODULE_231__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page-container.component */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page-container.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_common_svg_label_svg_label_component__WEBPACK_IMPORTED_MODULE_232__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_common_svg_display_mode_button_svg_display_mode_button_component__WEBPACK_IMPORTED_MODULE_233__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_brake_svg_brake_component__WEBPACK_IMPORTED_MODULE_234__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_common_svg_line_svg_line_component__WEBPACK_IMPORTED_MODULE_235__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_common_svg_shape_svg_shape_component__WEBPACK_IMPORTED_MODULE_236__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_common_svg_value_container_svg_value_container_component__WEBPACK_IMPORTED_MODULE_237__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_common_svg_state_text_value_container_svg_state_text_value_container_component__WEBPACK_IMPORTED_MODULE_238__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_control_unit_svg_control_unit_component__WEBPACK_IMPORTED_MODULE_239__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_dc_bus_svg_dc_bus_component__WEBPACK_IMPORTED_MODULE_240__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_frequency_converter_svg_frequency_converter_component__WEBPACK_IMPORTED_MODULE_241__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_gear_box_svg_gear_box_component__WEBPACK_IMPORTED_MODULE_242__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_motor_svg_motor_component__WEBPACK_IMPORTED_MODULE_243__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_speed_limitation_svg_speed_limitation_component__WEBPACK_IMPORTED_MODULE_244__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_wire_drum_svg_wire_drum_component__WEBPACK_IMPORTED_MODULE_245__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_position_svg_position_component__WEBPACK_IMPORTED_MODULE_246__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.ts"); /* harmony import */ var _components_gauges_operating_mode_gauge_component__WEBPACK_IMPORTED_MODULE_247__ = __webpack_require__(/*! ./components/gauges/operating-mode-gauge.component */ "./src/app/components/gauges/operating-mode-gauge.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_card_position_indicator_svg_position_indicator_component__WEBPACK_IMPORTED_MODULE_248__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.ts"); /* harmony import */ var _utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_249__ = __webpack_require__(/*! ./utils/SignalRRetryPolicy */ "./src/app/utils/SignalRRetryPolicy.ts"); /* harmony import */ var _components_login_changePassword_component__WEBPACK_IMPORTED_MODULE_250__ = __webpack_require__(/*! ./components/login/changePassword.component */ "./src/app/components/login/changePassword.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_svg_page_controls_card_level_indicator_svg_level_indicator_component__WEBPACK_IMPORTED_MODULE_251__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.ts"); /* harmony import */ var _components_drop_down_list_drop_down_list_component__WEBPACK_IMPORTED_MODULE_252__ = __webpack_require__(/*! ./components/drop-down-list/drop-down-list.component */ "./src/app/components/drop-down-list/drop-down-list.component.ts"); /* harmony import */ var _components_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_253__ = __webpack_require__(/*! ./components/data-table/data-table.component */ "./src/app/components/data-table/data-table.component.ts"); /* harmony import */ var _components_gauges_target_position_gauge_component__WEBPACK_IMPORTED_MODULE_254__ = __webpack_require__(/*! ./components/gauges/target-position-gauge.component */ "./src/app/components/gauges/target-position-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __param = (undefined && undefined.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } }; // OTHER IMPORTS /// (cards) /// (common) // CMS Components /// (localizeddatepicker) /// (localizedtimepicker) // CMS Directives // CMS Route Guards // CMS Pipes // CMS Services // Policies // tslint:disable:max-line-length var customFilePrefix = '.custom'; var AsyncTranslateHttpLoader = /** @class */ (function (_super) { __extends(AsyncTranslateHttpLoader, _super); function AsyncTranslateHttpLoader(_http) { var _this = _super.call(this) || this; _this._http = _http; return _this; } AsyncTranslateHttpLoader.prototype.getTranslation = function (lang, args) { var _this = this; var baseTranslation = _app_constants__WEBPACK_IMPORTED_MODULE_22__["I18N_ROOT"] + "/" + lang + ".json"; var customTranslation = _app_constants__WEBPACK_IMPORTED_MODULE_22__["I18N_ROOT"] + "/" + lang + customFilePrefix + ".json"; var resourcePaths = []; if (lang != _app_constants__WEBPACK_IMPORTED_MODULE_22__["DEFAULT_LANGUAGE_ID"]) { var defaultLanguageBaseTranslation = _app_constants__WEBPACK_IMPORTED_MODULE_22__["I18N_ROOT"] + "/" + _app_constants__WEBPACK_IMPORTED_MODULE_22__["DEFAULT_LANGUAGE_ID"] + ".json"; var defaultLanguageCustomTranslation = _app_constants__WEBPACK_IMPORTED_MODULE_22__["I18N_ROOT"] + "/" + _app_constants__WEBPACK_IMPORTED_MODULE_22__["DEFAULT_LANGUAGE_ID"] + customFilePrefix + ".json"; resourcePaths.push(defaultLanguageBaseTranslation, defaultLanguageCustomTranslation); } resourcePaths.push(baseTranslation, customTranslation); var requests = resourcePaths.map(function (path) { return _this._http.get(path).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_216__["catchError"])(function (_) { var debugPath = "config/" + path; return _this._http.get(debugPath).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_216__["catchError"])(function (_) { var message = 'Following translation file was not found:'; if (path != null && path.indexOf(customFilePrefix) !== -1) { console.warn(message, path); } else { console.error(message, path); } return Object(rxjs__WEBPACK_IMPORTED_MODULE_215__["of"])({}); })); })); }); return Object(rxjs__WEBPACK_IMPORTED_MODULE_215__["forkJoin"])(requests).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_216__["map"])(function (response) { if (response != null) { var translations_1 = {}; response.forEach(function (element) { _this.mergeTranslations(translations_1, element); }); return translations_1; } return undefined; })); }; AsyncTranslateHttpLoader.prototype.mergeTranslations = function (existingTranslations, translationsToMerge) { for (var key in translationsToMerge) { if (translationsToMerge.hasOwnProperty(key)) { existingTranslations[key] = translationsToMerge[key]; } } }; AsyncTranslateHttpLoader = __decorate([ __param(0, Object(_angular_core__WEBPACK_IMPORTED_MODULE_6__["Inject"])(_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"])), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]]) ], AsyncTranslateHttpLoader); return AsyncTranslateHttpLoader; }(angular_l10n__WEBPACK_IMPORTED_MODULE_12__["TranslationProvider"])); var l10nConfig = { locale: { languages: [ { code: _app_constants__WEBPACK_IMPORTED_MODULE_22__["DEFAULT_LANGUAGE_ID"], dir: 'ltr' }, { code: 'de', dir: 'ltr' } ], defaultLocale: { languageCode: _app_constants__WEBPACK_IMPORTED_MODULE_22__["DEFAULT_LANGUAGE_ID"] }, storage: angular_l10n__WEBPACK_IMPORTED_MODULE_12__["StorageStrategy"].Local, cookieExpiration: 30 }, translation: { providers: [ { type: angular_l10n__WEBPACK_IMPORTED_MODULE_12__["ProviderType"].Static, prefix: "./" + _app_constants__WEBPACK_IMPORTED_MODULE_22__["I18N_ROOT"] + "/" } ], caching: true, composedKeySeparator: '.', i18nPlural: true } }; function initL10n(l10nLoader) { return l10nLoader.load(); } function appInitializerFactory(colorService, configService, l10nLoader) { return function () { var promises = []; promises.push(colorService.initialize()); promises.push(configService.initialize()); promises.push(initL10n(l10nLoader)); return Promise.all(promises); }; } var AppModule = /** @class */ (function () { function AppModule(monitoringService) { var monitoringConfig = environments_environment__WEBPACK_IMPORTED_MODULE_17__["environment"].monitoring; if (monitoringConfig.enabled) { monitoringService.run(); } } AppModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_6__["NgModule"])({ imports: [ _angular_common__WEBPACK_IMPORTED_MODULE_41__["CommonModule"], _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__["BrowserModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_10__["BrowserAnimationsModule"], ngx_cookie__WEBPACK_IMPORTED_MODULE_19__["CookieModule"].forRoot(), _app_routes__WEBPACK_IMPORTED_MODULE_25__["CMS_ROUTING"], _angular_http__WEBPACK_IMPORTED_MODULE_8__["HttpModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClientModule"], angular_l10n__WEBPACK_IMPORTED_MODULE_12__["LocalizationModule"].forRoot(l10nConfig, { translationProvider: AsyncTranslateHttpLoader }), _angular_http__WEBPACK_IMPORTED_MODULE_8__["JsonpModule"], angular2_grid__WEBPACK_IMPORTED_MODULE_13__["NgGridModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormsModule"], _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_11__["NgxDatatableModule"], _angular2_materialize__WEBPACK_IMPORTED_MODULE_21__["MaterializeModule"], angular2_moment__WEBPACK_IMPORTED_MODULE_14__["MomentModule"], ng2_pdf_viewer__WEBPACK_IMPORTED_MODULE_18__["PdfViewerModule"], ngx_toastr__WEBPACK_IMPORTED_MODULE_20__["ToastrModule"].forRoot({ newestOnTop: false, tapToDismiss: true }) ], declarations: [ _components_app_component__WEBPACK_IMPORTED_MODULE_26__["AppComponent"], _components_spreader_spreader_component__WEBPACK_IMPORTED_MODULE_115__["SpreaderComponent"], _components_spreader_spreader_svg_component__WEBPACK_IMPORTED_MODULE_114__["SpreaderSvgComponent"], _components_spreader_spreader_diagnostics_component__WEBPACK_IMPORTED_MODULE_66__["SpreaderDiagnosticsComponent"], _components_traverse_traverse_component__WEBPACK_IMPORTED_MODULE_117__["TraverseComponent"], _components_traverse_traverse_svg_component__WEBPACK_IMPORTED_MODULE_116__["TraverseSvgComponent"], _components_traverse_traverse_diagnostics_component__WEBPACK_IMPORTED_MODULE_67__["TraverseDiagnosticsComponent"], _components_deprecated_hoist_hoist_component__WEBPACK_IMPORTED_MODULE_83__["HoistComponent"], _components_deprecated_hoist_hoist_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_78__["HoistCtkMechanicalSvgComponent"], _components_deprecated_hoist_hoist_rtg_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_80__["HoistRtgMechanicalSvgComponent"], _components_deprecated_hoist_hoist_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_77__["HoistCtkElectricalSvgComponent"], _components_deprecated_hoist_hoist_rtg_electrical_svg_component__WEBPACK_IMPORTED_MODULE_79__["HoistRtgElectricalSvgComponent"], _components_deprecated_hoist_hoist_diagnostics_component__WEBPACK_IMPORTED_MODULE_84__["HoistDiagnosticsComponent"], _components_gantry_gantry_component__WEBPACK_IMPORTED_MODULE_64__["GantryComponent"], _components_gantry_gantry_rtg_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_63__["GantryRtgMechanicalSvgComponent"], _components_gantry_gantry_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_61__["GantryCtkMechanicalSvgComponent"], _components_gantry_gantry_rtg_electrical_svg_component__WEBPACK_IMPORTED_MODULE_62__["GantryRtgElectricalSvgComponent"], _components_gantry_gantry_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_60__["GantryCtkElectricalSvgComponent"], _components_gantry_gantry_diagnostics_component__WEBPACK_IMPORTED_MODULE_65__["GantryDiagnosticsComponent"], _components_trolley_trolley_component__WEBPACK_IMPORTED_MODULE_132__["TrolleyComponent"], _components_trolley_trolley_rtg_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_129__["TrolleyRtgDoubleGirderMechanicalSvgComponent"], _components_trolley_trolley_rtg_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_128__["TrolleyRtgDoubleGirderElectricalSvgComponent"], _components_trolley_trolley_ctk_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_125__["TrolleyCtkDoubleGirderMechanicalSvgComponent"], _components_trolley_trolley_ctk_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_124__["TrolleyCtkDoubleGirderElectricalSvgComponent"], _components_trolley_trolley_csx_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_127__["TrolleyCsxDoubleGirderMechanicalSvgComponent"], _components_trolley_trolley_csx_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_126__["TrolleyCsxDoubleGirderElectricalSvgComponent"], _components_trolley_trolley_kc_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_130__["TrolleyKcDoubleGirderElectricalSvgComponent"], _components_trolley_trolley_kc_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_131__["TrolleyKcDoubleGirderMechanicalSvgComponent"], _components_trolley_trolley_diagnostics_component__WEBPACK_IMPORTED_MODULE_213__["TrolleyDiagnosticsComponent"], _components_footer_footer_component__WEBPACK_IMPORTED_MODULE_58__["FooterComponent"], _components_common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_212__["ConfirmationModalComponent"], _components_indicators_power_indicator_component__WEBPACK_IMPORTED_MODULE_88__["PowerIndicatorComponent"], _components_indicators_connection_indicator_component__WEBPACK_IMPORTED_MODULE_86__["ConnectionIndicatorComponent"], _components_indicators_notification_indicator_component__WEBPACK_IMPORTED_MODULE_87__["NotificationIndicatorComponent"], _components_datapoints_plain_datapoint_component__WEBPACK_IMPORTED_MODULE_57__["PlainDatapointComponent"], _pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_156__["UnitSystemConvertPipe"], _pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_157__["UnitSystemNumericConvertPipe"], _pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_158__["UnitSystemBaseConvertPipe"], _pipes_unit_system_unit_pipe__WEBPACK_IMPORTED_MODULE_159__["UnitSystemUnitPipe"], _pipes_group_by_pipe__WEBPACK_IMPORTED_MODULE_153__["GroupByPipe"], _pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_154__["SmartTranslatePipe"], _pipes_counter_to_unit_key_pipe__WEBPACK_IMPORTED_MODULE_163__["CounterToUnitKeyPipe"], _pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_164__["CounterToSiUnitPipe"], _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_165__["CounterToSystemUnitPipe"], _pipes_location_pipe__WEBPACK_IMPORTED_MODULE_167__["LocationPipe"], _pipes_location_alias_pipe__WEBPACK_IMPORTED_MODULE_166__["LocationAliasPipe"], _components_cards_card_loader_component__WEBPACK_IMPORTED_MODULE_29__["CardLoaderComponent"], _components_cards_spreader_card_component__WEBPACK_IMPORTED_MODULE_34__["SpreaderCardComponent"], _components_cards_traverse_card_component__WEBPACK_IMPORTED_MODULE_35__["TraverseCardComponent"], _components_cards_deprecated_hoist_card_component__WEBPACK_IMPORTED_MODULE_32__["HoistCardComponent"], _components_home_home_component__WEBPACK_IMPORTED_MODULE_85__["HomeComponent"], _components_cards_rail_gantry_card_component__WEBPACK_IMPORTED_MODULE_30__["RailGantryCardComponent"], _components_cards_rubber_tire_gantry_card_component__WEBPACK_IMPORTED_MODULE_31__["RubberTireGantryCardComponent"], _components_cards_slewing_gear_card_component__WEBPACK_IMPORTED_MODULE_33__["SlewingGearCardComponent"], _components_cards_trolley_card_component__WEBPACK_IMPORTED_MODULE_36__["TrolleyCardComponent"], _components_common_spinner_component__WEBPACK_IMPORTED_MODULE_50__["SpinnerComponent"], _components_modals_connection_modal_component__WEBPACK_IMPORTED_MODULE_102__["ConnectionModalComponent"], _directives_claims_claim_exists_directive__WEBPACK_IMPORTED_MODULE_135__["ClaimExistsDirective"], _directives_claims_claim_missing_directive__WEBPACK_IMPORTED_MODULE_136__["ClaimMissingDirective"], _directives_svgs_component_enabled_directive__WEBPACK_IMPORTED_MODULE_140__["ComponentEnabledDirective"], _directives_gestures_long_press_directive__WEBPACK_IMPORTED_MODULE_137__["LongPressDirective"], _directives_gestures_short_press_directive__WEBPACK_IMPORTED_MODULE_209__["ShortPressDirective"], _directives_gestures_touch_click_directive__WEBPACK_IMPORTED_MODULE_138__["TouchClickDirective"], _directives_svgs_svg_quickview_directive__WEBPACK_IMPORTED_MODULE_145__["SvgQuickviewDirective"], _directives_svgs_svg_clickable_directive__WEBPACK_IMPORTED_MODULE_142__["SvgClickableDirective"], _directives_svgs_svg_mirror_move_directive__WEBPACK_IMPORTED_MODULE_143__["SvgMirrorMoveDirective"], _directives_svgs_svg_mirror_flip_directive__WEBPACK_IMPORTED_MODULE_144__["SvgMirrorFlipDirective"], _directives_i18n_smart_translate_directive__WEBPACK_IMPORTED_MODULE_139__["SmartTranslateDirective"], _directives_theming_color_theme_directive__WEBPACK_IMPORTED_MODULE_146__["ColorThemeDirective"], _components_common_detail_page_component__WEBPACK_IMPORTED_MODULE_42__["DetailPageComponent"], _components_common_detail_tab_page_component__WEBPACK_IMPORTED_MODULE_44__["DetailTabPageComponent"], _components_common_detail_router_page_component__WEBPACK_IMPORTED_MODULE_43__["DetailRouterPageComponent"], _components_datapoints_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_54__["DatapointCollectionComponent"], _components_datapoints_double_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_55__["DoubleDatapointCollectionComponent"], _components_common_quickview_switch_component__WEBPACK_IMPORTED_MODULE_48__["QuickviewSwitchComponent"], _components_maintenance_maintenance_component__WEBPACK_IMPORTED_MODULE_100__["MaintenanceComponent"], _components_notifications_notification_component__WEBPACK_IMPORTED_MODULE_110__["NotificationComponent"], _components_notifications_notification_latestlist_component__WEBPACK_IMPORTED_MODULE_108__["NotificationLatestlistComponent"], _components_notifications_notification_entrylist_component__WEBPACK_IMPORTED_MODULE_107__["NotificationEntrylistComponent"], _components_notifications_notification_statistics_component__WEBPACK_IMPORTED_MODULE_109__["NotificationStatisticsComponent"], _components_toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_121__["ToolbarComponent"], _components_toolbar_toolbar_gauges_component__WEBPACK_IMPORTED_MODULE_119__["ToolbarGaugesComponent"], _components_gauges_vertical_position_gauge_component__WEBPACK_IMPORTED_MODULE_75__["VerticalPositionGaugeComponent"], _components_gauges_assistant_system_assistant_softlanding_gauge_component__WEBPACK_IMPORTED_MODULE_68__["AssistantSoftlandingGaugeComponent"], _components_gauges_radial_offset_gauge_component__WEBPACK_IMPORTED_MODULE_72__["RadialOffsetGaugeComponent"], _components_gauges_icon_value_gauge_component__WEBPACK_IMPORTED_MODULE_70__["IconValueGaugeComponent"], _components_gauges_floor_gauge_component__WEBPACK_IMPORTED_MODULE_69__["FloorGaugeComponent"], _components_gauges_container_movement_gauge_component__WEBPACK_IMPORTED_MODULE_2__["ContainerMovementGaugeComponent"], _components_gauges_position_cross_gauge_component__WEBPACK_IMPORTED_MODULE_71__["PositionCrossGauge"], _components_gauges_target_position_gauge_component__WEBPACK_IMPORTED_MODULE_254__["TargetPositionGaugeComponent"], _components_gauges_rotation_gauge_component__WEBPACK_IMPORTED_MODULE_73__["RotationGaugeComponent"], _components_gauges_side_shift_gauge_component__WEBPACK_IMPORTED_MODULE_74__["SideShiftGaugeComponent"], _components_gauges_wind_direction_gauge_component__WEBPACK_IMPORTED_MODULE_76__["WindDirectionGaugeComponent"], _components_gauges_operating_mode_gauge_component__WEBPACK_IMPORTED_MODULE_247__["OperatingModeGaugeComponent"], _components_modals_quickview_component__WEBPACK_IMPORTED_MODULE_106__["QuickviewComponent"], _components_maintenance_maintenance_entrylist_component__WEBPACK_IMPORTED_MODULE_98__["MaintenanceEntrylistComponent"], _components_maintenance_maintenance_history_component__WEBPACK_IMPORTED_MODULE_99__["MaintenanceHistoryComponent"], _components_maintenance_maintenance_entrylist_edit_component__WEBPACK_IMPORTED_MODULE_97__["MaintenanceEntrylistEditComponent"], _components_modals_fullscreen_modal_component__WEBPACK_IMPORTED_MODULE_103__["FullscreenModalComponent"], _components_fullscreen_fullscreen_pdf_viewer_component__WEBPACK_IMPORTED_MODULE_59__["FullscreenPdfViewerComponent"], _components_maintenance_customer_maintenance_points_edit_component__WEBPACK_IMPORTED_MODULE_96__["CustomerMaintenancePointsEditComponent"], _components_common_common_components_quickview_trend_switch_quickview_trend_switch_component__WEBPACK_IMPORTED_MODULE_49__["QuickviewTrendSwitchComponent"], _components_trend_quickview_trend_quickview_trend_component__WEBPACK_IMPORTED_MODULE_122__["QuickviewTrendComponent"], _components_analysis_analysis_component__WEBPACK_IMPORTED_MODULE_123__["AnalysisComponent"], _components_localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_93__["LocalizedtimepickerComponent"], _components_localizeddatepicker_localizeddatepicker_component__WEBPACK_IMPORTED_MODULE_92__["LocalizeddatepickerComponent"], _pipes_enum_keys_pipe__WEBPACK_IMPORTED_MODULE_152__["EnumKeysPipe"], _pipes_safe_content_pipe__WEBPACK_IMPORTED_MODULE_160__["SafeContentPipe"], _components_dynamic_page_dynamic_page_controls_operator_button_tip_operator_button_tip_component__WEBPACK_IMPORTED_MODULE_219__["OperatorButtonTipComponent"], _components_dynamic_page_dynamic_page_controls_operator_button_toggle_operator_button_toggle_component__WEBPACK_IMPORTED_MODULE_220__["OperatorButtonToggleComponent"], _components_dynamic_page_dynamic_page_controls_operator_offset_operator_offset_component__WEBPACK_IMPORTED_MODULE_226__["OperatorOffsetComponent"], _components_dynamic_page_dynamic_page_controls_operator_radiogroup_operator_radiogroup_component__WEBPACK_IMPORTED_MODULE_228__["OperatorRadiogroupComponent"], _components_dynamic_page_dynamic_page_controls_operator_radiogroup_multi_operator_radiogroup_multi_component__WEBPACK_IMPORTED_MODULE_227__["OperatorRadiogroupMultiComponent"], _components_dynamic_page_dynamic_page_controls_operator_timerange_operator_timerange_component__WEBPACK_IMPORTED_MODULE_229__["OperatorTimerangeComponent"], _components_dynamic_page_dynamic_page_controls_operator_label_operator_label_component__WEBPACK_IMPORTED_MODULE_224__["OperatorLabelComponent"], _components_dynamic_page_dynamic_page_controls_operator_image_operator_image_component__WEBPACK_IMPORTED_MODULE_223__["OperatorImageComponent"], _components_dynamic_page_dynamic_page_controls_operator_progress_bar_operator_progress_bar_component__WEBPACK_IMPORTED_MODULE_225__["OperatorProgressBarComponent"], _components_dynamic_page_dynamic_page_controls_operator_datapoint_collection_operator_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_222__["OperatorDatapointCollectionComponent"], _components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_221__["OperatorChartComponent"], _components_dynamic_page_dynamic_page_controls_operator_control_loader_operator_control_loader_component__WEBPACK_IMPORTED_MODULE_230__["OperatorControlLoaderComponent"], _components_common_common_components_view_footer_view_footer_component__WEBPACK_IMPORTED_MODULE_45__["ViewFooterComponent"], _components_dynamic_page_dynamic_svg_page_container_svg_footer_svg_footer_component__WEBPACK_IMPORTED_MODULE_46__["SvgFooterComponent"], _components_dynamic_page_tabbed_dynamic_container_tabbed_dynamic_container_component__WEBPACK_IMPORTED_MODULE_47__["TabbedDynamicContainerComponent"], _components_indicators_toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_89__["ToolbarIndicatorComponent"], _pipes_days_to_due_time_pipe__WEBPACK_IMPORTED_MODULE_150__["DaysToDueTimePipe"], app_components_gauges_clock_gauge_component__WEBPACK_IMPORTED_MODULE_15__["ClockGaugeComponent"], app_components_gauges_battery_gauge_component__WEBPACK_IMPORTED_MODULE_16__["BatteryGaugeComponent"], _components_modals_fullscreen_print_preview_component__WEBPACK_IMPORTED_MODULE_104__["FullscreenPrintPreviewComponent"], _pipes_text_trim_pipe__WEBPACK_IMPORTED_MODULE_155__["TextTrimPipe"], _components_slewing_gear_slewing_gear_component__WEBPACK_IMPORTED_MODULE_113__["SlewingGearComponent"], _components_slewing_gear_slewing_gear_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_112__["SlewingGearCtkMechanicalSvgComponent"], _components_slewing_gear_slewing_gear_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_111__["SlewingGearCtkElectricalSvgComponent"], _components_slewing_gear_slewing_gear_diagnostics_component__WEBPACK_IMPORTED_MODULE_214__["SlewingGearDiagnosticsComponent"], _components_keyboard_numpad_numpad_component__WEBPACK_IMPORTED_MODULE_91__["NumpadComponent"], _directives_svgs_config_inspector_directive__WEBPACK_IMPORTED_MODULE_141__["ConfigInspectorDirective"], _components_user_management_user_list_user_list_component__WEBPACK_IMPORTED_MODULE_134__["UserListComponent"], _components_user_management_user_detail_user_detail_component__WEBPACK_IMPORTED_MODULE_133__["UserDetailComponent"], _components_indicators_progress_indicator_progress_indicator_component__WEBPACK_IMPORTED_MODULE_90__["ProgressIndicatorComponent"], _components_common_text_filter_component__WEBPACK_IMPORTED_MODULE_52__["TextFilterComponent"], _components_modals_account_settings_account_settings_component__WEBPACK_IMPORTED_MODULE_101__["AccountSettingsComponent"], _components_modals_about_page_about_page_component__WEBPACK_IMPORTED_MODULE_208__["AboutPageComponent"], _pipes_duration_pipe__WEBPACK_IMPORTED_MODULE_151__["DurationPipe"], _components_modals_notification_log_component__WEBPACK_IMPORTED_MODULE_105__["NotificationLogComponent"], _components_toolbar_toolbar_terminal_mapping_component__WEBPACK_IMPORTED_MODULE_120__["ToolbarTerminalMapping"], _components_automatic_mode_automatic_mode_component__WEBPACK_IMPORTED_MODULE_27__["AutomaticModeComponent"], _components_automatic_mode_half_order_automatic_mode_half_order_component__WEBPACK_IMPORTED_MODULE_28__["AutomaticModeHalfOrderComponent"], _components_common_common_components_state_progressbar_state_progressbar_component__WEBPACK_IMPORTED_MODULE_51__["StateProgressbarComponent"], _components_common_common_components_value_box_value_box_component__WEBPACK_IMPORTED_MODULE_53__["ValueBoxComponent"], _components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_118__["NotificationToastComponent"], _components_datapoints_missing_datapoint_info_component__WEBPACK_IMPORTED_MODULE_56__["MissingDatapointInfoComponent"], _components_login_login_component__WEBPACK_IMPORTED_MODULE_94__["LoginComponent"], _components_login_changePassword_component__WEBPACK_IMPORTED_MODULE_250__["ChangePasswordComponent"], _components_login_logout_component__WEBPACK_IMPORTED_MODULE_95__["LogoutComponent"], _components_not_found_error_not_found_error_component__WEBPACK_IMPORTED_MODULE_197__["NotFoundErrorComponent"], _directives_theming_card_state_directive__WEBPACK_IMPORTED_MODULE_198__["CardStateDirective"], _components_dynamic_page_dynamic_page_loader_dynamic_page_loader_component__WEBPACK_IMPORTED_MODULE_199__["DynamicPageLoaderComponent"], _components_statistics_statistics_component__WEBPACK_IMPORTED_MODULE_200__["StatisticsComponent"], _components_statistics_statistic_tabs_operating_hour_statistic_operating_hour_statistic_component__WEBPACK_IMPORTED_MODULE_205__["OperatingHourStatisticComponent"], _components_statistics_statistic_tabs_switching_cycle_statistic_switching_cycle_statistic_component__WEBPACK_IMPORTED_MODULE_204__["SwitchingCycleStatisticComponent"], _components_statistics_controls_column_chart_statistics_column_chart_component__WEBPACK_IMPORTED_MODULE_201__["StatisticsColumnChartComponent"], _components_statistics_statistic_tabs_energy_statistic_energy_statistic_component__WEBPACK_IMPORTED_MODULE_206__["EnergyStatisticComponent"], _components_statistics_controls_chart_data_pager_chart_data_pager_component__WEBPACK_IMPORTED_MODULE_203__["ChartDataPagerComponent"], _components_svgs_orientation_labels_orientation_labels_component__WEBPACK_IMPORTED_MODULE_207__["OrientationLabelsComponent"], _components_toolbar_replay_mode_replay_mode_component__WEBPACK_IMPORTED_MODULE_210__["ReplayModeComponent"], _components_gauges_control_place_gauge_component__WEBPACK_IMPORTED_MODULE_211__["ToolbarControlPlace"], _components_deprecated_hoist_hoist_2m4w_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_81__["Hoist2m4wMechanicalSvgComponent"], _components_deprecated_hoist_hoist_2m4w_electrical_svg_component__WEBPACK_IMPORTED_MODULE_82__["Hoist2m4wElectricalSvgComponent"], _components_dynamic_page_dynamic_page_container_dynamic_page_container_component__WEBPACK_IMPORTED_MODULE_218__["DynamicPageContainerComponent"], _components_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_container_component__WEBPACK_IMPORTED_MODULE_231__["DynamicSvgPageContainerComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_shape_svg_shape_component__WEBPACK_IMPORTED_MODULE_236__["SvgShapeComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_line_svg_line_component__WEBPACK_IMPORTED_MODULE_235__["SvgLineComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_label_svg_label_component__WEBPACK_IMPORTED_MODULE_232__["SvgLabelComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_value_container_svg_value_container_component__WEBPACK_IMPORTED_MODULE_237__["SvgValueContainerComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_state_text_value_container_svg_state_text_value_container_component__WEBPACK_IMPORTED_MODULE_238__["SvgStateTextValueContainerComponent"], _components_dynamic_page_dynamic_svg_page_controls_card_position_indicator_svg_position_indicator_component__WEBPACK_IMPORTED_MODULE_248__["SvgPositionIndicatorComponent"], _components_dynamic_page_dynamic_svg_page_controls_card_level_indicator_svg_level_indicator_component__WEBPACK_IMPORTED_MODULE_251__["SvgLevelIndicatorComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_display_mode_button_svg_display_mode_button_component__WEBPACK_IMPORTED_MODULE_233__["SvgDisplayModeButtonComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_speed_limitation_svg_speed_limitation_component__WEBPACK_IMPORTED_MODULE_244__["SvgSpeedLimitationComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_gear_box_svg_gear_box_component__WEBPACK_IMPORTED_MODULE_242__["SvgGearBoxComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_wire_drum_svg_wire_drum_component__WEBPACK_IMPORTED_MODULE_245__["SvgWireDrumComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_motor_svg_motor_component__WEBPACK_IMPORTED_MODULE_243__["SvgMotorComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_brake_svg_brake_component__WEBPACK_IMPORTED_MODULE_234__["SvgBrakeComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_frequency_converter_svg_frequency_converter_component__WEBPACK_IMPORTED_MODULE_241__["SvgFrequencyConverterComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_control_unit_svg_control_unit_component__WEBPACK_IMPORTED_MODULE_239__["SvgControlUnitComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_dc_bus_svg_dc_bus_component__WEBPACK_IMPORTED_MODULE_240__["SvgDcBusComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_position_svg_position_component__WEBPACK_IMPORTED_MODULE_246__["SvgPositionComponent"], _components_cards_configurable_hoist_card_component__WEBPACK_IMPORTED_MODULE_37__["ConfigurableHoistCardComponent"], _components_cards_configurable_grapple_card_component__WEBPACK_IMPORTED_MODULE_38__["ConfigurableGrappleCardComponent"], _components_cards_configurable_svg_card_component__WEBPACK_IMPORTED_MODULE_39__["ConfigurableSvgCardComponent"], _components_cards_charger_trolley_card_component__WEBPACK_IMPORTED_MODULE_40__["ChargerTrolleyCardComponent"], _components_drop_down_list_drop_down_list_component__WEBPACK_IMPORTED_MODULE_252__["DropDownListComponent"], _components_data_table_data_table_component__WEBPACK_IMPORTED_MODULE_253__["DataTableComponent"] ], exports: [ _directives_gestures_long_press_directive__WEBPACK_IMPORTED_MODULE_137__["LongPressDirective"], _directives_gestures_touch_click_directive__WEBPACK_IMPORTED_MODULE_138__["TouchClickDirective"], _directives_claims_claim_exists_directive__WEBPACK_IMPORTED_MODULE_135__["ClaimExistsDirective"], _directives_claims_claim_missing_directive__WEBPACK_IMPORTED_MODULE_136__["ClaimMissingDirective"], _directives_svgs_component_enabled_directive__WEBPACK_IMPORTED_MODULE_140__["ComponentEnabledDirective"], _directives_svgs_config_inspector_directive__WEBPACK_IMPORTED_MODULE_141__["ConfigInspectorDirective"] ], providers: [ { provide: _angular_core__WEBPACK_IMPORTED_MODULE_6__["APP_INITIALIZER"], useFactory: appInitializerFactory, deps: [ _services_color_service__WEBPACK_IMPORTED_MODULE_170__["ColorService"], _services_config_service__WEBPACK_IMPORTED_MODULE_171__["ConfigService"], angular_l10n__WEBPACK_IMPORTED_MODULE_12__["L10nLoader"] ], multi: true }, { provide: _angular_http__WEBPACK_IMPORTED_MODULE_8__["Http"], useFactory: _utils_http_factory__WEBPACK_IMPORTED_MODULE_196__["httpFactory"], deps: [ _angular_http__WEBPACK_IMPORTED_MODULE_8__["XHRBackend"], _angular_http__WEBPACK_IMPORTED_MODULE_8__["RequestOptions"], _utils_general_http_error_handler__WEBPACK_IMPORTED_MODULE_194__["GeneralErrorHandlerService"], angular_l10n__WEBPACK_IMPORTED_MODULE_12__["LocaleService"], _services_auth_service__WEBPACK_IMPORTED_MODULE_162__["AuthService"] ] }, { provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HTTP_INTERCEPTORS"], useClass: _utils_http_client_interceptor__WEBPACK_IMPORTED_MODULE_195__["HttpClientInterceptor"], multi: true }, { provide: _angular_router__WEBPACK_IMPORTED_MODULE_217__["RouteReuseStrategy"], useClass: _app_routes__WEBPACK_IMPORTED_MODULE_25__["AppRoutingStrategy"] }, _services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_189__["UserDataService"], _signalr_configuration__WEBPACK_IMPORTED_MODULE_24__["SignalRConfiguration"], _services_signalr_service__WEBPACK_IMPORTED_MODULE_184__["SignalRService"], _services_metrics_service__WEBPACK_IMPORTED_MODULE_3__["MetricsService"], _utils_general_http_error_handler__WEBPACK_IMPORTED_MODULE_194__["GeneralErrorHandlerService"], _services_browser_visibility_service__WEBPACK_IMPORTED_MODULE_168__["BrowserVisibilityService"], _configuration__WEBPACK_IMPORTED_MODULE_23__["Configuration"], _services_config_service__WEBPACK_IMPORTED_MODULE_171__["ConfigService"], _services_color_service__WEBPACK_IMPORTED_MODULE_170__["ColorService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_175__["DataPointRangeService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_176__["DataPointService"], _services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_179__["LocalStorageService"], _services_storage_session_storage_service__WEBPACK_IMPORTED_MODULE_180__["SessionStorageService"], _services_notification_service__WEBPACK_IMPORTED_MODULE_183__["NotificationService"], _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_149__["UserManagementGuard"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_169__["CmsTranslationService"], _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_187__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_188__["UnitKeyService"], _services_view_service__WEBPACK_IMPORTED_MODULE_191__["ViewService"], _services_toast_sevice__WEBPACK_IMPORTED_MODULE_192__["ToastService"], _services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_193__["QuickviewService"], _services_monitoring_service__WEBPACK_IMPORTED_MODULE_181__["MonitoringService"], app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_5__["MaintenancePointService"], _services_time_utils_service__WEBPACK_IMPORTED_MODULE_186__["TimeUtilsService"], _services_dashboard_service__WEBPACK_IMPORTED_MODULE_173__["DashboardService"], _services_data_cache_service__WEBPACK_IMPORTED_MODULE_174__["DataCacheService"], _services_keyboard_service__WEBPACK_IMPORTED_MODULE_178__["KeyboardService"], _services_user_management_service__WEBPACK_IMPORTED_MODULE_190__["UserManagementService"], _services_inactivity_detector__WEBPACK_IMPORTED_MODULE_177__["InactivityDetectorService"], _services_notification_statistics_service__WEBPACK_IMPORTED_MODULE_182__["NotificationStatisticsService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_172__["CSVConversionService"], _services_auxiliary_service__WEBPACK_IMPORTED_MODULE_4__["AuxiliaryService"], _services_terminal_mapping_service__WEBPACK_IMPORTED_MODULE_185__["TerminalMappingService"], _guards_auth_guard__WEBPACK_IMPORTED_MODULE_147__["AuthGuard"], _guards_about_modal_guard__WEBPACK_IMPORTED_MODULE_0__["AboutModalGuard"], _guards_dynamic_page_loader_guard__WEBPACK_IMPORTED_MODULE_148__["DynamicPageLoaderGuard"], _services_auth_service__WEBPACK_IMPORTED_MODULE_162__["AuthService"], _services_app_init_service__WEBPACK_IMPORTED_MODULE_161__["AppInitService"], _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_202__["StatisticsService"], _pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_156__["UnitSystemConvertPipe"], _pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_157__["UnitSystemNumericConvertPipe"], _pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_158__["UnitSystemBaseConvertPipe"], _pipes_unit_system_unit_pipe__WEBPACK_IMPORTED_MODULE_159__["UnitSystemUnitPipe"], angular_l10n__WEBPACK_IMPORTED_MODULE_12__["L10nDecimalPipe"], _pipes_safe_content_pipe__WEBPACK_IMPORTED_MODULE_160__["SafeContentPipe"], _pipes_counter_to_unit_key_pipe__WEBPACK_IMPORTED_MODULE_163__["CounterToUnitKeyPipe"], _pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_164__["CounterToSiUnitPipe"], _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_165__["CounterToSystemUnitPipe"], _pipes_location_alias_pipe__WEBPACK_IMPORTED_MODULE_166__["LocationAliasPipe"], _pipes_location_pipe__WEBPACK_IMPORTED_MODULE_167__["LocationPipe"], _utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_249__["SignalRRetryPolicy"] ], entryComponents: [ _components_fullscreen_fullscreen_pdf_viewer_component__WEBPACK_IMPORTED_MODULE_59__["FullscreenPdfViewerComponent"], _components_cards_spreader_card_component__WEBPACK_IMPORTED_MODULE_34__["SpreaderCardComponent"], _components_cards_traverse_card_component__WEBPACK_IMPORTED_MODULE_35__["TraverseCardComponent"], _components_cards_trolley_card_component__WEBPACK_IMPORTED_MODULE_36__["TrolleyCardComponent"], _components_cards_charger_trolley_card_component__WEBPACK_IMPORTED_MODULE_40__["ChargerTrolleyCardComponent"], _components_cards_rail_gantry_card_component__WEBPACK_IMPORTED_MODULE_30__["RailGantryCardComponent"], _components_cards_rubber_tire_gantry_card_component__WEBPACK_IMPORTED_MODULE_31__["RubberTireGantryCardComponent"], _components_cards_slewing_gear_card_component__WEBPACK_IMPORTED_MODULE_33__["SlewingGearCardComponent"], _components_cards_deprecated_hoist_card_component__WEBPACK_IMPORTED_MODULE_32__["HoistCardComponent"], _components_cards_configurable_grapple_card_component__WEBPACK_IMPORTED_MODULE_38__["ConfigurableGrappleCardComponent"], _components_cards_configurable_hoist_card_component__WEBPACK_IMPORTED_MODULE_37__["ConfigurableHoistCardComponent"], _components_cards_configurable_svg_card_component__WEBPACK_IMPORTED_MODULE_39__["ConfigurableSvgCardComponent"], _components_modals_fullscreen_print_preview_component__WEBPACK_IMPORTED_MODULE_104__["FullscreenPrintPreviewComponent"], _components_dynamic_page_dynamic_page_controls_operator_button_tip_operator_button_tip_component__WEBPACK_IMPORTED_MODULE_219__["OperatorButtonTipComponent"], _components_dynamic_page_dynamic_page_controls_operator_button_toggle_operator_button_toggle_component__WEBPACK_IMPORTED_MODULE_220__["OperatorButtonToggleComponent"], _components_dynamic_page_dynamic_page_controls_operator_timerange_operator_timerange_component__WEBPACK_IMPORTED_MODULE_229__["OperatorTimerangeComponent"], _components_dynamic_page_dynamic_page_controls_operator_radiogroup_operator_radiogroup_component__WEBPACK_IMPORTED_MODULE_228__["OperatorRadiogroupComponent"], _components_dynamic_page_dynamic_page_controls_operator_radiogroup_multi_operator_radiogroup_multi_component__WEBPACK_IMPORTED_MODULE_227__["OperatorRadiogroupMultiComponent"], _components_dynamic_page_dynamic_page_controls_operator_offset_operator_offset_component__WEBPACK_IMPORTED_MODULE_226__["OperatorOffsetComponent"], _components_dynamic_page_dynamic_page_controls_operator_label_operator_label_component__WEBPACK_IMPORTED_MODULE_224__["OperatorLabelComponent"], _components_dynamic_page_dynamic_page_controls_operator_image_operator_image_component__WEBPACK_IMPORTED_MODULE_223__["OperatorImageComponent"], _components_dynamic_page_dynamic_page_controls_operator_progress_bar_operator_progress_bar_component__WEBPACK_IMPORTED_MODULE_225__["OperatorProgressBarComponent"], _components_dynamic_page_dynamic_page_controls_operator_datapoint_collection_operator_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_222__["OperatorDatapointCollectionComponent"], _components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_221__["OperatorChartComponent"], _components_modals_account_settings_account_settings_component__WEBPACK_IMPORTED_MODULE_101__["AccountSettingsComponent"], _components_modals_about_page_about_page_component__WEBPACK_IMPORTED_MODULE_208__["AboutPageComponent"], _components_modals_notification_log_component__WEBPACK_IMPORTED_MODULE_105__["NotificationLogComponent"], _components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_118__["NotificationToastComponent"], _components_common_common_components_value_box_value_box_component__WEBPACK_IMPORTED_MODULE_53__["ValueBoxComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_shape_svg_shape_component__WEBPACK_IMPORTED_MODULE_236__["SvgShapeComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_line_svg_line_component__WEBPACK_IMPORTED_MODULE_235__["SvgLineComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_label_svg_label_component__WEBPACK_IMPORTED_MODULE_232__["SvgLabelComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_value_container_svg_value_container_component__WEBPACK_IMPORTED_MODULE_237__["SvgValueContainerComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_state_text_value_container_svg_state_text_value_container_component__WEBPACK_IMPORTED_MODULE_238__["SvgStateTextValueContainerComponent"], _components_dynamic_page_dynamic_svg_page_controls_card_position_indicator_svg_position_indicator_component__WEBPACK_IMPORTED_MODULE_248__["SvgPositionIndicatorComponent"], _components_dynamic_page_dynamic_svg_page_controls_card_level_indicator_svg_level_indicator_component__WEBPACK_IMPORTED_MODULE_251__["SvgLevelIndicatorComponent"], _components_dynamic_page_dynamic_svg_page_controls_common_svg_display_mode_button_svg_display_mode_button_component__WEBPACK_IMPORTED_MODULE_233__["SvgDisplayModeButtonComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_speed_limitation_svg_speed_limitation_component__WEBPACK_IMPORTED_MODULE_244__["SvgSpeedLimitationComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_gear_box_svg_gear_box_component__WEBPACK_IMPORTED_MODULE_242__["SvgGearBoxComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_wire_drum_svg_wire_drum_component__WEBPACK_IMPORTED_MODULE_245__["SvgWireDrumComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_motor_svg_motor_component__WEBPACK_IMPORTED_MODULE_243__["SvgMotorComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_mechanicalSchema_svg_brake_svg_brake_component__WEBPACK_IMPORTED_MODULE_234__["SvgBrakeComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_frequency_converter_svg_frequency_converter_component__WEBPACK_IMPORTED_MODULE_241__["SvgFrequencyConverterComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_control_unit_svg_control_unit_component__WEBPACK_IMPORTED_MODULE_239__["SvgControlUnitComponent"], _components_dynamic_page_dynamic_svg_page_controls_hoist_electricalSchema_svg_dc_bus_svg_dc_bus_component__WEBPACK_IMPORTED_MODULE_240__["SvgDcBusComponent"] ], bootstrap: [_components_app_component__WEBPACK_IMPORTED_MODULE_26__["AppComponent"]] }), __metadata("design:paramtypes", [_services_monitoring_service__WEBPACK_IMPORTED_MODULE_181__["MonitoringService"]]) ], AppModule); return AppModule; }()); /***/ }), /***/ "./src/app/app.routes.ts": /*!*******************************!*\ !*** ./src/app/app.routes.ts ***! \*******************************/ /*! exports provided: CMS_ROUTING, AppRoutingStrategy */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CMS_ROUTING", function() { return CMS_ROUTING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingStrategy", function() { return AppRoutingStrategy; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _components_analysis_analysis_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/analysis/analysis.component */ "./src/app/components/analysis/analysis.component.ts"); /* harmony import */ var _components_automatic_mode_automatic_mode_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/automatic-mode/automatic-mode.component */ "./src/app/components/automatic-mode/automatic-mode.component.ts"); /* harmony import */ var _components_automatic_mode_half_order_automatic_mode_half_order_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/automatic-mode-half-order/automatic-mode-half-order.component */ "./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.ts"); /* harmony import */ var _components_deprecated_hoist_hoist_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/deprecated/hoist/hoist.component */ "./src/app/components/deprecated/hoist/hoist.component.ts"); /* harmony import */ var _components_dynamic_page_dynamic_page_loader_dynamic_page_loader_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component */ "./src/app/components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component.ts"); /* harmony import */ var _components_gantry_gantry_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/gantry/gantry.component */ "./src/app/components/gantry/gantry.component.ts"); /* harmony import */ var _components_home_home_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/home/home.component */ "./src/app/components/home/home.component.ts"); /* harmony import */ var _components_login_changePassword_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/login/changePassword.component */ "./src/app/components/login/changePassword.component.ts"); /* harmony import */ var _components_login_login_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/login/login.component */ "./src/app/components/login/login.component.ts"); /* harmony import */ var _components_login_logout_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/login/logout.component */ "./src/app/components/login/logout.component.ts"); /* harmony import */ var _components_maintenance_customer_maintenance_points_edit_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/maintenance/customer-maintenance-points-edit.component */ "./src/app/components/maintenance/customer-maintenance-points-edit.component.ts"); /* harmony import */ var _components_maintenance_maintenance_entrylist_edit_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/maintenance/maintenance-entrylist-edit.component */ "./src/app/components/maintenance/maintenance-entrylist-edit.component.ts"); /* harmony import */ var _components_maintenance_maintenance_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/maintenance/maintenance.component */ "./src/app/components/maintenance/maintenance.component.ts"); /* harmony import */ var _components_modals_about_page_about_page_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/modals/about-page/about-page.component */ "./src/app/components/modals/about-page/about-page.component.ts"); /* harmony import */ var _components_not_found_error_not_found_error_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/not-found-error/not-found-error.component */ "./src/app/components/not-found-error/not-found-error.component.ts"); /* harmony import */ var _components_notifications_notification_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/notifications/notification.component */ "./src/app/components/notifications/notification.component.ts"); /* harmony import */ var _components_slewing_gear_slewing_gear_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/slewing-gear/slewing-gear.component */ "./src/app/components/slewing-gear/slewing-gear.component.ts"); /* harmony import */ var _components_spreader_spreader_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/spreader/spreader.component */ "./src/app/components/spreader/spreader.component.ts"); /* harmony import */ var _components_statistics_statistics_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/statistics/statistics.component */ "./src/app/components/statistics/statistics.component.ts"); /* harmony import */ var _components_traverse_traverse_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/traverse/traverse.component */ "./src/app/components/traverse/traverse.component.ts"); /* harmony import */ var _components_trolley_trolley_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/trolley/trolley.component */ "./src/app/components/trolley/trolley.component.ts"); /* harmony import */ var _components_user_management_user_detail_user_detail_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/user-management/user-detail/user-detail.component */ "./src/app/components/user-management/user-detail/user-detail.component.ts"); /* harmony import */ var _components_user_management_user_list_user_list_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/user-management/user-list/user-list.component */ "./src/app/components/user-management/user-list/user-list.component.ts"); /* harmony import */ var _guards_about_modal_guard__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./guards/about-modal.guard */ "./src/app/guards/about-modal.guard.ts"); /* harmony import */ var _guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./guards/auth.guard */ "./src/app/guards/auth.guard.ts"); /* harmony import */ var _guards_dynamic_page_loader_guard__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./guards/dynamic-page-loader.guard */ "./src/app/guards/dynamic-page-loader.guard.ts"); /* harmony import */ var _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./guards/user-management.guard */ "./src/app/guards/user-management.guard.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var appRoutes = [ { path: '', redirectTo: _app_constants__WEBPACK_IMPORTED_MODULE_2__["HOME_PAGE_URL"], pathMatch: 'full' }, { path: _app_constants__WEBPACK_IMPORTED_MODULE_2__["CHANGE_PASSWORD_PAGE_URL"], component: _components_login_changePassword_component__WEBPACK_IMPORTED_MODULE_10__["ChangePasswordComponent"] }, { path: _app_constants__WEBPACK_IMPORTED_MODULE_2__["LOGIN_PAGE_URL"], component: _components_login_login_component__WEBPACK_IMPORTED_MODULE_11__["LoginComponent"] }, { path: 'logout', component: _components_login_logout_component__WEBPACK_IMPORTED_MODULE_12__["LogoutComponent"] }, { path: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_FOUND_URL"], component: _components_not_found_error_not_found_error_component__WEBPACK_IMPORTED_MODULE_17__["NotFoundErrorComponent"] }, { path: _app_constants__WEBPACK_IMPORTED_MODULE_2__["HOME_PAGE_URL"], component: _components_home_home_component__WEBPACK_IMPORTED_MODULE_9__["HomeComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'spreader', component: _components_spreader_spreader_component__WEBPACK_IMPORTED_MODULE_20__["SpreaderComponent"], children: _components_spreader_spreader_component__WEBPACK_IMPORTED_MODULE_20__["SPREADER_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'magneticTraverse', component: _components_traverse_traverse_component__WEBPACK_IMPORTED_MODULE_22__["TraverseComponent"], children: _components_traverse_traverse_component__WEBPACK_IMPORTED_MODULE_22__["TRAVERSE_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'hoist', component: _components_deprecated_hoist_hoist_component__WEBPACK_IMPORTED_MODULE_6__["HoistComponent"], children: _components_deprecated_hoist_hoist_component__WEBPACK_IMPORTED_MODULE_6__["HOIST_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'gantry', component: _components_gantry_gantry_component__WEBPACK_IMPORTED_MODULE_8__["GantryComponent"], children: _components_gantry_gantry_component__WEBPACK_IMPORTED_MODULE_8__["GANTRY_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'trolley', component: _components_trolley_trolley_component__WEBPACK_IMPORTED_MODULE_23__["TrolleyComponent"], children: _components_trolley_trolley_component__WEBPACK_IMPORTED_MODULE_23__["TROLLEY_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'slewingGear', component: _components_slewing_gear_slewing_gear_component__WEBPACK_IMPORTED_MODULE_19__["SlewingGearComponent"], children: _components_slewing_gear_slewing_gear_component__WEBPACK_IMPORTED_MODULE_19__["SLEWING_GEAR_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'automaticMode', component: _components_automatic_mode_automatic_mode_component__WEBPACK_IMPORTED_MODULE_4__["AutomaticModeComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'automaticModeHalfOrder', component: _components_automatic_mode_half_order_automatic_mode_half_order_component__WEBPACK_IMPORTED_MODULE_5__["AutomaticModeHalfOrderComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'notifications', component: _components_notifications_notification_component__WEBPACK_IMPORTED_MODULE_18__["NotificationComponent"], children: _components_notifications_notification_component__WEBPACK_IMPORTED_MODULE_18__["NOTIFICATION_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'maintenance', component: _components_maintenance_maintenance_component__WEBPACK_IMPORTED_MODULE_15__["MaintenanceComponent"], children: _components_maintenance_maintenance_component__WEBPACK_IMPORTED_MODULE_15__["MAINTENANCE_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'maintenance/create', component: _components_maintenance_customer_maintenance_points_edit_component__WEBPACK_IMPORTED_MODULE_13__["CustomerMaintenancePointsEditComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'maintenance/edit/:id', component: _components_maintenance_customer_maintenance_points_edit_component__WEBPACK_IMPORTED_MODULE_13__["CustomerMaintenancePointsEditComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'maintenance/override/:id', component: _components_maintenance_maintenance_entrylist_edit_component__WEBPACK_IMPORTED_MODULE_14__["MaintenanceEntrylistEditComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'users', component: _components_user_management_user_list_user_list_component__WEBPACK_IMPORTED_MODULE_25__["UserListComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"], _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_29__["UserManagementGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"], _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_29__["UserManagementGuard"]] }, { path: 'users/create', component: _components_user_management_user_detail_user_detail_component__WEBPACK_IMPORTED_MODULE_24__["UserDetailComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"], _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_29__["UserManagementGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"], _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_29__["UserManagementGuard"]] }, { path: 'users/edit/:id', component: _components_user_management_user_detail_user_detail_component__WEBPACK_IMPORTED_MODULE_24__["UserDetailComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"], _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_29__["UserManagementGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"], _guards_user_management_guard__WEBPACK_IMPORTED_MODULE_29__["UserManagementGuard"]] }, { path: 'statistics', component: _components_statistics_statistics_component__WEBPACK_IMPORTED_MODULE_21__["StatisticsComponent"], children: _components_statistics_statistics_component__WEBPACK_IMPORTED_MODULE_21__["STATISTICS_CHILD_ROUTES"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'analysis', component: _components_analysis_analysis_component__WEBPACK_IMPORTED_MODULE_3__["AnalysisComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]], canActivateChild: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_27__["AuthGuard"]] }, { path: 'about', component: _components_modals_about_page_about_page_component__WEBPACK_IMPORTED_MODULE_16__["AboutPageComponent"], canActivate: [_guards_about_modal_guard__WEBPACK_IMPORTED_MODULE_26__["AboutModalGuard"]] }, { path: ":" + _app_constants__WEBPACK_IMPORTED_MODULE_2__["DYNAMIC_PAGE_URL"], component: _components_dynamic_page_dynamic_page_loader_dynamic_page_loader_component__WEBPACK_IMPORTED_MODULE_7__["DynamicPageLoaderComponent"], children: [{ path: ":" + _app_constants__WEBPACK_IMPORTED_MODULE_2__["DYNAMIC_TAB_URL"], component: _components_dynamic_page_dynamic_page_loader_dynamic_page_loader_component__WEBPACK_IMPORTED_MODULE_7__["DynamicPageLoaderComponent"] }], canActivate: [_guards_dynamic_page_loader_guard__WEBPACK_IMPORTED_MODULE_28__["DynamicPageLoaderGuard"]], canActivateChild: [_guards_dynamic_page_loader_guard__WEBPACK_IMPORTED_MODULE_28__["DynamicPageLoaderGuard"]] } ]; var CMS_ROUTING = _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forRoot(appRoutes, { useHash: false, enableTracing: false, initialNavigation: false }); var AppRoutingStrategy = /** @class */ (function () { function AppRoutingStrategy() { this.cachedRoutes = new Set(); this.handlers = new Map(); } /** Stores the detached route */ AppRoutingStrategy.prototype.store = function (route, handle) { if (route != null && route.routeConfig != null && route.routeConfig.path) { this.handlers.set(route.routeConfig.path, handle); } }; /** Retrieves the previously stored route */ AppRoutingStrategy.prototype.retrieve = function (route) { if (route != null && route.routeConfig != null && route.routeConfig.path != null) { var handler = this.handlers.get(route.routeConfig.path); if (handler != null) { return handler; } } return null; }; /** Determines if this route (and its subtree) should be reattached */ AppRoutingStrategy.prototype.shouldAttach = function (route) { if (route != null && route.routeConfig != null && route.routeConfig.path) { return route.routeConfig != null && this.handlers.has(route.routeConfig.path); } return false; }; /** Determines if this route (and its subtree) should be detached to be reused later */ AppRoutingStrategy.prototype.shouldDetach = function (route) { return false; }; /** Determines if a route should be reused */ AppRoutingStrategy.prototype.shouldReuseRoute = function (future, curr) { return future.routeConfig === curr.routeConfig && future.paramMap.get(_app_constants__WEBPACK_IMPORTED_MODULE_2__["DYNAMIC_PAGE_URL"]) === curr.paramMap.get(_app_constants__WEBPACK_IMPORTED_MODULE_2__["DYNAMIC_PAGE_URL"]); }; AppRoutingStrategy = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])() ], AppRoutingStrategy); return AppRoutingStrategy; }()); /***/ }), /***/ "./src/app/components/analysis/analysis.component.html": /*!*************************************************************!*\ !*** ./src/app/components/analysis/analysis.component.html ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
\n
\n
\n
\n \n
\n
\n
\n \n {{ !isInOverview() ? getZoomPercentage() + '%' :\n 'overview' }}\n
\n
\n \n \n
\n \n \n
\n
\n\n\n
\n
Export
\n
\n \n
\n
\n \n
\n\n
\n
\n
\n
\n
quickwatch
\n
\n
\n \n
\n
\n 0\"\n [data-collection]=\"datapointCollectionObservable\" [grouped]=\"true\" [item-selection]=\"true\"\n [selection-type]=\"selectionType\" [selection-color-palette]=\"colorPalette\" [max-selected-items]=\"10\">\n \n
\n
\n
\n \n
no_datapoints_selected
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
" /***/ }), /***/ "./src/app/components/analysis/analysis.component.scss": /*!*************************************************************!*\ !*** ./src/app/components/analysis/analysis.component.scss ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme .chart-frame {\n background-color: #ffffff; }\n\n.default-theme .control-separator {\n border-left: 1px solid #69727e; }\n\n.testing-theme .chart-frame {\n background-color: #98057e; }\n\n.testing-theme .control-separator {\n border-left: 1px solid rgba(255, 255, 255, 0.75); }\n\n.container .row {\n margin-left: auto;\n margin-right: auto; }\n\n.control-button + .control-button {\n margin-left: 1em; }\n\n.zoom-button {\n width: 36px;\n padding: unset; }\n\n.control-separator {\n height: 36px;\n width: 1px;\n display: inline-block;\n margin: 0 1em;\n vertical-align: middle; }\n\n.value-box {\n display: inline-block;\n vertical-align: middle; }\n\n.value-box .value-container {\n display: table;\n padding-right: 1em; }\n\n.value-box .value-container .value {\n display: table-cell;\n font-size: 1.4em;\n height: 36px;\n line-height: 36px;\n vertical-align: middle;\n min-width: 5em; }\n\n.value-box .value-container i {\n display: table-cell;\n height: 36px;\n line-height: 36px;\n vertical-align: middle;\n padding-right: 0.5em; }\n\n.chart-frame {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%; }\n\n.chart-frame .chart-host {\n width: auto;\n height: 100%;\n display: block;\n padding: 1em;\n box-sizing: border-box;\n cursor: grab; }\n\n.content-wrapper .col {\n height: inherit; }\n\n.content-wrapper .col.datapoint-collection-container {\n position: relative; }\n\n.content-wrapper .col.datapoint-collection-container .modal-headline {\n position: absolute;\n padding-bottom: 16px; }\n\n.content-wrapper .col.datapoint-collection-container .modal-headline .headline-label, .content-wrapper .col.datapoint-collection-container .modal-headline .headline-control {\n display: table-cell;\n vertical-align: middle; }\n\n.content-wrapper .col.datapoint-collection-container .modal-headline .headline-label {\n text-align: left;\n width: 100%; }\n\n.content-wrapper .col.datapoint-collection-container .modal-headline h5, .content-wrapper .col.datapoint-collection-container .modal-headline .headline-label > h5 {\n text-transform: uppercase;\n font-size: 22px; }\n\n.content-wrapper .col.datapoint-collection-container .modal-headline .headline-control {\n text-align: right;\n white-space: nowrap; }\n\n.content-wrapper .col.datapoint-collection-container .modal-headline .headline-control button {\n font-weight: bold;\n display: inline-block;\n min-width: 9em; }\n\n.content-wrapper .col.datapoint-collection-container .scrollable-content {\n position: absolute;\n top: 62px;\n height: calc(100% - 62px);\n overflow-y: scroll;\n overflow-x: hidden; }\n\n.content-wrapper .col .floating-chart-container {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n overflow: hidden;\n height: 100%;\n display: block;\n position: relative; }\n\n.content-placeholder {\n height: 100%;\n width: 100%;\n display: table;\n text-align: center; }\n\n.content-placeholder .no-data-wrapper {\n display: table-cell;\n vertical-align: middle; }\n\n.dropdown-content {\n width: inherit !important;\n overflow: visible !important; }\n" /***/ }), /***/ "./src/app/components/analysis/analysis.component.ts": /*!***********************************************************!*\ !*** ./src/app/components/analysis/analysis.component.ts ***! \***********************************************************/ /*! exports provided: AnalysisComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnalysisComponent", function() { return AnalysisComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/quickview/quickview.service */ "./src/app/services/quickview/quickview.service.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var rxjs_internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/internal/ReplaySubject */ "./node_modules/rxjs/internal/ReplaySubject.js"); /* harmony import */ var rxjs_internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _datapoints_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../datapoints/datapoint-collection.component */ "./src/app/components/datapoints/datapoint-collection.component.ts"); /* harmony import */ var _dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var DefaultZoomLevel = 100; var ZoomLevelStep = DefaultZoomLevel / 10; var AnalysisComponent = /** @class */ (function () { function AnalysisComponent(_viewService, _quickviewService, _colorService, _translationService, _unitConversionService) { this._viewService = _viewService; this._quickviewService = _quickviewService; this._colorService = _colorService; this._translationService = _translationService; this._unitConversionService = _unitConversionService; this._pageName = 'analysis'; this._datapointCollectionSubject = new rxjs_internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__["ReplaySubject"](1); this.datapointCollectionObservable = this._datapointCollectionSubject.asObservable(); this.chartType = _dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_8__["ChartType"].Line; this.selectionType = _datapoints_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_7__["SelectionType"].Trend; this.isPaused = false; this.isExported = false; this.colorPalette = this._colorService.chartSeriesPalette; } AnalysisComponent.prototype.ngOnInit = function () { var _this = this; this.chart.settings = { showedTimeRange: 15000 }; this._viewService.setToolbarTitle(this._pageName); this._quickviewCollectionSubscription = this._quickviewService.watchedItems.subscribe(function (dpCollection) { return _this._datapointCollectionSubject.next(dpCollection); }); this._dataSamplesSubscription = this.getDatasamplesSubscription(); }; AnalysisComponent.prototype.ngOnDestroy = function () { if (this._quickviewCollectionSubscription != null) { this._quickviewCollectionSubscription.unsubscribe(); } if (this._dataSamplesSubscription != null) { this._dataSamplesSubscription.unsubscribe(); } if (this._translationServiceSubscription != null) { this._translationServiceSubscription.unsubscribe(); } if (this._unitConversionServiceSubscription != null) { this._unitConversionServiceSubscription.unsubscribe(); } if (this.chart != null) { this.chart.dispose(); } }; AnalysisComponent.prototype.onChartInit = function (chart) { var _this = this; var nks = this._quickviewService.sampledNaturalKeys; this.addMissingDatasets(nks, true); this._translationServiceSubscription = this._translationService.languageChangedEvent.subscribe(function (_) { if (_this.chart != null) { _this.onChartRefresh(); } }); this._unitConversionServiceSubscription = this._unitConversionService.unitSystemChanged.subscribe(function (_) { if (_this.chart != null) { _this.onChartRefresh(); } }); }; AnalysisComponent.prototype.onChartRefresh = function (chart) { if (this.isActive()) { var nks = this.chart.getDatasetIds(); for (var _i = 0, nks_1 = nks; _i < nks_1.length; _i++) { var nk = nks_1[_i]; var dataArray = this._quickviewService.getSampledData(nk); this.chart.supplyData(nk, dataArray); } } }; Object.defineProperty(AnalysisComponent.prototype, "maxTrendToggleCount", { get: function () { return Math.min(this._quickviewService.watchedItemsCount, app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_3__["MAX_TREND_ITEMS"]); }, enumerable: true, configurable: true }); Object.defineProperty(AnalysisComponent.prototype, "watchedItems", { get: function () { return this._quickviewService != null ? this._quickviewService.watchedItemsCount : 0; }, enumerable: true, configurable: true }); AnalysisComponent.prototype.export = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.export_png()]; case 1: _a.sent(); return [4 /*yield*/, this.export_csv()]; case 2: _a.sent(); return [2 /*return*/]; } }); }); }; AnalysisComponent.prototype.export_png = function () { return __awaiter(this, void 0, void 0, function () { var fileName, imageExportPromise; return __generator(this, function (_a) { switch (_a.label) { case 0: fileName = this._pageName; imageExportPromise = this.chart.exportImage(fileName); return [4 /*yield*/, Promise.all([imageExportPromise])]; case 1: _a.sent(); return [2 /*return*/]; } }); }); }; AnalysisComponent.prototype.export_csv = function () { return __awaiter(this, void 0, void 0, function () { var fileName, fileExportPromise; return __generator(this, function (_a) { switch (_a.label) { case 0: fileName = this._pageName; fileExportPromise = this._quickviewService.exportCSV(fileName); return [4 /*yield*/, Promise.all([fileExportPromise])]; case 1: _a.sent(); return [2 /*return*/]; } }); }); }; AnalysisComponent.prototype.trendAll = function () { this._quickviewService.trendAll(); }; AnalysisComponent.prototype.togglePlayPause = function () { if (this.chart != null) { this.isPaused = this.chart.togglePause(); if (!this.isPaused && this.isZoomed()) { this.resetZoom(); } } }; AnalysisComponent.prototype.isZoomed = function () { return this.chart != null ? this.chart.getZoomLevel() !== DefaultZoomLevel : false; }; AnalysisComponent.prototype.isInOverview = function () { if (this.chart != null) { var currentZoomLevel = this.chart.getZoomLevel(); var maxZoomLevel = this.chart.getMaxZoomLevel(); return currentZoomLevel >= maxZoomLevel; } return false; }; AnalysisComponent.prototype.getZoomPercentage = function () { return Math.round(this.getMaxZoomLevel() * 100 / this.getZoomLevel()); }; AnalysisComponent.prototype.getZoomLevel = function () { return this.chart != null ? this.chart.getZoomLevel() : DefaultZoomLevel; }; AnalysisComponent.prototype.getMaxZoomLevel = function () { return this.chart != null ? this.chart.getMaxZoomLevel() : DefaultZoomLevel; }; Object.defineProperty(AnalysisComponent.prototype, "canZoomIn", { get: function () { return this.getZoomLevel() > DefaultZoomLevel; }, enumerable: true, configurable: true }); Object.defineProperty(AnalysisComponent.prototype, "canZoomOut", { get: function () { return this.getZoomLevel() < this.getMaxZoomLevel(); }, enumerable: true, configurable: true }); AnalysisComponent.prototype.zoomIn = function () { if (this.canZoomIn) { var currentZoomLevel = this.getZoomLevel(); var newZoomLevel = Math.max(currentZoomLevel - ZoomLevelStep, DefaultZoomLevel); this.chart.zoomTo(newZoomLevel); this.chart.update({ duration: 0 }); } }; AnalysisComponent.prototype.zoomOut = function () { if (this.canZoomOut) { var maxZoomLevel = this.getMaxZoomLevel(); var currentZoomLevel = this.getZoomLevel(); var newZoomLevel = Math.min(currentZoomLevel + ZoomLevelStep, maxZoomLevel); this.chart.zoomTo(newZoomLevel); this.chart.update({ duration: 0 }); } }; AnalysisComponent.prototype.resetZoom = function () { this.chart.zoomTo(100); this.chart.update({ duration: 0 }); }; AnalysisComponent.prototype.showOverview = function () { this.chart.zoomTo(Number.MIN_VALUE); this.chart.update({ duration: 0 }); }; AnalysisComponent.prototype.isActive = function () { var hasWatchItems = this._quickviewService != null ? this._quickviewService.watchedItemsCount > 0 : false; return hasWatchItems; }; AnalysisComponent.prototype.getDatasamplesSubscription = function () { var _this = this; return this._quickviewService.dataSamples.subscribe(function (changeEvent) { if (changeEvent != null && changeEvent.state != null && changeEvent.nks != null && changeEvent.nks.length > 0) { var isDirty = false; switch (changeEvent.state) { case app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_3__["DataSampleState"].Added: { isDirty = _this.addMissingDatasets(changeEvent.nks); break; } case app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_3__["DataSampleState"].Deleted: { isDirty = _this.cleanupDatasets(changeEvent.nks); break; } } if (isDirty) { _this.chart.update({ preservation: true }); } } }); }; AnalysisComponent.prototype.addMissingDatasets = function (nks, isUpdateRequired) { if (isUpdateRequired === void 0) { isUpdateRequired = false; } var isDirty = false; for (var _i = 0, nks_2 = nks; _i < nks_2.length; _i++) { var nk = nks_2[_i]; if (!this.chart.hasDataset(nk)) { var quickWatchItem = this._quickviewService.getQuickwatchItem(nk); if (quickWatchItem != null) { this.chart.addDataset(nk, quickWatchItem.title, quickWatchItem.trendColor, []); isDirty = true; } } } if (isUpdateRequired && isDirty) { this.chart.update({ preservation: true }); } return isDirty; }; AnalysisComponent.prototype.cleanupDatasets = function (nks, isUpdateRequired) { if (isUpdateRequired === void 0) { isUpdateRequired = false; } var isDirty = false; for (var _i = 0, nks_3 = nks; _i < nks_3.length; _i++) { var nk = nks_3[_i]; if (this.chart.hasDataset(nk)) { this.chart.removeDataset(nk); isDirty = true; } } if (isUpdateRequired && isDirty) { this.chart.update({ preservation: true }); } return isDirty; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('chart'), __metadata("design:type", _dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_8__["OperatorChartComponent"]) ], AnalysisComponent.prototype, "chart", void 0); AnalysisComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'analysis', template: __webpack_require__(/*! ./analysis.component.html */ "./src/app/components/analysis/analysis.component.html"), styles: [__webpack_require__(/*! ./analysis.component.scss */ "./src/app/components/analysis/analysis.component.scss")] }), __metadata("design:paramtypes", [app_services_view_service__WEBPACK_IMPORTED_MODULE_5__["ViewService"], app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_3__["QuickviewService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_2__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__["UnitConversionService"]]) ], AnalysisComponent); return AnalysisComponent; }()); /***/ }), /***/ "./src/app/components/animation/page-transition.animation.ts": /*!*******************************************************************!*\ !*** ./src/app/components/animation/page-transition.animation.ts ***! \*******************************************************************/ /*! exports provided: PageTransitionAnimation */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageTransitionAnimation", function() { return PageTransitionAnimation; }); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm5/animations.js"); var PageTransitionAnimation = /** @class */ (function () { function PageTransitionAnimation() { } PageTransitionAnimation.default = [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["trigger"])('routeAnimation', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["state"])('*', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ transform: 'translateX(0)', opacity: 1 })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["transition"])('void => *', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ transform: 'translateX(-100%)', opacity: 0 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["animate"])('0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000)') ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["transition"])('* => void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["animate"])('0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000)', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ transform: 'translateX(100%)', opacity: 0 }))) ]) ]; PageTransitionAnimation.opacity = [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["trigger"])('routeAnimation', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["state"])('*', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 1 })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["transition"])('void => *', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 0 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["animate"])('0.3s ease-in') ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["transition"])('* => void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["animate"])('0.3s ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 0 }))) ]) ]; return PageTransitionAnimation; }()); /***/ }), /***/ "./src/app/components/app.component.html": /*!***********************************************!*\ !*** ./src/app/components/app.component.html ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n
\n \n \n
\n
\n
\n
\n
\n
\n \n \n \n \n \n \n \n
" /***/ }), /***/ "./src/app/components/app.component.scss": /*!***********************************************!*\ !*** ./src/app/components/app.component.scss ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme .logo-color {\n color: #1561a1; }\n\n.default-theme .logo-color-bg {\n background-color: #1561a1; }\n\n.default-theme .logo-color-fill {\n fill: #1561a1; }\n\n.default-theme .logo-color-stroke {\n stroke: #1561a1; }\n\n.default-theme .primary-color {\n color: #ffffff; }\n\n.default-theme .primary-color-bg {\n background-color: #ffffff; }\n\n.default-theme .primary-color-fill {\n fill: #ffffff; }\n\n.default-theme .primary-color-stroke {\n stroke: #ffffff; }\n\n.default-theme .accent-color {\n color: #1561a1; }\n\n.default-theme .accent-color-bg {\n background-color: #1561a1; }\n\n.default-theme .accent-color-fill {\n fill: #1561a1; }\n\n.default-theme .accent-color-stroke {\n stroke: #1561a1; }\n\n.default-theme .note-color {\n color: #ffa80f; }\n\n.default-theme .note-color-bg {\n background-color: #ffa80f; }\n\n.default-theme .note-color-fill {\n fill: #ffa80f; }\n\n.default-theme .note-color-stroke {\n stroke: #ffa80f; }\n\n.default-theme .row-hover {\n color: #d0e8fc; }\n\n.default-theme .row-hover-bg {\n background-color: #d0e8fc; }\n\n.default-theme .row-hover-fill {\n fill: #d0e8fc; }\n\n.default-theme .row-hover-stroke {\n stroke: #d0e8fc; }\n\n.default-theme .contrast-0 {\n color: #ffffff; }\n\n.default-theme .contrast-0-bg {\n background-color: #ffffff; }\n\n.default-theme .contrast-0-fill {\n fill: #ffffff; }\n\n.default-theme .contrast-0-stroke {\n stroke: #ffffff; }\n\n.default-theme .contrast-1 {\n color: #eaebed; }\n\n.default-theme .contrast-1-bg {\n background-color: #eaebed; }\n\n.default-theme .contrast-1-fill {\n fill: #eaebed; }\n\n.default-theme .contrast-1-stroke {\n stroke: #eaebed; }\n\n.default-theme .contrast-2 {\n color: #d4d7da; }\n\n.default-theme .contrast-2-bg {\n background-color: #d4d7da; }\n\n.default-theme .contrast-2-fill {\n fill: #d4d7da; }\n\n.default-theme .contrast-2-stroke {\n stroke: #d4d7da; }\n\n.default-theme .contrast-3 {\n color: #949aa3; }\n\n.default-theme .contrast-3-bg {\n background-color: #949aa3; }\n\n.default-theme .contrast-3-fill {\n fill: #949aa3; }\n\n.default-theme .contrast-3-stroke {\n stroke: #949aa3; }\n\n.default-theme .contrast-4 {\n color: #69727e; }\n\n.default-theme .contrast-4-bg {\n background-color: #69727e; }\n\n.default-theme .contrast-4-fill {\n fill: #69727e; }\n\n.default-theme .contrast-4-stroke {\n stroke: #69727e; }\n\n.default-theme .contrast-5 {\n color: #293647; }\n\n.default-theme .contrast-5-bg {\n background-color: #293647; }\n\n.default-theme .contrast-5-fill {\n fill: #293647; }\n\n.default-theme .contrast-5-stroke {\n stroke: #293647; }\n\n.default-theme .contrast-6 {\n color: #f4f5f6; }\n\n.default-theme .contrast-6-bg {\n background-color: #f4f5f6; }\n\n.default-theme .contrast-6-fill {\n fill: #f4f5f6; }\n\n.default-theme .contrast-6-stroke {\n stroke: #f4f5f6; }\n\n.default-theme .contrast-7 {\n color: #c4c7cc; }\n\n.default-theme .contrast-7-bg {\n background-color: #c4c7cc; }\n\n.default-theme .contrast-7-fill {\n fill: #c4c7cc; }\n\n.default-theme .contrast-7-stroke {\n stroke: #c4c7cc; }\n\n.default-theme .contrast-8 {\n color: #696e76; }\n\n.default-theme .contrast-8-bg {\n background-color: #696e76; }\n\n.default-theme .contrast-8-fill {\n fill: #696e76; }\n\n.default-theme .contrast-8-stroke {\n stroke: #696e76; }\n\n.default-theme .contrast-9 {\n color: #9197a0; }\n\n.default-theme .contrast-9-bg {\n background-color: #9197a0; }\n\n.default-theme .contrast-9-fill {\n fill: #9197a0; }\n\n.default-theme .contrast-9-stroke {\n stroke: #9197a0; }\n\n.default-theme .background {\n color: #d4d7da; }\n\n.default-theme .background-bg {\n background-color: #d4d7da; }\n\n.default-theme .background-fill {\n fill: #d4d7da; }\n\n.default-theme .background-stroke {\n stroke: #d4d7da; }\n\n.default-theme .content-background {\n color: #f4f5f6; }\n\n.default-theme .content-background-bg {\n background-color: #f4f5f6; }\n\n.default-theme .content-background-fill {\n fill: #f4f5f6; }\n\n.default-theme .content-background-stroke {\n stroke: #f4f5f6; }\n\n.default-theme .state-ok {\n color: #00cf78; }\n\n.default-theme .state-ok-bg {\n background-color: #00cf78; }\n\n.default-theme .state-ok-fill {\n fill: #00cf78; }\n\n.default-theme .state-ok-stroke {\n stroke: #00cf78; }\n\n.default-theme .state-info {\n color: #00cf78; }\n\n.default-theme .state-info-bg {\n background-color: #00cf78; }\n\n.default-theme .state-info-fill {\n fill: #00cf78; }\n\n.default-theme .state-info-stroke {\n stroke: #00cf78; }\n\n.default-theme .state-active {\n color: #00cf78; }\n\n.default-theme .state-active-bg {\n background-color: #00cf78; }\n\n.default-theme .state-active-fill {\n fill: #00cf78; }\n\n.default-theme .state-active-stroke {\n stroke: #00cf78; }\n\n.default-theme .font-color-primary {\n color: #293647; }\n\n.default-theme .font-color-primary-bg {\n background-color: #293647; }\n\n.default-theme .font-color-primary-fill {\n fill: #293647; }\n\n.default-theme .font-color-primary-stroke {\n stroke: #293647; }\n\n.default-theme .font-color-secondary {\n color: #69727e; }\n\n.default-theme .font-color-secondary-bg {\n background-color: #69727e; }\n\n.default-theme .font-color-secondary-fill {\n fill: #69727e; }\n\n.default-theme .font-color-secondary-stroke {\n stroke: #69727e; }\n\n.default-theme .font-color-tertiary {\n color: #c7c7c7; }\n\n.default-theme .font-color-tertiary-bg {\n background-color: #c7c7c7; }\n\n.default-theme .font-color-tertiary-fill {\n fill: #c7c7c7; }\n\n.default-theme .font-color-tertiary-stroke {\n stroke: #c7c7c7; }\n\n.default-theme .font-color-primary-invers {\n color: #293647; }\n\n.default-theme .font-color-primary-invers-bg {\n background-color: #293647; }\n\n.default-theme .font-color-primary-invers-fill {\n fill: #293647; }\n\n.default-theme .font-color-primary-invers-stroke {\n stroke: #293647; }\n\n.default-theme .font-color-secondary-invers {\n color: #69727e; }\n\n.default-theme .font-color-secondary-invers-bg {\n background-color: #69727e; }\n\n.default-theme .font-color-secondary-invers-fill {\n fill: #69727e; }\n\n.default-theme .font-color-secondary-invers-stroke {\n stroke: #69727e; }\n\n.default-theme .font-color-tertiary-invers {\n color: #c7c7c7; }\n\n.default-theme .font-color-tertiary-invers-bg {\n background-color: #c7c7c7; }\n\n.default-theme .font-color-tertiary-invers-fill {\n fill: #c7c7c7; }\n\n.default-theme .font-color-tertiary-invers-stroke {\n stroke: #c7c7c7; }\n\n.default-theme .sensor-color-on {\n color: #00cf78; }\n\n.default-theme .sensor-color-on-bg {\n background-color: #00cf78; }\n\n.default-theme .sensor-color-on-fill {\n fill: #00cf78; }\n\n.default-theme .sensor-color-on-stroke {\n stroke: #00cf78; }\n\n.default-theme .sensor-color-off {\n color: #d4d7da; }\n\n.default-theme .sensor-color-off-bg {\n background-color: #d4d7da; }\n\n.default-theme .sensor-color-off-fill {\n fill: #d4d7da; }\n\n.default-theme .sensor-color-off-stroke {\n stroke: #d4d7da; }\n\n.default-theme .seated {\n color: #e0940d; }\n\n.default-theme .seated-bg {\n background-color: #e0940d; }\n\n.default-theme .seated-fill {\n fill: #e0940d; }\n\n.default-theme .seated-stroke {\n stroke: #e0940d; }\n\n.default-theme .locked {\n color: #8e1c1c; }\n\n.default-theme .locked-bg {\n background-color: #8e1c1c; }\n\n.default-theme .locked-fill {\n fill: #8e1c1c; }\n\n.default-theme .locked-stroke {\n stroke: #8e1c1c; }\n\n.default-theme .locked-invers {\n color: #387a56; }\n\n.default-theme .locked-invers-bg {\n background-color: #387a56; }\n\n.default-theme .locked-invers-fill {\n fill: #387a56; }\n\n.default-theme .locked-invers-stroke {\n stroke: #387a56; }\n\n.default-theme .unclamped {\n color: #00cf78; }\n\n.default-theme .unclamped-bg {\n background-color: #00cf78; }\n\n.default-theme .unclamped-fill {\n fill: #00cf78; }\n\n.default-theme .unclamped-stroke {\n stroke: #00cf78; }\n\n.default-theme .unclamped-invers {\n color: #8e1c1c; }\n\n.default-theme .unclamped-invers-bg {\n background-color: #8e1c1c; }\n\n.default-theme .unclamped-invers-fill {\n fill: #8e1c1c; }\n\n.default-theme .unclamped-invers-stroke {\n stroke: #8e1c1c; }\n\n.default-theme .unlocked {\n color: #387a56; }\n\n.default-theme .unlocked-bg {\n background-color: #387a56; }\n\n.default-theme .unlocked-fill {\n fill: #387a56; }\n\n.default-theme .unlocked-stroke {\n stroke: #387a56; }\n\n.default-theme .unlocked-invers {\n color: #8e1c1c; }\n\n.default-theme .unlocked-invers-bg {\n background-color: #8e1c1c; }\n\n.default-theme .unlocked-invers-fill {\n fill: #8e1c1c; }\n\n.default-theme .unlocked-invers-stroke {\n stroke: #8e1c1c; }\n\n.default-theme .speedlimit {\n color: #ffa80f; }\n\n.default-theme .speedlimit-bg {\n background-color: #ffa80f; }\n\n.default-theme .speedlimit-fill {\n fill: #ffa80f; }\n\n.default-theme .speedlimit-stroke {\n stroke: #ffa80f; }\n\n.default-theme .interlock {\n color: #f11d40; }\n\n.default-theme .interlock-bg {\n background-color: #f11d40; }\n\n.default-theme .interlock-fill {\n fill: #f11d40; }\n\n.default-theme .interlock-stroke {\n stroke: #f11d40; }\n\n.default-theme .chart-series-1 {\n color: #00dc7f; }\n\n.default-theme .chart-series-1-bg {\n background-color: #00dc7f; }\n\n.default-theme .chart-series-1-fill {\n fill: #00dc7f; }\n\n.default-theme .chart-series-1-stroke {\n stroke: #00dc7f; }\n\n.default-theme .chart-series-2 {\n color: #2e19f6; }\n\n.default-theme .chart-series-2-bg {\n background-color: #2e19f6; }\n\n.default-theme .chart-series-2-fill {\n fill: #2e19f6; }\n\n.default-theme .chart-series-2-stroke {\n stroke: #2e19f6; }\n\n.default-theme .chart-series-3 {\n color: #f62596; }\n\n.default-theme .chart-series-3-bg {\n background-color: #f62596; }\n\n.default-theme .chart-series-3-fill {\n fill: #f62596; }\n\n.default-theme .chart-series-3-stroke {\n stroke: #f62596; }\n\n.default-theme .chart-series-4 {\n color: #f68825; }\n\n.default-theme .chart-series-4-bg {\n background-color: #f68825; }\n\n.default-theme .chart-series-4-fill {\n fill: #f68825; }\n\n.default-theme .chart-series-4-stroke {\n stroke: #f68825; }\n\n.default-theme .chart-series-5 {\n color: #f0f619; }\n\n.default-theme .chart-series-5-bg {\n background-color: #f0f619; }\n\n.default-theme .chart-series-5-fill {\n fill: #f0f619; }\n\n.default-theme .chart-series-5-stroke {\n stroke: #f0f619; }\n\n.default-theme .chart-series-6 {\n color: #E74C3C; }\n\n.default-theme .chart-series-6-bg {\n background-color: #E74C3C; }\n\n.default-theme .chart-series-6-fill {\n fill: #E74C3C; }\n\n.default-theme .chart-series-6-stroke {\n stroke: #E74C3C; }\n\n.default-theme .chart-series-7 {\n color: #C39BD3; }\n\n.default-theme .chart-series-7-bg {\n background-color: #C39BD3; }\n\n.default-theme .chart-series-7-fill {\n fill: #C39BD3; }\n\n.default-theme .chart-series-7-stroke {\n stroke: #C39BD3; }\n\n.default-theme .chart-series-8 {\n color: #00796B; }\n\n.default-theme .chart-series-8-bg {\n background-color: #00796B; }\n\n.default-theme .chart-series-8-fill {\n fill: #00796B; }\n\n.default-theme .chart-series-8-stroke {\n stroke: #00796B; }\n\n.default-theme .chart-series-9 {\n color: #F1948A; }\n\n.default-theme .chart-series-9-bg {\n background-color: #F1948A; }\n\n.default-theme .chart-series-9-fill {\n fill: #F1948A; }\n\n.default-theme .chart-series-9-stroke {\n stroke: #F1948A; }\n\n.default-theme .chart-series-10 {\n color: #03a9f4; }\n\n.default-theme .chart-series-10-bg {\n background-color: #03a9f4; }\n\n.default-theme .chart-series-10-fill {\n fill: #03a9f4; }\n\n.default-theme .chart-series-10-stroke {\n stroke: #03a9f4; }\n\n.default-theme .replay-mode {\n color: #f11d40; }\n\n.default-theme .replay-mode-bg {\n background-color: #f11d40; }\n\n.default-theme .replay-mode-fill {\n fill: #f11d40; }\n\n.default-theme .replay-mode-stroke {\n stroke: #f11d40; }\n\n.default-theme .testing-mode {\n color: #4797d5; }\n\n.default-theme .testing-mode-bg {\n background-color: #4797d5; }\n\n.default-theme .testing-mode-fill {\n fill: #4797d5; }\n\n.default-theme .testing-mode-stroke {\n stroke: #4797d5; }\n\n.default-theme .state-warning {\n color: #ffa80f; }\n\n.default-theme .state-warning-bg {\n background-color: #ffa80f; }\n\n.default-theme .state-warning-fill {\n fill: #ffa80f; }\n\n.default-theme .state-warning-stroke {\n stroke: #ffa80f; }\n\n.default-theme .state-alert {\n color: #f11d40; }\n\n.default-theme .state-alert-bg {\n background-color: #f11d40; }\n\n.default-theme .state-alert-fill {\n fill: #f11d40; }\n\n.default-theme .state-alert-stroke {\n stroke: #f11d40; }\n\n.default-theme .state-alert-light {\n color: #f9a4b2; }\n\n.default-theme .state-alert-light-bg {\n background-color: #f9a4b2; }\n\n.default-theme .state-alert-light-fill {\n fill: #f9a4b2; }\n\n.default-theme .state-alert-light-stroke {\n stroke: #f9a4b2; }\n\n.default-theme .state-failure {\n color: #8e1c1c; }\n\n.default-theme .state-failure-bg {\n background-color: #8e1c1c; }\n\n.default-theme .state-failure-fill {\n fill: #8e1c1c; }\n\n.default-theme .state-failure-stroke {\n stroke: #8e1c1c; }\n\n.default-theme .state-unknown {\n color: #d4d7da; }\n\n.default-theme .state-unknown-bg {\n background-color: #d4d7da; }\n\n.default-theme .state-unknown-fill {\n fill: #d4d7da; }\n\n.default-theme .state-unknown-stroke {\n stroke: #d4d7da; }\n\n.testing-theme .logo-color {\n color: #ffffff; }\n\n.testing-theme .logo-color-bg {\n background-color: #ffffff; }\n\n.testing-theme .logo-color-fill {\n fill: #ffffff; }\n\n.testing-theme .logo-color-stroke {\n stroke: #ffffff; }\n\n.testing-theme .primary-color {\n color: #98057e; }\n\n.testing-theme .primary-color-bg {\n background-color: #98057e; }\n\n.testing-theme .primary-color-fill {\n fill: #98057e; }\n\n.testing-theme .primary-color-stroke {\n stroke: #98057e; }\n\n.testing-theme .accent-color {\n color: #cfac1f; }\n\n.testing-theme .accent-color-bg {\n background-color: #cfac1f; }\n\n.testing-theme .accent-color-fill {\n fill: #cfac1f; }\n\n.testing-theme .accent-color-stroke {\n stroke: #cfac1f; }\n\n.testing-theme .note-color {\n color: #ffa80f; }\n\n.testing-theme .note-color-bg {\n background-color: #ffa80f; }\n\n.testing-theme .note-color-fill {\n fill: #ffa80f; }\n\n.testing-theme .note-color-stroke {\n stroke: #ffa80f; }\n\n.testing-theme .row-hover {\n color: #c2b377; }\n\n.testing-theme .row-hover-bg {\n background-color: #c2b377; }\n\n.testing-theme .row-hover-fill {\n fill: #c2b377; }\n\n.testing-theme .row-hover-stroke {\n stroke: #c2b377; }\n\n.testing-theme .contrast-0 {\n color: #ffffff; }\n\n.testing-theme .contrast-0-bg {\n background-color: #ffffff; }\n\n.testing-theme .contrast-0-fill {\n fill: #ffffff; }\n\n.testing-theme .contrast-0-stroke {\n stroke: #ffffff; }\n\n.testing-theme .contrast-1 {\n color: #bdc2c6; }\n\n.testing-theme .contrast-1-bg {\n background-color: #bdc2c6; }\n\n.testing-theme .contrast-1-fill {\n fill: #bdc2c6; }\n\n.testing-theme .contrast-1-stroke {\n stroke: #bdc2c6; }\n\n.testing-theme .contrast-2 {\n color: #b0c3d2; }\n\n.testing-theme .contrast-2-bg {\n background-color: #b0c3d2; }\n\n.testing-theme .contrast-2-fill {\n fill: #b0c3d2; }\n\n.testing-theme .contrast-2-stroke {\n stroke: #b0c3d2; }\n\n.testing-theme .contrast-3 {\n color: #a9cfec; }\n\n.testing-theme .contrast-3-bg {\n background-color: #a9cfec; }\n\n.testing-theme .contrast-3-fill {\n fill: #a9cfec; }\n\n.testing-theme .contrast-3-stroke {\n stroke: #a9cfec; }\n\n.testing-theme .contrast-4 {\n color: #4797d5; }\n\n.testing-theme .contrast-4-bg {\n background-color: #4797d5; }\n\n.testing-theme .contrast-4-fill {\n fill: #4797d5; }\n\n.testing-theme .contrast-4-stroke {\n stroke: #4797d5; }\n\n.testing-theme .contrast-5 {\n color: #a70091; }\n\n.testing-theme .contrast-5-bg {\n background-color: #a70091; }\n\n.testing-theme .contrast-5-fill {\n fill: #a70091; }\n\n.testing-theme .contrast-5-stroke {\n stroke: #a70091; }\n\n.testing-theme .contrast-6 {\n color: #f4f5f6; }\n\n.testing-theme .contrast-6-bg {\n background-color: #f4f5f6; }\n\n.testing-theme .contrast-6-fill {\n fill: #f4f5f6; }\n\n.testing-theme .contrast-6-stroke {\n stroke: #f4f5f6; }\n\n.testing-theme .contrast-7 {\n color: #c4c7cc; }\n\n.testing-theme .contrast-7-bg {\n background-color: #c4c7cc; }\n\n.testing-theme .contrast-7-fill {\n fill: #c4c7cc; }\n\n.testing-theme .contrast-7-stroke {\n stroke: #c4c7cc; }\n\n.testing-theme .background {\n color: #d4d7da; }\n\n.testing-theme .background-bg {\n background-color: #d4d7da; }\n\n.testing-theme .background-fill {\n fill: #d4d7da; }\n\n.testing-theme .background-stroke {\n stroke: #d4d7da; }\n\n.testing-theme .content-background {\n color: #f4f5f6; }\n\n.testing-theme .content-background-bg {\n background-color: #f4f5f6; }\n\n.testing-theme .content-background-fill {\n fill: #f4f5f6; }\n\n.testing-theme .content-background-stroke {\n stroke: #f4f5f6; }\n\n.testing-theme .state-ok {\n color: #00cf78; }\n\n.testing-theme .state-ok-bg {\n background-color: #00cf78; }\n\n.testing-theme .state-ok-fill {\n fill: #00cf78; }\n\n.testing-theme .state-ok-stroke {\n stroke: #00cf78; }\n\n.testing-theme .state-info {\n color: #00cf78; }\n\n.testing-theme .state-info-bg {\n background-color: #00cf78; }\n\n.testing-theme .state-info-fill {\n fill: #00cf78; }\n\n.testing-theme .state-info-stroke {\n stroke: #00cf78; }\n\n.testing-theme .state-active {\n color: #00cf78; }\n\n.testing-theme .state-active-bg {\n background-color: #00cf78; }\n\n.testing-theme .state-active-fill {\n fill: #00cf78; }\n\n.testing-theme .state-active-stroke {\n stroke: #00cf78; }\n\n.testing-theme .font-color-primary {\n color: #525252; }\n\n.testing-theme .font-color-primary-bg {\n background-color: #525252; }\n\n.testing-theme .font-color-primary-fill {\n fill: #525252; }\n\n.testing-theme .font-color-primary-stroke {\n stroke: #525252; }\n\n.testing-theme .font-color-secondary {\n color: #797979; }\n\n.testing-theme .font-color-secondary-bg {\n background-color: #797979; }\n\n.testing-theme .font-color-secondary-fill {\n fill: #797979; }\n\n.testing-theme .font-color-secondary-stroke {\n stroke: #797979; }\n\n.testing-theme .font-color-primary-invers {\n color: #ffffff; }\n\n.testing-theme .font-color-primary-invers-bg {\n background-color: #ffffff; }\n\n.testing-theme .font-color-primary-invers-fill {\n fill: #ffffff; }\n\n.testing-theme .font-color-primary-invers-stroke {\n stroke: #ffffff; }\n\n.testing-theme .font-color-secondary-invers {\n color: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .font-color-secondary-invers-bg {\n background-color: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .font-color-secondary-invers-fill {\n fill: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .font-color-secondary-invers-stroke {\n stroke: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .sensor-color-on {\n color: #37af37; }\n\n.testing-theme .sensor-color-on-bg {\n background-color: #37af37; }\n\n.testing-theme .sensor-color-on-fill {\n fill: #37af37; }\n\n.testing-theme .sensor-color-on-stroke {\n stroke: #37af37; }\n\n.testing-theme .sensor-color-off {\n color: #ca3232; }\n\n.testing-theme .sensor-color-off-bg {\n background-color: #ca3232; }\n\n.testing-theme .sensor-color-off-fill {\n fill: #ca3232; }\n\n.testing-theme .sensor-color-off-stroke {\n stroke: #ca3232; }\n\n.testing-theme .seated {\n color: #e0940d; }\n\n.testing-theme .seated-bg {\n background-color: #e0940d; }\n\n.testing-theme .seated-fill {\n fill: #e0940d; }\n\n.testing-theme .seated-stroke {\n stroke: #e0940d; }\n\n.testing-theme .locked {\n color: #8e1c1c; }\n\n.testing-theme .locked-bg {\n background-color: #8e1c1c; }\n\n.testing-theme .locked-fill {\n fill: #8e1c1c; }\n\n.testing-theme .locked-stroke {\n stroke: #8e1c1c; }\n\n.testing-theme .locked-invers {\n color: #4797d5; }\n\n.testing-theme .locked-invers-bg {\n background-color: #4797d5; }\n\n.testing-theme .locked-invers-fill {\n fill: #4797d5; }\n\n.testing-theme .locked-invers-stroke {\n stroke: #4797d5; }\n\n.testing-theme .unclamped {\n color: #00cf78; }\n\n.testing-theme .unclamped-bg {\n background-color: #00cf78; }\n\n.testing-theme .unclamped-fill {\n fill: #00cf78; }\n\n.testing-theme .unclamped-stroke {\n stroke: #00cf78; }\n\n.testing-theme .unclamped-invers {\n color: #8e1c1c; }\n\n.testing-theme .unclamped-invers-bg {\n background-color: #8e1c1c; }\n\n.testing-theme .unclamped-invers-fill {\n fill: #8e1c1c; }\n\n.testing-theme .unclamped-invers-stroke {\n stroke: #8e1c1c; }\n\n.testing-theme .unlocked {\n color: #4797d5; }\n\n.testing-theme .unlocked-bg {\n background-color: #4797d5; }\n\n.testing-theme .unlocked-fill {\n fill: #4797d5; }\n\n.testing-theme .unlocked-stroke {\n stroke: #4797d5; }\n\n.testing-theme .unlocked-invers {\n color: #8e1c1c; }\n\n.testing-theme .unlocked-invers-bg {\n background-color: #8e1c1c; }\n\n.testing-theme .unlocked-invers-fill {\n fill: #8e1c1c; }\n\n.testing-theme .unlocked-invers-stroke {\n stroke: #8e1c1c; }\n\n.testing-theme .speedlimit {\n color: #ffa80f; }\n\n.testing-theme .speedlimit-bg {\n background-color: #ffa80f; }\n\n.testing-theme .speedlimit-fill {\n fill: #ffa80f; }\n\n.testing-theme .speedlimit-stroke {\n stroke: #ffa80f; }\n\n.testing-theme .interlock {\n color: #8f1f89; }\n\n.testing-theme .interlock-bg {\n background-color: #8f1f89; }\n\n.testing-theme .interlock-fill {\n fill: #8f1f89; }\n\n.testing-theme .interlock-stroke {\n stroke: #8f1f89; }\n\n.testing-theme .chart-series-1 {\n color: #00dc7f; }\n\n.testing-theme .chart-series-1-bg {\n background-color: #00dc7f; }\n\n.testing-theme .chart-series-1-fill {\n fill: #00dc7f; }\n\n.testing-theme .chart-series-1-stroke {\n stroke: #00dc7f; }\n\n.testing-theme .chart-series-2 {\n color: #2e19f6; }\n\n.testing-theme .chart-series-2-bg {\n background-color: #2e19f6; }\n\n.testing-theme .chart-series-2-fill {\n fill: #2e19f6; }\n\n.testing-theme .chart-series-2-stroke {\n stroke: #2e19f6; }\n\n.testing-theme .chart-series-3 {\n color: #f62596; }\n\n.testing-theme .chart-series-3-bg {\n background-color: #f62596; }\n\n.testing-theme .chart-series-3-fill {\n fill: #f62596; }\n\n.testing-theme .chart-series-3-stroke {\n stroke: #f62596; }\n\n.testing-theme .chart-series-4 {\n color: #f68825; }\n\n.testing-theme .chart-series-4-bg {\n background-color: #f68825; }\n\n.testing-theme .chart-series-4-fill {\n fill: #f68825; }\n\n.testing-theme .chart-series-4-stroke {\n stroke: #f68825; }\n\n.testing-theme .chart-series-5 {\n color: #f0f619; }\n\n.testing-theme .chart-series-5-bg {\n background-color: #f0f619; }\n\n.testing-theme .chart-series-5-fill {\n fill: #f0f619; }\n\n.testing-theme .chart-series-5-stroke {\n stroke: #f0f619; }\n\n.testing-theme .chart-series-6 {\n color: #E74C3C; }\n\n.testing-theme .chart-series-6-bg {\n background-color: #E74C3C; }\n\n.testing-theme .chart-series-6-fill {\n fill: #E74C3C; }\n\n.testing-theme .chart-series-6-stroke {\n stroke: #E74C3C; }\n\n.testing-theme .chart-series-7 {\n color: #C39BD3; }\n\n.testing-theme .chart-series-7-bg {\n background-color: #C39BD3; }\n\n.testing-theme .chart-series-7-fill {\n fill: #C39BD3; }\n\n.testing-theme .chart-series-7-stroke {\n stroke: #C39BD3; }\n\n.testing-theme .chart-series-8 {\n color: #00796B; }\n\n.testing-theme .chart-series-8-bg {\n background-color: #00796B; }\n\n.testing-theme .chart-series-8-fill {\n fill: #00796B; }\n\n.testing-theme .chart-series-8-stroke {\n stroke: #00796B; }\n\n.testing-theme .chart-series-9 {\n color: #F1948A; }\n\n.testing-theme .chart-series-9-bg {\n background-color: #F1948A; }\n\n.testing-theme .chart-series-9-fill {\n fill: #F1948A; }\n\n.testing-theme .chart-series-9-stroke {\n stroke: #F1948A; }\n\n.testing-theme .chart-series-10 {\n color: #03a9f4; }\n\n.testing-theme .chart-series-10-bg {\n background-color: #03a9f4; }\n\n.testing-theme .chart-series-10-fill {\n fill: #03a9f4; }\n\n.testing-theme .chart-series-10-stroke {\n stroke: #03a9f4; }\n\n.testing-theme .replay-mode {\n color: #8f1f89; }\n\n.testing-theme .replay-mode-bg {\n background-color: #8f1f89; }\n\n.testing-theme .replay-mode-fill {\n fill: #8f1f89; }\n\n.testing-theme .replay-mode-stroke {\n stroke: #8f1f89; }\n\n.testing-theme .testing-mode {\n color: #4797d5; }\n\n.testing-theme .testing-mode-bg {\n background-color: #4797d5; }\n\n.testing-theme .testing-mode-fill {\n fill: #4797d5; }\n\n.testing-theme .testing-mode-stroke {\n stroke: #4797d5; }\n\n.testing-theme .state-warning {\n color: #ffa80f; }\n\n.testing-theme .state-warning-bg {\n background-color: #ffa80f; }\n\n.testing-theme .state-warning-fill {\n fill: #ffa80f; }\n\n.testing-theme .state-warning-stroke {\n stroke: #ffa80f; }\n\n.testing-theme .state-alert-light {\n color: #f9a4b2; }\n\n.testing-theme .state-alert-light-bg {\n background-color: #f9a4b2; }\n\n.testing-theme .state-alert-light-fill {\n fill: #f9a4b2; }\n\n.testing-theme .state-alert-light-stroke {\n stroke: #f9a4b2; }\n\n.testing-theme .state-alert {\n color: #f11d40; }\n\n.testing-theme .state-alert-bg {\n background-color: #f11d40; }\n\n.testing-theme .state-alert-fill {\n fill: #f11d40; }\n\n.testing-theme .state-alert-stroke {\n stroke: #f11d40; }\n\n.testing-theme .state-failure {\n color: #8e1c1c; }\n\n.testing-theme .state-failure-bg {\n background-color: #8e1c1c; }\n\n.testing-theme .state-failure-fill {\n fill: #8e1c1c; }\n\n.testing-theme .state-failure-stroke {\n stroke: #8e1c1c; }\n\n.testing-theme .state-unknown {\n color: #d4d7da; }\n\n.testing-theme .state-unknown-bg {\n background-color: #d4d7da; }\n\n.testing-theme .state-unknown-fill {\n fill: #d4d7da; }\n\n.testing-theme .state-unknown-stroke {\n stroke: #d4d7da; }\n\n.grid-item {\n transition: width 0.25s, height 0.25s, left 0.25s, top 0.25s, right 0.25s, bottom 0.25s; }\n\n.grid-item:active, .grid-item.moving {\n z-index: 2;\n transition: none; }\n\n.grid-placeholder {\n background-color: rgba(0, 100, 200, 0.3); }\n\n@media (max-width: 767px) {\n .grid {\n width: 100% !important;\n height: auto !important;\n padding: 10px; }\n .grid-item {\n position: static !important;\n width: 100% !important;\n margin-bottom: 10px; }\n .grid-item:last-child {\n margin-bottom: 0; } }\n\n.default-theme .ngx-datatable.material .datatable-body-cell .row-expander, .default-theme .ngx-datatable.material .datatable-header-cell .row-expander {\n color: #ffffff; }\n\n.default-theme .ngx-datatable.material .datatable-body-cell a:active i {\n color: #1561a1 !important; }\n\n.default-theme .ngx-datatable.material .datatable-body-row:hover .datatable-row-group {\n background-color: #d0e8fc; }\n\n.default-theme .ngx-datatable.material .datatable-header .datatable-header-cell {\n color: #293647; }\n\n.default-theme .ngx-datatable.material .datatable-body-cell a:hover i {\n color: #293647; }\n\n.default-theme .ngx-datatable.material .empty-row {\n color: #69727e; }\n\n.default-theme .ngx-datatable.material .datatable-body-cell a i {\n color: #69727e; }\n\n.testing-theme .ngx-datatable.material .datatable-body-cell .row-expander, .testing-theme .ngx-datatable.material .datatable-header-cell .row-expander {\n color: #98057e; }\n\n.testing-theme .ngx-datatable.material .datatable-body-cell a:active i {\n color: #cfac1f !important; }\n\n.testing-theme .ngx-datatable.material .datatable-body-row:hover .datatable-row-group {\n background-color: #c2b377; }\n\n.testing-theme .ngx-datatable.material .datatable-header .datatable-header-cell {\n color: #525252; }\n\n.testing-theme .ngx-datatable.material .datatable-body-cell a:hover i {\n color: #525252; }\n\n.testing-theme .ngx-datatable.material .empty-row {\n color: #797979; }\n\n.testing-theme .ngx-datatable.material .datatable-body-cell a i {\n color: #797979; }\n\n.ngx-datatable.material {\n background: inherit;\n box-shadow: none; }\n\n.ngx-datatable.material .datatable-header .datatable-header-cell {\n font-size: 14px; }\n\n.ngx-datatable.material .datatable-body-row.disabled-row {\n opacity: 0.5; }\n\n.ngx-datatable.material .datatable-body .progress-linear .container {\n margin: 0; }\n\n.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-cell, .ngx-datatable.material .datatable-header .datatable-row-center .datatable-header-cell {\n color: inherit; }\n\n.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-cell .row-expander, .ngx-datatable.material .datatable-header .datatable-row-center .datatable-header-cell .row-expander {\n width: 20px;\n height: 20px;\n line-height: 20px;\n text-align: center;\n font-size: 20px;\n border-radius: 50%;\n cursor: pointer;\n transition: -webkit-transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out; }\n\n.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-cell .row-expander.expanded, .ngx-datatable.material .datatable-header .datatable-row-center .datatable-header-cell .row-expander.expanded {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n -webkit-transform-origin: 50%;\n transform-origin: 50%;\n transition: -webkit-transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out; }\n\n.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-cell i, .ngx-datatable.material .datatable-header .datatable-row-center .datatable-header-cell i {\n line-height: 24px;\n font-size: 24px; }\n\n.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-cell .datatable-body-cell-label span.supports-text-overflow, .ngx-datatable.material .datatable-header .datatable-row-center .datatable-header-cell .datatable-body-cell-label span.supports-text-overflow {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis; }\n\n.default-theme h3 {\n color: #293647; }\n\n.default-theme h5 {\n color: #69727e; }\n\n.default-theme .toolbar-title {\n color: #69727e; }\n\n.default-theme .toolbar-title .postfix {\n color: #69727e; }\n\n.testing-theme h3 {\n color: #525252; }\n\n.testing-theme h5 {\n color: #797979; }\n\n.testing-theme .toolbar-title {\n color: #797979; }\n\n.testing-theme .toolbar-title .postfix {\n color: rgba(255, 255, 255, 0.75); }\n\nh3 {\n font-size: 1.5rem;\n font-family: Roboto, Helvetica, sans-serif; }\n\nh5 {\n font-size: 1rem;\n font-family: Roboto, Helvetica, sans-serif; }\n\n.toolbar-title .postfix {\n font-weight: 300; }\n\n.default-theme {\n /* label underline focus color */\n /*\n label.active + .input-field input[type=text]:focus,\n label.active + .input-field input[type=number]:focus,\n label.active + .input-field input[type=password]:focus,\n label.active + textarea.materialize-textarea:focus {\n color: $color-code;\n }*/\n /* label color */\n /* label focus color */\n /* icon prefix focus color */\n /* invalid color */ }\n\n.default-theme [type=\"checkbox\"]:checked.filled-in + label:before {\n border-right: 2px solid #ffffff !important;\n border-bottom: 2px solid #ffffff !important; }\n\n.default-theme [type=\"checkbox\"]:checked + label:before {\n border-right: 2px solid #1561a1;\n border-bottom: 2px solid #1561a1; }\n\n.default-theme [type=\"checkbox\"]:checked + label:after {\n border: 2px solid #1561a1;\n background-color: #1561a1; }\n\n.default-theme .form-group ul.dropdown-content.select-dropdown li.selected span {\n color: #1561a1; }\n\n.default-theme .btn-flat:hover {\n color: white;\n background-color: #949aa3; }\n\n.default-theme .input-field input[type=text]:focus,\n .default-theme .input-field input[type=text]:focus:not([readonly]),\n .default-theme .input-field input[type=number]:focus,\n .default-theme .input-field input[type=number]:focus:not([readonly]),\n .default-theme .input-field input[type=password]:focus,\n .default-theme .input-field input[type=password]:focus:not([readonly]),\n .default-theme textarea.materialize-textarea:focus,\n .default-theme textarea.materialize-textarea:focus:not([readonly]) {\n border-bottom: 1px solid #00cf78;\n box-shadow: 0 1px 0 0 #00cf78; }\n\n.default-theme .input-field input[type=text]:focus + label,\n .default-theme .input-field input[type=text]:focus:not([readonly]) + label,\n .default-theme .input-field input[type=number]:focus + label,\n .default-theme .input-field input[type=number]:focus:not([readonly]) + label,\n .default-theme .input-field input[type=password]:focus + label,\n .default-theme .input-field input[type=password]:focus:not([readonly]) + label,\n .default-theme textarea.materialize-textarea:focus + label,\n .default-theme textarea.materialize-textarea:focus:not([readonly]) + label {\n color: #00cf78 !important; }\n\n.default-theme .form-group .prefix {\n color: #293647; }\n\n.default-theme .form-group ul.dropdown-content.select-dropdown li span {\n color: #293647; }\n\n.default-theme .input-field label {\n color: #293647; }\n\n.default-theme .input-field input[type=text]:focus + label {\n color: #293647; }\n\n.default-theme .input-field .prefix.active {\n color: #293647; }\n\n.default-theme .dropdown-content li > a, .default-theme .dropdown-content li > span {\n color: #293647; }\n\n.default-theme .select-wrapper + label {\n color: #69727e; }\n\n.default-theme .input-field label.active,\n .default-theme .input-field label.active-fixed {\n color: #69727e; }\n\n.default-theme .switch label {\n color: #69727e; }\n\n.default-theme .input-field label {\n color: #c7c7c7; }\n\n.default-theme .text-danger.field-validation-error {\n color: #f11d40; }\n\n.default-theme .input-field .select-wrapper.invalid input[type=text],\n .default-theme .input-field input[type=text].invalid,\n .default-theme .input-field input[type=password].invalid {\n border-bottom: 1px solid #f11d40;\n box-shadow: 0 1px 0 0 #f11d40; }\n\n.testing-theme {\n /* label underline focus color */\n /*\n label.active + .input-field input[type=text]:focus,\n label.active + .input-field input[type=number]:focus,\n label.active + .input-field input[type=password]:focus,\n label.active + textarea.materialize-textarea:focus {\n color: $color-code;\n }*/\n /* label color */\n /* label focus color */\n /* icon prefix focus color */\n /* invalid color */ }\n\n.testing-theme [type=\"checkbox\"]:checked.filled-in + label:before {\n border-right: 2px solid #98057e !important;\n border-bottom: 2px solid #98057e !important; }\n\n.testing-theme [type=\"checkbox\"]:checked + label:before {\n border-right: 2px solid #cfac1f;\n border-bottom: 2px solid #cfac1f; }\n\n.testing-theme [type=\"checkbox\"]:checked + label:after {\n border: 2px solid #cfac1f;\n background-color: #cfac1f; }\n\n.testing-theme .form-group ul.dropdown-content.select-dropdown li.selected span {\n color: #cfac1f; }\n\n.testing-theme .btn-flat:hover {\n color: white;\n background-color: #a9cfec; }\n\n.testing-theme .input-field input[type=text]:focus,\n .testing-theme .input-field input[type=text]:focus:not([readonly]),\n .testing-theme .input-field input[type=number]:focus,\n .testing-theme .input-field input[type=number]:focus:not([readonly]),\n .testing-theme .input-field input[type=password]:focus,\n .testing-theme .input-field input[type=password]:focus:not([readonly]),\n .testing-theme textarea.materialize-textarea:focus,\n .testing-theme textarea.materialize-textarea:focus:not([readonly]) {\n border-bottom: 1px solid #00cf78;\n box-shadow: 0 1px 0 0 #00cf78; }\n\n.testing-theme .input-field input[type=text]:focus + label,\n .testing-theme .input-field input[type=text]:focus:not([readonly]) + label,\n .testing-theme .input-field input[type=number]:focus + label,\n .testing-theme .input-field input[type=number]:focus:not([readonly]) + label,\n .testing-theme .input-field input[type=password]:focus + label,\n .testing-theme .input-field input[type=password]:focus:not([readonly]) + label,\n .testing-theme textarea.materialize-textarea:focus + label,\n .testing-theme textarea.materialize-textarea:focus:not([readonly]) + label {\n color: #00cf78 !important; }\n\n.testing-theme .form-group .prefix {\n color: #525252; }\n\n.testing-theme .form-group ul.dropdown-content.select-dropdown li span {\n color: #525252; }\n\n.testing-theme .input-field label {\n color: #525252; }\n\n.testing-theme .input-field input[type=text]:focus + label {\n color: #525252; }\n\n.testing-theme .input-field .prefix.active {\n color: #525252; }\n\n.testing-theme .dropdown-content li > a, .testing-theme .dropdown-content li > span {\n color: #525252; }\n\n.testing-theme .select-wrapper + label {\n color: #797979; }\n\n.testing-theme .input-field label.active,\n .testing-theme .input-field label.active-fixed {\n color: #797979; }\n\n.testing-theme .switch label {\n color: #797979; }\n\n.testing-theme .text-danger.field-validation-error {\n color: #f11d40; }\n\n.testing-theme .input-field .select-wrapper.invalid input[type=text],\n .testing-theme .input-field input[type=text].invalid,\n .testing-theme .input-field input[type=password].invalid {\n border-bottom: 1px solid #f11d40;\n box-shadow: 0 1px 0 0 #f11d40; }\n\n.form-group .input-field {\n margin-bottom: 32px; }\n\n.dropdown-content {\n max-height: 450px; }\n\n.select-wrapper + label {\n font-size: 15px; }\n\n.select-wrapper input.select-dropdown {\n font-size: 1rem;\n font-weight: 400;\n color: black; }\n\n.select-wrapper ul.select-dropdown {\n z-index: 1004; }\n\n.text-danger.field-validation-error {\n float: right;\n line-height: 0px;\n margin-top: -8px;\n font-size: 0.9rem; }\n\n.input-field label.active,\n.input-field label.active-fixed {\n font-size: 15px; }\n\n.switch label {\n font-size: 12px; }\n\ninput:not([type]), input[type=text], input[type=password], input[type=email], input[type=url], input[type=time], input[type=date], input[type=datetime], input[type=datetime-local], input[type=tel], input[type=number], input[type=search], textarea.materialize-textarea {\n background-color: transparent;\n border: none;\n border-bottom: 1px solid #9e9e9e;\n border-radius: 0;\n outline: none;\n height: 3rem;\n width: 100%;\n font-size: 1rem;\n margin: 0 0 20px 0;\n padding: 0;\n box-shadow: none;\n box-sizing: content-box;\n transition: all 0.3s; }\n\n.input-field .select-wrapper.valid input[type=text],\n.input-field input[type=text].valid,\n.input-field input[type=number].valid,\ntextarea.materialize-textarea.valid {\n border-bottom: 1px solid #9e9e9e;\n box-shadow: none; }\n\n.input-field.col .dropdown-content [type=\"checkbox\"] + label {\n top: 0;\n /* previously 1px; */\n display: inline;\n /* previously inherits `display: inline-block;` from `[type=\"checkbox\"]+label` */ }\n\ninput:not([type]),\ninput[type=text],\ninput[type=password],\ninput[type=email],\ninput[type=url],\ninput[type=time],\ninput[type=date],\ninput[type=datetime],\ninput[type=datetime-local],\ninput[type=tel],\ninput[type=number],\ninput[type=search],\ntextarea.materialize-textarea {\n margin: 0 0 10px 0; }\n\n.default-theme .collapsible .collapsible-header {\n color: #293647; }\n\n.default-theme .collapsible .collapsible-body td {\n color: #293647; }\n\n.default-theme .collapsible .collapsible-body td.value span.uom {\n color: #69727e; }\n\n.default-theme .collapsible .collapsible-header.active {\n color: #f11d40; }\n\n.testing-theme .collapsible .collapsible-header {\n color: #525252; }\n\n.testing-theme .collapsible .collapsible-body td {\n color: #525252; }\n\n.testing-theme .collapsible .collapsible-body td.value span.uom {\n color: #797979; }\n\n.testing-theme .collapsible .collapsible-header.active {\n color: #f11d40; }\n\n.collapsible li {\n background-color: white; }\n\n.collapsible .collapsible-body {\n background-color: white; }\n\n.collapsible .collapsible-body .row {\n margin-left: 16px;\n margin-right: 16px; }\n\n.collapsible .collapsible-body td {\n font-size: 1.1rem; }\n\n.collapsible .collapsible-body td.value {\n font-weight: 500;\n text-align: right;\n padding-right: 32px; }\n\n.collapsible .collapsible-body td.digital {\n width: 80px;\n padding-right: 32px;\n padding-left: 32px; }\n\n.collapsible .collapsible-body .tab-page {\n margin: 0px;\n padding: 0px; }\n\n.default-theme h3 {\n color: #293647; }\n\n.default-theme h5 {\n color: #69727e; }\n\n.default-theme .toolbar-title {\n color: #69727e; }\n\n.default-theme .toolbar-title .postfix {\n color: #69727e; }\n\n.testing-theme h3 {\n color: #525252; }\n\n.testing-theme h5 {\n color: #797979; }\n\n.testing-theme .toolbar-title {\n color: #797979; }\n\n.testing-theme .toolbar-title .postfix {\n color: rgba(255, 255, 255, 0.75); }\n\nh3 {\n font-size: 1.5rem;\n font-family: Roboto, Helvetica, sans-serif; }\n\nh5 {\n font-size: 1rem;\n font-family: Roboto, Helvetica, sans-serif; }\n\n.toolbar-title .postfix {\n font-weight: 300; }\n\n.default-theme .switch label input[type=checkbox]:checked + .lever:after {\n background-color: #00cf78; }\n\n.default-theme .switch label input[type=checkbox]:checked + .lever {\n background-color: #69ffc0; }\n\n.testing-theme .switch label input[type=checkbox]:checked + .lever:after {\n background-color: #00cf78; }\n\n.testing-theme .switch label input[type=checkbox]:checked + .lever {\n background-color: #69ffc0; }\n\n.switch label input[type=checkbox]:checked + .lever:after {\n left: 21px; }\n\n.select-wrapper input.select-dropdown {\n text-overflow: ellipsis;\n overflow: hidden; }\n\n.select-wrapper span.caret {\n right: -1em; }\n\n.default-theme .tabs .tab a.active {\n color: #1561a1 !important; }\n\n.default-theme .tabs .indicator {\n background-color: #1561a1; }\n\n.default-theme .tabs .tab a:hover {\n color: #293647; }\n\n.default-theme .tabs .tab a {\n color: #69727e; }\n\n.testing-theme .tabs .tab a.active {\n color: #cfac1f !important; }\n\n.testing-theme .tabs .indicator {\n background-color: #cfac1f; }\n\n.testing-theme .tabs .tab a:hover {\n color: #525252; }\n\n.testing-theme .tabs .tab a {\n color: #797979; }\n\n.tabs {\n margin-bottom: 16px; }\n\n.tabs .tab a {\n font-size: 1.3rem;\n font-weight: 400; }\n\n.tabs .indicator {\n height: 4px; }\n\n.tabs-content.carousel {\n height: 100% !important; }\n\n#toast-container {\n pointer-events: all;\n right: 24px;\n top: inherit; }\n\nhr {\n display: block;\n position: relative;\n padding: 0;\n margin: 8px auto;\n height: 0;\n width: 100%;\n max-height: 0;\n font-size: 1px;\n line-height: 0;\n clear: both;\n border: none;\n border-bottom: 1px solid #ffffff; }\n\n.default-theme .picker__date-display {\n background-color: #1561a1; }\n\n.default-theme .picker__close, .default-theme .picker__today, .default-theme .picker__clear {\n color: #1561a1; }\n\n.default-theme .picker__day.picker__day--today {\n color: #1561a1; }\n\n.default-theme .picker__day--selected,\n.default-theme .picker__day--selected:hover,\n.default-theme .picker--focused .picker__day--selected {\n background-color: #1561a1; }\n\n.default-theme .picker__day--selected.picker__day--outfocus,\n .default-theme .picker__day--selected:hover.picker__day--outfocus,\n .default-theme .picker--focused .picker__day--selected.picker__day--outfocus {\n background-color: #beddf7; }\n\n.default-theme .picker__nav--prev:hover,\n.default-theme .picker__nav--next:hover {\n background: #beddf7; }\n\n.default-theme button.picker__today:focus, .default-theme button.picker__clear:focus, .default-theme button.picker__close:focus {\n background-color: #beddf7; }\n\n.default-theme .clockpicker-tick:hover {\n background-color: rgba(21, 97, 161, 0.3); }\n\n.default-theme .clockpicker-tick.active, .default-theme .clockpicker-tick.active:hover {\n background-color: #1561a1; }\n\n.default-theme .clockpicker-canvas-bearing {\n fill: #1561a1; }\n\n.default-theme .clockpicker-canvas-bg {\n fill: #1561a1; }\n\n.default-theme .clockpicker-canvas-bg-trans {\n fill: #1561a1; }\n\n.default-theme .clockpicker-canvas line {\n stroke: #1561a1; }\n\n.default-theme .picker__clear {\n color: #f11d40; }\n\n.testing-theme .picker__date-display {\n background-color: #cfac1f; }\n\n.testing-theme .picker__close, .testing-theme .picker__today, .testing-theme .picker__clear {\n color: #cfac1f; }\n\n.testing-theme .picker__day.picker__day--today {\n color: #cfac1f; }\n\n.testing-theme .picker__day--selected,\n.testing-theme .picker__day--selected:hover,\n.testing-theme .picker--focused .picker__day--selected {\n background-color: #cfac1f; }\n\n.testing-theme .picker__day--selected.picker__day--outfocus,\n .testing-theme .picker__day--selected:hover.picker__day--outfocus,\n .testing-theme .picker--focused .picker__day--selected.picker__day--outfocus {\n background-color: #fdfaf0; }\n\n.testing-theme .picker__nav--prev:hover,\n.testing-theme .picker__nav--next:hover {\n background: #fdfaf0; }\n\n.testing-theme button.picker__today:focus, .testing-theme button.picker__clear:focus, .testing-theme button.picker__close:focus {\n background-color: #fdfaf0; }\n\n.testing-theme .clockpicker-tick:hover {\n background-color: rgba(207, 172, 31, 0.3); }\n\n.testing-theme .clockpicker-tick.active, .testing-theme .clockpicker-tick.active:hover {\n background-color: #cfac1f; }\n\n.testing-theme .clockpicker-canvas-bearing {\n fill: #cfac1f; }\n\n.testing-theme .clockpicker-canvas-bg {\n fill: #cfac1f; }\n\n.testing-theme .clockpicker-canvas-bg-trans {\n fill: #cfac1f; }\n\n.testing-theme .clockpicker-canvas line {\n stroke: #cfac1f; }\n\n.testing-theme .picker__clear {\n color: #f11d40; }\n\n.picker__day.picker__day--selected {\n color: white !important; }\n\n@-webkit-keyframes a {\n 0% {\n opacity: 0;\n bottom: -15px;\n max-width: 0;\n margin-top: 0; }\n 30% {\n opacity: .8;\n bottom: -3px; }\n to {\n opacity: 1;\n bottom: 0;\n margin-top: 12px;\n max-width: 400px; } }\n\n@keyframes a {\n 0% {\n opacity: 0;\n bottom: -15px;\n max-width: 0;\n margin-top: 0; }\n 30% {\n opacity: .8;\n bottom: -3px; }\n to {\n opacity: 1;\n bottom: 0;\n margin-top: 12px;\n max-width: 400px; } }\n\n@-webkit-keyframes b {\n 0% {\n opacity: 1;\n bottom: 0; }\n 30% {\n opacity: .2;\n bottom: -3px; }\n to {\n opacity: 0;\n bottom: -15px; } }\n\n@keyframes b {\n 0% {\n opacity: 1;\n bottom: 0; }\n 30% {\n opacity: .2;\n bottom: -3px; }\n to {\n opacity: 0;\n bottom: -15px; } }\n\n@-webkit-keyframes c {\n 0% {\n opacity: 0; }\n 30% {\n opacity: .5; }\n to {\n opacity: .6; } }\n\n@keyframes c {\n 0% {\n opacity: 0; }\n 30% {\n opacity: .5; }\n to {\n opacity: .6; } }\n\n@-webkit-keyframes d {\n 0% {\n opacity: .6; }\n 30% {\n opacity: .1; }\n to {\n opacity: 0; } }\n\n@keyframes d {\n 0% {\n opacity: .6; }\n 30% {\n opacity: .1; }\n to {\n opacity: 0; } }\n\n.notyf-container {\n position: fixed;\n bottom: 20px;\n right: 30px;\n width: 20%;\n color: #fff;\n z-index: 1; }\n\n.notyf-container .notyf {\n display: block;\n position: relative;\n border-radius: 4px; }\n\n.notyf-container .notyf.removed .notyf-message {\n opacity: 1;\n -webkit-animation: b .3s 1 forwards;\n animation: b .3s 1 forwards;\n -webkit-animation-delay: .1s;\n animation-delay: .1s; }\n\n.notyf-container .notyf.removed .notyf-icon {\n opacity: 1;\n -webkit-animation: d .3s 1 forwards;\n animation: d .3s 1 forwards; }\n\n.notyf-container .notyf-wrapper {\n display: table;\n height: 100%;\n width: 100%;\n padding-top: 20px;\n padding-bottom: 20px;\n padding-right: 15px;\n border-radius: 3px; }\n\n.notyf-container .notyf-icon {\n display: table-cell;\n width: 20%;\n text-align: center;\n vertical-align: middle;\n font-size: 1.3em;\n opacity: 0;\n -webkit-animation: c .5s forwards;\n animation: c .5s forwards;\n -webkit-animation-delay: .25s;\n animation-delay: .25s; }\n\n.notyf-container .notyf-message {\n display: table-cell;\n width: 80%;\n vertical-align: middle;\n position: relative;\n opacity: 0;\n -webkit-animation: a .3s forwards;\n animation: a .3s forwards;\n -webkit-animation-delay: .15s;\n animation-delay: .15s; }\n\n@media only screen and (max-width: 736px) {\n .notyf-container {\n width: 90%;\n margin: 0 auto;\n display: block;\n right: 0;\n left: 0; } }\n\ntable.data-table.default-theme .title-left {\n color: #1561a1; }\n\ntable.data-table.default-theme tbody tr:nth-child(odd) {\n background-color: #eaebed; }\n\ntable.data-table.testing-theme .title-left {\n color: #cfac1f; }\n\ntable.data-table.testing-theme tbody tr:nth-child(odd) {\n background-color: #bdc2c6; }\n\ntable.data-table thead {\n font-size: 14px;\n font-weight: 300;\n border-bottom: none; }\n\ntable.data-table thead tr td {\n padding: 8px 4px; }\n\ntable.data-table thead tr td.title-left {\n padding-left: 8px;\n font-weight: bold; }\n\ntable.data-table thead tr td.title-right {\n text-align: right;\n padding-right: 20px; }\n\ntable.data-table thead tr td.value-column {\n width: 25%; }\n\ntable.data-table tbody tr {\n background-color: transparent;\n line-height: 14px; }\n\ntable.data-table tbody tr td {\n padding: 8px 5px; }\n\ntable.data-table tbody tr td.value {\n text-align: center;\n font-weight: bold;\n white-space: nowrap; }\n\ntable.data-table tbody tr td.value.thin {\n font-weight: inherit; }\n\ntable.data-table tbody tr td.value .uom {\n font-size: 12px; }\n\ntable.data-table tbody tr td .subtitle {\n font-size: 10px;\n word-wrap: break-word;\n white-space: normal; }\n\ntable.data-table tbody tr:nth-child(odd) {\n background-color: #f2f2f2; }\n\ntable.data-table.single-line tbody tr {\n line-height: 28px; }\n\n:host {\n display: block;\n height: 56px; }\n\n:host.with-gauges {\n height: 146px; }\n\n.default-theme .nav-wrapper .dropdown-content li.radiobutton-style a.active {\n border-left: solid 6px #1561a1; }\n\n.default-theme .nav-wrapper .dropdown-content li a:hover .menu-icon i {\n color: #1561a1; }\n\n.default-theme nav .nav-wrapper button.btn-default {\n background-color: #1561a1; }\n\n.default-theme #sidenav-header {\n border-bottom: solid 5px #1561a1; }\n\n.default-theme .side-nav li a.active {\n border-left: solid 6px #1561a1; }\n\n.default-theme .side-nav li a.active i {\n color: #1561a1; }\n\n.default-theme a.quick-button.active i {\n color: #1561a1 !important; }\n\n.default-theme .nav-wrapper .dropdown-content li.radiobutton-style a.active {\n background-color: #cfffeb; }\n\n.default-theme .side-nav li a.active {\n background-color: #cfffeb; }\n\n.default-theme nav .dropdown-content li a.default {\n color: #293647; }\n\n.default-theme .nav-wrapper .dropdown-content .menu-icon i {\n color: #69727e; }\n\n.default-theme nav .dropdown-content li a.cancel, .default-theme nav .dropdown-content li a.locked {\n color: #69727e; }\n\n.default-theme .nav-wrapper .fullscreen-toggle a, .default-theme .nav-wrapper .fullscreen-toggle i,\n.default-theme .nav-wrapper .username a,\n.default-theme .nav-wrapper .username i,\n.default-theme .nav-wrapper .language a,\n.default-theme .nav-wrapper .language i,\n.default-theme .nav-wrapper .unitsystem a,\n.default-theme .nav-wrapper .unitsystem i,\n.default-theme .nav-wrapper .overflow a,\n.default-theme .nav-wrapper .overflow i {\n color: #69727e; }\n\n.default-theme .nav-wrapper .toolbar-separator {\n border-left: 1px solid #69727e; }\n\n.default-theme .nav-wrapper a.home-nav.slide-out .toolbar-separator {\n border-left: 1px solid #69727e; }\n\n.default-theme #sidenav-header #title {\n color: #69727e; }\n\n.default-theme.operatingMode a i, .default-theme.operatingMode a.active i {\n color: #ffffff !important; }\n\n.default-theme a.active i {\n color: #1561a1 !important; }\n\n.default-theme.operatingMode {\n background-color: #00cf78; }\n\n.testing-theme .nav-wrapper .dropdown-content li.radiobutton-style a.active {\n border-left: solid 6px #cfac1f; }\n\n.testing-theme .nav-wrapper .dropdown-content li a:hover .menu-icon i {\n color: #cfac1f; }\n\n.testing-theme nav .nav-wrapper button.btn-default {\n background-color: #cfac1f; }\n\n.testing-theme #sidenav-header {\n border-bottom: solid 5px #cfac1f; }\n\n.testing-theme .side-nav li a.active {\n border-left: solid 6px #cfac1f; }\n\n.testing-theme .side-nav li a.active i {\n color: #cfac1f; }\n\n.testing-theme a.quick-button.active i {\n color: #cfac1f !important; }\n\n.testing-theme .nav-wrapper .dropdown-content li.radiobutton-style a.active {\n background-color: #cfffeb; }\n\n.testing-theme .side-nav li a.active {\n background-color: #cfffeb; }\n\n.testing-theme nav .dropdown-content li a.default {\n color: #525252; }\n\n.testing-theme .nav-wrapper .dropdown-content .menu-icon i {\n color: #797979; }\n\n.testing-theme nav .dropdown-content li a.cancel, .testing-theme nav .dropdown-content li a.locked {\n color: #797979; }\n\n.testing-theme .nav-wrapper .fullscreen-toggle a, .testing-theme .nav-wrapper .fullscreen-toggle i,\n.testing-theme .nav-wrapper .username a,\n.testing-theme .nav-wrapper .username i,\n.testing-theme .nav-wrapper .language a,\n.testing-theme .nav-wrapper .language i,\n.testing-theme .nav-wrapper .unitsystem a,\n.testing-theme .nav-wrapper .unitsystem i,\n.testing-theme .nav-wrapper .overflow a,\n.testing-theme .nav-wrapper .overflow i {\n color: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .nav-wrapper .toolbar-separator {\n border-left: 1px solid rgba(255, 255, 255, 0.75); }\n\n.testing-theme .nav-wrapper a.home-nav.slide-out .toolbar-separator {\n border-left: 1px solid rgba(255, 255, 255, 0.75); }\n\n.testing-theme #sidenav-header #title {\n color: rgba(255, 255, 255, 0.75); }\n\n.testing-theme.operatingMode a i, .testing-theme.operatingMode a.active i {\n color: #98057e !important; }\n\n.testing-theme a.active i {\n color: #cfac1f !important; }\n\n.testing-theme.operatingMode {\n background-color: #00cf78; }\n\n.toolbar {\n position: fixed;\n top: 0;\n z-index: 1003;\n line-height: 56px; }\n\n.toolbar.top-gauges {\n height: 56px !important; }\n\n.toolbar.top-gauges.contains-extended-gauges {\n height: 146px !important; }\n\n.nav-wrapper {\n height: 56px; }\n\n.nav-wrapper .fullscreen-toggle span,\n .nav-wrapper .username span,\n .nav-wrapper .language span,\n .nav-wrapper .unitsystem span,\n .nav-wrapper .overflow span {\n margin-right: 8px; }\n\n.nav-wrapper .overflow {\n width: 56px; }\n\n.nav-wrapper .quick-buttons {\n float: right; }\n\n.nav-wrapper .toolbar-texts {\n float: right; }\n\n.nav-wrapper .dropdown-content {\n width: inherit !important;\n overflow: visible !important; }\n\n.nav-wrapper .dropdown-content .dropdown-content {\n left: -100% !important;\n z-index: 1; }\n\n.nav-wrapper .dropdown-content .menu-icon i {\n margin: 0px;\n margin-top: -18px;\n height: 50px !important; }\n\n.nav-wrapper .toolbar-separator {\n height: 32px;\n width: 1px;\n float: left;\n margin: 12px 4px; }\n\n.nav-wrapper a.home-nav {\n margin-left: 16px; }\n\n.nav-wrapper a.quick-button:hover {\n background-color: rgba(0, 0, 0, 0.1);\n transition: background-color 0.1s ease-in; }\n\n.nav-wrapper a.quick-button.up i {\n margin-top: -3px; }\n\n.nav-wrapper a.quick-button.left i {\n padding: 0 16px; }\n\n.nav-wrapper a.quick-button.active {\n pointer-events: none; }\n\n.nav-wrapper .toolbar-text.left div {\n padding: 0 16px; }\n\n.nav-wrapper .toolbar-logo {\n font-size: 56px;\n margin-right: 10px; }\n\nnav .brand-logo {\n position: relative; }\n\n.brand-logo-title {\n float: left;\n font-size: 1.5rem;\n vertical-align: middle; }\n\n.brand-logo-title + .toolbar-separator {\n margin-left: 0.3em;\n margin-right: 0.3em; }\n\n@media only screen and (min-width: 601px) {\n nav .nav-wrapper i,\n nav a.button-collapse,\n nav a.button-collapse i {\n height: 56px !important;\n line-height: 56px !important; }\n nav .nav-wrapper ul.side-nav li a i {\n height: 48px !important;\n line-height: 48px !important; } }\n\n@media only screen and (min-width: 993px) {\n nav .nav-wrapper i,\n nav a.button-collapse,\n nav a.button-collapse i {\n height: 56px !important;\n line-height: 56px !important; }\n nav a.button-collapse {\n display: block; }\n nav .nav-wrapper ul.side-nav li a i {\n height: 48px !important;\n line-height: 48px !important; } }\n\n.side-nav .divider {\n margin: 8px 0px; }\n\n.side-nav li a {\n padding-left: 32px; }\n\n.side-nav li a.active {\n padding-left: 26px;\n pointer-events: none; }\n\n#sidenav-header {\n position: relative;\n height: 155px;\n margin-bottom: 12px; }\n\n#sidenav-header #image {\n position: absolute;\n left: 0px;\n top: 0px;\n width: 300px;\n height: 150px;\n overflow: hidden; }\n\n#sidenav-header #title {\n line-height: normal;\n font-size: 1rem;\n font-weight: 300;\n position: absolute;\n left: 8px;\n bottom: 7px; }\n\nnav .dropdown-content {\n min-width: 100px; }\n\nnav .nav-wrapper button {\n float: right;\n margin-right: 16px;\n margin-top: 10px;\n color: white; }\n\nnav .nav-wrapper ul#text-toolbar {\n height: 48px; }\n\nnav .dropdown-content {\n min-width: 190px; }\n\nbody.default-theme {\n background-color: #d4d7da; }\n\nbody.default-theme .svg-value-container, body.default-theme .svg-state-text-value-container, body.default-theme .svg-double-value-container {\n fill: #ffffff; }\n\nbody.default-theme.content-background {\n background-color: #f4f5f6; }\n\nbody.default-theme .waves-effect.waves-green .waves-ripple {\n background-color: rgba(0, 207, 120, 0.75); }\n\nbody.default-theme .svg-value-container > g text.primary-value, body.default-theme .svg-state-text-value-container > g text.primary-value, body.default-theme .svg-double-value-container text.primary-value {\n fill: #293647; }\n\nbody.default-theme .svg-value-container > g text.secondary-value, body.default-theme .svg-double-value-container text.secondary-value {\n fill: #69727e; }\n\nbody.default-theme .waves-effect.waves-red .waves-ripple {\n background-color: rgba(241, 29, 64, 0.75); }\n\n.datatable-body .datatable-body-row.info, .datatable-body .datatable-body-cell.info {\n border-left: solid 6px #00cf78; }\n\n.datatable-body .datatable-body-row.warning, .datatable-body .datatable-body-cell.warning {\n border-left: solid 6px #ffa80f; }\n\n.datatable-body .datatable-body-row.error, .datatable-body .datatable-body-cell.error {\n border-left: solid 6px #f11d40; }\n\n.datatable-header-cell-type {\n border-left: 6px #eeeeee solid; }\n\nbody.testing-theme {\n background-color: #d4d7da; }\n\nbody.testing-theme .svg-value-container, body.testing-theme .svg-state-text-value-container, body.testing-theme .svg-double-value-container {\n fill: #98057e; }\n\nbody.testing-theme.content-background {\n background-color: #f4f5f6; }\n\nbody.testing-theme .waves-effect.waves-green .waves-ripple {\n background-color: rgba(0, 207, 120, 0.75); }\n\nbody.testing-theme .svg-value-container > g text.primary-value, body.testing-theme .svg-state-text-value-container > g text.primary-value, body.testing-theme .svg-double-value-container text.primary-value {\n fill: #525252; }\n\nbody.testing-theme .svg-value-container > g text.secondary-value, body.testing-theme .svg-double-value-container text.secondary-value {\n fill: #797979; }\n\nbody.testing-theme .waves-effect.waves-red .waves-ripple {\n background-color: rgba(241, 29, 64, 0.75); }\n\n.datatable-body .datatable-body-row.info, .datatable-body .datatable-body-cell.info {\n border-left: solid 6px #00cf78; }\n\n.datatable-body .datatable-body-row.warning, .datatable-body .datatable-body-cell.warning {\n border-left: solid 6px #ffa80f; }\n\n.datatable-body .datatable-body-row.error, .datatable-body .datatable-body-cell.error {\n border-left: solid 6px #f11d40; }\n\n.datatable-header-cell-type {\n border-left: 6px #eeeeee solid; }\n\ndiv.picker-box {\n font-family: \"Roboto\" !important; }\n\n.datatable-body {\n overflow-x: hidden; }\n\nbody {\n overflow: hidden; }\n\nbody > .modal-overlay {\n z-index: 1000 !important; }\n\nbody > .modal-overlay ~ .modal-overlay {\n z-index: 1007 !important; }\n\nbody.total-overlay .modal-overlay {\n z-index: 1007 !important; }\n\nbody.quickview-pinned > .modal-overlay {\n display: none !important; }\n\nbody.quickview-pinned > .modal-overlay ~ .modal-overlay {\n display: block !important; }\n\nbody.quickview-pinned .detail-view-footer > .cell-container {\n width: calc(100% - 425px) !important;\n transition: width 0.3s ease-in, left 0.3s ease-in; }\n\nbody.quickview-opened .notification-indicator {\n width: calc(80% - 425px) !important;\n left: 10% !important;\n transition: width 0.3s ease-in, left 0.3s ease-in; }\n\nbody.quickview-opened svg .clickable.focused {\n -webkit-filter: url(#focus-glow) !important;\n filter: url(#focus-glow) !important;\n -webkit-transform-origin: 50.03%;\n -webkit-transition: .0s;\n transform-origin: 50.03%;\n transition: 0s scale(1.01%); }\n\nbody.quickview-opened svg .clickable.focused .selected-only {\n display: inherit; }\n\nbody.toolbar_fullscreen .notification-indicator {\n z-index: 1005 !important; }\n\nbody.footer-page .btn-floating {\n bottom: 96px; }\n\n.container {\n max-width: 95%;\n width: 95%;\n position: relative;\n margin-top: 24px;\n margin-bottom: 50px; }\n\n.fill-height {\n height: calc(100vh - 56px); }\n\n.fill-height.with-container-spacing {\n height: calc(100vh - 76px); }\n\n.fill-height.with-notification-popup-spacing {\n height: calc(100vh - 106px); }\n\n.fill-height.with-container-and-notification-popup-spacing {\n height: calc(100vh - 126px); }\n\n.fill-height.after-tab {\n height: calc(100vh - 112px); }\n\n.fill-height.after-tab-with-container-spacing {\n height: calc(100vh - 132px); }\n\n.fill-height.after-tab-with-notification-popup-spacing {\n height: calc(100vh - 162px); }\n\n.fill-height.after-tab-with-container-and-notification-popup-spacing {\n height: calc(100vh - 182px); }\n\n.fill-height.after-header {\n height: calc(100vh - 157px); }\n\n.fill-height.after-header-with-container-spacing {\n height: calc(100vh - 191px); }\n\n.fill-height.after-header-with-notification-popup-spacing {\n height: calc(100vh - 207px); }\n\n.fill-height.after-header-with-container-and-notification-popup-spacing {\n height: calc(100vh - 241px); }\n\n.fill-height.after-tab-and-header {\n height: calc(100vh - 213px); }\n\n.fill-height.after-tab-and-header-with-container-spacing {\n height: calc(100vh - 247px); }\n\n.fill-height.after-tab-and-header-with-notification-popup-spacing {\n height: calc(100vh - 263px); }\n\n.fill-height.after-tab-and-header-with-container-and-notification-popup-spacing {\n height: calc(100vh - 297px); }\n\n.fill-height.after-doubleheader {\n height: calc(100vh - 238px); }\n\n.fill-height.after-doubleheader-with-container-spacing {\n height: calc(100vh - 272px); }\n\n.fill-height.after-doubleheader-with-notification-popup-spacing {\n height: calc(100vh - 288px); }\n\n.fill-height.after-doubleheader-with-container-and-notification-popup-spacing {\n height: calc(100vh - 322px); }\n\n.fill-height.after-tab-and-doubleheader {\n height: calc(100vh - 294px); }\n\n.fill-height.after-tab-and-doubleheader-with-container-spacing {\n height: calc(100vh - 328px); }\n\n.fill-height.after-tab-and-doubleheader-with-notification-popup-spacing {\n height: calc(100vh - 344px); }\n\n.fill-height.after-tab-and-doubleheader-with-container-and-notification-popup-spacing {\n height: calc(100vh - 378px); }\n\n.extended-toolbar .container {\n margin-top: 24px; }\n\n.extended-toolbar .fill-height {\n height: calc(100vh - 146px); }\n\n.extended-toolbar .fill-height.with-container-spacing {\n height: calc(100vh - 166px); }\n\n.extended-toolbar .fill-height.with-notification-popup-spacing {\n height: calc(100vh - 196px); }\n\n.extended-toolbar .fill-height.with-container-and-notification-popup-spacing {\n height: calc(100vh - 216px); }\n\n.extended-toolbar .fill-height.after-tab {\n height: calc(100vh - 202px); }\n\n.extended-toolbar .fill-height.after-tab-with-container-spacing {\n height: calc(100vh - 222px); }\n\n.extended-toolbar .fill-height.after-tab-with-notification-popup-spacing {\n height: calc(100vh - 252px); }\n\n.extended-toolbar .fill-height.after-tab-with-container-and-notification-popup-spacing {\n height: calc(100vh - 272px); }\n\n.extended-toolbar .fill-height.after-header {\n height: calc(100vh - 247px); }\n\n.extended-toolbar .fill-height.after-header-with-container-spacing {\n height: calc(100vh - 281px); }\n\n.extended-toolbar .fill-height.after-header-with-notification-popup-spacing {\n height: calc(100vh - 297px); }\n\n.extended-toolbar .fill-height.after-header-with-container-and-notification-popup-spacing {\n height: calc(100vh - 331px); }\n\n.extended-toolbar .fill-height.after-tab-and-header {\n height: calc(100vh - 303px); }\n\n.extended-toolbar .fill-height.after-tab-and-header-with-container-spacing {\n height: calc(100vh - 337px); }\n\n.extended-toolbar .fill-height.after-tab-and-header-with-notification-popup-spacing {\n height: calc(100vh - 353px); }\n\n.extended-toolbar .fill-height.after-tab-and-header-with-container-and-notification-popup-spacing {\n height: calc(100vh - 387px); }\n\n.extended-toolbar .fill-height.after-doubleheader {\n height: calc(100vh - 328px); }\n\n.extended-toolbar .fill-height.after-doubleheader-with-container-spacing {\n height: calc(100vh - 362px); }\n\n.extended-toolbar .fill-height.after-doubleheader-with-notification-popup-spacing {\n height: calc(100vh - 378px); }\n\n.extended-toolbar .fill-height.after-doubleheader-with-container-and-notification-popup-spacing {\n height: calc(100vh - 412px); }\n\n.extended-toolbar .fill-height.after-tab-and-doubleheader {\n height: calc(100vh - 384px); }\n\n.extended-toolbar .fill-height.after-tab-and-doubleheader-with-container-spacing {\n height: calc(100vh - 418px); }\n\n.extended-toolbar .fill-height.after-tab-and-doubleheader-with-notification-popup-spacing {\n height: calc(100vh - 434px); }\n\n.extended-toolbar .fill-height.after-tab-and-doubleheader-with-container-and-notification-popup-spacing {\n height: calc(100vh - 468px); }\n\n.scrolling-wrapper {\n overflow-y: auto;\n overflow-x: hidden;\n display: block; }\n\n.divider {\n height: 2px; }\n\n.group-header {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden; }\n\n.group-header i {\n display: inline-block;\n font-size: 32px;\n vertical-align: middle; }\n\n.group-header span {\n display: inline-block; }\n\n.group-header span::first-letter {\n text-transform: uppercase; }\n\n.router-outlet-container {\n padding-top: 20px;\n max-width: 95%;\n width: 95%;\n position: relative;\n margin: 0 auto; }\n\n.top-right {\n position: absolute;\n top: 16px;\n right: 16px; }\n\n.bottom-right {\n position: absolute;\n bottom: 10px;\n left: 10px; }\n\n.icon-button {\n display: inline-flex; }\n\n.icon-button i {\n margin-right: 8px; }\n\n.no-bottom-margin {\n margin-bottom: 0px; }\n\n.small-bottom-margin {\n margin-bottom: 8px; }\n\n.utf8-icon {\n width: 22px;\n height: 22px;\n line-height: 22px;\n text-align: center; }\n\ng.icon > text, g.icon-wide > text, a > i.icon, a > i.icon-wide, .btn-large > i, .btn > i {\n font-family: cms-icons;\n vertical-align: middle;\n text-align: center; }\n\ng.icon > text, a > i.icon, .btn-large > i {\n font-size: 42px;\n line-height: 42px !important;\n height: 42px; }\n\ng.icon-wide > text, a > i.icon-wide {\n font-size: 96px;\n line-height: 96px !important;\n height: 48px; }\n\n.svg-value-container > g rect:first-child, .svg-state-text-value-container > g rect:first-child, .svg-double-value-container rect:first-child {\n stroke-width: 2px; }\n\n.svg-value-container > g text.primary-value, .svg-colored-value-container > g text.primary-value, .svg-state-text-value-container > g text.primary-value {\n font-size: 28px; }\n\n.svg-value-container > g text.secondary-value, .svg-colored-value-container > g text.secondary-value, .svg-state-text-value-container > g text.secondary-value {\n font-size: 18px; }\n\n.svg-double-value-container text.primary-value, .svg-double-value-container text.secondary-value {\n font-size: 24px; }\n\n.btn > i {\n font-size: 26px; }\n\n.dashboard-card-canvas {\n width: 100%;\n height: 100%; }\n\n.noselect {\n -webkit-touch-callout: none;\n /* iOS Safari */\n -webkit-user-select: none;\n /* Safari */\n /* Konqueror HTML */\n -moz-user-select: none;\n /* Firefox */\n -ms-user-select: none;\n /* Internet Explorer/Edge */\n user-select: none;\n /* Non-prefixed version, currently\n supported by Chrome and Opera */ }\n" /***/ }), /***/ "./src/app/components/app.component.ts": /*!*********************************************!*\ !*** ./src/app/components/app.component.ts ***! \*********************************************/ /*! exports provided: AppComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; }); /* harmony import */ var _services_app_init_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../services/app-init.service */ "./src/app/services/app-init.service.ts"); /* harmony import */ var app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var ngx_cookie__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-cookie */ "./node_modules/ngx-cookie/fesm5/ngx-cookie.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _services_inactivity_detector__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../services/inactivity-detector */ "./src/app/services/inactivity-detector.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./toolbar/toolbar.component */ "./src/app/components/toolbar/toolbar.component.ts"); /* harmony import */ var _services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../services/user-data/user-data.service */ "./src/app/services/user-data/user-data.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NOT_FOUND_URL_FULL = "/" + _app_constants__WEBPACK_IMPORTED_MODULE_5__["NOT_FOUND_URL"]; var AppComponent = /** @class */ (function () { function AppComponent(_authService, _userDataService, _translate, _appInitService, _router, _configService, _cookieService, _inactivityDetector) { this._authService = _authService; this._userDataService = _userDataService; this._translate = _translate; this._appInitService = _appInitService; this._router = _router; this._configService = _configService; this._cookieService = _cookieService; this._inactivityDetector = _inactivityDetector; var currentLanguage = this._translate.currentLanguage; if (currentLanguage != null) { this._cookieService.put(_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].CurrentLanguageCookieKey, currentLanguage); } this.hasToolbarGauges = _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_10__["ToolbarComponent"].hasGauges(this._configService.craneConfig); } AppComponent.prototype.disableContextMenus = function () { window.oncontextmenu = function (event) { event.preventDefault(); }; }; Object.defineProperty(AppComponent.prototype, "isLoggedIn", { get: function () { var authService = this._authService; return authService != null && authService.isLoggedIn === true; }, enumerable: true, configurable: true }); Object.defineProperty(AppComponent.prototype, "isLoadingVisible", { get: function () { if (!this.isLoggedIn) { var url = this._router.url; return url != null && url.indexOf(NOT_FOUND_URL_FULL) === -1; } return false; }, enumerable: true, configurable: true }); AppComponent.prototype.ngOnInit = function () { var _this = this; this.disableContextMenus(); if (!this._configService.craneConfig) { this._router.navigate([NOT_FOUND_URL_FULL]); return; } this._userDataService.initialized .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["filter"])(function (e) { return e; })) .subscribe(function () { if (_this._userDataService.userData.autoLogout) { _this._inactivityDetector.start(); } else { _this._inactivityDetector.stop(); } }); this._authService.loginStateChanged.subscribe(function (loggedIn) { if (loggedIn) { _this._appInitService.init().then(function () { var userData = _this._userDataService.userData; if (userData != null && userData.userLanguage != null) { _this._translate.use(userData.userLanguage); } var defaultRoute = _this._authService.getClaimValue(app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"].claimInitialRoute); _this._router.navigate([_this._authService.redirectUrl || defaultRoute || '/']); }).catch(function (error) { console.error('Initialization failed:', error); _this._router.navigate(["/" + _app_constants__WEBPACK_IMPORTED_MODULE_5__["HOME_PAGE_URL"]]); }); } else { _this._router.navigate(["/" + _app_constants__WEBPACK_IMPORTED_MODULE_5__["LOGIN_PAGE_URL"]]); } }); this._authService.tryLogin(); }; AppComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({ selector: 'cms-app', template: __webpack_require__(/*! ./app.component.html */ "./src/app/components/app.component.html"), styles: [__webpack_require__(/*! ./app.component.scss */ "./src/app/components/app.component.scss")], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None }), __metadata("design:paramtypes", [app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"], _services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_11__["UserDataService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"], _services_app_init_service__WEBPACK_IMPORTED_MODULE_0__["AppInitService"], _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"], _services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"], ngx_cookie__WEBPACK_IMPORTED_MODULE_6__["CookieService"], _services_inactivity_detector__WEBPACK_IMPORTED_MODULE_8__["InactivityDetectorService"]]) ], AppComponent); return AppComponent; }()); /***/ }), /***/ "./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.html": /*!***********************************************************************************************!*\ !*** ./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.html ***! \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
\n
\n
\n\n
\n
= 0\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{{vm?.orderDetails.label}}
{{vm?.orderDetails.orderId.label}}{{vm?.orderDetails.orderId.displayValue}}
{{vm?.orderDetails.orderState.label}}{{vm?.orderDetails.orderState.displayValue}}
{{vm?.orderDetails.containerNumber.label}}{{vm?.orderDetails.containerNumber.displayValue}}
{{vm?.orderDetails.loadType.label}}{{vm?.orderDetails.loadType.displayValue}}
{{vm?.orderDetails.wtpCornerCastings.label}}{{vm?.orderDetails.wtpCornerCastings.displayValue}}
\n
\n
= 1\">\n \n \n
\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n \n \n
\n
\n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.scss": /*!***********************************************************************************************!*\ !*** ./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.scss ***! \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".value-box-group {\n display: table;\n table-layout: inherit; }\n .value-box-group value-box {\n display: table-cell;\n padding: 0px 4px; }\n .state-group {\n opacity: 0.7; }\n .state-group.active {\n opacity: 1; }\n" /***/ }), /***/ "./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.ts": /*!*********************************************************************************************!*\ !*** ./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.ts ***! \*********************************************************************************************/ /*! exports provided: AutomaticModeHalfOrderComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutomaticModeHalfOrderComponent", function() { return AutomaticModeHalfOrderComponent; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _models_automatic_mode_half_order_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/automatic-mode-half-order.viewmodel */ "./src/app/models/automatic-mode-half-order.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AutomaticModeHalfOrderComponent = /** @class */ (function (_super) { __extends(AutomaticModeHalfOrderComponent, _super); function AutomaticModeHalfOrderComponent(dataPointService, configService, activatedRoute, colorService, _viewService, _httpClient) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this._viewService = _viewService; _this._httpClient = _httpClient; _this.vm = new _models_automatic_mode_half_order_viewmodel__WEBPACK_IMPORTED_MODULE_3__["AutomaticModeHalfOrderViewModel"](_this.configService.craneConfig, _this._httpClient); return _this; } AutomaticModeHalfOrderComponent.prototype.ngOnInit = function () { this._viewService.setToolbarTitle('automatic_mode'); this.setNaturalKeys(this.vm.naturalKeys); }; AutomaticModeHalfOrderComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; AutomaticModeHalfOrderComponent.prototype.onValuesChanged = function () { if (this.initCompleted) { this.vm.updateFromDatapoints(this.dataPoints); } }; AutomaticModeHalfOrderComponent.prototype.cancelActiveOrder = function (orderId) { this.vm.cancelActiveOrder(orderId); }; AutomaticModeHalfOrderComponent.prototype.displayQuickViewItems = function (label, quickviewCollection) { this._viewService.showQuickview(label, quickviewCollection); }; AutomaticModeHalfOrderComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'automatic-mode-half-order', styles: [__webpack_require__(/*! ./automatic-mode-half-order.component.scss */ "./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.scss")], template: __webpack_require__(/*! ./automatic-mode-half-order.component.html */ "./src/app/components/automatic-mode-half-order/automatic-mode-half-order.component.html"), host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_5__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_4__["ColorService"], _services_view_service__WEBPACK_IMPORTED_MODULE_8__["ViewService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]]) ], AutomaticModeHalfOrderComponent); return AutomaticModeHalfOrderComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_7__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/automatic-mode/automatic-mode.component.html": /*!*************************************************************************!*\ !*** ./src/app/components/automatic-mode/automatic-mode.component.html ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
\n
\n
\n
\n \n \n
\n
\n
= 0\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{{vm?.orderDetails.label}}
{{vm?.orderDetails.orderId.label}}{{vm?.orderDetails.orderId.displayValue}}
{{vm?.orderDetails.orderState.label}}{{vm?.orderDetails.orderState.displayValue}}
{{vm?.orderDetails.containerNumber.label}}{{vm?.orderDetails.containerNumber.displayValue}}
{{vm?.orderDetails.loadType.label}}{{vm?.orderDetails.loadType.displayValue}}
{{vm?.orderDetails.wtpCornerCastings.label}}{{vm?.orderDetails.wtpCornerCastings.displayValue}}
\n
\n
= 1\">\n \n \n
\n
= 2\">\n \n \n
\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n \n \n
\n
\n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/automatic-mode/automatic-mode.component.scss": /*!*************************************************************************!*\ !*** ./src/app/components/automatic-mode/automatic-mode.component.scss ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".value-box-group {\n display: table;\n table-layout: inherit; }\n .value-box-group value-box {\n display: table-cell;\n padding: 0px 4px; }\n .state-group {\n opacity: 0.7; }\n .state-group.active {\n opacity: 1; }\n" /***/ }), /***/ "./src/app/components/automatic-mode/automatic-mode.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/automatic-mode/automatic-mode.component.ts ***! \***********************************************************************/ /*! exports provided: AutomaticModeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutomaticModeComponent", function() { return AutomaticModeComponent; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _models_automatic_mode_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/automatic-mode.viewmodel */ "./src/app/models/automatic-mode.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AutomaticModeComponent = /** @class */ (function (_super) { __extends(AutomaticModeComponent, _super); function AutomaticModeComponent(dataPointService, configService, activatedRoute, colorService, _viewService, _httpClient) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this._viewService = _viewService; _this._httpClient = _httpClient; _this.vm = new _models_automatic_mode_viewmodel__WEBPACK_IMPORTED_MODULE_3__["AutomaticModeViewModel"](_this.configService.craneConfig, _this._httpClient); return _this; } AutomaticModeComponent.prototype.ngOnInit = function () { this._viewService.setToolbarTitle('automatic_mode'); this.setNaturalKeys(this.vm.naturalKeys); }; AutomaticModeComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; AutomaticModeComponent.prototype.onValuesChanged = function () { if (this.initCompleted) { this.vm.updateFromDatapoints(this.dataPoints); } }; AutomaticModeComponent.prototype.cancelActiveOrder = function (orderId) { this.vm.cancelActiveOrder(orderId); }; AutomaticModeComponent.prototype.displayQuickViewItems = function (label, quickviewCollection) { this._viewService.showQuickview(label, quickviewCollection); }; AutomaticModeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'automatic-mode', styles: [__webpack_require__(/*! ./automatic-mode.component.scss */ "./src/app/components/automatic-mode/automatic-mode.component.scss")], template: __webpack_require__(/*! ./automatic-mode.component.html */ "./src/app/components/automatic-mode/automatic-mode.component.html"), host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_5__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_4__["ColorService"], _services_view_service__WEBPACK_IMPORTED_MODULE_8__["ViewService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]]) ], AutomaticModeComponent); return AutomaticModeComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_7__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/cards/base-card.component.scss": /*!***********************************************************!*\ !*** ./src/app/components/cards/base-card.component.scss ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme h3 {\n color: #293647; }\n\n.default-theme h5 {\n color: #69727e; }\n\n.default-theme .toolbar-title {\n color: #69727e; }\n\n.default-theme .toolbar-title .postfix {\n color: #69727e; }\n\n.testing-theme h3 {\n color: #525252; }\n\n.testing-theme h5 {\n color: #797979; }\n\n.testing-theme .toolbar-title {\n color: #797979; }\n\n.testing-theme .toolbar-title .postfix {\n color: rgba(255, 255, 255, 0.75); }\n\nh3 {\n font-size: 1.5rem;\n font-family: Roboto, Helvetica, sans-serif; }\n\nh5 {\n font-size: 1rem;\n font-family: Roboto, Helvetica, sans-serif; }\n\n.toolbar-title .postfix {\n font-weight: 300; }\n\n.default-theme .left-circle, .default-theme .right-circle {\n stroke: #293647;\n stroke-width: 2px; }\n\n.default-theme.dashboard-card .card-header {\n background-color: #f4f5f6; }\n\n.default-theme.dashboard-card h3 {\n color: #293647; }\n\n.default-theme.dashboard-card h5 {\n color: #69727e; }\n\n.testing-theme .left-circle, .testing-theme .right-circle {\n stroke: #a70091;\n stroke-width: 2px; }\n\n.testing-theme.dashboard-card .card-header {\n background-color: #f4f5f6; }\n\n.testing-theme.dashboard-card h3 {\n color: #525252; }\n\n.testing-theme.dashboard-card h5 {\n color: #797979; }\n\n.card {\n margin: 0; }\n\n.dashboard-card {\n overflow: hidden;\n cursor: pointer;\n height: 100%; }\n\n.dashboard-card.no-click {\n cursor: inherit !important; }\n\n.dashboard-card:hover:not(.no-click) {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.3); }\n\n.dashboard-card:active:not(.no-click) {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.dashboard-card .card-header {\n position: absolute;\n top: 0px;\n bottom: 90px;\n left: 0px;\n right: 0px; }\n\n.dashboard-card.no-footer .card-header {\n bottom: 0px; }\n\nsvg .position-indicator-bar {\n transition: -webkit-transform 1s linear;\n transition: transform 1s linear;\n transition: transform 1s linear, -webkit-transform 1s linear;\n will-change: transform; }\n\nsvg .disabled {\n opacity: 0.2; }\n\nsvg .animated-spreader-hoist {\n transition: -webkit-transform 1s linear;\n transition: transform 1s linear;\n transition: transform 1s linear, -webkit-transform 1s linear;\n will-change: transform; }\n\nsvg #spreader #spreaderLeft, svg #spreader #spreaderRight {\n transition: -webkit-transform 2s ease-in-out;\n transition: transform 2s ease-in-out;\n transition: transform 2s ease-in-out, -webkit-transform 2s ease-in-out;\n will-change: transform; }\n\nsvg #animated-hoist-area, svg #ropes {\n transition: -webkit-transform 1s linear;\n transition: transform 1s linear;\n transition: transform 1s linear, -webkit-transform 1s linear;\n will-change: transform; }\n" /***/ }), /***/ "./src/app/components/cards/base-card.component.ts": /*!*********************************************************!*\ !*** ./src/app/components/cards/base-card.component.ts ***! \*********************************************************/ /*! exports provided: BaseCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseCardComponent", function() { return BaseCardComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BaseCardComponent = /** @class */ (function (_super) { __extends(BaseCardComponent, _super); function BaseCardComponent(dataPointService, dataPointRangeService, changeDetector, router) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.changeDetector = changeDetector; _this.router = router; return _this; } BaseCardComponent.prototype.ngOnInit = function () { }; BaseCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; BaseCardComponent.prototype.onValueChanged = function (naturalKey, data) { }; BaseCardComponent.prototype.onValuesChanged = function () { this.updateViewModel(); }; BaseCardComponent.prototype.openCardDetails = function () { this.router.navigate([this.navigationUrl]); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('config'), __metadata("design:type", Object) ], BaseCardComponent.prototype, "config", void 0); return BaseCardComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/cards/card-loader.component.html": /*!*************************************************************!*\ !*** ./src/app/components/cards/card-loader.component.html ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /***/ "./src/app/components/cards/card-loader.component.ts": /*!***********************************************************!*\ !*** ./src/app/components/cards/card-loader.component.ts ***! \***********************************************************/ /*! exports provided: CardLoaderComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardLoaderComponent", function() { return CardLoaderComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _configurable_hoist_card_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./configurable-hoist-card.component */ "./src/app/components/cards/configurable-hoist-card.component.ts"); /* harmony import */ var _configurable_grapple_card_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configurable-grapple-card.component */ "./src/app/components/cards/configurable-grapple-card.component.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _deprecated_hoist_card_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./deprecated/hoist-card.component */ "./src/app/components/cards/deprecated/hoist-card.component.ts"); /* harmony import */ var _rail_gantry_card_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./rail-gantry-card.component */ "./src/app/components/cards/rail-gantry-card.component.ts"); /* harmony import */ var _rubber_tire_gantry_card_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./rubber-tire-gantry-card.component */ "./src/app/components/cards/rubber-tire-gantry-card.component.ts"); /* harmony import */ var _slewing_gear_card_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./slewing-gear-card.component */ "./src/app/components/cards/slewing-gear-card.component.ts"); /* harmony import */ var _spreader_card_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./spreader-card.component */ "./src/app/components/cards/spreader-card.component.ts"); /* harmony import */ var _traverse_card_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./traverse-card.component */ "./src/app/components/cards/traverse-card.component.ts"); /* harmony import */ var _trolley_card_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./trolley-card.component */ "./src/app/components/cards/trolley-card.component.ts"); /* harmony import */ var _configurable_svg_card_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./configurable-svg-card.component */ "./src/app/components/cards/configurable-svg-card.component.ts"); /* harmony import */ var _charger_trolley_card_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./charger-trolley-card.component */ "./src/app/components/cards/charger-trolley-card.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CardLoaderComponent = /** @class */ (function () { function CardLoaderComponent(componentFactoryResolver) { this.componentFactoryResolver = componentFactoryResolver; } CardLoaderComponent_1 = CardLoaderComponent; Object.defineProperty(CardLoaderComponent.prototype, "config", { set: function (config) { if (this._dashboardConfig != undefined && (config == undefined || this._dashboardConfig.type !== config.type)) { this.disposeComponent(); } this.loadDynamicContent(config); }, enumerable: true, configurable: true }); CardLoaderComponent.getComponentType = function (cardType) { switch (cardType) { case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].SpreaderCard: return _spreader_card_component__WEBPACK_IMPORTED_MODULE_8__["SpreaderCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].TraverseCard: return _traverse_card_component__WEBPACK_IMPORTED_MODULE_9__["TraverseCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].TrolleyCard: return _trolley_card_component__WEBPACK_IMPORTED_MODULE_10__["TrolleyCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].ChargerTrolleyCard: return _charger_trolley_card_component__WEBPACK_IMPORTED_MODULE_12__["ChargerTrolleyCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].RailGantryCard: return _rail_gantry_card_component__WEBPACK_IMPORTED_MODULE_5__["RailGantryCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].RubberTireGantryCard: return _rubber_tire_gantry_card_component__WEBPACK_IMPORTED_MODULE_6__["RubberTireGantryCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].HoistCard: return _deprecated_hoist_card_component__WEBPACK_IMPORTED_MODULE_4__["HoistCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].SlewingGearCard: return _slewing_gear_card_component__WEBPACK_IMPORTED_MODULE_7__["SlewingGearCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].ConfigurableHoistCard: return _configurable_hoist_card_component__WEBPACK_IMPORTED_MODULE_1__["ConfigurableHoistCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].ConfigurableGrappleCard: return _configurable_grapple_card_component__WEBPACK_IMPORTED_MODULE_2__["ConfigurableGrappleCardComponent"]; case types_config__WEBPACK_IMPORTED_MODULE_3__["DashboardItemType"].ConfigurableSvgCard: return _configurable_svg_card_component__WEBPACK_IMPORTED_MODULE_11__["ConfigurableSvgCardComponent"]; default: return undefined; } }; CardLoaderComponent.prototype.loadDynamicContent = function (config) { if (config != null) { var componentType = CardLoaderComponent_1.getComponentType(config.type); if (componentType != null) { var factory = this.componentFactoryResolver.resolveComponentFactory(componentType); this._componentRef = this.container.createComponent(factory); var instance = this._componentRef.instance; instance.config = config; } } this._dashboardConfig = config; }; CardLoaderComponent.prototype.disposeComponent = function () { if (this._componentRef != null) { this._componentRef.destroy(); this._componentRef = undefined; } }; CardLoaderComponent.prototype.ngOnDestroy = function () { this.disposeComponent(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('cardContainer', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]) ], CardLoaderComponent.prototype, "container", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], CardLoaderComponent.prototype, "config", null); CardLoaderComponent = CardLoaderComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'card-loader', template: __webpack_require__(/*! ./card-loader.component.html */ "./src/app/components/cards/card-loader.component.html") }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]]) ], CardLoaderComponent); return CardLoaderComponent; var CardLoaderComponent_1; }()); /***/ }), /***/ "./src/app/components/cards/charger-trolley-card.component.html": /*!**********************************************************************!*\ !*** ./src/app/components/cards/charger-trolley-card.component.html ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{segment.title}}\n \n \n \n \n \n \n \n \n \n \n d\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n\n \n \n
" /***/ }), /***/ "./src/app/components/cards/charger-trolley-card.component.ts": /*!********************************************************************!*\ !*** ./src/app/components/cards/charger-trolley-card.component.ts ***! \********************************************************************/ /*! exports provided: ChargerTrolleyCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChargerTrolleyCardComponent", function() { return ChargerTrolleyCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/trolley-card.viewmodel */ "./src/app/models/trolley-card.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var app_models_trolley_mechanical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/models/trolley-mechanical-kc.viewmodel */ "./src/app/models/trolley-mechanical-kc.viewmodel.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _cards_base_card_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../cards/base-card.component */ "./src/app/components/cards/base-card.component.ts"); /* harmony import */ var _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../common/common-components/movement-indicator/position-indicator.component */ "./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ChargerTrolleyCardComponent = /** @class */ (function (_super) { __extends(ChargerTrolleyCardComponent, _super); function ChargerTrolleyCardComponent(cmsTranslation, unitConversionService, unitKeyService, dataPointService, configService, changeDetector, dataPointRangeService, router, orientationService) { var _this = _super.call(this, dataPointService, dataPointRangeService, changeDetector, router) || this; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this.dataPointService = dataPointService; _this.configService = configService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.orientationService = orientationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_8__["ModelStates"]; _this.indicatorHeight = 50; _this.indicatorWidth = 24; _this.centerOffset = 100; _this.stormBreakState = app_models_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"]; _this.trolleyMotorState = app_models_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"]; _this.trolleyVm = new app_models_trolley_mechanical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TrolleyMechanicalKcViewModel"](orientationService, _this.configService.craneConfig); _this.posInd = new _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_14__["PositionIndicator"](_this.indicatorHeight, _this.centerOffset, _this.dataPointRangeService.getRange(app_models_trolley_mechanical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TrolleyMechanicalKcViewModel"].naturalKeyTrolleyPosition), app_models_trolley_mechanical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TrolleyMechanicalKcViewModel"].naturalKeyTrolleyPosition); _this.trolleyVm.initUnitConversion(_this.unitConversionService, _this.unitKeyService, cmsTranslation); _this.posInd.initUnitConversion(_this.unitConversionService, _this.unitKeyService); return _this; } ChargerTrolleyCardComponent.prototype.ngOnInit = function () { var _this = this; if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this._unitSystemChangedSubscription = this.unitConversionService.unitSystemChanged.subscribe(function (unitSystem) { if (unitSystem != null) { _this.trolleyVm.unitSystem = unitSystem; _this.posInd.unitSystem = unitSystem; } }); this.posInd.flipOrientationIndicator = true; this.trolleyVm.positionRange = this.dataPointRangeService.getRange(this.travelingPositionNk); this.setNaturalKeys(this.trolleyVm.naturalKeys); }; ChargerTrolleyCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._unitSystemChangedSubscription != null) { this._unitSystemChangedSubscription.unsubscribe(); } }; ChargerTrolleyCardComponent.prototype.updateViewModel = function () { this.trolleyVm.updateFromDatapoints(this.dataPoints); this.posInd.position = this.trolleyVm.position; }; Object.defineProperty(ChargerTrolleyCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); Object.defineProperty(ChargerTrolleyCardComponent.prototype, "travelingPositionNk", { get: function () { return app_models_trolley_mechanical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TrolleyMechanicalKcViewModel"].naturalKeyTrolleyPosition; }, enumerable: true, configurable: true }); ChargerTrolleyCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'charger-trolley-card', template: __webpack_require__(/*! ./charger-trolley-card.component.html */ "./src/app/components/cards/charger-trolley-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")] }), __metadata("design:paramtypes", [app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_6__["UnitConversionService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_7__["UnitKeyService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_12__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_10__["ConfigService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_11__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__["OrientationService"]]) ], ChargerTrolleyCardComponent); return ChargerTrolleyCardComponent; }(_cards_base_card_component__WEBPACK_IMPORTED_MODULE_13__["BaseCardComponent"])); /***/ }), /***/ "./src/app/components/cards/configurable-grapple-card.component.html": /*!***************************************************************************!*\ !*** ./src/app/components/cards/configurable-grapple-card.component.html ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{segment.title}}\n \n \n \n \n \n
\n \n
\n" /***/ }), /***/ "./src/app/components/cards/configurable-grapple-card.component.ts": /*!*************************************************************************!*\ !*** ./src/app/components/cards/configurable-grapple-card.component.ts ***! \*************************************************************************/ /*! exports provided: ConfigurableGrappleCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigurableGrappleCardComponent", function() { return ConfigurableGrappleCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var app_models_model_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../datapoints/svg-base-datapoint.component */ "./src/app/components/datapoints/svg-base-datapoint.component.ts"); /* harmony import */ var _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../common/common-components/movement-indicator/position-indicator.component */ "./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../services/unitkey.service */ "./src/app/services/unitkey.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ConfigurableGrappleCardComponent = /** @class */ (function (_super) { __extends(ConfigurableGrappleCardComponent, _super); function ConfigurableGrappleCardComponent(dataPointService, configService, unitConversionService, unitKeyService, colorService, changeDetector, dataPointRangeService, router, svgPageService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this.colorService = colorService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.svgPageService = svgPageService; _this._baseCardWidth = 150; _this._baseCardHeight = 200; _this._extraHeight = 150; _this.indicatorHeight = 24; _this.indicatorWidth = 100; _this.indicatorCenterOffset = 459; _this.indicatorBottomOffset = 20; _this.grappleOpenedValue = false; _this.grappleClosedValue = false; _this.modelStates = app_models_model_state__WEBPACK_IMPORTED_MODULE_7__["ModelStates"]; _this.svgContainerGroupTopOffset = 0; _this.svgLeftHookTranslationOffset = 0; _this.svgRightHookTranslationOffset = 0; _this.svgFloorHeight = 0; _this.svgFloorElements = []; _this.svgGroundFloorTopShift = 10; _this.svgRailsTopOffset = 20; _this.svgRailsTopUnitOffset = 10; _this.svgTrolleyTopOffset = _this.svgRailsTopOffset - 4; _this.svgTrolleyHeight = 28; _this.svgRopesTopOffset = _this.svgTrolleyTopOffset + _this.svgTrolleyHeight; _this.svgRopesHeight = 10; _this.svgRopesTrolleyOffset = 44; _this.svgScaleHeight = 0; _this.svgSpreaderTrolleyOffset = _this.svgRopesTopOffset + 14; _this.svgSpreaderTrolleyUnitOffset = 38; _this.svgHoistTranslationOffset = 62; _this.svgHoistTranslationUnitOffset = 37; _this.svgScaleContainer = 100; _this.svgRopesCardTwoHeight = 10; _this.svgRopesCardOneHeight = 30; _this.svgRopesTrolleyCardOneHeight = 26; return _this; } Object.defineProperty(ConfigurableGrappleCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); ConfigurableGrappleCardComponent.prototype.ngOnInit = function () { if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_3__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this.cardWidth = this.config.gridConfig.sizex * this._baseCardWidth; this.cardHeight = this.config.gridConfig.sizey * this._baseCardHeight + (this.config.gridConfig.sizey - 1) * this._extraHeight; this.gridCardHeight = this.config.gridConfig.sizey; this.svgSpreaderTrolleyOffset = this.gridCardHeight != 1 ? this.svgSpreaderTrolleyOffset : this.svgSpreaderTrolleyUnitOffset; this.svgRailsTopOffset = this.gridCardHeight != 1 ? this.svgRailsTopOffset : this.svgRailsTopUnitOffset; this.svgRopesHeight = this.gridCardHeight != 1 ? this.svgRopesCardTwoHeight : this.svgRopesCardOneHeight; this.svgRopesTrolleyOffset = this.gridCardHeight != 1 ? this.svgRopesTrolleyOffset : this.svgRopesTrolleyCardOneHeight; this.states = this.svgPageService.getEnabledRuntimeStatesWithValueProvider(this.config.stateConfig); this.footerCells = this.svgPageService.getEnabledFooterCellsWithValueProvider(this.config.footerConfig.valueCells); this.setupVisualization(); var naturalKeys = []; naturalKeys.push.apply(naturalKeys, this.svgPageService.getNaturalKeysOfFooter((this.config.footerConfig))); naturalKeys.push.apply(naturalKeys, this.svgPageService.getNaturalKeysOfTabStates((this.config.stateConfig))); naturalKeys.push.apply(naturalKeys, [this.config.nkGrappleOpened, this.config.nkGrappleClosed, this.config.nkGrappleHeight, this.config.nkSlewingRotation]); this.setNaturalKeys(naturalKeys); this.posInd = new _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_10__["PositionIndicator"](this.indicatorWidth, this.indicatorCenterOffset, this.dataPointRangeService.getRange(this.config.nkSlewingRotation), this.config.nkSlewingRotation, 5); this.posInd.initUnitConversion(this.unitConversionService, this.unitKeyService); }; ConfigurableGrappleCardComponent.prototype.ngOnDestroy = function () { if (this.grappleHeightSubscription != undefined) this.grappleHeightSubscription.unsubscribe(); if (this.slewingRotationSubscription != undefined) this.slewingRotationSubscription.unsubscribe(); if (this.grappleOpenedSubscription != undefined) this.grappleOpenedSubscription.unsubscribe(); if (this.grappleClosedSubscription != undefined) this.grappleClosedSubscription.unsubscribe(); }; ConfigurableGrappleCardComponent.prototype.openCardDetails = function () { this.router.navigate([this.navigationUrl]); }; ConfigurableGrappleCardComponent.prototype.updateViewModel = function (liftHeight) { this.updateSvgMetrics(liftHeight); this.changeDetector.detectChanges(); }; ConfigurableGrappleCardComponent.prototype.updateViewModelSlewing = function (slewing) { this.posInd.position = slewing; this.changeDetector.detectChanges(); }; ConfigurableGrappleCardComponent.prototype.updateGrappleStateFlag = function (opened, closed) { this.svgLeftHookTranslationOffset = opened ? 70 : closed ? 0 : 30; this.svgRightHookTranslationOffset = opened ? -70 : closed ? 0 : -30; }; ConfigurableGrappleCardComponent.prototype.setupVisualization = function () { var _this = this; var liftHeightRange = this.dataPointRangeService.getRange(this.config.nkGrappleHeight); this._minPosition = !(liftHeightRange != null) || isNaN(liftHeightRange.min) ? 0 : liftHeightRange.min; this._maxPosition = !(liftHeightRange != null) || isNaN(liftHeightRange.max) ? 0 : liftHeightRange.max; this._absoluteLiftHeight = Math.abs(this._maxPosition - this._minPosition); this._maxFloorNumber = this.configService.craneConfig.craneMaxContainerStackSize; this.svgGroundFloorTopOffset = this.cardHeight - this.svgGroundFloorTopShift - this.indicatorBottomOffset; this.svgScaleHeight = (this.svgGroundFloorTopOffset - this.svgSpreaderTrolleyOffset) / (this._absoluteLiftHeight); this.svgFloorHeight = app_app_constants__WEBPACK_IMPORTED_MODULE_3__["Const"].GrappleHeight * this.svgScaleHeight; this.indicatorHeight = Math.min(this.indicatorHeight, this.svgFloorHeight); this.svgFloorElements = []; for (var i = 1; i <= this._maxFloorNumber; i++) { this.svgFloorElements.push(i); } this.grappleOpened = this.svgPageService.getValueProvider(this.config.nkGrappleOpened); this.grappleClosed = this.svgPageService.getValueProvider(this.config.nkGrappleClosed); this.grappleHeight = this.svgPageService.getValueProvider(this.config.nkGrappleHeight); this.slewingRotation = this.svgPageService.getValueProvider(this.config.nkSlewingRotation); if (this.grappleHeight != undefined) this.grappleHeightSubscription = this.grappleHeight.subscribe(function (value) { _this.updateViewModel(value); }); if (this.slewingRotation != undefined) this.slewingRotationSubscription = this.slewingRotation.subscribe(function (value) { _this.updateViewModelSlewing(value); }); if (this.grappleOpened != undefined) this.grappleOpenedSubscription = this.grappleOpened.subscribe(function (value) { _this.grappleOpenedValue = value; _this.updateGrappleStateFlag(_this.grappleOpenedValue, _this.grappleClosedValue); }); if (this.grappleClosed != undefined) this.grappleClosedSubscription = this.grappleClosed.subscribe(function (value) { _this.grappleClosedValue = value; _this.updateGrappleStateFlag(_this.grappleOpenedValue, _this.grappleClosedValue); }); }; ConfigurableGrappleCardComponent.prototype.updateSvgMetrics = function (liftHeight) { this.svgContainerGroupTopOffset = this.svgGroundFloorTopOffset - ((liftHeight + -1 * this._minPosition) * this.svgScaleHeight); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('config'), __metadata("design:type", Object) ], ConfigurableGrappleCardComponent.prototype, "config", void 0); ConfigurableGrappleCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-configurable-grapple-card', template: __webpack_require__(/*! ./configurable-grapple-card.component.html */ "./src/app/components/cards/configurable-grapple-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")], providers: [_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"]] }), __metadata("design:paramtypes", [app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"], _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_11__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_12__["UnitKeyService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_1__["ColorService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_8__["Router"], _dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"]]) ], ConfigurableGrappleCardComponent); return ConfigurableGrappleCardComponent; }(_datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_9__["SvgBaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/cards/configurable-hoist-card.component.html": /*!*************************************************************************!*\ !*** ./src/app/components/cards/configurable-hoist-card.component.html ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n \n \n \n \n \n \n \n \n {{indicator}}\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n" /***/ }), /***/ "./src/app/components/cards/configurable-hoist-card.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/cards/configurable-hoist-card.component.ts ***! \***********************************************************************/ /*! exports provided: ConfigurableHoistCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigurableHoistCardComponent", function() { return ConfigurableHoistCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../types/config */ "./src/types/config.ts"); /* harmony import */ var app_models_model_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../datapoints/svg-base-datapoint.component */ "./src/app/components/datapoints/svg-base-datapoint.component.ts"); /* harmony import */ var _utils_floor_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../utils/floor-util */ "./src/app/utils/floor-util.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ConfigurableHoistCardComponent = /** @class */ (function (_super) { __extends(ConfigurableHoistCardComponent, _super); function ConfigurableHoistCardComponent(dataPointService, configService, colorService, changeDetector, dataPointRangeService, router, svgPageService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.colorService = colorService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.svgPageService = svgPageService; _this._baseCardWidth = 150; _this._baseCardHeight = 200; _this._extraHeight = 150; _this.modelStates = app_models_model_state__WEBPACK_IMPORTED_MODULE_8__["ModelStates"]; _this.svgContainerGroupTopOffset = 0; _this.svgFloorHeight = 0; _this.svgFloorElements = []; _this.svgGroundFloorTopShift = 10; _this.svgRailsTopOffset = 20; _this.svgRailsTopUnitOffset = 10; _this.svgTrolleyTopOffset = _this.svgRailsTopOffset - 4; _this.svgTrolleyHeight = 28; _this.svgRopesTopOffset = _this.svgTrolleyTopOffset + _this.svgTrolleyHeight; _this.svgRopesHeight = 10; _this.svgRopesTrolleyOffset = 44; _this.svgScaleHeight = 0; _this.svgSpreaderTrolleyOffset = _this.svgRopesTopOffset + 14; _this.svgSpreaderTrolleyUnitOffset = 38; _this.svgHoistTranslationOffset = 62; _this.svgHoistTranslationUnitOffset = 37; _this.svgScaleContainer = 68; _this.svgRopesCardTwoHeight = 10; _this.svgRopesCardOneHeight = 30; _this.svgRopesTrolleyCardOneHeight = 26; _this.svgSoftlandingCardOneOffset = 385; _this.svgSoftlandingCardTwoOffset = 61; return _this; } Object.defineProperty(ConfigurableHoistCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); ConfigurableHoistCardComponent.prototype.ngOnInit = function () { if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_3__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this.cardWidth = this.config.gridConfig.sizex * this._baseCardWidth; this.cardHeight = this.config.gridConfig.sizey * this._baseCardHeight + (this.config.gridConfig.sizey - 1) * this._extraHeight; this.gridCardHeight = this.config.gridConfig.sizey; this.svgSpreaderTrolleyOffset = this.gridCardHeight != 1 ? this.svgSpreaderTrolleyOffset : this.svgSpreaderTrolleyUnitOffset; this.svgRailsTopOffset = this.gridCardHeight != 1 ? this.svgRailsTopOffset : this.svgRailsTopUnitOffset; this.svgRopesHeight = this.gridCardHeight != 1 ? this.svgRopesCardTwoHeight : this.svgRopesCardOneHeight; this.svgRopesTrolleyOffset = this.gridCardHeight != 1 ? this.svgRopesTrolleyOffset : this.svgRopesTrolleyCardOneHeight; this.states = this.svgPageService.getEnabledRuntimeStatesWithValueProvider(this.config.stateConfig); this.footerCells = this.svgPageService.getEnabledFooterCellsWithValueProvider(this.config.footerConfig.valueCells); this.setupVisualization(); this.setupSoftlandingStackHeight(); var naturalKeys = []; naturalKeys.push.apply(naturalKeys, this.svgPageService.getNaturalKeysOfFooter((this.config.footerConfig))); naturalKeys.push.apply(naturalKeys, this.svgPageService.getNaturalKeysOfTabStates((this.config.stateConfig))); naturalKeys.push.apply(naturalKeys, [this.config.nkHoistLifted, this.config.nkLiftHeight]); this.setNaturalKeys(naturalKeys); }; ConfigurableHoistCardComponent.prototype.ngOnDestroy = function () { if (this.liftHeightSubscription != undefined) this.liftHeightSubscription.unsubscribe(); }; ConfigurableHoistCardComponent.prototype.openCardDetails = function () { this.router.navigate([this.navigationUrl]); }; ConfigurableHoistCardComponent.prototype.updateViewModel = function (liftHeight) { this.updateSvgMetrics(liftHeight); this.changeDetector.detectChanges(); }; ConfigurableHoistCardComponent.prototype.setupSoftlandingStackHeight = function () { var toolbar = this.configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_3__["Const"].AliasToolbar]; var toolbarGauges = toolbar && toolbar.components && toolbar.components.find(function (c) { return c.id === 'toolbar-gauges'; }); if (toolbarGauges && toolbarGauges.components) { if (toolbarGauges.components.find(function (c) { return c.enabled && c.id === 'assistant-system-softlanding-gauge'; })) { var stackHeight = this.svgPageService.getValueProvider("Gbl_Softlanding_Stack_Height"); if (stackHeight) { this.softlandingStackHeight$ = stackHeight.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["mergeMap"])(function (num) { return Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["of"])(Array.from({ length: num }, function (_, i) { return i + 1; })); })); } } } }; ConfigurableHoistCardComponent.prototype.setupVisualization = function () { var _this = this; var liftHeightRange = this.dataPointRangeService.getRange(this.config.nkLiftHeight); this._minPosition = !(liftHeightRange != null) || isNaN(liftHeightRange.min) ? 0 : liftHeightRange.min; this._maxPosition = !(liftHeightRange != null) || isNaN(liftHeightRange.max) ? 0 : liftHeightRange.max; this._absoluteLiftHeight = Math.abs(this._maxPosition - this._minPosition); this._maxFloorNumber = this.configService.craneConfig.craneType === _types_config__WEBPACK_IMPORTED_MODULE_7__["CraneType"].KC ? this.configService.craneConfig.craneMaxContainerStackSize + 1 : this.configService.craneConfig.craneMaxContainerStackSize; this.svgGroundFloorTopOffset = this.cardHeight - this.svgGroundFloorTopShift; this.svgScaleHeight = (this.svgGroundFloorTopOffset - this.svgSpreaderTrolleyOffset) / (this._absoluteLiftHeight); this.svgFloorHeight = app_app_constants__WEBPACK_IMPORTED_MODULE_3__["Const"].HighCubeContainerHeight * this.svgScaleHeight; this.svgFloorElements = []; for (var i = 1; i <= this._maxFloorNumber; i++) { this.svgFloorElements.push(i); } this.hoistLifted = this.svgPageService.getValueProvider(this.config.nkHoistLifted); this.liftHeight = this.svgPageService.getValueProvider(this.config.nkLiftHeight); if (this.liftHeight != undefined) this.liftHeightSubscription = this.liftHeight.subscribe(function (value) { _this.updateViewModel(value); }); }; ConfigurableHoistCardComponent.prototype.updateSvgMetrics = function (liftHeight) { this.floorNr = _utils_floor_util__WEBPACK_IMPORTED_MODULE_12__["FloorUtils"].calcFloorNumber(liftHeight, this._maxFloorNumber, this._minPosition); this.svgContainerGroupTopOffset = this.svgGroundFloorTopOffset - ((liftHeight + -1 * this._minPosition) * this.svgScaleHeight); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('config'), __metadata("design:type", Object) ], ConfigurableHoistCardComponent.prototype, "config", void 0); ConfigurableHoistCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-configurable-hoist-card', template: __webpack_require__(/*! ./configurable-hoist-card.component.html */ "./src/app/components/cards/configurable-hoist-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")], providers: [_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"]] }), __metadata("design:paramtypes", [app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_1__["ColorService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"], _dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"]]) ], ConfigurableHoistCardComponent); return ConfigurableHoistCardComponent; }(_datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_11__["SvgBaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/cards/configurable-svg-card.component.html": /*!***********************************************************************!*\ !*** ./src/app/components/cards/configurable-svg-card.component.html ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n\n \n \n \n \n \n \n \n \n \n Unsupported Control Type!\n \n \n \n
\n \n
" /***/ }), /***/ "./src/app/components/cards/configurable-svg-card.component.ts": /*!*********************************************************************!*\ !*** ./src/app/components/cards/configurable-svg-card.component.ts ***! \*********************************************************************/ /*! exports provided: ConfigurableSvgCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigurableSvgCardComponent", function() { return ConfigurableSvgCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../types/config */ "./src/types/config.ts"); /* harmony import */ var app_models_model_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../datapoints/svg-base-datapoint.component */ "./src/app/components/datapoints/svg-base-datapoint.component.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ConfigurableSvgCardComponent = /** @class */ (function (_super) { __extends(ConfigurableSvgCardComponent, _super); function ConfigurableSvgCardComponent(dataPointService, configService, colorService, changeDetector, dataPointRangeService, router, svgPageService, unitConversionService, unitKeyService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.colorService = colorService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.svgPageService = svgPageService; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this._baseCardWidth = 150; _this._baseCardHeight = 200; _this._extraHeight = 150; _this.components = []; _this.modelStates = app_models_model_state__WEBPACK_IMPORTED_MODULE_8__["ModelStates"]; _this.shapes = []; _this.labels = []; _this.valueContainers = []; _this.ControlType = _types_config__WEBPACK_IMPORTED_MODULE_7__["OperatorControlType"]; return _this; } Object.defineProperty(ConfigurableSvgCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); ConfigurableSvgCardComponent.prototype.ngOnInit = function () { if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_3__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this.cardWidth = this.config.gridConfig.sizex * this._baseCardWidth; this.cardHeight = this.config.gridConfig.sizey * this._baseCardHeight + (this.config.gridConfig.sizey - 1) * this._extraHeight; this.components = this.components.concat(this.config.levelIndicatorControls, this.config.positionIndicatorControls, this.config.shapeControls, this.config.labelControls, this.config.valueContainerControls, this.config.stateTextValueContainerControls).filter(function (x) { return x.enabled == true; }); this.states = this.svgPageService.getEnabledRuntimeStatesWithValueProvider(this.config.stateConfig); this.footerCells = this.svgPageService.getEnabledFooterCellsWithValueProvider(this.config.footerConfig.valueCells); }; ConfigurableSvgCardComponent.prototype.openCardDetails = function () { this.router.navigate([this.navigationUrl]); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('config'), __metadata("design:type", Object) ], ConfigurableSvgCardComponent.prototype, "config", void 0); ConfigurableSvgCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-configurable-svg-card', template: __webpack_require__(/*! ./configurable-svg-card.component.html */ "./src/app/components/cards/configurable-svg-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")], providers: [_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"]], }), __metadata("design:paramtypes", [app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_1__["ColorService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"], _dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_11__["UnitConversionService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_12__["UnitKeyService"]]) ], ConfigurableSvgCardComponent); return ConfigurableSvgCardComponent; }(_datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_10__["SvgBaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/cards/deprecated/hoist-card.component.html": /*!***********************************************************************!*\ !*** ./src/app/components/cards/deprecated/hoist-card.component.html ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
\n
\n \n \n \n \n \n \n \n \n \n {{indicator}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n\n \n
\n" /***/ }), /***/ "./src/app/components/cards/deprecated/hoist-card.component.ts": /*!*********************************************************************!*\ !*** ./src/app/components/cards/deprecated/hoist-card.component.ts ***! \*********************************************************************/ /*! exports provided: HoistCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistCardComponent", function() { return HoistCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_models_deprecated_hoist_mechanical_2m4w_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/deprecated/hoist-mechanical-2m4w.viewmodel */ "./src/app/models/deprecated/hoist-mechanical-2m4w.viewmodel.ts"); /* harmony import */ var app_models_deprecated_hoist_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/models/deprecated/hoist-mechanical-ctk.viewmodel */ "./src/app/models/deprecated/hoist-mechanical-ctk.viewmodel.ts"); /* harmony import */ var app_models_deprecated_hoist_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/models/deprecated/hoist-mechanical-rtg.viewmodel */ "./src/app/models/deprecated/hoist-mechanical-rtg.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var app_utils_floor_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/utils/floor-util */ "./src/app/utils/floor-util.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _base_card_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../base-card.component */ "./src/app/components/cards/base-card.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * @deprecated Use configurable hoist card */ var HoistCardComponent = /** @class */ (function (_super) { __extends(HoistCardComponent, _super); function HoistCardComponent(dataPointService, configService, colorService, changeDetector, dataPointRangeService, router) { var _this = _super.call(this, dataPointService, dataPointRangeService, changeDetector, router) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.colorService = colorService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.modelStates = types_config__WEBPACK_IMPORTED_MODULE_11__["ModelStates"]; _this.SVG_LIFT_RANGE = 390; _this.SVG_CONTAINER_TOP_MARGIN = 110; _this.SVG_CONTAINER_HEIGHT = 66; _this.svgContainerScaleFactor = 1; _this.svgContainerTransformY = 0; _this.svgContainerGroupTopOffset = 0; _this.svgFloorHeight = 66; _this.svgFloorCount = 6; _this.svgFloorElements = []; return _this; } HoistCardComponent.prototype.ngOnInit = function () { if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_6__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } switch (this.configService.craneConfig.hoistType) { case types_config__WEBPACK_IMPORTED_MODULE_11__["HoistType"].M2W4: this.hoistVm = new app_models_deprecated_hoist_mechanical_2m4w_viewmodel__WEBPACK_IMPORTED_MODULE_3__["HoistMechanical2m4wViewModel"](this.configService.craneConfig, types_config__WEBPACK_IMPORTED_MODULE_11__["DisplayValue"].None); break; case types_config__WEBPACK_IMPORTED_MODULE_11__["HoistType"].Spider: this.hoistVm = new app_models_deprecated_hoist_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_5__["HoistMechanicalRtgViewModel"](this.configService.craneConfig, types_config__WEBPACK_IMPORTED_MODULE_11__["DisplayValue"].None, this.configService, this.colorService); break; default: case types_config__WEBPACK_IMPORTED_MODULE_11__["HoistType"].Ctk: this.hoistVm = new app_models_deprecated_hoist_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_4__["HoistMechanicalCtkViewModel"](this.configService.craneConfig, types_config__WEBPACK_IMPORTED_MODULE_11__["DisplayValue"].None); break; } var liftHeightRange = this.dataPointRangeService.getRange(this.hoistVm.getLiftHeightNaturalKey()); this._minPosition = !(liftHeightRange != null) || isNaN(liftHeightRange.min) ? 0 : liftHeightRange.min; this._maxPosition = !(liftHeightRange != null) || isNaN(liftHeightRange.max) ? 0 : liftHeightRange.max; this._absoluteLiftHeight = Math.abs(this._maxPosition - this._minPosition); this._maxFloorNumber = this.configService.craneConfig.craneMaxContainerStackSize; this.svgFloorHeight = this.SVG_LIFT_RANGE / (this._absoluteLiftHeight / app_app_constants__WEBPACK_IMPORTED_MODULE_6__["Const"].HighCubeContainerHeight); this.svgContainerScaleFactor = this.svgFloorHeight / this.SVG_CONTAINER_HEIGHT; this.svgContainerTransformY = this.SVG_CONTAINER_TOP_MARGIN - this.SVG_CONTAINER_TOP_MARGIN * this.svgContainerScaleFactor; this.svgFloorElements = []; for (var i = 1; i <= this._maxFloorNumber; i++) { this.svgFloorElements.push(i); } this.setNaturalKeys(this.hoistVm.naturalKeys); }; HoistCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; HoistCardComponent.prototype.updateViewModel = function () { var _this = this; requestAnimationFrame(function () { _this.hoistVm.updateFromDatapoints(_this.dataPoints); _this.updateSvgMetrics(); }); }; Object.defineProperty(HoistCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); HoistCardComponent.prototype.updateSvgMetrics = function () { this.floorNr = app_utils_floor_util__WEBPACK_IMPORTED_MODULE_10__["FloorUtils"].calcFloorNumber(this.hoistVm.liftHeight, this._maxFloorNumber, this._minPosition); this.svgContainerGroupTopOffset = this.SVG_LIFT_RANGE - this.SVG_LIFT_RANGE * ((this.hoistVm.liftHeight + Math.abs(this._minPosition)) / this._absoluteLiftHeight); }; HoistCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'hoist-card', template: __webpack_require__(/*! ./hoist-card.component.html */ "./src/app/components/cards/deprecated/hoist-card.component.html"), styles: [__webpack_require__(/*! ./../base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")] }), __metadata("design:paramtypes", [app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_7__["ConfigService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_2__["ColorService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_8__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]]) ], HoistCardComponent); return HoistCardComponent; }(_base_card_component__WEBPACK_IMPORTED_MODULE_12__["BaseCardComponent"])); /***/ }), /***/ "./src/app/components/cards/rail-gantry-card.component.html": /*!******************************************************************!*\ !*** ./src/app/components/cards/rail-gantry-card.component.html ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
\n
\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{segment.title}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ gantryVm?.isLockClosed ? 'P' : '\\ue028' }}\n \n \n \n d\n \n \n
\n\n \n
\n" /***/ }), /***/ "./src/app/components/cards/rail-gantry-card.component.ts": /*!****************************************************************!*\ !*** ./src/app/components/cards/rail-gantry-card.component.ts ***! \****************************************************************/ /*! exports provided: RailGantryCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RailGantryCardComponent", function() { return RailGantryCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _cards_base_card_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../cards/base-card.component */ "./src/app/components/cards/base-card.component.ts"); /* harmony import */ var _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../common/common-components/movement-indicator/position-indicator.component */ "./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts"); /* harmony import */ var _models_gantry_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../models/gantry-mechanical-ctk.viewmodel */ "./src/app/models/gantry-mechanical-ctk.viewmodel.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RailGantryCardComponent = /** @class */ (function (_super) { __extends(RailGantryCardComponent, _super); function RailGantryCardComponent(cmsTranslation, unitConversionService, unitKeyService, dataPointService, configService, changeDetector, dataPointRangeService, router, orientationService) { var _this = _super.call(this, dataPointService, dataPointRangeService, changeDetector, router) || this; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this.dataPointService = dataPointService; _this.configService = configService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.orientationService = orientationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_4__["ModelStates"]; _this.indicatorHeight = 24; _this.indicatorWidth = 100; _this.centerOffset = 459; _this.gantryVm = new _models_gantry_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_12__["GantryMechanicalCtkViewModel"](orientationService, _this.configService.craneConfig); _this.posInd = new _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_11__["PositionIndicator"](_this.indicatorWidth, _this.centerOffset, _this.dataPointRangeService.getRange(_models_gantry_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_12__["GantryMechanicalCtkViewModel"].naturalKeyGantryTravelingPosition), _models_gantry_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_12__["GantryMechanicalCtkViewModel"].naturalKeyGantryTravelingPosition); _this.gantryVm.initUnitConversion(_this.unitConversionService, _this.unitKeyService, cmsTranslation); _this.posInd.initUnitConversion(_this.unitConversionService, _this.unitKeyService); return _this; } RailGantryCardComponent.prototype.ngOnInit = function () { var _this = this; if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this._unitSystemChangedSubscription = this.unitConversionService.unitSystemChanged.subscribe(function (unitSystem) { if (unitSystem != null) { _this.gantryVm.unitSystem = unitSystem; _this.posInd.unitSystem = unitSystem; } }); this._orientationChangedSubscription = this.orientationService.orientationChangedSubject() .subscribe(function () { _this.posInd.flipOrientationIndicator = _this.gantryVm.isPositiveDirectionOnRight; }); this.gantryVm.positionRange = this.dataPointRangeService.getRange(this.travelingPositionNk); this.setNaturalKeys(this.gantryVm.naturalKeys); }; RailGantryCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._unitSystemChangedSubscription != null) { this._unitSystemChangedSubscription.unsubscribe(); } if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; RailGantryCardComponent.prototype.updateViewModel = function () { this.gantryVm.updateFromDatapoints(this.dataPoints); this.posInd.position = this.gantryVm.position; }; Object.defineProperty(RailGantryCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); Object.defineProperty(RailGantryCardComponent.prototype, "travelingPositionNk", { get: function () { return _models_gantry_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_12__["GantryMechanicalCtkViewModel"].naturalKeyGantryTravelingPosition; }, enumerable: true, configurable: true }); RailGantryCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'rail-gantry-card', template: __webpack_require__(/*! ./rail-gantry-card.component.html */ "./src/app/components/cards/rail-gantry-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")] }), __metadata("design:paramtypes", [_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_13__["CmsTranslationService"], _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_8__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_9__["UnitKeyService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_5__["ConfigService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__["OrientationService"]]) ], RailGantryCardComponent); return RailGantryCardComponent; }(_cards_base_card_component__WEBPACK_IMPORTED_MODULE_10__["BaseCardComponent"])); /***/ }), /***/ "./src/app/components/cards/rubber-tire-gantry-card.component.html": /*!*************************************************************************!*\ !*** ./src/app/components/cards/rubber-tire-gantry-card.component.html ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
\n
\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{segment.title}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ gantryVm?.isLockClosed ? 'P' : '\\ue028' }}\n \n \n \n d\n \n \n
\n\n \n
\n" /***/ }), /***/ "./src/app/components/cards/rubber-tire-gantry-card.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/cards/rubber-tire-gantry-card.component.ts ***! \***********************************************************************/ /*! exports provided: RubberTireGantryCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RubberTireGantryCardComponent", function() { return RubberTireGantryCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_gantry_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/gantry-mechanical-rtg.viewmodel */ "./src/app/models/gantry-mechanical-rtg.viewmodel.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common/common-components/movement-indicator/position-indicator.component */ "./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts"); /* harmony import */ var _base_card_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./base-card.component */ "./src/app/components/cards/base-card.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RubberTireGantryCardComponent = /** @class */ (function (_super) { __extends(RubberTireGantryCardComponent, _super); function RubberTireGantryCardComponent(cmsTranslation, unitConversionService, unitKeyService, dataPointService, configService, changeDetector, dataPointRangeService, router, orientationService) { var _this = _super.call(this, dataPointService, dataPointRangeService, changeDetector, router) || this; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this.dataPointService = dataPointService; _this.configService = configService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.orientationService = orientationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_5__["ModelStates"]; _this.indicatorHeight = 24; _this.indicatorWidth = 100; _this.centerOffset = 459; _this.gantryVm = new _models_gantry_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_4__["GantryMechanicalRtgViewModel"](orientationService, _this.configService.craneConfig); _this.posInd = new _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_12__["PositionIndicator"](_this.indicatorWidth, _this.centerOffset, _this.dataPointRangeService.getRange(_models_gantry_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_4__["GantryMechanicalRtgViewModel"].naturalKeyGantryTravelingPosition), _models_gantry_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_4__["GantryMechanicalRtgViewModel"].naturalKeyGantryTravelingPosition); _this.gantryVm.initUnitConversion(_this.unitConversionService, _this.unitKeyService, cmsTranslation); _this.posInd.initUnitConversion(_this.unitConversionService, _this.unitKeyService); return _this; } RubberTireGantryCardComponent.prototype.ngOnInit = function () { var _this = this; if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this._unitSystemChangedSubscription = this.unitConversionService.unitSystemChanged.subscribe(function (unitSystem) { if (unitSystem != null) { _this.gantryVm.unitSystem = unitSystem; _this.posInd.unitSystem = unitSystem; } }); this._orientationChangedSubscription = this.orientationService.orientationChangedSubject() .subscribe(function () { _this.posInd.flipOrientationIndicator = _this.gantryVm.isPositiveDirectionOnRight; }); this.gantryVm.positionRange = this.dataPointRangeService.getRange(this.travelingPositionNk); this.setNaturalKeys(this.gantryVm.naturalKeys); }; RubberTireGantryCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._unitSystemChangedSubscription != null) { this._unitSystemChangedSubscription.unsubscribe(); } if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; RubberTireGantryCardComponent.prototype.updateViewModel = function () { this.gantryVm.updateFromDatapoints(this.dataPoints); this.posInd.position = this.gantryVm.position; }; Object.defineProperty(RubberTireGantryCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); Object.defineProperty(RubberTireGantryCardComponent.prototype, "travelingPositionNk", { get: function () { return _models_gantry_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_4__["GantryMechanicalRtgViewModel"].naturalKeyGantryTravelingPosition; }, enumerable: true, configurable: true }); RubberTireGantryCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'rubber-tire-gantry-card', template: __webpack_require__(/*! ./rubber-tire-gantry-card.component.html */ "./src/app/components/cards/rubber-tire-gantry-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")] }), __metadata("design:paramtypes", [_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_6__["CmsTranslationService"], _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_10__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_11__["UnitKeyService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_7__["ConfigService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_8__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__["OrientationService"]]) ], RubberTireGantryCardComponent); return RubberTireGantryCardComponent; }(_base_card_component__WEBPACK_IMPORTED_MODULE_13__["BaseCardComponent"])); /***/ }), /***/ "./src/app/components/cards/slewing-gear-card.component.html": /*!*******************************************************************!*\ !*** ./src/app/components/cards/slewing-gear-card.component.html ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ segment.title }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n y\n \n \n \n \n
\n \n \n
\n" /***/ }), /***/ "./src/app/components/cards/slewing-gear-card.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/cards/slewing-gear-card.component.ts ***! \*****************************************************************/ /*! exports provided: SlewingGearCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlewingGearCardComponent", function() { return SlewingGearCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_slewing_gear_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/slewing-gear-mechanical-ctk.viewmodel */ "./src/app/models/slewing-gear-mechanical-ctk.viewmodel.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _cards_base_card_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cards/base-card.component */ "./src/app/components/cards/base-card.component.ts"); /* harmony import */ var _common_common_components_movement_indicator_rotation_indicator_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common/common-components/movement-indicator/rotation-indicator.component */ "./src/app/components/common/common-components/movement-indicator/rotation-indicator.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SlewingGearCardComponent = /** @class */ (function (_super) { __extends(SlewingGearCardComponent, _super); function SlewingGearCardComponent(unitConversionService, unitKeyService, dataPointService, configService, changeDetector, dataPointRangeService, router, orientationService) { var _this = _super.call(this, dataPointService, dataPointRangeService, changeDetector, router) || this; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this.dataPointService = dataPointService; _this.configService = configService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.orientationService = orientationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this.indicatorWidth = 24; _this.centerOffsetX = 261; _this.centerOffsetY = 100; _this.radius = 183; _this.segmentArcDeg = 20; _this.slewingGearVm = new _models_slewing_gear_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_7__["SlewingGearMechanicalCtkViewModel"](_this.configService.craneConfig, orientationService); _this.rotInd = new _common_common_components_movement_indicator_rotation_indicator_component__WEBPACK_IMPORTED_MODULE_12__["RotationIndicator"](_this.indicatorWidth, _this.centerOffsetX, _this.centerOffsetY, _this.radius, _this.segmentArcDeg, _this.dataPointRangeService.getRange(_models_slewing_gear_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_7__["SlewingGearMechanicalCtkViewModel"].naturalKeySlewingGearTravellingPosition), _models_slewing_gear_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_7__["SlewingGearMechanicalCtkViewModel"].naturalKeySlewingGearTravellingPosition); _this.rotInd.initUnitConversion(_this.unitConversionService, _this.unitKeyService); return _this; } SlewingGearCardComponent.prototype.ngOnInit = function () { var _this = this; if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this._unitSystemChangedSubscription = this.unitConversionService.unitSystemChanged.subscribe(function (unitSystem) { if (unitSystem != null) { _this.rotInd.unitSystem = unitSystem; } }); // in the moment we don't have an orientation setting for slewing gear - so we don't need to subscribe this.rotInd.flipOrientationIndicator = true; this.setNaturalKeys(this.slewingGearVm.naturalKeys); }; SlewingGearCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); this._unitSystemChangedSubscription.unsubscribe(); }; SlewingGearCardComponent.prototype.updateViewModel = function () { this.slewingGearVm.updateFromDatapoints(this.dataPoints); this.rotInd.position = this.slewingGearVm.position; }; Object.defineProperty(SlewingGearCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); SlewingGearCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'slewing-gear-card', template: __webpack_require__(/*! ./slewing-gear-card.component.html */ "./src/app/components/cards/slewing-gear-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")] }), __metadata("design:paramtypes", [app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__["UnitConversionService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__["UnitKeyService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_10__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_9__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__["OrientationService"]]) ], SlewingGearCardComponent); return SlewingGearCardComponent; }(_cards_base_card_component__WEBPACK_IMPORTED_MODULE_11__["BaseCardComponent"])); /***/ }), /***/ "./src/app/components/cards/spreader-card.component.html": /*!***************************************************************!*\ !*** ./src/app/components/cards/spreader-card.component.html ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n P\n\n \n \n {{spreaderVm?.balkenWider ? 'n' : spreaderVm?.balkenSmaller ? 'm' : 'd'}}\n \n\n \n \n {{spreaderVm?.balkenWider ? 'm' : spreaderVm?.balkenSmaller ? 'n' : 'd'}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{segment.title}}\n \n\n \n \n {{endSegment.title}}\n \n \n \n \n
\n\n \n
\n" /***/ }), /***/ "./src/app/components/cards/spreader-card.component.ts": /*!*************************************************************!*\ !*** ./src/app/components/cards/spreader-card.component.ts ***! \*************************************************************/ /*! exports provided: SpreaderCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpreaderCardComponent", function() { return SpreaderCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_spreader_viewmodel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/spreader.viewmodel */ "./src/app/models/spreader.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _cards_base_card_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../cards/base-card.component */ "./src/app/components/cards/base-card.component.ts"); /* harmony import */ var _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../common/common-components/movement-indicator/position-indicator.component */ "./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var SpreaderCardComponent = /** @class */ (function (_super) { __extends(SpreaderCardComponent, _super); function SpreaderCardComponent(configService, unitConversionService, unitKeyService, dataPointService, changeDetector, dataPointRangeService, router, colorService, orientationService) { var _this = _super.call(this, dataPointService, dataPointRangeService, changeDetector, router) || this; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this.dataPointService = dataPointService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.colorService = colorService; _this.orientationService = orientationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this.indicatorHeight = 24; _this.indicatorWidth = 50; _this.centerOffset = 259; _this.positionCellStepValue = 0.25; _this.spreaderVm = new _models_spreader_viewmodel__WEBPACK_IMPORTED_MODULE_7__["SpreaderViewModel"](configService.craneConfig, _this.colorService, orientationService); if (_this.spreaderVm.longshiftOnCard) { _this.posInd = new _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_13__["PositionIndicator"](_this.indicatorWidth, _this.centerOffset, _this.dataPointRangeService.getRange(_models_spreader_viewmodel__WEBPACK_IMPORTED_MODULE_7__["SpreaderViewModel"].naturalKeySpreaderLongshiftPosition), _models_spreader_viewmodel__WEBPACK_IMPORTED_MODULE_7__["SpreaderViewModel"].naturalKeySpreaderLongshiftPosition, _this.positionCellStepValue); _this.posInd.initUnitConversion(_this.unitConversionService, _this.unitKeyService); } return _this; } SpreaderCardComponent.prototype.ngOnInit = function () { var _this = this; if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this._unitSystemChangedSubscription = this.unitConversionService.unitSystemChanged.subscribe(function (unitSystem) { if (unitSystem != null) { if (_this.posInd != null) { _this.posInd.unitSystem = unitSystem; } } }); this._orientationChangedSubscription = this.orientationService.orientationChangedSubject().subscribe(function () { if (_this.posInd != null) { _this.posInd.flipOrientationIndicator = !_this.orientationService.isSpreaderLongshiftForwardRight; } }); this.setNaturalKeys(this.spreaderVm.naturalKeys); }; SpreaderCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._unitSystemChangedSubscription != null) { this._unitSystemChangedSubscription.unsubscribe(); } if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; SpreaderCardComponent.prototype.updateViewModel = function () { this.spreaderVm.updateFromDatapoints(this.dataPoints); if (this.posInd != null) { this.posInd.position = this.spreaderVm.longShiftPosition; } }; Object.defineProperty(SpreaderCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); SpreaderCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'spreader-card', template: __webpack_require__(/*! ./spreader-card.component.html */ "./src/app/components/cards/spreader-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")] }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_9__["ConfigService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__["UnitConversionService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__["UnitKeyService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_11__["DataPointService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_10__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _services_color_service__WEBPACK_IMPORTED_MODULE_8__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__["OrientationService"]]) ], SpreaderCardComponent); return SpreaderCardComponent; }(_cards_base_card_component__WEBPACK_IMPORTED_MODULE_12__["BaseCardComponent"])); /***/ }), /***/ "./src/app/components/cards/traverse-card.component.html": /*!***************************************************************!*\ !*** ./src/app/components/cards/traverse-card.component.html ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n\n \n \n
" /***/ }), /***/ "./src/app/components/cards/traverse-card.component.ts": /*!*************************************************************!*\ !*** ./src/app/components/cards/traverse-card.component.ts ***! \*************************************************************/ /*! exports provided: TraverseCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TraverseCardComponent", function() { return TraverseCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_traverse_viewmodel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/traverse.viewmodel */ "./src/app/models/traverse.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _cards_base_card_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../cards/base-card.component */ "./src/app/components/cards/base-card.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var TraverseCardComponent = /** @class */ (function (_super) { __extends(TraverseCardComponent, _super); function TraverseCardComponent(configService, unitConversionService, unitKeyService, dataPointService, changeDetector, dataPointRangeService, router, colorService, orientationService) { var _this = _super.call(this, dataPointService, dataPointRangeService, changeDetector, router) || this; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this.dataPointService = dataPointService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.colorService = colorService; _this.orientationService = orientationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this.indicatorHeight = 24; _this.indicatorWidth = 50; _this.centerOffset = 259; _this.positionCellStepValue = 0.25; _this.traverseVm = new _models_traverse_viewmodel__WEBPACK_IMPORTED_MODULE_7__["TraverseViewModel"](configService.craneConfig, _this.colorService, orientationService); return _this; } TraverseCardComponent.prototype.ngOnInit = function () { var _this = this; if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this._unitSystemChangedSubscription = this.unitConversionService.unitSystemChanged.subscribe(function (unitSystem) { if (unitSystem != null) { if (_this.posInd != null) { _this.posInd.unitSystem = unitSystem; } } }); this.setNaturalKeys(this.traverseVm.naturalKeys); }; TraverseCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._unitSystemChangedSubscription != null) { this._unitSystemChangedSubscription.unsubscribe(); } if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; TraverseCardComponent.prototype.updateViewModel = function () { this.traverseVm.updateFromDatapoints(this.dataPoints); }; Object.defineProperty(TraverseCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); TraverseCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'traverse-card', template: __webpack_require__(/*! ./traverse-card.component.html */ "./src/app/components/cards/traverse-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")] }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_9__["ConfigService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__["UnitConversionService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__["UnitKeyService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_11__["DataPointService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_10__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _services_color_service__WEBPACK_IMPORTED_MODULE_8__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__["OrientationService"]]) ], TraverseCardComponent); return TraverseCardComponent; }(_cards_base_card_component__WEBPACK_IMPORTED_MODULE_12__["BaseCardComponent"])); /***/ }), /***/ "./src/app/components/cards/trolley-card.component.html": /*!**************************************************************!*\ !*** ./src/app/components/cards/trolley-card.component.html ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{segment.title}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ trolleyVm?.stormBreakState === stormBreakState.Closed ? 'P' : '\\ue028' }}\n \n \n \n d\n \n \n \n\n \n \n \n \n \n \n \n \n
\n\n \n
\n" /***/ }), /***/ "./src/app/components/cards/trolley-card.component.ts": /*!************************************************************!*\ !*** ./src/app/components/cards/trolley-card.component.ts ***! \************************************************************/ /*! exports provided: TrolleyCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyCardComponent", function() { return TrolleyCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/trolley-card.viewmodel */ "./src/app/models/trolley-card.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_trolley_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../models/trolley-mechanical-rtg.viewmodel */ "./src/app/models/trolley-mechanical-rtg.viewmodel.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _cards_base_card_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../cards/base-card.component */ "./src/app/components/cards/base-card.component.ts"); /* harmony import */ var _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../common/common-components/movement-indicator/position-indicator.component */ "./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts"); /* harmony import */ var _models_trolley_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../../models/trolley-mechanical-ctk.viewmodel */ "./src/app/models/trolley-mechanical-ctk.viewmodel.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyCardComponent = /** @class */ (function (_super) { __extends(TrolleyCardComponent, _super); function TrolleyCardComponent(cmsTranslation, unitConversionService, unitKeyService, dataPointService, configService, changeDetector, dataPointRangeService, router, orientationService) { var _this = _super.call(this, dataPointService, dataPointRangeService, changeDetector, router) || this; _this.unitConversionService = unitConversionService; _this.unitKeyService = unitKeyService; _this.dataPointService = dataPointService; _this.configService = configService; _this.changeDetector = changeDetector; _this.dataPointRangeService = dataPointRangeService; _this.router = router; _this.orientationService = orientationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_9__["ModelStates"]; _this.craneTypes = types_config__WEBPACK_IMPORTED_MODULE_8__["CraneType"]; _this.indicatorHeight = 50; _this.indicatorWidth = 24; _this.centerOffset = 100; _this.stormBreakState = app_models_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"]; _this.trolleyMotorState = app_models_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"]; _this.craneType = _this.configService.craneConfig.craneType; switch (_this.configService.craneConfig.craneType) { case types_config__WEBPACK_IMPORTED_MODULE_8__["CraneType"].CTK: _this.trolleyVm = new _models_trolley_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_16__["TrolleyMechanicalCtkViewModel"](orientationService, _this.configService.craneConfig); _this.posInd = new _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_15__["PositionIndicator"](_this.indicatorHeight, _this.centerOffset, _this.dataPointRangeService.getRange(_models_trolley_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_16__["TrolleyMechanicalCtkViewModel"].naturalKeyTrolleyPosition), _models_trolley_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_16__["TrolleyMechanicalCtkViewModel"].naturalKeyTrolleyPosition); break; case types_config__WEBPACK_IMPORTED_MODULE_8__["CraneType"].RTG: _this.trolleyVm = new _models_trolley_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_10__["TrolleyMechanicalRtgViewModel"](orientationService, _this.configService.craneConfig); _this.posInd = new _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_15__["PositionIndicator"](_this.indicatorHeight, _this.centerOffset, _this.dataPointRangeService.getRange(_models_trolley_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_10__["TrolleyMechanicalRtgViewModel"].naturalKeyTrolleyPosition), _models_trolley_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_10__["TrolleyMechanicalRtgViewModel"].naturalKeyTrolleyPosition); break; default: throw new TypeError("Could not find 'TrolleyMechanicalViewModel' for crane type '" + _this.craneType + "'."); } _this.trolleyVm.initUnitConversion(_this.unitConversionService, _this.unitKeyService, cmsTranslation); _this.posInd.initUnitConversion(_this.unitConversionService, _this.unitKeyService); return _this; } TrolleyCardComponent.prototype.ngOnInit = function () { var _this = this; if (this.config.linkTo !== app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].UseExternalLink) { this._navigationUrl = this.config.linkTo; } else { this._navigationUrl = this.config.externalLink; } this._unitSystemChangedSubscription = this.unitConversionService.unitSystemChanged.subscribe(function (unitSystem) { if (unitSystem != null) { _this.trolleyVm.unitSystem = unitSystem; _this.posInd.unitSystem = unitSystem; } }); this._orientationChangedSubscription = this.orientationService.orientationChangedSubject() .subscribe(function () { _this.posInd.flipOrientationIndicator = _this.trolleyVm.isPositiveDirectionOnTop; }); this.trolleyVm.positionRange = this.dataPointRangeService.getRange(this.travelingPositionNk); this.setNaturalKeys(this.trolleyVm.naturalKeys); }; TrolleyCardComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._unitSystemChangedSubscription != null) { this._unitSystemChangedSubscription.unsubscribe(); } if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; TrolleyCardComponent.prototype.updateViewModel = function () { this.trolleyVm.updateFromDatapoints(this.dataPoints); this.posInd.position = this.trolleyVm.position; }; Object.defineProperty(TrolleyCardComponent.prototype, "navigationUrl", { get: function () { return this._navigationUrl; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyCardComponent.prototype, "travelingPositionNk", { get: function () { switch (this.craneType) { case types_config__WEBPACK_IMPORTED_MODULE_8__["CraneType"].CTK: return _models_trolley_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_16__["TrolleyMechanicalCtkViewModel"].naturalKeyTrolleyPosition; case types_config__WEBPACK_IMPORTED_MODULE_8__["CraneType"].RTG: return _models_trolley_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_10__["TrolleyMechanicalRtgViewModel"].naturalKeyTrolleyPosition; default: throw new TypeError("Unsupported crane type '" + this.craneType + "' was requested for 'traveling position' natural key."); } }, enumerable: true, configurable: true }); TrolleyCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley-card', template: __webpack_require__(/*! ./trolley-card.component.html */ "./src/app/components/cards/trolley-card.component.html"), styles: [__webpack_require__(/*! ./base-card.component.scss */ "./src/app/components/cards/base-card.component.scss")] }), __metadata("design:paramtypes", [app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_6__["UnitConversionService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_7__["UnitKeyService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_13__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_11__["ConfigService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_12__["DataPointRangeService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__["OrientationService"]]) ], TrolleyCardComponent); return TrolleyCardComponent; }(_cards_base_card_component__WEBPACK_IMPORTED_MODULE_14__["BaseCardComponent"])); /***/ }), /***/ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.html": /*!**********************************************************************************************************!*\ !*** ./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.html ***! \**********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n

\n  \n {{questionText}}\n

\n
\n {{questionDescription}}\n
\n
\n
\n {{cancelText}}\n {{acceptText}}\n
\n
\n" /***/ }), /***/ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.scss": /*!**********************************************************************************************************!*\ !*** ./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.scss ***! \**********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".confirmationModal {\n bottom: 50% !important;\n width: 30%;\n margin: 0 auto; }\n" /***/ }), /***/ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.ts": /*!********************************************************************************************************!*\ !*** ./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.ts ***! \********************************************************************************************************/ /*! exports provided: ConfirmationResult, ConfirmationModalConfig, ConfirmationModalComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmationResult", function() { return ConfirmationResult; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmationModalConfig", function() { return ConfirmationModalConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmationModalComponent", function() { return ConfirmationModalComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ConfirmationResult; (function (ConfirmationResult) { ConfirmationResult[ConfirmationResult["Cancel"] = 0] = "Cancel"; ConfirmationResult[ConfirmationResult["Accept"] = 1] = "Accept"; })(ConfirmationResult || (ConfirmationResult = {})); var ConfirmationModalConfig = /** @class */ (function () { function ConfirmationModalConfig(title, message, acceptText, cancelText, dismissible, resultHandler) { this.title = title; this.message = message; this.acceptText = acceptText; this.cancelText = cancelText; this.dismissible = dismissible; this.resultHandler = resultHandler; } return ConfirmationModalConfig; }()); var ConfirmationModalComponent = /** @class */ (function () { function ConfirmationModalComponent() { this.onResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } ConfirmationModalComponent.prototype.doCancel = function () { console.debug('Modal has closed with "cancel" result.'); this.onResult.emit({ result: ConfirmationResult.Cancel }); }; ConfirmationModalComponent.prototype.doAccept = function () { console.debug('Modal has closed with "accept" result.'); this.onResult.emit({ result: ConfirmationResult.Accept }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ConfirmationModalComponent.prototype, "questionText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ConfirmationModalComponent.prototype, "questionDescription", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ConfirmationModalComponent.prototype, "acceptText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ConfirmationModalComponent.prototype, "cancelText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ConfirmationModalComponent.prototype, "materializeParams", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ConfirmationModalComponent.prototype, "materializeActions", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], ConfirmationModalComponent.prototype, "onResult", void 0); ConfirmationModalComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'confirmation-modal', template: __webpack_require__(/*! ./confirmation-modal.component.html */ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.html"), styles: [__webpack_require__(/*! ./confirmation-modal.component.scss */ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.scss")] }) ], ConfirmationModalComponent); return ConfirmationModalComponent; }()); /***/ }), /***/ "./src/app/components/common/common-components/movement-indicator/base-movement-indicator.component.ts": /*!*************************************************************************************************************!*\ !*** ./src/app/components/common/common-components/movement-indicator/base-movement-indicator.component.ts ***! \*************************************************************************************************************/ /*! exports provided: BaseMovementIndicator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseMovementIndicator", function() { return BaseMovementIndicator; }); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var BaseMovementIndicator = /** @class */ (function () { function BaseMovementIndicator(indicatorWidth, positionRange, travelingPositionNk, positionCellStepValue) { if (positionCellStepValue === void 0) { positionCellStepValue = 1; } this.indicatorWidth = indicatorWidth; this.positionRange = positionRange; this.travelingPositionNk = travelingPositionNk; this.positionCellStepValue = positionCellStepValue; this._currentUnitSystem = types_config__WEBPACK_IMPORTED_MODULE_0__["UnitSystem"].Metric; this._flipOrientationIndicator = false; this.indicatorSegments = []; } Object.defineProperty(BaseMovementIndicator.prototype, "position", { get: function () { return this._position; }, set: function (value) { this._position = value; this.updatePositionIndicator(); }, enumerable: true, configurable: true }); Object.defineProperty(BaseMovementIndicator.prototype, "flipOrientationIndicator", { get: function () { return this._flipOrientationIndicator; }, set: function (value) { this._flipOrientationIndicator = value; this.updatePositionIndicator(); }, enumerable: true, configurable: true }); Object.defineProperty(BaseMovementIndicator.prototype, "unitSystem", { set: function (value) { this._currentUnitSystem = value; this.updatePositionIndicator(); }, enumerable: true, configurable: true }); BaseMovementIndicator.prototype.initUnitConversion = function (unitConversionService, unitKeyService) { // get the UnitKey for the current naturalkey var unitKey = unitKeyService.keys.Get(this.travelingPositionNk); // get the configuration for this UnitKey (from units.json) if (unitKey != null) { this._unitConfig = unitConversionService.getUnitConfig(unitKey); } this._unitConversionService = unitConversionService; }; BaseMovementIndicator.prototype.indicatorTracker = function (index, segment) { return segment.title; }; Object.defineProperty(BaseMovementIndicator.prototype, "transformOffsetAsX", { get: function () { var indicatorOffset = this.indicatorOffset; return "translate(" + (indicatorOffset != null ? -indicatorOffset : 0) + ", 0)"; }, enumerable: true, configurable: true }); Object.defineProperty(BaseMovementIndicator.prototype, "transformOffsetAsY", { get: function () { var indicatorOffset = this.indicatorOffset; return "translate(0, " + (indicatorOffset != null ? -indicatorOffset : 0) + ")"; }, enumerable: true, configurable: true }); BaseMovementIndicator.prototype.updatePositionIndicator = function () { var _this = this; if (this._unitConfig != null && this._unitConversionService != null) { requestAnimationFrame(function () { var translatedPosition = _this.convertValueToCurrentSystemUnit(_this.position); _this.indicatorOffset = _this.calculateIndicatorOffset(translatedPosition); _this.updatePositionIndicatorSegments(translatedPosition); }); } }; BaseMovementIndicator.prototype.convertValueToCurrentSystemUnit = function (value) { if (this._currentUnitSystem != null && this._unitConfig != null && !isNaN(value)) { var currentUnit = this._currentUnitSystem === types_config__WEBPACK_IMPORTED_MODULE_0__["UnitSystem"].Metric ? this._unitConfig.metricUnit : this._unitConfig.imperialUnit; return this._unitConversionService.convertValue(value, this._unitConfig.siUnit, currentUnit); } return 0; }; BaseMovementIndicator.prototype.getDirectionFactor = function () { return !this.flipOrientationIndicator ? 1 : -1; }; BaseMovementIndicator.prototype.calculateIndicatorOffset = function (translatedPosition) { var directionFactor = this.getDirectionFactor(); return translatedPosition * directionFactor * this.indicatorWidth / this.positionCellStepValueFactor; }; Object.defineProperty(BaseMovementIndicator.prototype, "positionCellStepValueFactor", { get: function () { if (this._currentUnitSystem === types_config__WEBPACK_IMPORTED_MODULE_0__["UnitSystem"].Metric) { return this.positionCellStepValue; } else { return this.positionCellStepValue === 1 ? this.positionCellStepValue * 5 : this.positionCellStepValue * 2; } }, enumerable: true, configurable: true }); BaseMovementIndicator.prototype.roundClosestStep = function (value) { if (value < 0) { return Math.floor(value / this.positionCellStepValueFactor) * this.positionCellStepValueFactor; } else { return Math.ceil(value / this.positionCellStepValueFactor) * this.positionCellStepValueFactor; } }; BaseMovementIndicator.prototype.positionOutOfRange = function (position, min, max) { return position < min || position > max; }; BaseMovementIndicator.prototype.isDark = function (i) { return (Math.floor(i / this.positionCellStepValueFactor) % 2) === 0; }; return BaseMovementIndicator; }()); /***/ }), /***/ "./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts": /*!********************************************************************************************************!*\ !*** ./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts ***! \********************************************************************************************************/ /*! exports provided: PositionIndicator, PositionIndicatorSegmentBase, PositionIndicatorSegment */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PositionIndicator", function() { return PositionIndicator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PositionIndicatorSegmentBase", function() { return PositionIndicatorSegmentBase; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PositionIndicatorSegment", function() { return PositionIndicatorSegment; }); /* harmony import */ var _base_movement_indicator_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base-movement-indicator.component */ "./src/app/components/common/common-components/movement-indicator/base-movement-indicator.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var PositionIndicator = /** @class */ (function (_super) { __extends(PositionIndicator, _super); function PositionIndicator(indicatorWidth, centerOffset, positionRange, travelingPositionNk, positionCellStepValue) { if (positionCellStepValue === void 0) { positionCellStepValue = 1; } var _this = _super.call(this, indicatorWidth, positionRange, travelingPositionNk, positionCellStepValue) || this; _this.indicatorWidth = indicatorWidth; _this.centerOffset = centerOffset; _this.positionRange = positionRange; _this.travelingPositionNk = travelingPositionNk; _this.positionCellStepValue = positionCellStepValue; _this._recentPos = -1; _this._recentOrientation = false; return _this; } PositionIndicator.prototype.updatePositionIndicatorSegments = function (position) { var roundedPos = this.roundClosestStep(position); var flipOrientationIndicator = this.flipOrientationIndicator; if (roundedPos != this._recentPos || flipOrientationIndicator !== this._recentOrientation) { this._recentPos = roundedPos; this._recentOrientation = flipOrientationIndicator; this.indicatorSegments = []; var segmentTickOffset = this.indicatorWidth / 4; var segmentTickWidth = 2; var range = this.calculateIndicatorRange(position); for (var i = range.start; i < range.end; i = i + this.positionCellStepValueFactor) { var segment = new PositionIndicatorSegment(i.toString(), (i / this.positionCellStepValueFactor * this.indicatorWidth), this.isDark(i)); if (!flipOrientationIndicator) { segment.titlePosition += this.centerOffset; segment.backgroundPosition = segment.titlePosition; segment.tick0 = segment.titlePosition - segmentTickWidth / 2; segment.tick25 = segment.tick0 + segmentTickOffset; segment.tick50 = segment.tick25 + segmentTickOffset; segment.tick75 = segment.tick50 + segmentTickOffset; } else { segment.titlePosition *= -1; segment.titlePosition += this.centerOffset; segment.backgroundPosition = segment.titlePosition - this.indicatorWidth; segment.tick0 = segment.titlePosition - segmentTickWidth / 2; segment.tick25 = segment.tick0 - segmentTickOffset; segment.tick50 = segment.tick25 - segmentTickOffset; segment.tick75 = segment.tick50 - segmentTickOffset; } this.indicatorSegments.push(segment); } var endSegmentIndex = range.end; var endSegment = new PositionIndicatorSegmentBase(endSegmentIndex.toString(), (endSegmentIndex / this.positionCellStepValueFactor * this.indicatorWidth)); if (!flipOrientationIndicator) { endSegment.titlePosition += this.centerOffset; endSegment.tick0 = endSegment.titlePosition - segmentTickWidth / 2; } else { endSegment.titlePosition *= -1; endSegment.titlePosition += this.centerOffset; endSegment.tick0 = endSegment.titlePosition - segmentTickWidth / 2; } this.indicatorSegmentsEnd = endSegment; } }; PositionIndicator.prototype.calculateIndicatorRange = function (translatedPosition) { var visibleRange = 6 * this.positionCellStepValueFactor; var positionRange = this.positionRange; if (positionRange != null) { var rangeMin = this.convertValueToCurrentSystemUnit(positionRange.min); var rangeMax = this.convertValueToCurrentSystemUnit(positionRange.max); var isOutOfRange = this.positionOutOfRange(translatedPosition, rangeMin, rangeMax); var rangeStart = isOutOfRange ? this.roundClosestStep(translatedPosition - visibleRange) : Math.max(this.roundClosestStep(rangeMin), this.roundClosestStep(translatedPosition - visibleRange)); var rangeEnd = isOutOfRange ? this.roundClosestStep(translatedPosition + visibleRange) : Math.min(this.roundClosestStep(rangeMax === 0 ? visibleRange : rangeMax), this.roundClosestStep(translatedPosition + visibleRange)); return { start: rangeStart, end: rangeEnd }; } return { start: Number.MIN_SAFE_INTEGER, end: Number.MAX_SAFE_INTEGER }; }; return PositionIndicator; }(_base_movement_indicator_component__WEBPACK_IMPORTED_MODULE_0__["BaseMovementIndicator"])); var PositionIndicatorSegmentBase = /** @class */ (function () { function PositionIndicatorSegmentBase(title, titlePosition) { this.title = title; this.titlePosition = titlePosition; } return PositionIndicatorSegmentBase; }()); var PositionIndicatorSegment = /** @class */ (function (_super) { __extends(PositionIndicatorSegment, _super); function PositionIndicatorSegment(title, titlePosition, isDark) { var _this = _super.call(this, title, titlePosition) || this; _this.title = title; _this.titlePosition = titlePosition; _this.isDark = isDark; return _this; } return PositionIndicatorSegment; }(PositionIndicatorSegmentBase)); /***/ }), /***/ "./src/app/components/common/common-components/movement-indicator/rotation-indicator.component.ts": /*!********************************************************************************************************!*\ !*** ./src/app/components/common/common-components/movement-indicator/rotation-indicator.component.ts ***! \********************************************************************************************************/ /*! exports provided: RotationIndicator, RotationIndicatorSegment */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RotationIndicator", function() { return RotationIndicator; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RotationIndicatorSegment", function() { return RotationIndicatorSegment; }); /* harmony import */ var app_utils_math_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/utils/math.utils */ "./src/app/utils/math.utils.ts"); /* harmony import */ var app_utils_svg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/utils/svg.utils */ "./src/app/utils/svg.utils.ts"); /* harmony import */ var _base_movement_indicator_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base-movement-indicator.component */ "./src/app/components/common/common-components/movement-indicator/base-movement-indicator.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var RotationIndicator = /** @class */ (function (_super) { __extends(RotationIndicator, _super); function RotationIndicator(indicatorWidth, centerOffsetX, centerOffsetY, radius, segmentArcDeg, positionRange, travelingPositionNk) { var _this = _super.call(this, indicatorWidth, positionRange, travelingPositionNk) || this; _this.indicatorWidth = indicatorWidth; _this.centerOffsetX = centerOffsetX; _this.centerOffsetY = centerOffsetY; _this.radius = radius; _this.segmentArcDeg = segmentArcDeg; _this.positionRange = positionRange; _this.travelingPositionNk = travelingPositionNk; _this.segmentArcRad = app_utils_math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].degreeToRadian(segmentArcDeg); return _this; } Object.defineProperty(RotationIndicator.prototype, "transformRotation", { get: function () { var fixedPosition = this.position != null ? app_utils_math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].radianToDegree(this.position) : 0; return "rotate(" + this.getDirectionFactor() * fixedPosition + ")"; }, enumerable: true, configurable: true }); RotationIndicator.prototype.updatePositionIndicatorSegments = function (position) { var segments = this.calculateIndicatorSegmentAmount(); var numberOfSegments = segments.negative + segments.positive; if (numberOfSegments !== this.indicatorSegments.length) { this.indicatorSegments = []; this.updateDeadCycle(segments); var tickAngleOffsetStepDeg = this.segmentArcDeg / 4; var segmentTickStartHeight = this.radius - (this.indicatorWidth / 2); for (var i = -segments.negative; i < segments.positive; ++i) { var preparedTitle = i == -segments.negative ? '' : this.prepareTitle(i); var segment = new RotationIndicatorSegment(preparedTitle, this.centerOffsetX, this.centerOffsetY, this.radius, i, this.segmentArcRad, this.isDark(i)); if (this.isInRange(segment.startAngle, this.positionRange)) { segment.titlePosition = this.prepareTransformation(segment.startAngle, this.centerOffsetX, this.centerOffsetY, this.radius - 4, i * this.segmentArcRad); } var tickAngleOffsetDeg = (180 + i * this.segmentArcDeg) % 360; var tickAngleOffsetRad = app_utils_math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].degreeToRadian(tickAngleOffsetDeg); if (this.isInRange(tickAngleOffsetRad, this.positionRange)) { segment.tick0 = this.prepareTransformation(tickAngleOffsetRad, this.centerOffsetX, this.centerOffsetY, segmentTickStartHeight, tickAngleOffsetRad); } tickAngleOffsetDeg += tickAngleOffsetStepDeg; tickAngleOffsetRad = app_utils_math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].degreeToRadian(tickAngleOffsetDeg); if (this.isInRange(tickAngleOffsetRad, this.positionRange)) { segment.tick25 = this.prepareTransformation(tickAngleOffsetRad, this.centerOffsetX, this.centerOffsetY, segmentTickStartHeight, tickAngleOffsetRad); } tickAngleOffsetDeg += tickAngleOffsetStepDeg; tickAngleOffsetRad = app_utils_math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].degreeToRadian(tickAngleOffsetDeg); if (this.isInRange(tickAngleOffsetRad, this.positionRange)) { segment.tick50 = this.prepareTransformation(tickAngleOffsetRad, this.centerOffsetX, this.centerOffsetY, segmentTickStartHeight, tickAngleOffsetRad); } tickAngleOffsetDeg += tickAngleOffsetStepDeg; tickAngleOffsetRad = app_utils_math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].degreeToRadian(tickAngleOffsetDeg); if (this.isInRange(tickAngleOffsetRad, this.positionRange)) { segment.tick75 = this.prepareTransformation(tickAngleOffsetRad, this.centerOffsetX, this.centerOffsetY, segmentTickStartHeight, tickAngleOffsetRad); } this.indicatorSegments.push(segment); } } }; RotationIndicator.prototype.updateDeadCycle = function (segments) { var centerOffsetX = this.centerOffsetX; var centerOffsetY = this.centerOffsetY; var radius = this.radius; var segmentArcRad = this.segmentArcRad; var positionRange = this.positionRange; this.deadCycleStart = app_utils_svg_utils__WEBPACK_IMPORTED_MODULE_1__["SvgUtils"].describeArc(centerOffsetX, centerOffsetY, radius, -segmentArcRad * segments.negative, positionRange != null ? positionRange.min : 0); this.deadCycleEnd = app_utils_svg_utils__WEBPACK_IMPORTED_MODULE_1__["SvgUtils"].describeArc(centerOffsetX, centerOffsetY, radius, positionRange != null ? positionRange.max : 2 * Math.PI, segmentArcRad * segments.positive); }; RotationIndicator.prototype.calculateIndicatorSegmentAmount = function () { var segmentArcRad = this.segmentArcRad; var positionRange = this.positionRange; if (positionRange != null) { var rangeMin = Math.abs(positionRange.min % (2 * Math.PI)); var numberOfNegativeSegments = Math.ceil(rangeMin / segmentArcRad); var rangeMax = Math.abs(positionRange.max % (2 * Math.PI)); var numberOfPositiveSegments = Math.ceil(rangeMax / segmentArcRad); return { negative: numberOfNegativeSegments, positive: numberOfPositiveSegments }; } return { negative: 0, positive: Math.ceil((2 * Math.PI) / segmentArcRad) }; }; RotationIndicator.prototype.isInRange = function (angleRad, positionRange) { if (positionRange != null) { var adjustedMinAngle = (Math.PI + positionRange.min) % (2 * Math.PI); var adjustedMaxAngle = (Math.PI + positionRange.max) % (2 * Math.PI); if (adjustedMinAngle > adjustedMaxAngle) { adjustedMaxAngle += 2 * Math.PI; if (angleRad < adjustedMinAngle) { angleRad += 2 * Math.PI; } } return adjustedMinAngle < angleRad && angleRad < adjustedMaxAngle; } return true; }; RotationIndicator.prototype.prepareTransformation = function (startAngle, centerX, centerY, radius, rotationAngleRadians) { var position = app_utils_math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].polarToCartesian(centerX, centerY, radius, startAngle, rotationAngleRadians); var positionX = position.x != null ? position.x : 0; var positionY = position.y != null ? position.y : 0; var rotation = position.rotation != null ? position.rotation : 0; return "translate(" + positionX + ", " + positionY + ") rotate(" + rotation + ")"; }; RotationIndicator.prototype.prepareTitle = function (i) { return i * this.segmentArcDeg + "\u00B0"; }; return RotationIndicator; }(_base_movement_indicator_component__WEBPACK_IMPORTED_MODULE_2__["BaseMovementIndicator"])); var RotationIndicatorSegment = /** @class */ (function () { function RotationIndicatorSegment(title, centerX, centerY, radius, factor, segmentArcRad, isDark) { this.title = title; this.isDark = isDark; this.startAngle = (Math.PI + factor * segmentArcRad) % (2 * Math.PI); this.endAngle = this.startAngle + segmentArcRad; this.d = app_utils_svg_utils__WEBPACK_IMPORTED_MODULE_1__["SvgUtils"].describeArc(centerX, centerY, radius, this.startAngle, this.endAngle); } return RotationIndicatorSegment; }()); /***/ }), /***/ "./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.html": /*!******************************************************************************************************************!*\ !*** ./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.html ***! \******************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n" /***/ }), /***/ "./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.scss": /*!******************************************************************************************************************!*\ !*** ./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.scss ***! \******************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.trend-button {\n color: #69727e; }\n .default-theme.trend-button.trending:active, .default-theme.trend-button.trending i {\n color: #ffffff; }\n .default-theme.trend-button:active {\n color: #ffffff; }\n .default-theme.trend-button:hover {\n background-color: #eaebed; }\n .default-theme.trend-button.trending {\n background-color: #00cf78; }\n .default-theme.trend-button.trending:hover {\n background-color: rgba(0, 207, 120, 0.85);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .default-theme.trend-button.trending:active {\n background-color: #00cf78;\n box-shadow: none; }\n .default-theme.trend-button:hover {\n color: #00cf78;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .default-theme.trend-button:active {\n background-color: #00cf78;\n box-shadow: none; }\n .testing-theme.trend-button {\n color: #797979; }\n .testing-theme.trend-button.trending:active, .testing-theme.trend-button.trending i {\n color: #98057e; }\n .testing-theme.trend-button:active {\n color: #98057e; }\n .testing-theme.trend-button:hover {\n background-color: #bdc2c6; }\n .testing-theme.trend-button.trending {\n background-color: #00cf78; }\n .testing-theme.trend-button.trending:hover {\n background-color: rgba(0, 207, 120, 0.85);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .testing-theme.trend-button.trending:active {\n background-color: #00cf78;\n box-shadow: none; }\n .testing-theme.trend-button:hover {\n color: #00cf78;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .testing-theme.trend-button:active {\n background-color: #00cf78;\n box-shadow: none; }\n .trend-button {\n width: 48px;\n height: 48px;\n text-align: center;\n cursor: pointer;\n border-radius: 3px; }\n .trend-button i {\n line-height: 48px; }\n" /***/ }), /***/ "./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.ts": /*!****************************************************************************************************************!*\ !*** ./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.ts ***! \****************************************************************************************************************/ /*! exports provided: QuickviewTrendSwitchComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewTrendSwitchComponent", function() { return QuickviewTrendSwitchComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/quickview/quickview.service */ "./src/app/services/quickview/quickview.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var QuickviewTrendSwitchComponent = /** @class */ (function () { function QuickviewTrendSwitchComponent(_quickviewService) { this._quickviewService = _quickviewService; this.onSelectionChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } Object.defineProperty(QuickviewTrendSwitchComponent.prototype, "trending", { get: function () { return this._quickviewService.isTrended(this.naturalKey); }, enumerable: true, configurable: true }); QuickviewTrendSwitchComponent.prototype.toggle = function () { if (this.trending) { this._quickviewService.untrendQuickwatchItem(this.naturalKey); } else { this._quickviewService.trendQuickwatchItem(this.naturalKey); } this.onSelectionChanged.emit(this.trending); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], QuickviewTrendSwitchComponent.prototype, "naturalKey", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], QuickviewTrendSwitchComponent.prototype, "onSelectionChanged", void 0); QuickviewTrendSwitchComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'quickview-trend-switch', template: __webpack_require__(/*! ./quickview-trend-switch.component.html */ "./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.html"), styles: [__webpack_require__(/*! ./quickview-trend-switch.component.scss */ "./src/app/components/common/common-components/quickview-trend-switch/quickview-trend-switch.component.scss")] }), __metadata("design:paramtypes", [app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_1__["QuickviewService"]]) ], QuickviewTrendSwitchComponent); return QuickviewTrendSwitchComponent; }()); /***/ }), /***/ "./src/app/components/common/common-components/state-progressbar/state-progressbar.component.html": /*!********************************************************************************************************!*\ !*** ./src/app/components/common/common-components/state-progressbar/state-progressbar.component.html ***! \********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
{{title}}
\n \n
\n" /***/ }), /***/ "./src/app/components/common/common-components/state-progressbar/state-progressbar.component.scss": /*!********************************************************************************************************!*\ !*** ./src/app/components/common/common-components/state-progressbar/state-progressbar.component.scss ***! \********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.progressbar .title {\n color: #1561a1; }\n\n.default-theme.progressbar ul.state-progressbar li.passed::before {\n border-color: #1561a1;\n background-color: #1561a1; }\n\n.default-theme.progressbar ul.state-progressbar li.passed.next-passed + :after {\n /* Color of the line after active state */\n background-color: #1561a1; }\n\n.default-theme.progressbar ul.state-progressbar li::before {\n color: #eaebed; }\n\n.default-theme.progressbar ul.state-progressbar li {\n /* Lines between circles */ }\n\n.default-theme.progressbar ul.state-progressbar li::before {\n border: 1px solid #949aa3;\n background-color: #949aa3; }\n\n.default-theme.progressbar ul.state-progressbar li::after {\n background-color: #949aa3; }\n\n.default-theme.progressbar ul.state-progressbar li {\n color: #69727e; }\n\n.testing-theme.progressbar .title {\n color: #cfac1f; }\n\n.testing-theme.progressbar ul.state-progressbar li.passed::before {\n border-color: #cfac1f;\n background-color: #cfac1f; }\n\n.testing-theme.progressbar ul.state-progressbar li.passed.next-passed + :after {\n /* Color of the line after active state */\n background-color: #cfac1f; }\n\n.testing-theme.progressbar ul.state-progressbar li::before {\n color: #bdc2c6; }\n\n.testing-theme.progressbar ul.state-progressbar li {\n /* Lines between circles */ }\n\n.testing-theme.progressbar ul.state-progressbar li::before {\n border: 1px solid #a9cfec;\n background-color: #a9cfec; }\n\n.testing-theme.progressbar ul.state-progressbar li::after {\n background-color: #a9cfec; }\n\n.testing-theme.progressbar ul.state-progressbar li {\n color: #797979; }\n\n.progressbar .title {\n position: relative;\n padding-left: 0.75em;\n font-size: 14px;\n font-weight: bold; }\n\n.progressbar ul.state-progressbar {\n counter-reset: state; }\n\n.progressbar ul.state-progressbar li {\n list-style-type: none;\n float: left;\n position: relative;\n text-align: center;\n padding-top: 2em;\n /* Caption */\n /* Circles */\n /* Lines between circles */ }\n\n.progressbar ul.state-progressbar li span {\n position: absolute;\n width: 100%;\n top: 0;\n left: 0; }\n\n.progressbar ul.state-progressbar li::before {\n content: counter(state);\n counter-increment: state;\n width: 3em;\n height: 3em;\n line-height: 3em;\n border-radius: 50%;\n display: block;\n text-align: center;\n margin: 0 auto 1em auto;\n transition: all ease 0.2s;\n -webkit-transition: all ease 0.2s;\n -moz-transition: all ease 0.2s; }\n\n.progressbar ul.state-progressbar li::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 0.25em;\n top: 3.5em;\n left: -50%;\n z-index: -1;\n transition: all ease 0.8s;\n -webkit-transition: all ease 0.8s;\n -moz-transition: all ease 0.8s; }\n\n.progressbar ul.state-progressbar li:first-child::after {\n content: none; }\n" /***/ }), /***/ "./src/app/components/common/common-components/state-progressbar/state-progressbar.component.ts": /*!******************************************************************************************************!*\ !*** ./src/app/components/common/common-components/state-progressbar/state-progressbar.component.ts ***! \******************************************************************************************************/ /*! exports provided: StateProgressbarComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StateProgressbarComponent", function() { return StateProgressbarComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var StateProgressbarComponent = /** @class */ (function () { function StateProgressbarComponent() { } StateProgressbarComponent.prototype.ngOnInit = function () { }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], StateProgressbarComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('states'), __metadata("design:type", Array) ], StateProgressbarComponent.prototype, "states", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('passedState'), __metadata("design:type", Number) ], StateProgressbarComponent.prototype, "passedState", void 0); StateProgressbarComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'state-progressbar', template: __webpack_require__(/*! ./state-progressbar.component.html */ "./src/app/components/common/common-components/state-progressbar/state-progressbar.component.html"), styles: [__webpack_require__(/*! ./state-progressbar.component.scss */ "./src/app/components/common/common-components/state-progressbar/state-progressbar.component.scss")] }), __metadata("design:paramtypes", []) ], StateProgressbarComponent); return StateProgressbarComponent; }()); /***/ }), /***/ "./src/app/components/common/common-components/value-box/value-box.component.html": /*!****************************************************************************************!*\ !*** ./src/app/components/common/common-components/value-box/value-box.component.html ***! \****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
{{title}}
\n\n
\n
\n
\n \n
\n
{{naturalKeyValue == '' ? value : naturalKeyValue}}
\n
{{subtitle}}
\n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/common/common-components/value-box/value-box.component.scss": /*!****************************************************************************************!*\ !*** ./src/app/components/common/common-components/value-box/value-box.component.scss ***! \****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.value-box-container .title {\n color: #1561a1; }\n\n.default-theme.value-box-container .value-area {\n background-color: #ffffff; }\n\n.default-theme.value-box-container .control-column .value-area.read-only {\n border: solid 1px #d4d7da; }\n\n.default-theme.value-box-container .control-column .value-area.active {\n background-color: #00cf78; }\n\n.default-theme.value-box-container .control-column .value-area.warning {\n background-color: #ffa80f; }\n\n.default-theme.value-box-container .control-column .value-area.alert {\n background-color: #f11d40; }\n\n.testing-theme.value-box-container .title {\n color: #cfac1f; }\n\n.testing-theme.value-box-container .value-area {\n background-color: #ffffff; }\n\n.testing-theme.value-box-container .control-column .value-area.read-only {\n border: solid 1px #b0c3d2; }\n\n.testing-theme.value-box-container .control-column .value-area.active {\n background-color: #00cf78; }\n\n.testing-theme.value-box-container .control-column .value-area.warning {\n background-color: #ffa80f; }\n\n.testing-theme.value-box-container .control-column .value-area.alert {\n background-color: #f11d40; }\n\n.value-box-container {\n width: 100%;\n min-height: 96px;\n position: relative;\n float: left; }\n\n.value-box-container .control-column {\n max-width: 100%;\n left: 0;\n right: 0;\n position: absolute; }\n\n.value-box-container .control-column .title {\n font-weight: bold;\n text-overflow: ellipsis;\n margin-bottom: 10px;\n min-height: 16px; }\n\n.value-box-container .control-column .value-area {\n width: 100%;\n min-height: 64px;\n border-radius: 4px;\n position: relative;\n cursor: pointer;\n pointer-events: all;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.value-box-container .control-column .value-area:hover {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n\n.value-box-container .control-column .value-area:active {\n box-shadow: none; }\n\n.value-box-container .control-column .value-area.read-only {\n cursor: default;\n pointer-events: none;\n box-shadow: none; }\n\n.value-box-container .control-column .value-area.pulse {\n z-index: 1; }\n\n.value-box-container .control-column .value-area .value-area-container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n\n.value-box-container .control-column .value-area .value-area-container .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n\n.value-box-container .control-column .value-area .value-area-container .icon-column i {\n top: 16px;\n left: 8px;\n position: absolute;\n text-align: center;\n font-size: 32px; }\n\n.value-box-container .control-column .value-area .value-area-container .text {\n position: absolute;\n text-align: center !important;\n left: 0;\n right: 0;\n top: 14px !important;\n width: 100% !important;\n font-size: 18px;\n white-space: nowrap; }\n\n.value-box-container .control-column .value-area .value-area-container .text.no-subtitle {\n top: 20px !important; }\n\n.value-box-container .control-column .value-area .value-area-container .subtitle {\n position: absolute;\n text-align: center !important;\n left: 0;\n right: 0;\n top: 38px !important;\n width: 100% !important;\n font-size: 12px;\n word-break: break-word; }\n" /***/ }), /***/ "./src/app/components/common/common-components/value-box/value-box.component.ts": /*!**************************************************************************************!*\ !*** ./src/app/components/common/common-components/value-box/value-box.component.ts ***! \**************************************************************************************/ /*! exports provided: ValueBoxComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueBoxComponent", function() { return ValueBoxComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ValueBoxComponent = /** @class */ (function (_super) { __extends(ValueBoxComponent, _super); function ValueBoxComponent(dataPointService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.readonly = true; _this.naturalKeyValue = ''; return _this; } ValueBoxComponent.prototype.ngOnInit = function () { var naturalKeys = []; if (this.naturalKeyRead != undefined) { naturalKeys.push(this.naturalKeyRead); this.setNaturalKeys(naturalKeys); } }; ValueBoxComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; ValueBoxComponent.prototype.onValueChanged = function (naturalKey, data) { this.naturalKeyValue = data; }; Object.defineProperty(ValueBoxComponent.prototype, "isTitleVisible", { get: function () { return this.title != null; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('nk-read'), __metadata("design:type", String) ], ValueBoxComponent.prototype, "naturalKeyRead", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ValueBoxComponent.prototype, "value", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ValueBoxComponent.prototype, "subtitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ValueBoxComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ValueBoxComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ValueBoxComponent.prototype, "readonly", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ValueBoxComponent.prototype, "alert", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ValueBoxComponent.prototype, "active", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ValueBoxComponent.prototype, "warning", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ValueBoxComponent.prototype, "pulse", void 0); ValueBoxComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'value-box', template: __webpack_require__(/*! ./value-box.component.html */ "./src/app/components/common/common-components/value-box/value-box.component.html"), styles: [__webpack_require__(/*! ./value-box.component.scss */ "./src/app/components/common/common-components/value-box/value-box.component.scss")], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_1__["DataPointService"]]) ], ValueBoxComponent); return ValueBoxComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_2__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/common/common-components/view-footer/view-footer.component.html": /*!********************************************************************************************!*\ !*** ./src/app/components/common/common-components/view-footer/view-footer.component.html ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
0\">\n
\n
\n

{{ title }}

\n
\n
\n initialization_failed\n
\n
\n {{ subtitle }}\n
\n
\n
\n
\n
\n

{{ valueCell_1.value }}

\n

\n {{ valueCell_1.value | unitsystemconvert:valueCell_1.naturalKey:lang }}\n  {{ valueCell_1.naturalKey | unitsystemunit }}\n

\n
{{ valueCell_1.description }}
\n
\n
\n
\n
\n

{{ valueCell_2.value }}

\n

\n {{ valueCell_2.value | unitsystemconvert:valueCell_2.naturalKey:lang }}\n  {{ valueCell_2.naturalKey | unitsystemunit }}\n

\n
{{ valueCell_2.description }}
\n
\n
\n
\n
\n

{{ valueCell_3.value }}

\n

\n {{ valueCell_3.value | unitsystemconvert:valueCell_3.naturalKey:lang }}\n  {{ valueCell_3.naturalKey | unitsystemunit }}\n

\n
{{ valueCell_3.description }}
\n
\n
\n\n 0\" [missingNks]=\"missingNks\">\n
\n
" /***/ }), /***/ "./src/app/components/common/common-components/view-footer/view-footer.component.scss": /*!********************************************************************************************!*\ !*** ./src/app/components/common/common-components/view-footer/view-footer.component.scss ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host .default-theme.cell-container {\n background-color: #ffffff; }\n\n:host.detail-view-footer .default-theme {\n background-color: #ffffff; }\n\n:host .default-theme.cell-container .title-cell h5.ok {\n color: #1561a1 !important; }\n\n:host .default-theme.cell-container .title-cell h3 {\n color: #293647; }\n\n:host .default-theme.cell-container .title-cell h5 {\n color: #293647; }\n\n:host .default-theme.cell-container .value-cell .value-area h3 {\n color: #293647; }\n\n:host .default-theme.cell-container .title-cell h3 ~ h5 {\n color: #69727e; }\n\n:host .default-theme.cell-container .value-cell .value-area h5, :host .default-theme.cell-container .value-cell .value-area h3 > span ~ span {\n color: #69727e; }\n\n:host .default-theme.cell-container .title-cell h5.warning, :host .default-theme.cell-container .title-cell h5.speed-limit {\n color: #ffa80f !important; }\n\n:host.detail-view-footer .default-theme.cell-container .value-cell .value-area.warning h3, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.warning h3 > span ~ span, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.warning h5, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.speed-limit h3, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.speed-limit h3 > span ~ span, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.speed-limit h5 {\n color: #ffa80f !important; }\n\n:host .default-theme.cell-container .title-cell h5.error, :host .default-theme.cell-container .title-cell h5.interlock {\n color: #f11d40 !important; }\n\n:host.detail-view-footer .default-theme.cell-container .value-cell .value-area.error h3, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.error h3 > span ~ span, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.error h5, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.interlock h3, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.interlock h3 > span ~ span, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.interlock h5 {\n color: #f11d40 !important; }\n\n:host .testing-theme.cell-container {\n background-color: #98057e; }\n\n:host.detail-view-footer .testing-theme {\n background-color: #98057e; }\n\n:host .testing-theme.cell-container .title-cell h5.ok {\n color: #cfac1f !important; }\n\n:host .testing-theme.cell-container .title-cell h3 {\n color: #525252; }\n\n:host .testing-theme.cell-container .title-cell h5 {\n color: #525252; }\n\n:host .testing-theme.cell-container .value-cell .value-area h3 {\n color: #525252; }\n\n:host .testing-theme.cell-container .title-cell h3 ~ h5 {\n color: #797979; }\n\n:host .testing-theme.cell-container .value-cell .value-area h5, :host .testing-theme.cell-container .value-cell .value-area h3 > span ~ span {\n color: #797979; }\n\n:host .testing-theme.cell-container .title-cell h5.warning, :host .testing-theme.cell-container .title-cell h5.speed-limit {\n color: #ffa80f !important; }\n\n:host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.warning h3, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.warning h3 > span ~ span, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.warning h5, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.speed-limit h3, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.speed-limit h3 > span ~ span, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.speed-limit h5 {\n color: #ffa80f !important; }\n\n:host .testing-theme.cell-container .title-cell h5.error, :host .testing-theme.cell-container .title-cell h5.interlock {\n color: #f11d40 !important; }\n\n:host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.error h3, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.error h3 > span ~ span, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.error h5, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.interlock h3, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.interlock h3 > span ~ span, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.interlock h5 {\n color: #f11d40 !important; }\n\n:host {\n display: block; }\n\n:host.card-footer {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 90px; }\n\n:host.card-footer .cell-container {\n height: 90px; }\n\n:host.card-footer .cell-container .title-cell > h5 span {\n line-height: 1.1rem !important; }\n\n:host.detail-view-footer {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n height: 74px; }\n\n:host.detail-view-footer .cell-container {\n height: 74px; }\n\n:host.detail-view-footer .with-missing-datapoints-info > .cell-container {\n margin-right: 0 !important; }\n\n.cell-container {\n display: table;\n margin-left: 20px;\n margin-right: 20px; }\n\n.cell-container .title-cell, .cell-container .value-cell, .cell-container .missing-dp-cell {\n display: table-cell;\n vertical-align: middle; }\n\n.cell-container .title-cell h3, .cell-container .title-cell h5, .cell-container .value-cell h3, .cell-container .value-cell h5, .cell-container .missing-dp-cell h3, .cell-container .missing-dp-cell h5 {\n margin: 0;\n white-space: nowrap; }\n\n.cell-container .title-cell h5, .cell-container .value-cell h5, .cell-container .missing-dp-cell h5 {\n font-size: 1.5rem;\n height: 1.5rem; }\n\n.cell-container .title-cell h3 ~ h5, .cell-container .value-cell h3 ~ h5, .cell-container .missing-dp-cell h3 ~ h5 {\n margin-top: 0.5rem;\n font-size: 1rem;\n height: 1rem; }\n\n.cell-container .title-cell {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis; }\n\n.cell-container .title-cell h5 {\n position: relative;\n display: block;\n height: 2rem; }\n\n.cell-container .title-cell h5 span {\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 2rem;\n line-height: 2rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n\n.cell-container .value-cell:last-of-type {\n padding-right: 0 !important; }\n\n.cell-container .value-cell {\n padding: 0 0.5rem;\n text-align: center; }\n\n.cell-container .value-cell .value-area {\n display: block;\n min-width: 5em; }\n" /***/ }), /***/ "./src/app/components/common/common-components/view-footer/view-footer.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/common/common-components/view-footer/view-footer.component.ts ***! \******************************************************************************************/ /*! exports provided: ViewFooterValue, ViewFooterComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewFooterValue", function() { return ViewFooterValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewFooterComponent", function() { return ViewFooterComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_models_model_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var app_models_state_indication_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/state-indication.enum */ "./src/app/models/state-indication.enum.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ViewFooterValue = /** @class */ (function () { function ViewFooterValue() { } return ViewFooterValue; }()); var ViewFooterComponent = /** @class */ (function () { function ViewFooterComponent(_cmsTranslationService) { this._cmsTranslationService = _cmsTranslationService; this.missingNks = []; this.modelStates = app_models_model_state__WEBPACK_IMPORTED_MODULE_1__["ModelStates"]; this.runtimeStates = app_models_state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"]; } Object.defineProperty(ViewFooterComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ViewFooterComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ViewFooterComponent.prototype, "subtitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], ViewFooterComponent.prototype, "startState", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], ViewFooterComponent.prototype, "runtimeState", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", ViewFooterValue) ], ViewFooterComponent.prototype, "valueCell_1", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", ViewFooterValue) ], ViewFooterComponent.prototype, "valueCell_2", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", ViewFooterValue) ], ViewFooterComponent.prototype, "valueCell_3", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], ViewFooterComponent.prototype, "missingNks", void 0); ViewFooterComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'view-footer', template: __webpack_require__(/*! ./view-footer.component.html */ "./src/app/components/common/common-components/view-footer/view-footer.component.html"), styles: [__webpack_require__(/*! ./view-footer.component.scss */ "./src/app/components/common/common-components/view-footer/view-footer.component.scss")] }), __metadata("design:paramtypes", [app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], ViewFooterComponent); return ViewFooterComponent; }()); /***/ }), /***/ "./src/app/components/common/detail-page.component.html": /*!**************************************************************!*\ !*** ./src/app/components/common/detail-page.component.html ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n
\n
\n" /***/ }), /***/ "./src/app/components/common/detail-page.component.scss": /*!**************************************************************!*\ !*** ./src/app/components/common/detail-page.component.scss ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".detail-page {\n margin-top: 0;\n padding-left: 0;\n padding-right: 0;\n transition: padding-right 0.3s ease-in-out;\n display: block; }\n .detail-page.pinned-quickview {\n padding-right: 425px;\n transition: padding-right 0.3s ease-in-out; }\n" /***/ }), /***/ "./src/app/components/common/detail-page.component.ts": /*!************************************************************!*\ !*** ./src/app/components/common/detail-page.component.ts ***! \************************************************************/ /*! exports provided: DetailPageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailPageComponent", function() { return DetailPageComponent; }); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../toolbar/toolbar.component */ "./src/app/components/toolbar/toolbar.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var DetailPageComponent = /** @class */ (function () { function DetailPageComponent(_authService, _viewService, configService) { this._authService = _authService; this._viewService = _viewService; this.hasToolbarGauges = _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_4__["ToolbarComponent"].hasGauges(configService.craneConfig); } Object.defineProperty(DetailPageComponent.prototype, "isQuickviewPinned", { get: function () { return this._viewService.quickviewPinned; }, enumerable: true, configurable: true }); DetailPageComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'detail-page', template: __webpack_require__(/*! ./detail-page.component.html */ "./src/app/components/common/detail-page.component.html"), styles: [__webpack_require__(/*! ./detail-page.component.scss */ "./src/app/components/common/detail-page.component.scss")] }), __metadata("design:paramtypes", [_services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"], _services_view_service__WEBPACK_IMPORTED_MODULE_2__["ViewService"], _services_config_service__WEBPACK_IMPORTED_MODULE_0__["ConfigService"]]) ], DetailPageComponent); return DetailPageComponent; }()); /***/ }), /***/ "./src/app/components/common/detail-router-page.component.html": /*!*********************************************************************!*\ !*** ./src/app/components/common/detail-router-page.component.html ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n
\n \n
\n
\n
\n" /***/ }), /***/ "./src/app/components/common/detail-router-page.component.ts": /*!*******************************************************************!*\ !*** ./src/app/components/common/detail-router-page.component.ts ***! \*******************************************************************/ /*! exports provided: DetailRouterPageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailRouterPageComponent", function() { return DetailRouterPageComponent; }); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../toolbar/toolbar.component */ "./src/app/components/toolbar/toolbar.component.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var DetailRouterPageComponent = /** @class */ (function () { function DetailRouterPageComponent(_authService, _viewService, _router, _activatedRoute, _location, configService) { this._authService = _authService; this._viewService = _viewService; this._router = _router; this._activatedRoute = _activatedRoute; this._location = _location; this._resizeTimeout = 300; this.activeTabIndex = 0; this.hasToolbarGauges = _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_6__["ToolbarComponent"].hasGauges(configService.craneConfig); } Object.defineProperty(DetailRouterPageComponent.prototype, "isQuickviewPinned", { get: function () { return this._viewService.quickviewPinned; }, enumerable: true, configurable: true }); DetailRouterPageComponent.prototype.routeTo = function (tabIndex) { this.activeTabIndex = tabIndex; var route = this.tabRoutes[tabIndex]; this._router.navigate([route], { relativeTo: this._activatedRoute }); }; DetailRouterPageComponent.prototype.ngOnInit = function () { var _this = this; // detect route-changes to sync with currently selected tab-page this._routeChangeSubscription = this._router.events .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(function (event) { return event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_3__["NavigationStart"]; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function (event) { return event; })) .subscribe(function (event) { _this.syncSelectedTab(event.url); // when navigating to the initial-route, without config-Id-parameter (using the browsers BACK - Button) // we redirect the user to the previous route if (event.url === _this._exitRoute) { _this._location.back(); } }); // on detail views containing the detail-router-page component // only routes containing an id (e.g. /spreader/id) are valid // routes without id (e.g. /spreader) are not valid // - and therefore jumped over when navigating backwards var url = this._router.url; this._exitRoute = url.lastIndexOf('/') > 0 ? url.substring(0, url.lastIndexOf('/')) : url; // select previously selected tab on init if (this.tabRoutes) { this.syncSelectedTab(this._router.url); } }; DetailRouterPageComponent.prototype.ngOnDestroy = function () { if (this._routeChangeSubscription) { this._routeChangeSubscription.unsubscribe(); } if (this._quickViewPinnedSubscription) { this._quickViewPinnedSubscription.unsubscribe(); } }; DetailRouterPageComponent.prototype.syncSelectedTab = function (route) { var _this = this; if (!this.tabRoutes) { return; } var tabIndex = this.tabRoutes.findIndex(function (r) { return r === route; }); if (tabIndex >= 0) { this.activeTabIndex = tabIndex; setTimeout(function () { _this.tabSelectionParams = ['select_tab', 'tab' + tabIndex]; }); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('tab-pages'), __metadata("design:type", Array) ], DetailRouterPageComponent.prototype, "tabPages", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('tab-routes'), __metadata("design:type", Array) ], DetailRouterPageComponent.prototype, "tabRoutes", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('container-frame'), __metadata("design:type", Boolean) ], DetailRouterPageComponent.prototype, "useContainerFrame", void 0); DetailRouterPageComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'detail-router-page', template: __webpack_require__(/*! ./detail-router-page.component.html */ "./src/app/components/common/detail-router-page.component.html"), styles: [__webpack_require__(/*! ./detail-tab-page.component.scss */ "./src/app/components/common/detail-tab-page.component.scss")] }), __metadata("design:paramtypes", [_services_auth_service__WEBPACK_IMPORTED_MODULE_0__["AuthService"], _services_view_service__WEBPACK_IMPORTED_MODULE_2__["ViewService"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["Location"], app_services_config_service__WEBPACK_IMPORTED_MODULE_7__["ConfigService"]]) ], DetailRouterPageComponent); return DetailRouterPageComponent; }()); /***/ }), /***/ "./src/app/components/common/detail-router-svg-page.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/common/detail-router-svg-page.component.ts ***! \***********************************************************************/ /*! exports provided: DetailRouterSvgPageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailRouterSvgPageComponent", function() { return DetailRouterSvgPageComponent; }); var DetailRouterSvgPageComponent = /** @class */ (function () { function DetailRouterSvgPageComponent(viewService, router, activatedRoute, _pageTitle) { this.viewService = viewService; this.router = router; this.activatedRoute = activatedRoute; this._pageTitle = _pageTitle; } DetailRouterSvgPageComponent.prototype.ngOnInit = function () { this.viewService.setToolbarTitle(this._pageTitle); this.viewService.setFooterMargin(true); this.initializeTabs(); }; DetailRouterSvgPageComponent.prototype.initializeTabs = function () { // overwrite if dynamically loading tabs this.routeToDefaultTab(); }; DetailRouterSvgPageComponent.prototype.ngOnDestroy = function () { this.viewService.setFooterMargin(false); }; DetailRouterSvgPageComponent.prototype.routeToDefaultTab = function () { var _this = this; var tabIndex = this.tabRoutes.findIndex(function (r) { return r === _this.router.url; }); this.router.navigate(["" + this.tabRoutes[tabIndex >= 0 ? tabIndex : 0]], { relativeTo: this.activatedRoute }); }; return DetailRouterSvgPageComponent; }()); /***/ }), /***/ "./src/app/components/common/detail-tab-page.component.html": /*!******************************************************************!*\ !*** ./src/app/components/common/detail-tab-page.component.html ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n \n
\n
" /***/ }), /***/ "./src/app/components/common/detail-tab-page.component.scss": /*!******************************************************************!*\ !*** ./src/app/components/common/detail-tab-page.component.scss ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".detail-tab-page {\n margin-top: 0;\n transition: padding-right 0.3s ease-in-out;\n display: block; }\n .detail-tab-page.pinned-quickview {\n padding-right: 425px;\n transition: padding-right 0.3s ease-in-out; }\n .detail-tab-page .tabs.main {\n height: 56px; }\n .detail-tab-page .tabs.main .tab {\n height: 56px;\n line-height: 58px; }\n .detail-tab-page .tabs-content {\n display: inline-flex; }\n .detail-tab-page .scrolling-wrapper {\n overflow-y: scroll; }\n" /***/ }), /***/ "./src/app/components/common/detail-tab-page.component.ts": /*!****************************************************************!*\ !*** ./src/app/components/common/detail-tab-page.component.ts ***! \****************************************************************/ /*! exports provided: DetailTabPageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DetailTabPageComponent", function() { return DetailTabPageComponent; }); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../toolbar/toolbar.component */ "./src/app/components/toolbar/toolbar.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DetailTabPageComponent = /** @class */ (function () { function DetailTabPageComponent(configService, _location, _viewService) { this.configService = configService; this._location = _location; this._viewService = _viewService; this._resizeTimeout = 600; this.tabsActions = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); this.hasToolbarGauges = _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_5__["ToolbarComponent"].hasGauges(configService.craneConfig); } Object.defineProperty(DetailTabPageComponent.prototype, "isQuickviewPinned", { get: function () { return this._viewService.quickviewPinned; }, enumerable: true, configurable: true }); DetailTabPageComponent.prototype.ngOnInit = function () { var _this = this; this._quickviewPinSubscription = this._viewService.isQuickviewPinned.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(this._resizeTimeout)).subscribe(function () { // .tabs() has to be called on the native tab-control element // in order to resize the active- tab - indicator properly // after resize-animation due to quickview-pin/unpinning is done _this.tabsActions.emit({ action: 'tabs', params: [{ onShow: function (tab) { console.debug('Init window resize (onShow() function of a tab was triggered). '); setTimeout(function () { window.dispatchEvent(new Event('resize')); }, this._resizeTimeout); } }] }); }); if (this._viewService.isQuickviewPinned) { // Handle resize issue, when we switch to tabbed view, // when the quickview was already pinned before. setTimeout(function () { window.dispatchEvent(new Event('resize')); }, this._resizeTimeout); } }; DetailTabPageComponent.prototype.ngOnDestroy = function () { this._quickviewPinSubscription.unsubscribe(); }; DetailTabPageComponent.prototype.changeLastLocationPart = function (tabAlias) { var currentRoute = this._location.path(false); var routeBase = []; if (currentRoute != null) { var routeParts = currentRoute.split('/'); if (routeParts != null) { routeBase.push.apply(routeBase, routeParts); routeBase.pop(); } } routeBase.push(tabAlias); var newLocation = routeBase.join('/'); this._location.go(newLocation); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", Boolean) ], DetailTabPageComponent.prototype, "isStandalonePage", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", Object) ], DetailTabPageComponent.prototype, "activeTabAlias", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", Array) ], DetailTabPageComponent.prototype, "tabsMetadata", void 0); DetailTabPageComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'detail-tab-page', template: __webpack_require__(/*! ./detail-tab-page.component.html */ "./src/app/components/common/detail-tab-page.component.html"), styles: [__webpack_require__(/*! ./detail-tab-page.component.scss */ "./src/app/components/common/detail-tab-page.component.scss")] }), __metadata("design:paramtypes", [app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"], _angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"], _services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"]]) ], DetailTabPageComponent); return DetailTabPageComponent; }()); /***/ }), /***/ "./src/app/components/common/quickview-switch.component.html": /*!*******************************************************************!*\ !*** ./src/app/components/common/quickview-switch.component.html ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n
\n \n
\n" /***/ }), /***/ "./src/app/components/common/quickview-switch.component.scss": /*!*******************************************************************!*\ !*** ./src/app/components/common/quickview-switch.component.scss ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.switch-eye label.watching:active, .default-theme.switch-eye label.watching i {\n color: #ffffff; }\n\n.default-theme.switch-eye label:active {\n color: #ffffff; }\n\n.default-theme.switch-eye label.watching {\n background-color: #1561a1; }\n\n.default-theme.switch-eye label.watching:hover {\n background-color: rgba(21, 97, 161, 0.85);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.default-theme.switch-eye label.watching:active {\n background-color: #1561a1;\n box-shadow: none; }\n\n.default-theme.switch-eye label:hover {\n color: #1561a1;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.default-theme.switch-eye label:active {\n background-color: #1561a1;\n box-shadow: none; }\n\n.default-theme.switch-eye label:hover {\n background-color: #eaebed; }\n\n.default-theme.switch-eye label {\n color: #69727e; }\n\n.testing-theme.switch-eye label.watching:active, .testing-theme.switch-eye label.watching i {\n color: #98057e; }\n\n.testing-theme.switch-eye label:active {\n color: #98057e; }\n\n.testing-theme.switch-eye label.watching {\n background-color: #cfac1f; }\n\n.testing-theme.switch-eye label.watching:hover {\n background-color: rgba(207, 172, 31, 0.85);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.testing-theme.switch-eye label.watching:active {\n background-color: #cfac1f;\n box-shadow: none; }\n\n.testing-theme.switch-eye label:hover {\n color: #cfac1f;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.testing-theme.switch-eye label:active {\n background-color: #cfac1f;\n box-shadow: none; }\n\n.testing-theme.switch-eye label:hover {\n background-color: #bdc2c6; }\n\n.testing-theme.switch-eye label {\n color: #797979; }\n\n.switch-eye {\n text-align: right; }\n\n.switch-eye label {\n display: inline-block;\n width: 48px;\n height: 48px;\n text-align: center;\n cursor: pointer;\n border-radius: 3px; }\n\n.switch-eye label i {\n line-height: 48px; }\n" /***/ }), /***/ "./src/app/components/common/quickview-switch.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/common/quickview-switch.component.ts ***! \*****************************************************************/ /*! exports provided: SwitchStyle, QuickviewSwitchComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SwitchStyle", function() { return SwitchStyle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewSwitchComponent", function() { return QuickviewSwitchComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/quickview/quickview.service */ "./src/app/services/quickview/quickview.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SwitchStyle; (function (SwitchStyle) { SwitchStyle[SwitchStyle["Button"] = 0] = "Button"; SwitchStyle[SwitchStyle["Eye"] = 1] = "Eye"; })(SwitchStyle || (SwitchStyle = {})); var QuickviewSwitchComponent = /** @class */ (function () { function QuickviewSwitchComponent(_quickviewService) { this._quickviewService = _quickviewService; this.switchStyle = SwitchStyle.Eye; this.switchStyles = SwitchStyle; } Object.defineProperty(QuickviewSwitchComponent.prototype, "watching", { get: function () { return this._quickviewService.isWatched(this.naturalKey); }, set: function (isWatching) { if (isWatching) { var quickwatchItem = { title: this.title, groupTitle: this.groupTitle, groupColorStyle: this.groupColorStyle, naturalKey: this.naturalKey }; this._quickviewService.addQuickwatchItem(quickwatchItem); } else { this._quickviewService.removeQuickwatchItem(this.naturalKey); } }, enumerable: true, configurable: true }); QuickviewSwitchComponent.prototype.onUp = function () { if (this.watching != null) { this.watching = !this.watching; } else { this.watching = false; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], QuickviewSwitchComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], QuickviewSwitchComponent.prototype, "groupTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], QuickviewSwitchComponent.prototype, "groupColorStyle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], QuickviewSwitchComponent.prototype, "naturalKey", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], QuickviewSwitchComponent.prototype, "switchStyle", void 0); QuickviewSwitchComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'quickview-switch', template: __webpack_require__(/*! ./quickview-switch.component.html */ "./src/app/components/common/quickview-switch.component.html"), styles: [__webpack_require__(/*! ./quickview-switch.component.scss */ "./src/app/components/common/quickview-switch.component.scss")] }), __metadata("design:paramtypes", [app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_1__["QuickviewService"]]) ], QuickviewSwitchComponent); return QuickviewSwitchComponent; }()); /***/ }), /***/ "./src/app/components/common/spinner.component.html": /*!**********************************************************!*\ !*** ./src/app/components/common/spinner.component.html ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/common/spinner.component.scss": /*!**********************************************************!*\ !*** ./src/app/components/common/spinner.component.scss ***! \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme .spinner-layer {\n border-color: #293647; }\n\n.testing-theme .spinner-layer {\n border-color: #525252; }\n\n.spinner-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 997;\n overflow: hidden; }\n\n.spinner-wrapper .spinner-section {\n position: absolute;\n top: 0;\n width: 51%;\n height: 100%;\n background: #eceff1;\n z-index: 997;\n -webkit-transform: translateX(0);\n transform: translateX(0); }\n\n.spinner-wrapper .spinner-section.section-left {\n left: 0; }\n\n.spinner-wrapper .spinner-section.section-right {\n right: 0; }\n\n.spinner {\n display: block;\n position: relative;\n left: 50%;\n top: 50%;\n margin: -30px 0 0 -30px;\n z-index: 998; }\n\n.loaded.spinner-wrapper, .loaded.spinner-wrapper .spinner-section.section-left, .loaded.spinner-wrapper .spinner-section.section-right {\n display: none; }\n\n.loaded .spinner {\n display: none; }\n" /***/ }), /***/ "./src/app/components/common/spinner.component.ts": /*!********************************************************!*\ !*** ./src/app/components/common/spinner.component.ts ***! \********************************************************/ /*! exports provided: SpinnerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpinnerComponent", function() { return SpinnerComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SpinnerComponent = /** @class */ (function () { function SpinnerComponent() { } __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SpinnerComponent.prototype, "loaded", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('background-color'), __metadata("design:type", String) ], SpinnerComponent.prototype, "bgColor", void 0); SpinnerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'spinner', template: __webpack_require__(/*! ./spinner.component.html */ "./src/app/components/common/spinner.component.html"), styles: [__webpack_require__(/*! ./spinner.component.scss */ "./src/app/components/common/spinner.component.scss")] }) ], SpinnerComponent); return SpinnerComponent; }()); /***/ }), /***/ "./src/app/components/common/text-filter.component.html": /*!**************************************************************!*\ !*** ./src/app/components/common/text-filter.component.html ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n \n
\n \n \n
\n\n\n" /***/ }), /***/ "./src/app/components/common/text-filter.component.scss": /*!**************************************************************!*\ !*** ./src/app/components/common/text-filter.component.scss ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".filter-input.default-theme i.prefix.active {\n color: #1561a1; }\n\n.filter-input.default-theme i.reset {\n color: #69727e; }\n\n.filter-input.default-theme i.reset:active {\n color: #f11d40 !important; }\n\n.filter-input.default-theme i.reset:hover {\n color: #f9a4b2; }\n\n.filter-input.testing-theme i.prefix.active {\n color: #cfac1f; }\n\n.filter-input.testing-theme i.reset {\n color: #797979; }\n\n.filter-input.testing-theme i.reset:hover {\n color: #f9a4b2; }\n\n.filter-input.testing-theme i.reset:active {\n color: #f11d40 !important; }\n\n.filter-input {\n position: relative;\n margin-left: -26px;\n width: 100%; }\n\n.filter-input i.prefix {\n line-height: 48px;\n font-size: 22px;\n text-align: center; }\n\n.filter-input i.reset {\n display: none;\n cursor: pointer;\n position: absolute;\n right: -24px;\n top: 16px;\n transition: top 0.1s ease-out, opacity 0.1s ease-out; }\n\n.filter-input i.reset.display-reset {\n display: inherit;\n top: 10px;\n transition: top 0.2s ease-in, opacity 0.2s ease-in; }\n" /***/ }), /***/ "./src/app/components/common/text-filter.component.ts": /*!************************************************************!*\ !*** ./src/app/components/common/text-filter.component.ts ***! \************************************************************/ /*! exports provided: TextFilterComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextFilterComponent", function() { return TextFilterComponent; }); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TextFilterComponent = /** @class */ (function () { function TextFilterComponent(_renderer) { this._renderer = _renderer; this._filterDebounceTimeout = 500; this._currentFilter = ''; this.filterOnChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); } Object.defineProperty(TextFilterComponent.prototype, "filter", { get: function () { return this._currentFilter; }, set: function (value) { this._currentFilter = value; this._renderer.setElementClass(this.searchLabel.nativeElement, 'active', !!value); }, enumerable: true, configurable: true }); TextFilterComponent.prototype.emitNewFilterValue = function () { this.filterOnChange.emit(this.filter); }; TextFilterComponent.prototype.ngOnInit = function () { var _this = this; var searchTextObservable = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["merge"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(this.searchInput.nativeElement, 'keyup') .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["map"])(function () { return _this._currentFilter; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["debounceTime"])(this._filterDebounceTimeout), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["distinctUntilChanged"])()), Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(this.searchInput.nativeElement, 'blur')); searchTextObservable.subscribe(function () { return _this.emitNewFilterValue(); }); }; TextFilterComponent.prototype.reset = function () { this.filter = ''; this.emitNewFilterValue(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('searchFieldLabel'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]) ], TextFilterComponent.prototype, "searchLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('searchField'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]) ], TextFilterComponent.prototype, "searchInput", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], TextFilterComponent.prototype, "filter", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), __metadata("design:type", Object) ], TextFilterComponent.prototype, "filterOnChange", void 0); TextFilterComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'text-filter', template: __webpack_require__(/*! ./text-filter.component.html */ "./src/app/components/common/text-filter.component.html"), styles: [__webpack_require__(/*! ./text-filter.component.scss */ "./src/app/components/common/text-filter.component.scss")] }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer"]]) ], TextFilterComponent); return TextFilterComponent; }()); /***/ }), /***/ "./src/app/components/data-table/data-table.component.html": /*!*****************************************************************!*\ !*** ./src/app/components/data-table/data-table.component.html ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n\n \n \n \n
{{ value }}
\n \n
\n
\n\n\n\n \n \n \n {{ value ? 'Yes' : '' }}\n \n \n\n \n \n \n {{ value ? 'Yes' : '' }}\n \n \n\n \n \n \n \n \n \n\n\n
\n
" /***/ }), /***/ "./src/app/components/data-table/data-table.component.scss": /*!*****************************************************************!*\ !*** ./src/app/components/data-table/data-table.component.scss ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/data-table/data-table.component.ts": /*!***************************************************************!*\ !*** ./src/app/components/data-table/data-table.component.ts ***! \***************************************************************/ /*! exports provided: DataTableComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataTableComponent", function() { return DataTableComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @swimlane/ngx-datatable */ "./node_modules/@swimlane/ngx-datatable/release/index.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/maintenance/maintenance-point.service */ "./src/app/services/maintenance/maintenance-point.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DataTableComponent = /** @class */ (function () { function DataTableComponent(_service) { this._service = _service; this.checkedItems = []; // Assuming input structure matches MaintenancePoint this.itemsChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.checkChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.rows = []; this.selected = []; this.columns = []; this.ColumnMode = _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1__["ColumnMode"].standard; this.SelectionType = _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1__["SelectionType"].cell; } DataTableComponent.prototype.ngOnInit = function () { this.populateRows(); this.initializeColumns(); }; DataTableComponent.prototype.ngOnChanges = function (changes) { if (changes.checkedItems) { this.populateRows(); } }; DataTableComponent.prototype.populateRows = function () { this.rows = this.checkedItems.filter(function (item) { return !item.isDeleted; }).map(function (item) { return ({ id: item.id, tag: item.tag, isImported: item.tag.endsWith('_imported'), isCustom: !item.tag.endsWith('_imported'), editing: false // Initialize all items to not be in edit mode }); }); }; DataTableComponent.prototype.initializeColumns = function () { this.columns = [ { name: 'Tag', prop: 'tag', flexGrow: 4, minWidth: 300 }, { name: 'Imported', prop: 'isImported', width: 100, canAutoResize: false }, { name: 'Custom', prop: 'isCustom', width: 100, canAutoResize: false }, { name: 'Actions', prop: 'actions', width: 150, canAutoResize: false } // Action column for delete buttons ]; }; DataTableComponent.prototype.onActivate = function (event) { // Activate edit mode only when the 'Tag' column is clicked if (event.type === 'click' && event.column.prop === 'tag') { this.rows.forEach(function (row, index) { // Set editing to true for the clicked row and false for all others row.editing = (event.row === row); }); } }; DataTableComponent.prototype.onSelect = function (event) { console.log('Event: select', event, this.selected); // Handle selection here, if necessary }; DataTableComponent.prototype.deleteRow = function (rowIndex) { var row = this.rows[rowIndex]; this.checkChange.emit(row.tag); console.log('Preparing to delete row:', row); this._service.deleteTags(row.tag).subscribe({ next: function () { return console.log('Tag deleted successfully'); }, error: function (error) { return console.log('Error deleting tag:', error); } }); }; DataTableComponent.prototype.updateTagValue = function (row, newValue) { this._service.updateTags(row.tag, newValue).subscribe({ next: function () { return console.log('Tag updated successfully'); }, error: function (error) { return console.log('Error updating tag:', error); } }); window.location.reload(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], DataTableComponent.prototype, "checkedItems", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], DataTableComponent.prototype, "itemsChange", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], DataTableComponent.prototype, "checkChange", void 0); DataTableComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-data-table', template: __webpack_require__(/*! ./data-table.component.html */ "./src/app/components/data-table/data-table.component.html"), styles: [__webpack_require__(/*! ./data-table.component.scss */ "./src/app/components/data-table/data-table.component.scss")] }), __metadata("design:paramtypes", [app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_2__["MaintenancePointService"]]) ], DataTableComponent); return DataTableComponent; }()); /***/ }), /***/ "./src/app/components/datapoints/base-datapoint.component.ts": /*!*******************************************************************!*\ !*** ./src/app/components/datapoints/base-datapoint.component.ts ***! \*******************************************************************/ /*! exports provided: DataForwardStrategy, BaseDatapointComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataForwardStrategy", function() { return DataForwardStrategy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseDatapointComponent", function() { return BaseDatapointComponent; }); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _types_keyed_collection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../types/keyed-collection */ "./src/types/keyed-collection.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); var DataForwardStrategy; (function (DataForwardStrategy) { DataForwardStrategy[DataForwardStrategy["WhenInitialized"] = 0] = "WhenInitialized"; DataForwardStrategy[DataForwardStrategy["Immediate"] = 1] = "Immediate"; })(DataForwardStrategy || (DataForwardStrategy = {})); var BaseDatapointComponent = /** @class */ (function () { function BaseDatapointComponent(dataPointService) { this.dataPointService = dataPointService; this._initFailedTimeout = 2000; this.dataForwardStrategy = DataForwardStrategy.WhenInitialized; this.missingNks = []; } Object.defineProperty(BaseDatapointComponent.prototype, "initCompleted", { get: function () { return this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initialized; }, enumerable: true, configurable: true }); BaseDatapointComponent.prototype.ngOnDestroy = function () { this.dropSubscriptions(); }; BaseDatapointComponent.prototype.onDataPointChanged = function (datapoint) { this.onValueChanged(datapoint.naturalKey, datapoint.data); }; BaseDatapointComponent.prototype.getNaturalKeys = function () { var naturalKeys = this._naturalKeys; return naturalKeys != null ? naturalKeys.slice() : []; }; BaseDatapointComponent.prototype.setNaturalKeys = function (keys) { this.reset(); this._naturalKeys = Array.from(new Set(keys)); this.retrieveAlreadyLoadedDatapointsAndRequestOthers(); this._dataPointSubscription = this.subscribeToDataPointService(); this._requestDataPointSubscription = this.subscribeToRequestDataPoint(); if (this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing) { this.updateInitState(); } }; BaseDatapointComponent.prototype.onValueChanged = function (naturalKey, datapointData) { }; BaseDatapointComponent.prototype.onValuesChanged = function () { }; BaseDatapointComponent.prototype.onValuesInitialized = function (datapoints) { var updatedDatapoints = datapoints.Values(); for (var _i = 0, updatedDatapoints_1 = updatedDatapoints; _i < updatedDatapoints_1.length; _i++) { var datapoint = updatedDatapoints_1[_i]; this.onDataPointChanged(datapoint); } this.onValuesChanged(); }; BaseDatapointComponent.prototype.subscribeToDataPointService = function () { var _this = this; return this.dataPointService.dataPoints.subscribe(function (receivedDatapoints) { return _this.updateDatapoints(receivedDatapoints); }, function (err) { return console.log(err); }); }; BaseDatapointComponent.prototype.subscribeToRequestDataPoint = function () { var _this = this; return this.dataPointService.shouldRequestDatapoints.subscribe(function (shouldRequest) { if (shouldRequest) { var keys = _this._naturalKeys; if (keys != null && keys.length > 0) { _this.dataPointService.requestDataPoints(keys); } } }, function (err) { return console.log(err); }); }; BaseDatapointComponent.prototype.reset = function () { this.initState = _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing; this.dropSubscriptions(); this._naturalKeys = []; this.dataPoints = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_1__["KeyedCollection"](); }; BaseDatapointComponent.prototype.retrieveAlreadyLoadedDatapointsAndRequestOthers = function () { var missingDatapoints = []; for (var _i = 0, _a = this._naturalKeys; _i < _a.length; _i++) { var key = _a[_i]; if (this.dataPoints.ContainsKey(key)) { var dp = this.dataPoints.Get(key); if (dp != null) { this.updateDatapoint(dp); } } else { missingDatapoints.push(key); } } if (missingDatapoints.length > 0) { this.requestMissingDataPoints(missingDatapoints); } }; BaseDatapointComponent.prototype.requestMissingDataPoints = function (keys) { var _this = this; this.dataPointService.isConnectionAlive .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["filter"])(function (isConnected) { return isConnected; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["take"])(1)) .subscribe(function () { _this.dataPointService.requestDataPoints(keys); _this.handleReportMissingNaturalKeys(); }, function (error) { return console.error(error); }); }; BaseDatapointComponent.prototype.updateDatapoints = function (sourceCollection) { var bulkUpdateNotification = false; for (var _i = 0, _a = this._naturalKeys; _i < _a.length; _i++) { var key = _a[_i]; if (sourceCollection.ContainsKey(key)) { var dp = sourceCollection.Get(key); if (dp != null) { this.updateDatapoint(dp); } bulkUpdateNotification = true; } } if (bulkUpdateNotification && (this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initialized || this.dataForwardStrategy === DataForwardStrategy.Immediate)) { this.onValuesChanged(); } }; BaseDatapointComponent.prototype.updateDatapoint = function (source) { var previousInitState = this.initState; this.dataPoints.AddOrUpdate(source.naturalKey, source); if (this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing) { this.updateInitState(); } if (this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initialized || this.dataForwardStrategy === DataForwardStrategy.Immediate) { if (this.dataForwardStrategy === DataForwardStrategy.WhenInitialized && previousInitState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing) { this.onValuesInitialized(this.dataPoints); } else { this.onDataPointChanged(source); } } }; BaseDatapointComponent.prototype.handleReportMissingNaturalKeys = function () { var _this = this; if (this._reportMissingNaturalKeysTimeoutHandle != null) { clearTimeout(this._reportMissingNaturalKeysTimeoutHandle); } if (this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing || this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].InitializationFailed) { this._reportMissingNaturalKeysTimeoutHandle = setTimeout(function () { _this.missingNks = []; var naturalKeys = _this._naturalKeys; naturalKeys.forEach(function (nk) { if (!_this.dataPoints.ContainsKey(nk)) { _this.missingNks.push(nk); } }); var missingNks = _this.missingNks; if (missingNks != null && missingNks.length > 0 && naturalKeys != null && naturalKeys.length > 0) { _this.initState = _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].InitializationFailed; console.error(missingNks.length + " natural keys are missing to complete the initialization of the datapoint component: "); console.error(missingNks); _this.requestMissingDataPoints(missingNks); } else { _this.initState = _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initialized; } }, this._initFailedTimeout); } }; BaseDatapointComponent.prototype.updateInitState = function () { var naturalKeyCount = this._naturalKeys ? this._naturalKeys.length : 0; var datapointCount = this.dataPoints ? this.dataPoints.count : 0; var allDataPointsAvailable = naturalKeyCount === datapointCount && naturalKeyCount >= 0; this.initState = allDataPointsAvailable ? _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initialized : _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing; }; BaseDatapointComponent.prototype.dropSubscriptions = function () { if (this._dataPointSubscription != null) { this._dataPointSubscription.unsubscribe(); } if (this._requestDataPointSubscription != null) { this._requestDataPointSubscription.unsubscribe(); } }; return BaseDatapointComponent; }()); /***/ }), /***/ "./src/app/components/datapoints/datapoint-collection.component.html": /*!***************************************************************************!*\ !*** ./src/app/components/datapoints/datapoint-collection.component.html ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n
{{ group.groupTitle }}
\n \n ?\n
\n
\n
{{ item.value | unitsystemconvert: item.naturalKey }} {{ item.naturalKey | unitsystemunit }}
\n
\n
\n
\n
{{ item.title }}
\n
{{ resolveNaturalKey(item) }}
\n
\n
\n \n
\n
\n \n \n \n \n \n \n
\n \n
\n
\n
\n" /***/ }), /***/ "./src/app/components/datapoints/datapoint-collection.component.scss": /*!***************************************************************************!*\ !*** ./src/app/components/datapoints/datapoint-collection.component.scss ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.datapoint-collection .delete-button:active {\n color: #ffffff; }\n\n.default-theme.datapoint-collection table tbody tr.alert td {\n color: #ffffff; }\n\n.default-theme.datapoint-collection table tbody tr.alert td .title-area, .default-theme.datapoint-collection table tbody tr.alert td .nk-area {\n color: #ffffff; }\n\n.default-theme.datapoint-collection .sensor-header {\n color: #1561a1; }\n\n.default-theme.datapoint-collection .edit-button:hover, .default-theme.datapoint-collection .delete-button:hover {\n background-color: #eaebed; }\n\n.default-theme.datapoint-collection .edit-button:hover, .default-theme.datapoint-collection .edit-button:active {\n color: #293647; }\n\n.default-theme.datapoint-collection .edit-button, .default-theme.datapoint-collection .delete-button {\n color: #69727e; }\n\n.default-theme.datapoint-collection .digital-sensor.on {\n background-color: #00cf78; }\n\n.default-theme.datapoint-collection .digital-sensor.off {\n background-color: #d4d7da; }\n\n.default-theme.datapoint-collection .delete-button:hover {\n color: #f11d40;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.default-theme.datapoint-collection .delete-button:active {\n background: #f11d40;\n box-shadow: none; }\n\n.default-theme.datapoint-collection table tbody tr.alert {\n background-color: #f11d40; }\n\n.testing-theme.datapoint-collection .delete-button:active {\n color: #98057e; }\n\n.testing-theme.datapoint-collection table tbody tr.alert td {\n color: #98057e; }\n\n.testing-theme.datapoint-collection table tbody tr.alert td .title-area, .testing-theme.datapoint-collection table tbody tr.alert td .nk-area {\n color: #98057e; }\n\n.testing-theme.datapoint-collection .sensor-header {\n color: #cfac1f; }\n\n.testing-theme.datapoint-collection .edit-button:hover, .testing-theme.datapoint-collection .delete-button:hover {\n background-color: #bdc2c6; }\n\n.testing-theme.datapoint-collection .edit-button:hover, .testing-theme.datapoint-collection .edit-button:active {\n color: #525252; }\n\n.testing-theme.datapoint-collection .edit-button, .testing-theme.datapoint-collection .delete-button {\n color: #797979; }\n\n.testing-theme.datapoint-collection .digital-sensor.on {\n background-color: #37af37; }\n\n.testing-theme.datapoint-collection .digital-sensor.off {\n background-color: #ca3232; }\n\n.testing-theme.datapoint-collection .delete-button:hover {\n color: #f11d40;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.testing-theme.datapoint-collection .delete-button:active {\n background: #f11d40;\n box-shadow: none; }\n\n.testing-theme.datapoint-collection table tbody tr.alert {\n background-color: #f11d40; }\n\n.datapoint-collection table.full-width {\n max-width: inherit; }\n\n.datapoint-collection table.quickview-width {\n max-width: 400px;\n max-width: 400px; }\n\n.datapoint-collection table thead {\n font-size: 14px;\n font-weight: 300;\n border-bottom: none; }\n\n.datapoint-collection table thead tr .sensor-header {\n padding-left: 8px;\n font-weight: bold;\n height: 36px; }\n\n.datapoint-collection table thead tr .watch-header {\n text-align: center;\n padding-left: 15px;\n padding-right: 15px; }\n\n.datapoint-collection table tbody tr {\n background-color: transparent; }\n\n.datapoint-collection table tbody tr:nth-child(odd) {\n background-color: #f2f2f2; }\n\n.datapoint-collection table tbody.safe tr {\n background-color: #fffede; }\n\n.datapoint-collection table tbody.safe tr:nth-child(odd) {\n background-color: #fff7bd; }\n\n.datapoint-collection .title-area {\n white-space: normal; }\n\n.datapoint-collection .nk-area {\n font-size: 10px;\n margin-top: -4px;\n /*word-wrap: break-word;\n white-space: normal;*/ }\n\n.datapoint-collection td {\n padding: 8px 4px; }\n\n.datapoint-collection td.watch-switch {\n margin-top: 6px; }\n\n.datapoint-collection td.nullvalue {\n text-align: center; }\n\n.datapoint-collection td.digital {\n min-width: 48px; }\n\n.datapoint-collection td.analog .value {\n min-width: 60px;\n text-align: center;\n margin-left: 8px;\n margin-right: 8px; }\n\n.datapoint-collection td.analog .value .uom {\n font-size: 12px; }\n\n.datapoint-collection td.string .value {\n min-width: 100px;\n text-align: center; }\n\n.datapoint-collection .name {\n padding-left: 0px;\n max-width: 200px;\n width: 100%; }\n\n.datapoint-collection .edit-button,\n.datapoint-collection .delete-button {\n width: 48px;\n height: 48px;\n text-align: center;\n cursor: pointer;\n border-radius: 3px; }\n\n.datapoint-collection .edit-button:hover,\n .datapoint-collection .delete-button:hover {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.datapoint-collection .edit-button i,\n .datapoint-collection .delete-button i {\n line-height: 48px; }\n\n.datapoint-collection .edit-button i {\n font-size: 28px; }\n\n.datapoint-collection .digital-sensor {\n width: 20px;\n height: 20px;\n border-radius: 2px;\n border: 1px solid #9a9a9a; }\n\n.datapoint-collection .digital-sensor.centered {\n margin: 0 auto; }\n\n.datapoint-collection .color-type {\n width: 20px;\n height: 20px;\n border-radius: 2px;\n border: 1px solid #9a9a9a; }\n\n.datapoint-collection .color-type.centered {\n margin: 0 auto; }\n\n.button-cell {\n padding: 2px !important;\n width: 52px; }\n" /***/ }), /***/ "./src/app/components/datapoints/datapoint-collection.component.ts": /*!*************************************************************************!*\ !*** ./src/app/components/datapoints/datapoint-collection.component.ts ***! \*************************************************************************/ /*! exports provided: SelectionType, DatapointCollectionComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionType", function() { return SelectionType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatapointCollectionComponent", function() { return DatapointCollectionComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../services/quickview/quickview.service */ "./src/app/services/quickview/quickview.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SelectionType; (function (SelectionType) { SelectionType[SelectionType["Simple"] = 0] = "Simple"; SelectionType[SelectionType["Trend"] = 1] = "Trend"; })(SelectionType || (SelectionType = {})); var DatapointCollectionComponent = /** @class */ (function (_super) { __extends(DatapointCollectionComponent, _super); function DatapointCollectionComponent(dataPointService, _quickviewService, _configService, _colorService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this._quickviewService = _quickviewService; _this._configService = _configService; _this._colorService = _colorService; _this.selectionTypes = SelectionType; _this.colorArray = Array(); // display not initialized items as well _this.dataForwardStrategy = _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["DataForwardStrategy"].Immediate; _this.allowAutoUpdate = true; _this.defaultTitle = ''; _this.selectionType = SelectionType.Simple; _this.maxSelectedItems = -1; _this.onSelectionChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"](); _this.onEdit = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"](); _this.switchedHours = 0; _this.onInitialized = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"](); _this._initEventFired = false; _this._previousItemsCount = 0; return _this; } Object.defineProperty(DatapointCollectionComponent.prototype, "collection", { set: function (value) { var _this = this; this.unsubscribe(); this._collectionSubscription = value.subscribe(function (newCollection) { var update = _this._collection != null; newCollection.items.forEach(function (i) { var metadata = _this._configService.craneConfig.datapointMetadata[i.naturalKey]; var _a = _this._colorService.resolveColors(i.naturalKey, metadata), activeColor = _a[0], inactiveColor = _a[1]; i.activeColor = activeColor; i.inactiveColor = inactiveColor; }); _this._collection = newCollection; if (update) { _this.setupDataPoints(); } _this.generateGroups(); }); }, enumerable: true, configurable: true }); Object.defineProperty(DatapointCollectionComponent.prototype, "hasData", { get: function () { return this._collection && this._collection.items && this._collection.items.length > 0; }, enumerable: true, configurable: true }); Object.defineProperty(DatapointCollectionComponent.prototype, "groups", { get: function () { // re-create groups if item-count changed var itemsCount = this._collection ? this._collection.items.length : 0; if (this._previousItemsCount !== itemsCount) { this.generateGroups(); this._previousItemsCount = itemsCount; } return this._groups; }, enumerable: true, configurable: true }); DatapointCollectionComponent.prototype.onValuesInitialized = function (datapoints) { var datapointCopy = datapoints.Values(); for (var _i = 0, datapointCopy_1 = datapointCopy; _i < datapointCopy_1.length; _i++) { var datapoint = datapointCopy_1[_i]; this.onValueChanged(datapoint.naturalKey, datapoint.data); } }; DatapointCollectionComponent.prototype.onValueChanged = function (naturalKey, data) { if (this.initState !== _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"].Initializing && !this._initEventFired) { this.onInitialized.emit(true); this._initEventFired = true; } var items = this._collection.items; if (items != null) { for (var _i = 0, items_1 = items; _i < items_1.length; _i++) { var item = items_1[_i]; if (naturalKey === item.naturalKey) { item.value = data; } } } }; DatapointCollectionComponent.prototype.itemSelectionChanged = function (isSelected, item) { item.isSelected = isSelected; if (isSelected) { var usedColors = this._collection.items.map(function (x) { return x.selectionColor; }); var unusedColor = this._colorService.getUnusedColor(this.selectionColorPalette, usedColors); item.selectionColor = unusedColor; } else { item.selectionColor = undefined; } this.onSelectionChanged.emit(this._collection.items.filter(function (e) { return e.isSelected; })); }; Object.defineProperty(DatapointCollectionComponent.prototype, "disableSelection", { get: function () { if (this.maxSelectedItems <= 0) { return false; } return this._collection && this._collection.items.filter(function (e) { return e.isSelected; }).length >= this.maxSelectedItems; }, enumerable: true, configurable: true }); Object.defineProperty(DatapointCollectionComponent.prototype, "showNaturalKey", { get: function () { return this._configService.craneConfig.showNaturalKeys; }, enumerable: true, configurable: true }); DatapointCollectionComponent.prototype.ngOnInit = function () { if (this._collection != null) { this.setupDataPoints(); } }; DatapointCollectionComponent.prototype.generateGroups = function () { if (this.grouped) { this._groups = []; } else { var group = { groupTitle: this.defaultTitle, items: [] }; this._groups = [group]; } if (this._collection.items) { for (var i = 0; i < this._collection.items.length; i++) { var item = this._collection.items[i]; if (!this.grouped) { if (item.groupColorStyle != null) { this._groups[0].colorStyle = item.groupColorStyle; } var itemList = this._groups[0].items; if (itemList != null) { itemList.push(item); } } else { var found = false; if (this._groups) { for (var g = 0; g < this._groups.length; g++) { var group = this._groups[g]; if (group.groupTitle === item.groupTitle && group.colorStyle === item.groupColorStyle) { if (!group.items) { group.items = []; } group.items.push(item); found = true; } } } if (!found) { var newItem = { groupTitle: item.groupTitle, items: [item], colorStyle: item.groupColorStyle }; if (this._groups) { this._groups.push(newItem); } else { this._groups = [newItem]; } } } } // if there is only one group show the defaultTitle instead of the group title // because the group title will mostly be a duplicate of the title anyway if (!this.forceGroupTitle && this._groups && this._groups.length === 1) { this._groups[0].groupTitle = this.defaultTitle; } } }; DatapointCollectionComponent.prototype.setupDataPoints = function () { this._initEventFired = false; if (this.allowAutoUpdate) { var keys = []; var items = this._collection.items; if (items != null) { for (var _i = 0, items_2 = items; _i < items_2.length; _i++) { var item = items_2[_i]; keys.push(item.naturalKey); } } this.setNaturalKeys(keys); } }; DatapointCollectionComponent.prototype.removeItem = function (item) { this._quickviewService.removeQuickwatchItem(item.naturalKey); }; DatapointCollectionComponent.prototype.editItem = function (item) { this.onEdit.emit(item); }; Object.defineProperty(DatapointCollectionComponent.prototype, "headerColumnSpan", { get: function () { var span = 3; if (this.allowTrend && this.allowDelete) { span += 1; } if (this.allowEdit) { span += 1; } return span; }, enumerable: true, configurable: true }); DatapointCollectionComponent.prototype.isValueNull = function (item) { return item.value == null && !this.isSelectionItem(item); }; DatapointCollectionComponent.prototype.isBooleanItem = function (item) { return typeof (item.value) === 'boolean' && !this.isSelectionItem(item); }; DatapointCollectionComponent.prototype.isAnalogItem = function (item) { return typeof (item.value) === 'number' && !this.isStateMappingItem(item) && !this.isSelectionItem(item); }; DatapointCollectionComponent.prototype.isStringItem = function (item) { return typeof (item.value) === 'string' && !this.isSelectionItem(item); }; DatapointCollectionComponent.prototype.isDigitalItem = function (item) { return this.isBooleanItem(item) || this.isStateMappingItem(item); }; DatapointCollectionComponent.prototype.isStateMappingItem = function (item) { return item.condition != null && item.viewTemplate === _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["CustomItemTemplate"].StateMapping && !this.isSelectionItem(item); }; DatapointCollectionComponent.prototype.isSelectionItem = function (item) { return this.selectionColorPalette != null && this.itemSelection === true && item != null; }; DatapointCollectionComponent.prototype.resolveDigitalState = function (item) { if (item != null) { var comparable = this.isStateMappingItem(item) ? item.condition : true; return item.value === comparable ? item.activeColor : item.inactiveColor; } return undefined; }; DatapointCollectionComponent.prototype.resolveNaturalKey = function (item) { return this.isStateMappingItem(item) ? item.naturalKey + "_#" + item.condition : item.naturalKey; }; DatapointCollectionComponent.prototype.customRowTemplate = function (item) { return item.template; }; DatapointCollectionComponent.prototype.cellTemplateExists = function (item) { return item.cellTemplate !== undefined; }; DatapointCollectionComponent.prototype.showGroupHeader = function (items) { if (!items) { return false; } if (items.every(function (i) { return i.template != undefined && i.value == false; })) { return false; } return true; }; DatapointCollectionComponent.prototype.unsubscribe = function () { if (this._collectionSubscription != null) { this._collectionSubscription.unsubscribe(); } if (this._selectionSubscription != null) { this._selectionSubscription.unsubscribe(); } }; DatapointCollectionComponent.prototype.ngOnDestroy = function () { this.unsubscribe(); _super.prototype.ngOnDestroy.call(this); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('allow-watch'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "allowWatch", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('allow-trend'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "allowTrend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('allow-delete'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "allowDelete", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('allow-edit'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "allowEdit", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('allow-auto-update'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "allowAutoUpdate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('grouped'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "grouped", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('default-title'), __metadata("design:type", String) ], DatapointCollectionComponent.prototype, "defaultTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('full-width'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "fullWidth", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('quickview-width'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "quickviewWidth", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('force-grouptitle'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "forceGroupTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('item-selection'), __metadata("design:type", Boolean) ], DatapointCollectionComponent.prototype, "itemSelection", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('selection-type'), __metadata("design:type", Number) ], DatapointCollectionComponent.prototype, "selectionType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('selection-color-palette'), __metadata("design:type", Array) ], DatapointCollectionComponent.prototype, "selectionColorPalette", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('max-selected-items'), __metadata("design:type", Object) ], DatapointCollectionComponent.prototype, "maxSelectedItems", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(), __metadata("design:type", Object) ], DatapointCollectionComponent.prototype, "onSelectionChanged", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(), __metadata("design:type", Object) ], DatapointCollectionComponent.prototype, "onEdit", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('data-collection'), __metadata("design:type", rxjs__WEBPACK_IMPORTED_MODULE_7__["Observable"]), __metadata("design:paramtypes", [rxjs__WEBPACK_IMPORTED_MODULE_7__["Observable"]]) ], DatapointCollectionComponent.prototype, "collection", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]) ], DatapointCollectionComponent.prototype, "onInitialized", void 0); DatapointCollectionComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ selector: 'datapoint-collection', template: __webpack_require__(/*! ./datapoint-collection.component.html */ "./src/app/components/datapoints/datapoint-collection.component.html"), styles: [__webpack_require__(/*! ./datapoint-collection.component.scss */ "./src/app/components/datapoints/datapoint-collection.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], _services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_8__["QuickviewService"], _services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_1__["ColorService"]]) ], DatapointCollectionComponent); return DatapointCollectionComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/datapoints/double-datapoint-collection.component.html": /*!**********************************************************************************!*\ !*** ./src/app/components/datapoints/double-datapoint-collection.component.html ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{{ group.groupTitle }}set_valueactual_value
\n
\n \n
\n
\n
{{ item.title }}
\n
{{ item.subtitle }}
\n
-\n
\n \n \n {{ item.secondValue | location:item.locationField | locationAlias:item.locationField | async }}\n \n \n {{ item.secondValue | unitsystemconvert:item.secondNaturalKey }}\n  {{ item.secondNaturalKey | unitsystemunit }}\n \n
\n
-\n
\n \n \n {{ item.value | location:item.locationField | locationAlias:item.locationField | async }}\n \n \n {{ item.value | unitsystemconvert:item.naturalKey }}\n  {{ item.naturalKey | unitsystemunit }}\n \n
\n
\n
\n" /***/ }), /***/ "./src/app/components/datapoints/double-datapoint-collection.component.scss": /*!**********************************************************************************!*\ !*** ./src/app/components/datapoints/double-datapoint-collection.component.scss ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".double-datapoint-collection .default-theme.data-table .checked.on, .double-datapoint-collection .default-theme.data-table .checked.off, .double-datapoint-collection .default-theme.data-table .checked.info {\n color: #ffffff; }\n\n.double-datapoint-collection .default-theme.data-table .checked.info .digital-sensor {\n background-color: #1561a1; }\n\n.double-datapoint-collection .default-theme.data-table .header {\n color: #1561a1; }\n\n.double-datapoint-collection .default-theme.data-table .checked.on .digital-sensor {\n background-color: #00cf78; }\n\n.double-datapoint-collection .default-theme.data-table .checked.off .digital-sensor {\n background-color: #f11d40; }\n\n.double-datapoint-collection .default-theme.data-table .delete-button:hover {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.double-datapoint-collection .default-theme.data-table .delete-button:active {\n box-shadow: none; }\n\n.double-datapoint-collection .testing-theme.data-table .checked.on, .double-datapoint-collection .testing-theme.data-table .checked.off, .double-datapoint-collection .testing-theme.data-table .checked.info {\n color: #98057e; }\n\n.double-datapoint-collection .testing-theme.data-table .checked.info .digital-sensor {\n background-color: #cfac1f; }\n\n.double-datapoint-collection .testing-theme.data-table .header {\n color: #cfac1f; }\n\n.double-datapoint-collection .testing-theme.data-table .checked.on .digital-sensor {\n background-color: #00cf78; }\n\n.double-datapoint-collection .testing-theme.data-table .checked.off .digital-sensor {\n background-color: #f11d40; }\n\n.double-datapoint-collection .testing-theme.data-table .delete-button:hover {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.double-datapoint-collection .testing-theme.data-table .delete-button:active {\n box-shadow: none; }\n\n.double-datapoint-collection table thead tr .target, .double-datapoint-collection table thead tr .actual {\n text-align: center; }\n\n.double-datapoint-collection table thead tr .actual {\n font-weight: bold; }\n\n.double-datapoint-collection .title-area {\n white-space: normal; }\n\n.double-datapoint-collection td.nullvalue {\n text-align: center; }\n\n.double-datapoint-collection td.checked {\n width: 48px;\n padding-left: 10px; }\n\n.double-datapoint-collection .name {\n padding-left: 0px;\n max-width: 200px; }\n\n.digital-sensor {\n box-sizing: content-box;\n width: 26px;\n height: 26px;\n border-radius: 2px;\n border: 1px solid #9a9a9a; }\n\n.digital-sensor.centered {\n margin: 0 auto; }\n" /***/ }), /***/ "./src/app/components/datapoints/double-datapoint-collection.component.ts": /*!********************************************************************************!*\ !*** ./src/app/components/datapoints/double-datapoint-collection.component.ts ***! \********************************************************************************/ /*! exports provided: DoubleDatapointCollectionComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DoubleDatapointCollectionComponent", function() { return DoubleDatapointCollectionComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ItemType; (function (ItemType) { ItemType[ItemType["Ok"] = 0] = "Ok"; ItemType[ItemType["Nok"] = 1] = "Nok"; ItemType[ItemType["Info"] = 2] = "Info"; })(ItemType || (ItemType = {})); var DoubleDatapointCollectionComponent = /** @class */ (function (_super) { __extends(DoubleDatapointCollectionComponent, _super); function DoubleDatapointCollectionComponent(dataPointService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.isDone = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); _this.defaultTitle = ''; _this.onInitialized = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"](); _this._initEventFired = false; _this._previousItemsCount = 0; return _this; } Object.defineProperty(DoubleDatapointCollectionComponent.prototype, "collection", { set: function (value) { var _this = this; this.unsubscribe(); if (value != null) { if (value instanceof rxjs__WEBPACK_IMPORTED_MODULE_3__["Observable"]) { this._collectionSubscription = value.subscribe(function (newCollection) { return _this.handleCollectionUpdate(newCollection); }); } else { this.handleCollectionUpdate(value); } } }, enumerable: true, configurable: true }); Object.defineProperty(DoubleDatapointCollectionComponent.prototype, "hasData", { get: function () { return this._collection && this._collection.items && this._collection.items.length > 0; }, enumerable: true, configurable: true }); DoubleDatapointCollectionComponent.prototype.handleCollectionUpdate = function (newCollection) { this.setupDataPoints(newCollection); this.generateGroups(); }; Object.defineProperty(DoubleDatapointCollectionComponent.prototype, "groups", { get: function () { // re-create groups if item-count changed var itemsCount = this._collection ? this._collection.items.length : 0; if (this._previousItemsCount !== itemsCount) { this.generateGroups(); this._previousItemsCount = itemsCount; } return this._groups; }, enumerable: true, configurable: true }); DoubleDatapointCollectionComponent.prototype.onValuesInitialized = function (datapoints) { var _this = this; datapoints.Values().forEach(function (datapoint) { _this.onValueChanged(datapoint.naturalKey, datapoint.data); }); }; DoubleDatapointCollectionComponent.prototype.onValueChanged = function (naturalKey, data) { var _this = this; if (!this._initEventFired) { this.onInitialized.emit(true); this._initEventFired = true; } if (this._collection.items) { this._collection.items.forEach(function (item) { if (item.naturalKey === naturalKey) { item.value = data; _this.checkIfAllIsDone(); } if (item.secondNaturalKey === naturalKey) { item.secondValue = data; _this.checkIfAllIsDone(); } }); } }; DoubleDatapointCollectionComponent.prototype.generateGroups = function () { var _this = this; if (this.grouped) { this._groups = []; } else { var group = { groupTitle: this.defaultTitle, items: [] }; this._groups = [group]; } if (this._collection.items) { this._collection.items.forEach(function (item) { if (_this.grouped) { _this.handleGroupedItem(item); } else { _this.handleUngroupedItem(item); } }); // if there is only one group show the defaultTitle instead of the group title // because the group title will mostly be a duplicate of the title anyway if (!this.forceGroupTitle && this._groups && this._groups.length === 1) { this._groups[0].groupTitle = this.defaultTitle; } } }; DoubleDatapointCollectionComponent.prototype.handleGroupedItem = function (item) { var found = false; if (this._groups) { this._groups.forEach(function (group) { if (group.groupTitle === item.groupTitle && group.colorStyle === item.groupColorStyle) { if (!group.items) { group.items = []; } group.items.push(item); found = true; } }); } if (!found) { var newItem = { groupTitle: item.groupTitle, items: [item], colorStyle: item.groupColorStyle }; if (this._groups) { this._groups.push(newItem); } else { this._groups = [newItem]; } } }; DoubleDatapointCollectionComponent.prototype.handleUngroupedItem = function (item) { if (item.groupColorStyle != null) { this._groups[0].colorStyle = item.groupColorStyle; } var itemList = this._groups[0].items; if (itemList != null) { itemList.push(item); } }; DoubleDatapointCollectionComponent.prototype.setupDataPoints = function (collection) { var keys = []; this._initEventFired = false; this._collection = collection; var items = collection.items; if (items != null) { for (var _i = 0, items_1 = items; _i < items_1.length; _i++) { var item = items_1[_i]; if (item.naturalKey != null) { keys.push(item.naturalKey); } if (item.secondNaturalKey != null) { keys.push(item.secondNaturalKey); } } } this.setNaturalKeys(keys); }; DoubleDatapointCollectionComponent.prototype.isValueNull = function (item) { return item.value == null; }; DoubleDatapointCollectionComponent.prototype.isBooleanItem = function (item) { return typeof (item.value) === 'boolean'; }; DoubleDatapointCollectionComponent.prototype.isAnalogItem = function (item) { return typeof (item.value) === 'number'; }; DoubleDatapointCollectionComponent.prototype.isStringItem = function (item) { return typeof (item.value) === 'string'; }; DoubleDatapointCollectionComponent.prototype.isSecondValueNull = function (item) { return item.secondValue == null; }; DoubleDatapointCollectionComponent.prototype.isSecondBooleanItem = function (item) { return typeof (item.secondValue) === 'boolean'; }; DoubleDatapointCollectionComponent.prototype.isSecondAnalogItem = function (item) { return typeof (item.secondValue) === 'number'; }; DoubleDatapointCollectionComponent.prototype.isSecondStringItem = function (item) { return typeof (item.secondValue) === 'string'; }; DoubleDatapointCollectionComponent.prototype.isAnySetValueAvailable = function () { var items = this._collection.items; if (items != null) { for (var _i = 0, items_2 = items; _i < items_2.length; _i++) { var item = items_2[_i]; if (item.secondNaturalKey != null) { return true; } } return false; } return false; }; DoubleDatapointCollectionComponent.prototype.isAnyActualValueAvailable = function () { var items = this._collection.items; if (items != null) { for (var _i = 0, items_3 = items; _i < items_3.length; _i++) { var item = items_3[_i]; if (item.naturalKey != null) { return true; } } return false; } return false; }; DoubleDatapointCollectionComponent.prototype.getItemType = function (item) { if (item.naturalKey != null && item.secondNaturalKey != null) { var isChecked = false; if (item.isDoneCallback != null) { isChecked = item.isDoneCallback(item); } return isChecked ? ItemType.Ok : ItemType.Nok; } return ItemType.Info; }; DoubleDatapointCollectionComponent.prototype.getItemClass = function (item) { var itemType = this.getItemType(item); switch (itemType) { case ItemType.Ok: return 'on'; case ItemType.Nok: return 'off'; default: return 'info'; } }; DoubleDatapointCollectionComponent.prototype.getItemIcon = function (item) { var itemType = this.getItemType(item); switch (itemType) { case ItemType.Ok: return 'cms-icon-check'; case ItemType.Nok: return 'cms-icon-operator-offset-minus'; default: return 'cms-icon-information-screen'; } }; DoubleDatapointCollectionComponent.prototype.showGroupHeader = function (items) { return items != null; }; DoubleDatapointCollectionComponent.prototype.unsubscribe = function () { if (this._collectionSubscription != null) { this._collectionSubscription.unsubscribe(); } }; DoubleDatapointCollectionComponent.prototype.ngOnDestroy = function () { this.unsubscribe(); _super.prototype.ngOnDestroy.call(this); }; DoubleDatapointCollectionComponent.prototype.checkIfAllIsDone = function () { var done = !this._collection.items .some(function (item) { return !item.isDoneCallback || !item.isDoneCallback(item); }); if (this._allItemsDone !== done) { this.isDone.emit(done); this._allItemsDone = done; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), __metadata("design:type", Object) ], DoubleDatapointCollectionComponent.prototype, "isDone", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('default-title'), __metadata("design:type", String) ], DoubleDatapointCollectionComponent.prototype, "defaultTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('grouped'), __metadata("design:type", Boolean) ], DoubleDatapointCollectionComponent.prototype, "grouped", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('force-grouptitle'), __metadata("design:type", Boolean) ], DoubleDatapointCollectionComponent.prototype, "forceGroupTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('data-collection'), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], DoubleDatapointCollectionComponent.prototype, "collection", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]) ], DoubleDatapointCollectionComponent.prototype, "onInitialized", void 0); DoubleDatapointCollectionComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'double-datapoint-collection', template: __webpack_require__(/*! ./double-datapoint-collection.component.html */ "./src/app/components/datapoints/double-datapoint-collection.component.html"), styles: [__webpack_require__(/*! ./double-datapoint-collection.component.scss */ "./src/app/components/datapoints/double-datapoint-collection.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__["DataPointService"]]) ], DoubleDatapointCollectionComponent); return DoubleDatapointCollectionComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/datapoints/missing-datapoint-info.component.html": /*!*****************************************************************************!*\ !*** ./src/app/components/datapoints/missing-datapoint-info.component.html ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n
missing_datapoints
\n
{{ missingNksCount }}
\n
\n
\n
\n\n" /***/ }), /***/ "./src/app/components/datapoints/missing-datapoint-info.component.scss": /*!*****************************************************************************!*\ !*** ./src/app/components/datapoints/missing-datapoint-info.component.scss ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.missing-datapoints-indicator {\n background-color: #cfffeb; }\n .default-theme.missing-datapoints-indicator .badge {\n color: #ffffff; }\n .default-theme.missing-datapoints-indicator:hover {\n background-color: #eaebed; }\n .testing-theme.missing-datapoints-indicator {\n background-color: #cfffeb; }\n .testing-theme.missing-datapoints-indicator .badge {\n color: #98057e; }\n .testing-theme.missing-datapoints-indicator:hover {\n background-color: #bdc2c6; }\n .missing-datapoints-indicator {\n height: 100%;\n padding: 0 16px; }\n .missing-datapoints-indicator:hover {\n cursor: pointer;\n transition: all 0.3s ease-in; }\n .missing-datapoints-indicator:active {\n cursor: pointer;\n box-shadow: none; }\n .missing-datapoints-indicator h5 {\n opacity: 1;\n margin-top: 10px;\n transition: opacity 0.3s ease-in;\n white-space: nowrap; }\n .missing-datapoints-indicator h5 .info-area {\n display: table; }\n .missing-datapoints-indicator h5 .info-area div {\n display: table-cell;\n vertical-align: middle; }\n .missing-datapoints-indicator .badge {\n padding: 4px 8px;\n border-radius: 4px;\n margin: 12px 0 12px 16px;\n min-width: 56px;\n line-height: 16px;\n height: 24px;\n text-align: center;\n opacity: 1;\n transition: opacity 0.4s ease-in; }\n" /***/ }), /***/ "./src/app/components/datapoints/missing-datapoint-info.component.ts": /*!***************************************************************************!*\ !*** ./src/app/components/datapoints/missing-datapoint-info.component.ts ***! \***************************************************************************/ /*! exports provided: MissingDatapointInfoComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MissingDatapointInfoComponent", function() { return MissingDatapointInfoComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var MissingDatapointInfoComponent = /** @class */ (function () { function MissingDatapointInfoComponent(_viewService, _configService) { this._viewService = _viewService; this._configService = _configService; this.missingNksCount = 0; } Object.defineProperty(MissingDatapointInfoComponent.prototype, "missingNks", { set: function (missingNks) { if (missingNks != null) { this.missingNksCount = missingNks.length; this.updateDatapointCollection(missingNks); } }, enumerable: true, configurable: true }); MissingDatapointInfoComponent.prototype.updateDatapointCollection = function (missingNks) { var _this = this; this._dataPointCollection = new _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"](); missingNks.forEach(function (nk) { var cfg = _this._configService.getQuickviewConfig(nk); if (cfg != null) { _this._dataPointCollection.items.push({ title: cfg.title, naturalKey: cfg.naturalKey, groupTitle: cfg.groupTitle, isTrendEnabled: false }); } else { _this._dataPointCollection.items.push({ title: app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder, naturalKey: nk, groupTitle: app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder, isTrendEnabled: false }); } }); }; MissingDatapointInfoComponent.prototype.displayQuickview = function () { this._viewService.showQuickview('Datapoints', this._dataPointCollection, undefined, undefined, true); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array), __metadata("design:paramtypes", [Array]) ], MissingDatapointInfoComponent.prototype, "missingNks", null); MissingDatapointInfoComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'missing-datapoint-info', styles: [__webpack_require__(/*! ./missing-datapoint-info.component.scss */ "./src/app/components/datapoints/missing-datapoint-info.component.scss")], template: __webpack_require__(/*! ./missing-datapoint-info.component.html */ "./src/app/components/datapoints/missing-datapoint-info.component.html") }), __metadata("design:paramtypes", [app_services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_1__["ConfigService"]]) ], MissingDatapointInfoComponent); return MissingDatapointInfoComponent; }()); /***/ }), /***/ "./src/app/components/datapoints/plain-datapoint.component.html": /*!**********************************************************************!*\ !*** ./src/app/components/datapoints/plain-datapoint.component.html ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n{{ data | unitsystemconvert:naturalKey:lang }} {{ naturalKey | unitsystemunit }}\n" /***/ }), /***/ "./src/app/components/datapoints/plain-datapoint.component.ts": /*!********************************************************************!*\ !*** ./src/app/components/datapoints/plain-datapoint.component.ts ***! \********************************************************************/ /*! exports provided: PlainDatapointComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlainDatapointComponent", function() { return PlainDatapointComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var PlainDatapointComponent = /** @class */ (function (_super) { __extends(PlainDatapointComponent, _super); function PlainDatapointComponent(dataPointService, _cmsTranslationService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this._cmsTranslationService = _cmsTranslationService; _this._cnt = 0; _this.diff = 0; _this.now = 0; _this.color = 'blue'; _this._lastValueChanged = 0; return _this; } Object.defineProperty(PlainDatapointComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); PlainDatapointComponent.prototype.onValueChanged = function (naturalKey, data) { this._cnt++; this.now = Date.now(); this.diff = this.now - this._lastValueChanged; this.color = this.diff > 120 ? 'red' : 'blue'; this._lastValueChanged = this.now; this.data = data; }; PlainDatapointComponent.prototype.ngOnInit = function () { this.setNaturalKeys([this.naturalKey]); }; PlainDatapointComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PlainDatapointComponent.prototype, "naturalKey", void 0); PlainDatapointComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'plain-datapoint', template: __webpack_require__(/*! ./plain-datapoint.component.html */ "./src/app/components/datapoints/plain-datapoint.component.html") }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__["DataPointService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"]]) ], PlainDatapointComponent); return PlainDatapointComponent; }(_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/datapoints/svg-base-datapoint.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/datapoints/svg-base-datapoint.component.ts ***! \***********************************************************************/ /*! exports provided: SvgBaseDatapointComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgBaseDatapointComponent", function() { return SvgBaseDatapointComponent; }); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_keyed_collection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/keyed-collection */ "./src/types/keyed-collection.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); var SvgBaseDatapointComponent = /** @class */ (function () { function SvgBaseDatapointComponent(dataPointService) { this.dataPointService = dataPointService; this._initFailedTimeout = 2000; this.missingNks = []; } Object.defineProperty(SvgBaseDatapointComponent.prototype, "initCompleted", { get: function () { return this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initialized; }, enumerable: true, configurable: true }); SvgBaseDatapointComponent.prototype.ngOnDestroy = function () { this.dropSubscriptions(); }; SvgBaseDatapointComponent.prototype.getNaturalKeys = function () { var naturalKeys = this._naturalKeys; return naturalKeys != null ? naturalKeys.slice() : []; }; SvgBaseDatapointComponent.prototype.setNaturalKeys = function (keys) { this.reset(); this._naturalKeys = Array.from(new Set(keys)); this.retrieveAlreadyLoadedDatapointsAndRequestOthers(); this._dataPointSubscription = this.subscribeToDataPointService(); this._requestDataPointSubscription = this.subscribeToRequestDataPoint(); if (this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing) { this.updateInitState(); } }; SvgBaseDatapointComponent.prototype.reset = function () { this.initState = _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing; this.dropSubscriptions(); this._naturalKeys = []; this.dataPoints = new types_keyed_collection__WEBPACK_IMPORTED_MODULE_1__["KeyedCollection"](); }; SvgBaseDatapointComponent.prototype.retrieveAlreadyLoadedDatapointsAndRequestOthers = function () { var missingDatapoints = []; for (var _i = 0, _a = this._naturalKeys; _i < _a.length; _i++) { var key = _a[_i]; if (this.dataPoints.ContainsKey(key)) { var dp = this.dataPoints.Get(key); if (dp != null) { this.updateDatapoint(dp); } } else { missingDatapoints.push(key); } } if (missingDatapoints.length > 0) { this.requestMissingDataPoints(missingDatapoints); } }; SvgBaseDatapointComponent.prototype.subscribeToDataPointService = function () { var _this = this; return this.dataPointService.dataPoints.subscribe(function (receivedDatapoints) { return _this.updateDatapoints(receivedDatapoints); }, function (err) { return console.log(err); }); }; SvgBaseDatapointComponent.prototype.subscribeToRequestDataPoint = function () { var _this = this; return this.dataPointService.shouldRequestDatapoints.subscribe(function (shouldRequest) { if (shouldRequest) { var keys = _this._naturalKeys; if (keys != null && keys.length > 0) { _this.dataPointService.requestDataPoints(keys); } } }, function (err) { return console.log(err); }); }; SvgBaseDatapointComponent.prototype.requestMissingDataPoints = function (keys) { var _this = this; this.dataPointService.isConnectionAlive .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["filter"])(function (isConnected) { return isConnected; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["take"])(1)) .subscribe(function () { _this.dataPointService.requestDataPoints(keys); _this.handleReportMissingNaturalKeys(); }, function (error) { return console.error(error); }); }; SvgBaseDatapointComponent.prototype.updateDatapoints = function (sourceCollection) { for (var _i = 0, _a = this._naturalKeys; _i < _a.length; _i++) { var key = _a[_i]; if (sourceCollection.ContainsKey(key)) { var dp = sourceCollection.Get(key); if (dp != null) { this.updateDatapoint(dp); } } } }; SvgBaseDatapointComponent.prototype.updateDatapoint = function (source) { this.dataPoints.AddOrUpdate(source.naturalKey, source); if (this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing) { this.updateInitState(); } }; SvgBaseDatapointComponent.prototype.handleReportMissingNaturalKeys = function () { var _this = this; if (this.reportMissingNaturalKeysTimeoutHandle != null) { clearTimeout(this.reportMissingNaturalKeysTimeoutHandle); } if (this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing || this.initState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].InitializationFailed) { this.reportMissingNaturalKeysTimeoutHandle = setTimeout(function () { _this.missingNks = []; var naturalKeys = _this._naturalKeys; naturalKeys.forEach(function (nk) { if (!_this.dataPoints.ContainsKey(nk)) { _this.missingNks.push(nk); } }); var missingNks = _this.missingNks; if (missingNks != null && missingNks.length > 0 && naturalKeys != null && naturalKeys.length > 0) { _this.initState = _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].InitializationFailed; console.error(missingNks.length + " natural keys are missing to complete the initialization of the datapoint component: "); console.error(missingNks); _this.requestMissingDataPoints(missingNks); } else { _this.initState = _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initialized; } }, this._initFailedTimeout); } }; SvgBaseDatapointComponent.prototype.updateInitState = function () { var naturalKeyCount = this._naturalKeys ? this._naturalKeys.length : 0; var datapointCount = this.dataPoints ? this.dataPoints.count : 0; var allDataPointsAvailable = naturalKeyCount === datapointCount && naturalKeyCount >= 0; this.initState = allDataPointsAvailable ? _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initialized : _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].Initializing; }; SvgBaseDatapointComponent.prototype.dropSubscriptions = function () { if (this._dataPointSubscription != null) { this._dataPointSubscription.unsubscribe(); } if (this._requestDataPointSubscription != null) { this._requestDataPointSubscription.unsubscribe(); } }; return SvgBaseDatapointComponent; }()); /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-2m4w-electrical-svg.component.html": /*!**************************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-2m4w-electrical-svg.component.html ***! \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n M1\n \n \n \n \n \n M2\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.frequencyConverterStates[0].displayValue\n | unitsystemconvert:vm?.frequencyConverterStates[0].displayValueNaturalKey:lang}}\n {{vm?.frequencyConverterStates[0].displayValueNaturalKey\n | unitsystemunit}}\n \n \n \n \n \n {{vm?.frequencyConverterStates[1].displayValue\n | unitsystemconvert:vm?.frequencyConverterStates[1].displayValueNaturalKey:lang}}\n {{vm?.frequencyConverterStates[1].displayValueNaturalKey\n | unitsystemunit}}\n \n \n \n \n \n {{vm?.dcBusValue |\n unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang}}\n {{'Gen_ActiveLineModule_1_OutputVoltage'\n | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-2m4w-electrical-svg.component.ts": /*!************************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-2m4w-electrical-svg.component.ts ***! \************************************************************************************/ /*! exports provided: Hoist2m4wElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hoist2m4wElectricalSvgComponent", function() { return Hoist2m4wElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_models_deprecated_hoist_electrical_2m4w_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/deprecated/hoist-electrical-2m4w.viewmodel */ "./src/app/models/deprecated/hoist-electrical-2m4w.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * @deprecated Use configurable svg page to create hoist pages */ var Hoist2m4wElectricalSvgComponent = /** @class */ (function (_super) { __extends(Hoist2m4wElectricalSvgComponent, _super); function Hoist2m4wElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this._vm = new app_models_deprecated_hoist_electrical_2m4w_viewmodel__WEBPACK_IMPORTED_MODULE_3__["HoistElectrical2m4wViewModel"](_this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].ActSpeed); return _this; } Hoist2m4wElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-hoist-2m4w-electrical-svg', template: __webpack_require__(/*! ./hoist-2m4w-electrical-svg.component.html */ "./src/app/components/deprecated/hoist/hoist-2m4w-electrical-svg.component.html"), styles: [__webpack_require__(/*! ../../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"]]) ], Hoist2m4wElectricalSvgComponent); return Hoist2m4wElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-2m4w-mechanical-svg.component.html": /*!**************************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-2m4w-mechanical-svg.component.html ***! \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n y\n \n \n \n \n \n \n \n y\n \n \n \n \n \n \n \n y\n \n \n \n \n \n \n \n y\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.valueContainers[0].displayValue |\n unitsystemconvert:vm?.valueContainers[0].displayValueNaturalKey:lang}}\n {{vm?.valueContainers[0].displayValueNaturalKey\n | unitsystemunit}}\n \n \n \n \n \n {{vm?.valueContainers[1].displayValue |\n unitsystemconvert:vm?.valueContainers[1].displayValueNaturalKey:lang}}\n {{vm?.valueContainers[1].displayValueNaturalKey\n | unitsystemunit}}\n \n \n \n \n \n {{vm?.valueContainers[0].displayValue |\n unitsystemconvert:vm?.valueContainers[2].displayValueNaturalKey:lang}}\n {{vm?.valueContainers[2].displayValueNaturalKey\n | unitsystemunit}}\n \n \n \n \n \n {{vm?.valueContainers[1].displayValue |\n unitsystemconvert:vm?.valueContainers[3].displayValueNaturalKey:lang}}\n {{vm?.valueContainers[3].displayValueNaturalKey\n | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n O\n \n \n \n \n \n \n \n \n \n {{vm?.speedPos | unitsystemconvert:\n 'Hst_SpeedEval_ActEncSpeed'}}{{'Hst_SpeedEval_ActEncSpeed' | unitsystemunit }}\n {{vm?.maxSpeedPos| unitsystemconvert:\n 'Hst_SpeedLimit_MaxSpeedPosDir'}}{{'Hst_SpeedLimit_MaxSpeedPosDir' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.speedNeg |\n unitsystemconvert:\n 'Hst_SpeedEval_ActEncSpeed'}}{{'Hst_SpeedEval_ActEncSpeed' | unitsystemunit }}\n {{vm?.maxSpeedNeg |\n unitsystemconvert:\n 'Hst_SpeedLimit_MaxSpeedNegDir'}}{{'Hst_SpeedLimit_MaxSpeedNegDir' | unitsystemunit }}\n \n \n \n M\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-2m4w-mechanical-svg.component.ts": /*!************************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-2m4w-mechanical-svg.component.ts ***! \************************************************************************************/ /*! exports provided: Hoist2m4wMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hoist2m4wMechanicalSvgComponent", function() { return Hoist2m4wMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_models_deprecated_hoist_mechanical_2m4w_viewmodel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/models/deprecated/hoist-mechanical-2m4w.viewmodel */ "./src/app/models/deprecated/hoist-mechanical-2m4w.viewmodel.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * @deprecated Use configurable svg page to create hoist pages */ var Hoist2m4wMechanicalSvgComponent = /** @class */ (function (_super) { __extends(Hoist2m4wMechanicalSvgComponent, _super); function Hoist2m4wMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_4__["ModelStates"]; _this._vm = new app_models_deprecated_hoist_mechanical_2m4w_viewmodel__WEBPACK_IMPORTED_MODULE_9__["HoistMechanical2m4wViewModel"](_this.config, types_config__WEBPACK_IMPORTED_MODULE_8__["DisplayValue"].Load); return _this; } Hoist2m4wMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-hoist-2m4w-mechanical-svg-component', template: __webpack_require__(/*! ./hoist-2m4w-mechanical-svg.component.html */ "./src/app/components/deprecated/hoist/hoist-2m4w-mechanical-svg.component.html"), styles: [__webpack_require__(/*! ../../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_5__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], Hoist2m4wMechanicalSvgComponent); return Hoist2m4wMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-ctk-electrical-svg.component.html": /*!*************************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-ctk-electrical-svg.component.html ***! \*************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n M1\n \n \n \n \n \n\n \n \n \n M1\n \n \n \n \n\n \n \n M2\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.driveStates[1].displayValue | unitsystemconvert:vm?.driveStates[1].displayValueNaturalKey:lang}}\n {{vm?.driveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang}}\n {{'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit}}\n \n \n\n\n\n\n" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-ctk-electrical-svg.component.ts": /*!***********************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-ctk-electrical-svg.component.ts ***! \***********************************************************************************/ /*! exports provided: HoistCtkElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistCtkElectricalSvgComponent", function() { return HoistCtkElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_models_deprecated_hoist_electrical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/deprecated/hoist-electrical-ctk.viewmodel */ "./src/app/models/deprecated/hoist-electrical-ctk.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * @deprecated Use configurable svg page to create hoist pages */ var HoistCtkElectricalSvgComponent = /** @class */ (function (_super) { __extends(HoistCtkElectricalSvgComponent, _super); function HoistCtkElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this._vm = new app_models_deprecated_hoist_electrical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__["HoistElectricalCtkViewModel"](_this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].ActSpeed); return _this; } HoistCtkElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'hoist-ctk-electrical-svg', styles: [__webpack_require__(/*! ../../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./hoist-ctk-electrical-svg.component.html */ "./src/app/components/deprecated/hoist/hoist-ctk-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"]]) ], HoistCtkElectricalSvgComponent); return HoistCtkElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-ctk-mechanical-svg.component.html": /*!*************************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-ctk-mechanical-svg.component.html ***! \*************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n O\n \n \n \n \n\n \n \n \n \n {{vm?.speedPos | unitsystemconvert: 'Hst_SpeedEval_ActEncSpeed'}}{{'Hst_SpeedEval_ActEncSpeed' | unitsystemunit }}\n {{vm?.maxSpeedPos| unitsystemconvert: 'Hst_SpeedLimit_MaxSpeedPosDir'}}{{'Hst_SpeedLimit_MaxSpeedPosDir' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: 'Hst_SpeedEval_ActEncSpeed'}}{{'Hst_SpeedEval_ActEncSpeed' | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: 'Hst_SpeedLimit_MaxSpeedNegDir'}}{{'Hst_SpeedLimit_MaxSpeedNegDir' | unitsystemunit }}\n \n \n \n M\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n y\n \n \n \n \n \n y\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.driveStates[1].displayValue | unitsystemconvert:vm?.driveStates[1].displayValueNaturalKey:lang}}\n {{vm?.driveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-ctk-mechanical-svg.component.ts": /*!***********************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-ctk-mechanical-svg.component.ts ***! \***********************************************************************************/ /*! exports provided: HoistCtkMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistCtkMechanicalSvgComponent", function() { return HoistCtkMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_models_deprecated_hoist_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/deprecated/hoist-mechanical-ctk.viewmodel */ "./src/app/models/deprecated/hoist-mechanical-ctk.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * @deprecated Use configurable svg page to create hoist pages */ var HoistCtkMechanicalSvgComponent = /** @class */ (function (_super) { __extends(HoistCtkMechanicalSvgComponent, _super); function HoistCtkMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this._vm = new app_models_deprecated_hoist_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__["HoistMechanicalCtkViewModel"](_this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].Load); return _this; } HoistCtkMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'hoist-ctk-mechanical-svg', styles: [__webpack_require__(/*! ../../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./hoist-ctk-mechanical-svg.component.html */ "./src/app/components/deprecated/hoist/hoist-ctk-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"]]) ], HoistCtkMechanicalSvgComponent); return HoistCtkMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-diagnostics.component.html": /*!******************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-diagnostics.component.html ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n
\n

\n releases\n

\n
\n
\n

\n interlocks\n

\n
\n
\n

\n speed_limits\n

\n
\n
\n
\n \n \n \n \n \n \n
\n
" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-diagnostics.component.scss": /*!******************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-diagnostics.component.scss ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".list-container {\n /* Margin to avoid content overlap from Alarm badge */\n margin-bottom: 70px; }\n" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-diagnostics.component.ts": /*!****************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-diagnostics.component.ts ***! \****************************************************************************/ /*! exports provided: HoistDiagnosticsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistDiagnosticsComponent", function() { return HoistDiagnosticsComponent; }); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../types/config */ "./src/types/config.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * @deprecated Use configurable svg page to create hoist pages */ var HoistDiagnosticsComponent = /** @class */ (function () { function HoistDiagnosticsComponent(_configService) { this._configService = _configService; this._speedLimitValues = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"]()); this._interlockValues = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"]()); this._releaseValues = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"]()); this.speedLimitObservableCollection = this._speedLimitValues.asObservable(); this.interlockObservableCollection = this._interlockValues.asObservable(); this.releaseObservableCollection = this._releaseValues.asObservable(); } HoistDiagnosticsComponent_1 = HoistDiagnosticsComponent; HoistDiagnosticsComponent.isEnabled = function (craneConfig) { var sirDataPoints = HoistDiagnosticsComponent_1.resolveSIRDataPoints(craneConfig); return sirDataPoints != null && sirDataPoints.length > 0; }; HoistDiagnosticsComponent.resolveSIRDataPoints = function (craneConfig) { var sirDataPoints = []; var craneSelector; switch (craneConfig.hoistType) { case _types_config__WEBPACK_IMPORTED_MODULE_0__["HoistType"].Ctk: craneSelector = 'ctk'; break; case _types_config__WEBPACK_IMPORTED_MODULE_0__["HoistType"].Spider: craneSelector = 'rtg'; break; case _types_config__WEBPACK_IMPORTED_MODULE_0__["HoistType"].M2W4: craneSelector = '2m4w'; break; default: craneSelector = 'ctk'; break; } var mechanical = craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasHoist].components.find(function (e) { return e.id === "mechanical-" + craneSelector; }); if (mechanical != null && mechanical.enabled && mechanical.components != null) { var limitsPositive = mechanical.components.find(function (e) { return e.id === 'speed-limit-up' || e.id === 'speedLimitPositive'; }); if (limitsPositive != null && limitsPositive.enabled && limitsPositive.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsPositive.quickviewDatapoints); } var limitsNegative = mechanical.components.find(function (e) { return e.id === 'speed-limit-down' || e.id === 'speedLimitNegative'; }); if (limitsNegative != null && limitsNegative.enabled && limitsNegative.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsNegative.quickviewDatapoints); } } return sirDataPoints; }; HoistDiagnosticsComponent.prototype.ngOnInit = function () { var sirDataPoints = HoistDiagnosticsComponent_1.resolveSIRDataPoints(this._configService.craneConfig); this.initSIRDataPoints(sirDataPoints); }; HoistDiagnosticsComponent.prototype.ngOnDestroy = function () { if (this._speedLimitValues != null) { this._speedLimitValues.unsubscribe(); } if (this._interlockValues != null) { this._interlockValues.unsubscribe(); } if (this._releaseValues != null) { this._releaseValues.unsubscribe(); } }; HoistDiagnosticsComponent.prototype.initSIRDataPoints = function (datapoints) { var speedLimitCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"](); var interlockCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"](); var releaseCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"](); var checkingSet = new Set(); datapoints.filter(function (v, i, a) { return a.indexOf(v) === i; }).forEach(function (x) { if (x != null && x.enabled && !checkingSet.has(x.naturalKey)) { switch (x.viewTemplate) { case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["CustomItemTemplate"].Speedlimit: { speedLimitCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["CustomItemTemplate"].Interlock: { interlockCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["CustomItemTemplate"].Release: { releaseCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } } } }); this._speedLimitValues.next(speedLimitCollection); this._interlockValues.next(interlockCollection); this._releaseValues.next(releaseCollection); }; HoistDiagnosticsComponent = HoistDiagnosticsComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'hoist-diagnostics', template: __webpack_require__(/*! ./hoist-diagnostics.component.html */ "./src/app/components/deprecated/hoist/hoist-diagnostics.component.html"), styles: [__webpack_require__(/*! ./hoist-diagnostics.component.scss */ "./src/app/components/deprecated/hoist/hoist-diagnostics.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_6__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_5__["ConfigService"]]) ], HoistDiagnosticsComponent); return HoistDiagnosticsComponent; var HoistDiagnosticsComponent_1; }()); /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-rtg-electrical-svg.component.html": /*!*************************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-rtg-electrical-svg.component.html ***! \*************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.driveStates[1].displayValue | unitsystemconvert:vm?.driveStates[1].displayValueNaturalKey:lang}}\n {{vm?.driveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.driveStates[2].displayValue | unitsystemconvert:vm?.driveStates[2].displayValueNaturalKey:lang}}\n {{vm?.driveStates[2].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.driveStates[3].displayValue | unitsystemconvert:vm?.driveStates[3].displayValueNaturalKey:lang}}\n {{vm?.driveStates[3].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.driveStates[4].displayValue | unitsystemconvert:vm?.driveStates[4].displayValueNaturalKey:lang}}\n {{vm?.driveStates[4].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.driveStates[5].displayValue | unitsystemconvert:vm?.driveStates[5].displayValueNaturalKey:lang}}\n {{vm?.driveStates[5].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.driveStates[6].displayValue | unitsystemconvert:vm?.driveStates[6].displayValueNaturalKey:lang}}\n {{vm?.driveStates[6].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.driveStates[7].displayValue | unitsystemconvert:vm?.driveStates[7].displayValueNaturalKey:lang}}\n {{vm?.driveStates[7].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{ vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang }} \n {{ 'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n \n \n M5\n \n \n \n M6\n \n \n \n M7\n \n \n \n M8\n \n \n\n\n\n" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-rtg-electrical-svg.component.ts": /*!***********************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-rtg-electrical-svg.component.ts ***! \***********************************************************************************/ /*! exports provided: HoistRtgElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistRtgElectricalSvgComponent", function() { return HoistRtgElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_models_deprecated_hoist_electrical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/deprecated/hoist-electrical-rtg.viewmodel */ "./src/app/models/deprecated/hoist-electrical-rtg.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * @deprecated Use configurable svg page to create hoist pages */ var HoistRtgElectricalSvgComponent = /** @class */ (function (_super) { __extends(HoistRtgElectricalSvgComponent, _super); function HoistRtgElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this._vm = new app_models_deprecated_hoist_electrical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_3__["HoistElectricalRtgViewModel"](_this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].OutputVoltage); return _this; } HoistRtgElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'hoist-rtg-electrical-svg', styles: [__webpack_require__(/*! ../../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./hoist-rtg-electrical-svg.component.html */ "./src/app/components/deprecated/hoist/hoist-rtg-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"]]) ], HoistRtgElectricalSvgComponent); return HoistRtgElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-rtg-mechanical-svg.component.html": /*!*************************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-rtg-mechanical-svg.component.html ***! \*************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n {{vm?.speedPos | unitsystemconvert: 'Hst_SpeedEval_ActEncSpeed'}}{{'Hst_SpeedEval_ActEncSpeed' | unitsystemunit }}\n {{vm?.maxSpeedPos| unitsystemconvert: 'Hst_SpeedLimit_MaxSpeedPosDir'}}{{'Hst_SpeedLimit_MaxSpeedPosDir' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: 'Hst_SpeedEval_ActEncSpeed'}}{{'Hst_SpeedEval_ActEncSpeed' | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: 'Hst_SpeedLimit_MaxSpeedNegDir'}}{{'Hst_SpeedLimit_MaxSpeedNegDir' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M2\n \n \n \n \n \n \n {{vm?.driveStates[1].displayValue | unitsystemconvert:vm?.driveStates[1].displayValueNaturalKey:lang}}\n {{vm?.driveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M6\n \n \n \n \n \n \n {{vm?.driveStates[5].displayValue | unitsystemconvert:vm?.driveStates[5].displayValueNaturalKey:lang}}\n {{vm?.driveStates[5].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M8\n \n \n \n \n \n \n {{vm?.driveStates[7].displayValue | unitsystemconvert:vm?.driveStates[7].displayValueNaturalKey:lang}}\n {{vm?.driveStates[7].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M4\n \n \n \n \n \n \n {{vm?.driveStates[3].displayValue | unitsystemconvert:vm?.driveStates[3].displayValueNaturalKey:lang}}\n {{vm?.driveStates[3].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M1\n \n \n \n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M5\n \n \n \n \n \n \n {{vm?.driveStates[4].displayValue | unitsystemconvert:vm?.driveStates[4].displayValueNaturalKey:lang}}\n {{vm?.driveStates[4].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M7\n \n \n \n \n \n \n {{vm?.driveStates[6].displayValue | unitsystemconvert:vm?.driveStates[6].displayValueNaturalKey:lang}}\n {{vm?.driveStates[6].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M3\n \n \n \n \n \n \n {{vm?.driveStates[2].displayValue | unitsystemconvert:vm?.driveStates[2].displayValueNaturalKey:lang}}\n {{vm?.driveStates[2].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist-rtg-mechanical-svg.component.ts": /*!***********************************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist-rtg-mechanical-svg.component.ts ***! \***********************************************************************************/ /*! exports provided: HoistRtgMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistRtgMechanicalSvgComponent", function() { return HoistRtgMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_models_deprecated_hoist_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/deprecated/hoist-mechanical-rtg.viewmodel */ "./src/app/models/deprecated/hoist-mechanical-rtg.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * @deprecated Use configurable svg page to create hoist pages */ var HoistRtgMechanicalSvgComponent = /** @class */ (function (_super) { __extends(HoistRtgMechanicalSvgComponent, _super); function HoistRtgMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this._vm = new app_models_deprecated_hoist_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_3__["HoistMechanicalRtgViewModel"](_this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].Load, configService, colorService); return _this; } HoistRtgMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'hoist-rtg-mechanical-svg', styles: [__webpack_require__(/*! ../../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./hoist-rtg-mechanical-svg.component.html */ "./src/app/components/deprecated/hoist/hoist-rtg-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"]]) ], HoistRtgMechanicalSvgComponent); return HoistRtgMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist.component.html": /*!******************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist.component.html ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = " \n\n\n" /***/ }), /***/ "./src/app/components/deprecated/hoist/hoist.component.ts": /*!****************************************************************!*\ !*** ./src/app/components/deprecated/hoist/hoist.component.ts ***! \****************************************************************/ /*! exports provided: DIAGNOSTICS_COMPONENT_ID, HoistComponent, HOIST_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIAGNOSTICS_COMPONENT_ID", function() { return DIAGNOSTICS_COMPONENT_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistComponent", function() { return HoistComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOIST_CHILD_ROUTES", function() { return HOIST_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/detail-router-svg-page.component */ "./src/app/components/common/detail-router-svg-page.component.ts"); /* harmony import */ var _hoist_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./hoist-ctk-electrical-svg.component */ "./src/app/components/deprecated/hoist/hoist-ctk-electrical-svg.component.ts"); /* harmony import */ var _hoist_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./hoist-ctk-mechanical-svg.component */ "./src/app/components/deprecated/hoist/hoist-ctk-mechanical-svg.component.ts"); /* harmony import */ var _hoist_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./hoist-diagnostics.component */ "./src/app/components/deprecated/hoist/hoist-diagnostics.component.ts"); /* harmony import */ var _hoist_2m4w_electrical_svg_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./hoist-2m4w-electrical-svg.component */ "./src/app/components/deprecated/hoist/hoist-2m4w-electrical-svg.component.ts"); /* harmony import */ var _hoist_2m4w_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./hoist-2m4w-mechanical-svg.component */ "./src/app/components/deprecated/hoist/hoist-2m4w-mechanical-svg.component.ts"); /* harmony import */ var _hoist_rtg_electrical_svg_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hoist-rtg-electrical-svg.component */ "./src/app/components/deprecated/hoist/hoist-rtg-electrical-svg.component.ts"); /* harmony import */ var _hoist_rtg_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./hoist-rtg-mechanical-svg.component */ "./src/app/components/deprecated/hoist/hoist-rtg-mechanical-svg.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DIAGNOSTICS_COMPONENT_ID = 'diagnostics'; /** * @deprecated Use configurable svg page to create hoist pages */ var HoistComponent = /** @class */ (function (_super) { __extends(HoistComponent, _super); function HoistComponent(viewService, router, activatedRoute, _configService) { var _this = _super.call(this, viewService, router, activatedRoute, 'hoist') || this; _this.viewService = viewService; _this.router = router; _this.activatedRoute = activatedRoute; _this._configService = _configService; return _this; } HoistComponent.prototype.initializeTabs = function () { var components = this._configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasHoist].components.filter(function (c) { return c.enabled; }); if (components != null) { if (_hoist_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__["HoistDiagnosticsComponent"].isEnabled(this._configService.craneConfig)) { // Default component which is not directly in the config components.push({ enabled: true, id: DIAGNOSTICS_COMPONENT_ID, title: 'diagnostics' }); } this._availableRoutes = components.map(function (e) { return "/hoist/" + e.id; }); this._tabTitles = components.map(function (e) { return e.title; }); } this.routeToDefaultTab(); }; Object.defineProperty(HoistComponent.prototype, "tabTitles", { get: function () { return this._tabTitles; }, enumerable: true, configurable: true }); Object.defineProperty(HoistComponent.prototype, "tabRoutes", { get: function () { return this._availableRoutes; }, enumerable: true, configurable: true }); HoistComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'hoist', template: __webpack_require__(/*! ./hoist.component.html */ "./src/app/components/deprecated/hoist/hoist.component.html"), // using animations on route navigation (showcase) styles: [':host { width: 100%; display: block; position: absolute; }'], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"]]) ], HoistComponent); return HoistComponent; }(_common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_6__["DetailRouterSvgPageComponent"])); var HOIST_CHILD_ROUTES = [ { path: 'mechanical-ctk', component: _hoist_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_8__["HoistCtkMechanicalSvgComponent"] }, { path: 'mechanical-rtg', component: _hoist_rtg_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_13__["HoistRtgMechanicalSvgComponent"] }, { path: 'mechanical-2m4w', component: _hoist_2m4w_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_11__["Hoist2m4wMechanicalSvgComponent"] }, { path: 'electrical-ctk', component: _hoist_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_7__["HoistCtkElectricalSvgComponent"] }, { path: 'electrical-rtg', component: _hoist_rtg_electrical_svg_component__WEBPACK_IMPORTED_MODULE_12__["HoistRtgElectricalSvgComponent"] }, { path: 'electrical-2m4w', component: _hoist_2m4w_electrical_svg_component__WEBPACK_IMPORTED_MODULE_10__["Hoist2m4wElectricalSvgComponent"] }, { path: DIAGNOSTICS_COMPONENT_ID, component: _hoist_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__["HoistDiagnosticsComponent"] } ]; /***/ }), /***/ "./src/app/components/drop-down-list/drop-down-list.component.html": /*!*************************************************************************!*\ !*** ./src/app/components/drop-down-list/drop-down-list.component.html ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n
\n
\n \n

Select_Tags

\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n\n
\n \n
\n \n
\n
\n \n \n \n \n \n\n \n \n \n \n
\n
\n

\n warning_message_tags

\n \n
\n
\n
\n
\n
" /***/ }), /***/ "./src/app/components/drop-down-list/drop-down-list.component.scss": /*!*************************************************************************!*\ !*** ./src/app/components/drop-down-list/drop-down-list.component.scss ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".layout-container {\n display: flex;\n align-items: flex-start;\n gap: 20px; }\n .layout-container .dropdown-container,\n .layout-container .selected-items-container {\n flex: 1; }\n .layout-container .dropdown-container .dropdown-menu,\n .layout-container .selected-items-container .dropdown-menu {\n position: absolute; }\n .downspace {\n margin-bottom: 60px; }\n .dropdown-menu {\n width: 130%; }\n .newly-added-tag {\n color: red; }\n #checkboxWeekly + label,\n#checkboxDaily + label {\n margin-right: 20px; }\n .container {\n display: -ms-grid;\n display: grid;\n place-items: inherit;\n width: 100%; }\n .container .box {\n width: 50%;\n padding: 10px;\n margin: 5px;\n text-align: left; }\n" /***/ }), /***/ "./src/app/components/drop-down-list/drop-down-list.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/drop-down-list/drop-down-list.component.ts ***! \***********************************************************************/ /*! exports provided: DropDownListComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropDownListComponent", function() { return DropDownListComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/maintenance/maintenance-point.service */ "./src/app/services/maintenance/maintenance-point.service.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DropDownListComponent = /** @class */ (function () { function DropDownListComponent(_service) { this._service = _service; this.itemsChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.tagsList = []; this.selectedItems = []; // Changed to store the entire DTO this.newlyAddedTagsList = []; this.confirmAddedTags = false; this.isWeekly = false; this.isDaily = false; this.showTagManager = false; this.showAddingNewTag = false; this.EMPTY_GUID = '00000000-0000-0000-0000-000000000000'; this.newTagName = ''; // Property to hold new tag name this.items = [].map(function (item) { return ({ name: item, checked: false }); }); // Temporarily store new custom tags here this.newCustomTags = []; } DropDownListComponent.prototype.ngOnInit = function () { var _this = this; this.fetchAllTags().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["tap"])(function (selectedItems) { _this.selectedItems = selectedItems.map(function (x) { return x; }); selectedItems.forEach(function (selectedItem) { var normalizedItem = selectedItem; var itemExists = _this.items.some(function (item) { return item.name === normalizedItem; }); if (!itemExists) { _this.items.push({ name: normalizedItem, checked: false, isCustom: !selectedItem.endsWith('_imported') }); } }); })).subscribe(function () { _this.setInitialChecks(); _this.addMissingTagsFromTagsList(); }); }; DropDownListComponent.prototype.updateItemsSelection = function () { var _this = this; // Existing logic to update items based on selectedItems // Normalize names when adding to the list var newItems = this.selectedItems .filter(function (itemName) { return !_this.items.some(function (item) { return item.name === itemName; }); }) .map(function (name) { return ({ name: name, checked: false, isDeleted: false, isCustom: !name.endsWith('_imported') }); }); this.items = this.items.concat(newItems); }; DropDownListComponent.prototype.setInitialChecks = function () { var _this = this; this.items.forEach(function (item) { var correspondingTag = _this.tagsList.find(function (p) { return p.tag === item.name; }); if (correspondingTag) { item.checked = !correspondingTag.isDeleted; item.isDeleted = correspondingTag.isDeleted; // Store isDeleted state } }); }; // Function to update the selected items DropDownListComponent.prototype.updateSelectedItems = function (itemName, isChecked) { var foundItem = this.items.find(function (item) { return item.name === itemName; }); if (!foundItem) return; foundItem.checked = isChecked; var tagIndex = this.tagsList.findIndex(function (tag) { return tag.tag === itemName; }); // If the item was checked, ensure it's in the selectedItems and isDeleted is false if (isChecked) { if (tagIndex > -1) { this.tagsList[tagIndex].isDeleted = false; } else { this.tagsList.push({ tag: itemName, isDeleted: false, maintenancePointId: this.maintenancePointId, id: this.EMPTY_GUID }); // Example, adjust as necessary } } else { // If unchecked, set isDeleted to true if (tagIndex > -1) { this.tagsList[tagIndex].isDeleted = true; } } this.itemsChange.emit(this.tagsList); // Emit the entire DTO list with updated isDeleted properties }; DropDownListComponent.prototype.onCheckboxChange = function (tagType, event) { if (tagType === 'Weekly') { this.isDaily = false; // Ensure "Daily" is unchecked if "Weekly" is checked } else if (tagType === 'Daily') { this.isWeekly = false; // Ensure "Weekly" is unchecked if "Daily" is checked } // Update newTagName based on the checkbox status this.updateTagNameWithCheckboxStatus(); }; DropDownListComponent.prototype.updateTagNameWithCheckboxStatus = function () { // Remove existing "Weekly" or "Daily" suffix if present var baseName = this.newTagName.replace(/ Weekly| Daily/g, ''); if (this.isWeekly) { this.newTagName = baseName + " Weekly"; } else if (this.isDaily) { this.newTagName = baseName + " Daily"; } else { this.newTagName = baseName; // No checkboxes are selected } }; DropDownListComponent.prototype.addCustomTag = function () { if (this.newTagName.trim() === '') return; // Prevent adding empty tags var tag = this.newTagName.trim(); // Reset checkboxes and newTagName after adding the tag this.isWeekly = this.isDaily = false; this.newTagName = ''; // Check if the tag already exists to avoid duplicates if (!this.items.some(function (item) { return item.name.toLowerCase() === tag.toLowerCase(); })) { this.items.push({ name: tag, checked: true, isDeleted: false, isCustom: true }); this.newlyAddedTagsList.push({ tag: tag, isDeleted: false, maintenancePointId: '', id: this.maintenancePointId }); // Assuming these fields are needed this.confirmAddedTags = true; // Show confirm button if at least one new tag is added } this.newTagName = ''; // Reset the input field }; DropDownListComponent.prototype.confirmTags = function () { // Iterate over the items array to clear the 'isCustom' flag for each item this.items.forEach(function (item) { if (item.isCustom) { item.isCustom = false; // Confirming the item, so it's no longer "newly added" } }); // Assuming newlyAddedTagsList holds the new tags that need to be added to tagsList // Merge the newly added tags with the existing tagsList this.tagsList = this.tagsList.concat(this.newlyAddedTagsList.filter(function (tag) { return !tag.isDeleted; })); // Reset the list of newly added tags since they've now been confirmed this.newlyAddedTagsList = []; // Emit the updated tagsList to the parent component or handle as needed this.itemsChange.emit(this.tagsList); // Additional state updates can be performed here if necessary // For example, hiding a confirmation button or resetting other component state this.confirmAddedTags = false; // Assuming this controls the display of a "Confirm" button }; DropDownListComponent.prototype.addMissingTagsFromTagsList = function () { var _this = this; // Iterate over tagsList this.tagsList.forEach(function (tagDto) { var normalizedName = tagDto.tag; // Check if the tag is not in items and not deleted if (!tagDto.isDeleted && !_this.items.some(function (item) { return item.name === normalizedName; })) { // Add the tag to items _this.items.push({ name: normalizedName, checked: true, isDeleted: tagDto.isDeleted, isCustom: !tagDto.tag.endsWith('_imported') // Set as custom if it does not have '_imported' }); } }); }; DropDownListComponent.prototype.uncheckAllCustomTags = function () { var _this = this; this.items = this.items.filter(function (item) { if (item.isCustom && item.checked) { return false; // Remove checked custom items } return true; // Keep all other items }); // Emit the updated tagsList, potentially after further processing this.itemsChange.emit(this.tagsList.filter(function (tag) { return !_this.isCustom(tag.tag); })); }; DropDownListComponent.prototype.isCustom = function (tagName) { return !tagName.endsWith('_imported'); }; DropDownListComponent.prototype.fetchAllTags = function (includeDeleted) { if (includeDeleted === void 0) { includeDeleted = true; } return this._service.getTags(includeDeleted); }; DropDownListComponent.prototype.toggleTagManager = function () { this.showTagManager = !this.showTagManager; }; DropDownListComponent.prototype.toggleAddingNewTag = function () { this.showAddingNewTag = !this.showAddingNewTag; }; DropDownListComponent.prototype.onTagsItemsChange = function (selectedItems) { this.tagsList = selectedItems; this.itemsChange.emit(this.tagsList); }; DropDownListComponent.prototype.OnCheckChange = function (receivedMessage) { var item = this.items.find(function (item) { return item.name === receivedMessage; }); if (item) { item.checked = false; } // Find the corresponding tag in the tagsList and update var tag = this.tagsList.find(function (t) { return t.tag === receivedMessage; }); if (tag) { tag.isDeleted = true; // Update isDeleted based on the checked status } this.itemsChange.emit(this.tagsList); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], DropDownListComponent.prototype, "itemsChange", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], DropDownListComponent.prototype, "tagsList", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], DropDownListComponent.prototype, "maintenancePointId", void 0); DropDownListComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-drop-down-list', template: __webpack_require__(/*! ./drop-down-list.component.html */ "./src/app/components/drop-down-list/drop-down-list.component.html"), styles: [__webpack_require__(/*! ./drop-down-list.component.scss */ "./src/app/components/drop-down-list/drop-down-list.component.scss")] }), __metadata("design:paramtypes", [app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_1__["MaintenancePointService"]]) ], DropDownListComponent); return DropDownListComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/control-type-mapping.ts": /*!*****************************************************************!*\ !*** ./src/app/components/dynamic-page/control-type-mapping.ts ***! \*****************************************************************/ /*! exports provided: ControlTypeMapping */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ControlTypeMapping", function() { return ControlTypeMapping; }); /* harmony import */ var _dynamic_page_controls_operator_button_tip_operator_button_tip_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dynamic-page-controls/operator-button-tip/operator-button-tip.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_button_toggle_operator_button_toggle_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dynamic-page-controls/operator-button-toggle/operator-button-toggle.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dynamic-page-controls/operator-chart/operator-chart.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _dynamic_page_controls_operator_datapoint_collection_operator_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_image_operator_image_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dynamic-page-controls/operator-image/operator-image.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_label_operator_label_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dynamic-page-controls/operator-label/operator-label.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_progress_bar_operator_progress_bar_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./dynamic-page-controls/operator-progress-bar/operator-progress-bar.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_offset_operator_offset_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./dynamic-page-controls/operator-offset/operator-offset.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_radiogroup_operator_radiogroup_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dynamic-page-controls/operator-radiogroup/operator-radiogroup.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_radiogroup_multi_operator_radiogroup_multi_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.ts"); /* harmony import */ var _dynamic_page_controls_operator_timerange_operator_timerange_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dynamic-page-controls/operator-timerange/operator-timerange.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_brake_svg_brake_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_hoist_electricalSchema_svg_control_unit_svg_control_unit_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_hoist_electricalSchema_svg_dc_bus_svg_dc_bus_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_common_svg_display_mode_button_svg_display_mode_button_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_hoist_electricalSchema_svg_frequency_converter_svg_frequency_converter_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_gear_box_svg_gear_box_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_common_svg_label_svg_label_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./dynamic-svg-page-controls/common/svg-label/svg-label.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_common_svg_line_svg_line_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./dynamic-svg-page-controls/common/svg-line/svg-line.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_motor_svg_motor_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_common_svg_shape_svg_shape_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./dynamic-svg-page-controls/common/svg-shape/svg-shape.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_speed_limitation_svg_speed_limitation_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_common_svg_value_container_svg_value_container_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_wire_drum_svg_wire_drum_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_common_svg_state_text_value_container_svg_state_text_value_container_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_card_position_indicator_svg_position_indicator_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.ts"); /* harmony import */ var _dynamic_svg_page_controls_card_level_indicator_svg_level_indicator_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.ts"); var ControlTypeMapping = (_a = {}, _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].None] = undefined, _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].TipButton] = _dynamic_page_controls_operator_button_tip_operator_button_tip_component__WEBPACK_IMPORTED_MODULE_0__["OperatorButtonTipComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].ToggleButton] = _dynamic_page_controls_operator_button_toggle_operator_button_toggle_component__WEBPACK_IMPORTED_MODULE_1__["OperatorButtonToggleComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].RadioGroup] = _dynamic_page_controls_operator_radiogroup_operator_radiogroup_component__WEBPACK_IMPORTED_MODULE_9__["OperatorRadiogroupComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].RadioGroupMulti] = _dynamic_page_controls_operator_radiogroup_multi_operator_radiogroup_multi_component__WEBPACK_IMPORTED_MODULE_10__["OperatorRadiogroupMultiComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].TimeRange] = _dynamic_page_controls_operator_timerange_operator_timerange_component__WEBPACK_IMPORTED_MODULE_11__["OperatorTimerangeComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].Offset] = _dynamic_page_controls_operator_offset_operator_offset_component__WEBPACK_IMPORTED_MODULE_8__["OperatorOffsetComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].Label] = _dynamic_page_controls_operator_label_operator_label_component__WEBPACK_IMPORTED_MODULE_6__["OperatorLabelComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].ProgressBar] = _dynamic_page_controls_operator_progress_bar_operator_progress_bar_component__WEBPACK_IMPORTED_MODULE_7__["OperatorProgressBarComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].DatapointCollection] = _dynamic_page_controls_operator_datapoint_collection_operator_datapoint_collection_component__WEBPACK_IMPORTED_MODULE_4__["OperatorDatapointCollectionComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].Chart] = _dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["OperatorChartComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].Image] = _dynamic_page_controls_operator_image_operator_image_component__WEBPACK_IMPORTED_MODULE_5__["OperatorImageComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].Shape] = _dynamic_svg_page_controls_common_svg_shape_svg_shape_component__WEBPACK_IMPORTED_MODULE_21__["SvgShapeComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].Line] = _dynamic_svg_page_controls_common_svg_line_svg_line_component__WEBPACK_IMPORTED_MODULE_19__["SvgLineComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].LabelSVG] = _dynamic_svg_page_controls_common_svg_label_svg_label_component__WEBPACK_IMPORTED_MODULE_18__["SvgLabelComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].ValueContainer] = _dynamic_svg_page_controls_common_svg_value_container_svg_value_container_component__WEBPACK_IMPORTED_MODULE_23__["SvgValueContainerComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].DisplayModeButton] = _dynamic_svg_page_controls_common_svg_display_mode_button_svg_display_mode_button_component__WEBPACK_IMPORTED_MODULE_15__["SvgDisplayModeButtonComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].SpeedLimitation] = _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_speed_limitation_svg_speed_limitation_component__WEBPACK_IMPORTED_MODULE_22__["SvgSpeedLimitationComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].GearBox] = _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_gear_box_svg_gear_box_component__WEBPACK_IMPORTED_MODULE_17__["SvgGearBoxComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].WireDrum] = _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_wire_drum_svg_wire_drum_component__WEBPACK_IMPORTED_MODULE_24__["SvgWireDrumComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].Motor] = _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_motor_svg_motor_component__WEBPACK_IMPORTED_MODULE_20__["SvgMotorComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].Brake] = _dynamic_svg_page_controls_hoist_mechanicalSchema_svg_brake_svg_brake_component__WEBPACK_IMPORTED_MODULE_12__["SvgBrakeComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].FrequencyConverter] = _dynamic_svg_page_controls_hoist_electricalSchema_svg_frequency_converter_svg_frequency_converter_component__WEBPACK_IMPORTED_MODULE_16__["SvgFrequencyConverterComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].ControlUnit] = _dynamic_svg_page_controls_hoist_electricalSchema_svg_control_unit_svg_control_unit_component__WEBPACK_IMPORTED_MODULE_13__["SvgControlUnitComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].DCBus] = _dynamic_svg_page_controls_hoist_electricalSchema_svg_dc_bus_svg_dc_bus_component__WEBPACK_IMPORTED_MODULE_14__["SvgDcBusComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].StateTextValueContainer] = _dynamic_svg_page_controls_common_svg_state_text_value_container_svg_state_text_value_container_component__WEBPACK_IMPORTED_MODULE_25__["SvgStateTextValueContainerComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].PositionIndicator] = _dynamic_svg_page_controls_card_position_indicator_svg_position_indicator_component__WEBPACK_IMPORTED_MODULE_26__["SvgPositionIndicatorComponent"], _a[types_config__WEBPACK_IMPORTED_MODULE_3__["OperatorControlType"].LevelIndicator] = _dynamic_svg_page_controls_card_level_indicator_svg_level_indicator_component__WEBPACK_IMPORTED_MODULE_27__["SvgLevelIndicatorComponent"], _a); var _a; /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.html": /*!******************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.html ***! \******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n
\n \n \n \n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.scss": /*!******************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.scss ***! \******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".standalone-page {\n margin-bottom: 84px; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.ts": /*!****************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.ts ***! \****************************************************************************************************/ /*! exports provided: DynamicPageContainerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicPageContainerComponent", function() { return DynamicPageContainerComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DynamicPageContainerComponent = /** @class */ (function () { function DynamicPageContainerComponent() { this.confirmationTitle = app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"]; this.confirmationMessage = app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"]; this.confirmationAcceptText = app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"]; this.confirmationCancelText = app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"]; this.confirmationDismissible = false; this.confirmationModalActions = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this._confirmationResultHandler = function (_) { }; } DynamicPageContainerComponent.prototype.ngOnInit = function () { }; DynamicPageContainerComponent.prototype.onConfirmationModalResult = function (event) { this.onCloseConfirmationModal(); var confirmationResultHandler = this._confirmationResultHandler; if (confirmationResultHandler != null) { confirmationResultHandler(event); } }; DynamicPageContainerComponent.prototype.onShowConfirmationModal = function (config) { if (config != null) { this.confirmationTitle = config.title; this.confirmationMessage = config.message; this.confirmationAcceptText = config.acceptText; this.confirmationCancelText = config.cancelText; this.confirmationDismissible = config.dismissible; this._confirmationResultHandler = config.resultHandler; this.confirmationModalActions.emit({ action: 'modal', params: ['open'] }); } }; DynamicPageContainerComponent.prototype.onCloseConfirmationModal = function () { this.confirmationModalActions.emit({ action: 'modal', params: ['close'] }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('tabPage'), __metadata("design:type", Object) ], DynamicPageContainerComponent.prototype, "tabPage", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('isStandalonePage'), __metadata("design:type", Boolean) ], DynamicPageContainerComponent.prototype, "isStandalonePage", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('pageGridConfig'), __metadata("design:type", Object) ], DynamicPageContainerComponent.prototype, "pageGridConfig", void 0); DynamicPageContainerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'dynamic-page-container', template: __webpack_require__(/*! ./dynamic-page-container.component.html */ "./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.html"), styles: [__webpack_require__(/*! ./dynamic-page-container.component.scss */ "./src/app/components/dynamic-page/dynamic-page-container/dynamic-page-container.component.scss")], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }) ], DynamicPageContainerComponent); return DynamicPageContainerComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.html": /*!**********************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.html ***! \**********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n
\n
\n
{{title}}
\n
\n
\n\n \n \n
\n
\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.scss": /*!**********************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.scss ***! \**********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-button {\n background-color: #ffffff; }\n .default-theme.operator-button.is-on i, .default-theme.operator-button.tipped i {\n color: #ffffff; }\n .default-theme.operator-button.is-on .title, .default-theme.operator-button.tipped .title {\n color: #ffffff; }\n .default-theme.operator-button.is-on, .default-theme.operator-button.tipped {\n background-color: #00cf78; }\n .default-theme.operator-button i {\n color: #69727e; }\n .default-theme.operator-button .title {\n color: #69727e; }\n .testing-theme.operator-button {\n background-color: #ffffff; }\n .testing-theme.operator-button.is-on i, .testing-theme.operator-button.tipped i {\n color: #ffffff; }\n .testing-theme.operator-button.is-on .title, .testing-theme.operator-button.tipped .title {\n color: #ffffff; }\n .testing-theme.operator-button.is-on, .testing-theme.operator-button.tipped {\n background-color: #00cf78; }\n .testing-theme.operator-button i {\n color: #797979; }\n .testing-theme.operator-button .title {\n color: #797979; }\n .operator-button-tip-container {\n width: 100%;\n height: 96px;\n position: relative; }\n .operator-button-tip-container .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n .operator-button-tip-container .icon-column i {\n bottom: 0;\n position: absolute;\n width: 64px;\n text-align: center;\n font-size: 48px; }\n .operator-button-tip-container .control-column {\n max-width: 100%;\n left: 64px;\n right: 0;\n position: absolute; }\n .operator-button-tip-container .control-column .title {\n text-overflow: ellipsis;\n margin-bottom: 10px;\n max-width: 1024px;\n white-space: nowrap;\n overflow: hidden; }\n .operator-button-tip-container .control-column .operator-button {\n cursor: pointer;\n width: 100%;\n height: 64px;\n border-radius: 2px;\n position: relative;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .operator-button-tip-container .control-column .operator-button i.on-off-icon {\n text-align: center !important;\n margin-top: 12px !important;\n width: 100% !important;\n font-size: 42px; }\n .operator-button-tip-container .control-column .operator-button:hover {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n .operator-button-tip-container .control-column .operator-button.tipped {\n box-shadow: none; }\n .operator-button-tip-container .control-column .operator-button .click-area {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 10; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.ts": /*!********************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.ts ***! \********************************************************************************************************************/ /*! exports provided: ButtonMode, OperatorButtonTipComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonMode", function() { return ButtonMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorButtonTipComponent", function() { return OperatorButtonTipComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _models_data_point__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ButtonMode; (function (ButtonMode) { ButtonMode[ButtonMode["Toggle"] = 0] = "Toggle"; ButtonMode[ButtonMode["Tip"] = 1] = "Tip"; })(ButtonMode || (ButtonMode = {})); var OperatorButtonTipComponent = /** @class */ (function (_super) { __extends(OperatorButtonTipComponent, _super); function OperatorButtonTipComponent(dataPointService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.isOn = false; _this.tipped = false; _this.buttonModes = ButtonMode; _this._isWriting = false; return _this; } Object.defineProperty(OperatorButtonTipComponent.prototype, "settings", { set: function (value) { // set from dynamic component loader this.naturalKeyWrite = value.nkWrite; }, enumerable: true, configurable: true }); OperatorButtonTipComponent.prototype.ngOnInit = function () { }; OperatorButtonTipComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); this.stopWriting(); }; OperatorButtonTipComponent.prototype.onValueChanged = function (naturalKey, data) { this.isOn = data == true; }; OperatorButtonTipComponent.prototype.onDown = function () { this.tipped = true; this.repeatWrite(true); return false; }; OperatorButtonTipComponent.prototype.onUp = function () { this.tipped = false; this.stopWriting(); this.writeValue(false); return false; }; OperatorButtonTipComponent.prototype.onCancel = function () { if (this.tipped) { this.stopWriting(); this.writeValue(false); } this.tipped = false; return false; }; OperatorButtonTipComponent.prototype.repeatWrite = function (value) { var _this = this; // ensure being subscribed to only one timer at a time this.stopWriting(); this._repeatTimerSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["timer"])(0, 100).subscribe(function () { return _this.writeValue(value); }); }; OperatorButtonTipComponent.prototype.stopWriting = function () { if (this._repeatTimerSubscription) { this._repeatTimerSubscription.unsubscribe(); } }; OperatorButtonTipComponent.prototype.writeValue = function (value) { var _this = this; if (!this.naturalKeyWrite || this.naturalKeyWrite.length === 0) { return; } if (!this._isWriting) { this._isWriting = true; var writeValue = value; var buttonCommandDataPoint = new _models_data_point__WEBPACK_IMPORTED_MODULE_2__["DataPoint"](this.naturalKeyWrite, writeValue); var writePromise = this.dataPointService.writeDataPoint(buttonCommandDataPoint); writePromise.then(function () { return _this._isWriting = false; }).catch(function () { return _this._isWriting = false; }); } else { console.log('This button is already writing, skipping this write.'); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-write'), __metadata("design:type", String) ], OperatorButtonTipComponent.prototype, "naturalKeyWrite", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], OperatorButtonTipComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], OperatorButtonTipComponent.prototype, "icon", void 0); OperatorButtonTipComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'operator-button-tip', template: __webpack_require__(/*! ./operator-button-tip.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.html"), styles: [__webpack_require__(/*! ./operator-button-tip.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-tip/operator-button-tip.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__["DataPointService"]]) ], OperatorButtonTipComponent); return OperatorButtonTipComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.html": /*!****************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.html ***! \****************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n \n \n
\n
\n
\n
{{title}}
\n
\n\n
\n \n \n
\n
\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.scss": /*!****************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.scss ***! \****************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-button {\n background-color: #ffffff; }\n .default-theme.operator-button.is-on i, .default-theme.operator-button.tipped i {\n color: #ffffff; }\n .default-theme.operator-button.is-on .title, .default-theme.operator-button.tipped .title {\n color: #ffffff; }\n .default-theme.operator-button.disabled {\n background-color: #eaebed; }\n .default-theme.operator-button.is-on {\n background-color: #00cf78; }\n .default-theme.operator-button.is-on.disabled {\n background-color: #00693d; }\n .default-theme.operator-button i {\n color: #69727e; }\n .default-theme.operator-button .title {\n color: #69727e; }\n .testing-theme.operator-button {\n background-color: #ffffff; }\n .testing-theme.operator-button.is-on i, .testing-theme.operator-button.tipped i {\n color: #ffffff; }\n .testing-theme.operator-button.is-on .title, .testing-theme.operator-button.tipped .title {\n color: #ffffff; }\n .testing-theme.operator-button.disabled {\n background-color: #bdc2c6; }\n .testing-theme.operator-button.is-on {\n background-color: #00cf78; }\n .testing-theme.operator-button.is-on.disabled {\n background-color: #00693d; }\n .testing-theme.operator-button i {\n color: #797979; }\n .testing-theme.operator-button .title {\n color: #797979; }\n .operator-button-container {\n width: 100%;\n height: 96px;\n position: relative; }\n .operator-button-container .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n .operator-button-container .icon-column i {\n bottom: 0;\n position: absolute;\n width: 64px;\n text-align: center;\n font-size: 48px; }\n .operator-button-container .control-column {\n position: absolute; }\n .operator-button-container .control-column, .operator-button-container .control-column-icon-empty {\n max-width: 100%;\n left: 64px;\n right: 0; }\n .operator-button-container .control-column .title, .operator-button-container .control-column-icon-empty .title {\n text-overflow: ellipsis;\n margin-bottom: 10px;\n max-width: 1024px;\n white-space: nowrap;\n overflow: hidden; }\n .operator-button-container .control-column .operator-button, .operator-button-container .control-column-icon-empty .operator-button {\n cursor: pointer;\n width: 100%;\n height: 64px;\n border-radius: 2px;\n position: relative;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .operator-button-container .control-column .operator-button i.on-off-icon, .operator-button-container .control-column-icon-empty .operator-button i.on-off-icon {\n text-align: center !important;\n margin-top: 12px !important;\n width: 100% !important;\n font-size: 42px; }\n .operator-button-container .control-column .operator-button:hover, .operator-button-container .control-column-icon-empty .operator-button:hover {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n .operator-button-container .control-column .operator-button:active, .operator-button-container .control-column-icon-empty .operator-button:active {\n box-shadow: none; }\n .operator-button-container .control-column .operator-button.disabled, .operator-button-container .control-column-icon-empty .operator-button.disabled {\n box-shadow: none;\n display: inline-block;\n cursor: default; }\n .operator-button-container .control-column .operator-button .click-area, .operator-button-container .control-column-icon-empty .operator-button .click-area {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 10; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.ts": /*!**************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.ts ***! \**************************************************************************************************************************/ /*! exports provided: OperatorButtonToggleComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorButtonToggleComponent", function() { return OperatorButtonToggleComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_components_common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/common/common-components/confirmation-modal/confirmation-modal.component */ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.ts"); /* harmony import */ var _models_data_point__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorButtonToggleComponent = /** @class */ (function (_super) { __extends(OperatorButtonToggleComponent, _super); function OperatorButtonToggleComponent(dataPointService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.isOn = false; _this.disabled = false; _this.showConfirmationModal = function () { return console.warn('ButtonToggle uses default "showConfirmationModal" implementation.'); }; return _this; } Object.defineProperty(OperatorButtonToggleComponent.prototype, "settings", { set: function (value) { // set from dynamic component loader this.naturalKeyRead = value.nkRead || ''; this.naturalKeyWrite = value.nkWrite; this.naturalKeyEnable = value.nkEnable; this.confirmationRequired = value.confirmationRequired; }, enumerable: true, configurable: true }); OperatorButtonToggleComponent.prototype.ngOnInit = function () { var naturalKeys = []; naturalKeys.push(this.naturalKeyRead); if (this.naturalKeyEnable != null && this.naturalKeyEnable['length'] != null && this.naturalKeyEnable.length > 0) { naturalKeys.push(this.naturalKeyEnable); } this.setNaturalKeys(naturalKeys); }; OperatorButtonToggleComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; OperatorButtonToggleComponent.prototype.onConfirmationModalResult = function (context, event) { if (event != null) { switch (event.result) { case app_components_common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_2__["ConfirmationResult"].Accept: { context.acceptClick(); break; } default: break; } } }; OperatorButtonToggleComponent.prototype.onValueChanged = function (naturalKey, data) { if (naturalKey === this.naturalKeyRead) { this.isOn = data == true; } if (naturalKey === this.naturalKeyEnable) { this.disabled = !data; } }; OperatorButtonToggleComponent.prototype.onClicked = function () { if (this.disabled) { return; } if (this.confirmationRequired && !this.isOn) { var showConfirmationModal = this.showConfirmationModal; if (showConfirmationModal != null) { showConfirmationModal(); } } else { this.acceptClick(); } }; OperatorButtonToggleComponent.prototype.acceptClick = function () { this.writeValue(true); }; OperatorButtonToggleComponent.prototype.writeValue = function (value) { if (!this.naturalKeyWrite || this.naturalKeyWrite.length === 0) { return; } var buttonCommandDataPoint = new _models_data_point__WEBPACK_IMPORTED_MODULE_3__["DataPoint"](this.naturalKeyWrite, value); this.dataPointService.writeDataPoint(buttonCommandDataPoint); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-read'), __metadata("design:type", String) ], OperatorButtonToggleComponent.prototype, "naturalKeyRead", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-write'), __metadata("design:type", String) ], OperatorButtonToggleComponent.prototype, "naturalKeyWrite", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-enable'), __metadata("design:type", String) ], OperatorButtonToggleComponent.prototype, "naturalKeyEnable", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('title'), __metadata("design:type", String) ], OperatorButtonToggleComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('icon'), __metadata("design:type", String) ], OperatorButtonToggleComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('confirmation-required'), __metadata("design:type", Object) ], OperatorButtonToggleComponent.prototype, "confirmationRequired", void 0); OperatorButtonToggleComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'operator-button-toggle', template: __webpack_require__(/*! ./operator-button-toggle.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.html"), styles: [__webpack_require__(/*! ./operator-button-toggle.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_4__["DataPointService"]]) ], OperatorButtonToggleComponent); return OperatorButtonToggleComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.html": /*!************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.html ***! \************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n " /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.scss": /*!************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.scss ***! \************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-label i {\n color: #69727e; }\n\n.default-theme.operator-label .title {\n color: #69727e; }\n\n.testing-theme.operator-label i {\n color: #797979; }\n\n.testing-theme.operator-label .title {\n color: #797979; }\n\n.canvas-wrapper {\n display: block;\n text-align: center;\n width: 100%;\n height: 100%; }\n\n.operator-chart {\n width: 100%;\n height: 96px;\n position: relative; }\n\n.operator-chart .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n\n.operator-chart .icon-column i {\n bottom: 0;\n position: absolute;\n width: 64px;\n text-align: center;\n font-size: 48px; }\n\n.operator-chart .control-column {\n left: 64px;\n right: 0;\n position: absolute; }\n\n.operator-chart .control-column .title {\n text-overflow: ellipsis;\n margin-bottom: 10px; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.ts": /*!**********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.ts ***! \**********************************************************************************************************/ /*! exports provided: ChartType, xAxisID, yAxisID, boolAxisID, DateTimeFormat, DateTimeExtendedFormat, TickStepSize, ChartTtlInterval, ChartDurationInterval, ChartUpdateInterval, ChartUnit, OperatorChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartType", function() { return ChartType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xAxisID", function() { return xAxisID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yAxisID", function() { return yAxisID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "boolAxisID", function() { return boolAxisID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateTimeFormat", function() { return DateTimeFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateTimeExtendedFormat", function() { return DateTimeExtendedFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TickStepSize", function() { return TickStepSize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartTtlInterval", function() { return ChartTtlInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartDurationInterval", function() { return ChartDurationInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartUpdateInterval", function() { return ChartUpdateInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartUnit", function() { return ChartUnit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorChartComponent", function() { return OperatorChartComponent; }); /* harmony import */ var app_components_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/components/datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! chart.js */ "./node_modules/chart.js/dist/Chart.js"); /* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(chart_js__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var app_pipes_unit_system_unit_pipe__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pipes/unit-system-unit.pipe */ "./src/app/pipes/unit-system-unit.pipe.ts"); /* harmony import */ var chartjs_plugin_zoom__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! chartjs-plugin-zoom */ "./node_modules/chartjs-plugin-zoom/dist/chartjs-plugin-zoom.js"); /* harmony import */ var chartjs_plugin_zoom__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(chartjs_plugin_zoom__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var chartjs_plugin_streaming__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! chartjs-plugin-streaming */ "./node_modules/chartjs-plugin-streaming/dist/chartjs-plugin-streaming.js"); /* harmony import */ var chartjs_plugin_streaming__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(chartjs_plugin_streaming__WEBPACK_IMPORTED_MODULE_14__); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var ChartType; (function (ChartType) { ChartType["Line"] = "line"; ChartType["Bar"] = "bar"; })(ChartType || (ChartType = {})); var xAxisID = 'x-axis-0'; var yAxisID = 'y-axis-0'; var boolAxisID = 'bool-axis-0'; var DateTimeFormat = 'HH:mm:ss'; var DateTimeExtendedFormat = DateTimeFormat + '.SSS'; var TickStepSize = 10; var ChartTtlInterval = 3 * 60 * 1000; // 3min - history var ChartDurationInterval = 10 * 1000; // 10s - init visible frame var ChartUpdateInterval = 1000; var ChartUnit = 'second'; var OperatorChartComponent = /** @class */ (function (_super) { __extends(OperatorChartComponent, _super); function OperatorChartComponent(_locale, _colorService, _configService, unitConversion, unitKeyService, translationService, dataPointService) { var _this = _super.call(this, dataPointService) || this; _this._locale = _locale; _this._colorService = _colorService; _this._configService = _configService; _this._datasetsRegistry = new Map(); _this._colorAllocationRegistry = new Map(); _this._allocatedColors = new Set(); _this._type = ChartType.Line; _this.isCompact = false; _this.isStandalone = true; _this.isRealtime = true; _this.onChartInit = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"](); _this.onChartRefresh = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"](); _this._colorPalete = _this._colorService.chartSeriesPalette; _this._unitSystemPipe = new app_pipes_unit_system_unit_pipe__WEBPACK_IMPORTED_MODULE_12__["UnitSystemUnitPipe"](unitConversion, unitKeyService); _this._translationPipe = new app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_9__["SmartTranslatePipe"](translationService); return _this; } OperatorChartComponent_1 = OperatorChartComponent; Object.defineProperty(OperatorChartComponent.prototype, "type", { get: function () { return this._type; }, set: function (value) { this._type = value; if (this._chart != null) { this._chart.config.type = value; } }, enumerable: true, configurable: true }); Object.defineProperty(OperatorChartComponent.prototype, "settings", { get: function () { return this._settings; }, set: function (value) { this._settings = value; }, enumerable: true, configurable: true }); Object.defineProperty(OperatorChartComponent.prototype, "labels", { set: function (labels) { if (this._chart != null && this._chart.data != null) { this._chart.data.labels = labels; } }, enumerable: true, configurable: true }); OperatorChartComponent.prototype.update = function (param) { if (this._chart != null) { if (param != null) { this._chart.update(param); } else { this._chart.update(); } } }; OperatorChartComponent.prototype.clear = function () { if (this._datasetsRegistry != null) { this._datasetsRegistry.clear(); } if (this._chart != null && this._chart.data != null && this._chart.data.datasets != null) { this._chart.data.datasets = []; } if (this._colorAllocationRegistry != null) { this._colorAllocationRegistry.clear(); } if (this._allocatedColors != null) { this._allocatedColors.clear(); } this.update({ duration: 0 }); }; OperatorChartComponent.prototype.ngOnInit = function () { var _this = this; // Init global settings chart_js__WEBPACK_IMPORTED_MODULE_1__["Chart"].defaults.global.defaultFontFamily = '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif'; chart_js__WEBPACK_IMPORTED_MODULE_1__["Chart"].defaults.global.defaultFontColor = 'rgb(102, 102, 102)'; chart_js__WEBPACK_IMPORTED_MODULE_1__["Chart"].defaults.global.defaultFontSize = 11; chart_js__WEBPACK_IMPORTED_MODULE_1__["Chart"].defaults.global.tooltips.enabled = false; chart_js__WEBPACK_IMPORTED_MODULE_1__["Chart"].defaults.global.legend.display = false; // Init refresh settings this._duration = this._settings != null && this._settings.showedTimeRange != null ? this._settings.showedTimeRange : ChartDurationInterval; this._ttl = this._settings != null && this._settings.storedTimeRange != null ? this._settings.storedTimeRange : ChartTtlInterval; this._refresh = this._settings != null && this._settings.updateFrequency != null ? this._settings.updateFrequency : ChartUpdateInterval; // Init datasets if there are any and attaching translation callbacks var chartConfig = OperatorChartComponent_1.initChartConfiguration(this.type, this.isCompact, this.isStandalone, this.isRealtime, this._duration, this._ttl, this._refresh); chartConfig = this.initTranslationCallbacks(this.isCompact, chartConfig); // Init chart this._chartConfig = chartConfig; this._chart = OperatorChartComponent_1.initChart(this.canvasRef, this._chartConfig); // Init X axe if (chartConfig.options != null && chartConfig.options.scales != null) { if (this.isRealtime) { var realtimeAxis = OperatorChartComponent_1.initRealtimeAxis(this._duration, this._ttl, this._refresh); if (this.isStandalone) { var naturalKeys_1 = []; var datapoints = this._settings != null ? this._settings.datapoints : undefined; if (datapoints != null) { datapoints.filter(function (x) { return x.enabled; }).forEach(function (x) { naturalKeys_1.push(x.naturalKey); _this.addDataset(x.naturalKey, x.title); }); this.setNaturalKeys(naturalKeys_1); } realtimeAxis.realtime.onRefresh = function (chart) { return _this.updateStandaloneRealtime(chart); }; } else { realtimeAxis.realtime.onRefresh = function (chart) { return _this.onChartRefresh.emit(chart); }; } chartConfig.options.scales.xAxes = [realtimeAxis]; } else { var commonAxis = { id: xAxisID, ticks: { maxRotation: 0 } }; chartConfig.options.scales.xAxes = [commonAxis]; } } // Ready this.update({ duration: 0 }); this.onChartInit.emit(this._chart); }; OperatorChartComponent.prototype.dispose = function () { this._chart.stop(); this._chart.destroy(); }; OperatorChartComponent.prototype.ngOnDestroy = function () { this.dispose(); _super.prototype.ngOnDestroy.call(this); }; OperatorChartComponent.prototype.exportImage = function (title, dateTime) { return __awaiter(this, void 0, void 0, function () { var translatedTitle, formattedBase, a; return __generator(this, function (_a) { translatedTitle = this.getTranslation(title); formattedBase = Object(app_app_constants__WEBPACK_IMPORTED_MODULE_7__["getExportFileName"])(translatedTitle, dateTime != null ? dateTime : new Date()); a = document.createElement('a'); a.href = this.canvasRef.nativeElement.toDataURL('image/png'); a.download = formattedBase + ".png"; a.click(); return [2 /*return*/]; }); }); }; OperatorChartComponent.prototype.togglePause = function (forcedValue) { var isPaused = false; var xAxis = this.getXAxis(); if (xAxis != null) { var realtimeAxis = xAxis; if (realtimeAxis != null && realtimeAxis.realtime != null) { isPaused = forcedValue != null ? forcedValue : !realtimeAxis.realtime.pause; realtimeAxis.realtime.pause = isPaused; } else { console.warn('Only "realtime" charts can be paused.'); } this.update(); } return isPaused; }; OperatorChartComponent.prototype.getZoomLevel = function () { if (this._chart != null && this.isRealtime) { var realtimeAxis = this.getXAxis(); if (realtimeAxis != null && realtimeAxis.realtime != null) { var configuredDuration = this._duration; if (configuredDuration !== 0) { return Math.round(realtimeAxis.realtime.duration / configuredDuration * 100); } } } return 100; }; OperatorChartComponent.prototype.getMaxZoomLevel = function () { if (this._chart != null && this.isRealtime) { var realtimeAxis = this.getXAxis(); if (realtimeAxis != null && realtimeAxis.realtime != null) { var configuredDuration = this._duration; var configuredTtl = this._ttl; if (configuredDuration !== 0) { return Math.round(configuredTtl / configuredDuration * 100); } } } return 100; }; OperatorChartComponent.prototype.zoomTo = function (value) { if (this._chart != null && this.isRealtime) { var realtimeAxis = this.getXAxis(); if (realtimeAxis != null && realtimeAxis.realtime != null) { switch (value) { // reset case 100: { var newDuration = this._duration; realtimeAxis.realtime.duration = newDuration; var newDelay = this._refresh; realtimeAxis.realtime.delay = newDelay; break; } // overview case Number.MIN_VALUE: { var newDuration = this._ttl; realtimeAxis.realtime.duration = newDuration; var newDelay = this._refresh; realtimeAxis.realtime.delay = newDelay; break; } default: { var factor = value / 100; var newDuration = this._duration * factor; realtimeAxis.realtime.duration = newDuration; break; } } } } }; OperatorChartComponent.prototype.getXAxis = function () { if (this._chartConfig != null && this._chartConfig.options != null && this._chartConfig.options.scales != null && this._chartConfig.options.scales.xAxes != null && this._chartConfig.options.scales.xAxes.length > 0) { var xAxis = this._chartConfig.options.scales.xAxes[0]; if (xAxis != null) { return xAxis; } } return undefined; }; OperatorChartComponent.prototype.updateStandaloneRealtime = function (_) { var dateTime = Date.now(); // Updating (adding) data for each nk var nks = Array.from(this._datasetsRegistry.keys()); for (var _i = 0, nks_1 = nks; _i < nks_1.length; _i++) { var naturalKey = nks_1[_i]; var datapoint = this.dataPoints.Get(naturalKey); var value = datapoint != null ? datapoint.data : undefined; var chartPoint = OperatorChartComponent_1.initChartPoint(value, dateTime); this.appendData(naturalKey, chartPoint); } }; OperatorChartComponent.prototype.appendData = function (key, newData) { if (this._datasetsRegistry != null) { var dataset = this._datasetsRegistry.get(key); if (dataset != null) { if (dataset.data == null) { dataset.data = []; } if (newData != null) { var dataArray = dataset.data; if (dataArray != null) { if (newData instanceof Array) { dataArray.push.apply(dataArray, newData); } else { dataArray.push(newData); } } } } } }; OperatorChartComponent.prototype.supplyData = function (key, newData) { if (this._datasetsRegistry != null) { var dataset = this._datasetsRegistry.get(key); if (dataset != null) { dataset.data = newData; } } }; OperatorChartComponent.prototype.hasDataset = function (key) { return this._datasetsRegistry != null && this._datasetsRegistry.has(key); }; OperatorChartComponent.prototype.getDatasetIds = function () { if (this._datasetsRegistry != null) { return Array.from(this._datasetsRegistry.keys()); } return []; }; OperatorChartComponent.prototype.addDataset = function (key, title, color, data) { if (this._datasetsRegistry != null) { var resolvedColor = color; if (color == null) { resolvedColor = this.allocColor(key); } if (resolvedColor != null) { var hoverColor = this._colorService.getMainColor(); var metadata = this._configService.craneConfig.datapointMetadata[key]; if (metadata != null && metadata.type != null) { var type = metadata.type; var dataset = OperatorChartComponent_1.initDataset(key, title, type, resolvedColor, hoverColor, true); if (data != null) { dataset.data = data; } this._datasetsRegistry.set(key, dataset); if (this._chart != null && this._chart.data != null && this._chart.data.datasets != null) { this._chart.data.datasets.push(dataset); } } } } }; OperatorChartComponent.prototype.removeDataset = function (key) { this.freeColor(key); if (this._datasetsRegistry != null) { this._datasetsRegistry.delete(key); } if (this._chart != null && this._chart.data != null && this._chart.data.datasets != null) { var newDatasets = this._chart.data.datasets.filter(function (x) { return x.id != key; }); this._chart.data.datasets = newDatasets; } }; OperatorChartComponent.prototype.allocColor = function (naturalKey) { var unusedColor = this._colorService.getUnusedColor(this._colorPalete, this._allocatedColors); this._allocatedColors.add(unusedColor); this._colorAllocationRegistry.set(naturalKey, unusedColor); return unusedColor; }; OperatorChartComponent.prototype.freeColor = function (naturalKey) { var allocatedColor = this._colorAllocationRegistry.get(naturalKey); this._colorAllocationRegistry.delete(naturalKey); if (allocatedColor != null) { this._allocatedColors.delete(allocatedColor); } }; OperatorChartComponent.prototype.initTranslationCallbacks = function (isCompact, chartConfig) { var _this = this; var options = chartConfig.options; if (options != null) { // Tooltip translation callback if (options.tooltips != null) { options.tooltips.callbacks = { label: function (tooltipItem, data) { return _this.initTooltipLabelCallback(tooltipItem, data); } }; } // Legends translation callback if (!isCompact && options.legend != null) { options.legend.labels = { generateLabels: function (chart) { return _this.initLegendLabelCallback(chart); } }; } } return chartConfig; }; OperatorChartComponent.prototype.initLegendLabelCallback = function (chart) { var legend = chart_js__WEBPACK_IMPORTED_MODULE_1__["Chart"].defaults.global.legend; if (legend != null && legend.labels != null && legend.labels.generateLabels != null) { var labels = legend.labels.generateLabels(chart); for (var _i = 0, labels_1 = labels; _i < labels_1.length; _i++) { var label = labels_1[_i]; if (label.text != null) { var translation = this.getTranslation(label.text); label.text = translation; } } return labels; } return []; }; OperatorChartComponent.prototype.initTooltipLabelCallback = function (tooltipItem, data) { var datasetIndex = tooltipItem.datasetIndex; var yLabel = tooltipItem.yLabel; var label = "[" + datasetIndex + "]: " + yLabel; if (yLabel != null) { var yLabelNumber = Number(yLabel); if (!isNaN(yLabelNumber)) { yLabel = parseFloat(yLabelNumber.toFixed(2)); } } if (datasetIndex != null && data != null && data.datasets != null) { var dataset = data.datasets[datasetIndex]; if (dataset != null) { var datasetLabel = dataset.label; if (datasetLabel != null && datasetLabel.length > 0) { datasetLabel = this.getTranslation(datasetLabel); label = datasetLabel + ": " + yLabel; } var nk = dataset.id; if (nk != null) { var unit = this.getUnit(nk); if (unit != null && unit.length > 0) { label = label + " " + unit; } } } } return label; }; OperatorChartComponent.prototype.getUnit = function (naturalKey) { return this._unitSystemPipe.transform(naturalKey); }; OperatorChartComponent.prototype.getTranslation = function (text) { var currentLanguage = this._locale.getCurrentLanguage(); return this._translationPipe.transform(text, currentLanguage); }; OperatorChartComponent.initChart = function (canvasRef, chartConfig) { var ctx = canvasRef.nativeElement.getContext('2d'); return new chart_js__WEBPACK_IMPORTED_MODULE_1__["Chart"](ctx, chartConfig); }; OperatorChartComponent.initChartConfiguration = function (chartType, isCompact, isStandalone, isRealtime, duration, ttl, refresh) { var chartConfig = { type: chartType, pointDotRadius: 4, data: { labels: [] }, options: { responsive: true, maintainAspectRatio: isStandalone, scales: { yAxes: [{ id: yAxisID, display: !isCompact, ticks: { minRotation: 0, suggestedMin: 0, padding: 4 }, position: 'left' }] }, legend: { display: isStandalone || (isRealtime && !isCompact) }, tooltips: { enabled: true, intersect: false, position: 'nearest', mode: isCompact ? 'nearest' : (isRealtime ? 'x' : 'index'), titleSpacing: 5, bodySpacing: 5 }, hover: { intersect: false, mode: isCompact ? 'nearest' : (isRealtime ? 'x' : 'index'), animationDuration: 0 // duration of animations when hovering an item }, animation: { duration: 0 }, elements: { line: { tension: 0 } // disables bezier curves } } }; if (isCompact && chartConfig.options != null && chartConfig.options.elements != null) { var pointConfig = { radius: 0, hoverRadius: 0, hoverBorderWidth: 0, borderWidth: 0 }; chartConfig.options.elements.point = pointConfig; } if (isRealtime && chartConfig.options != null) { // Configure zoom plugin // (should be configured via options as it is a part of streaming plugin) var panConfig = OperatorChartComponent_1.initPan(refresh, ttl); var zoomConfig = OperatorChartComponent_1.initZoom(duration, ttl); if (!isCompact) { var configOptions = chartConfig.options; configOptions.pan = panConfig; configOptions.zoom = zoomConfig; } // Configuring 'pure' plugins var plugins = {}; // Configure streaming plugin var streamingPlugin = { frameRate: 12 }; plugins.streaming = streamingPlugin; // Registering plugins chartConfig.options.plugins = plugins; // Adding extra bool axis if (chartConfig.options.scales != null && chartConfig.options.scales.yAxes != null) { var boolAxis = OperatorChartComponent_1.initBoolAxis(isCompact); chartConfig.options.scales.yAxes.push(boolAxis); } } return chartConfig; }; OperatorChartComponent.initPan = function (rangeMin, rangeMax) { var panConfig = { enabled: true, mode: 'x', rangeMin: { x: rangeMin }, rangeMax: { x: rangeMax } // Max value of the delay option }; return panConfig; }; OperatorChartComponent.initZoom = function (rangeMin, rangeMax) { var zoomConfig = { enabled: true, mode: 'x', rangeMin: { x: rangeMin }, rangeMax: { x: rangeMax }, onZoom: function (chart) { var configOptions = chart.chart.config.options; if (configOptions != null) { var realtimeAxis = chart.chart.config.options.scales.xAxes[0]; if (realtimeAxis != null && realtimeAxis.realtime != null) { var panPlugin = configOptions.pan; if (panPlugin != null && panPlugin.rangeMax != null && panPlugin.rangeMin != null) { panPlugin.rangeMax.x = Math.max(rangeMax - realtimeAxis.realtime.duration, panPlugin.rangeMin.x); realtimeAxis.realtime.delay = Math.min(Math.max(rangeMin, realtimeAxis.realtime.delay), panPlugin.rangeMax.x); } } } } }; return zoomConfig; }; OperatorChartComponent.initRealtimeAxis = function (duration, ttl, refresh, delay) { var realtimeAxe = { id: xAxisID, type: 'realtime', realtime: { pause: false, duration: duration, ttl: ttl, refresh: refresh, delay: delay != null ? delay : refresh }, time: { format: undefined, unit: ChartUnit, unitStepSize: TickStepSize, tooltipFormat: DateTimeExtendedFormat, displayFormats: { year: DateTimeFormat, month: DateTimeFormat, week: DateTimeFormat, day: DateTimeFormat, hour: DateTimeFormat, minute: DateTimeFormat, second: DateTimeFormat, millisecond: DateTimeExtendedFormat } }, ticks: { autoSkip: true, maxRotation: 0 } }; return realtimeAxe; }; OperatorChartComponent.initBoolAxis = function (isCompact) { var boolAxis = { id: boolAxisID, display: isCompact ? false : 'auto', minBarLength: 2, ticks: { minRotation: 0, min: -0.1, max: 1.1, padding: 4, stepSize: 1, precision: 0 }, gridLines: { borderDash: [5, 15] }, position: 'right', afterTickToLabelConversion: function (scale) { if (scale != null && Array.isArray(scale.ticks) && Array.isArray(scale.ticksAsNumbers)) { // set the first and last tick to null so it does not display // note, ticks[0] is the last tick and ticks[length - 1] is the first scale.ticks[0] = null; scale.ticks[scale.ticks.length - 1] = null; // need to do the same thing for this similar array which is used internally scale.ticksAsNumbers[0] = null; scale.ticksAsNumbers[scale.ticksAsNumbers.length - 1] = null; } } }; return boolAxis; }; OperatorChartComponent.initDataset = function (id, customLabel, type, color, hoverColor, isFilled, spansGaps) { if (isFilled === void 0) { isFilled = false; } if (spansGaps === void 0) { spansGaps = false; } var dataset = { id: id, label: customLabel, data: [], fill: isFilled ? color : false, lineTension: 0, spanGaps: spansGaps, borderWidth: 2, borderColor: color, backgroundColor: color, pointHoverBorderWidth: 6, pointHoverBorderColor: hoverColor, pointRadius: 0, pointHitRadius: 6, barPercentage: 0.8, minBarLength: 2, xAxisID: xAxisID }; switch (type) { case types_config__WEBPACK_IMPORTED_MODULE_6__["DataType"].Bool: { dataset.yAxisID = boolAxisID; break; } default: { dataset.yAxisID = yAxisID; break; } } return dataset; }; OperatorChartComponent.initChartPoint = function (y, x, r) { var point = {}; if (y != null) { point.y = y; } if (x != null) { point.x = x; } if (r != null) { point.r = r; } return point; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(), __metadata("design:type", String) ], OperatorChartComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(), __metadata("design:type", String) ], OperatorChartComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], OperatorChartComponent.prototype, "type", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(), __metadata("design:type", Boolean) ], OperatorChartComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(), __metadata("design:type", Boolean) ], OperatorChartComponent.prototype, "isStandalone", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(), __metadata("design:type", Boolean) ], OperatorChartComponent.prototype, "isRealtime", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"])('canvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]) ], OperatorChartComponent.prototype, "canvasRef", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"])(), __metadata("design:type", Object) ], OperatorChartComponent.prototype, "onChartInit", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"])(), __metadata("design:type", Object) ], OperatorChartComponent.prototype, "onChartRefresh", void 0); OperatorChartComponent = OperatorChartComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({ selector: 'operator-chart', template: __webpack_require__(/*! ./operator-chart.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.html"), styles: [__webpack_require__(/*! ./operator-chart.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.scss")], }), __metadata("design:paramtypes", [angular_l10n__WEBPACK_IMPORTED_MODULE_8__["LocaleService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_2__["ColorService"], _services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_10__["UnitConversionService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_11__["UnitKeyService"], angular_l10n__WEBPACK_IMPORTED_MODULE_8__["TranslationService"], app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"]]) ], OperatorChartComponent); return OperatorChartComponent; var OperatorChartComponent_1; }(app_components_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-control-loader/operator-control-loader.component.html": /*!******************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-control-loader/operator-control-loader.component.html ***! \******************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-control-loader/operator-control-loader.component.ts": /*!****************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-control-loader/operator-control-loader.component.ts ***! \****************************************************************************************************************************/ /*! exports provided: OperatorControlLoaderComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorControlLoaderComponent", function() { return OperatorControlLoaderComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/common-components/confirmation-modal/confirmation-modal.component */ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.ts"); /* harmony import */ var _control_type_mapping__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../control-type-mapping */ "./src/app/components/dynamic-page/control-type-mapping.ts"); /* harmony import */ var _operator_button_toggle_operator_button_toggle_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operator-button-toggle/operator-button-toggle.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-button-toggle/operator-button-toggle.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorControlLoaderComponent = /** @class */ (function () { function OperatorControlLoaderComponent(componentFactoryResolver) { this.componentFactoryResolver = componentFactoryResolver; this.showConfirmationModal = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } Object.defineProperty(OperatorControlLoaderComponent.prototype, "control", { set: function (control) { this._tabControl = control; this.updateComponent(); }, enumerable: true, configurable: true }); OperatorControlLoaderComponent.prototype.updateComponent = function () { if (this._tabControl == null) { this.disposeComponent(); return; } var typeMapping = _control_type_mapping__WEBPACK_IMPORTED_MODULE_2__["ControlTypeMapping"][this._tabControl.controlType]; if (this._controlComponent != null && (!typeMapping || !(this._controlComponent instanceof typeMapping))) { this.disposeComponent(); } if (this._controlComponent) { this.applySettings(this._controlComponent, this._tabControl); } else { this.loadDynamicContent(); } }; OperatorControlLoaderComponent.prototype.loadDynamicContent = function () { if (this._tabControl == null) return; var componentType = _control_type_mapping__WEBPACK_IMPORTED_MODULE_2__["ControlTypeMapping"][this._tabControl.controlType]; if (componentType == undefined) throw new Error("Unsupported component type"); var factory = this.componentFactoryResolver.resolveComponentFactory(componentType); this._componentRef = this.container.createComponent(factory); this._controlComponent = this._componentRef.instance; this.applySettings(this._controlComponent, this._tabControl); }; OperatorControlLoaderComponent.prototype.applySettings = function (controlComponent, controlConfig) { controlComponent.title = controlConfig ? controlConfig.title : ''; controlComponent.icon = controlConfig ? controlConfig.icon : ''; controlComponent.settings = controlConfig; if (controlComponent instanceof _operator_button_toggle_operator_button_toggle_component__WEBPACK_IMPORTED_MODULE_3__["OperatorButtonToggleComponent"]) { var buttonToggleControlConfig = controlConfig; if (buttonToggleControlConfig.confirmationRequired) this.applyButtonToggleComponentSettings(controlComponent, buttonToggleControlConfig); } }; OperatorControlLoaderComponent.prototype.applyButtonToggleComponentSettings = function (buttonToggleComponent, buttonToggleControlConfig) { var _this = this; var confirmationModalConfig = new _common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_1__["ConfirmationModalConfig"](buttonToggleControlConfig.confirmationTitle, buttonToggleControlConfig.confirmationMessage, buttonToggleControlConfig.confirmationAcceptText, buttonToggleControlConfig.confirmationCancelText, buttonToggleControlConfig.confirmationDismissible, function (e) { return buttonToggleComponent.onConfirmationModalResult(buttonToggleComponent, e); }); buttonToggleComponent.showConfirmationModal = function () { return _this.showConfirmationModal.emit(confirmationModalConfig); }; }; OperatorControlLoaderComponent.prototype.disposeComponent = function () { if (this._componentRef) { this._componentRef.destroy(); this._componentRef = undefined; } this._controlComponent = undefined; }; OperatorControlLoaderComponent.prototype.ngOnDestroy = function () { this.disposeComponent(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('controlContainer', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]) ], OperatorControlLoaderComponent.prototype, "container", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], OperatorControlLoaderComponent.prototype, "control", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], OperatorControlLoaderComponent.prototype, "showConfirmationModal", void 0); OperatorControlLoaderComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'operator-control-loader', template: __webpack_require__(/*! ./operator-control-loader.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-control-loader/operator-control-loader.component.html"), }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]]) ], OperatorControlLoaderComponent); return OperatorControlLoaderComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.html": /*!******************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.html ***! \******************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n \n \n
\n
\n
\n \n \n
\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.scss": /*!******************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.scss ***! \******************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-label i {\n color: #69727e; }\n\n.testing-theme.operator-label i {\n color: #797979; }\n\n.operator-datapoint-collection {\n width: 100%;\n height: 100%;\n position: relative; }\n\n.operator-datapoint-collection .icon-column {\n width: 64px;\n height: 100%;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: top; }\n\n.operator-datapoint-collection .icon-column i {\n font-size: 48px; }\n\n.operator-datapoint-collection .control-column {\n position: absolute; }\n\n.operator-datapoint-collection .control-column, .operator-datapoint-collection .control-column-icon-empty {\n left: 64px;\n right: 0; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.ts": /*!****************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.ts ***! \****************************************************************************************************************************************/ /*! exports provided: OperatorDatapointCollectionComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorDatapointCollectionComponent", function() { return OperatorDatapointCollectionComponent; }); /* harmony import */ var app_services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_models_data_point__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var app_services_keyboard_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/services/keyboard.service */ "./src/app/services/keyboard.service.ts"); /* harmony import */ var app_components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/components/toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var app_models_numpad_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/models/numpad-params */ "./src/app/models/numpad-params.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorDatapointCollectionComponent = /** @class */ (function () { function OperatorDatapointCollectionComponent(_datapointService, _dataPointRangeService, _keyboardService, _translate, _toastService, _authService) { this._datapointService = _datapointService; this._dataPointRangeService = _dataPointRangeService; this._keyboardService = _keyboardService; this._translate = _translate; this._toastService = _toastService; this._authService = _authService; this._subjectValues = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_5__["DataPointCollection"]()); this.observableCollection = this._subjectValues.asObservable(); } Object.defineProperty(OperatorDatapointCollectionComponent.prototype, "settings", { get: function () { return this._settings; }, set: function (value) { this._settings = value; }, enumerable: true, configurable: true }); OperatorDatapointCollectionComponent.prototype.ngOnInit = function () { var datapointCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_5__["DataPointCollection"](); this._settings.datapoints.filter(function (x) { return x.enabled; }).forEach(function (x) { return datapointCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey, naturalKeyWrite: x.naturalKeyWrite, writePermission: x.writePermission, requiresWritePermission: x.requiresWritePermission }); }); this._subjectValues.next(datapointCollection); }; OperatorDatapointCollectionComponent.prototype.ngOnDestroy = function () { }; OperatorDatapointCollectionComponent.prototype.onDataPointEdit = function (item) { var _this = this; if (item != null && item.naturalKeyWrite != null && item.requiresWritePermission != null && ((!item.requiresWritePermission) || (item.requiresWritePermission && item.writePermission != null && !!this._authService.getPermissionWithClaim(item.writePermission)))) { var naturalKey = item.naturalKey; var naturalKeyWrite_1 = item.naturalKeyWrite; var params = new app_models_numpad_params__WEBPACK_IMPORTED_MODULE_10__["NumpadParams"](); params.minValue = 0; params.maxValue = 100000000; var range = this._dataPointRangeService.getRange(naturalKey); if (range != null) { if (range.min != null) { params.minValue = range.min; } if (range.max != null) { params.maxValue = range.max; } } params.displayDecimals = true; params.title = item.title; params.successCallback = function (value) { return _this.writeDataPoint(naturalKeyWrite_1, value); }; this._keyboardService.requestUserInput(params, naturalKey); } else { var translatedMessage = this._translate.translateToCurrentLanguage('insufficient_rights'); this._toastService.showToastAsync(translatedMessage, app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_11__["TimeSpan"].Long, app_components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_9__["NotificationToastType"].Error); } }; OperatorDatapointCollectionComponent.prototype.writeDataPoint = function (naturalKey, value) { var dp = new app_models_data_point__WEBPACK_IMPORTED_MODULE_4__["DataPoint"](naturalKey, value); this._datapointService.writeDataPoint(dp, true); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(), __metadata("design:type", String) ], OperatorDatapointCollectionComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(), __metadata("design:type", String) ], OperatorDatapointCollectionComponent.prototype, "icon", void 0); OperatorDatapointCollectionComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({ selector: 'operator-datapoint-collection', template: __webpack_require__(/*! ./operator-datapoint-collection.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.html"), styles: [__webpack_require__(/*! ./operator-datapoint-collection.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-datapoint-collection/operator-datapoint-collection.component.scss")], }), __metadata("design:paramtypes", [app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__["DataPointService"], app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__["DataPointRangeService"], app_services_keyboard_service__WEBPACK_IMPORTED_MODULE_8__["KeyboardService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_11__["ToastService"], app_services_auth_service__WEBPACK_IMPORTED_MODULE_0__["AuthService"]]) ], OperatorDatapointCollectionComponent); return OperatorDatapointCollectionComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.html": /*!************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.html ***! \************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n

\n
\n {{title}}\n
\n

\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.scss": /*!************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.scss ***! \************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-image i {\n color: #69727e; }\n\n.default-theme.operator-image .title-wrapper {\n color: #69727e; }\n\n.testing-theme.operator-image i {\n color: #797979; }\n\n.testing-theme.operator-image .title-wrapper {\n color: #797979; }\n\n.operator-image {\n width: 100%;\n height: 100%;\n overflow: hidden; }\n\n.operator-image .image-wrapper {\n display: table;\n width: 100%; }\n\n.operator-image .image-wrapper i {\n width: 64px;\n height: 48px;\n font-size: 48px;\n line-height: 48px;\n text-align: center;\n display: table-cell;\n vertical-align: middle; }\n\n.operator-image .image-wrapper i::before {\n width: 64px;\n height: 48px;\n vertical-align: middle;\n display: inline-block; }\n\n.operator-image .image-wrapper .title-wrapper {\n width: 100%;\n max-width: 0;\n height: 48px;\n display: table-cell;\n vertical-align: middle;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.ts": /*!**********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.ts ***! \**********************************************************************************************************/ /*! exports provided: OperatorImageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorImageComponent", function() { return OperatorImageComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorImageComponent = /** @class */ (function () { function OperatorImageComponent() { } OperatorImageComponent_1 = OperatorImageComponent; Object.defineProperty(OperatorImageComponent.prototype, "settings", { set: function (value) { this._setting = value; }, enumerable: true, configurable: true }); OperatorImageComponent.prototype.ngOnDestroy = function () { }; Object.defineProperty(OperatorImageComponent.prototype, "imagePath", { get: function () { return OperatorImageComponent_1._assetPath + this._setting.assetFilePath; }, enumerable: true, configurable: true }); OperatorImageComponent._assetPath = '/files/assets/'; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorImageComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorImageComponent.prototype, "icon", void 0); OperatorImageComponent = OperatorImageComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'operator-image', template: __webpack_require__(/*! ./operator-image.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.html"), styles: [__webpack_require__(/*! ./operator-image.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-image/operator-image.component.scss")], }) ], OperatorImageComponent); return OperatorImageComponent; var OperatorImageComponent_1; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.html": /*!************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.html ***! \************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n

\n
\n \n
\n {{title}}\n
\n
\n

\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.scss": /*!************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.scss ***! \************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-label i {\n color: #69727e; }\n\n.default-theme.operator-label .title-wrapper {\n color: #69727e; }\n\n.testing-theme.operator-label i {\n color: #797979; }\n\n.testing-theme.operator-label .title-wrapper {\n color: #797979; }\n\n.operator-label {\n width: 100%;\n height: 100%;\n overflow: hidden; }\n\n.operator-label .label-wrapper {\n display: table;\n width: 100%; }\n\n.operator-label .label-wrapper i {\n width: 64px;\n height: 48px;\n font-size: 48px;\n line-height: 48px;\n text-align: center;\n display: table-cell;\n vertical-align: middle; }\n\n.operator-label .label-wrapper i::before {\n width: 64px;\n height: 48px;\n vertical-align: middle;\n display: inline-block; }\n\n.operator-label .label-wrapper .title-wrapper {\n width: 100%;\n max-width: 0;\n height: 48px;\n display: table-cell;\n vertical-align: middle;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.ts": /*!**********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.ts ***! \**********************************************************************************************************/ /*! exports provided: OperatorLabelComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorLabelComponent", function() { return OperatorLabelComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorLabelComponent = /** @class */ (function () { function OperatorLabelComponent() { } Object.defineProperty(OperatorLabelComponent.prototype, "settings", { set: function (value) { }, enumerable: true, configurable: true }); OperatorLabelComponent.prototype.ngOnDestroy = function () { }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorLabelComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorLabelComponent.prototype, "icon", void 0); OperatorLabelComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'operator-label', template: __webpack_require__(/*! ./operator-label.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.html"), styles: [__webpack_require__(/*! ./operator-label.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-label/operator-label.component.scss")], }) ], OperatorLabelComponent); return OperatorLabelComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.html": /*!**************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.html ***! \**************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n
\n
\n
{{title}}
\n
\n
\n \n
\n
\n {{value | unitsystemconvert:naturalKeyRead:lang}}{{naturalKeyRead\n | unitsystemunit}}\n
\n
\n \n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.scss": /*!**************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.scss ***! \**************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-offset .value-area,\n.default-theme.operator-offset .offset-button {\n background-color: #ffffff; }\n\n.default-theme.operator-offset.is-on {\n background-color: #00cf78; }\n\n.default-theme.operator-offset.is-on i {\n color: white; }\n\n.default-theme.operator-offset.is-on .title, .default-theme.operator-offset.is-on .value {\n color: white; }\n\n.default-theme.operator-offset .value {\n color: #293647; }\n\n.default-theme.operator-offset i {\n color: #69727e; }\n\n.default-theme.operator-offset .title {\n color: #69727e; }\n\n.default-theme.operator-offset .value .uom {\n color: #c7c7c7; }\n\n.default-theme.operator-offset .offset-button.waves-red .icon {\n color: #c7c7c7; }\n\n.testing-theme.operator-offset .value-area,\n.testing-theme.operator-offset .offset-button {\n background-color: #ffffff; }\n\n.testing-theme.operator-offset.is-on {\n background-color: #00cf78; }\n\n.testing-theme.operator-offset.is-on i {\n color: white; }\n\n.testing-theme.operator-offset.is-on .title, .testing-theme.operator-offset.is-on .value {\n color: white; }\n\n.testing-theme.operator-offset .value {\n color: #525252; }\n\n.testing-theme.operator-offset i {\n color: #797979; }\n\n.testing-theme.operator-offset .title {\n color: #797979; }\n\n.operator-offset-container {\n width: 100%;\n height: 96px;\n position: relative; }\n\n.operator-offset-container .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n\n.operator-offset-container .icon-column i {\n bottom: 0;\n position: absolute;\n width: 64px;\n text-align: center;\n font-size: 48px; }\n\n.operator-offset-container .control-column {\n max-width: 100%;\n left: 64px;\n right: 0;\n position: absolute; }\n\n.operator-offset-container .control-column .title {\n text-overflow: ellipsis;\n margin-bottom: 10px; }\n\n.operator-offset-container .control-column .operator-offset {\n border-radius: 2px;\n position: relative; }\n\n.operator-offset-container .control-column .operator-offset .offset-button {\n cursor: pointer;\n width: 64px;\n height: 64px;\n float: left;\n z-index: 10;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.operator-offset-container .control-column .operator-offset .offset-button .icon {\n font-size: 32px;\n text-align: center;\n margin-top: 18px;\n width: 100%; }\n\n.operator-offset-container .control-column .operator-offset .offset-button:hover {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n\n.operator-offset-container .control-column .operator-offset .offset-button:active {\n box-shadow: none; }\n\n.operator-offset-container .control-column .operator-offset .offset-button.waves-red {\n cursor: default;\n box-shadow: none;\n z-index: inherit; }\n\n.operator-offset-container .control-column .operator-offset .value-area {\n float: left;\n position: relative;\n width: calc(100% - 2 * 64px);\n height: 64px;\n cursor: pointer;\n transition: box-shadow 0.2s ease-in-out;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.operator-offset-container .control-column .operator-offset .value-area .value {\n position: absolute;\n top: 16px;\n left: 0;\n right: 0;\n font-size: 24px;\n text-align: center;\n text-transform: uppercase; }\n\n.operator-offset-container .control-column .operator-offset .value-area .value .uom {\n font-size: 14px;\n margin-left: 2px;\n text-transform: none; }\n\n.operator-offset-container .control-column .operator-offset .value-area:hover {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n\n.operator-offset-container .control-column .operator-offset .value-area:active {\n box-shadow: none; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.ts": /*!************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.ts ***! \************************************************************************************************************/ /*! exports provided: OperatorOffsetComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorOffsetComponent", function() { return OperatorOffsetComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _models_data_point__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _services_keyboard_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../services/keyboard.service */ "./src/app/services/keyboard.service.ts"); /* harmony import */ var _models_numpad_params__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../models/numpad-params */ "./src/app/models/numpad-params.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../services/unitkey.service */ "./src/app/services/unitkey.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorOffsetComponent = /** @class */ (function (_super) { __extends(OperatorOffsetComponent, _super); function OperatorOffsetComponent(dataPointService, _dataPointRangeService, _keyboardService, _unitConversion, _unitKeyService, _cmsTranslationService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this._dataPointRangeService = _dataPointRangeService; _this._keyboardService = _keyboardService; _this._unitConversion = _unitConversion; _this._unitKeyService = _unitKeyService; _this._cmsTranslationService = _cmsTranslationService; _this.step = 1; _this.value = 0; return _this; } Object.defineProperty(OperatorOffsetComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); Object.defineProperty(OperatorOffsetComponent.prototype, "settings", { set: function (value) { // set from dynamic component loader this.naturalKeyRead = value.nkRead; this.naturalKeyWrite = value.nkWrite; this.naturalKeyDecrement = value.nkWriteDecrement; this.naturalKeyIncrement = value.nkWriteIncrement; var numericStep = value.step != null ? Number(value.step) : 1; this.step = isNaN(numericStep) ? 1 : numericStep; }, enumerable: true, configurable: true }); OperatorOffsetComponent.prototype.ngOnInit = function () { this.setNaturalKeys([this.naturalKeyRead]); this._valueRange = this.naturalKeyWrite != null ? this._dataPointRangeService.getRange(this.naturalKeyWrite) : this._valueRange; this.canEdit = this.naturalKeyWrite != null; }; OperatorOffsetComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; OperatorOffsetComponent.prototype.onValueChanged = function (naturalKey, data) { this.value = data; }; Object.defineProperty(OperatorOffsetComponent.prototype, "canIncrement", { get: function () { if (this.naturalKeyIncrement != null) { return true; } return this._valueRange != null && this.value < this._valueRange.max; }, enumerable: true, configurable: true }); OperatorOffsetComponent.prototype.increment = function () { if (this.canIncrement) { if (this.naturalKeyIncrement != null) { this.setValue(this.naturalKeyIncrement, true); } else { var maxBound = Math.max(this.value + this.step, this._valueRange != null ? this._valueRange.min : Number.MIN_SAFE_INTEGER); var value = Math.min(this._valueRange != null ? this._valueRange.max : Number.MAX_SAFE_INTEGER, maxBound); this.setValue(this.naturalKeyWrite, value); } } }; Object.defineProperty(OperatorOffsetComponent.prototype, "canDecrement", { get: function () { if (this.naturalKeyDecrement != null) { return true; } return this._valueRange != null && this.value > this._valueRange.min; }, enumerable: true, configurable: true }); OperatorOffsetComponent.prototype.decrement = function () { if (this.canDecrement) { if (this.naturalKeyDecrement != null) { this.setValue(this.naturalKeyDecrement, true); } else { var minBound = Math.min(this.value - this.step, this._valueRange != null ? this._valueRange.max : Number.MAX_SAFE_INTEGER); var value = Math.max(this._valueRange != null ? this._valueRange.min : Number.MIN_SAFE_INTEGER, minBound); this.setValue(this.naturalKeyWrite, value); } } }; OperatorOffsetComponent.prototype.setValue = function (naturalKey, value) { if (naturalKey && naturalKey.length > 0) { var dataPoint = new _models_data_point__WEBPACK_IMPORTED_MODULE_3__["DataPoint"](naturalKey, value); this.dataPointService.writeDataPoint(dataPoint); } }; OperatorOffsetComponent.prototype.openNumpad = function () { var _this = this; var params = new _models_numpad_params__WEBPACK_IMPORTED_MODULE_8__["NumpadParams"](); params.title = this.title; params.successCallback = function (value) { return _this.setUserInputValue(value); }; this._keyboardService.requestUserInput(params, this.naturalKeyWrite); }; OperatorOffsetComponent.prototype.setUserInputValue = function (value) { console.log("Value <" + value + "> returned from soft-keyboard"); // get the UnitKey for the current naturalkey var unitKey = this._unitKeyService.keys.Get(this.naturalKeyWrite); if (unitKey != null) { // get the configuration for this UnitKey (from units.json) var unitConfig = this._unitConversion.getUnitConfig(unitKey); // find currently selected unit-system var unitSystem = this._unitConversion.selectedUnitSystem != null ? this._unitConversion.selectedUnitSystem : types_config__WEBPACK_IMPORTED_MODULE_6__["UnitSystem"].Metric; // assume the unit of the current user-input-value is in currently selected unitsystems unit var currentUnit = unitSystem === types_config__WEBPACK_IMPORTED_MODULE_6__["UnitSystem"].Metric ? unitConfig.metricUnit : unitConfig.imperialUnit; // get the siUnit for this unitKey, we need to convert this value to si unit var targetUnit = unitConfig.siUnit; // convert the value to the siUnit var convertedValue = this._unitConversion.convertValue(value, currentUnit, targetUnit); this.setValue(this.naturalKeyWrite, convertedValue); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('nk-read'), __metadata("design:type", String) ], OperatorOffsetComponent.prototype, "naturalKeyRead", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('nk-write'), __metadata("design:type", String) ], OperatorOffsetComponent.prototype, "naturalKeyWrite", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('nk-increment'), __metadata("design:type", String) ], OperatorOffsetComponent.prototype, "naturalKeyIncrement", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])('nk-decrement'), __metadata("design:type", String) ], OperatorOffsetComponent.prototype, "naturalKeyDecrement", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), __metadata("design:type", String) ], OperatorOffsetComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), __metadata("design:type", String) ], OperatorOffsetComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), __metadata("design:type", Object) ], OperatorOffsetComponent.prototype, "step", void 0); OperatorOffsetComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ selector: 'operator-offset', template: __webpack_require__(/*! ./operator-offset.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.html"), styles: [__webpack_require__(/*! ./operator-offset.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-offset/operator-offset.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], _services_keyboard_service__WEBPACK_IMPORTED_MODULE_7__["KeyboardService"], _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_9__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_10__["UnitKeyService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"]]) ], OperatorOffsetComponent); return OperatorOffsetComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.html": /*!**************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.html ***! \**************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n
\n\n
\n
{{ title }}
\n\n
\n
\n
\n
\n
\n
\n
\n
{{ calibrationStateLabel }}
\n
{{ progressValue }}%
\n
\n
\n
\n
\n
" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.scss": /*!**************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.scss ***! \**************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-progress-bar {\n background-color: #ffffff; }\n .default-theme.operator-progress-bar .group-button {\n background-color: #ffffff; }\n .default-theme.operator-progress-bar .group-button.disabled {\n background-color: #eaebed; }\n .default-theme.operator-progress-bar .group-button.selected {\n background-color: #00cf78; }\n .default-theme.operator-progress-bar .group-button.selected .button-title {\n color: white; }\n .default-theme.operator-progress-bar .group-button.selected .button-title .uom {\n color: white; }\n .default-theme.operator-progress-bar .button-title,\n .default-theme.operator-progress-bar .control-title {\n color: #69727e; }\n .default-theme.operator-progress-bar .button-title .uom {\n color: #c7c7c7; }\n .testing-theme.operator-progress-bar {\n background-color: #ffffff; }\n .testing-theme.operator-progress-bar .group-button {\n background-color: #ffffff; }\n .testing-theme.operator-progress-bar .group-button.disabled {\n background-color: #bdc2c6; }\n .testing-theme.operator-progress-bar .group-button.selected {\n background-color: #00cf78; }\n .testing-theme.operator-progress-bar .group-button.selected .button-title {\n color: white; }\n .testing-theme.operator-progress-bar .group-button.selected .button-title .uom {\n color: white; }\n .testing-theme.operator-progress-bar .button-title,\n .testing-theme.operator-progress-bar .control-title {\n color: #797979; }\n .operator-progress-bar-container {\n width: 100%;\n height: 96px;\n position: relative; }\n .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n .icon-column i {\n bottom: 0;\n position: absolute;\n width: 64px;\n text-align: center;\n font-size: 48px; }\n .control-column {\n position: absolute;\n left: 64px;\n /* This offsets the content to the right */\n right: 0; }\n .control-column,\n.control-column-icon-empty {\n left: 64px;\n right: 0; }\n .control-column .title,\n .control-column-icon-empty .title {\n text-overflow: ellipsis;\n margin-bottom: 10px;\n white-space: pre; }\n .control-column .operator-progress-bar,\n .control-column-icon-empty .operator-progress-bar {\n border-radius: 2px;\n position: relative;\n height: 64px; }\n .control-column .progress-bar-container,\n .control-column-icon-empty .progress-bar-container {\n width: 100%;\n height: 32px;\n background-color: #ddd;\n overflow: hidden;\n margin-bottom: 4px; }\n .control-column .progress-bar-fill,\n .control-column-icon-empty .progress-bar-fill {\n height: 100%;\n background-color: #4caf50;\n transition: width 0.3s ease;\n max-width: 100%; }\n .control-column .progress-bar-label,\n .control-column-icon-empty .progress-bar-label {\n font-size: 12px;\n text-align: right;\n color: #333;\n margin-right: 5px; }\n .control-column .progress-bar-footer,\n .control-column-icon-empty .progress-bar-footer {\n display: flex;\n justify-content: space-between;\n margin-top: 4px;\n font-size: 0.8em; }\n .control-column .progress-bar-state,\n .control-column-icon-empty .progress-bar-state {\n color: #666;\n margin-left: 5px; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.ts": /*!************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.ts ***! \************************************************************************************************************************/ /*! exports provided: OperatorProgressBarComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorProgressBarComponent", function() { return OperatorProgressBarComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorProgressBarComponent = /** @class */ (function (_super) { __extends(OperatorProgressBarComponent, _super); function OperatorProgressBarComponent(dataPointService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.calibrationStateLabel = ""; _this.progressValue = 0; _this.disabled = false; return _this; } Object.defineProperty(OperatorProgressBarComponent.prototype, "settings", { set: function (value) { this._settings = value; }, enumerable: true, configurable: true }); OperatorProgressBarComponent.prototype.ngOnInit = function () { // initialize only with the natural keys that are set (if empty => ignore) var usedVariables = [this._settings.nkProgress, this._settings.nkState].filter(function (v) { return v != null; }); this.setNaturalKeys(usedVariables); }; OperatorProgressBarComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; OperatorProgressBarComponent.prototype.onValueChanged = function (naturalKey, data) { if (naturalKey === this._settings.nkProgress && typeof data === 'number') { this.progressValue = Math.min(Math.max(data, 0), 100); } if (naturalKey === this._settings.nkState && typeof data === 'number') { if (data > this._settings.maxStateValues) this.calibrationStateLabel = ""; else this.calibrationStateLabel = this._settings.translationKey + data; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorProgressBarComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorProgressBarComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorProgressBarComponent.prototype, "nkState", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorProgressBarComponent.prototype, "nkProgress", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], OperatorProgressBarComponent.prototype, "nkEnable", void 0); OperatorProgressBarComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'operator-progress-bar', template: __webpack_require__(/*! ./operator-progress-bar.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.html"), styles: [__webpack_require__(/*! ./operator-progress-bar.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-progress-bar/operator-progress-bar.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_1__["DataPointService"]]) ], OperatorProgressBarComponent); return OperatorProgressBarComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_2__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.html": /*!**********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.html ***! \**********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n \n \n
\n
\n
\n
{{title}}
\n
\n
\n
\n \n {{item.title}}\n
\n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.scss": /*!**********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.scss ***! \**********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-radiogroup-multi {\n background-color: #ffffff; }\n .default-theme.operator-radiogroup-multi .group-button {\n background-color: #ffffff; }\n .default-theme.operator-radiogroup-multi .group-button.disabled {\n background-color: #eaebed; }\n .default-theme.operator-radiogroup-multi .group-button.selected {\n background-color: #00cf78; }\n .default-theme.operator-radiogroup-multi .group-button.selected .button-title {\n color: white; }\n .default-theme.operator-radiogroup-multi .group-button.selected .button-title .uom {\n color: white; }\n .default-theme.operator-radiogroup-multi .button-title, .default-theme.operator-radiogroup-multi .control-title {\n color: #69727e; }\n .default-theme.operator-radiogroup-multi .button-title .uom {\n color: #c7c7c7; }\n .testing-theme.operator-radiogroup-multi {\n background-color: #ffffff; }\n .testing-theme.operator-radiogroup-multi .group-button {\n background-color: #ffffff; }\n .testing-theme.operator-radiogroup-multi .group-button.disabled {\n background-color: #bdc2c6; }\n .testing-theme.operator-radiogroup-multi .group-button.selected {\n background-color: #00cf78; }\n .testing-theme.operator-radiogroup-multi .group-button.selected .button-title {\n color: white; }\n .testing-theme.operator-radiogroup-multi .group-button.selected .button-title .uom {\n color: white; }\n .testing-theme.operator-radiogroup-multi .button-title, .testing-theme.operator-radiogroup-multi .control-title {\n color: #797979; }\n .operator-radiogroup-multi-container {\n width: 100%;\n height: 96px;\n position: relative; }\n .operator-radiogroup-multi-container .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n .operator-radiogroup-multi-container .icon-column i {\n bottom: 0;\n position: absolute;\n width: 64px;\n text-align: center;\n font-size: 48px; }\n .operator-radiogroup-multi-container .control-column {\n position: absolute; }\n .operator-radiogroup-multi-container .control-column, .operator-radiogroup-multi-container .control-column-icon-empty {\n left: 64px;\n right: 0; }\n .operator-radiogroup-multi-container .control-column .title, .operator-radiogroup-multi-container .control-column-icon-empty .title {\n text-overflow: ellipsis;\n margin-bottom: 10px;\n white-space: pre; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi {\n border-radius: 2px;\n position: relative;\n height: 64px; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button {\n cursor: pointer;\n height: 64px;\n float: left;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button:hover, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button:hover {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button:active, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button:active {\n box-shadow: none; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button.disabled, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button.disabled {\n box-shadow: none;\n display: inline-block;\n cursor: default; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button .button-alignment-container, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button .button-alignment-container {\n display: table;\n width: 100%;\n height: 100%; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button .button-alignment-container .button-title, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button .button-alignment-container .button-title {\n display: table-cell;\n font-size: 20px;\n text-align: center;\n text-transform: uppercase;\n vertical-align: middle; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button .button-alignment-container .button-title i, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button .button-alignment-container .button-title i {\n height: 36px;\n font-size: 36px;\n line-height: 36px; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button .button-alignment-container .button-title.with-icon, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button .button-alignment-container .button-title.with-icon {\n top: 16px; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button .button-alignment-container .button-title.icon-and-text, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button .button-alignment-container .button-title.icon-and-text {\n font-size: 10px; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button .button-alignment-container .button-title.icon-and-text i, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button .button-alignment-container .button-title.icon-and-text i {\n display: block; }\n .operator-radiogroup-multi-container .control-column .operator-radiogroup-multi .group-button .button-alignment-container .button-title .uom, .operator-radiogroup-multi-container .control-column-icon-empty .operator-radiogroup-multi .group-button .button-alignment-container .button-title .uom {\n font-size: 14px;\n margin-left: 2px;\n text-transform: none; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.ts": /*!********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.ts ***! \********************************************************************************************************************************/ /*! exports provided: OperatorRadiogroupMultiComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorRadiogroupMultiComponent", function() { return OperatorRadiogroupMultiComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _models_data_point__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var typescript_collections__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! typescript-collections */ "./node_modules/typescript-collections/dist/lib/index.js"); /* harmony import */ var typescript_collections__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(typescript_collections__WEBPACK_IMPORTED_MODULE_4__); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorRadiogroupMultiComponent = /** @class */ (function (_super) { __extends(OperatorRadiogroupMultiComponent, _super); function OperatorRadiogroupMultiComponent(dataPointService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this._selectedIndexes = new typescript_collections__WEBPACK_IMPORTED_MODULE_4__["Set"](); _this.disabled = false; return _this; } Object.defineProperty(OperatorRadiogroupMultiComponent.prototype, "settings", { set: function (value) { // set from dynamic component loader this.items = value.multiItems.filter(function (x) { return x.enabled; }) || []; this._config = value; }, enumerable: true, configurable: true }); OperatorRadiogroupMultiComponent.prototype.ngOnInit = function () { // initialize only with the natural keys that are set (if empty => ignore) var readKeys = this.items.map(function (x) { return x.nkRead; }).reduce(function (a, b) { return a.concat(b); }, []).filter(function (x) { return !!x; }); this.naturalKeyEnable = this._config.nkEnable || ''; var updatedReadKeys = this._config.nkEnable ? readKeys.concat([this.naturalKeyEnable]) : readKeys; this.setNaturalKeys(updatedReadKeys); }; OperatorRadiogroupMultiComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; OperatorRadiogroupMultiComponent.prototype.onValueChanged = function (naturalKey, data) { var _this = this; if (naturalKey === this.naturalKeyEnable) { this.disabled = !data; } if (!this.items) { return; } var items = this.items.filter(function (x) { return x.nkRead.includes(naturalKey); }); for (var _i = 0, items_1 = items; _i < items_1.length; _i++) { var item = items_1[_i]; var shouldSelectItem = item.nkRead .map(function (x) { return _this.dataPoints.Get(x); }) .filter(function (x) { return x != null; }) .map(function (x) { return x.data; }) .reduce(function (a, b) { return a && b; }, true); var index = this.items.indexOf(item); if (shouldSelectItem) { this._selectedIndexes.add(index); } else { this._selectedIndexes.remove(index); } } }; OperatorRadiogroupMultiComponent.prototype.isSelected = function (index) { if (this.disabled) { return false; } return this._selectedIndexes.contains(index); }; OperatorRadiogroupMultiComponent.prototype.select = function (index) { if (this.disabled) { return; } var nkWrite = this.items[index].nkWrite; if (nkWrite) { var dataPoint = new _models_data_point__WEBPACK_IMPORTED_MODULE_2__["DataPoint"](nkWrite, this.items[index].value); console.log("writing " + this.items[index].value + " to " + nkWrite + "."); this.dataPointService.writeDataPoint(dataPoint); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", Array) ], OperatorRadiogroupMultiComponent.prototype, "items", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], OperatorRadiogroupMultiComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], OperatorRadiogroupMultiComponent.prototype, "icon", void 0); OperatorRadiogroupMultiComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'operator-radiogroup-multi', template: __webpack_require__(/*! ./operator-radiogroup-multi.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.html"), styles: [__webpack_require__(/*! ./operator-radiogroup-multi.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup-multi/operator-radiogroup-multi.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__["DataPointService"]]) ], OperatorRadiogroupMultiComponent); return OperatorRadiogroupMultiComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.html": /*!**********************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.html ***! \**********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n \n
\n
\n
{{title}}
\n
\n
\n
\n {{item.title}}\n
\n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.scss": /*!**********************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.scss ***! \**********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-radiogroup {\n background-color: #ffffff; }\n .default-theme.operator-radiogroup .group-button {\n background-color: #ffffff; }\n .default-theme.operator-radiogroup .group-button.selected {\n background-color: #00cf78; }\n .default-theme.operator-radiogroup .group-button.selected .button-title {\n color: white; }\n .default-theme.operator-radiogroup .group-button.selected .button-title .uom {\n color: white; }\n .default-theme.operator-radiogroup .button-title, .default-theme.operator-radiogroup .control-title {\n color: #69727e; }\n .default-theme.operator-radiogroup .button-title .uom {\n color: #c7c7c7; }\n .testing-theme.operator-radiogroup {\n background-color: #ffffff; }\n .testing-theme.operator-radiogroup .group-button {\n background-color: #ffffff; }\n .testing-theme.operator-radiogroup .group-button.selected {\n background-color: #00cf78; }\n .testing-theme.operator-radiogroup .group-button.selected .button-title {\n color: white; }\n .testing-theme.operator-radiogroup .group-button.selected .button-title .uom {\n color: white; }\n .testing-theme.operator-radiogroup .button-title, .testing-theme.operator-radiogroup .control-title {\n color: #797979; }\n .operator-radiogroup-container {\n width: 100%;\n height: 96px;\n position: relative; }\n .operator-radiogroup-container .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n .operator-radiogroup-container .icon-column i {\n bottom: 0;\n position: absolute;\n width: 64px;\n text-align: center;\n font-size: 48px; }\n .operator-radiogroup-container .control-column {\n max-width: 100%;\n left: 64px;\n right: 0;\n position: absolute; }\n .operator-radiogroup-container .control-column .title {\n text-overflow: ellipsis;\n margin-bottom: 10px; }\n .operator-radiogroup-container .control-column .operator-radiogroup {\n border-radius: 2px;\n position: relative;\n height: 64px;\n max-width: 100%; }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button {\n cursor: pointer;\n height: 64px;\n float: left;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button:hover {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button:active {\n box-shadow: none; }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button .button-alignment-container {\n display: table;\n width: 100%;\n height: 100%; }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button .button-alignment-container .button-title {\n display: table-cell;\n font-size: 20px;\n text-align: center;\n text-transform: uppercase;\n vertical-align: middle; }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button .button-alignment-container .button-title i {\n height: 36px;\n font-size: 36px;\n line-height: 36px; }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button .button-alignment-container .button-title.with-icon {\n top: 16px; }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button .button-alignment-container .button-title.icon-and-text {\n font-size: 10px; }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button .button-alignment-container .button-title.icon-and-text i {\n display: block; }\n .operator-radiogroup-container .control-column .operator-radiogroup .group-button .button-alignment-container .button-title .uom {\n font-size: 14px;\n margin-left: 2px;\n text-transform: none; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.ts": /*!********************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.ts ***! \********************************************************************************************************************/ /*! exports provided: OperatorRadiogroupComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorRadiogroupComponent", function() { return OperatorRadiogroupComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _models_data_point__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorRadiogroupComponent = /** @class */ (function (_super) { __extends(OperatorRadiogroupComponent, _super); function OperatorRadiogroupComponent(dataPointService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this._selectedIndex = 0; return _this; } Object.defineProperty(OperatorRadiogroupComponent.prototype, "settings", { set: function (value) { // set from dynamic component loader this.naturalKeyRead = value.nkRead || ''; this.naturalKeyWrite = value.nkWrite; this.items = value.items || []; }, enumerable: true, configurable: true }); OperatorRadiogroupComponent.prototype.ngOnInit = function () { this.setNaturalKeys([this.naturalKeyRead]); }; OperatorRadiogroupComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; OperatorRadiogroupComponent.prototype.onValueChanged = function (naturalKey, data) { if (!this.items) { return; } // search for the item with the current value var index = -1; var item = this.items.find(function (i) { return i.value.toFixed(2) === data.toFixed(2); }); if (item) { index = this.items.indexOf(item); } this._selectedIndex = index; }; OperatorRadiogroupComponent.prototype.isSelected = function (index) { return this._selectedIndex === index; }; OperatorRadiogroupComponent.prototype.select = function (index) { if (this.naturalKeyWrite && this.naturalKeyWrite.length > 0) { var dataPoint = new _models_data_point__WEBPACK_IMPORTED_MODULE_2__["DataPoint"](this.naturalKeyWrite, this.items[index].value); this.dataPointService.writeDataPoint(dataPoint); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-read'), __metadata("design:type", String) ], OperatorRadiogroupComponent.prototype, "naturalKeyRead", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-write'), __metadata("design:type", String) ], OperatorRadiogroupComponent.prototype, "naturalKeyWrite", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", Array) ], OperatorRadiogroupComponent.prototype, "items", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], OperatorRadiogroupComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], OperatorRadiogroupComponent.prototype, "icon", void 0); OperatorRadiogroupComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'operator-radiogroup', template: __webpack_require__(/*! ./operator-radiogroup.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.html"), styles: [__webpack_require__(/*! ./operator-radiogroup.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-radiogroup/operator-radiogroup.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__["DataPointService"]]) ], OperatorRadiogroupComponent); return OperatorRadiogroupComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.html": /*!********************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.html ***! \********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n \n \n
\n
\n
{{title}}
\n
\n
\n \n
\n
\n \n \n \n \n \n
\n
\n
\n \n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.scss": /*!********************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.scss ***! \********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.operator-timerange .value-area,\n.default-theme.operator-timerange .offset-button {\n background-color: #ffffff; }\n\n.default-theme.operator-timerange.is-on {\n background-color: #00cf78; }\n\n.default-theme.operator-timerange.is-on i {\n color: white; }\n\n.default-theme.operator-timerange.is-on .title, .default-theme.operator-timerange.is-on .value {\n color: white; }\n\n.default-theme.operator-timerange .value {\n color: #293647; }\n\n.default-theme.operator-timerange i {\n color: #69727e; }\n\n.default-theme.operator-timerange .title {\n color: #69727e; }\n\n.default-theme.operator-timerange i.icon-center {\n color: #c7c7c7; }\n\n.default-theme.operator-timerange .value .uom {\n color: #c7c7c7; }\n\n.default-theme.operator-timerange .offset-button.waves-red .icon {\n color: #c7c7c7; }\n\n.testing-theme.operator-timerange .value-area,\n.testing-theme.operator-timerange .offset-button {\n background-color: #ffffff; }\n\n.testing-theme.operator-timerange.is-on {\n background-color: #00cf78; }\n\n.testing-theme.operator-timerange.is-on i {\n color: white; }\n\n.testing-theme.operator-timerange.is-on .title, .testing-theme.operator-timerange.is-on .value {\n color: white; }\n\n.testing-theme.operator-timerange .value {\n color: #525252; }\n\n.testing-theme.operator-timerange i {\n color: #797979; }\n\n.testing-theme.operator-timerange .title {\n color: #797979; }\n\n.operator-timerange-container {\n width: 100%;\n height: 96px;\n position: relative; }\n\n.operator-timerange-container .icon-column {\n width: 64px;\n height: 100%;\n position: absolute; }\n\n.operator-timerange-container .icon-column i {\n bottom: 0;\n position: absolute;\n width: 64px;\n text-align: center;\n font-size: 48px; }\n\n.operator-timerange-container .control-column {\n max-width: 100%;\n left: 64px;\n right: 0;\n position: absolute; }\n\n.operator-timerange-container .control-column .title {\n text-overflow: ellipsis;\n margin-bottom: 10px; }\n\n.operator-timerange-container .control-column .operator-timerange {\n border-radius: 2px;\n position: relative; }\n\n.operator-timerange-container .control-column .operator-timerange .picker-button {\n cursor: pointer;\n width: 64px;\n height: 64px;\n float: left;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.operator-timerange-container .control-column .operator-timerange .picker-button .icon {\n text-align: center;\n margin-top: 22px;\n width: 100%; }\n\n.operator-timerange-container .control-column .operator-timerange .picker-button:hover {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n\n.operator-timerange-container .control-column .operator-timerange .picker-button:active {\n box-shadow: none; }\n\n.operator-timerange-container .control-column .operator-timerange .picker-button.waves-red {\n cursor: default;\n box-shadow: none; }\n\n.operator-timerange-container .control-column .operator-timerange .value-area {\n float: left;\n text-align: center;\n position: relative;\n width: calc(100% - 2 * 64px);\n height: 64px;\n font-size: 24px;\n padding-top: 14px; }\n\n.operator-timerange-container .control-column .operator-timerange .value-area .value-overlay {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0; }\n\n.operator-timerange-container .control-column .operator-timerange .value-area .value-container {\n display: inline-flex; }\n\n.operator-timerange-container .control-column .operator-timerange .value-area .value-container .right-aligned input {\n text-align: right; }\n\n.operator-timerange-container .control-column .operator-timerange .value-area .value-container input {\n border: none;\n box-shadow: none;\n font-size: 20px;\n margin-top: -8px; }\n\n.operator-timerange-container .control-column .operator-timerange .value-area .value-container .icon-center {\n text-align: center;\n margin: 11px 4px;\n font-size: 16px; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.ts": /*!******************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.ts ***! \******************************************************************************************************************/ /*! exports provided: OperatorTimerangeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorTimerangeComponent", function() { return OperatorTimerangeComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _models_data_point__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../localizedtimepicker/localizedtimepicker.component */ "./src/app/components/localizedtimepicker/localizedtimepicker.component.ts"); /* harmony import */ var app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/time-utils.service */ "./src/app/services/time-utils.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatorTimerangeComponent = /** @class */ (function (_super) { __extends(OperatorTimerangeComponent, _super); function OperatorTimerangeComponent(dataPointService, _timeUtils) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this._timeUtils = _timeUtils; _this.isStartValueInitialized = false; _this.isEndValueInitialized = false; _this.startValue = '00:00'; _this.endValue = '00:00'; return _this; } Object.defineProperty(OperatorTimerangeComponent.prototype, "settings", { set: function (value) { // set from dynamic component loader this.naturalKeyReadStart = value.nkRead || ''; this.naturalKeyWriteStart = value.nkWrite; this.naturalKeyReadEnd = value.nkReadSecondary || ''; this.naturalKeyWriteEnd = value.nkWriteSecondary || ''; }, enumerable: true, configurable: true }); OperatorTimerangeComponent.prototype.ngOnInit = function () { this.setNaturalKeys([this.naturalKeyReadStart, this.naturalKeyReadEnd]); }; OperatorTimerangeComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; OperatorTimerangeComponent.prototype.onValuesInitialized = function (datapoints) { var startDataPoint = datapoints.Get(this.naturalKeyReadStart); if (startDataPoint != null) { this.updateStartValue(startDataPoint.data); } var endDataPoint = datapoints.Get(this.naturalKeyReadEnd); if (endDataPoint != null) { this.updateEndValue(endDataPoint.data); } }; OperatorTimerangeComponent.prototype.onValueChanged = function (naturalKey, data) { if (naturalKey === this.naturalKeyReadStart) { this.updateStartValue(data); } if (naturalKey === this.naturalKeyReadEnd) { this.updateEndValue(data); } }; OperatorTimerangeComponent.prototype.pickStartTime = function () { this.startTimePicker.showPicker(); }; OperatorTimerangeComponent.prototype.pickEndTime = function () { this.endTimePicker.showPicker(); }; OperatorTimerangeComponent.prototype.updateStartValue = function (value) { this.startValue = this.pad(this.getHours(value), 2) + ":" + this.pad(this.getMinutes(value), 2); }; OperatorTimerangeComponent.prototype.updateEndValue = function (value) { this.endValue = this.pad(this.getHours(value), 2) + ":" + this.pad(this.getMinutes(value), 2); }; OperatorTimerangeComponent.prototype.getHours = function (value) { return Math.floor(value / (3600 * 1000)); }; OperatorTimerangeComponent.prototype.getMinutes = function (value) { return (value / (1000 * 60)) % 60; }; OperatorTimerangeComponent.prototype.pad = function (num, length) { return ('0' + num).substr(-length); }; OperatorTimerangeComponent.prototype.onTimeStartPick = function (timeStart) { if (this.isStartValueInitialized) { var millisecondsSinceMidnight = this._timeUtils.getMillisecondsSinceMidnight(timeStart); this.setValue(this.naturalKeyWriteStart, millisecondsSinceMidnight); } else { // materialize.css triggers one update during init this.isStartValueInitialized = true; } }; OperatorTimerangeComponent.prototype.onTimeEndPick = function (timeEnd) { if (this.isEndValueInitialized) { var millisecondsSinceMidnight = this._timeUtils.getMillisecondsSinceMidnight(timeEnd); this.setValue(this.naturalKeyWriteEnd, millisecondsSinceMidnight); } else { // materialize.css triggers one update during init this.isEndValueInitialized = true; } }; OperatorTimerangeComponent.prototype.setValue = function (naturalKey, value) { if (naturalKey && naturalKey.length > 0) { var dataPoint = new _models_data_point__WEBPACK_IMPORTED_MODULE_2__["DataPoint"](naturalKey, value); this.dataPointService.writeDataPoint(dataPoint); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('startPicker'), __metadata("design:type", _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_4__["LocalizedtimepickerComponent"]) ], OperatorTimerangeComponent.prototype, "startTimePicker", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('endPicker'), __metadata("design:type", _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_4__["LocalizedtimepickerComponent"]) ], OperatorTimerangeComponent.prototype, "endTimePicker", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-read-start'), __metadata("design:type", String) ], OperatorTimerangeComponent.prototype, "naturalKeyReadStart", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-write-start'), __metadata("design:type", String) ], OperatorTimerangeComponent.prototype, "naturalKeyWriteStart", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-read-end'), __metadata("design:type", String) ], OperatorTimerangeComponent.prototype, "naturalKeyReadEnd", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('nk-write-end'), __metadata("design:type", String) ], OperatorTimerangeComponent.prototype, "naturalKeyWriteEnd", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], OperatorTimerangeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], OperatorTimerangeComponent.prototype, "icon", void 0); OperatorTimerangeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'operator-timerange', template: __webpack_require__(/*! ./operator-timerange.component.html */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.html"), styles: [__webpack_require__(/*! ./operator-timerange.component.scss */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-timerange/operator-timerange.component.scss")], }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__["DataPointService"], app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_5__["TimeUtilsService"]]) ], OperatorTimerangeComponent); return OperatorTimerangeComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component.html": /*!************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component.html ***! \************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component.ts": /*!**********************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component.ts ***! \**********************************************************************************************/ /*! exports provided: DynamicPageLoaderComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicPageLoaderComponent", function() { return DynamicPageLoaderComponent; }); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/view.service */ "./src/app/services/view.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DynamicPageLoaderComponent = /** @class */ (function () { function DynamicPageLoaderComponent(actRoute, router, location, authService, _viewService, _configService) { var _this = this; this.actRoute = actRoute; this.router = router; this.location = location; this.authService = authService; this._viewService = _viewService; this._configService = _configService; this.isStandalonePage = true; this.enabledTabs = []; this.pageGridConfig = { margins: [10, 24], draggable: false, resizable: false, max_cols: 12, visible_cols: 0, visible_rows: 0, min_cols: 1, min_rows: 1, row_height: 80, cascade: 'none', min_width: 10, min_height: 80, fix_to_grid: false, auto_style: true, auto_resize: true, maintain_ratio: false, prefer_new: false, limit_to_screen: false }; var pageAlias = actRoute.snapshot.paramMap.get(_app_constants__WEBPACK_IMPORTED_MODULE_4__["DYNAMIC_PAGE_URL"]); var dynamicConfig = pageAlias != null ? this._configService.craneConfig.dynamicPageConfigs[pageAlias] : undefined; var role = authService.getRole().toLowerCase(); if (dynamicConfig != null && dynamicConfig.alias != null) { this.pageTitle = dynamicConfig.title; var roleCheck_1 = new RegExp("\\*|" + role); if (dynamicConfig.tabs != null) { dynamicConfig.tabs.filter(function (x) { return x.enabled && (x.authorizedRoles == null || (x.authorizedRoles != null && roleCheck_1.test(x.authorizedRoles.toLowerCase()))); }) .forEach(function (tab) { return _this.enabledTabs.push(tab); }); } if (dynamicConfig.svgTabs != null) { dynamicConfig.svgTabs.filter(function (x) { return x.enabled && (x.authorizedRoles == null || (x.authorizedRoles != null && roleCheck_1.test(x.authorizedRoles.toLowerCase()))); }) .forEach(function (tab) { return _this.enabledTabs.push(tab); }); } } else { setTimeout(function () { return router.navigate(["/" + _app_constants__WEBPACK_IMPORTED_MODULE_4__["HOME_PAGE_URL"]]); }); } this.enabledTabs.sort(function (a, b) { if (a.index < b.index) return -1; else if (a.index > b.index) return 1; return 0; }); if (actRoute.snapshot.children != null) { var firstChild = actRoute.snapshot.children[0]; if (firstChild != null) { this.activeTabAlias = firstChild.paramMap.get(_app_constants__WEBPACK_IMPORTED_MODULE_4__["DYNAMIC_TAB_URL"]); } } if (this.activeTabAlias == null && this.enabledTabs.length > 1) { var firstEnabledTab = this.enabledTabs[0]; this.activeTabAlias = firstEnabledTab.alias; var currentRoute = this.location.path(false); this.location.go(currentRoute + "/" + this.activeTabAlias); } } DynamicPageLoaderComponent.prototype.ngOnInit = function () { this._viewService.setToolbarTitle(this.pageTitle); }; DynamicPageLoaderComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ selector: 'dynamic-page-loader', template: __webpack_require__(/*! ./dynamic-page-loader.component.html */ "./src/app/components/dynamic-page/dynamic-page-loader/dynamic-page-loader.component.html"), host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_6__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_0__["ActivatedRoute"], _angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["Location"], _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"], _services_view_service__WEBPACK_IMPORTED_MODULE_7__["ViewService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"]]) ], DynamicPageLoaderComponent); return DynamicPageLoaderComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page-container.component.html": /*!**************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page-container.component.html ***! \**************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Unsupported Control Type!\n \n \n\n\n
\n\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page-container.component.ts": /*!************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page-container.component.ts ***! \************************************************************************************************************/ /*! exports provided: DynamicSvgPageContainerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicSvgPageContainerComponent", function() { return DynamicSvgPageContainerComponent; }); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../types/config */ "./src/types/config.ts"); /* harmony import */ var _datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../datapoints/svg-base-datapoint.component */ "./src/app/components/datapoints/svg-base-datapoint.component.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DynamicSvgPageContainerComponent = /** @class */ (function (_super) { __extends(DynamicSvgPageContainerComponent, _super); function DynamicSvgPageContainerComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService, svgPageService, viewService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.svgPageService = svgPageService; _this.viewService = viewService; _this.components = []; _this.glows = [ { id: 'focus-glow', deviation: 2, radius: 2, offsetX: '-75%', offsetY: '-75%', color: _this.colorService.getColor('state-active'), height: '300%', width: '300%' }, { id: 'error-glow', deviation: 5, radius: 4, offsetX: '-75%', offsetY: '-75%', color: _this.colorService.getColor('state-alert'), height: '300%', width: '300%' } ]; _this.shadows = [ { id: 'drop-shadow', deviation: 1.5, offsetX: 1, offsetY: 1, color: '#000000', opacity: 0.3, blurred: true }, { id: 'drop-shadow-hovered', deviation: 1.6, offsetX: 1, offsetY: 1, color: '#000000', opacity: 0.5, blurred: true }, { id: 'drop-shadow-pressed', deviation: 1.1, offsetX: 1, offsetY: 1, color: '#000000', opacity: 0.1, blurred: true }, ]; _this.ControlType = _types_config__WEBPACK_IMPORTED_MODULE_7__["OperatorControlType"]; return _this; } DynamicSvgPageContainerComponent.prototype.ngOnInit = function () { this.viewService.setFooterMargin(true); this.components = this.tabPage.tabControls; var svgMetadata = this.tabPage.metadata; this.svgPageService.currentDisplayMode = svgMetadata.initialDisplayValue; this.states = this.svgPageService.getEnabledRuntimeStatesWithValueProvider(svgMetadata.stateConfig); this.footerCells = this.svgPageService.getEnabledFooterCellsWithValueProvider(svgMetadata.footerConfig.valueCells); var naturalKeys = []; naturalKeys.push.apply(naturalKeys, this.svgPageService.getNaturalKeysOfFooter(this.tabPage.metadata.footerConfig)); naturalKeys.push.apply(naturalKeys, this.svgPageService.getNaturalKeysOfTabStates(this.tabPage.metadata.stateConfig)); naturalKeys.push.apply(naturalKeys, this.svgPageService.getNaturalKeysOfComponents(this.components)); this.setNaturalKeys(naturalKeys); }; DynamicSvgPageContainerComponent.prototype.ngOnDestroy = function () { this.viewService.setFooterMargin(false); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('tabPage'), __metadata("design:type", Object) ], DynamicSvgPageContainerComponent.prototype, "tabPage", void 0); DynamicSvgPageContainerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'dynamic-svg-page-container', template: __webpack_require__(/*! ./dynamic-svg-page-container.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page-container.component.html"), styles: [__webpack_require__(/*! ../../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None, providers: [_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"]] }), __metadata("design:paramtypes", [app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_0__["ActivatedRoute"], app_services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"], _dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_9__["ViewService"]]) ], DynamicSvgPageContainerComponent); return DynamicSvgPageContainerComponent; }(_datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_8__["SvgBaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts": /*!************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts ***! \************************************************************************************************/ /*! exports provided: DynamicSvgPageService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicSvgPageService", function() { return DynamicSvgPageService; }); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../types/config */ "./src/types/config.ts"); /* harmony import */ var _svg_footer_svg_footer_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./svg-footer/svg-footer-state */ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer-state.ts"); /* harmony import */ var _svg_footer_svg_footer_value__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./svg-footer/svg-footer-value */ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer-value.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DynamicSvgPageService = /** @class */ (function () { function DynamicSvgPageService(dataPointService, configService) { this.dataPointService = dataPointService; this.configService = configService; this.displayModeChanged = new rxjs__WEBPACK_IMPORTED_MODULE_0__["BehaviorSubject"](this.currentDisplayMode); } Object.defineProperty(DynamicSvgPageService.prototype, "currentDisplayMode", { set: function (value) { this._currentDisplayMode = value; this.displayModeChanged.next(this._currentDisplayMode); }, enumerable: true, configurable: true }); DynamicSvgPageService.prototype.getValueProvider = function (naturalKey, datapointValueTransformer) { if (naturalKey == undefined) return undefined; return this.dataPointService.dataPoints.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (dataPoints) { return dataPoints.Get(naturalKey) != undefined; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (dataPoints) { var dataPoint = dataPoints.Get(naturalKey); if (dataPoint != undefined) return datapointValueTransformer != undefined ? datapointValueTransformer(dataPoint.data) : dataPoint.data; })); }; DynamicSvgPageService.prototype.getEnabledFooterCellsWithValueProvider = function (valueCells) { var _this = this; var result = []; valueCells.filter(function (cell) { return cell.enabled; }).forEach(function (cell) { var footerValue = new _svg_footer_svg_footer_value__WEBPACK_IMPORTED_MODULE_7__["SvgFooterValue"](); footerValue.description = cell.description; footerValue.naturalKey = cell.naturalKey; footerValue.value = _this.getValueProvider(cell.naturalKey); result.push(footerValue); }); return result; }; DynamicSvgPageService.prototype.getEnabledRuntimeStatesWithValueProvider = function (stateConfig) { var _this = this; var result = []; stateConfig.states.filter(function (state) { return state.enabled; }).forEach(function (state) { var isActive = _this.getValueProvider(state.naturalKey); if (isActive != undefined) { var footerState = new _svg_footer_svg_footer_state__WEBPACK_IMPORTED_MODULE_6__["SvgFooterState"](); footerState.isActiveValue = false; footerState.isActive = isActive; footerState.state = state; result.push(footerState); } }); return result; }; DynamicSvgPageService.prototype.getNaturalKeysOfFooter = function (footer) { var naturalKeys = []; naturalKeys.push.apply(naturalKeys, footer.valueCells.filter(function (s) { return s.naturalKey != undefined; }).map(function (s) { return s.naturalKey; })); return naturalKeys; }; DynamicSvgPageService.prototype.getNaturalKeysOfTabStates = function (stateConfig) { var naturalKeys = []; naturalKeys.push.apply(naturalKeys, stateConfig.states.filter(function (s) { return s.naturalKey != undefined; }).map(function (s) { return s.naturalKey; })); return naturalKeys; }; DynamicSvgPageService.prototype.getNaturalKeysOfComponents = function (components) { var _this = this; var naturalKeys = []; components.forEach(function (component) { naturalKeys.push.apply(naturalKeys, _this.getNaturalKeysOfComponent(component)); }); return naturalKeys; }; DynamicSvgPageService.prototype.getNaturalKeysOfComponent = function (component) { var naturalKeys = []; switch (component.controlType) { case _types_config__WEBPACK_IMPORTED_MODULE_5__["OperatorControlType"].Brake: var brake = component; naturalKeys.push(brake.nkBrakeClosed, brake.nkBrakeOpened, brake.nkBrakeAlert); break; case _types_config__WEBPACK_IMPORTED_MODULE_5__["OperatorControlType"].GearBox: var gearBox = component; naturalKeys.push(gearBox.nkGearTemperatureValid); break; case _types_config__WEBPACK_IMPORTED_MODULE_5__["OperatorControlType"].Motor: var motor = component; naturalKeys.push(motor.nkMotorRunning); break; case _types_config__WEBPACK_IMPORTED_MODULE_5__["OperatorControlType"].SpeedLimitation: var speedLimitation = component; naturalKeys.push(speedLimitation.nkMaxSpeed, speedLimitation.nkSpeed, speedLimitation.nkSpeedLimitActive, speedLimitation.nkInterlockActive); break; case _types_config__WEBPACK_IMPORTED_MODULE_5__["OperatorControlType"].WireDrum: var wireDrum = component; naturalKeys.push(wireDrum.nkDriveAlert); break; case _types_config__WEBPACK_IMPORTED_MODULE_5__["OperatorControlType"].ControlUnit: var controlUnit = component; naturalKeys.push(controlUnit.nkError, controlUnit.nkFault); break; case _types_config__WEBPACK_IMPORTED_MODULE_5__["OperatorControlType"].FrequencyConverter: var frequencyConverter = component; naturalKeys.push(frequencyConverter.nkError, frequencyConverter.nkFault); break; case _types_config__WEBPACK_IMPORTED_MODULE_5__["OperatorControlType"].ValueContainer: var valueContainer = component; naturalKeys.push.apply(naturalKeys, valueContainer.displayValues.map(function (v) { return v.naturalKey; })); break; default: break; } return naturalKeys.filter(function (key) { return key != undefined; }); }; DynamicSvgPageService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["Injectable"])(), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_1__["ConfigService"]]) ], DynamicSvgPageService); return DynamicSvgPageService; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer-state.ts": /*!***************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer-state.ts ***! \***************************************************************************************************/ /*! exports provided: SvgFooterState */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgFooterState", function() { return SvgFooterState; }); var SvgFooterState = /** @class */ (function () { function SvgFooterState() { } return SvgFooterState; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer-value.ts": /*!***************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer-value.ts ***! \***************************************************************************************************/ /*! exports provided: SvgFooterValue */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgFooterValue", function() { return SvgFooterValue; }); var SvgFooterValue = /** @class */ (function () { function SvgFooterValue() { } return SvgFooterValue; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.html": /*!*********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.html ***! \*********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
0\">\n
\n
\n

{{title}}

\n
\n
\n initialization_failed\n
\n
\n {{activeStateText | async}}\n
\n
\n
\n \n
\n
\n

\n {{ resolveMapping(activeValues[i] | async, i) | unitsystemconvert:cell.naturalKey:lang}}\n  {{cell.naturalKey | unitsystemunit}}\n

\n
{{cell.description}}
\n
\n
\n
\n 0\" [missingNks]=\"missingNks\">\n
\n
\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.scss": /*!*********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.scss ***! \*********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host .default-theme.cell-container {\n background-color: #ffffff; }\n\n:host.detail-view-footer .default-theme {\n background-color: #ffffff; }\n\n:host .default-theme.cell-container .title-cell h5.ok {\n color: #1561a1 !important; }\n\n:host .default-theme.cell-container .title-cell h3 {\n color: #293647; }\n\n:host .default-theme.cell-container .title-cell h5 {\n color: #293647; }\n\n:host .default-theme.cell-container .value-cell .value-area h3 {\n color: #293647; }\n\n:host .default-theme.cell-container .title-cell h3 ~ h5 {\n color: #69727e; }\n\n:host .default-theme.cell-container .value-cell .value-area h5, :host .default-theme.cell-container .value-cell .value-area h3 > span ~ span {\n color: #69727e; }\n\n:host .default-theme.cell-container .title-cell h5.warning, :host .default-theme.cell-container .title-cell h5.speed-limit {\n color: #ffa80f !important; }\n\n:host.detail-view-footer .default-theme.cell-container .value-cell .value-area.warning h3, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.warning h3 > span ~ span, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.warning h5, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.speed-limit h3, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.speed-limit h3 > span ~ span, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.speed-limit h5 {\n color: #ffa80f !important; }\n\n:host .default-theme.cell-container .title-cell h5.error, :host .default-theme.cell-container .title-cell h5.interlock {\n color: #f11d40 !important; }\n\n:host.detail-view-footer .default-theme.cell-container .value-cell .value-area.error h3, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.error h3 > span ~ span, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.error h5, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.interlock h3, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.interlock h3 > span ~ span, :host.detail-view-footer .default-theme.cell-container .value-cell .value-area.interlock h5 {\n color: #f11d40 !important; }\n\n:host .testing-theme.cell-container {\n background-color: #98057e; }\n\n:host.detail-view-footer .testing-theme {\n background-color: #98057e; }\n\n:host .testing-theme.cell-container .title-cell h5.ok {\n color: #cfac1f !important; }\n\n:host .testing-theme.cell-container .title-cell h3 {\n color: #525252; }\n\n:host .testing-theme.cell-container .title-cell h5 {\n color: #525252; }\n\n:host .testing-theme.cell-container .value-cell .value-area h3 {\n color: #525252; }\n\n:host .testing-theme.cell-container .title-cell h3 ~ h5 {\n color: #797979; }\n\n:host .testing-theme.cell-container .value-cell .value-area h5, :host .testing-theme.cell-container .value-cell .value-area h3 > span ~ span {\n color: #797979; }\n\n:host .testing-theme.cell-container .title-cell h5.warning, :host .testing-theme.cell-container .title-cell h5.speed-limit {\n color: #ffa80f !important; }\n\n:host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.warning h3, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.warning h3 > span ~ span, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.warning h5, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.speed-limit h3, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.speed-limit h3 > span ~ span, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.speed-limit h5 {\n color: #ffa80f !important; }\n\n:host .testing-theme.cell-container .title-cell h5.error, :host .testing-theme.cell-container .title-cell h5.interlock {\n color: #f11d40 !important; }\n\n:host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.error h3, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.error h3 > span ~ span, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.error h5, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.interlock h3, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.interlock h3 > span ~ span, :host.detail-view-footer .testing-theme.cell-container .value-cell .value-area.interlock h5 {\n color: #f11d40 !important; }\n\n:host {\n display: block; }\n\n:host.card-footer {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 90px; }\n\n:host.card-footer .cell-container {\n height: 90px; }\n\n:host.card-footer .cell-container .title-cell > h5 span {\n line-height: 1.1rem !important; }\n\n:host.detail-view-footer {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n height: 74px; }\n\n:host.detail-view-footer .cell-container {\n height: 74px; }\n\n:host.detail-view-footer .with-missing-datapoints-info > .cell-container {\n margin-right: 0 !important; }\n\n.cell-container {\n display: table;\n margin-left: 20px;\n margin-right: 20px; }\n\n.cell-container .title-cell, .cell-container .value-cell, .cell-container .missing-dp-cell {\n display: table-cell;\n vertical-align: middle; }\n\n.cell-container .title-cell h3, .cell-container .title-cell h5, .cell-container .value-cell h3, .cell-container .value-cell h5, .cell-container .missing-dp-cell h3, .cell-container .missing-dp-cell h5 {\n margin: 0;\n white-space: nowrap; }\n\n.cell-container .title-cell h5, .cell-container .value-cell h5, .cell-container .missing-dp-cell h5 {\n font-size: 1.5rem;\n height: 1.5rem; }\n\n.cell-container .title-cell h3 ~ h5, .cell-container .value-cell h3 ~ h5, .cell-container .missing-dp-cell h3 ~ h5 {\n margin-top: 0.5rem;\n font-size: 1rem;\n height: 1rem; }\n\n.cell-container .title-cell {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis; }\n\n.cell-container .title-cell h5 {\n position: relative;\n display: block;\n height: 2rem; }\n\n.cell-container .title-cell h5 span {\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 2rem;\n line-height: 2rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n\n.cell-container .value-cell:last-of-type {\n padding-right: 0 !important; }\n\n.cell-container .value-cell {\n padding: 0 0.5rem;\n text-align: center; }\n\n.cell-container .value-cell .value-area {\n display: block;\n min-width: 5em; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.ts": /*!*******************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.ts ***! \*******************************************************************************************************/ /*! exports provided: SvgFooterComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgFooterComponent", function() { return SvgFooterComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgFooterComponent = /** @class */ (function () { function SvgFooterComponent(_cmsTranslationService, _configService, dataPointService) { this._cmsTranslationService = _cmsTranslationService; this._configService = _configService; this.dataPointService = dataPointService; this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_4__["ModelStates"]; this.runtimeStates = _types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"]; this.noValue = _app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder; this.stateSubscriptions = []; this.defaultState = { text: "ok", state: _types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok, naturalKey: undefined, priority: 0, enabled: true, inferTextFromDatapoint: true, }; this.valueSubscriptions = []; this.activeValues = []; this.nkArray = []; this.missingNks = []; } Object.defineProperty(SvgFooterComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); SvgFooterComponent.prototype.ngOnInit = function () { var _this = this; this.activeState = new rxjs__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"](this.defaultState.state); this.activeStateText = new rxjs__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"](this.defaultState.text); this.states.map(function (state) { _this.stateSubscriptions.push(state.isActive.subscribe(function (isActiveValue) { state.isActiveValue = isActiveValue; var activeStateWithHighestPriority = _this.getActiveStateWithHighestPriority(_this.states); _this.activeState.next(activeStateWithHighestPriority.state); _this.activeStateText.next(activeStateWithHighestPriority.text); })); }); this.valueCells.forEach(function (valueCell) { if (valueCell.naturalKey) { _this.activeValues.push(new rxjs__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"](_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder)); _this.nkArray.push(valueCell.naturalKey); } }); // Needed so the "•••" value is emitted while waiting for the actual values this.valueCells.map(function (valueCell, index) { if (valueCell.value != undefined) _this.valueSubscriptions.push(valueCell.value.subscribe(function (value) { _this.activeValues[index].next(value); })); }); // Force refresh of values so that they are updated on page load if (this.nkArray != null && this.nkArray.length > 0) { this.dataPointService.requestDataPoints(this.nkArray); } }; SvgFooterComponent.prototype.ngOnDestroy = function () { this.stateSubscriptions.forEach(function (s) { return s.unsubscribe(); }); }; SvgFooterComponent.prototype.getActiveStateWithHighestPriority = function (states) { var sortedActiveStates = states.filter(function (x) { return x.isActiveValue == true; }).sort(function (a, b) { return a.state.priority - b.state.priority; }).reverse(); return sortedActiveStates.length > 0 ? sortedActiveStates[0].state : this.defaultState; }; SvgFooterComponent.prototype.resolveMapping = function (value, index) { var naturalKey = this.nkArray[index]; var metadata = this._configService.craneConfig.datapointMetadata[naturalKey]; if (metadata.booleanMappingConfig == null || !metadata.booleanMappingConfig.enableBooleanToValueMapping) return value; else { if (value) return metadata.booleanMappingConfig.trueMappingValue; else return metadata.booleanMappingConfig.falseMappingValue; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgFooterComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], SvgFooterComponent.prototype, "initState", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], SvgFooterComponent.prototype, "valueCells", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], SvgFooterComponent.prototype, "states", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], SvgFooterComponent.prototype, "missingNks", void 0); SvgFooterComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'svg-footer', template: __webpack_require__(/*! ./svg-footer.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.html"), styles: [__webpack_require__(/*! ./svg-footer.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-container/svg-footer/svg-footer.component.scss")] }), __metadata("design:paramtypes", [_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_7__["ConfigService"], app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__["DataPointService"]]) ], SvgFooterComponent); return SvgFooterComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.html": /*!***************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.html ***! \***************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n alarmMax ? settings.alarmColor : settings.fillColor\" />\n \n \n\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.scss": /*!***************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.scss ***! \***************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.ts": /*!*************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.ts ***! \*************************************************************************************************************************/ /*! exports provided: SvgLevelIndicatorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgLevelIndicatorComponent", function() { return SvgLevelIndicatorComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_components_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgLevelIndicatorComponent = /** @class */ (function () { function SvgLevelIndicatorComponent(svgPageService, unitConversionService, unitKeyService, dataPointRangeService) { this.svgPageService = svgPageService; this.unitConversionService = unitConversionService; this.unitKeyService = unitKeyService; this.dataPointRangeService = dataPointRangeService; this.nkArray = []; } SvgLevelIndicatorComponent.prototype.ngOnInit = function () { if (this.settings.levelNaturalKey != undefined && this.nkArray.indexOf(this.settings.levelNaturalKey) < 0) this.nkArray.push(this.settings.levelNaturalKey); this.level = this.svgPageService.getValueProvider(this.settings.levelNaturalKey); this.alarmMin = this.range != null && this.range.alarmMin != null ? this.range.alarmMin : 0; this.alarmMax = this.range != null && this.range.alarmMax != null ? this.range.alarmMax : 100; }; Object.defineProperty(SvgLevelIndicatorComponent.prototype, "range", { get: function () { return this.dataPointRangeService.getRange(this.settings.levelNaturalKey); }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgLevelIndicatorComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgLevelIndicatorComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgLevelIndicatorComponent.prototype, "settings", void 0); SvgLevelIndicatorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-level-indicator]', template: __webpack_require__(/*! ./svg-level-indicator.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.html"), styles: [__webpack_require__(/*! ./svg-level-indicator.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/level-indicator/svg-level-indicator.component.scss")] }), __metadata("design:paramtypes", [app_components_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_3__["UnitConversionService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_4__["UnitKeyService"], app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_2__["DataPointRangeService"]]) ], SvgLevelIndicatorComponent); return SvgLevelIndicatorComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.html": /*!*********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.html ***! \*********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{segment.title}}\n \n \n \n \n \n \n\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.scss": /*!*********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.scss ***! \*********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".invisible {\n visibility: visible; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.ts": /*!*******************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.ts ***! \*******************************************************************************************************************************/ /*! exports provided: SvgPositionIndicatorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgPositionIndicatorComponent", function() { return SvgPositionIndicatorComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../common/common-components/movement-indicator/position-indicator.component */ "./src/app/components/common/common-components/movement-indicator/position-indicator.component.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgPositionIndicatorComponent = /** @class */ (function () { function SvgPositionIndicatorComponent(svgPageService, unitConversionService, unitKeyService, dataPointRangeService) { this.svgPageService = svgPageService; this.unitConversionService = unitConversionService; this.unitKeyService = unitKeyService; this.dataPointRangeService = dataPointRangeService; this.indicatorHeight = 24; this.centerOffset = 0; this.nkArray = []; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_1__["SvgShapeType"]; } SvgPositionIndicatorComponent.prototype.ngOnInit = function () { var _this = this; this.posInd = new _common_common_components_movement_indicator_position_indicator_component__WEBPACK_IMPORTED_MODULE_3__["PositionIndicator"](this.settings.indicatorWidth, this.centerOffset, this.dataPointRangeService.getRange(this.settings.positionNaturalKey), this.settings.positionNaturalKey); this.posInd.initUnitConversion(this.unitConversionService, this.unitKeyService); if (this.settings.positionNaturalKey != undefined && this.nkArray.indexOf(this.settings.positionNaturalKey) < 0) this.nkArray.push(this.settings.positionNaturalKey); this.position = this.svgPageService.getValueProvider(this.settings.positionNaturalKey); if (this.position) this.position.subscribe(function (x) { _this.posInd.position = x; }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgPositionIndicatorComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgPositionIndicatorComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgPositionIndicatorComponent.prototype, "settings", void 0); SvgPositionIndicatorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-position-indicator]', template: __webpack_require__(/*! ./svg-position-indicator.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.html"), styles: [__webpack_require__(/*! ./svg-position-indicator.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/card/position-indicator/svg-position-indicator.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_2__["DynamicSvgPageService"], _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__["UnitKeyService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__["DataPointRangeService"]]) ], SvgPositionIndicatorComponent); return SvgPositionIndicatorComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.html": /*!*****************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.html ***! \*****************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Unsupported Display Mode!\n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.scss": /*!*****************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.scss ***! \*****************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.ts": /*!***************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.ts ***! \***************************************************************************************************************************************/ /*! exports provided: SvgDisplayModeButtonComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgDisplayModeButtonComponent", function() { return SvgDisplayModeButtonComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgDisplayModeButtonComponent = /** @class */ (function () { function SvgDisplayModeButtonComponent(svgPageService) { this.svgPageService = svgPageService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_1__["SvgShapeType"]; this.DisplayValue = types_config__WEBPACK_IMPORTED_MODULE_1__["DisplayValue"]; } SvgDisplayModeButtonComponent.prototype.ngOnInit = function () { var _this = this; this.currentDisplayMode = this.svgPageService.currentDisplayMode; this.svgPageService.displayModeChanged.subscribe({ next: function (v) { return _this.currentDisplayMode = v; }, }); }; SvgDisplayModeButtonComponent.prototype.setCurrentDisplayMode = function () { this.svgPageService.currentDisplayMode = this.settings.displayMode; }; SvgDisplayModeButtonComponent.prototype.isDisplayModeSelected = function (value) { return this.currentDisplayMode === value; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgDisplayModeButtonComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgDisplayModeButtonComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgDisplayModeButtonComponent.prototype, "settings", void 0); SvgDisplayModeButtonComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-display-mode-button]', template: __webpack_require__(/*! ./svg-display-mode-button.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.html"), styles: [__webpack_require__(/*! ./svg-display-mode-button.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-display-mode-button/svg-display-mode-button.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_2__["DynamicSvgPageService"]]) ], SvgDisplayModeButtonComponent); return SvgDisplayModeButtonComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.html": /*!*************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.html ***! \*************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n Unsupported Shape!\n \n {{translatedLabel}}\n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.scss": /*!*************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.scss ***! \*************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.ts": /*!***********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.ts ***! \***********************************************************************************************************/ /*! exports provided: SvgLabelComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgLabelComponent", function() { return SvgLabelComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgLabelComponent = /** @class */ (function () { function SvgLabelComponent(cmsTranslationService) { this.cmsTranslationService = cmsTranslationService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; } SvgLabelComponent.prototype.ngOnInit = function () { this.translatedLabel = this.cmsTranslationService.translateToCurrentLanguage(this.settings.label); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgLabelComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgLabelComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgLabelComponent.prototype, "settings", void 0); SvgLabelComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-label]', template: __webpack_require__(/*! ./svg-label.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.html"), styles: [__webpack_require__(/*! ./svg-label.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-label/svg-label.component.scss")] }), __metadata("design:paramtypes", [app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"]]) ], SvgLabelComponent); return SvgLabelComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.html": /*!***********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.html ***! \***********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.scss": /*!***********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.scss ***! \***********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.ts": /*!*********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.ts ***! \*********************************************************************************************************/ /*! exports provided: SvgLineComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgLineComponent", function() { return SvgLineComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgLineComponent = /** @class */ (function () { function SvgLineComponent() { this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_1__["SvgShapeType"]; } SvgLineComponent.prototype.ngOnInit = function () { }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgLineComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgLineComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgLineComponent.prototype, "settings", void 0); SvgLineComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-line]', template: __webpack_require__(/*! ./svg-line.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.html"), styles: [__webpack_require__(/*! ./svg-line.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-line/svg-line.component.scss")] }) ], SvgLineComponent); return SvgLineComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.html": /*!*************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.html ***! \*************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n\n \n\n \n \n {{SvgActiveTexts[i]}}\n \n\n \n \n {{SvgActiveIcons[i]}}\n \n \n \n \n\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.scss": /*!*************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.scss ***! \*************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.ts": /*!***********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.ts ***! \***********************************************************************************************************/ /*! exports provided: SvgShapeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgShapeComponent", function() { return SvgShapeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_components_datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/components/datapoints/svg-base-datapoint.component */ "./src/app/components/datapoints/svg-base-datapoint.component.ts"); /* harmony import */ var app_components_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgShapeComponent = /** @class */ (function (_super) { __extends(SvgShapeComponent, _super); function SvgShapeComponent(_sanitizer, svgPageService, dataPointService) { var _this = _super.call(this, dataPointService) || this; _this._sanitizer = _sanitizer; _this.svgPageService = svgPageService; _this.dataPointService = dataPointService; _this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_8__["SvgShapeType"]; _this.SvgPropertiesValueProviders = []; _this.SvgActiveColors = []; _this.SvgActiveTexts = []; _this.SvgActiveIcons = []; _this.SvgFontSizes = []; _this.SvgFontColors = []; _this.rotationString = "rotate(0)"; _this.isVisible = true; return _this; } SvgShapeComponent.prototype.ngOnInit = function () { var _this = this; this.rotation = this.svgPageService.getValueProvider(this.settings.nkRotation); if (this.rotation != undefined) { this.rotation.subscribe(function (dataPointValue) { _this.rotationString = "rotate(" + dataPointValue + ")"; }); } this.visibility = this.svgPageService.getValueProvider(this.settings.nkVisibility); if (this.visibility != undefined) { this.visibility.subscribe(function (dataPointValue) { _this.isVisible = dataPointValue; }); } this.SvgPropertyOrdered = this.settings.svgPropertyDatapoints ? this.settings.svgPropertyDatapoints.filter(function (dp) { return dp.enabled; }).sort(function (dp1, dp2) { return dp1.priority - dp2.priority; }) : []; this.SvgPropertyNaturalKeys = this.SvgPropertyOrdered.map(function (datapoint) { return datapoint.naturalKey; }); this.setNaturalKeys(this.SvgPropertyNaturalKeys); this.SvgPropertyNaturalKeys.forEach(function (naturalkey) { return _this.addValueProvider(naturalkey); }); if (this.SvgPropertyNaturalKeys != null && this.SvgPropertyNaturalKeys.length > 0) { this.dataPointService.requestDataPoints(this.SvgPropertyNaturalKeys); } this.SvgPropertyOrdered.forEach(function (datapointConfig) { Object(app_app_constants__WEBPACK_IMPORTED_MODULE_2__["isStringEmpty"])(datapointConfig.activeColor) ? _this.SvgActiveColors.push(undefined) : _this.SvgActiveColors.push(datapointConfig.activeColor); Object(app_app_constants__WEBPACK_IMPORTED_MODULE_2__["isStringEmpty"])(datapointConfig.activeText) ? _this.SvgActiveTexts.push(undefined) : _this.SvgActiveTexts.push(datapointConfig.activeText); Object(app_app_constants__WEBPACK_IMPORTED_MODULE_2__["isStringEmpty"])(datapointConfig.activeIconCode) ? _this.SvgActiveIcons.push(undefined) : _this.SvgActiveIcons.push(datapointConfig.activeIconCode); _this.SvgFontSizes.push(datapointConfig.fontSize); _this.SvgFontColors.push(datapointConfig.fontColor); }); // As the array is ordered, last index == highest priority this.CurrentActiveIndex = Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["combineLatest"])(this.SvgPropertiesValueProviders).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["map"])(function (array) { return array.lastIndexOf(true); })); // Remove rotation and scaling from the text and icon this.transformFont = this.settings.transform.replace(/rotate[(]\d*[)]/, "").replace(/scale[(]-?\d*.?\d*, -?\d*.?\d*[)]/, ""); }; SvgShapeComponent.prototype.decodePath = function (customPathBase64) { return this._sanitizer.bypassSecurityTrustHtml(atob(customPathBase64)); }; SvgShapeComponent.prototype.decodePathAndReplaceFill = function (customPathBase64, index) { var customShapeString = atob(customPathBase64); // Replace the first occurence of fill with the color of the current active datapoint var shapeWithReplacedFill = customShapeString.replace(/fill="#?\w*"/, 'fill="' + this.SvgActiveColors[index] + '"'); return this._sanitizer.bypassSecurityTrustHtml(shapeWithReplacedFill); }; SvgShapeComponent.prototype.addValueProvider = function (naturalkey) { var valueProvider = this.svgPageService.getValueProvider(naturalkey); // If the value provider is undefined, convert it into a stream of false => will never be displayed (valueProvider !== undefined) ? this.SvgPropertiesValueProviders.push(valueProvider) : this.SvgPropertiesValueProviders.push(Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["of"])(false)); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgShapeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgShapeComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgShapeComponent.prototype, "settings", void 0); SvgShapeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-shape]', template: __webpack_require__(/*! ./svg-shape.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.html"), styles: [__webpack_require__(/*! ./svg-shape.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-shape/svg-shape.component.scss")] }), __metadata("design:paramtypes", [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"], app_components_dynamic_page_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_4__["DynamicSvgPageService"], app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"]]) ], SvgShapeComponent); return SvgShapeComponent; }(app_components_datapoints_svg_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__["SvgBaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.html": /*!*******************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.html ***! \*******************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n {{settings.activeText}}\n {{settings.inactiveText}}\n \n \n\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.scss": /*!*******************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.scss ***! \*******************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".invisible {\n visibility: hidden; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.ts": /*!*****************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.ts ***! \*****************************************************************************************************************************************************/ /*! exports provided: SvgStateTextValueContainerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgStateTextValueContainerComponent", function() { return SvgStateTextValueContainerComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgStateTextValueContainerComponent = /** @class */ (function () { function SvgStateTextValueContainerComponent(svgPageService, cmsTranslationService, dataPointService, _configService, _colorService) { this.svgPageService = svgPageService; this.cmsTranslationService = cmsTranslationService; this.dataPointService = dataPointService; this._configService = _configService; this._colorService = _colorService; this.nkArray = []; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_5__["SvgShapeType"]; } Object.defineProperty(SvgStateTextValueContainerComponent.prototype, "currentLanguage", { get: function () { return this.cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); SvgStateTextValueContainerComponent.prototype.ngOnInit = function () { if (this.settings.isActiveNaturalKey != undefined && this.nkArray.indexOf(this.settings.isActiveNaturalKey) < 0) { this.nkArray.push(this.settings.isActiveNaturalKey); } if (this.nkArray != null && this.nkArray.length > 0) { this.dataPointService.requestDataPoints(this.nkArray); } this.isActive = this.svgPageService.getValueProvider(this.settings.isActiveNaturalKey); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgStateTextValueContainerComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgStateTextValueContainerComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgStateTextValueContainerComponent.prototype, "settings", void 0); SvgStateTextValueContainerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-state-text-value-container]', template: __webpack_require__(/*! ./svg-state-text-value-container.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.html"), styles: [__webpack_require__(/*! ./svg-state-text-value-container.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-state-text-value-container/svg-state-text-value-container.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_6__["DynamicSvgPageService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"], app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_4__["DataPointService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_2__["ColorService"]]) ], SvgStateTextValueContainerComponent); return SvgStateTextValueContainerComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.html": /*!*********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.html ***! \*********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n {{valueProvider | async |\n unitsystemconvert:displayValueToNkMappings[currentDisplayValue]:currentLanguage}}\n {{displayValueToNkMappings[currentDisplayValue]\n | unitsystemunit}}\n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.scss": /*!*********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.scss ***! \*********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme .logo-color {\n color: #1561a1; }\n\n.default-theme .logo-color-bg {\n background-color: #1561a1; }\n\n.default-theme .logo-color-fill {\n fill: #1561a1; }\n\n.default-theme .logo-color-stroke {\n stroke: #1561a1; }\n\n.default-theme .primary-color {\n color: #ffffff; }\n\n.default-theme .primary-color-bg {\n background-color: #ffffff; }\n\n.default-theme .primary-color-fill {\n fill: #ffffff; }\n\n.default-theme .primary-color-stroke {\n stroke: #ffffff; }\n\n.default-theme .accent-color {\n color: #1561a1; }\n\n.default-theme .accent-color-bg {\n background-color: #1561a1; }\n\n.default-theme .accent-color-fill {\n fill: #1561a1; }\n\n.default-theme .accent-color-stroke {\n stroke: #1561a1; }\n\n.default-theme .note-color {\n color: #ffa80f; }\n\n.default-theme .note-color-bg {\n background-color: #ffa80f; }\n\n.default-theme .note-color-fill {\n fill: #ffa80f; }\n\n.default-theme .note-color-stroke {\n stroke: #ffa80f; }\n\n.default-theme .row-hover {\n color: #d0e8fc; }\n\n.default-theme .row-hover-bg {\n background-color: #d0e8fc; }\n\n.default-theme .row-hover-fill {\n fill: #d0e8fc; }\n\n.default-theme .row-hover-stroke {\n stroke: #d0e8fc; }\n\n.default-theme .contrast-0 {\n color: #ffffff; }\n\n.default-theme .contrast-0-bg {\n background-color: #ffffff; }\n\n.default-theme .contrast-0-fill {\n fill: #ffffff; }\n\n.default-theme .contrast-0-stroke {\n stroke: #ffffff; }\n\n.default-theme .contrast-1 {\n color: #eaebed; }\n\n.default-theme .contrast-1-bg {\n background-color: #eaebed; }\n\n.default-theme .contrast-1-fill {\n fill: #eaebed; }\n\n.default-theme .contrast-1-stroke {\n stroke: #eaebed; }\n\n.default-theme .contrast-2 {\n color: #d4d7da; }\n\n.default-theme .contrast-2-bg {\n background-color: #d4d7da; }\n\n.default-theme .contrast-2-fill {\n fill: #d4d7da; }\n\n.default-theme .contrast-2-stroke {\n stroke: #d4d7da; }\n\n.default-theme .contrast-3 {\n color: #949aa3; }\n\n.default-theme .contrast-3-bg {\n background-color: #949aa3; }\n\n.default-theme .contrast-3-fill {\n fill: #949aa3; }\n\n.default-theme .contrast-3-stroke {\n stroke: #949aa3; }\n\n.default-theme .contrast-4 {\n color: #69727e; }\n\n.default-theme .contrast-4-bg {\n background-color: #69727e; }\n\n.default-theme .contrast-4-fill {\n fill: #69727e; }\n\n.default-theme .contrast-4-stroke {\n stroke: #69727e; }\n\n.default-theme .contrast-5 {\n color: #293647; }\n\n.default-theme .contrast-5-bg {\n background-color: #293647; }\n\n.default-theme .contrast-5-fill {\n fill: #293647; }\n\n.default-theme .contrast-5-stroke {\n stroke: #293647; }\n\n.default-theme .contrast-6 {\n color: #f4f5f6; }\n\n.default-theme .contrast-6-bg {\n background-color: #f4f5f6; }\n\n.default-theme .contrast-6-fill {\n fill: #f4f5f6; }\n\n.default-theme .contrast-6-stroke {\n stroke: #f4f5f6; }\n\n.default-theme .contrast-7 {\n color: #c4c7cc; }\n\n.default-theme .contrast-7-bg {\n background-color: #c4c7cc; }\n\n.default-theme .contrast-7-fill {\n fill: #c4c7cc; }\n\n.default-theme .contrast-7-stroke {\n stroke: #c4c7cc; }\n\n.default-theme .contrast-8 {\n color: #696e76; }\n\n.default-theme .contrast-8-bg {\n background-color: #696e76; }\n\n.default-theme .contrast-8-fill {\n fill: #696e76; }\n\n.default-theme .contrast-8-stroke {\n stroke: #696e76; }\n\n.default-theme .contrast-9 {\n color: #9197a0; }\n\n.default-theme .contrast-9-bg {\n background-color: #9197a0; }\n\n.default-theme .contrast-9-fill {\n fill: #9197a0; }\n\n.default-theme .contrast-9-stroke {\n stroke: #9197a0; }\n\n.default-theme .background {\n color: #d4d7da; }\n\n.default-theme .background-bg {\n background-color: #d4d7da; }\n\n.default-theme .background-fill {\n fill: #d4d7da; }\n\n.default-theme .background-stroke {\n stroke: #d4d7da; }\n\n.default-theme .content-background {\n color: #f4f5f6; }\n\n.default-theme .content-background-bg {\n background-color: #f4f5f6; }\n\n.default-theme .content-background-fill {\n fill: #f4f5f6; }\n\n.default-theme .content-background-stroke {\n stroke: #f4f5f6; }\n\n.default-theme .state-ok {\n color: #00cf78; }\n\n.default-theme .state-ok-bg {\n background-color: #00cf78; }\n\n.default-theme .state-ok-fill {\n fill: #00cf78; }\n\n.default-theme .state-ok-stroke {\n stroke: #00cf78; }\n\n.default-theme .state-info {\n color: #00cf78; }\n\n.default-theme .state-info-bg {\n background-color: #00cf78; }\n\n.default-theme .state-info-fill {\n fill: #00cf78; }\n\n.default-theme .state-info-stroke {\n stroke: #00cf78; }\n\n.default-theme .state-active {\n color: #00cf78; }\n\n.default-theme .state-active-bg {\n background-color: #00cf78; }\n\n.default-theme .state-active-fill {\n fill: #00cf78; }\n\n.default-theme .state-active-stroke {\n stroke: #00cf78; }\n\n.default-theme .font-color-primary {\n color: #293647; }\n\n.default-theme .font-color-primary-bg {\n background-color: #293647; }\n\n.default-theme .font-color-primary-fill {\n fill: #293647; }\n\n.default-theme .font-color-primary-stroke {\n stroke: #293647; }\n\n.default-theme .font-color-secondary {\n color: #69727e; }\n\n.default-theme .font-color-secondary-bg {\n background-color: #69727e; }\n\n.default-theme .font-color-secondary-fill {\n fill: #69727e; }\n\n.default-theme .font-color-secondary-stroke {\n stroke: #69727e; }\n\n.default-theme .font-color-tertiary {\n color: #c7c7c7; }\n\n.default-theme .font-color-tertiary-bg {\n background-color: #c7c7c7; }\n\n.default-theme .font-color-tertiary-fill {\n fill: #c7c7c7; }\n\n.default-theme .font-color-tertiary-stroke {\n stroke: #c7c7c7; }\n\n.default-theme .font-color-primary-invers {\n color: #293647; }\n\n.default-theme .font-color-primary-invers-bg {\n background-color: #293647; }\n\n.default-theme .font-color-primary-invers-fill {\n fill: #293647; }\n\n.default-theme .font-color-primary-invers-stroke {\n stroke: #293647; }\n\n.default-theme .font-color-secondary-invers {\n color: #69727e; }\n\n.default-theme .font-color-secondary-invers-bg {\n background-color: #69727e; }\n\n.default-theme .font-color-secondary-invers-fill {\n fill: #69727e; }\n\n.default-theme .font-color-secondary-invers-stroke {\n stroke: #69727e; }\n\n.default-theme .font-color-tertiary-invers {\n color: #c7c7c7; }\n\n.default-theme .font-color-tertiary-invers-bg {\n background-color: #c7c7c7; }\n\n.default-theme .font-color-tertiary-invers-fill {\n fill: #c7c7c7; }\n\n.default-theme .font-color-tertiary-invers-stroke {\n stroke: #c7c7c7; }\n\n.default-theme .sensor-color-on {\n color: #00cf78; }\n\n.default-theme .sensor-color-on-bg {\n background-color: #00cf78; }\n\n.default-theme .sensor-color-on-fill {\n fill: #00cf78; }\n\n.default-theme .sensor-color-on-stroke {\n stroke: #00cf78; }\n\n.default-theme .sensor-color-off {\n color: #d4d7da; }\n\n.default-theme .sensor-color-off-bg {\n background-color: #d4d7da; }\n\n.default-theme .sensor-color-off-fill {\n fill: #d4d7da; }\n\n.default-theme .sensor-color-off-stroke {\n stroke: #d4d7da; }\n\n.default-theme .seated {\n color: #e0940d; }\n\n.default-theme .seated-bg {\n background-color: #e0940d; }\n\n.default-theme .seated-fill {\n fill: #e0940d; }\n\n.default-theme .seated-stroke {\n stroke: #e0940d; }\n\n.default-theme .locked {\n color: #8e1c1c; }\n\n.default-theme .locked-bg {\n background-color: #8e1c1c; }\n\n.default-theme .locked-fill {\n fill: #8e1c1c; }\n\n.default-theme .locked-stroke {\n stroke: #8e1c1c; }\n\n.default-theme .locked-invers {\n color: #387a56; }\n\n.default-theme .locked-invers-bg {\n background-color: #387a56; }\n\n.default-theme .locked-invers-fill {\n fill: #387a56; }\n\n.default-theme .locked-invers-stroke {\n stroke: #387a56; }\n\n.default-theme .unclamped {\n color: #00cf78; }\n\n.default-theme .unclamped-bg {\n background-color: #00cf78; }\n\n.default-theme .unclamped-fill {\n fill: #00cf78; }\n\n.default-theme .unclamped-stroke {\n stroke: #00cf78; }\n\n.default-theme .unclamped-invers {\n color: #8e1c1c; }\n\n.default-theme .unclamped-invers-bg {\n background-color: #8e1c1c; }\n\n.default-theme .unclamped-invers-fill {\n fill: #8e1c1c; }\n\n.default-theme .unclamped-invers-stroke {\n stroke: #8e1c1c; }\n\n.default-theme .unlocked {\n color: #387a56; }\n\n.default-theme .unlocked-bg {\n background-color: #387a56; }\n\n.default-theme .unlocked-fill {\n fill: #387a56; }\n\n.default-theme .unlocked-stroke {\n stroke: #387a56; }\n\n.default-theme .unlocked-invers {\n color: #8e1c1c; }\n\n.default-theme .unlocked-invers-bg {\n background-color: #8e1c1c; }\n\n.default-theme .unlocked-invers-fill {\n fill: #8e1c1c; }\n\n.default-theme .unlocked-invers-stroke {\n stroke: #8e1c1c; }\n\n.default-theme .speedlimit {\n color: #ffa80f; }\n\n.default-theme .speedlimit-bg {\n background-color: #ffa80f; }\n\n.default-theme .speedlimit-fill {\n fill: #ffa80f; }\n\n.default-theme .speedlimit-stroke {\n stroke: #ffa80f; }\n\n.default-theme .interlock {\n color: #f11d40; }\n\n.default-theme .interlock-bg {\n background-color: #f11d40; }\n\n.default-theme .interlock-fill {\n fill: #f11d40; }\n\n.default-theme .interlock-stroke {\n stroke: #f11d40; }\n\n.default-theme .chart-series-1 {\n color: #00dc7f; }\n\n.default-theme .chart-series-1-bg {\n background-color: #00dc7f; }\n\n.default-theme .chart-series-1-fill {\n fill: #00dc7f; }\n\n.default-theme .chart-series-1-stroke {\n stroke: #00dc7f; }\n\n.default-theme .chart-series-2 {\n color: #2e19f6; }\n\n.default-theme .chart-series-2-bg {\n background-color: #2e19f6; }\n\n.default-theme .chart-series-2-fill {\n fill: #2e19f6; }\n\n.default-theme .chart-series-2-stroke {\n stroke: #2e19f6; }\n\n.default-theme .chart-series-3 {\n color: #f62596; }\n\n.default-theme .chart-series-3-bg {\n background-color: #f62596; }\n\n.default-theme .chart-series-3-fill {\n fill: #f62596; }\n\n.default-theme .chart-series-3-stroke {\n stroke: #f62596; }\n\n.default-theme .chart-series-4 {\n color: #f68825; }\n\n.default-theme .chart-series-4-bg {\n background-color: #f68825; }\n\n.default-theme .chart-series-4-fill {\n fill: #f68825; }\n\n.default-theme .chart-series-4-stroke {\n stroke: #f68825; }\n\n.default-theme .chart-series-5 {\n color: #f0f619; }\n\n.default-theme .chart-series-5-bg {\n background-color: #f0f619; }\n\n.default-theme .chart-series-5-fill {\n fill: #f0f619; }\n\n.default-theme .chart-series-5-stroke {\n stroke: #f0f619; }\n\n.default-theme .chart-series-6 {\n color: #E74C3C; }\n\n.default-theme .chart-series-6-bg {\n background-color: #E74C3C; }\n\n.default-theme .chart-series-6-fill {\n fill: #E74C3C; }\n\n.default-theme .chart-series-6-stroke {\n stroke: #E74C3C; }\n\n.default-theme .chart-series-7 {\n color: #C39BD3; }\n\n.default-theme .chart-series-7-bg {\n background-color: #C39BD3; }\n\n.default-theme .chart-series-7-fill {\n fill: #C39BD3; }\n\n.default-theme .chart-series-7-stroke {\n stroke: #C39BD3; }\n\n.default-theme .chart-series-8 {\n color: #00796B; }\n\n.default-theme .chart-series-8-bg {\n background-color: #00796B; }\n\n.default-theme .chart-series-8-fill {\n fill: #00796B; }\n\n.default-theme .chart-series-8-stroke {\n stroke: #00796B; }\n\n.default-theme .chart-series-9 {\n color: #F1948A; }\n\n.default-theme .chart-series-9-bg {\n background-color: #F1948A; }\n\n.default-theme .chart-series-9-fill {\n fill: #F1948A; }\n\n.default-theme .chart-series-9-stroke {\n stroke: #F1948A; }\n\n.default-theme .chart-series-10 {\n color: #03a9f4; }\n\n.default-theme .chart-series-10-bg {\n background-color: #03a9f4; }\n\n.default-theme .chart-series-10-fill {\n fill: #03a9f4; }\n\n.default-theme .chart-series-10-stroke {\n stroke: #03a9f4; }\n\n.default-theme .replay-mode {\n color: #f11d40; }\n\n.default-theme .replay-mode-bg {\n background-color: #f11d40; }\n\n.default-theme .replay-mode-fill {\n fill: #f11d40; }\n\n.default-theme .replay-mode-stroke {\n stroke: #f11d40; }\n\n.default-theme .testing-mode {\n color: #4797d5; }\n\n.default-theme .testing-mode-bg {\n background-color: #4797d5; }\n\n.default-theme .testing-mode-fill {\n fill: #4797d5; }\n\n.default-theme .testing-mode-stroke {\n stroke: #4797d5; }\n\n.default-theme .state-warning {\n color: #ffa80f; }\n\n.default-theme .state-warning-bg {\n background-color: #ffa80f; }\n\n.default-theme .state-warning-fill {\n fill: #ffa80f; }\n\n.default-theme .state-warning-stroke {\n stroke: #ffa80f; }\n\n.default-theme .state-alert {\n color: #f11d40; }\n\n.default-theme .state-alert-bg {\n background-color: #f11d40; }\n\n.default-theme .state-alert-fill {\n fill: #f11d40; }\n\n.default-theme .state-alert-stroke {\n stroke: #f11d40; }\n\n.default-theme .state-alert-light {\n color: #f9a4b2; }\n\n.default-theme .state-alert-light-bg {\n background-color: #f9a4b2; }\n\n.default-theme .state-alert-light-fill {\n fill: #f9a4b2; }\n\n.default-theme .state-alert-light-stroke {\n stroke: #f9a4b2; }\n\n.default-theme .state-failure {\n color: #8e1c1c; }\n\n.default-theme .state-failure-bg {\n background-color: #8e1c1c; }\n\n.default-theme .state-failure-fill {\n fill: #8e1c1c; }\n\n.default-theme .state-failure-stroke {\n stroke: #8e1c1c; }\n\n.default-theme .state-unknown {\n color: #d4d7da; }\n\n.default-theme .state-unknown-bg {\n background-color: #d4d7da; }\n\n.default-theme .state-unknown-fill {\n fill: #d4d7da; }\n\n.default-theme .state-unknown-stroke {\n stroke: #d4d7da; }\n\n.testing-theme .logo-color {\n color: #ffffff; }\n\n.testing-theme .logo-color-bg {\n background-color: #ffffff; }\n\n.testing-theme .logo-color-fill {\n fill: #ffffff; }\n\n.testing-theme .logo-color-stroke {\n stroke: #ffffff; }\n\n.testing-theme .primary-color {\n color: #98057e; }\n\n.testing-theme .primary-color-bg {\n background-color: #98057e; }\n\n.testing-theme .primary-color-fill {\n fill: #98057e; }\n\n.testing-theme .primary-color-stroke {\n stroke: #98057e; }\n\n.testing-theme .accent-color {\n color: #cfac1f; }\n\n.testing-theme .accent-color-bg {\n background-color: #cfac1f; }\n\n.testing-theme .accent-color-fill {\n fill: #cfac1f; }\n\n.testing-theme .accent-color-stroke {\n stroke: #cfac1f; }\n\n.testing-theme .note-color {\n color: #ffa80f; }\n\n.testing-theme .note-color-bg {\n background-color: #ffa80f; }\n\n.testing-theme .note-color-fill {\n fill: #ffa80f; }\n\n.testing-theme .note-color-stroke {\n stroke: #ffa80f; }\n\n.testing-theme .row-hover {\n color: #c2b377; }\n\n.testing-theme .row-hover-bg {\n background-color: #c2b377; }\n\n.testing-theme .row-hover-fill {\n fill: #c2b377; }\n\n.testing-theme .row-hover-stroke {\n stroke: #c2b377; }\n\n.testing-theme .contrast-0 {\n color: #ffffff; }\n\n.testing-theme .contrast-0-bg {\n background-color: #ffffff; }\n\n.testing-theme .contrast-0-fill {\n fill: #ffffff; }\n\n.testing-theme .contrast-0-stroke {\n stroke: #ffffff; }\n\n.testing-theme .contrast-1 {\n color: #bdc2c6; }\n\n.testing-theme .contrast-1-bg {\n background-color: #bdc2c6; }\n\n.testing-theme .contrast-1-fill {\n fill: #bdc2c6; }\n\n.testing-theme .contrast-1-stroke {\n stroke: #bdc2c6; }\n\n.testing-theme .contrast-2 {\n color: #b0c3d2; }\n\n.testing-theme .contrast-2-bg {\n background-color: #b0c3d2; }\n\n.testing-theme .contrast-2-fill {\n fill: #b0c3d2; }\n\n.testing-theme .contrast-2-stroke {\n stroke: #b0c3d2; }\n\n.testing-theme .contrast-3 {\n color: #a9cfec; }\n\n.testing-theme .contrast-3-bg {\n background-color: #a9cfec; }\n\n.testing-theme .contrast-3-fill {\n fill: #a9cfec; }\n\n.testing-theme .contrast-3-stroke {\n stroke: #a9cfec; }\n\n.testing-theme .contrast-4 {\n color: #4797d5; }\n\n.testing-theme .contrast-4-bg {\n background-color: #4797d5; }\n\n.testing-theme .contrast-4-fill {\n fill: #4797d5; }\n\n.testing-theme .contrast-4-stroke {\n stroke: #4797d5; }\n\n.testing-theme .contrast-5 {\n color: #a70091; }\n\n.testing-theme .contrast-5-bg {\n background-color: #a70091; }\n\n.testing-theme .contrast-5-fill {\n fill: #a70091; }\n\n.testing-theme .contrast-5-stroke {\n stroke: #a70091; }\n\n.testing-theme .contrast-6 {\n color: #f4f5f6; }\n\n.testing-theme .contrast-6-bg {\n background-color: #f4f5f6; }\n\n.testing-theme .contrast-6-fill {\n fill: #f4f5f6; }\n\n.testing-theme .contrast-6-stroke {\n stroke: #f4f5f6; }\n\n.testing-theme .contrast-7 {\n color: #c4c7cc; }\n\n.testing-theme .contrast-7-bg {\n background-color: #c4c7cc; }\n\n.testing-theme .contrast-7-fill {\n fill: #c4c7cc; }\n\n.testing-theme .contrast-7-stroke {\n stroke: #c4c7cc; }\n\n.testing-theme .background {\n color: #d4d7da; }\n\n.testing-theme .background-bg {\n background-color: #d4d7da; }\n\n.testing-theme .background-fill {\n fill: #d4d7da; }\n\n.testing-theme .background-stroke {\n stroke: #d4d7da; }\n\n.testing-theme .content-background {\n color: #f4f5f6; }\n\n.testing-theme .content-background-bg {\n background-color: #f4f5f6; }\n\n.testing-theme .content-background-fill {\n fill: #f4f5f6; }\n\n.testing-theme .content-background-stroke {\n stroke: #f4f5f6; }\n\n.testing-theme .state-ok {\n color: #00cf78; }\n\n.testing-theme .state-ok-bg {\n background-color: #00cf78; }\n\n.testing-theme .state-ok-fill {\n fill: #00cf78; }\n\n.testing-theme .state-ok-stroke {\n stroke: #00cf78; }\n\n.testing-theme .state-info {\n color: #00cf78; }\n\n.testing-theme .state-info-bg {\n background-color: #00cf78; }\n\n.testing-theme .state-info-fill {\n fill: #00cf78; }\n\n.testing-theme .state-info-stroke {\n stroke: #00cf78; }\n\n.testing-theme .state-active {\n color: #00cf78; }\n\n.testing-theme .state-active-bg {\n background-color: #00cf78; }\n\n.testing-theme .state-active-fill {\n fill: #00cf78; }\n\n.testing-theme .state-active-stroke {\n stroke: #00cf78; }\n\n.testing-theme .font-color-primary {\n color: #525252; }\n\n.testing-theme .font-color-primary-bg {\n background-color: #525252; }\n\n.testing-theme .font-color-primary-fill {\n fill: #525252; }\n\n.testing-theme .font-color-primary-stroke {\n stroke: #525252; }\n\n.testing-theme .font-color-secondary {\n color: #797979; }\n\n.testing-theme .font-color-secondary-bg {\n background-color: #797979; }\n\n.testing-theme .font-color-secondary-fill {\n fill: #797979; }\n\n.testing-theme .font-color-secondary-stroke {\n stroke: #797979; }\n\n.testing-theme .font-color-primary-invers {\n color: #ffffff; }\n\n.testing-theme .font-color-primary-invers-bg {\n background-color: #ffffff; }\n\n.testing-theme .font-color-primary-invers-fill {\n fill: #ffffff; }\n\n.testing-theme .font-color-primary-invers-stroke {\n stroke: #ffffff; }\n\n.testing-theme .font-color-secondary-invers {\n color: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .font-color-secondary-invers-bg {\n background-color: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .font-color-secondary-invers-fill {\n fill: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .font-color-secondary-invers-stroke {\n stroke: rgba(255, 255, 255, 0.75); }\n\n.testing-theme .sensor-color-on {\n color: #37af37; }\n\n.testing-theme .sensor-color-on-bg {\n background-color: #37af37; }\n\n.testing-theme .sensor-color-on-fill {\n fill: #37af37; }\n\n.testing-theme .sensor-color-on-stroke {\n stroke: #37af37; }\n\n.testing-theme .sensor-color-off {\n color: #ca3232; }\n\n.testing-theme .sensor-color-off-bg {\n background-color: #ca3232; }\n\n.testing-theme .sensor-color-off-fill {\n fill: #ca3232; }\n\n.testing-theme .sensor-color-off-stroke {\n stroke: #ca3232; }\n\n.testing-theme .seated {\n color: #e0940d; }\n\n.testing-theme .seated-bg {\n background-color: #e0940d; }\n\n.testing-theme .seated-fill {\n fill: #e0940d; }\n\n.testing-theme .seated-stroke {\n stroke: #e0940d; }\n\n.testing-theme .locked {\n color: #8e1c1c; }\n\n.testing-theme .locked-bg {\n background-color: #8e1c1c; }\n\n.testing-theme .locked-fill {\n fill: #8e1c1c; }\n\n.testing-theme .locked-stroke {\n stroke: #8e1c1c; }\n\n.testing-theme .locked-invers {\n color: #4797d5; }\n\n.testing-theme .locked-invers-bg {\n background-color: #4797d5; }\n\n.testing-theme .locked-invers-fill {\n fill: #4797d5; }\n\n.testing-theme .locked-invers-stroke {\n stroke: #4797d5; }\n\n.testing-theme .unclamped {\n color: #00cf78; }\n\n.testing-theme .unclamped-bg {\n background-color: #00cf78; }\n\n.testing-theme .unclamped-fill {\n fill: #00cf78; }\n\n.testing-theme .unclamped-stroke {\n stroke: #00cf78; }\n\n.testing-theme .unclamped-invers {\n color: #8e1c1c; }\n\n.testing-theme .unclamped-invers-bg {\n background-color: #8e1c1c; }\n\n.testing-theme .unclamped-invers-fill {\n fill: #8e1c1c; }\n\n.testing-theme .unclamped-invers-stroke {\n stroke: #8e1c1c; }\n\n.testing-theme .unlocked {\n color: #4797d5; }\n\n.testing-theme .unlocked-bg {\n background-color: #4797d5; }\n\n.testing-theme .unlocked-fill {\n fill: #4797d5; }\n\n.testing-theme .unlocked-stroke {\n stroke: #4797d5; }\n\n.testing-theme .unlocked-invers {\n color: #8e1c1c; }\n\n.testing-theme .unlocked-invers-bg {\n background-color: #8e1c1c; }\n\n.testing-theme .unlocked-invers-fill {\n fill: #8e1c1c; }\n\n.testing-theme .unlocked-invers-stroke {\n stroke: #8e1c1c; }\n\n.testing-theme .speedlimit {\n color: #ffa80f; }\n\n.testing-theme .speedlimit-bg {\n background-color: #ffa80f; }\n\n.testing-theme .speedlimit-fill {\n fill: #ffa80f; }\n\n.testing-theme .speedlimit-stroke {\n stroke: #ffa80f; }\n\n.testing-theme .interlock {\n color: #8f1f89; }\n\n.testing-theme .interlock-bg {\n background-color: #8f1f89; }\n\n.testing-theme .interlock-fill {\n fill: #8f1f89; }\n\n.testing-theme .interlock-stroke {\n stroke: #8f1f89; }\n\n.testing-theme .chart-series-1 {\n color: #00dc7f; }\n\n.testing-theme .chart-series-1-bg {\n background-color: #00dc7f; }\n\n.testing-theme .chart-series-1-fill {\n fill: #00dc7f; }\n\n.testing-theme .chart-series-1-stroke {\n stroke: #00dc7f; }\n\n.testing-theme .chart-series-2 {\n color: #2e19f6; }\n\n.testing-theme .chart-series-2-bg {\n background-color: #2e19f6; }\n\n.testing-theme .chart-series-2-fill {\n fill: #2e19f6; }\n\n.testing-theme .chart-series-2-stroke {\n stroke: #2e19f6; }\n\n.testing-theme .chart-series-3 {\n color: #f62596; }\n\n.testing-theme .chart-series-3-bg {\n background-color: #f62596; }\n\n.testing-theme .chart-series-3-fill {\n fill: #f62596; }\n\n.testing-theme .chart-series-3-stroke {\n stroke: #f62596; }\n\n.testing-theme .chart-series-4 {\n color: #f68825; }\n\n.testing-theme .chart-series-4-bg {\n background-color: #f68825; }\n\n.testing-theme .chart-series-4-fill {\n fill: #f68825; }\n\n.testing-theme .chart-series-4-stroke {\n stroke: #f68825; }\n\n.testing-theme .chart-series-5 {\n color: #f0f619; }\n\n.testing-theme .chart-series-5-bg {\n background-color: #f0f619; }\n\n.testing-theme .chart-series-5-fill {\n fill: #f0f619; }\n\n.testing-theme .chart-series-5-stroke {\n stroke: #f0f619; }\n\n.testing-theme .chart-series-6 {\n color: #E74C3C; }\n\n.testing-theme .chart-series-6-bg {\n background-color: #E74C3C; }\n\n.testing-theme .chart-series-6-fill {\n fill: #E74C3C; }\n\n.testing-theme .chart-series-6-stroke {\n stroke: #E74C3C; }\n\n.testing-theme .chart-series-7 {\n color: #C39BD3; }\n\n.testing-theme .chart-series-7-bg {\n background-color: #C39BD3; }\n\n.testing-theme .chart-series-7-fill {\n fill: #C39BD3; }\n\n.testing-theme .chart-series-7-stroke {\n stroke: #C39BD3; }\n\n.testing-theme .chart-series-8 {\n color: #00796B; }\n\n.testing-theme .chart-series-8-bg {\n background-color: #00796B; }\n\n.testing-theme .chart-series-8-fill {\n fill: #00796B; }\n\n.testing-theme .chart-series-8-stroke {\n stroke: #00796B; }\n\n.testing-theme .chart-series-9 {\n color: #F1948A; }\n\n.testing-theme .chart-series-9-bg {\n background-color: #F1948A; }\n\n.testing-theme .chart-series-9-fill {\n fill: #F1948A; }\n\n.testing-theme .chart-series-9-stroke {\n stroke: #F1948A; }\n\n.testing-theme .chart-series-10 {\n color: #03a9f4; }\n\n.testing-theme .chart-series-10-bg {\n background-color: #03a9f4; }\n\n.testing-theme .chart-series-10-fill {\n fill: #03a9f4; }\n\n.testing-theme .chart-series-10-stroke {\n stroke: #03a9f4; }\n\n.testing-theme .replay-mode {\n color: #8f1f89; }\n\n.testing-theme .replay-mode-bg {\n background-color: #8f1f89; }\n\n.testing-theme .replay-mode-fill {\n fill: #8f1f89; }\n\n.testing-theme .replay-mode-stroke {\n stroke: #8f1f89; }\n\n.testing-theme .testing-mode {\n color: #4797d5; }\n\n.testing-theme .testing-mode-bg {\n background-color: #4797d5; }\n\n.testing-theme .testing-mode-fill {\n fill: #4797d5; }\n\n.testing-theme .testing-mode-stroke {\n stroke: #4797d5; }\n\n.testing-theme .state-warning {\n color: #ffa80f; }\n\n.testing-theme .state-warning-bg {\n background-color: #ffa80f; }\n\n.testing-theme .state-warning-fill {\n fill: #ffa80f; }\n\n.testing-theme .state-warning-stroke {\n stroke: #ffa80f; }\n\n.testing-theme .state-alert-light {\n color: #f9a4b2; }\n\n.testing-theme .state-alert-light-bg {\n background-color: #f9a4b2; }\n\n.testing-theme .state-alert-light-fill {\n fill: #f9a4b2; }\n\n.testing-theme .state-alert-light-stroke {\n stroke: #f9a4b2; }\n\n.testing-theme .state-alert {\n color: #f11d40; }\n\n.testing-theme .state-alert-bg {\n background-color: #f11d40; }\n\n.testing-theme .state-alert-fill {\n fill: #f11d40; }\n\n.testing-theme .state-alert-stroke {\n stroke: #f11d40; }\n\n.testing-theme .state-failure {\n color: #8e1c1c; }\n\n.testing-theme .state-failure-bg {\n background-color: #8e1c1c; }\n\n.testing-theme .state-failure-fill {\n fill: #8e1c1c; }\n\n.testing-theme .state-failure-stroke {\n stroke: #8e1c1c; }\n\n.testing-theme .state-unknown {\n color: #d4d7da; }\n\n.testing-theme .state-unknown-bg {\n background-color: #d4d7da; }\n\n.testing-theme .state-unknown-fill {\n fill: #d4d7da; }\n\n.testing-theme .state-unknown-stroke {\n stroke: #d4d7da; }\n\n.invisible {\n visibility: hidden; }\n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.ts": /*!*******************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.ts ***! \*******************************************************************************************************************************/ /*! exports provided: SvgValueContainerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgValueContainerComponent", function() { return SvgValueContainerComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var SvgValueContainerComponent = /** @class */ (function () { function SvgValueContainerComponent(svgPageService, cmsTranslationService, dataPointService, datapointRangeService, _configService, _colorService) { this.svgPageService = svgPageService; this.cmsTranslationService = cmsTranslationService; this.dataPointService = dataPointService; this.datapointRangeService = datapointRangeService; this._configService = _configService; this._colorService = _colorService; this.displayValueToIsBooleanToColorMappings = new Map(); this.nkArray = []; this.displayValueArray = []; this.valueProviders = new Map(); this.displayValueToNkMappings = new Map(); this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_7__["SvgShapeType"]; } Object.defineProperty(SvgValueContainerComponent.prototype, "currentLanguage", { get: function () { return this.cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); SvgValueContainerComponent.prototype.ngOnInit = function () { var _this = this; for (var c = 0; c < this.settings.displayValues.length; c++) { var mapping = this.settings.displayValues[c]; if (mapping.naturalKey != undefined && this.nkArray.indexOf(mapping.naturalKey) < 0) this.nkArray.push(mapping.naturalKey); if (this.displayValueArray.indexOf(mapping.displayedValue) < 0) this.displayValueArray.push(mapping.displayedValue); this.displayValueToNkMappings[mapping.displayedValue] = mapping.naturalKey; this.displayValueToIsBooleanToColorMappings[mapping.displayedValue] = mapping.isBooleanToColorMapping; this.valueProviders[mapping.displayedValue] = new rxjs__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"](0); } if (this.nkArray != null && this.nkArray.length > 0) { this.dataPointService.requestDataPoints(this.nkArray); } this.dataPointSubscription = this.setupValueProviders(); if (this.settings.containerType == types_config__WEBPACK_IMPORTED_MODULE_7__["ValueContainerType"].Simple) { this.currentDisplayValue = types_config__WEBPACK_IMPORTED_MODULE_7__["DisplayValue"].Static; this.valueProvider = this.valueProviders[types_config__WEBPACK_IMPORTED_MODULE_7__["DisplayValue"].Static]; var naturalKey = this.displayValueToNkMappings[this.currentDisplayValue]; this.range = this.datapointRangeService.getRange(naturalKey); this.activeColor = this.valueProvider.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (x) { return _this.getActiveColor(x); }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["mergeAll"])()); } else if (this.settings.containerType == types_config__WEBPACK_IMPORTED_MODULE_7__["ValueContainerType"].Switching) { this.currentDisplayValue = this.svgPageService.currentDisplayMode; this.valueProvider = this.valueProviders[this.currentDisplayValue]; this.svgPageService.displayModeChanged.subscribe({ next: function (v) { return _this.onDisplayValueChanged(v); }, }); } }; SvgValueContainerComponent.prototype.getActiveColor = function (displayValue) { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { if (this.range) { if (this.range.alarmMax != null && displayValue > this.range.alarmMax) { return [2 /*return*/, 1]; } else if (this.range.alarmMin != null && displayValue < this.range.alarmMin) { return [2 /*return*/, 2]; } } return [2 /*return*/, 0]; }); }); }; SvgValueContainerComponent.prototype.ngOnDestroy = function () { this.dataPointSubscription.unsubscribe(); }; SvgValueContainerComponent.prototype.onDisplayValueChanged = function (displayValue) { this.currentDisplayValue = displayValue; this.valueProvider = this.valueProviders[this.currentDisplayValue]; }; SvgValueContainerComponent.prototype.setupValueProviders = function () { var _this = this; return this.dataPointService.dataPoints.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["filter"])(function (dp) { return _this.nkArray.some(function (nk) { return dp.ContainsKey(nk); }); })).subscribe({ next: function (dataPoints) { for (var key in _this.displayValueToNkMappings) { var dataPoint = dataPoints.Get(_this.displayValueToNkMappings[key]); var isBooleanToColorMapping = _this.displayValueToIsBooleanToColorMappings[key]; if (dataPoint != undefined) { if (isBooleanToColorMapping) _this.valueProviders[key].next(_this.getColorCode(dataPoint.naturalKey, dataPoint.data)); else _this.valueProviders[key].next(dataPoint.data); } } } }); }; SvgValueContainerComponent.prototype.getColorCode = function (naturalKey, nkValue) { var metaData = this._configService.craneConfig.datapointMetadata[naturalKey]; var _a = this._colorService.resolveColors(naturalKey, metaData), active = _a[0], inactive = _a[1]; return nkValue ? active : inactive; }; SvgValueContainerComponent.prototype.removeAlpha = function (color) { if (color.length > 7) { var newColor = color[0] + color.slice(3); return newColor; } return color; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgValueContainerComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgValueContainerComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgValueContainerComponent.prototype, "settings", void 0); SvgValueContainerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-value-container]', template: __webpack_require__(/*! ./svg-value-container.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.html"), styles: [__webpack_require__(/*! ./svg-value-container.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/common/svg-value-container/svg-value-container.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_9__["DynamicSvgPageService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"], app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_4__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_8__["DataPointRangeService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_2__["ColorService"]]) ], SvgValueContainerComponent); return SvgValueContainerComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.html": /*!*******************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.html ***! \*******************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n CU\n {{settings.componentNumber}}\n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.scss": /*!*******************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.scss ***! \*******************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.ts": /*!*****************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.ts ***! \*****************************************************************************************************************************************/ /*! exports provided: SvgControlUnitComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgControlUnitComponent", function() { return SvgControlUnitComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgControlUnitComponent = /** @class */ (function () { function SvgControlUnitComponent(svgPageService) { this.svgPageService = svgPageService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; } SvgControlUnitComponent.prototype.ngOnInit = function () { this.fault = this.svgPageService.getValueProvider(this.settings.nkFault); this.error = this.svgPageService.getValueProvider(this.settings.nkError); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgControlUnitComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgControlUnitComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgControlUnitComponent.prototype, "settings", void 0); SvgControlUnitComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-control-unit]', template: __webpack_require__(/*! ./svg-control-unit.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.html"), styles: [__webpack_require__(/*! ./svg-control-unit.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-control-unit/svg-control-unit.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"]]) ], SvgControlUnitComponent); return SvgControlUnitComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.html": /*!*******************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.html ***! \*******************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.scss": /*!*******************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.scss ***! \*******************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.ts": /*!*****************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.ts ***! \*****************************************************************************************************************************/ /*! exports provided: SvgDcBusComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgDcBusComponent", function() { return SvgDcBusComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgDcBusComponent = /** @class */ (function () { function SvgDcBusComponent() { this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_1__["SvgShapeType"]; } SvgDcBusComponent.prototype.ngOnInit = function () { }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgDcBusComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgDcBusComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgDcBusComponent.prototype, "settings", void 0); SvgDcBusComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-dc-bus]', template: __webpack_require__(/*! ./svg-dc-bus.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.html"), styles: [__webpack_require__(/*! ./svg-dc-bus.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-dc-bus/svg-dc-bus.component.scss")] }) ], SvgDcBusComponent); return SvgDcBusComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.html": /*!*********************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.html ***! \*********************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.scss": /*!*********************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.scss ***! \*********************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.ts": /*!*******************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.ts ***! \*******************************************************************************************************************************************************/ /*! exports provided: SvgFrequencyConverterComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgFrequencyConverterComponent", function() { return SvgFrequencyConverterComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgFrequencyConverterComponent = /** @class */ (function () { function SvgFrequencyConverterComponent(svgPageService) { this.svgPageService = svgPageService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; } SvgFrequencyConverterComponent.prototype.ngOnInit = function () { this.fault = this.svgPageService.getValueProvider(this.settings.nkFault); this.error = this.svgPageService.getValueProvider(this.settings.nkError); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgFrequencyConverterComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgFrequencyConverterComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgFrequencyConverterComponent.prototype, "settings", void 0); SvgFrequencyConverterComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-frequency-converter]', template: __webpack_require__(/*! ./svg-frequency-converter.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.html"), styles: [__webpack_require__(/*! ./svg-frequency-converter.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/electricalSchema/svg-frequency-converter/svg-frequency-converter.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"]]) ], SvgFrequencyConverterComponent); return SvgFrequencyConverterComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.html": /*!*****************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.html ***! \*****************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.scss": /*!*****************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.scss ***! \*****************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.ts": /*!***************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.ts ***! \***************************************************************************************************************************/ /*! exports provided: SvgBrakeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgBrakeComponent", function() { return SvgBrakeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgBrakeComponent = /** @class */ (function () { function SvgBrakeComponent(svgPageService, elem, _colorService) { this.svgPageService = svgPageService; this.elem = elem; this._colorService = _colorService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; this.brakeStates = []; this.brakeColors = []; } SvgBrakeComponent.prototype.ngOnInit = function () { this.brakeClosed = this.svgPageService.getValueProvider(this.settings.nkBrakeClosed); if (this.brakeClosed != undefined) { this.brakeStates.push(this.brakeClosed); this.brakeColors.push(this._colorService.getActiveSvgColor(this.settings.nkBrakeClosed)); } this.brakeOpened = this.svgPageService.getValueProvider(this.settings.nkBrakeOpened); if (this.brakeOpened != undefined) { this.brakeStates.push(this.brakeOpened); this.brakeColors.push(this._colorService.getActiveSvgColor(this.settings.nkBrakeOpened)); } this.brakeAlert = this.svgPageService.getValueProvider(this.settings.nkBrakeAlert); if (this.brakeAlert != undefined) { this.brakeStates.push(this.brakeAlert); this.brakeColors.push(this._colorService.getActiveSvgColor(this.settings.nkBrakeAlert)); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgBrakeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgBrakeComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgBrakeComponent.prototype, "settings", void 0); SvgBrakeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-brake]', template: __webpack_require__(/*! ./svg-brake.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.html"), styles: [__webpack_require__(/*! ./svg-brake.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-brake/svg-brake.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], app_services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"]]) ], SvgBrakeComponent); return SvgBrakeComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.html": /*!***********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.html ***! \***********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n y\n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.scss": /*!***********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.scss ***! \***********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.ts": /*!*********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.ts ***! \*********************************************************************************************************************************/ /*! exports provided: SvgGearBoxComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgGearBoxComponent", function() { return SvgGearBoxComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgGearBoxComponent = /** @class */ (function () { function SvgGearBoxComponent(svgPageService) { this.svgPageService = svgPageService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; } SvgGearBoxComponent.prototype.ngOnInit = function () { this.gearTemperatureValid = this.svgPageService.getValueProvider(this.settings.nkGearTemperatureValid); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgGearBoxComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgGearBoxComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgGearBoxComponent.prototype, "settings", void 0); SvgGearBoxComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-gear-box]', template: __webpack_require__(/*! ./svg-gear-box.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.html"), styles: [__webpack_require__(/*! ./svg-gear-box.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-gear-box/svg-gear-box.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"]]) ], SvgGearBoxComponent); return SvgGearBoxComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.html": /*!*****************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.html ***! \*****************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.scss": /*!*****************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.scss ***! \*****************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.ts": /*!***************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.ts ***! \***************************************************************************************************************************/ /*! exports provided: SvgMotorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgMotorComponent", function() { return SvgMotorComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgMotorComponent = /** @class */ (function () { function SvgMotorComponent(svgPageService) { this.svgPageService = svgPageService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; } SvgMotorComponent.prototype.ngOnInit = function () { this.motorRunning = this.svgPageService.getValueProvider(this.settings.nkMotorRunning); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgMotorComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgMotorComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgMotorComponent.prototype, "settings", void 0); SvgMotorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-motor]', template: __webpack_require__(/*! ./svg-motor.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.html"), styles: [__webpack_require__(/*! ./svg-motor.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-motor/svg-motor.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"]]) ], SvgMotorComponent); return SvgMotorComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.html": /*!***********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.html ***! \***********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.scss": /*!***********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.scss ***! \***********************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.ts": /*!*********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.ts ***! \*********************************************************************************************************************************/ /*! exports provided: SvgPositionComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgPositionComponent", function() { return SvgPositionComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../../types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgPositionComponent = /** @class */ (function () { function SvgPositionComponent(svgPageService) { this.svgPageService = svgPageService; this.SvgShapeType = _types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; } SvgPositionComponent.prototype.ngOnInit = function () { }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgPositionComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgPositionComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgPositionComponent.prototype, "settings", void 0); SvgPositionComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-position]', template: __webpack_require__(/*! ./svg-position.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.html"), styles: [__webpack_require__(/*! ./svg-position.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-position/svg-position.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"]]) ], SvgPositionComponent); return SvgPositionComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.html": /*!***************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.html ***! \***************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n {{speed | async | unitsystemconvert:settings.nkSpeed}}{{settings.nkSpeed | unitsystemunit }}\n \n \n {{maxSpeed | async | unitsystemconvert: settings.nkMaxSpeed}}{{settings.nkMaxSpeed | unitsystemunit }}\n \n \n \n \n \n M\n \n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.scss": /*!***************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.scss ***! \***************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.ts": /*!*************************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.ts ***! \*************************************************************************************************************************************************/ /*! exports provided: SvgSpeedLimitationComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgSpeedLimitationComponent", function() { return SvgSpeedLimitationComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgSpeedLimitationComponent = /** @class */ (function () { function SvgSpeedLimitationComponent(svgPageService) { this.svgPageService = svgPageService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; } SvgSpeedLimitationComponent.prototype.ngOnInit = function () { var _this = this; this.maxSpeed = this.svgPageService.getValueProvider(this.settings.nkMaxSpeed); this.interlockActive = this.svgPageService.getValueProvider(this.settings.nkInterlockActive); this.speedLimitActive = this.svgPageService.getValueProvider(this.settings.nkSpeedLimitActive); this.speed = this.svgPageService.getValueProvider(this.settings.nkSpeed, function (value) { return _this.settings.isPositive ? Math.max(0, value) : Math.abs(Math.min(0, value)); }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgSpeedLimitationComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgSpeedLimitationComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgSpeedLimitationComponent.prototype, "settings", void 0); SvgSpeedLimitationComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-speed-limitation]', template: __webpack_require__(/*! ./svg-speed-limitation.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.html"), styles: [__webpack_require__(/*! ./svg-speed-limitation.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-speed-limitation/svg-speed-limitation.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"]]) ], SvgSpeedLimitationComponent); return SvgSpeedLimitationComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.html": /*!*************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.html ***! \*************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n Unsupported Shape!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.scss": /*!*************************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.scss ***! \*************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.ts": /*!***********************************************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.ts ***! \***********************************************************************************************************************************/ /*! exports provided: SvgWireDrumComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgWireDrumComponent", function() { return SvgWireDrumComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../dynamic-svg-page-container/dynamic-svg-page.service */ "./src/app/components/dynamic-page/dynamic-svg-page-container/dynamic-svg-page.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgWireDrumComponent = /** @class */ (function () { function SvgWireDrumComponent(svgPageService) { this.svgPageService = svgPageService; this.SvgShapeType = types_config__WEBPACK_IMPORTED_MODULE_2__["SvgShapeType"]; } SvgWireDrumComponent.prototype.ngOnInit = function () { this.driveAlert = this.svgPageService.getValueProvider(this.settings.nkDriveAlert); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgWireDrumComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgWireDrumComponent.prototype, "icon", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgWireDrumComponent.prototype, "settings", void 0); SvgWireDrumComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[svg-wire-drum]', template: __webpack_require__(/*! ./svg-wire-drum.component.html */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.html"), styles: [__webpack_require__(/*! ./svg-wire-drum.component.scss */ "./src/app/components/dynamic-page/dynamic-svg-page-controls/hoist/mechanicalSchema/svg-wire-drum/svg-wire-drum.component.scss")] }), __metadata("design:paramtypes", [_dynamic_svg_page_container_dynamic_svg_page_service__WEBPACK_IMPORTED_MODULE_1__["DynamicSvgPageService"]]) ], SvgWireDrumComponent); return SvgWireDrumComponent; }()); /***/ }), /***/ "./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.html": /*!**********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.html ***! \**********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n
Unsupported Tab Type!
\n
\n
\n
\n\n \n \n \n\n\n \n \n \n\n 1 ? contentWithTabs : contentWithoutTabs\">" /***/ }), /***/ "./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.scss": /*!**********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.scss ***! \**********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.ts": /*!********************************************************************************************************!*\ !*** ./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.ts ***! \********************************************************************************************************/ /*! exports provided: TabbedDynamicContainerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabbedDynamicContainerComponent", function() { return TabbedDynamicContainerComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_components_animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TabbedDynamicContainerComponent = /** @class */ (function () { function TabbedDynamicContainerComponent() { this.TabContentType = types_config__WEBPACK_IMPORTED_MODULE_1__["TabContentType"]; } TabbedDynamicContainerComponent.prototype.ngOnInit = function () { var _this = this; this.tabs = this.tabConfigurations.map(function (t) { return { metadata: _this.getTabMetadata(t), tabControls: _this.getAllEnabledControls(t) }; }); this.tabsMetadata = this.tabs.map(function (tab) { return tab.metadata; }); }; TabbedDynamicContainerComponent.prototype.getTabMetadata = function (tab) { if (tab.contentType == types_config__WEBPACK_IMPORTED_MODULE_1__["TabContentType"].HTML) { return { title: tab.title, alias: tab.alias, contentType: tab.contentType }; } else if (tab.contentType == types_config__WEBPACK_IMPORTED_MODULE_1__["TabContentType"].SVG) { var svgTab = tab; return { title: svgTab.title, alias: svgTab.alias, contentType: svgTab.contentType, initialDisplayValue: svgTab.initialDisplayValue, footerConfig: svgTab.footerConfig, stateConfig: svgTab.stateConfig, }; } return { title: tab.title, alias: tab.alias, contentType: tab.contentType }; }; TabbedDynamicContainerComponent.prototype.getAllEnabledControls = function (tab) { var result = []; if (tab.contentType == types_config__WEBPACK_IMPORTED_MODULE_1__["TabContentType"].HTML) { var customTabConfig = tab; result.push.apply(result, this.getEnabledControls(customTabConfig.buttonTipControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.buttonToggleControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.radioGroupControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.radioGroupMultiControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.offsetControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.timeRangeControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.labelControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.progressBarControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.datapointCollectionControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.chartControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.imageControls)); } else if (tab.contentType == types_config__WEBPACK_IMPORTED_MODULE_1__["TabContentType"].SVG) { var customTabConfig = tab; result.push.apply(result, this.getEnabledControls(customTabConfig.shapeControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.lineControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.labelControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.valueContainerControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.displayModeButtonControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.speedLimitationControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.gearBoxControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.wireDrumControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.motorControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.brakeControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.frequencyConverterControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.controlUnitControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.dcBusControls)); result.push.apply(result, this.getEnabledControls(customTabConfig.positionControls)); } result.sort(function (controlA, controlB) { return controlA.index - controlB.index; }); return result; }; TabbedDynamicContainerComponent.prototype.getEnabledControls = function (controls) { if (controls != undefined) return controls.filter(function (c) { return c.enabled; }); return []; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('isStandalonePage'), __metadata("design:type", Boolean) ], TabbedDynamicContainerComponent.prototype, "isStandalonePage", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('activeTabAlias'), __metadata("design:type", Object) ], TabbedDynamicContainerComponent.prototype, "activeTabAlias", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('tabConfigurations'), __metadata("design:type", Array) ], TabbedDynamicContainerComponent.prototype, "tabConfigurations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('pageGridConfig'), __metadata("design:type", Object) ], TabbedDynamicContainerComponent.prototype, "pageGridConfig", void 0); TabbedDynamicContainerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'tabbed-dynamic-container', template: __webpack_require__(/*! ./tabbed-dynamic-container.component.html */ "./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.html"), styles: [__webpack_require__(/*! ./tabbed-dynamic-container.component.scss */ "./src/app/components/dynamic-page/tabbed-dynamic-container/tabbed-dynamic-container.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: app_components_animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_2__["PageTransitionAnimation"].opacity }) ], TabbedDynamicContainerComponent); return TabbedDynamicContainerComponent; }()); /***/ }), /***/ "./src/app/components/footer/footer.component.html": /*!*********************************************************!*\ !*** ./src/app/components/footer/footer.component.html ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/footer/footer.component.scss": /*!*********************************************************!*\ !*** ./src/app/components/footer/footer.component.scss ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "footer {\n position: fixed;\n bottom: 0px;\n width: 100%;\n height: 44px;\n background-color: #0288d1; }\n" /***/ }), /***/ "./src/app/components/footer/footer.component.ts": /*!*******************************************************!*\ !*** ./src/app/components/footer/footer.component.ts ***! \*******************************************************/ /*! exports provided: FooterComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FooterComponent", function() { return FooterComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var FooterComponent = /** @class */ (function () { function FooterComponent() { } FooterComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'starterTemplateFooter', template: __webpack_require__(/*! ./footer.component.html */ "./src/app/components/footer/footer.component.html"), styles: [__webpack_require__(/*! ./footer.component.scss */ "./src/app/components/footer/footer.component.scss")] }), __metadata("design:paramtypes", []) ], FooterComponent); return FooterComponent; }()); /***/ }), /***/ "./src/app/components/fullscreen/fullscreen-pdf-viewer.component.html": /*!****************************************************************************!*\ !*** ./src/app/components/fullscreen/fullscreen-pdf-viewer.component.html ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n
\n \n
\n" /***/ }), /***/ "./src/app/components/fullscreen/fullscreen-pdf-viewer.component.scss": /*!****************************************************************************!*\ !*** ./src/app/components/fullscreen/fullscreen-pdf-viewer.component.scss ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".pdf-viewer-container.default-theme .progress {\n background-color: #beddf7; }\n .pdf-viewer-container.default-theme .progress .determinate {\n background-color: #1561a1; }\n .pdf-viewer-container.testing-theme .progress {\n background-color: #fdfaf0; }\n .pdf-viewer-container.testing-theme .progress .determinate {\n background-color: #cfac1f; }\n .pdf-viewer-container .progress {\n position: absolute;\n top: 0;\n left: 0px;\n right: 0px;\n margin: 0; }\n" /***/ }), /***/ "./src/app/components/fullscreen/fullscreen-pdf-viewer.component.ts": /*!**************************************************************************!*\ !*** ./src/app/components/fullscreen/fullscreen-pdf-viewer.component.ts ***! \**************************************************************************/ /*! exports provided: FullscreenPdfViewerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FullscreenPdfViewerComponent", function() { return FullscreenPdfViewerComponent; }); /* harmony import */ var _services_storage_session_storage_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../services/storage//session-storage.service */ "./src/app/services/storage/session-storage.service.ts"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var FullscreenPdfViewerComponent = /** @class */ (function () { function FullscreenPdfViewerComponent(_viewService, _http, _storageService) { this._viewService = _viewService; this._http = _http; this._storageService = _storageService; this.loaded = true; this._viewService.activateFullModalOverlay = true; } Object.defineProperty(FullscreenPdfViewerComponent.prototype, "screenSettings", { set: function (value) { var pdfConfig = value; var cachedFile = this._storageService.getItem(pdfConfig.file); if (!!cachedFile) { this.tryLoadFromCache(cachedFile, pdfConfig); } else { this.reloadPdf(pdfConfig); } }, enumerable: true, configurable: true }); /** * first we try to load from the Cache of the Browser, in case it does not work (for any reason) * then we try to reload it from the server */ FullscreenPdfViewerComponent.prototype.tryLoadFromCache = function (cachedFile, pdfConfig) { var _this = this; console.log('FullscreenPdfViewerComponent > PDF URL found in cache: ' + cachedFile); this._http .get(cachedFile, { responseType: 'blob' }) .subscribe(function (blob) { var fileReader = new FileReader(); fileReader.onload = function (event) { _this.pdfSrc = event.target.result; }; fileReader.readAsArrayBuffer(blob); }, function (error) { return _this.reloadPdf(pdfConfig); }); }; FullscreenPdfViewerComponent.prototype.reloadPdf = function (pdfConfig) { var _this = this; console.log('FullscreenPdfViewerComponent > PDF not found in cache => reloading'); this._http .get(pdfConfig.file, { responseType: 'arraybuffer' }) .subscribe(function (file) { var blob = new Blob([file], { type: 'application/pdf' }); var blobURL = URL.createObjectURL(blob); _this._storageService.setItem(pdfConfig.file, blobURL); _this.pdfSrc = file; }); }; Object.defineProperty(FullscreenPdfViewerComponent.prototype, "maxHeight", { get: function () { // we use the default height for the pdf-viewer return undefined; }, enumerable: true, configurable: true }); Object.defineProperty(FullscreenPdfViewerComponent.prototype, "maxWidth", { get: function () { return undefined; }, enumerable: true, configurable: true }); FullscreenPdfViewerComponent.prototype.ngOnDestroy = function () { this._viewService.activateFullModalOverlay = false; }; FullscreenPdfViewerComponent.prototype.onProgress = function (progressData) { console.log('FullscreenPdfViewerComponent > updating progress'); this.loadPercentage = (progressData.loaded / progressData.total) * 100 + "%"; this.loaded = progressData.loaded >= progressData.total; if (this.loaded) { console.log('FullscreenPdfViewerComponent > finished loading'); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], FullscreenPdfViewerComponent.prototype, "screenSettings", null); FullscreenPdfViewerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ template: __webpack_require__(/*! ./fullscreen-pdf-viewer.component.html */ "./src/app/components/fullscreen/fullscreen-pdf-viewer.component.html"), styles: [__webpack_require__(/*! ./fullscreen-pdf-viewer.component.scss */ "./src/app/components/fullscreen/fullscreen-pdf-viewer.component.scss")] }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_3__["ViewService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"], _services_storage_session_storage_service__WEBPACK_IMPORTED_MODULE_0__["SessionStorageService"]]) ], FullscreenPdfViewerComponent); return FullscreenPdfViewerComponent; }()); /***/ }), /***/ "./src/app/components/gantry/gantry-ctk-electrical-svg.component.html": /*!****************************************************************************!*\ !*** ./src/app/components/gantry/gantry-ctk-electrical-svg.component.html ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n 0\" [class.state-alert-fill]=\"vm?.positioningDriveStates[0].faultCode > 0\" >\n \n \n \n \n \n \n \n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.positioningDriveStates[1].faultCode > 0\" >\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M1\n \n \n \n M2\n \n \n\n 0\" [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n \n \n \n \n \n \n \n \n {{vm?.positioningDriveStates[0].displayValue | unitsystemconvert:vm?.positioningDriveStates[0].displayValueNaturalKey:lang}}\n {{vm?.positioningDriveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.positioningDriveStates[1].displayValue | unitsystemconvert:vm?.positioningDriveStates[0].displayValueNaturalKey:lang}}\n {{vm?.positioningDriveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{ vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang }}\n {{ 'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit }}\n \n \n \n\n\n\n\n" /***/ }), /***/ "./src/app/components/gantry/gantry-ctk-electrical-svg.component.ts": /*!**************************************************************************!*\ !*** ./src/app/components/gantry/gantry-ctk-electrical-svg.component.ts ***! \**************************************************************************/ /*! exports provided: GantryCtkElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryCtkElectricalSvgComponent", function() { return GantryCtkElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_models_gantry_electrical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/gantry-electrical-ctk.viewmodel */ "./src/app/models/gantry-electrical-ctk.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GantryCtkElectricalSvgComponent = /** @class */ (function (_super) { __extends(GantryCtkElectricalSvgComponent, _super); function GantryCtkElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_7__["ModelStates"]; // the image is not vertically centered // we need to set the current vertical center for the svg-mirror-move directives _this.svgCenterY = 372; _this._vm = new app_models_gantry_electrical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__["GantryElectricalCtkViewModel"](orientationService, _this.config, types_config__WEBPACK_IMPORTED_MODULE_6__["DisplayValue"].ActSpeed); return _this; } GantryCtkElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'gantry-ctk-electrical-svg', styles: [__webpack_require__(/*! ./../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./gantry-ctk-electrical-svg.component.html */ "./src/app/components/gantry/gantry-ctk-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_10__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_9__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_8__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"]]) ], GantryCtkElectricalSvgComponent); return GantryCtkElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/gantry/gantry-ctk-mechanical-svg.component.html": /*!****************************************************************************!*\ !*** ./src/app/components/gantry/gantry-ctk-mechanical-svg.component.html ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: 'Gnt_SpeedEval_ActVelocity'}}{{'Gnt_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: 'Gnt_SpeedEval_ActVelocity'}}{{'Gnt_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n {{vm?.speedPos | unitsystemconvert: 'Gnt_SpeedEval_ActVelocity'}}{{'Gnt_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedPos | unitsystemconvert: 'Gnt_SpeedEval_ActVelocity'}}{{'Gnt_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n {{vm?.collisionAvoidanceDistancePos | unitsystemconvert: 'Gnt_Distance_NeighbourCrane_PositiveDirection'}}{{ 'Gnt_Distance_NeighbourCrane_PositiveDirection' | unitsystemunit}}\n \n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n {{vm?.collisionAvoidanceDistanceNeg | unitsystemconvert: 'Gnt_Distance_NeighbourCrane_NegativeDirection'}}{{ 'Gnt_Distance_NeighbourCrane_NegativeDirection' | unitsystemunit}}\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n {{vm?.lockStates[0].RailclampLocked || vm?.lockStates[0].WindlockLocked ? 'P' : '\\ue028'}}\n \n \n \n \n \n \n \n \n \n {{vm?.lockStates[1].RailclampLocked || vm?.lockStates[1].WindlockLocked ? 'P' : '\\ue028'}}\n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n\n\n\n\n" /***/ }), /***/ "./src/app/components/gantry/gantry-ctk-mechanical-svg.component.ts": /*!**************************************************************************!*\ !*** ./src/app/components/gantry/gantry-ctk-mechanical-svg.component.ts ***! \**************************************************************************/ /*! exports provided: GantryCtkMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryCtkMechanicalSvgComponent", function() { return GantryCtkMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_models_gantry_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/gantry-mechanical-ctk.viewmodel */ "./src/app/models/gantry-mechanical-ctk.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GantryCtkMechanicalSvgComponent = /** @class */ (function (_super) { __extends(GantryCtkMechanicalSvgComponent, _super); function GantryCtkMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this._vm = new app_models_gantry_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__["GantryMechanicalCtkViewModel"](orientationService, _this.config); return _this; } GantryCtkMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'gantry-ctk-mechanical-svg', styles: [__webpack_require__(/*! ./../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./gantry-ctk-mechanical-svg.component.html */ "./src/app/components/gantry/gantry-ctk-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"]]) ], GantryCtkMechanicalSvgComponent); return GantryCtkMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/gantry/gantry-diagnostics.component.html": /*!*********************************************************************!*\ !*** ./src/app/components/gantry/gantry-diagnostics.component.html ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n

\n releases\n

\n
\n
\n

\n interlocks\n

\n
\n
\n

\n speed_limits\n

\n
\n
\n
\n \n \n \n \n \n \n
\n
" /***/ }), /***/ "./src/app/components/gantry/gantry-diagnostics.component.scss": /*!*********************************************************************!*\ !*** ./src/app/components/gantry/gantry-diagnostics.component.scss ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".list-container {\n /* Margin to avoid content overlap from Alarm badge */\n margin-bottom: 70px; }\n" /***/ }), /***/ "./src/app/components/gantry/gantry-diagnostics.component.ts": /*!*******************************************************************!*\ !*** ./src/app/components/gantry/gantry-diagnostics.component.ts ***! \*******************************************************************/ /*! exports provided: GantryDiagnosticsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryDiagnosticsComponent", function() { return GantryDiagnosticsComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GantryDiagnosticsComponent = /** @class */ (function () { function GantryDiagnosticsComponent(_configService) { this._configService = _configService; this._speedLimitValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this._interlockValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this._releaseValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this.speedLimitObservableCollection = this._speedLimitValues.asObservable(); this.interlockObservableCollection = this._interlockValues.asObservable(); this.releaseObservableCollection = this._releaseValues.asObservable(); } GantryDiagnosticsComponent_1 = GantryDiagnosticsComponent; GantryDiagnosticsComponent.isEnabled = function (craneConfig) { var sirDataPoints = GantryDiagnosticsComponent_1.resolveSIRDataPoints(craneConfig); return sirDataPoints != null && sirDataPoints.length > 0; }; GantryDiagnosticsComponent.resolveSIRDataPoints = function (craneConfig) { var sirDataPoints = []; var craneSelector = craneConfig.craneType === types_config__WEBPACK_IMPORTED_MODULE_4__["CraneType"].CTK ? 'ctk' : 'rtg'; var mechanical = craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasGantry].components.find(function (e) { return e.id === "mechanical-" + craneSelector; }); if (mechanical != null && mechanical.enabled && mechanical.components != null) { var limitsPositive = mechanical.components.find(function (e) { return e.id === 'speedLimitPositive'; }); if (limitsPositive != null && limitsPositive.enabled && limitsPositive.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsPositive.quickviewDatapoints); } var limitsNegative = mechanical.components.find(function (e) { return e.id === 'speedLimitNegative'; }); if (limitsNegative != null && limitsNegative.enabled && limitsNegative.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsNegative.quickviewDatapoints); } if (craneConfig.craneType === types_config__WEBPACK_IMPORTED_MODULE_4__["CraneType"].RTG) { var driveRotationMotor1 = mechanical.components.find(function (e) { return e.id === 'driveRotationMotor1'; }); if (driveRotationMotor1 != null && driveRotationMotor1.enabled && driveRotationMotor1.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, driveRotationMotor1.quickviewDatapoints); } var driveRotationMotor2 = mechanical.components.find(function (e) { return e.id === 'driveRotationMotor2'; }); if (driveRotationMotor2 != null && driveRotationMotor2.enabled && driveRotationMotor2.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, driveRotationMotor2.quickviewDatapoints); } var driveRotationMotor3 = mechanical.components.find(function (e) { return e.id === 'driveRotationMotor3'; }); if (driveRotationMotor3 != null && driveRotationMotor3.enabled && driveRotationMotor3.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, driveRotationMotor3.quickviewDatapoints); } var driveRotationMotor4 = mechanical.components.find(function (e) { return e.id === 'driveRotationMotor4'; }); if (driveRotationMotor4 != null && driveRotationMotor4.enabled && driveRotationMotor4.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, driveRotationMotor4.quickviewDatapoints); } } } return sirDataPoints; }; GantryDiagnosticsComponent.prototype.ngOnInit = function () { var sirDataPoints = GantryDiagnosticsComponent_1.resolveSIRDataPoints(this._configService.craneConfig); this.initSIRDataPoints(sirDataPoints); }; GantryDiagnosticsComponent.prototype.ngOnDestroy = function () { if (this._speedLimitValues != null) { this._speedLimitValues.unsubscribe(); } if (this._interlockValues != null) { this._interlockValues.unsubscribe(); } if (this._releaseValues != null) { this._releaseValues.unsubscribe(); } }; GantryDiagnosticsComponent.prototype.initSIRDataPoints = function (datapoints) { var speedLimitCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var interlockCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var releaseCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var checkingSet = new Set(); datapoints.filter(function (v, i, a) { return a.indexOf(v) === i; }).forEach(function (x) { if (x != null && x.enabled && !checkingSet.has(x.naturalKey)) { switch (x.viewTemplate) { case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Speedlimit: { speedLimitCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Interlock: { interlockCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Release: { releaseCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } } } }); this._speedLimitValues.next(speedLimitCollection); this._interlockValues.next(interlockCollection); this._releaseValues.next(releaseCollection); }; GantryDiagnosticsComponent = GantryDiagnosticsComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'gantry-diagnostics', template: __webpack_require__(/*! ./gantry-diagnostics.component.html */ "./src/app/components/gantry/gantry-diagnostics.component.html"), styles: [__webpack_require__(/*! ./gantry-diagnostics.component.scss */ "./src/app/components/gantry/gantry-diagnostics.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_6__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_5__["ConfigService"]]) ], GantryDiagnosticsComponent); return GantryDiagnosticsComponent; var GantryDiagnosticsComponent_1; }()); /***/ }), /***/ "./src/app/components/gantry/gantry-rtg-electrical-svg.component.html": /*!****************************************************************************!*\ !*** ./src/app/components/gantry/gantry-rtg-electrical-svg.component.html ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n M1\n \n \n \n \n 1\n \n \n \n M2\n \n \n \n \n 2\n \n \n \n M3\n \n \n \n \n 3\n \n \n \n M4\n \n \n \n \n\n 4\n \n \n\n 0\" [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n {{vm?.positioningDriveStates[0].displayValue | unitsystemconvert:vm?.positioningDriveStates[0].displayValueNaturalKey:lang}}\n {{vm?.positioningDriveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.positioningDriveStates[1].displayValue | unitsystemconvert:vm?.positioningDriveStates[1].displayValueNaturalKey:lang}}\n {{vm?.positioningDriveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.wheelSteeringDriveStates[0].displayValue | unitsystemconvert:vm?.wheelSteeringDriveStates[0].displayValueNaturalKey:lang}}\n {{vm?.wheelSteeringDriveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.wheelSteeringDriveStates[1].displayValue | unitsystemconvert:vm?.wheelSteeringDriveStates[1].displayValueNaturalKey:lang}}\n {{vm?.wheelSteeringDriveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.wheelSteeringDriveStates[2].displayValue | unitsystemconvert:vm?.wheelSteeringDriveStates[2].displayValueNaturalKey:lang}}\n {{vm?.wheelSteeringDriveStates[2].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.wheelSteeringDriveStates[3].displayValue | unitsystemconvert:vm?.wheelSteeringDriveStates[3].displayValueNaturalKey:lang}}\n {{vm?.wheelSteeringDriveStates[3].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{ vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang }}\n {{ 'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit }}\n \n \n\n \n \n 0\" [class.state-alert-fill]=\"vm?.positioningDriveStates[0].faultCode > 0\">\n \n \n \n \n \n \n \n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.positioningDriveStates[1].faultCode > 0\">\n \n \n \n \n \n \n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.wheelSteeringDriveStates[0].faultCode > 0\" svg-mirror-flip [flipHorizontal]=\"vm?.flipDrivesHorizontal\" [flipVertical]=\"vm?.flipDrivesVertical\" [moveOffsetY]=\"moveYOffsetFrequencyConverter13\"> \n \n \n \n \n \n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.wheelSteeringDriveStates[1].faultCode > 0\" svg-mirror-flip [flipHorizontal]=\"vm?.flipDrivesHorizontal\" [flipVertical]=\"vm?.flipDrivesVertical\" [moveOffsetY]=\"moveYOffsetFrequencyConverter24\">\n \n \n \n \n \n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.wheelSteeringDriveStates[2].faultCode > 0\" svg-mirror-flip [flipHorizontal]=\"vm?.flipDrivesHorizontal\" [flipVertical]=\"vm?.flipDrivesVertical\" [moveOffsetY]=\"moveYOffsetFrequencyConverter13\">\n \n \n \n \n \n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.wheelSteeringDriveStates[3].faultCode > 0\" svg-mirror-flip [flipHorizontal]=\"vm?.flipDrivesHorizontal\" [flipVertical]=\"vm?.flipDrivesVertical\" [moveOffsetY]=\"moveYOffsetFrequencyConverter24\">\n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n\n" /***/ }), /***/ "./src/app/components/gantry/gantry-rtg-electrical-svg.component.ts": /*!**************************************************************************!*\ !*** ./src/app/components/gantry/gantry-rtg-electrical-svg.component.ts ***! \**************************************************************************/ /*! exports provided: GantryRtgElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryRtgElectricalSvgComponent", function() { return GantryRtgElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _models_gantry_electrical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../models/gantry-electrical-rtg.viewmodel */ "./src/app/models/gantry-electrical-rtg.viewmodel.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GantryRtgElectricalSvgComponent = /** @class */ (function (_super) { __extends(GantryRtgElectricalSvgComponent, _super); function GantryRtgElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; // the image is not vertically centered // we need to set the current vertical center for the svg-mirror-move directives _this.svgCenterY = 372; _this._vm = new _models_gantry_electrical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_10__["GantryElectricalRtgViewModel"](orientationService, _this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].OutputVoltage); return _this; } Object.defineProperty(GantryRtgElectricalSvgComponent.prototype, "moveYOffsetFrequencyConverter13", { get: function () { return (!!this.vm && !this.vm.flipDrivesVertical) ? (!this.vm.flipDrivesHorizontal ? -255 : 0) : 95; }, enumerable: true, configurable: true }); Object.defineProperty(GantryRtgElectricalSvgComponent.prototype, "moveYOffsetFrequencyConverter24", { get: function () { return (!!this.vm && !this.vm.flipDrivesVertical) ? (!this.vm.flipDrivesHorizontal ? 448 : 0) : 95; }, enumerable: true, configurable: true }); GantryRtgElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'gantry-rtg-electrical-svg', styles: [__webpack_require__(/*! ./../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./gantry-rtg-electrical-svg.component.html */ "./src/app/components/gantry/gantry-rtg-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], GantryRtgElectricalSvgComponent); return GantryRtgElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/gantry/gantry-rtg-mechanical-svg.component.html": /*!****************************************************************************!*\ !*** ./src/app/components/gantry/gantry-rtg-mechanical-svg.component.html ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n {{vm?.wheelSteeringStates[0].icon}}\n \n \n \n \n \n \n \n {{vm?.wheelSteeringStates[1].icon}}\n \n \n \n \n \n \n \n {{vm?.wheelSteeringStates[2].icon}}\n \n \n \n \n \n \n \n {{vm?.wheelSteeringStates[3].icon}}\n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n\n \n \n \n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: 'Gnt_SpeedEval_ActVelocity'}}{{'Gnt_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: 'Gnt_SpeedEval_ActVelocity'}}{{'Gnt_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n {{vm?.speedPos | unitsystemconvert: 'Gnt_SpeedEval_ActVelocity'}}{{'Gnt_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedPos | unitsystemconvert: 'Gnt_SpeedEval_ActVelocity'}}{{'Gnt_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \t\t\t\n \n \n \n \n \n \n \n \n \n \t\t\t\n \n \n \n \n \n \n \n \n \n \t\t\t\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n M1\n \n \n \n \n \n \n \n \n \n \n \n\t\t\n \n M2\n \n \n \n \n \n \n \n \n \n \n \n\t\t\n \n M3\n \n \n \n \n \n \n \n \n \n \n \n \n \n M4\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n\n \n \n \n \n\t\t\n \n \n \n\n \n\n\n\n \n\n" /***/ }), /***/ "./src/app/components/gantry/gantry-rtg-mechanical-svg.component.ts": /*!**************************************************************************!*\ !*** ./src/app/components/gantry/gantry-rtg-mechanical-svg.component.ts ***! \**************************************************************************/ /*! exports provided: GantryRtgMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryRtgMechanicalSvgComponent", function() { return GantryRtgMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/gantry-card.viewmodel */ "./src/app/models/gantry-card.viewmodel.ts"); /* harmony import */ var _models_gantry_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/gantry-mechanical-rtg.viewmodel */ "./src/app/models/gantry-mechanical-rtg.viewmodel.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GantryRtgMechanicalSvgComponent = /** @class */ (function (_super) { __extends(GantryRtgMechanicalSvgComponent, _super); function GantryRtgMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_7__["ModelStates"]; _this.tireState = _models_gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_5__["TireState"]; _this._vm = new _models_gantry_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_6__["GantryMechanicalRtgViewModel"](orientationService, _this.config); return _this; } GantryRtgMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'gantry-rtg-mechanical-svg', styles: [__webpack_require__(/*! ./../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./gantry-rtg-mechanical-svg.component.html */ "./src/app/components/gantry/gantry-rtg-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_10__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_9__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_8__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], GantryRtgMechanicalSvgComponent); return GantryRtgMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/gantry/gantry.component.html": /*!*********************************************************!*\ !*** ./src/app/components/gantry/gantry.component.html ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n\n\n" /***/ }), /***/ "./src/app/components/gantry/gantry.component.ts": /*!*******************************************************!*\ !*** ./src/app/components/gantry/gantry.component.ts ***! \*******************************************************/ /*! exports provided: DIAGNOSTICS_COMPONENT_ID, GantryComponent, GANTRY_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIAGNOSTICS_COMPONENT_ID", function() { return DIAGNOSTICS_COMPONENT_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryComponent", function() { return GantryComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GANTRY_CHILD_ROUTES", function() { return GANTRY_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../common/detail-router-svg-page.component */ "./src/app/components/common/detail-router-svg-page.component.ts"); /* harmony import */ var _gantry_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./gantry-ctk-electrical-svg.component */ "./src/app/components/gantry/gantry-ctk-electrical-svg.component.ts"); /* harmony import */ var _gantry_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./gantry-ctk-mechanical-svg.component */ "./src/app/components/gantry/gantry-ctk-mechanical-svg.component.ts"); /* harmony import */ var _gantry_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./gantry-diagnostics.component */ "./src/app/components/gantry/gantry-diagnostics.component.ts"); /* harmony import */ var _gantry_rtg_electrical_svg_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./gantry-rtg-electrical-svg.component */ "./src/app/components/gantry/gantry-rtg-electrical-svg.component.ts"); /* harmony import */ var _gantry_rtg_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./gantry-rtg-mechanical-svg.component */ "./src/app/components/gantry/gantry-rtg-mechanical-svg.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DIAGNOSTICS_COMPONENT_ID = 'diagnostics'; var GantryComponent = /** @class */ (function (_super) { __extends(GantryComponent, _super); function GantryComponent(viewService, router, activatedRoute, _configService) { var _this = _super.call(this, viewService, router, activatedRoute, 'gantry') || this; _this.viewService = viewService; _this.router = router; _this.activatedRoute = activatedRoute; _this._configService = _configService; return _this; } GantryComponent.prototype.initializeTabs = function () { var components = this._configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasGantry].components.filter(function (c) { return c.enabled; }); if (components != null) { if (_gantry_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__["GantryDiagnosticsComponent"].isEnabled(this._configService.craneConfig)) { // Default component which is not directly in the config components.push({ enabled: true, id: DIAGNOSTICS_COMPONENT_ID, title: 'diagnostics' }); } this._availableRoutes = components.map(function (e) { return "/gantry/" + e.id; }); this._tabTitles = components.map(function (e) { return e.title; }); } this.routeToDefaultTab(); }; Object.defineProperty(GantryComponent.prototype, "tabTitles", { get: function () { return this._tabTitles; }, enumerable: true, configurable: true }); Object.defineProperty(GantryComponent.prototype, "tabRoutes", { get: function () { return this._availableRoutes; }, enumerable: true, configurable: true }); GantryComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'gantry', template: __webpack_require__(/*! ./gantry.component.html */ "./src/app/components/gantry/gantry.component.html"), // using animations on route navigation (showcase) styles: [':host { width: 100%; display: block; position: absolute; }'], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], app_services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"]]) ], GantryComponent); return GantryComponent; }(_common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_6__["DetailRouterSvgPageComponent"])); var GANTRY_CHILD_ROUTES = [ { path: 'mechanical-rtg', component: _gantry_rtg_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_11__["GantryRtgMechanicalSvgComponent"] }, { path: 'mechanical-ctk', component: _gantry_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_8__["GantryCtkMechanicalSvgComponent"] }, { path: 'electrical-rtg', component: _gantry_rtg_electrical_svg_component__WEBPACK_IMPORTED_MODULE_10__["GantryRtgElectricalSvgComponent"] }, { path: 'electrical-ctk', component: _gantry_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_7__["GantryCtkElectricalSvgComponent"] }, { path: DIAGNOSTICS_COMPONENT_ID, component: _gantry_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__["GantryDiagnosticsComponent"] } ]; /***/ }), /***/ "./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.html": /*!***********************************************************************************************!*\ !*** ./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.html ***! \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n \n
\n
\n

{{title}}

\n
{{status}}
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.scss": /*!***********************************************************************************************!*\ !*** ./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.scss ***! \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.ts": /*!*********************************************************************************************!*\ !*** ./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.ts ***! \*********************************************************************************************/ /*! exports provided: AssistantSoftlandingGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AssistantSoftlandingGaugeComponent", function() { return AssistantSoftlandingGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AssistantSoftlandingGaugeComponent = /** @class */ (function (_super) { __extends(AssistantSoftlandingGaugeComponent, _super); function AssistantSoftlandingGaugeComponent(_renderer, elementRef, router, dataPointService, configService) { var _this = _super.call(this, dataPointService) || this; _this._renderer = _renderer; _this.elementRef = elementRef; _this.router = router; _this.dataPointService = dataPointService; _this.configService = configService; _this._naturalKeySoftLandingIsActive = 'Gbl_Softlanding_IsActive'; _this._naturalKeySoftLandingTemporarilyInactive = 'Gbl_Softlanding_Temporarily_Inactive'; _this._statusSoftlandingIsActive = 'assistant_system_softlanding_is_active'; _this._statusSoftlandingInactive = 'assistant_system_softlanding_inactive'; _this._statusSoftlandingTemporarilyInactive = 'assistant_system_softlanding_temporarily_inactive'; _this._pageAlias = '/assistantSystems'; _this._cssClassClickable = 'clickable'; _this.indicator = false; return _this; } AssistantSoftlandingGaugeComponent.prototype.ngOnInit = function () { var parentElement = this.elementRef.nativeElement.parentElement; var componentId = parentElement.id; this._renderer.addClass(parentElement, this._cssClassClickable); var toolbarComponent = this.configService.craneConfig.deviceConfigs[_app_constants__WEBPACK_IMPORTED_MODULE_4__["Const"].AliasToolbar].components; var toolbarGauges = toolbarComponent.find(function (x) { return x.id === 'toolbar-gauges'; }); if (toolbarGauges.components) { var softlandingGauge = toolbarGauges.components.find(function (x) { return x.id == componentId; }); if (softlandingGauge.requiredDatapoints) { this.setNaturalKeys(softlandingGauge.requiredDatapoints.map(function (dp) { return dp.naturalKey; })); } } }; AssistantSoftlandingGaugeComponent.prototype.onValueChanged = function (naturalKey, datapointData) { // Order here is important! if (naturalKey === this._naturalKeySoftLandingIsActive && datapointData) { this.status = this._statusSoftlandingIsActive; } if (naturalKey === this._naturalKeySoftLandingTemporarilyInactive && datapointData) { this.status = this._statusSoftlandingTemporarilyInactive; } if (naturalKey === this._naturalKeySoftLandingIsActive && !datapointData) { this.status = this._statusSoftlandingInactive; } }; AssistantSoftlandingGaugeComponent.prototype.onClick = function ($event) { this.router.navigate([this._pageAlias]); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AssistantSoftlandingGaugeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AssistantSoftlandingGaugeComponent.prototype, "status", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('click', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], AssistantSoftlandingGaugeComponent.prototype, "onClick", null); AssistantSoftlandingGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'assistant-softlanding-gauge', template: __webpack_require__(/*! ./assistant-softlanding-gauge.component.html */ "./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.html"), styles: [__webpack_require__(/*! ./assistant-softlanding-gauge.component.scss */ "./src/app/components/gauges/assistant-system/assistant-softlanding-gauge.component.scss")] }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"]]) ], AssistantSoftlandingGaugeComponent); return AssistantSoftlandingGaugeComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_1__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/gauges/base-gauge.component.ts": /*!***********************************************************!*\ !*** ./src/app/components/gauges/base-gauge.component.ts ***! \***********************************************************/ /*! exports provided: BaseGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseGaugeComponent", function() { return BaseGaugeComponent; }); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var BaseGaugeComponent = /** @class */ (function (_super) { __extends(BaseGaugeComponent, _super); function BaseGaugeComponent(dataPointService, colorService, translationService, cmsTranslationService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this._invalidated = false; return _this; } Object.defineProperty(BaseGaugeComponent.prototype, "lang", { get: function () { return this.cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); BaseGaugeComponent.prototype.initColors = function () { this._colorBackground = this.colorService.getColor('font-color-secondary-invers'); this._colorHighlight = this.colorService.getColor('font-color-primary-invers'); this._colorAlert = this.colorService.getColor('state-alert'); this._colorAlertBackground = this.colorService.getColor('state-alert-light'); this._contrastColorAlphaOpacity = this.rgbStringFromHex(this.colorService.getColor('font-color-primary-invers')); }; BaseGaugeComponent.prototype.rgbStringFromHex = function (hexCode) { // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF") var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; hexCode = hexCode.replace(shorthandRegex, function (m, r, g, b) { return r + r + g + g + b + b; }); var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexCode); return result ? "rgba(" + parseInt(result[1], 16) + ", " + parseInt(result[2], 16) + ", " + parseInt(result[3], 16) + ", %)" : undefined; }; BaseGaugeComponent.prototype.onValueChanged = function (naturalKey, data) { this.updateGaugeValue(naturalKey, data); if (this.drawingCanvas == null) { return; } this.invalidate(); }; BaseGaugeComponent.prototype.invalidate = function () { var _this = this; if (this._invalidated) { return; } this._invalidated = true; requestAnimationFrame(function () { _this._invalidated = false; _this.draw(); }); }; BaseGaugeComponent.prototype.ngAfterViewInit = function () { var canvas = this.drawingCanvas; if (canvas == null) { return; } this._nativeCanvas = canvas.nativeElement; this._context = this._nativeCanvas.getContext('2d'); this.invalidate(); }; BaseGaugeComponent.prototype.ngOnInit = function () { var _this = this; this._colorServiceSubscription = this.colorService.colorTheme.subscribe(function () { _this.initColors(); _this.invalidate(); }); this._translationChangedSubscription = this.translationService.translationChanged() .subscribe(function () { return _this.invalidate(); }); }; BaseGaugeComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._colorServiceSubscription != null) { this._colorServiceSubscription.unsubscribe(); } if (this._translationChangedSubscription != null) { this._translationChangedSubscription.unsubscribe(); } }; return BaseGaugeComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_0__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/gauges/battery-gauge.component.html": /*!****************************************************************!*\ !*** ./src/app/components/gauges/battery-gauge.component.html ***! \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n\n \n \n\n \n\n

\n {{value }} %\n

\n\n
\n {{ title }}\n
\n\n
" /***/ }), /***/ "./src/app/components/gauges/battery-gauge.component.scss": /*!****************************************************************!*\ !*** ./src/app/components/gauges/battery-gauge.component.scss ***! \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".battery-gauge {\n width: 290px;\n margin: 0px auto;\n height: 360px;\n position: relative; }\n .battery-gauge .child-gauge {\n position: absolute;\n left: 48px;\n top: 8px; }\n .battery-gauge h3 {\n position: absolute;\n margin: 0px;\n left: 50px;\n bottom: 20px;\n font-size: 48px; }\n .battery-gauge h3 span {\n font-size: 30px; }\n .battery-gauge h6 {\n position: absolute;\n margin: 0px;\n bottom: 4px;\n left: 50px;\n font-size: 16px;\n font-weight: 400; }\n .battery-gauge canvas {\n position: absolute;\n top: 0;\n left: 0;\n right: 0; }\n .battery-gauge.compact {\n width: 130px;\n height: 80px; }\n .battery-gauge.compact .child-gauge {\n left: 24px; }\n .battery-gauge.compact h3 {\n left: 34px;\n top: 34px;\n font-size: 18px; }\n .battery-gauge.compact h3 span {\n font-size: 14px; }\n .battery-gauge.compact h6 {\n left: 34px;\n font-size: 12px;\n font-weight: 300;\n bottom: 10px; }\n" /***/ }), /***/ "./src/app/components/gauges/battery-gauge.component.ts": /*!**************************************************************!*\ !*** ./src/app/components/gauges/battery-gauge.component.ts ***! \**************************************************************/ /*! exports provided: BatteryGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BatteryGaugeComponent", function() { return BatteryGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BatteryGaugeComponent = /** @class */ (function (_super) { __extends(BatteryGaugeComponent, _super); function BatteryGaugeComponent(dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService, configService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this.configService = configService; _this.value = 0; _this.indicatorHeight = 0; _this.fullHeight = 40.569008; return _this; } Object.defineProperty(BatteryGaugeComponent.prototype, "range", { get: function () { return this.dataPointRangeService.getRange(this.naturalKey); }, enumerable: true, configurable: true }); BatteryGaugeComponent.prototype.ngOnInit = function () { _super.prototype.ngOnInit.call(this); var toolbarComponent = this.configService.craneConfig.deviceConfigs[_app_constants__WEBPACK_IMPORTED_MODULE_3__["Const"].AliasToolbar].components; var toolbargauges = toolbarComponent.find(function (x) { return x.id === 'toolbar-gauges'; }); if (toolbargauges.components) { var batteryGauge = toolbargauges.components.find(function (x) { return x.id == 'battery-gauge'; }); if (batteryGauge.requiredDatapoints) { this.naturalKey = batteryGauge.requiredDatapoints[0].naturalKey; this.setNaturalKeys([this.naturalKey]); } } }; Object.defineProperty(BatteryGaugeComponent.prototype, "drawingCanvas", { get: function () { return this.canvas; }, enumerable: true, configurable: true }); BatteryGaugeComponent.prototype.updateGaugeValue = function (naturalKey, data) { this.value = data; this.updateColors(); this.updateIndicatorHeight(data); }; BatteryGaugeComponent.prototype.updateIndicatorHeight = function (batteryLevel) { this.indicatorHeight = this.fullHeight * batteryLevel / 100; }; BatteryGaugeComponent.prototype.updateColors = function () { if (this.alert) { this.indicatorColor = "#f11d40"; } else { this.indicatorColor = "#00cf78"; } }; BatteryGaugeComponent.prototype.draw = function () { return; }; Object.defineProperty(BatteryGaugeComponent.prototype, "alert", { get: function () { var range = this.range; if (range != null) { var value = this.value; if (range.alarmMax != null && value > range.alarmMax) { return true; } if (range.alarmMin != null && value < range.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BatteryGaugeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BatteryGaugeComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BatteryGaugeComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('gaugeCanvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], BatteryGaugeComponent.prototype, "canvas", void 0); BatteryGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'battery-gauge', template: __webpack_require__(/*! ./battery-gauge.component.html */ "./src/app/components/gauges/battery-gauge.component.html"), styles: [__webpack_require__(/*! ./battery-gauge.component.scss */ "./src/app/components/gauges/battery-gauge.component.scss")] }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_4__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"], _services_config_service__WEBPACK_IMPORTED_MODULE_5__["ConfigService"]]) ], BatteryGaugeComponent); return BatteryGaugeComponent; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_8__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/clock-gauge.component.html": /*!**************************************************************!*\ !*** ./src/app/components/gauges/clock-gauge.component.html ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n \n

{{cranetime | l10nDate:lang:'mediumTime'}}

\n
{{cranetime | l10nDate:lang:'mediumDate'}}
\n
\n \n

{{NO_VALUE}}

\n
datetime
\n
\n
\n
" /***/ }), /***/ "./src/app/components/gauges/clock-gauge.component.scss": /*!**************************************************************!*\ !*** ./src/app/components/gauges/clock-gauge.component.scss ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".clock-gauge {\n margin: 0 auto;\n height: 56px;\n position: relative;\n padding-top: 70px;\n float: left;\n text-align: left;\n margin-left: 32px; }\n .clock-gauge .gauge-container h3 {\n margin: 0px 0 0 0;\n font-size: 30px; }\n .clock-gauge .gauge-container h6 {\n margin: 0px;\n font-size: 16px;\n font-weight: 400; }\n .clock-gauge.compact {\n width: 110px;\n height: 56px;\n padding-top: 10px;\n margin-left: 16px; }\n .clock-gauge.compact .gauge-container h3 {\n font-size: 18px; }\n .clock-gauge.compact .gauge-container h6 {\n padding-top: 1px;\n font-size: 12px;\n font-weight: 300; }\n" /***/ }), /***/ "./src/app/components/gauges/clock-gauge.component.ts": /*!************************************************************!*\ !*** ./src/app/components/gauges/clock-gauge.component.ts ***! \************************************************************/ /*! exports provided: ClockGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClockGaugeComponent", function() { return ClockGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ClockGaugeComponent = /** @class */ (function () { function ClockGaugeComponent(_timeUtilsService, _cmsTranslationService) { this._timeUtilsService = _timeUtilsService; this._cmsTranslationService = _cmsTranslationService; this.NO_VALUE = app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder; } Object.defineProperty(ClockGaugeComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); ClockGaugeComponent.prototype.ngOnInit = function () { var _this = this; this.timerSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["timer"])(0, 1000).subscribe(function () { _this.cranetime = _this._timeUtilsService.craneDateTime; }); }; ClockGaugeComponent.prototype.ngOnDestroy = function () { this.timerSubscription.unsubscribe(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ClockGaugeComponent.prototype, "isCompact", void 0); ClockGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'clock-gauge', template: __webpack_require__(/*! ./clock-gauge.component.html */ "./src/app/components/gauges/clock-gauge.component.html"), styles: [__webpack_require__(/*! ./clock-gauge.component.scss */ "./src/app/components/gauges/clock-gauge.component.scss")] }), __metadata("design:paramtypes", [app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_3__["TimeUtilsService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"]]) ], ClockGaugeComponent); return ClockGaugeComponent; }()); /***/ }), /***/ "./src/app/components/gauges/container-movement-gauge.component.html": /*!***************************************************************************!*\ !*** ./src/app/components/gauges/container-movement-gauge.component.html ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n \n
\n
\n
\n

\n \n \n

\n

\n \n \n

\n

\n \n {{actionState}}\n

\n
{{ title }}
\n
\n
\n
\n
\n\n" /***/ }), /***/ "./src/app/components/gauges/container-movement-gauge.component.scss": /*!***************************************************************************!*\ !*** ./src/app/components/gauges/container-movement-gauge.component.scss ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".movement-gauge {\n height: 130px;\n margin: 0px auto;\n position: relative; }\n .movement-gauge .gauge-container {\n margin: 0 auto;\n height: 130px;\n position: relative;\n display: inline-block; }\n .movement-gauge .gauge-container .container-left {\n float: left !important;\n margin-right: 8px; }\n .movement-gauge .gauge-container .container-left i {\n float: left;\n font-size: 56px;\n margin-top: 56px; }\n .movement-gauge .gauge-container .container-right {\n float: left !important;\n margin-top: 60px;\n display: table;\n height: inherit; }\n .movement-gauge .gauge-container .container-right .container-right-vertical-aligner {\n display: table-cell;\n vertical-align: middle; }\n .movement-gauge h3 {\n margin: 0px;\n font-size: 30px;\n text-align: left; }\n .movement-gauge h3 span {\n font-size: 24px; }\n .movement-gauge h6 {\n margin: 0px;\n font-size: 16px;\n font-weight: 400; }\n .movement-gauge.compact {\n height: 80px; }\n .movement-gauge.compact h3 {\n padding-top: 2px;\n font-size: 18px; }\n .movement-gauge.compact h3 i {\n float: left;\n height: 18px;\n font-size: 18px;\n margin-right: 16px; }\n .movement-gauge.compact h3 span {\n font-size: 14px; }\n .movement-gauge.compact h6 {\n text-align: left;\n margin-left: 34px;\n margin-top: 2px;\n font-size: 12px;\n font-weight: 300; }\n .movement-gauge.compact .gauge-container {\n height: 80px; }\n .movement-gauge.compact .gauge-container .container-left i {\n font-size: 50px;\n width: 50px;\n margin-top: 16px; }\n .movement-gauge.compact .gauge-container .container-right {\n margin-top: 0; }\n" /***/ }), /***/ "./src/app/components/gauges/container-movement-gauge.component.ts": /*!*************************************************************************!*\ !*** ./src/app/components/gauges/container-movement-gauge.component.ts ***! \*************************************************************************/ /*! exports provided: ContainerMovementGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContainerMovementGaugeComponent", function() { return ContainerMovementGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_terminal_mapping_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/terminal-mapping.service */ "./src/app/services/terminal-mapping.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ContainerMovementGaugeComponent = /** @class */ (function (_super) { __extends(ContainerMovementGaugeComponent, _super); function ContainerMovementGaugeComponent(dataPointService, dataPointRangeService, configService, colorService, translationService, cmsTranslationService, terminalMappingService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.configService = configService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this.terminalMappingService = terminalMappingService; _this.observedNaturalKeys = []; _this.stateMappingMap = new Map(); _this.usedComponents = new Set(); _this.isTitleVisible = false; _this.widthPx = 260; _this.sourceLocation = terminalMappingService.sourceLocationSubject; _this.targetLocation = terminalMappingService.targetLocationSubject; _this.usedComponents .add('crane-container-movement-source') .add('crane-container-movement-target') .add('crane-container-movement-action-state-mapping'); var toolbarComponent = configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasToolbar].components; var toolbarGauges = toolbarComponent.find(function (x) { return x.id === 'toolbar-gauges'; }); if (toolbarGauges != null && toolbarGauges.components != null) { var movementGaugeComponent = toolbarGauges.components.find(function (x) { return x.id === 'crane-container-movement-gauge'; }); if (movementGaugeComponent != null) { var enabledUsedItems = 0; if (movementGaugeComponent.components != null) { var enabledUsedComponents = movementGaugeComponent.components.filter(function (x) { return x.enabled && _this.usedComponents.has(x.id); }); enabledUsedItems += enabledUsedComponents.length; } if (movementGaugeComponent.stateMappings != null) { var enabledUsedMappings = movementGaugeComponent.stateMappings.filter(function (x) { return x.enabled && _this.usedComponents.has(x.id); }); enabledUsedItems += enabledUsedMappings.length; var movementStateMapping = movementGaugeComponent.stateMappings.find(function (x) { return x.id === 'crane-container-movement-action-state-mapping'; }); if (movementStateMapping != null && movementStateMapping.mappings != null) { for (var _i = 0, _a = movementStateMapping.mappings; _i < _a.length; _i++) { var mapping = _a[_i]; if (mapping.enabled) { _this.stateMappingMap.set(mapping.condition, mapping.text); } } } } _this.isTitleVisible = enabledUsedItems < _this.usedComponents.size; } } return _this; } ContainerMovementGaugeComponent_1 = ContainerMovementGaugeComponent; ContainerMovementGaugeComponent.prototype.ngOnInit = function () { _super.prototype.ngOnInit.call(this); if (this.observedNaturalKeys != null && this.observedNaturalKeys.length > 0) { this.setNaturalKeys(this.observedNaturalKeys); } }; ContainerMovementGaugeComponent.prototype.updateGaugeValue = function (naturalKey, data) { switch (naturalKey) { case ContainerMovementGaugeComponent_1.naturalKeyMovementGaugeActionState: { var mapping = this.stateMappingMap.get(data); this.actionState = mapping != null ? mapping : app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder; break; } default: break; } }; Object.defineProperty(ContainerMovementGaugeComponent.prototype, "drawingCanvas", { get: function () { return null; }, enumerable: true, configurable: true }); ContainerMovementGaugeComponent.prototype.draw = function () { // should not draw canvas }; ContainerMovementGaugeComponent.naturalKeyMovementGaugeActionState = 'Gen_Action_State'; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ContainerMovementGaugeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], ContainerMovementGaugeComponent.prototype, "widthPx", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ContainerMovementGaugeComponent.prototype, "isCompact", void 0); ContainerMovementGaugeComponent = ContainerMovementGaugeComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'container-movement-gauge', template: __webpack_require__(/*! ./container-movement-gauge.component.html */ "./src/app/components/gauges/container-movement-gauge.component.html"), styles: [__webpack_require__(/*! ./container-movement-gauge.component.scss */ "./src/app/components/gauges/container-movement-gauge.component.scss")] }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_8__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_7__["DataPointRangeService"], _services_config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"], _services_color_service__WEBPACK_IMPORTED_MODULE_5__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"], app_services_terminal_mapping_service__WEBPACK_IMPORTED_MODULE_4__["TerminalMappingService"]]) ], ContainerMovementGaugeComponent); return ContainerMovementGaugeComponent; var ContainerMovementGaugeComponent_1; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_9__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/control-place-gauge.component.html": /*!**********************************************************************!*\ !*** ./src/app/components/gauges/control-place-gauge.component.html ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
{{controlPlaceTitle}}
" /***/ }), /***/ "./src/app/components/gauges/control-place-gauge.component.ts": /*!********************************************************************!*\ !*** ./src/app/components/gauges/control-place-gauge.component.ts ***! \********************************************************************/ /*! exports provided: ToolbarControlPlace */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolbarControlPlace", function() { return ToolbarControlPlace; }); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ToolbarControlPlace = /** @class */ (function (_super) { __extends(ToolbarControlPlace, _super); function ToolbarControlPlace(dataPointService, configService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.configuredControlPlaces = new Map(); _this.controlPlaceTitlePlaceholder = app_app_constants__WEBPACK_IMPORTED_MODULE_4__["Const"].NoValuePlaceholder; _this.naturalKeyControlPlaceCabin = 'Gbl_ControlPlace_Cabin'; _this.naturalKeyControlPlaceAccessPoint = 'Gbl_ControlPlace_AccessPoint'; _this.naturalKeyControlPlaceWinchHouse = 'Gbl_ControlPlace_WinchHouse'; _this.naturalKeyControlPlaceRemoteControl = 'Gbl_ControlPlace_RemoteControl'; _this.naturalKeyControlPlaceRosStation = 'Gbl_ControlPlace_RosStation'; _this.controlPlaceTitle = _this.controlPlaceTitlePlaceholder; var toolbarGauges = _this.configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_4__["Const"].AliasToolbar].components.find(function (e) { return e.id === 'toolbar-gauges'; }); if (toolbarGauges != null && toolbarGauges.components != null) { _this.controlPlaceGauge = toolbarGauges.components.find(function (e) { return toolbarGauges.enabled && e.enabled && e.id === 'control-place-gauge'; }); if (_this.controlPlaceGauge != null && _this.controlPlaceGauge.enabled == true && _this.controlPlaceGauge.quickviewDatapoints != null) { _this.controlPlaceGauge.quickviewDatapoints.filter(function (f) { return f.enabled; }).forEach(function (x) { return _this.configuredControlPlaces.set(x.naturalKey, x.title); }); } } return _this; } ToolbarControlPlace.prototype.onValueChanged = function (naturalKey, datapointData) { var _this = this; if (naturalKey != null && datapointData != null) { if (datapointData) { this.controlPlaceTitle = this.configuredControlPlaces.get(naturalKey) || this.controlPlaceTitlePlaceholder; } else { var noOptionIsActive = this.getNaturalKeys().reduce(function (acc, x) { if (acc) { var s = _this.dataPoints.Get(x); return s != null && !s.data; } return false; }, true); if (noOptionIsActive) { this.controlPlaceTitle = this.controlPlaceTitlePlaceholder; } } } else { this.controlPlaceTitle = this.controlPlaceTitlePlaceholder; } }; ToolbarControlPlace.prototype.ngOnInit = function () { var activeNaturalKeys = []; if (this.isDatapointEnabled(this.naturalKeyControlPlaceCabin)) { activeNaturalKeys.push(this.naturalKeyControlPlaceCabin); } if (this.isDatapointEnabled(this.naturalKeyControlPlaceAccessPoint)) { activeNaturalKeys.push(this.naturalKeyControlPlaceAccessPoint); } if (this.isDatapointEnabled(this.naturalKeyControlPlaceWinchHouse)) { activeNaturalKeys.push(this.naturalKeyControlPlaceWinchHouse); } if (this.isDatapointEnabled(this.naturalKeyControlPlaceRemoteControl)) { activeNaturalKeys.push(this.naturalKeyControlPlaceRemoteControl); } if (this.isDatapointEnabled(this.naturalKeyControlPlaceRosStation)) { activeNaturalKeys.push(this.naturalKeyControlPlaceRosStation); } if (activeNaturalKeys.length > 0) { this.setNaturalKeys(activeNaturalKeys); } }; ToolbarControlPlace.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; ToolbarControlPlace.prototype.onValuesInitialized = function (datapoints) { var controlPlaceCabin = datapoints.Get(this.naturalKeyControlPlaceCabin); if (controlPlaceCabin != null && controlPlaceCabin.data != null) { this.onValueChanged(this.naturalKeyControlPlaceCabin, controlPlaceCabin.data); } var controlPlaceAccessPoint = datapoints.Get(this.naturalKeyControlPlaceAccessPoint); if (controlPlaceAccessPoint != null && controlPlaceAccessPoint.data != null) { this.onValueChanged(this.naturalKeyControlPlaceAccessPoint, controlPlaceAccessPoint.data); } var controlPlaceWinchHouse = datapoints.Get(this.naturalKeyControlPlaceWinchHouse); if (controlPlaceWinchHouse != null && controlPlaceWinchHouse.data != null) { this.onValueChanged(this.naturalKeyControlPlaceWinchHouse, controlPlaceWinchHouse.data); } var controlPlaceRemoteControl = datapoints.Get(this.naturalKeyControlPlaceRemoteControl); if (controlPlaceRemoteControl != null && controlPlaceRemoteControl.data != null) { this.onValueChanged(this.naturalKeyControlPlaceRemoteControl, controlPlaceRemoteControl.data); } var controlPlaceRosStation = datapoints.Get(this.naturalKeyControlPlaceRosStation); if (controlPlaceRosStation != null && controlPlaceRosStation.data != null) { this.onValueChanged(this.naturalKeyControlPlaceRosStation, controlPlaceRosStation.data); } }; ToolbarControlPlace.prototype.isDatapointEnabled = function (nk) { if (this.controlPlaceGauge != null && this.controlPlaceGauge.enabled == true) { return this.dpArrayIncludes(this.controlPlaceGauge.quickviewDatapoints, nk) || this.dpArrayIncludes(this.controlPlaceGauge.requiredDatapoints, nk); } return false; }; ToolbarControlPlace.prototype.dpArrayIncludes = function (array, key) { var _this = this; return array != null && array.find(function (x) { return _this.dpMatches(x, key); }); }; ToolbarControlPlace.prototype.dpMatches = function (dp, key) { var qdp = dp; if (!qdp || (qdp.enabled !== undefined && !qdp.enabled)) { return false; } return dp != null && dp.naturalKey === key; }; ToolbarControlPlace = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'control-place-gauge', template: __webpack_require__(/*! ./control-place-gauge.component.html */ "./src/app/components/gauges/control-place-gauge.component.html") }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_0__["ConfigService"]]) ], ToolbarControlPlace); return ToolbarControlPlace; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/gauges/floor-gauge.component.html": /*!**************************************************************!*\ !*** ./src/app/components/gauges/floor-gauge.component.html ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n \n \n
\n\n" /***/ }), /***/ "./src/app/components/gauges/floor-gauge.component.scss": /*!**************************************************************!*\ !*** ./src/app/components/gauges/floor-gauge.component.scss ***! \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".floor-gauge {\n width: 78px;\n height: 50px;\n position: relative; }\n .floor-gauge canvas {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0; }\n .floor-gauge i {\n position: absolute;\n height: 50px;\n line-height: 50px;\n font-size: 26px; }\n .floor-gauge i.cms-icon-chevron-left {\n top: 0px;\n left: 4px; }\n .floor-gauge i.cms-icon-chevron-right {\n top: 0px;\n right: 4px; }\n .floor-gauge.compact {\n width: 64px;\n height: 26px; }\n .floor-gauge.compact i {\n font-size: 16px;\n line-height: 26px; }\n" /***/ }), /***/ "./src/app/components/gauges/floor-gauge.component.ts": /*!************************************************************!*\ !*** ./src/app/components/gauges/floor-gauge.component.ts ***! \************************************************************/ /*! exports provided: FloorGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloorGaugeComponent", function() { return FloorGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _utils_floor_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../utils/floor-util */ "./src/app/utils/floor-util.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var FloorGaugeComponent = /** @class */ (function (_super) { __extends(FloorGaugeComponent, _super); function FloorGaugeComponent(dataPointService, dataPointRangeService, configService, colorService, translationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.configService = configService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this._naturalKeyLiftHeight = 'Hst_PositionEval_ActLiftHeight'; _this._animationDuration = 500; _this._animationOffsetY = 20; _this._minPosition = 0; _this._currentFloor = 0; _this._animate = false; _this._slideUp = false; _this._maxFloorNumber = _this.configService.craneConfig.craneMaxContainerStackSize; return _this; } Object.defineProperty(FloorGaugeComponent.prototype, "liftHeightRange", { get: function () { return this.dataPointRangeService.getRange(this._naturalKeyLiftHeight); }, enumerable: true, configurable: true }); FloorGaugeComponent.prototype.ngOnInit = function () { _super.prototype.ngOnInit.call(this); this.setNaturalKeys([this._naturalKeyLiftHeight]); }; Object.defineProperty(FloorGaugeComponent.prototype, "drawingCanvas", { get: function () { return this.canvas; }, enumerable: true, configurable: true }); FloorGaugeComponent.prototype.updateGaugeValue = function (naturalKey, data) { var value = data; if (this._context == null || value == null) { return; } var floorNr = _utils_floor_util__WEBPACK_IMPORTED_MODULE_7__["FloorUtils"].calcFloorNumber(value, this._maxFloorNumber, this._minPosition); if (this._currentFloor != floorNr) { this._slideUp = floorNr > this._currentFloor; this._currentFloor = floorNr; this._animate = true; this._animStart = (new Date()).getTime(); this.draw(); var t = this; setTimeout(function () { t._animate = false; }, this._animationDuration); } }; FloorGaugeComponent.prototype.draw = function () { var liftHeightRange = this.liftHeightRange; if (liftHeightRange != null) { this._minPosition = liftHeightRange != null && !isNaN(liftHeightRange.min) ? liftHeightRange.min : 0; } if (this._animate) { var offset = 0; var opacityCenter = 1; var opacityFlyIn = 0; var delta = ((new Date()).getTime() - this._animStart); if (delta <= this._animationDuration) { var percent = delta / this._animationDuration; opacityCenter = 1 - percent; opacityFlyIn = percent; offset = this._animationOffsetY * percent; if (this._slideUp) { offset = offset * -1; } } else { offset = 0; opacityCenter = 1; opacityFlyIn = 0; } var canvasWidth = this._nativeCanvas.clientWidth; var canvasHeight = this._nativeCanvas.clientHeight; var centerText = (offset !== 0 ? this._slideUp ? this._currentFloor - 1 : this._currentFloor + 1 : this._currentFloor).toString(); var centerTextWidth = this._context.measureText(centerText).width; this._context.clearRect(0, 0, canvasWidth, canvasHeight); this._context.font = (this.isCompact ? '16' : '24') + "px Roboto"; if (this._contrastColorAlphaOpacity != null) { this._context.fillStyle = this._contrastColorAlphaOpacity.replace('%', opacityCenter.toString()); } this._context.fillText(centerText, 1 + (canvasWidth - centerTextWidth) / 2, canvasHeight / 2 + offset + 5); if (offset !== 0) { var flyInText = this._currentFloor.toString(); var flyInTextWidth = this._context.measureText(flyInText).width; var prevOffset = this._slideUp ? offset + this._animationOffsetY : offset - this._animationOffsetY; if (this._contrastColorAlphaOpacity != null) { this._context.fillStyle = this._contrastColorAlphaOpacity.replace('%', opacityFlyIn.toString()); } this._context.fillText(flyInText, 1 + (canvasWidth - flyInTextWidth) / 2, canvasHeight / 2 + prevOffset + 5); } } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], FloorGaugeComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('gaugeCanvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], FloorGaugeComponent.prototype, "canvas", void 0); FloorGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'floor-gauge', template: __webpack_require__(/*! ./floor-gauge.component.html */ "./src/app/components/gauges/floor-gauge.component.html"), styles: [__webpack_require__(/*! ./floor-gauge.component.scss */ "./src/app/components/gauges/floor-gauge.component.scss")] }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_5__["DataPointRangeService"], _services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"], _services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"]]) ], FloorGaugeComponent); return FloorGaugeComponent; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_8__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/icon-value-gauge.component.html": /*!*******************************************************************!*\ !*** ./src/app/components/gauges/icon-value-gauge.component.html ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n \n
\n
\n

\n {{value | unitsystemconvert:naturalKey:lang }}\n {{ naturalKey | unitsystemunit }}{{valueSuffix}}

\n

\n
{{ title }}
\n
\n
\n
\n\n" /***/ }), /***/ "./src/app/components/gauges/icon-value-gauge.component.scss": /*!*******************************************************************!*\ !*** ./src/app/components/gauges/icon-value-gauge.component.scss ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".icon-value-gauge.default-theme .container-left.state-alert i {\n color: #f11d40; }\n\n.icon-value-gauge.testing-theme .container-left.state-alert i {\n color: #f11d40; }\n\n.icon-value-gauge {\n height: 130px;\n margin: 0px auto;\n position: relative; }\n\n.icon-value-gauge .gauge-container {\n margin: 0 auto;\n height: 130px;\n position: relative;\n display: inline-block; }\n\n.icon-value-gauge .gauge-container .container-left {\n float: left !important;\n margin-right: 8px; }\n\n.icon-value-gauge .gauge-container .container-left i {\n font-size: 56px;\n margin-top: 56px; }\n\n.icon-value-gauge .gauge-container .container-right {\n float: left !important;\n margin-top: 60px; }\n\n.icon-value-gauge h3 {\n margin: 9px 0 0 0;\n font-size: 30px;\n text-align: left; }\n\n.icon-value-gauge h3 span {\n font-size: 24px; }\n\n.icon-value-gauge h6 {\n text-align: left;\n margin: 0px;\n font-size: 16px;\n font-weight: 400; }\n\n.icon-value-gauge.compact {\n height: 80px; }\n\n.icon-value-gauge.compact h3 {\n font-size: 18px; }\n\n.icon-value-gauge.compact h3 span {\n font-size: 14px; }\n\n.icon-value-gauge.compact h6 {\n padding-top: 1px;\n font-size: 12px;\n font-weight: 300; }\n\n.icon-value-gauge.compact .gauge-container {\n height: 80px; }\n\n.icon-value-gauge.compact .gauge-container .container-left i {\n font-size: 50px;\n width: 50px;\n margin-top: 16px; }\n\n.icon-value-gauge.compact .gauge-container .container-right {\n margin-top: 16px; }\n" /***/ }), /***/ "./src/app/components/gauges/icon-value-gauge.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/gauges/icon-value-gauge.component.ts ***! \*****************************************************************/ /*! exports provided: IconValueGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IconValueGaugeComponent", function() { return IconValueGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var IconValueGaugeComponent = /** @class */ (function (_super) { __extends(IconValueGaugeComponent, _super); function IconValueGaugeComponent(dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this.valueSuffix = ''; _this.value = 0; return _this; } Object.defineProperty(IconValueGaugeComponent.prototype, "range", { get: function () { return this.dataPointRangeService.getRange(this.naturalKey); }, enumerable: true, configurable: true }); IconValueGaugeComponent.prototype.ngOnInit = function () { _super.prototype.ngOnInit.call(this); // only ask for DP if there is one, otherwise this will result in // missing natural key 'undefined' if (this.naturalKey != null) { this.setNaturalKeys([this.naturalKey]); } }; IconValueGaugeComponent.prototype.updateGaugeValue = function (naturalKey, data) { this.value = data; }; Object.defineProperty(IconValueGaugeComponent.prototype, "alertState", { get: function () { var range = this.range; if (range != null) { var value = this.value; if (range.alarmMax != null && value > range.alarmMax) { return true; } if (range.alarmMin != null && value < range.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); Object.defineProperty(IconValueGaugeComponent.prototype, "drawingCanvas", { get: function () { return null; }, enumerable: true, configurable: true }); IconValueGaugeComponent.prototype.draw = function () { // should not draw canvas }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], IconValueGaugeComponent.prototype, "naturalKey", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], IconValueGaugeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], IconValueGaugeComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], IconValueGaugeComponent.prototype, "valuePlaced", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], IconValueGaugeComponent.prototype, "valueSuffix", void 0); IconValueGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'icon-value-gauge', template: __webpack_require__(/*! ./icon-value-gauge.component.html */ "./src/app/components/gauges/icon-value-gauge.component.html"), styles: [__webpack_require__(/*! ./icon-value-gauge.component.scss */ "./src/app/components/gauges/icon-value-gauge.component.scss")], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], app_services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_3__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_4__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"]]) ], IconValueGaugeComponent); return IconValueGaugeComponent; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_6__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/operating-mode-gauge.component.html": /*!***********************************************************************!*\ !*** ./src/app/components/gauges/operating-mode-gauge.component.html ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
{{operatingModeTitle}}
" /***/ }), /***/ "./src/app/components/gauges/operating-mode-gauge.component.ts": /*!*********************************************************************!*\ !*** ./src/app/components/gauges/operating-mode-gauge.component.ts ***! \*********************************************************************/ /*! exports provided: OperatingModeGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatingModeGaugeComponent", function() { return OperatingModeGaugeComponent; }); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatingModeGaugeComponent = /** @class */ (function (_super) { __extends(OperatingModeGaugeComponent, _super); function OperatingModeGaugeComponent(dataPointService, configService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.configuredOperatingModes = new Map(); _this.operatingModeTitlePlaceholder = app_app_constants__WEBPACK_IMPORTED_MODULE_4__["Const"].NoValuePlaceholder; _this.naturalKeyOperatingModeStacking = 'Gen_Stacking_Mode_Active'; _this.naturalKeyOperatingModeShunting = 'Gen_Shunting_Mode_Active'; _this.operatingModeTitle = _this.operatingModeTitlePlaceholder; var toolbarGauges = _this.configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_4__["Const"].AliasToolbar].components.find(function (e) { return e.id === 'toolbar-gauges'; }); if (toolbarGauges != null && toolbarGauges.components != null) { _this.operatingModeGauge = toolbarGauges.components.find(function (e) { return toolbarGauges.enabled && e.enabled && e.id === 'operating-mode-gauge'; }); if (_this.operatingModeGauge != null && _this.operatingModeGauge.enabled == true && _this.operatingModeGauge.quickviewDatapoints != null) { _this.operatingModeGauge.quickviewDatapoints.filter(function (f) { return f.enabled; }).forEach(function (x) { return _this.configuredOperatingModes.set(x.naturalKey, x.title); }); } } return _this; } OperatingModeGaugeComponent.prototype.onValueChanged = function (naturalKey, datapointData) { var _this = this; if (naturalKey != null && datapointData != null) { if (datapointData) { this.operatingModeTitle = this.configuredOperatingModes.get(naturalKey) || this.operatingModeTitlePlaceholder; } else { var noOptionIsActive = this.getNaturalKeys().reduce(function (acc, x) { if (acc) { var s = _this.dataPoints.Get(x); return s != null && !s.data; } return false; }, true); if (noOptionIsActive) { this.operatingModeTitle = this.operatingModeTitlePlaceholder; } } } else { this.operatingModeTitle = this.operatingModeTitlePlaceholder; } }; OperatingModeGaugeComponent.prototype.ngOnInit = function () { var activeNaturalKeys = []; if (this.isDatapointEnabled(this.naturalKeyOperatingModeShunting)) { activeNaturalKeys.push(this.naturalKeyOperatingModeShunting); } if (this.isDatapointEnabled(this.naturalKeyOperatingModeStacking)) { activeNaturalKeys.push(this.naturalKeyOperatingModeStacking); } if (activeNaturalKeys.length > 0) { this.setNaturalKeys(activeNaturalKeys); } }; OperatingModeGaugeComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; OperatingModeGaugeComponent.prototype.onValuesInitialized = function (datapoints) { var operatingModeShunting = datapoints.Get(this.naturalKeyOperatingModeShunting); if (operatingModeShunting != null && operatingModeShunting.data != null) { this.onValueChanged(this.naturalKeyOperatingModeShunting, operatingModeShunting.data); } var operatingModeStacking = datapoints.Get(this.naturalKeyOperatingModeStacking); if (operatingModeStacking != null && operatingModeStacking.data != null) { this.onValueChanged(this.naturalKeyOperatingModeStacking, operatingModeStacking.data); } }; OperatingModeGaugeComponent.prototype.isDatapointEnabled = function (nk) { if (this.operatingModeGauge != null && this.operatingModeGauge.enabled == true) { return this.dpArrayIncludes(this.operatingModeGauge.quickviewDatapoints, nk) || this.dpArrayIncludes(this.operatingModeGauge.requiredDatapoints, nk); } return false; }; OperatingModeGaugeComponent.prototype.dpArrayIncludes = function (array, key) { var _this = this; return array != null && array.find(function (x) { return _this.dpMatches(x, key); }); }; OperatingModeGaugeComponent.prototype.dpMatches = function (dp, key) { var qdp = dp; if (!qdp || (qdp.enabled !== undefined && !qdp.enabled)) { return false; } return dp != null && dp.naturalKey === key; }; OperatingModeGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'operating-mode-gauge', template: __webpack_require__(/*! ./operating-mode-gauge.component.html */ "./src/app/components/gauges/operating-mode-gauge.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_0__["ConfigService"]]) ], OperatingModeGaugeComponent); return OperatingModeGaugeComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/gauges/position-cross-gauge.component.html": /*!***********************************************************************!*\ !*** ./src/app/components/gauges/position-cross-gauge.component.html ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n \n
\n
\n
\n

\n \n {{valueX | unitsystemconvert:naturalKeyPositionX:lang }}\n  {{ naturalKeyPositionX | unitsystemunit }}\n

\n

\n \n {{valueY | unitsystemconvert:naturalKeyPositionY:lang }}\n  {{ naturalKeyPositionY | unitsystemunit }}\n

\n

\n \n \n

\n
{{ title }}
\n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/gauges/position-cross-gauge.component.scss": /*!***********************************************************************!*\ !*** ./src/app/components/gauges/position-cross-gauge.component.scss ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".position-cross-gauge.default-theme h3.alert i {\n color: #f11d40; }\n\n.position-cross-gauge.testing-theme h3.alert i {\n color: #f11d40; }\n\n.position-cross-gauge {\n width: 520px;\n margin: 0px auto;\n height: 130px;\n position: relative; }\n\n.position-cross-gauge .gauge-container {\n margin: 0 auto;\n height: 130px;\n position: relative;\n display: inline-block; }\n\n.position-cross-gauge .gauge-container .container-left {\n float: left !important;\n width: 300px; }\n\n.position-cross-gauge .gauge-container .container-right {\n float: left !important;\n margin-top: 60px;\n display: table;\n height: inherit;\n width: 220px; }\n\n.position-cross-gauge .gauge-container .container-right .container-right-vertical-aligner {\n display: table-cell;\n vertical-align: middle; }\n\n.position-cross-gauge h3 {\n margin: 0px;\n font-size: 30px;\n text-align: left; }\n\n.position-cross-gauge h3 i {\n float: left;\n height: 30px;\n font-size: 30px;\n margin-right: 8px; }\n\n.position-cross-gauge h3 i.rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n\n.position-cross-gauge h3 span {\n font-size: 24px; }\n\n.position-cross-gauge h6 {\n margin: 0px;\n font-size: 16px;\n font-weight: 400; }\n\n.position-cross-gauge.compact {\n width: 330px;\n height: 80px; }\n\n.position-cross-gauge.compact h3 {\n padding-top: 2px;\n font-size: 18px; }\n\n.position-cross-gauge.compact h3 i {\n height: 18px;\n font-size: 18px;\n margin-right: 16px; }\n\n.position-cross-gauge.compact h3 span {\n font-size: 14px; }\n\n.position-cross-gauge.compact h6 {\n text-align: left;\n margin-left: 34px;\n margin-top: 2px;\n font-size: 12px;\n font-weight: 300; }\n\n.position-cross-gauge.compact .gauge-container {\n height: 80px; }\n\n.position-cross-gauge.compact .gauge-container .container-left {\n width: 190px; }\n\n.position-cross-gauge.compact .gauge-container .container-right {\n width: 140px;\n margin-top: 0; }\n" /***/ }), /***/ "./src/app/components/gauges/position-cross-gauge.component.ts": /*!*********************************************************************!*\ !*** ./src/app/components/gauges/position-cross-gauge.component.ts ***! \*********************************************************************/ /*! exports provided: PositionCrossGauge */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PositionCrossGauge", function() { return PositionCrossGauge; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var app_services_terminal_mapping_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/terminal-mapping.service */ "./src/app/services/terminal-mapping.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SpeedLevel; (function (SpeedLevel) { SpeedLevel[SpeedLevel["Stopped"] = 0] = "Stopped"; SpeedLevel[SpeedLevel["Slow"] = 1] = "Slow"; SpeedLevel[SpeedLevel["Fast"] = 2] = "Fast"; })(SpeedLevel || (SpeedLevel = {})); var GaugeMetrics = /** @class */ (function () { function GaugeMetrics() { this.indicatorPosition = { x: 0, y: 0, rotation: 0 }; } return GaugeMetrics; }()); var PositionCrossGauge = /** @class */ (function (_super) { __extends(PositionCrossGauge, _super); function PositionCrossGauge(_orientationService, configService, dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService, terminalMappingService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this._orientationService = _orientationService; _this.configService = configService; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this.terminalMappingService = terminalMappingService; _this._directionUpdateTimerInterval = 200; _this.valueX = 0; _this.valueY = 0; _this._speedX = 0; _this._speedY = 0; _this.locationObservable = terminalMappingService.currentLocationSubject; _this._metrics = new GaugeMetrics(); return _this; } Object.defineProperty(PositionCrossGauge.prototype, "rangeX", { get: function () { return this.dataPointRangeService.getRange(this.naturalKeyPositionX); }, enumerable: true, configurable: true }); Object.defineProperty(PositionCrossGauge.prototype, "rangeY", { get: function () { return this.dataPointRangeService.getRange(this.naturalKeyPositionY); }, enumerable: true, configurable: true }); Object.defineProperty(PositionCrossGauge.prototype, "orientationFactorX", { get: function () { return this._orientationService.isGantryForwardRight ? 1 : -1; }, enumerable: true, configurable: true }); Object.defineProperty(PositionCrossGauge.prototype, "orientationFactorY", { get: function () { return this._orientationService.isTrolleyForwardTop ? 1 : -1; }, enumerable: true, configurable: true }); Object.defineProperty(PositionCrossGauge.prototype, "isLocationMappingEnabled", { get: function () { var toolbarGauges = this.configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasToolbar].components.find(function (e) { return e.id === 'toolbar-gauges'; }); if (toolbarGauges != null && toolbarGauges.components != null) { var components = toolbarGauges.components.filter(function (e) { return toolbarGauges.enabled && e.enabled && e.id === 'toolbar-terminal-mapping'; }); return components.length != 0; } return false; }, enumerable: true, configurable: true }); PositionCrossGauge.prototype.ngOnInit = function () { var _this = this; _super.prototype.ngOnInit.call(this); this.setNaturalKeys([ this.naturalKeyPositionX, this.naturalKeyPositionY, this.naturalKeySpeedX, this.naturalKeySpeedY ]); this._timerSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["timer"])(this._directionUpdateTimerInterval, this._directionUpdateTimerInterval) .subscribe(function () { return _this.invalidate(); }); this._orientationChangedSubscription = this._orientationService.orientationChangedSubject() .subscribe(function () { return _this.invalidate(); }); }; PositionCrossGauge.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._timerSubscription != null) { this._timerSubscription.unsubscribe(); } if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; PositionCrossGauge.prototype.updateDirection = function () { if (this._recentX != undefined && this._recentY != undefined) { var deltaX = this.valueX - this._recentX; var deltaY = this.valueY - this._recentY; // DeltaY value should be inverted because the positive Y direction in Browser differs from the one on the crane. var angle = this.getRealAngle(deltaX * this.orientationFactorX, (-deltaY) * this.orientationFactorY); if (angle !== undefined) { this._recentAngle = angle; } } this._metrics.drivingAngle = this._recentAngle; this._recentX = this.valueX; this._recentY = this.valueY; }; PositionCrossGauge.prototype.getRealAngle = function (deltaX, deltaY) { // Quoter I if (deltaX > 0 && deltaY > 0) { return Math.atan2(deltaY, deltaX); } // Quoter II if (deltaX < 0 && deltaY > 0) { return Math.atan2(Math.abs(deltaY), Math.abs(deltaX)) + Math.PI / 2; } // Quoter III if (deltaX < 0 && deltaY < 0) { return Math.atan2(Math.abs(deltaY), Math.abs(deltaX)) + Math.PI; } // Quoter IV if (deltaX > 0 && deltaY < 0) { return Math.atan2(Math.abs(deltaY), Math.abs(deltaX)) + 1.5 * Math.PI; } // Change only across Y axis if (deltaX === 0) { if (deltaY > 0) { return Math.PI / 2; // 90° } else if (deltaY < 0) { return 1.5 * Math.PI; // 270° } } // Change only across X axis if (deltaY === 0) { if (deltaX > 0) { return 0; // 0° } else if (deltaX < 0) { return Math.PI; // 180° } } // No change if (deltaX === 0 && deltaY === 0) { return undefined; } return undefined; }; Object.defineProperty(PositionCrossGauge.prototype, "drawingCanvas", { get: function () { return this.canvas; }, enumerable: true, configurable: true }); PositionCrossGauge.prototype.updateGaugeValue = function (naturalKey, data) { if (naturalKey === this.naturalKeyPositionX) { this.valueX = data; } else if (naturalKey === this.naturalKeyPositionY) { this.valueY = data; } else if (naturalKey === this.naturalKeySpeedX) { this._speedX = data; } else if (naturalKey === this.naturalKeySpeedY) { this._speedY = data; } }; PositionCrossGauge.prototype.draw = function () { var canvasWidth = this._nativeCanvas.clientWidth; var canvasHeight = this._nativeCanvas.clientHeight; this._context.clearRect(0, 0, canvasWidth, canvasHeight); this.updateDirection(); var m = this._metrics; m.margin = this.isCompact ? 16 : 26; m.margin = this.isCompact ? 16 : 26; m.hRange = canvasWidth - 2 * m.margin; m.vRange = canvasHeight - 2 * m.margin; var rangeX = this.rangeX; if (rangeX != null) { m.indicatorPosition.x = m.margin + (this._orientationService.isGantryForwardRight ? 0 : m.hRange) + Math.min(m.hRange * this.valueX / (rangeX.max - rangeX.min), m.hRange) * this.orientationFactorX; } var rangeY = this.rangeY; if (rangeY != null) { m.indicatorPosition.y = canvasHeight - m.margin - (this._orientationService.isTrolleyForwardTop ? 0 : m.vRange) - Math.min(m.vRange * this.valueY / (rangeY.max - rangeY.min), m.vRange) * this.orientationFactorY; } m.indicatorRadius = this.isCompact ? 6 : 8; m.alert = this.alertX || this.alertY; this.drawBottomAndTopLines(); this.drawPositionIndicator(); this.drawDirectionAndSpeedIndicators(); }; PositionCrossGauge.prototype.drawBottomAndTopLines = function () { var m = this._metrics; this._context.lineWidth = this.isCompact ? 2 : 4; this._context.lineCap = 'round'; this._context.setLineDash(this.isCompact ? [4, 3] : []); this._context.beginPath(); this._context.moveTo(m.margin, m.margin); this._context.lineTo(m.margin + m.hRange, m.margin); this._context.moveTo(m.margin, m.margin + m.vRange); this._context.lineTo(m.margin + m.hRange, m.margin + m.vRange); this._context.strokeStyle = this._colorBackground; this._context.stroke(); this._context.closePath(); }; PositionCrossGauge.prototype.drawPositionIndicator = function () { var m = this._metrics; this._context.lineWidth = this.isCompact ? 1 : 2; this._context.setLineDash(this.isCompact ? [2, 2] : [4, 4]); this._context.beginPath(); this._context.moveTo(m.indicatorPosition.x, m.margin); this._context.lineTo(m.indicatorPosition.x, m.margin + m.vRange); this._context.strokeStyle = this._colorBackground; this._context.stroke(); this._context.closePath(); this._context.fillStyle = m.alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); this._context.arc(m.indicatorPosition.x, m.indicatorPosition.y, m.indicatorRadius, 0, 2 * Math.PI); this._context.fill(); }; PositionCrossGauge.prototype.drawDirectionAndSpeedIndicators = function () { var m = this._metrics; if (m.drivingAngle != null && this.speedLevel !== SpeedLevel.Stopped) { this._context.setLineDash([]); this._context.lineWidth = this.isCompact ? 2 : 3; this._context.strokeStyle = m.alert ? this._colorAlert : this._colorHighlight; // speed level slow (first arc) this._context.beginPath(); this._context.arc(m.indicatorPosition.x, m.indicatorPosition.y, m.indicatorRadius * 1.5, m.drivingAngle - 0.5, m.drivingAngle + 0.5); this._context.stroke(); if (this.speedLevel === SpeedLevel.Fast) { this._context.beginPath(); this._context.arc(m.indicatorPosition.x, m.indicatorPosition.y, m.indicatorRadius * 2.2, m.drivingAngle - 0.4, m.drivingAngle + 0.4); this._context.stroke(); } } }; Object.defineProperty(PositionCrossGauge.prototype, "speedLevel", { get: function () { var speedXAbsolute = Math.abs(this._speedX); var speedYAbsolute = Math.abs(this._speedY); if (speedXAbsolute + speedYAbsolute <= 0) { return SpeedLevel.Stopped; } if (speedXAbsolute >= 50 || speedYAbsolute >= 50) { return SpeedLevel.Fast; } return SpeedLevel.Slow; }, enumerable: true, configurable: true }); Object.defineProperty(PositionCrossGauge.prototype, "alertX", { get: function () { var rangeX = this.rangeX; if (rangeX != null) { var valueX = this.valueX; if (rangeX.alarmMax != null && valueX > rangeX.alarmMax) { return true; } if (rangeX.alarmMin != null && valueX < rangeX.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); Object.defineProperty(PositionCrossGauge.prototype, "alertY", { get: function () { var rangeY = this.rangeY; if (rangeY != null) { var valueY = this.valueY; if (rangeY.alarmMax != null && valueY > rangeY.alarmMax) { return true; } if (rangeY.alarmMin != null && valueY < rangeY.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PositionCrossGauge.prototype, "naturalKeyPositionX", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PositionCrossGauge.prototype, "naturalKeyPositionY", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PositionCrossGauge.prototype, "naturalKeySpeedX", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PositionCrossGauge.prototype, "naturalKeySpeedY", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PositionCrossGauge.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PositionCrossGauge.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('gaugeCanvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], PositionCrossGauge.prototype, "canvas", void 0); PositionCrossGauge = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'position-cross-gauge', template: __webpack_require__(/*! ./position-cross-gauge.component.html */ "./src/app/components/gauges/position-cross-gauge.component.html"), styles: [__webpack_require__(/*! ./position-cross-gauge.component.scss */ "./src/app/components/gauges/position-cross-gauge.component.scss")] }), __metadata("design:paramtypes", [app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], _services_config_service__WEBPACK_IMPORTED_MODULE_10__["ConfigService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_8__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"], app_services_terminal_mapping_service__WEBPACK_IMPORTED_MODULE_5__["TerminalMappingService"]]) ], PositionCrossGauge); return PositionCrossGauge; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_11__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/radial-offset-gauge.component.html": /*!**********************************************************************!*\ !*** ./src/app/components/gauges/radial-offset-gauge.component.html ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n

{{value | unitsystemconvert:naturalKey:lang }}{{ naturalKey | unitsystemunit }}

\n \n
{{ title }}
\n
\n\n" /***/ }), /***/ "./src/app/components/gauges/radial-offset-gauge.component.scss": /*!**********************************************************************!*\ !*** ./src/app/components/gauges/radial-offset-gauge.component.scss ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".radial-offset-gauge {\n width: 130px;\n height: 110px;\n position: relative;\n margin: 0px auto;\n margin-bottom: 0px; }\n .radial-offset-gauge h3 {\n position: absolute;\n top: 48px;\n left: 0;\n right: 0;\n text-align: center;\n margin: 0px;\n font-size: 30px; }\n .radial-offset-gauge h6 {\n margin: 0px;\n position: absolute;\n bottom: 4px;\n left: 0;\n right: 0;\n text-align: center;\n font-size: 16px;\n font-weight: 400; }\n .radial-offset-gauge canvas {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0; }\n .radial-offset-gauge.compact {\n width: 90px;\n height: 80px; }\n .radial-offset-gauge.compact h3 {\n top: 26px;\n font-size: 18px; }\n .radial-offset-gauge.compact h6 {\n bottom: 20px;\n font-size: 12px;\n font-weight: 300; }\n" /***/ }), /***/ "./src/app/components/gauges/radial-offset-gauge.component.ts": /*!********************************************************************!*\ !*** ./src/app/components/gauges/radial-offset-gauge.component.ts ***! \********************************************************************/ /*! exports provided: RadialOffsetGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadialOffsetGaugeComponent", function() { return RadialOffsetGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RadialOffsetGaugeComponent = /** @class */ (function (_super) { __extends(RadialOffsetGaugeComponent, _super); function RadialOffsetGaugeComponent(dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this.value = 0; // gauge's visible angle: +/- 0.6 rad _this._viewRange = 0.6; // center top position: 1.5 rad _this._zeroAngle = 1.5; return _this; } Object.defineProperty(RadialOffsetGaugeComponent.prototype, "range", { get: function () { return this.dataPointRangeService.getRange(this.naturalKey); }, enumerable: true, configurable: true }); RadialOffsetGaugeComponent.prototype.ngOnInit = function () { _super.prototype.ngOnInit.call(this); this.setNaturalKeys([this.naturalKey]); }; Object.defineProperty(RadialOffsetGaugeComponent.prototype, "drawingCanvas", { get: function () { return this.canvas; }, enumerable: true, configurable: true }); RadialOffsetGaugeComponent.prototype.updateGaugeValue = function (naturalKey, data) { this.value = data; }; RadialOffsetGaugeComponent.prototype.draw = function () { var alert = this.alert; var canvasWidth = this._nativeCanvas.clientWidth; var canvasHeight = this._nativeCanvas.clientHeight; var centerOffset = canvasWidth / 2; var radius = centerOffset * 0.85; var startAngle = (this._zeroAngle - this._viewRange) % 2; var endAngle = (this._zeroAngle + this._viewRange) % 2; // background this._context.clearRect(0, 0, canvasWidth, canvasHeight); this._context.strokeStyle = alert ? this._colorAlertBackground : this._colorBackground; this._context.lineCap = 'round'; this._context.lineWidth = this.isCompact ? 4 : 8; this._context.beginPath(); this._context.arc(centerOffset, centerOffset, radius, startAngle * Math.PI, endAngle * Math.PI); this._context.stroke(); var offsetAngle = Math.min(this._viewRange, this._viewRange * Math.abs(this.value) / Math.abs(this.valueRange)); // highlight overlay if (this.value != 0) { this._context.strokeStyle = alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); if (this.value > 0) { this._context.arc(centerOffset, centerOffset, radius, this._zeroAngle * Math.PI, (this._zeroAngle + offsetAngle) * Math.PI); } else { this._context.arc(centerOffset, centerOffset, radius, (this._zeroAngle - offsetAngle) * Math.PI, this._zeroAngle * Math.PI); } this._context.stroke(); } // position indicator var indicatorXPos = radius * Math.sin(offsetAngle * Math.PI); var indicatorYPos = radius * Math.cos(offsetAngle * Math.PI); this._context.fillStyle = alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); this._context.arc(centerOffset + indicatorXPos * (this.value < 0 ? -1 : 1), centerOffset - indicatorYPos, this.isCompact ? 4 : 8, 0, 2 * Math.PI); this._context.fill(); }; Object.defineProperty(RadialOffsetGaugeComponent.prototype, "valueRange", { get: function () { var range = this.range; if (range != null) { var value = this.value; return value > 0 ? range.max : range.min; } return -1; }, enumerable: true, configurable: true }); Object.defineProperty(RadialOffsetGaugeComponent.prototype, "alert", { get: function () { var range = this.range; if (range != null) { var value = this.value; if (range.alarmMax != null && value > range.alarmMax) { return true; } if (range.alarmMin != null && value < range.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], RadialOffsetGaugeComponent.prototype, "naturalKey", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], RadialOffsetGaugeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], RadialOffsetGaugeComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('gaugeCanvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], RadialOffsetGaugeComponent.prototype, "canvas", void 0); RadialOffsetGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'radial-offset-gauge', template: __webpack_require__(/*! ./radial-offset-gauge.component.html */ "./src/app/components/gauges/radial-offset-gauge.component.html"), styles: [__webpack_require__(/*! ./radial-offset-gauge.component.scss */ "./src/app/components/gauges/radial-offset-gauge.component.scss")] }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"]]) ], RadialOffsetGaugeComponent); return RadialOffsetGaugeComponent; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_6__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/rotation-gauge.component.html": /*!*****************************************************************!*\ !*** ./src/app/components/gauges/rotation-gauge.component.html ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n

{{value | unitsystemconvert:naturalKey:lang }}{{ naturalKey | unitsystemunit }}

\n \n
{{ title }}
\n
\n\n" /***/ }), /***/ "./src/app/components/gauges/rotation-gauge.component.scss": /*!*****************************************************************!*\ !*** ./src/app/components/gauges/rotation-gauge.component.scss ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".rotation-gauge {\n width: 130px;\n height: 130px;\n position: relative;\n margin: 0px auto;\n margin-bottom: 0px; }\n .rotation-gauge h3 {\n position: absolute;\n top: 48px;\n left: 0;\n right: 0;\n text-align: center;\n margin: 0px;\n font-size: 30px; }\n .rotation-gauge h6 {\n margin: 0px;\n position: absolute;\n bottom: 32px;\n left: 0;\n right: 0;\n text-align: center;\n font-size: 16px;\n font-weight: 400; }\n .rotation-gauge canvas {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0; }\n .rotation-gauge.compact {\n width: 75px;\n height: 80px; }\n .rotation-gauge.compact h3 {\n top: 26px;\n font-size: 18px; }\n .rotation-gauge.compact h6 {\n bottom: 20px;\n font-size: 12px;\n font-weight: 300; }\n" /***/ }), /***/ "./src/app/components/gauges/rotation-gauge.component.ts": /*!***************************************************************!*\ !*** ./src/app/components/gauges/rotation-gauge.component.ts ***! \***************************************************************/ /*! exports provided: RotationGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RotationGaugeComponent", function() { return RotationGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _utils_math_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../utils/math.utils */ "./src/app/utils/math.utils.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RotationGaugeComponent = /** @class */ (function (_super) { __extends(RotationGaugeComponent, _super); function RotationGaugeComponent(dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this.offsetAngle = 0; _this.value = 0; return _this; } Object.defineProperty(RotationGaugeComponent.prototype, "range", { get: function () { return this.dataPointRangeService.getRange(this.naturalKey); }, enumerable: true, configurable: true }); RotationGaugeComponent.prototype.ngOnInit = function () { _super.prototype.ngOnInit.call(this); this.setNaturalKeys([this.naturalKey]); }; Object.defineProperty(RotationGaugeComponent.prototype, "drawingCanvas", { get: function () { return this.canvas; }, enumerable: true, configurable: true }); RotationGaugeComponent.prototype.updateGaugeValue = function (naturalKey, data) { this.value = data; }; RotationGaugeComponent.prototype.draw = function () { var range = this.range; if (range != null) { var offsetRad = _utils_math_utils__WEBPACK_IMPORTED_MODULE_6__["MathUtils"].degreeToRadian(this.offsetAngle); this._startAngle = 1 + (range.min / Math.PI) % 2 + offsetRad; this._endAngle = 1 + (range.max / Math.PI) % 2 + offsetRad; } var alert = this.alert; var canvasWidth = this._nativeCanvas.clientWidth; var canvasHeight = this._nativeCanvas.clientHeight; var centerOffsetHorizontal = canvasWidth / 2; var centerOffsetVertical = canvasHeight / 2; var radius = centerOffsetVertical * 0.85; // background this._context.clearRect(0, 0, canvasWidth, canvasHeight); this._context.strokeStyle = alert ? this._colorAlertBackground : this._colorBackground; this._context.lineCap = 'round'; this._context.lineWidth = this.isCompact ? 4 : 8; this._context.beginPath(); this._context.arc(centerOffsetHorizontal, centerOffsetVertical, radius, this._startAngle * Math.PI, this._endAngle * Math.PI); this._context.stroke(); // rotation indicator var angle = this.value - 0.5 * Math.PI; if (this.offsetAngle !== 0) { angle -= _utils_math_utils__WEBPACK_IMPORTED_MODULE_6__["MathUtils"].degreeToRadian(this.offsetAngle); } var indicatorXPos = radius * Math.sin(angle); var indicatorYPos = radius * Math.cos(angle); this._context.fillStyle = alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); this._context.arc(centerOffsetHorizontal + indicatorXPos, centerOffsetVertical - indicatorYPos, this.isCompact ? 4 : 8, 0, 2 * Math.PI); this._context.fill(); }; Object.defineProperty(RotationGaugeComponent.prototype, "alert", { get: function () { var range = this.range; if (range != null) { var value = this.value; if (range.alarmMax != null && value > range.alarmMax) { return true; } if (range.alarmMin != null && value < range.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], RotationGaugeComponent.prototype, "naturalKey", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], RotationGaugeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], RotationGaugeComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], RotationGaugeComponent.prototype, "offsetAngle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('gaugeCanvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], RotationGaugeComponent.prototype, "canvas", void 0); RotationGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'rotation-gauge', template: __webpack_require__(/*! ./rotation-gauge.component.html */ "./src/app/components/gauges/rotation-gauge.component.html"), styles: [__webpack_require__(/*! ./rotation-gauge.component.scss */ "./src/app/components/gauges/rotation-gauge.component.scss")] }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"]]) ], RotationGaugeComponent); return RotationGaugeComponent; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_7__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/side-shift-gauge.component.html": /*!*******************************************************************!*\ !*** ./src/app/components/gauges/side-shift-gauge.component.html ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n \n
\n
\n
\n

\n \n {{valueX | unitsystemconvert:naturalKeyPositionX:lang }}\n  {{ naturalKeyPositionX | unitsystemunit }}\n

\n

\n \n {{valueY | unitsystemconvert:naturalKeyPositionY:lang }}\n  {{ naturalKeyPositionY | unitsystemunit }}\n

\n
{{ title }}
\n
\n
\n
\n
\n\n" /***/ }), /***/ "./src/app/components/gauges/side-shift-gauge.component.scss": /*!*******************************************************************!*\ !*** ./src/app/components/gauges/side-shift-gauge.component.scss ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".side-shift-gauge.default-theme h3.alert i {\n color: #f11d40; }\n\n.side-shift-gauge.testing-theme h3.alert i {\n color: #f11d40; }\n\n.side-shift-gauge {\n width: 380px;\n margin: 0px auto;\n height: 130px;\n position: relative; }\n\n.side-shift-gauge .gauge-container {\n margin: 0 auto;\n height: 130px;\n position: relative;\n display: inline-block; }\n\n.side-shift-gauge .gauge-container .container-left {\n float: left !important;\n width: 130px; }\n\n.side-shift-gauge .gauge-container .container-right {\n float: left !important;\n margin-top: 60px;\n display: table;\n height: inherit;\n width: 250px; }\n\n.side-shift-gauge .gauge-container .container-right .container-right-vertical-aligner {\n display: table-cell;\n vertical-align: middle; }\n\n.side-shift-gauge h3 {\n margin: 0px;\n font-size: 30px;\n text-align: left; }\n\n.side-shift-gauge h3 i {\n float: left;\n height: 30px;\n font-size: 30px;\n margin-right: 8px; }\n\n.side-shift-gauge h3 i.rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n\n.side-shift-gauge h3 span {\n font-size: 24px; }\n\n.side-shift-gauge h6 {\n margin: 0px;\n font-size: 16px;\n font-weight: 400; }\n\n.side-shift-gauge.compact {\n width: 200px;\n height: 80px; }\n\n.side-shift-gauge.compact h3 {\n padding-top: 2px;\n font-size: 18px; }\n\n.side-shift-gauge.compact h3 i {\n height: 18px;\n font-size: 18px;\n margin-right: 16px; }\n\n.side-shift-gauge.compact h3 span {\n font-size: 14px; }\n\n.side-shift-gauge.compact h6 {\n text-align: left;\n margin-left: 34px;\n margin-top: 2px;\n font-size: 12px;\n font-weight: 300; }\n\n.side-shift-gauge.compact .gauge-container {\n height: 80px; }\n\n.side-shift-gauge.compact .gauge-container .container-left {\n width: 80px; }\n\n.side-shift-gauge.compact .gauge-container .container-right {\n width: 120px;\n margin-top: 0; }\n" /***/ }), /***/ "./src/app/components/gauges/side-shift-gauge.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/gauges/side-shift-gauge.component.ts ***! \*****************************************************************/ /*! exports provided: SideShiftGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SideShiftGaugeComponent", function() { return SideShiftGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GaugeMetrics = /** @class */ (function () { function GaugeMetrics() { this.indicatorPosition = { x: 0, y: 0, rotation: 0 }; } return GaugeMetrics; }()); var SideShiftGaugeComponent = /** @class */ (function (_super) { __extends(SideShiftGaugeComponent, _super); function SideShiftGaugeComponent(_orientationService, dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this._orientationService = _orientationService; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this._directionUpdateTimerInterval = 200; _this.valueX = 0; _this.valueY = 0; _this._metrics = new GaugeMetrics(); return _this; } Object.defineProperty(SideShiftGaugeComponent.prototype, "rangeX", { get: function () { return this.dataPointRangeService.getRange(this.naturalKeyPositionX); }, enumerable: true, configurable: true }); Object.defineProperty(SideShiftGaugeComponent.prototype, "rangeY", { get: function () { return this.dataPointRangeService.getRange(this.naturalKeyPositionY); }, enumerable: true, configurable: true }); Object.defineProperty(SideShiftGaugeComponent.prototype, "orientationFactorX", { get: function () { return this._orientationService.isGantryForwardRight ? 1 : -1; }, enumerable: true, configurable: true }); Object.defineProperty(SideShiftGaugeComponent.prototype, "orientationFactorY", { get: function () { return this._orientationService.isTrolleyForwardTop ? 1 : -1; }, enumerable: true, configurable: true }); SideShiftGaugeComponent.prototype.ngOnInit = function () { var _this = this; _super.prototype.ngOnInit.call(this); this.setNaturalKeys([ this.naturalKeyPositionX, this.naturalKeyPositionY ]); this._timerSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["timer"])(this._directionUpdateTimerInterval, this._directionUpdateTimerInterval) .subscribe(function () { return _this.invalidate(); }); this._orientationChangedSubscription = this._orientationService.orientationChangedSubject() .subscribe(function () { return _this.invalidate(); }); }; SideShiftGaugeComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._timerSubscription != null) { this._timerSubscription.unsubscribe(); } if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; SideShiftGaugeComponent.prototype.updateDirection = function () { if (this._recentX != null && this._recentY != null) { var deltaX = this.valueX - this._recentX; var deltaY = this._recentY - this.valueY; this._moving = Math.abs(deltaX) + Math.abs(deltaY) > 0.001; this._metrics.drivingAngle = Math.atan2(deltaY * this.orientationFactorY, deltaX * this.orientationFactorX); } this._recentX = this.valueX; this._recentY = this.valueY; }; Object.defineProperty(SideShiftGaugeComponent.prototype, "drawingCanvas", { get: function () { return this.canvas; }, enumerable: true, configurable: true }); SideShiftGaugeComponent.prototype.updateGaugeValue = function (naturalKey, data) { if (naturalKey === this.naturalKeyPositionX) { this.valueX = data; } else if (naturalKey === this.naturalKeyPositionY) { this.valueY = data; } }; SideShiftGaugeComponent.prototype.draw = function () { var canvasWidth = this._nativeCanvas.clientWidth; var canvasHeight = this._nativeCanvas.clientHeight; this._context.clearRect(0, 0, canvasWidth, canvasHeight); this.updateDirection(); var m = this._metrics; m.margin = this.isCompact ? 16 : 18; m.range = canvasWidth - 2 * m.margin; var rangeX = this.rangeX; if (rangeX != null) { m.indicatorPosition.x = m.margin + m.range / 2 + Math.min(m.range * this.valueX / (rangeX.max - rangeX.min), m.range) * this.orientationFactorX; } var rangeY = this.rangeY; if (rangeY != null) { m.indicatorPosition.y = canvasHeight - m.margin - m.range / 2 - Math.min(m.range * this.valueY / (rangeY.max - rangeY.min), m.range) * this.orientationFactorY; } m.indicatorRadius = this.isCompact ? 6 : 8; m.alert = this.alertX || this.alertY; this.drawBorder(); this.drawPositionIndicator(); this.drawDirectionAndSpeedIndicators(); }; SideShiftGaugeComponent.prototype.drawBorder = function () { var m = this._metrics; this._context.lineWidth = this.isCompact ? 2 : 4; this._context.lineCap = 'round'; this._context.setLineDash(this.isCompact ? [4, 3] : []); this._context.beginPath(); this._context.moveTo(m.margin, m.margin); this._context.lineTo(m.margin + m.range, m.margin); this._context.lineTo(m.margin + m.range, m.margin + m.range); this._context.lineTo(m.margin, m.margin + m.range); this._context.lineTo(m.margin, m.margin); this._context.strokeStyle = this._colorBackground; this._context.stroke(); this._context.closePath(); }; SideShiftGaugeComponent.prototype.drawPositionIndicator = function () { var m = this._metrics; this._context.lineWidth = this.isCompact ? 1 : 2; this._context.setLineDash(this.isCompact ? [2, 2] : [4, 4]); this._context.beginPath(); this._context.moveTo(m.margin, m.margin + m.range / 2); this._context.lineTo(m.margin + m.range, m.margin + m.range / 2); this._context.moveTo(m.margin + m.range / 2, m.margin); this._context.lineTo(m.margin + m.range / 2, m.margin + m.range); this._context.strokeStyle = this._colorBackground; this._context.stroke(); this._context.closePath(); this._context.fillStyle = m.alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); this._context.arc(m.indicatorPosition.x, m.indicatorPosition.y, m.indicatorRadius, 0, 2 * Math.PI); this._context.fill(); }; SideShiftGaugeComponent.prototype.drawDirectionAndSpeedIndicators = function () { var m = this._metrics; if (m.drivingAngle != null && this._moving) { this._context.setLineDash([]); this._context.lineWidth = this.isCompact ? 2 : 3; this._context.strokeStyle = m.alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); this._context.arc(m.indicatorPosition.x, m.indicatorPosition.y, m.indicatorRadius * 1.5, m.drivingAngle - 0.5, m.drivingAngle + 0.5); this._context.stroke(); } }; Object.defineProperty(SideShiftGaugeComponent.prototype, "alertX", { get: function () { var rangeX = this.rangeX; if (rangeX != null) { var valueX = this.valueX; if (rangeX.alarmMax != null && valueX > rangeX.alarmMax) { return true; } if (rangeX.alarmMin != null && valueX < rangeX.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); Object.defineProperty(SideShiftGaugeComponent.prototype, "alertY", { get: function () { var rangeY = this.rangeY; if (rangeY != null) { var valueY = this.valueY; if (rangeY.alarmMax != null && valueY > rangeY.alarmMax) { return true; } if (rangeY.alarmMin != null && valueY < rangeY.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SideShiftGaugeComponent.prototype, "naturalKeyPositionX", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SideShiftGaugeComponent.prototype, "naturalKeyPositionY", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SideShiftGaugeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SideShiftGaugeComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('gaugeCanvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], SideShiftGaugeComponent.prototype, "canvas", void 0); SideShiftGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'side-shift-gauge', template: __webpack_require__(/*! ./side-shift-gauge.component.html */ "./src/app/components/gauges/side-shift-gauge.component.html"), styles: [__webpack_require__(/*! ./side-shift-gauge.component.scss */ "./src/app/components/gauges/side-shift-gauge.component.scss")] }), __metadata("design:paramtypes", [app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__["OrientationService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_7__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_5__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"]]) ], SideShiftGaugeComponent); return SideShiftGaugeComponent; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_8__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/target-position-gauge.component.html": /*!************************************************************************!*\ !*** ./src/app/components/gauges/target-position-gauge.component.html ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n

\n
\n \n {{valueX | unitsystemconvert:naturalKeyPositionX:lang }}\n {{ naturalKeyPositionX | unitsystemunit }}\n
\n

\n
\n
\n

\n
\n \n {{valueY | unitsystemconvert:naturalKeyPositionY:lang }}\n {{ naturalKeyPositionY | unitsystemunit }}\n
\n

\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n
\n" /***/ }), /***/ "./src/app/components/gauges/target-position-gauge.component.scss": /*!************************************************************************!*\ !*** ./src/app/components/gauges/target-position-gauge.component.scss ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".target-position-gauge.default-theme h3.alert i {\n color: #f11d40; }\n\n.target-position-gauge.testing-theme h3.alert i {\n color: #f11d40; }\n\n.target-position-gauge {\n width: 520px;\n margin: 0 auto;\n height: 130px;\n position: relative; }\n\n.target-position-gauge.compact {\n width: 330px;\n height: 80px; }\n\n.target-position-gauge .gauge-container {\n margin: 0 auto;\n position: absolute;\n width: 100%;\n height: 100%;\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: (1fr)[3];\n grid-template-columns: repeat(3, 1fr);\n -ms-grid-rows: auto auto;\n grid-template-rows: auto auto; }\n\n.target-position-gauge .gauge-container h3 {\n margin: 0 auto;\n font-size: 16px; }\n\n.target-position-gauge .gauge-container h3 i {\n height: 18px;\n font-size: 18px; }\n\n.target-position-gauge .gauge-container h3 i.rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n\n.target-position-gauge .grid-nested {\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: 1fr 2fr 1fr;\n grid-template-columns: 1fr 2fr 1fr; }\n\n.target-position-gauge .grid-start {\n -ms-grid-row-align: start;\n align-self: start;\n -ms-grid-column-align: start;\n justify-self: start; }\n\n.target-position-gauge .grid-end {\n -ms-grid-row-align: end;\n align-self: end;\n -ms-grid-column-align: end;\n justify-self: end; }\n\n.target-position-gauge .grid-canvas {\n width: 100%;\n height: 100%;\n -ms-grid-column: 1;\n -ms-grid-column-span: 2;\n grid-column: 1 / 3;\n -ms-grid-row: 2;\n -ms-grid-row-span: 1;\n grid-row: 2 / 3; }\n\n.target-position-gauge .grid-bottom {\n width: 100%;\n height: 100%;\n display: -ms-grid;\n display: grid;\n -ms-grid-rows: 1fr 1fr;\n grid-template-rows: 1fr 1fr;\n -ms-grid-columns: 1fr 2fr;\n grid-template-columns: 1fr 2fr; }\n\n.target-position-gauge .grid-bottom.grid-last {\n -ms-grid-column: 3;\n -ms-grid-column-span: 1;\n grid-column: 3 / 4;\n -ms-grid-row: 2;\n -ms-grid-row-span: 1;\n grid-row: 2 / 3; }\n\n.target-position-gauge .grid-bottom-nested {\n width: 100%;\n height: 100%;\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: 1fr;\n grid-template-columns: 1fr;\n -ms-grid-row-align: center;\n align-self: center;\n -ms-grid-column-align: center;\n justify-self: center; }\n\n.target-position-gauge .grid-bottom-nested.position-icon-size, .target-position-gauge .grid-bottom-nested.target-icon-size {\n display: -ms-grid;\n display: grid; }\n\n.target-position-gauge .grid-bottom-nested.position-icon-size i, .target-position-gauge .grid-bottom-nested.target-icon-size i {\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center; }\n\n.target-position-gauge .grid-bottom-nested.position-icon-size i {\n font-size: 26px; }\n\n.target-position-gauge .grid-bottom-nested.target-icon-size i {\n font-size: 26px; }\n\n.target-position-gauge .grid-bottom-nested .terminal-mapping {\n align-content: center; }\n\n.target-position-gauge .grid-bottom-nested .input-target {\n display: -ms-grid;\n display: grid;\n width: 100%;\n height: 100%;\n padding-left: 5px;\n place-items: center; }\n\n.target-position-gauge .grid-bottom-nested input {\n display: -ms-grid;\n display: grid;\n height: 28px;\n box-sizing: border-box;\n box-shadow: 0 0 0 0;\n border: 2px solid #e0e0e0;\n margin: 0 0 0 0;\n padding: 5px;\n font-size: 14px;\n letter-spacing: 1px; }\n" /***/ }), /***/ "./src/app/components/gauges/target-position-gauge.component.ts": /*!**********************************************************************!*\ !*** ./src/app/components/gauges/target-position-gauge.component.ts ***! \**********************************************************************/ /*! exports provided: TargetPositionGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TargetPositionGaugeComponent", function() { return TargetPositionGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_orientation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_terminal_mapping_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/terminal-mapping.service */ "./src/app/services/terminal-mapping.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _position_cross_gauge_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./position-cross-gauge.component */ "./src/app/components/gauges/position-cross-gauge.component.ts"); /* harmony import */ var _models_data_point__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TargetPositionGaugeComponent = /** @class */ (function (_super) { __extends(TargetPositionGaugeComponent, _super); function TargetPositionGaugeComponent(renderer, orientationService, configService, dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService, terminalMappingService) { var _this = _super.call(this, orientationService, configService, dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService, terminalMappingService) || this; _this.renderer = renderer; _this.orientationService = orientationService; _this.configService = configService; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this.terminalMappingService = terminalMappingService; _this.targetPosition = ''; return _this; } TargetPositionGaugeComponent.prototype.ngOnInit = function () { _super.prototype.ngOnInit.call(this); this.currentPosition$ = this.terminalMappingService.currentCoordinateSubject.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__["map"])(function (value) { return value.replace(/\b(\d)\b/g, '0$1'); })); }; TargetPositionGaugeComponent.prototype.handleKeyDown = function (event) { if (event.key === 'Home') { this.targetInput.nativeElement.focus(); if (this.targetPosition && this.targetPosition.length === 7) { event.preventDefault(); this.targetInput.nativeElement.setSelectionRange(7, 7); } } }; TargetPositionGaugeComponent.prototype.onKeyUp = function (event) { if (event.key === 'Backspace') { var input = event.target; var cursorPos = input.selectionStart; if (cursorPos === 5 || cursorPos === 4) { this.onFocus(); input.setSelectionRange(2, 2); return; } if (cursorPos === 2 && this.targetPosition.length === 2) { return; } if (cursorPos === 1 || cursorPos === 0) { return; } } var value = this.targetPosition.replace(/\D/g, ''); if (value.length > 1) { value = value.slice(0, 2) + ' / ' + value.slice(2, 4); } this.targetPosition = value; }; TargetPositionGaugeComponent.prototype.onKeyDown = function (event) { if (event.key === 'Enter') { this.updateTargetPosition(); } if (event.key === 'Backspace') { var input = event.target; var cursorPos = input.selectionStart; if (cursorPos === 6 && this.targetPosition.length === 6) { this.targetPosition = this.targetPosition.slice(0, 3); return; } if (cursorPos === 5 && this.targetPosition.length === 5) { this.targetPosition = this.targetPosition.slice(0, 3); this.onFocus(); input.setSelectionRange(2, 2); return; } if (cursorPos === 5 && this.targetPosition.length === 6) { this.onFocus(); input.setSelectionRange(2, 2); return; } if (cursorPos === 5 && this.targetPosition.length === 7) { event.preventDefault(); return; } } }; TargetPositionGaugeComponent.prototype.onFocus = function () { this.resetInputBorder('2px solid #007bff'); }; TargetPositionGaugeComponent.prototype.onBlur = function () { this.resetInputBorder('2px solid #e0e0e0'); }; TargetPositionGaugeComponent.prototype.validateRange = function (target, key) { var range = this.dataPointRangeService.getRange(key); if (range && this.isWithinBounds(target, range.min, range.max)) { return true; } this.resetInputBorder('2px solid red'); return false; }; ; TargetPositionGaugeComponent.prototype.isWithinBounds = function (value, min, max) { return value >= min && value <= max; }; TargetPositionGaugeComponent.prototype.resetInputBorder = function (value) { this.renderer.setStyle(this.targetInput.nativeElement, 'border', value); }; TargetPositionGaugeComponent.prototype.updateTargetPosition = function () { var _this = this; this.targetInput.nativeElement.blur(); this.onBlur(); this.targetPositionInvalid = this.targetPosition.length !== 7; if (this.targetPositionInvalid) { this.renderer.setStyle(this.targetInput.nativeElement, 'border', '2px solid red'); } else { var targetX_1 = parseInt(this.targetPosition.slice(0, 2)); var targetY_1 = parseInt(this.targetPosition.slice(5, 7)); if (this.isValidRange && !this.validateRange(targetX_1, this.naturalKeyReadTargetX) || !this.validateRange(targetY_1, this.naturalKeyReadTargetY)) { return; } var dpX = new _models_data_point__WEBPACK_IMPORTED_MODULE_11__["DataPoint"](this.naturalKeyWriteTargetX, targetX_1); var dpY = new _models_data_point__WEBPACK_IMPORTED_MODULE_11__["DataPoint"](this.naturalKeyWriteTargetY, targetY_1); var timeUp_1 = false; setTimeout(function () { return timeUp_1 = true; }, 3000); Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["concat"])(this.dataPointService.writeDataPoint(dpX), this.dataPointService.writeDataPoint(dpY), this.dataPointService.requestDataPoints([this.naturalKeyReadTargetX, this.naturalKeyReadTargetY]), this.dataPointService.dataPoints.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__["takeWhile"])(function (sourceCollection) { var dpReadX = sourceCollection.Get(_this.naturalKeyReadTargetX); var dpReadY = sourceCollection.Get(_this.naturalKeyReadTargetY); if (timeUp_1) { throw new Error("timeout"); } return !(dpReadX && dpReadY && dpReadX.data == targetX_1 && dpReadY.data == targetY_1); }))).subscribe({ complete: function () { _this.resetInputBorder('2px solid #e0e0e0'); console.log("Successfully set position: " + targetX_1 + " / " + targetY_1); }, error: function (err) { _this.resetInputBorder('2px solid red'); console.log("Failed to set position, are the natural keys " + _this.naturalKeyWriteTargetX + " " + _this.naturalKeyWriteTargetY + " mapped to plc variables?", err); } }); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('targetInput'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], TargetPositionGaugeComponent.prototype, "targetInput", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TargetPositionGaugeComponent.prototype, "naturalKeyReadSourceX", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TargetPositionGaugeComponent.prototype, "naturalKeyReadSourceY", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TargetPositionGaugeComponent.prototype, "naturalKeyReadTargetX", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TargetPositionGaugeComponent.prototype, "naturalKeyReadTargetY", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TargetPositionGaugeComponent.prototype, "naturalKeyWriteTargetX", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TargetPositionGaugeComponent.prototype, "naturalKeyWriteTargetY", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TargetPositionGaugeComponent.prototype, "isValidRange", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('window:keydown', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [KeyboardEvent]), __metadata("design:returntype", void 0) ], TargetPositionGaugeComponent.prototype, "handleKeyDown", null); TargetPositionGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: "target-position-gauge", template: __webpack_require__(/*! ./target-position-gauge.component.html */ "./src/app/components/gauges/target-position-gauge.component.html"), styles: [__webpack_require__(/*! ./target-position-gauge.component.scss */ "./src/app/components/gauges/target-position-gauge.component.scss")] }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], _services_orientation_service__WEBPACK_IMPORTED_MODULE_1__["OrientationService"], _services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_3__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_5__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_6__["TranslationService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_7__["CmsTranslationService"], _services_terminal_mapping_service__WEBPACK_IMPORTED_MODULE_8__["TerminalMappingService"]]) ], TargetPositionGaugeComponent); return TargetPositionGaugeComponent; }(_position_cross_gauge_component__WEBPACK_IMPORTED_MODULE_10__["PositionCrossGauge"])); /***/ }), /***/ "./src/app/components/gauges/vertical-position-gauge.component.html": /*!**************************************************************************!*\ !*** ./src/app/components/gauges/vertical-position-gauge.component.html ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n\n
\n \n
\n\n

\n {{value | unitsystemconvert:naturalKey:lang }}\n \n {{ naturalKey | unitsystemunit }}\n \n

\n\n \n\n
\n {{ title }}\n
\n\n
\n\n" /***/ }), /***/ "./src/app/components/gauges/vertical-position-gauge.component.scss": /*!**************************************************************************!*\ !*** ./src/app/components/gauges/vertical-position-gauge.component.scss ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".vertical-position-gauge {\n width: 290px;\n margin: 0px auto;\n height: 360px;\n position: relative; }\n .vertical-position-gauge .child-gauge {\n position: absolute;\n left: 48px;\n top: 8px; }\n .vertical-position-gauge h3 {\n position: absolute;\n margin: 0px;\n left: 50px;\n bottom: 20px;\n font-size: 48px; }\n .vertical-position-gauge h3 span {\n font-size: 30px; }\n .vertical-position-gauge h6 {\n position: absolute;\n margin: 0px;\n bottom: 4px;\n left: 50px;\n font-size: 16px;\n font-weight: 400; }\n .vertical-position-gauge canvas {\n position: absolute;\n top: 0;\n left: 0;\n right: 0; }\n .vertical-position-gauge.compact {\n width: 130px;\n height: 80px; }\n .vertical-position-gauge.compact .child-gauge {\n left: 24px; }\n .vertical-position-gauge.compact h3 {\n left: 34px;\n top: 34px;\n font-size: 18px; }\n .vertical-position-gauge.compact h3 span {\n font-size: 14px; }\n .vertical-position-gauge.compact h6 {\n left: 34px;\n font-size: 12px;\n font-weight: 300;\n bottom: 10px; }\n" /***/ }), /***/ "./src/app/components/gauges/vertical-position-gauge.component.ts": /*!************************************************************************!*\ !*** ./src/app/components/gauges/vertical-position-gauge.component.ts ***! \************************************************************************/ /*! exports provided: VerticalPositionGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerticalPositionGaugeComponent", function() { return VerticalPositionGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var VerticalPositionGaugeComponent = /** @class */ (function (_super) { __extends(VerticalPositionGaugeComponent, _super); function VerticalPositionGaugeComponent(dataPointService, dataPointRangeService, colorService, translationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this.cmsTranslationService = cmsTranslationService; _this.value = 0; return _this; } Object.defineProperty(VerticalPositionGaugeComponent.prototype, "range", { get: function () { return this.dataPointRangeService.getRange(this.naturalKey); }, enumerable: true, configurable: true }); VerticalPositionGaugeComponent.prototype.ngOnInit = function () { _super.prototype.ngOnInit.call(this); this.setNaturalKeys([this.naturalKey]); }; Object.defineProperty(VerticalPositionGaugeComponent.prototype, "drawingCanvas", { get: function () { return this.canvas; }, enumerable: true, configurable: true }); VerticalPositionGaugeComponent.prototype.updateGaugeValue = function (naturalKey, data) { this.value = data; }; VerticalPositionGaugeComponent.prototype.draw = function () { var alert = this.alert; var canvasWidth = this._nativeCanvas.clientWidth; var canvasHeight = this._nativeCanvas.clientHeight; var vMargin = this.isCompact ? 6 : 12; var hMargin = this.isCompact ? 12 : 20; var barHeight = canvasHeight - 2 * vMargin; this._context.clearRect(0, 0, canvasWidth, canvasHeight); // grid lines this._context.lineWidth = this.isCompact ? 2 : 3; this._context.strokeStyle = this._colorBackground; this._context.lineCap = 'butt'; this._context.beginPath(); var gridLines = this.isCompact ? 8 : 14; var gridDistance = barHeight / (gridLines + 1); var gridLineOffset = this.isCompact ? 12 : 20; for (var i = 1; i <= gridLines; i++) { var y = vMargin + gridDistance * i; this._context.moveTo(hMargin - gridLineOffset, y); this._context.lineTo(hMargin + gridLineOffset, y); } this._context.stroke(); // remove center-area of grid lines this._context.clearRect(hMargin - (this.isCompact ? 6 : 10), vMargin, gridLineOffset, canvasHeight - vMargin); // vertical line this._context.lineCap = 'round'; this._context.strokeStyle = alert ? this._colorAlertBackground : this._colorBackground; this._context.lineWidth = this.isCompact ? 6 : 14; this._context.beginPath(); this._context.moveTo(hMargin, vMargin); this._context.lineTo(hMargin, canvasHeight - vMargin); this._context.stroke(); var range = this.range; if (range != null) { var indicatorYPos = canvasHeight - vMargin - Math.min(barHeight * this.value / (range.max - range.min), barHeight); if (this.fill) { this._context.strokeStyle = alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); this._context.moveTo(hMargin, indicatorYPos); this._context.lineTo(hMargin, canvasHeight - vMargin); this._context.stroke(); } // position indicator this._context.fillStyle = alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); this._context.arc(hMargin, indicatorYPos, this.isCompact ? 6 : 12, 0, 2 * Math.PI); this._context.fill(); } }; Object.defineProperty(VerticalPositionGaugeComponent.prototype, "alert", { get: function () { var range = this.range; if (range != null) { var value = this.value; if (range.alarmMax != null && value > range.alarmMax) { return true; } if (range.alarmMin != null && value < range.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], VerticalPositionGaugeComponent.prototype, "naturalKey", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], VerticalPositionGaugeComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], VerticalPositionGaugeComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], VerticalPositionGaugeComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('gaugeCanvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], VerticalPositionGaugeComponent.prototype, "canvas", void 0); VerticalPositionGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'vertical-position-gauge', template: __webpack_require__(/*! ./vertical-position-gauge.component.html */ "./src/app/components/gauges/vertical-position-gauge.component.html"), styles: [__webpack_require__(/*! ./vertical-position-gauge.component.scss */ "./src/app/components/gauges/vertical-position-gauge.component.scss")] }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_5__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"]]) ], VerticalPositionGaugeComponent); return VerticalPositionGaugeComponent; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_6__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/gauges/wind-direction-gauge.component.html": /*!***********************************************************************!*\ !*** ./src/app/components/gauges/wind-direction-gauge.component.html ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n\n" /***/ }), /***/ "./src/app/components/gauges/wind-direction-gauge.component.scss": /*!***********************************************************************!*\ !*** ./src/app/components/gauges/wind-direction-gauge.component.scss ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".wind-direction-gauge {\n width: 130px;\n height: 130px;\n position: relative;\n margin: 0px auto;\n margin-bottom: 0px; }\n .wind-direction-gauge canvas {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0; }\n .wind-direction-gauge.compact {\n width: 74px;\n height: 74px; }\n" /***/ }), /***/ "./src/app/components/gauges/wind-direction-gauge.component.ts": /*!*********************************************************************!*\ !*** ./src/app/components/gauges/wind-direction-gauge.component.ts ***! \*********************************************************************/ /*! exports provided: WindDirectionGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WindDirectionGaugeComponent", function() { return WindDirectionGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../types/config */ "./src/types/config.ts"); /* harmony import */ var _utils_math_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../utils/math.utils */ "./src/app/utils/math.utils.ts"); /* harmony import */ var _base_gauge_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./base-gauge.component */ "./src/app/components/gauges/base-gauge.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var WindDirectionGaugeComponent = /** @class */ (function (_super) { __extends(WindDirectionGaugeComponent, _super); function WindDirectionGaugeComponent(dataPointService, dataPointRangeService, colorService, translationService, _orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, colorService, translationService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.dataPointRangeService = dataPointRangeService; _this.colorService = colorService; _this.translationService = translationService; _this._orientationService = _orientationService; _this.cmsTranslationService = cmsTranslationService; _this._fontSize = 16; _this._fontSizeCompact = 10; _this._fontOutlinePx = 8; _this._fontOutlinePxCompact = 2; _this._arrowLength = 30; _this._arrowLengthCompact = 16; _this._arrowWidth = 8; _this._arrowWidthCompact = 4; _this._titles = {}; _this.angle = 0; _this._windSpeed = 0; return _this; } WindDirectionGaugeComponent_1 = WindDirectionGaugeComponent; Object.defineProperty(WindDirectionGaugeComponent.prototype, "windSpeedRange", { get: function () { return this.dataPointRangeService.getRange(this.secondaryNaturalKey); }, enumerable: true, configurable: true }); WindDirectionGaugeComponent.prototype.ngOnInit = function () { var _this = this; _super.prototype.ngOnInit.call(this); this.invalidate(); this._orientationChangedSubscription = this._orientationService.orientationChangedSubject() .subscribe(function () { return _this.invalidate(); }); this.setNaturalKeys([this.naturalKey, this.secondaryNaturalKey]); }; WindDirectionGaugeComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; WindDirectionGaugeComponent.prototype.setOrientationLabels = function () { var titles = this._orientationService.getOrientationLabels(WindDirectionGaugeComponent_1.ascentSideText, WindDirectionGaugeComponent_1.freeSideText, WindDirectionGaugeComponent_1.electricalSideText, WindDirectionGaugeComponent_1.emptySideText, WindDirectionGaugeComponent_1.hingedPostText, WindDirectionGaugeComponent_1.fixedPostText, WindDirectionGaugeComponent_1.cabinSideText); if (titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Top] != null) { this._titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Top] = this.translationService.translate(titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Top]); } if (titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Bottom] != null) { this._titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Bottom] = this.translationService.translate(titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Bottom]); } if (titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Left] != null) { this._titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Left] = this.translationService.translate(titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Left]); } if (titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Right] != null) { this._titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Right] = this.translationService.translate(titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Right]); } }; Object.defineProperty(WindDirectionGaugeComponent.prototype, "drawingCanvas", { get: function () { return this.canvas; }, enumerable: true, configurable: true }); WindDirectionGaugeComponent.prototype.updateGaugeValue = function (updatedKey, data) { switch (updatedKey) { case this.naturalKey: { this.angle = data; break; } case this.secondaryNaturalKey: { this._windSpeed = data; break; } default: console.warn('unknown datapoint update received: ', updatedKey); break; } }; WindDirectionGaugeComponent.prototype.draw = function () { this.setOrientationLabels(); var alert = this.alert; var canvasWidth = this._nativeCanvas.clientWidth; var canvasHeight = this._nativeCanvas.clientHeight; var centerOffsetHorizontal = canvasWidth / 2; var centerOffsetVertical = canvasHeight / 2; var radius = centerOffsetVertical * 0.85; var radiusDot = this.isCompact ? 4 : 8; var radiusDotOutline = this.isCompact ? 6 : 10; var textMargin = canvasHeight / 2 - radius; // background this._context.clearRect(0, 0, canvasWidth, canvasHeight); this._context.strokeStyle = alert ? this._colorAlertBackground : this._colorBackground; this._context.lineWidth = this.isCompact ? 4 : 8; this._context.beginPath(); this._context.arc(centerOffsetHorizontal, centerOffsetVertical, radius, 0, 2 * Math.PI); this._context.stroke(); // direction arrow this.drawArrow(); this._context.beginPath(); this._context.fillStyle = '#ffffff'; this._context.arc(centerOffsetHorizontal, centerOffsetVertical, radiusDotOutline, 0, 2 * Math.PI); this._context.fill(); this._context.closePath(); this._context.beginPath(); this._context.fillStyle = alert ? this._colorAlert : this._colorHighlight; this._context.arc(centerOffsetHorizontal, centerOffsetVertical, radiusDot, 0, 2 * Math.PI); this._context.fill(); this._context.closePath(); // captions this.drawCaptions(this._titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Top], centerOffsetHorizontal, textMargin); this.drawCaptions(this._titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Bottom], centerOffsetHorizontal, canvasHeight - textMargin - 2); this.drawCaptions(this._titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Left], textMargin - 2, centerOffsetVertical, -90); this.drawCaptions(this._titles[_types_config__WEBPACK_IMPORTED_MODULE_7__["ScreenPosition"].Right], canvasWidth - textMargin + 2, centerOffsetVertical, 90); }; WindDirectionGaugeComponent.prototype.drawCaptions = function (text, left, top, rotate) { var fontOutlinePx = this.isCompact ? this._fontOutlinePxCompact : this._fontOutlinePx; var fontSize = this.isCompact ? this._fontSizeCompact : this._fontSize; var fontSizeOffset = fontSize / 2; var textWidth = this._context.measureText(text).width; var textLeft = -textWidth / 2; this._context.save(); this._context.translate(left, top); if (rotate !== undefined) { this._context.rotate(_utils_math_utils__WEBPACK_IMPORTED_MODULE_8__["MathUtils"].degreeToRadian(rotate)); } this._context.clearRect(textLeft - fontOutlinePx, fontOutlinePx + fontSizeOffset, textWidth + 2 * fontOutlinePx, -(fontSize + fontOutlinePx)); this._context.textAlign = 'center'; this._context.font = fontSize.toString() + "px Roboto"; this._context.fillStyle = this._colorBackground; this._context.fillText(text, 0, fontSizeOffset); this._context.restore(); }; WindDirectionGaugeComponent.prototype.drawArrow = function () { var alert = this.alert; var arrowLength = this.isCompact ? this._arrowLengthCompact : this._arrowLength; var arrowWidth = this.isCompact ? this._arrowWidthCompact : this._arrowWidth; var arrowWidthHalf = arrowWidth / 2; this._context.save(); this._context.translate(this._nativeCanvas.clientWidth / 2, this._nativeCanvas.clientHeight / 2); this._context.rotate(this.angle); this._context.fillStyle = alert ? this._colorAlert : this._colorHighlight; this._context.beginPath(); this._context.moveTo(0, -arrowLength); this._context.lineTo(arrowWidth, -(arrowLength - arrowWidth)); this._context.lineTo(arrowWidthHalf, -(arrowLength - arrowWidth)); this._context.lineTo(arrowWidthHalf, arrowLength); this._context.lineTo(0, (arrowLength - arrowWidthHalf)); this._context.lineTo(-arrowWidthHalf, arrowLength); this._context.lineTo(-arrowWidthHalf, -(arrowLength - arrowWidth)); this._context.lineTo(-arrowWidth, -(arrowLength - arrowWidth)); this._context.lineTo(0, -arrowLength); this._context.fill(); this._context.closePath(); this._context.restore(); }; Object.defineProperty(WindDirectionGaugeComponent.prototype, "alert", { get: function () { var windSpeedRange = this.windSpeedRange; if (windSpeedRange != null) { var windSpeed = this._windSpeed; if (windSpeedRange.alarmMax != null && windSpeed > windSpeedRange.alarmMax) { return true; } if (windSpeedRange.alarmMin != null && windSpeed < windSpeedRange.alarmMin) { return true; } } return false; }, enumerable: true, configurable: true }); WindDirectionGaugeComponent.ascentSideText = 'AS'; WindDirectionGaugeComponent.freeSideText = 'FS'; WindDirectionGaugeComponent.hingedPostText = 'HP'; WindDirectionGaugeComponent.electricalSideText = 'ELS'; WindDirectionGaugeComponent.fixedPostText = 'FP'; WindDirectionGaugeComponent.emptySideText = 'EMS'; WindDirectionGaugeComponent.cabinSideText = 'CBN'; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], WindDirectionGaugeComponent.prototype, "naturalKey", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], WindDirectionGaugeComponent.prototype, "secondaryNaturalKey", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], WindDirectionGaugeComponent.prototype, "isCompact", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('gaugeCanvas'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], WindDirectionGaugeComponent.prototype, "canvas", void 0); WindDirectionGaugeComponent = WindDirectionGaugeComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'wind-direction-gauge', template: __webpack_require__(/*! ./wind-direction-gauge.component.html */ "./src/app/components/gauges/wind-direction-gauge.component.html"), styles: [__webpack_require__(/*! ./wind-direction-gauge.component.scss */ "./src/app/components/gauges/wind-direction-gauge.component.scss")] }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_6__["DataPointService"], _services_datapoint_range_service__WEBPACK_IMPORTED_MODULE_5__["DataPointRangeService"], _services_color_service__WEBPACK_IMPORTED_MODULE_4__["ColorService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"]]) ], WindDirectionGaugeComponent); return WindDirectionGaugeComponent; var WindDirectionGaugeComponent_1; }(_base_gauge_component__WEBPACK_IMPORTED_MODULE_9__["BaseGaugeComponent"])); /***/ }), /***/ "./src/app/components/home/home.component.html": /*!*****************************************************!*\ !*** ./src/app/components/home/home.component.html ***! \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n
\n \n
\n
\n" /***/ }), /***/ "./src/app/components/home/home.component.scss": /*!*****************************************************!*\ !*** ./src/app/components/home/home.component.scss ***! \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n width: 100%;\n display: block; }\n\n.dashboard-container {\n position: relative;\n display: block; }\n\n.grid-container {\n width: calc(100% - 3rem);\n height: 80%;\n margin: 1.5rem auto; }\n\n.grid-container tbody {\n width: 100%; }\n\n.grid-container .grid-format {\n height: 0px; }\n\n.grid-container .grid-format, .grid-container .grid-format > td {\n width: calc(100% / 12);\n min-width: calc(100% / 12);\n padding: 0px; }\n\n.grid-container .grid-item {\n padding: 0.3rem; }\n\n.grid-container .grid-item .grid-item-content {\n display: block;\n height: 100%; }\n" /***/ }), /***/ "./src/app/components/home/home.component.ts": /*!***************************************************!*\ !*** ./src/app/components/home/home.component.ts ***! \***************************************************/ /*! exports provided: HomeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomeComponent", function() { return HomeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_dashboard_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/dashboard.service */ "./src/app/services/dashboard.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var HomeComponent = /** @class */ (function () { function HomeComponent(_viewService, _dashboardService) { this._viewService = _viewService; this._dashboardService = _dashboardService; this._resizeTimeout = 600; this.dashboardItems = []; } HomeComponent.prototype.ngOnInit = function () { var _this = this; this._viewService.setToolbarTitle('dashboard'); this._quickViewPinnedSubscription = this._viewService.isQuickviewPinned .subscribe(function (isPinned) { // trigger resize to force dashboard to recalc the width setTimeout(function () { window.dispatchEvent(new Event('resize')); }, _this._resizeTimeout); }, function (err) { console.error(err); }); var dashboardItems = this._dashboardService.dashboardItems.sort(function (a, b) { var rowDelta = a.gridConfig.row - b.gridConfig.row; if (rowDelta == 0) { return a.gridConfig.col - b.gridConfig.col; } return rowDelta; }); var gridItems = []; for (var _i = 0, dashboardItems_1 = dashboardItems; _i < dashboardItems_1.length; _i++) { var item = dashboardItems_1[_i]; var gridItem = item.gridConfig; if (gridItem != null) { while (gridItems.length < gridItem.row) { gridItems.push([]); } var gridRow = gridItems[gridItem.row - 1]; var lastItemInRow = gridRow.length > 0 ? gridRow[gridRow.length - 1] : undefined; var startCol = lastItemInRow != null ? lastItemInRow.gridConfig.col + lastItemInRow.gridConfig.sizex : 1; for (var col = startCol; col < gridItem.col; ++col) { gridRow.push({ gridConfig: { col: col, row: gridItem.row, sizex: 1, sizey: 1 } }); } gridRow.push(item); } } this.dashboardItems = gridItems; }; HomeComponent.prototype.ngOnDestroy = function () { if (this._quickViewPinnedSubscription) { this._quickViewPinnedSubscription.unsubscribe(); } }; HomeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'home', template: __webpack_require__(/*! ./home.component.html */ "./src/app/components/home/home.component.html"), styles: [__webpack_require__(/*! ./home.component.scss */ "./src/app/components/home/home.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_3__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_2__["ViewService"], _services_dashboard_service__WEBPACK_IMPORTED_MODULE_1__["DashboardService"]]) ], HomeComponent); return HomeComponent; }()); /***/ }), /***/ "./src/app/components/indicators/connection-indicator.component.html": /*!***************************************************************************!*\ !*** ./src/app/components/indicators/connection-indicator.component.html ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/indicators/connection-indicator.component.scss": /*!***************************************************************************!*\ !*** ./src/app/components/indicators/connection-indicator.component.scss ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/indicators/connection-indicator.component.ts": /*!*************************************************************************!*\ !*** ./src/app/components/indicators/connection-indicator.component.ts ***! \*************************************************************************/ /*! exports provided: ConnectionIndicatorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectionIndicatorComponent", function() { return ConnectionIndicatorComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_pipes_safe_content_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pipes/safe-content.pipe */ "./src/app/pipes/safe-content.pipe.ts"); /* harmony import */ var app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); /* harmony import */ var app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var app_services_auxiliary_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/auxiliary.service */ "./src/app/services/auxiliary.service.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var app_services_notification_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/services/notification.service */ "./src/app/services/notification.service.ts"); /* harmony import */ var app_services_signalr_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/services/signalr.service */ "./src/app/services/signalr.service.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./toolbar-indicator/toolbar-indicator.component */ "./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var ConnectionIndicatorComponent = /** @class */ (function (_super) { __extends(ConnectionIndicatorComponent, _super); function ConnectionIndicatorComponent(_signalRService, _auxiliaryService, _notificationService, _toastService, _safeContentPipe, _authService, _cmsTranslationService, _smartTranslatePipe, dataPointService, configService) { var _this = _super.call(this, dataPointService) || this; _this._signalRService = _signalRService; _this._auxiliaryService = _auxiliaryService; _this._notificationService = _notificationService; _this._toastService = _toastService; _this._safeContentPipe = _safeContentPipe; _this._authService = _authService; _this._cmsTranslationService = _cmsTranslationService; _this._smartTranslatePipe = _smartTranslatePipe; _this._toastTimeout = app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_11__["TimeSpan"].Longer; _this._isAppAliveExplicitSubject = new rxjs__WEBPACK_IMPORTED_MODULE_12__["BehaviorSubject"](false); _this._isAppAliveExplicitChangedSubject = _this._isAppAliveExplicitSubject.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["distinctUntilChanged"])()); _this.isPulsingSubject = _this._isAppAliveExplicitSubject.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["map"])(function (isAppAliveExplicit) { return !isAppAliveExplicit || _this._hasVersionMismatch; })); _this.connectionStateSubject = _this._isAppAliveExplicitSubject.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["map"])(function (isAppAliveExplicit) { var hasVersionMismatch = _this._hasVersionMismatch; if (!isAppAliveExplicit) { return _toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_17__["ToolbarIndicatorState"].Alert; } else if (hasVersionMismatch) { return _toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_17__["ToolbarIndicatorState"].Warning; } return _toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_17__["ToolbarIndicatorState"].Ok; })); _this._isPlcAlive = { plcStatus: types_config__WEBPACK_IMPORTED_MODULE_14__["PlcHeartbeatStatus"].CONNECTION_OK, plcCycleStatus: types_config__WEBPACK_IMPORTED_MODULE_14__["PlcHeartbeatCycleStatus"].COPY_CYCLE_OK }; _this._isHeartbeatCommunicationAlive = undefined; _this._isDatapointCommunicationAlive = undefined; _this._isNotificationCommunicationAlive = undefined; _this._isAuxiliaryCommunicationAlive = undefined; _this._hasVersionMismatch = false; _this._lastConnectionToastIdPromise = undefined; _this._lastExportMismatchToastIdPromise = undefined; var plcVersion = Number(configService.craneConfig.plcVersion); _this._activeVersion = plcVersion; _this._expectedVersion = plcVersion; return _this; } ConnectionIndicatorComponent.prototype.ngOnInit = function () { var _this = this; this.setNaturalKeys([app_app_constants__WEBPACK_IMPORTED_MODULE_1__["EXPORT_VERSION_NATURAL_KEY"]]); this._isPlcAliveSubscription = this._signalRService.isPlcAlive.subscribe(function (isAlive) { _this._isPlcAlive = isAlive; _this.updateAppAliveExplicitState(); }, this.logError); this._isDataPointCommunicationAliveSubscription = this.dataPointService.isConnectionAlive.subscribe(function (isAlive) { _this._isDatapointCommunicationAlive = isAlive; _this.updateAppAliveExplicitState(); }, this.logError); this._isNotificationCommunicationAliveSubscription = this._notificationService.isConnectionAlive.subscribe(function (isAlive) { _this._isNotificationCommunicationAlive = isAlive; _this.updateAppAliveExplicitState(); }, this.logError); this._areExternalServicesAliveSubscription = this._signalRService.areExternalServicesAlive.subscribe(function (areAlive) { _this._areExternalServicesAlive = areAlive; _this.updateAppAliveExplicitState(); }, this.logError); this._isHeartbeatCommunicationAliveSubscription = this._signalRService.isConnectionAlive.subscribe(function (isAlive) { _this._isHeartbeatCommunicationAlive = isAlive; _this.updateAppAliveExplicitState(); }, this.logError); this._isAuxiliaryCommunicationAliveSubscription = this._auxiliaryService.isConnectionAlive.subscribe(function (isAlive) { _this._isAuxiliaryCommunicationAlive = isAlive; _this.updateAppAliveExplicitState(); }, this.logError); this._connectionToastSubscription = this._isAppAliveExplicitChangedSubject.subscribe(function (_) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.popupConnectionToastAsync()]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }, this.logError); }; ConnectionIndicatorComponent.prototype.ngOnDestroy = function () { if (this._isAuxiliaryCommunicationAliveSubscription != null) { this._isAuxiliaryCommunicationAliveSubscription.unsubscribe(); } if (this._isHeartbeatCommunicationAliveSubscription != null) { this._isHeartbeatCommunicationAliveSubscription.unsubscribe(); } if (this._areExternalServicesAliveSubscription != null) { this._areExternalServicesAliveSubscription.unsubscribe(); } if (this._isNotificationCommunicationAliveSubscription != null) { this._isNotificationCommunicationAliveSubscription.unsubscribe(); } if (this._isDataPointCommunicationAliveSubscription != null) { this._isDataPointCommunicationAliveSubscription.unsubscribe(); } if (this._isPlcAliveSubscription != null) { this._isPlcAliveSubscription.unsubscribe(); } if (this._connectionToastSubscription != null) { this._connectionToastSubscription.unsubscribe(); } _super.prototype.ngOnDestroy.call(this); }; ConnectionIndicatorComponent.prototype.onValueChanged = function (naturalKey, dataPointData) { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: if (!(naturalKey === app_app_constants__WEBPACK_IMPORTED_MODULE_1__["EXPORT_VERSION_NATURAL_KEY"])) return [3 /*break*/, 2]; return [4 /*yield*/, this.updateVersionStateAsync(dataPointData)]; case 1: _a.sent(); this.updateAppAliveExplicitState(); _a.label = 2; case 2: return [2 /*return*/]; } }); }); }; ConnectionIndicatorComponent.prototype.updateAppAliveExplicitState = function () { var areExternalServicesAlive = this._areExternalServicesAlive; var isHeartbeatCommunicationAlive = this._isHeartbeatCommunicationAlive; var isDataPointCommunicationAlive = this._isDatapointCommunicationAlive; var isNotificationCommunicationAlive = this._isNotificationCommunicationAlive; var isAuxiliaryCommunicationAlive = this._isAuxiliaryCommunicationAlive; var isPlcAlive = this._isPlcAlive; var isAppAliveExplicit = this.isAppAliveExplicit(areExternalServicesAlive, isHeartbeatCommunicationAlive, isDataPointCommunicationAlive, isNotificationCommunicationAlive, isAuxiliaryCommunicationAlive, isPlcAlive); if (isAppAliveExplicit != undefined) { this._isAppAliveExplicitSubject.next(isAppAliveExplicit); } }; ConnectionIndicatorComponent.prototype.updateVersionStateAsync = function (version) { return __awaiter(this, void 0, void 0, function () { var versionChanged; return __generator(this, function (_a) { switch (_a.label) { case 0: this._hasVersionMismatch = this._expectedVersion !== version; versionChanged = this._activeVersion !== version; this._activeVersion = version; if (!versionChanged) return [3 /*break*/, 2]; return [4 /*yield*/, this.popupVersionToastAsync()]; case 1: _a.sent(); _a.label = 2; case 2: return [2 /*return*/]; } }); }); }; ConnectionIndicatorComponent.prototype.popupConnectionToastAsync = function () { return __awaiter(this, void 0, void 0, function () { var doesNotSeeConnectionModal, areExternalServicesAlive, isHeartbeatCommunicationAlive, isDatapointCommunicationAlive, isNotificationCommunicationAlive, isAuxiliaryCommunicationAlive, isPlcAlive, isAppAliveExplicit, onlineMsg, connectionToast, _a, _b, _c; return __generator(this, function (_d) { switch (_d.label) { case 0: doesNotSeeConnectionModal = !this._authService.getPermissionWithClaim(app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"].permissionViewConnectionModalKey); if (!doesNotSeeConnectionModal) return [3 /*break*/, 2]; areExternalServicesAlive = this._areExternalServicesAlive; isHeartbeatCommunicationAlive = this._isHeartbeatCommunicationAlive; isDatapointCommunicationAlive = this._isDatapointCommunicationAlive; isNotificationCommunicationAlive = this._isNotificationCommunicationAlive; isAuxiliaryCommunicationAlive = this._isAuxiliaryCommunicationAlive; isPlcAlive = this._isPlcAlive; isAppAliveExplicit = this.isAppAliveExplicit(areExternalServicesAlive, isHeartbeatCommunicationAlive, isDatapointCommunicationAlive, isNotificationCommunicationAlive, isAuxiliaryCommunicationAlive, isPlcAlive); onlineMsg = this.formatHeartbeatTable(areExternalServicesAlive, isHeartbeatCommunicationAlive, isDatapointCommunicationAlive, isNotificationCommunicationAlive, isAuxiliaryCommunicationAlive, isPlcAlive); if (!(isAppAliveExplicit != undefined)) return [3 /*break*/, 2]; _b = (_a = this._toastService).showCustomToastAsync; _c = [this._smartTranslatePipe.transform('connection_state', this._cmsTranslationService.currentLanguage), onlineMsg, this._toastTimeout, isAppAliveExplicit ? _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__["NotificationToastType"].Success : _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__["NotificationToastType"].Error, true]; return [4 /*yield*/, this._lastConnectionToastIdPromise]; case 1: connectionToast = _b.apply(_a, _c.concat([_d.sent()])); this._lastConnectionToastIdPromise = connectionToast.then(function (x) { return x.toastId; }); _d.label = 2; case 2: return [2 /*return*/]; } }); }); }; ConnectionIndicatorComponent.prototype.isAppAliveExplicit = function (areExternalServicesAlive, isHeartbeatCommunicationAlive, isDatapointCommunicationAlive, isNotificationCommunicationAlive, isAuxiliaryCommunicationAlive, isPlcAlive) { var externalServicesStatus = true; if (areExternalServicesAlive != null) { for (var _i = 0, _a = areExternalServicesAlive.services; _i < _a.length; _i++) { var service = _a[_i]; if (!service.isAlive) { externalServicesStatus = false; break; } } } return isPlcAlive != null && Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["isAliveHeartbeatStatus"])(isPlcAlive.plcStatus) && Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["isAliveHeartbeatStatus"])(isPlcAlive.plcCycleStatus) && isHeartbeatCommunicationAlive && isDatapointCommunicationAlive && isNotificationCommunicationAlive && isAuxiliaryCommunicationAlive && externalServicesStatus; }; ConnectionIndicatorComponent.prototype.popupVersionToastAsync = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: if (!(this._expectedVersion !== this._activeVersion)) return [3 /*break*/, 2]; return [4 /*yield*/, this.popupVersionMismatchToast()]; case 1: _a.sent(); return [3 /*break*/, 4]; case 2: return [4 /*yield*/, this.popupVersionRecoveryToastAsync()]; case 3: _a.sent(); _a.label = 4; case 4: return [2 /*return*/]; } }); }); }; ConnectionIndicatorComponent.prototype.popupVersionMismatchToast = function () { return __awaiter(this, void 0, void 0, function () { var versionConflictMsg, exportMismatchToast, _a, _b, _c; return __generator(this, function (_d) { switch (_d.label) { case 0: versionConflictMsg = this.formatExportVersionMismatchText(this._activeVersion, this._expectedVersion); _b = (_a = this._toastService).showCustomToastAsync; _c = [this._smartTranslatePipe.transform('export_mismatch', this._cmsTranslationService.currentLanguage), versionConflictMsg, this._toastTimeout, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__["NotificationToastType"].Warning, true]; return [4 /*yield*/, this._lastExportMismatchToastIdPromise]; case 1: exportMismatchToast = _b.apply(_a, _c.concat([_d.sent()])); this._lastExportMismatchToastIdPromise = exportMismatchToast.then(function (x) { return x.toastId; }); return [2 /*return*/]; } }); }); }; ConnectionIndicatorComponent.prototype.popupVersionRecoveryToastAsync = function () { return __awaiter(this, void 0, void 0, function () { var versionMatchMsg; return __generator(this, function (_a) { switch (_a.label) { case 0: versionMatchMsg = this._smartTranslatePipe.transform('plc_and_cms_restored_to_same_export_version', this._cmsTranslationService.currentLanguage, { exportVersion: this._expectedVersion }); return [4 /*yield*/, this._toastService.showHtmlToastAsync(versionMatchMsg, this._toastTimeout, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__["NotificationToastType"].Success)]; case 1: _a.sent(); return [2 /*return*/]; } }); }); }; ConnectionIndicatorComponent.prototype.formatHeartbeatTable = function (areExternalsServicesAlive, isHeartbeatCommunicationAlive, isDatapointCommunicationAlive, isNotificationCommunicationAlive, isAuxiliaryInformationCommunicationAlive, isPlcAlive) { var plcStatus = isPlcAlive != null ? isPlcAlive.plcStatus : undefined; var plcCycleStatus = isPlcAlive != null ? isPlcAlive.plcCycleStatus : undefined; var tableBuilder = []; tableBuilder.push(''); tableBuilder.push(this.formatHeartbeatLine(this._smartTranslatePipe.transform('plc_connection', this._cmsTranslationService.currentLanguage), Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["formatHeartbeatIcon"])(plcStatus))); tableBuilder.push(this.formatHeartbeatLine(this._smartTranslatePipe.transform('plc_copy_cycle', this._cmsTranslationService.currentLanguage), Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["formatHeartbeatIcon"])(plcCycleStatus))); tableBuilder.push(this.formatHeartbeatLine(this._smartTranslatePipe.transform('datapoint_communication', this._cmsTranslationService.currentLanguage), Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["formatHeartbeatIcon"])(isDatapointCommunicationAlive))); tableBuilder.push(this.formatHeartbeatLine(this._smartTranslatePipe.transform('notification_communication', this._cmsTranslationService.currentLanguage), Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["formatHeartbeatIcon"])(isNotificationCommunicationAlive))); tableBuilder.push(this.formatHeartbeatLine(this._smartTranslatePipe.transform('heartbeat_communication', this._cmsTranslationService.currentLanguage), Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["formatHeartbeatIcon"])(isHeartbeatCommunicationAlive))); tableBuilder.push(this.formatHeartbeatLine(this._smartTranslatePipe.transform('auxillary_communication', this._cmsTranslationService.currentLanguage), Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["formatHeartbeatIcon"])(isAuxiliaryInformationCommunicationAlive))); tableBuilder.push("
"); if (areExternalsServicesAlive != null && areExternalsServicesAlive.services.length > 0) { tableBuilder.push('
'); tableBuilder.push(''); var sortedServices = areExternalsServicesAlive.services.sort(function (a, b) { return a.name > b.name ? 1 : -1; }); for (var _i = 0, sortedServices_1 = sortedServices; _i < sortedServices_1.length; _i++) { var service = sortedServices_1[_i]; tableBuilder.push(this.formatHeartbeatLine(this._smartTranslatePipe.transform('service_handling', this._cmsTranslationService.currentLanguage, { serviceName: this.truncateServiceName(service.name, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__["MaxTextLength"]) }), Object(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["formatHeartbeatIcon"])(service.isAlive))); } tableBuilder.push("
"); } return tableBuilder.join(''); }; ConnectionIndicatorComponent.prototype.formatHeartbeatLine = function (left, right) { var safeRight = this._safeContentPipe.transform(right, _angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].HTML); return "" + ("" + left + "") + ("" + safeRight + "") + ""; }; ConnectionIndicatorComponent.prototype.truncateServiceName = function (serviceName, length) { if (serviceName.length > length) { return serviceName.substring(0, length) + '...'; } else { return serviceName; } }; ConnectionIndicatorComponent.prototype.formatExportVersionMismatchText = function (activeVersion, expectedVersion) { var safeCurrentVersion = this._safeContentPipe.transform(activeVersion, _angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].HTML); var safeExpectedVersion = this._safeContentPipe.transform(expectedVersion, _angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].HTML); return this._smartTranslatePipe.transform('export_version_mismatch', this._cmsTranslationService.currentLanguage, { currentVersion: safeCurrentVersion, expectedVersion: safeExpectedVersion }); }; ConnectionIndicatorComponent.prototype.logError = function (error) { console.error("Error: " + error); }; ConnectionIndicatorComponent.prototype.handleClick = function (e) { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: if (!!!e) return [3 /*break*/, 4]; if (!this._hasVersionMismatch) return [3 /*break*/, 2]; return [4 /*yield*/, this.popupVersionToastAsync()]; case 1: _a.sent(); _a.label = 2; case 2: return [4 /*yield*/, this.popupConnectionToastAsync()]; case 3: _a.sent(); _a.label = 4; case 4: return [2 /*return*/]; } }); }); }; ConnectionIndicatorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'connection-indicator', template: __webpack_require__(/*! ./connection-indicator.component.html */ "./src/app/components/indicators/connection-indicator.component.html"), styles: [__webpack_require__(/*! ./connection-indicator.component.scss */ "./src/app/components/indicators/connection-indicator.component.scss")], providers: [app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_3__["SmartTranslatePipe"]], }), __metadata("design:paramtypes", [app_services_signalr_service__WEBPACK_IMPORTED_MODULE_10__["SignalRService"], app_services_auxiliary_service__WEBPACK_IMPORTED_MODULE_5__["AuxiliaryService"], app_services_notification_service__WEBPACK_IMPORTED_MODULE_9__["NotificationService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_11__["ToastService"], app_pipes_safe_content_pipe__WEBPACK_IMPORTED_MODULE_2__["SafeContentPipe"], app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_6__["CmsTranslationService"], app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_3__["SmartTranslatePipe"], app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_8__["DataPointService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_7__["ConfigService"]]) ], ConnectionIndicatorComponent); return ConnectionIndicatorComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_15__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/indicators/notification-indicator.component.html": /*!*****************************************************************************!*\ !*** ./src/app/components/indicators/notification-indicator.component.html ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n \n
\n\n" /***/ }), /***/ "./src/app/components/indicators/notification-indicator.component.scss": /*!*****************************************************************************!*\ !*** ./src/app/components/indicators/notification-indicator.component.scss ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".notification-indicator.default-theme .popup .notification-count-badge {\n color: #ffffff; }\n\n.notification-indicator.default-theme .quit-area {\n background-color: #d4d7da; }\n\n.notification-indicator.default-theme .popup.info {\n border-top: solid 4px #00cf78; }\n\n.notification-indicator.default-theme .popup.info .icon-frame i {\n color: #00cf78; }\n\n.notification-indicator.default-theme .quit-area:hover {\n background-color: #cfffeb; }\n\n.notification-indicator.default-theme .popup {\n border-top: solid 4px #69727e; }\n\n.notification-indicator.default-theme .popup .icon-frame i {\n color: #69727e; }\n\n.notification-indicator.default-theme .popup.warning {\n border-top: solid 4px #ffa80f; }\n\n.notification-indicator.default-theme .popup.warning .icon-frame i {\n color: #ffa80f; }\n\n.notification-indicator.default-theme .popup.error {\n border-top: solid 4px #f11d40;\n transition: all 0.3s ease-out; }\n\n.notification-indicator.default-theme .popup.error .icon-frame i {\n color: #f11d40;\n transition: color 0.3s ease-in; }\n\n.notification-indicator.testing-theme .popup .notification-count-badge {\n color: #98057e; }\n\n.notification-indicator.testing-theme .quit-area {\n background-color: #b0c3d2; }\n\n.notification-indicator.testing-theme .popup.info {\n border-top: solid 4px #00cf78; }\n\n.notification-indicator.testing-theme .popup.info .icon-frame i {\n color: #00cf78; }\n\n.notification-indicator.testing-theme .quit-area:hover {\n background-color: #cfffeb; }\n\n.notification-indicator.testing-theme .popup {\n border-top: solid 4px #797979; }\n\n.notification-indicator.testing-theme .popup .icon-frame i {\n color: #797979; }\n\n.notification-indicator.testing-theme .popup.warning {\n border-top: solid 4px #ffa80f; }\n\n.notification-indicator.testing-theme .popup.warning .icon-frame i {\n color: #ffa80f; }\n\n.notification-indicator.testing-theme .popup.error {\n border-top: solid 4px #f11d40;\n transition: all 0.3s ease-out; }\n\n.notification-indicator.testing-theme .popup.error .icon-frame i {\n color: #f11d40;\n transition: color 0.3s ease-in; }\n\n.notification-indicator {\n position: fixed;\n bottom: 0px;\n width: 56%;\n left: calc((100% - 56%) / 2);\n height: 50px;\n z-index: 1005;\n transition: bottom 0.2s ease-in, width 0.3s ease-in, left 0.3s ease-in; }\n\n.notification-indicator.hide-notifications {\n bottom: -50px;\n transition: bottom 0.2s ease-out; }\n\n.notification-indicator .popup {\n background-color: rgba(255, 255, 255, 0.9);\n height: 100%;\n margin: 0 auto; }\n\n.notification-indicator .popup:hover {\n background-color: white;\n cursor: pointer;\n box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3); }\n\n.notification-indicator .popup:active {\n background-color: rgba(255, 255, 255, 0.85);\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }\n\n.notification-indicator .popup .indicator-link {\n display: table;\n float: right;\n width: 100%;\n white-space: nowrap; }\n\n.notification-indicator .popup .icon-frame {\n display: table-cell;\n vertical-align: middle;\n text-align: center; }\n\n.notification-indicator .popup .icon-frame i {\n vertical-align: middle;\n text-align: center;\n display: inline-block;\n width: 56px;\n font-size: 32px;\n margin: 0;\n height: 32px;\n transition: color 0.2s ease-in; }\n\n.notification-indicator .popup .message {\n display: table-cell;\n width: 100%;\n position: relative; }\n\n.notification-indicator .popup .message .message-text-wrapper {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: block;\n width: 100%;\n height: 100%; }\n\n.notification-indicator .popup .message .message-text-wrapper .message-text-centerer {\n display: table;\n width: 100%;\n height: 100%; }\n\n.notification-indicator .popup .message .message-text-wrapper .message-text-centerer span {\n display: table-cell;\n vertical-align: middle;\n padding-right: 12px;\n width: 100%;\n height: 100%;\n overflow: hidden;\n word-wrap: break-word;\n white-space: normal; }\n\n.notification-indicator .popup .notification-count-badge {\n display: inline-block;\n padding: 4px 8px;\n border-radius: 4px;\n margin: 12px 16px;\n min-width: 56px;\n line-height: 16px;\n text-align: center;\n opacity: 1;\n transition: opacity 0.4s ease-in; }\n\n.notification-indicator .popup .notification-count-badge.remove {\n opacity: 0;\n transition: opacity 0.4s ease-out; }\n\n.notification-indicator .popup.warning {\n transition: all 0.3s ease-out; }\n\n.notification-indicator .popup.warning .icon-frame i {\n transition: color 0.3s ease-in; }\n\n.notification-indicator .popup.error {\n transition: all 0.3s ease-out; }\n\n.notification-indicator .popup.error .icon-frame i {\n transition: color 0.3s ease-in; }\n\n.notification-indicator .quit-area {\n display: table-cell; }\n\n.notification-indicator .quit-area span {\n margin-left: 16px;\n line-height: 46px; }\n\n.notification-indicator .quit-area:hover {\n cursor: pointer;\n box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3);\n transition: all 0.1s ease-in; }\n\n.notification-indicator .quit-area:active {\n box-shadow: none;\n transition: all 0.1s ease-in; }\n" /***/ }), /***/ "./src/app/components/indicators/notification-indicator.component.ts": /*!***************************************************************************!*\ !*** ./src/app/components/indicators/notification-indicator.component.ts ***! \***************************************************************************/ /*! exports provided: NotificationIndicatorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationIndicatorComponent", function() { return NotificationIndicatorComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _types_keyed_collection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../types/keyed-collection */ "./src/types/keyed-collection.ts"); /* harmony import */ var _services_notification_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/notification.service */ "./src/app/services/notification.service.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../services/auth.service */ "./src/app/services/auth.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotificationIndicatorComponent = /** @class */ (function () { function NotificationIndicatorComponent(_notificationService, _router, _authService) { this._notificationService = _notificationService; this._router = _router; this._authService = _authService; this.notifications = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_4__["KeyedCollection"](); console.log('Notification Indicator > Instantiated'); } NotificationIndicatorComponent.prototype.makeFullRequest = function () { console.log('NotificationIndicator> Full request of notifications.'); this._notificationService.requestNotifications(); }; NotificationIndicatorComponent.prototype.ngOnInit = function () { var _this = this; this._notificationServiceSubscription = this._notificationService.notifications.subscribe(function (notifications) { return _this.update(notifications); }, function (err) { return console.log(err); }); this._hubConnectedSubscription = this._notificationService.isConnectionAlive .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(function (isConnected) { return isConnected; })) .subscribe(function () { _this.makeFullRequest(); }); this._routeChangeSubscription = this._router.events .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(function (val) { return val instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__["NavigationEnd"]; })) .subscribe(function (_) { return _this.updateVisibility(); }); this.updateVisibility(); }; NotificationIndicatorComponent.prototype.ngOnDestroy = function () { if (this._notificationServiceSubscription) { this._notificationServiceSubscription.unsubscribe(); } if (this._hubConnectedSubscription) { this._hubConnectedSubscription.unsubscribe(); } if (this._routeChangeSubscription) { this._routeChangeSubscription.unsubscribe(); } }; NotificationIndicatorComponent.prototype.updateVisibility = function () { var route = this._router.url; this.hiddenForRoute = route.indexOf('/notifications/latest') >= 0; }; NotificationIndicatorComponent.prototype.update = function (newNotifications) { if (newNotifications != null) { this.notifications = newNotifications; } else { this.notifications = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_4__["KeyedCollection"](); } this._latestAlarm = this.resolveLatest(this.notifications); }; Object.defineProperty(NotificationIndicatorComponent.prototype, "hasErrors", { get: function () { return this._latestAlarm != null && this._latestAlarm.notificationType === types_config__WEBPACK_IMPORTED_MODULE_3__["NotificationType"].Error; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationIndicatorComponent.prototype, "hasWarnings", { get: function () { return this._latestAlarm != null && this._latestAlarm.notificationType === types_config__WEBPACK_IMPORTED_MODULE_3__["NotificationType"].Warning; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationIndicatorComponent.prototype, "hasInfos", { get: function () { return this._latestAlarm != null && this._latestAlarm.notificationType === types_config__WEBPACK_IMPORTED_MODULE_3__["NotificationType"].Info; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationIndicatorComponent.prototype, "hasNotifications", { get: function () { return this.hasInfos || this.hasWarnings || this.hasErrors; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationIndicatorComponent.prototype, "latestAlarmText", { get: function () { var latestAlarm = this._latestAlarm; if (latestAlarm != null) { return latestAlarm.notificationId + ": " + latestAlarm.translatedText; } return _app_constants__WEBPACK_IMPORTED_MODULE_6__["NOT_AVAILABLE"]; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationIndicatorComponent.prototype, "notificationCount", { get: function () { return this.notifications.count; }, enumerable: true, configurable: true }); NotificationIndicatorComponent.prototype.resolveLatest = function (notificationList) { if (!notificationList.isEmpty) { return notificationList.Values().reduce(function (a, b) { return (a.timestamp > b.timestamp ? a : b); }); } return undefined; }; NotificationIndicatorComponent.prototype.showNotifications = function () { if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_7__["AuthService"].permissionViewNotificationsKey)) { this._router.navigateByUrl('/notifications/latest'); } }; NotificationIndicatorComponent.prototype.quitNotifications = function () { this._notificationService.quit(); }; NotificationIndicatorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'notification-indicator', template: __webpack_require__(/*! ./notification-indicator.component.html */ "./src/app/components/indicators/notification-indicator.component.html"), styles: [__webpack_require__(/*! ./notification-indicator.component.scss */ "./src/app/components/indicators/notification-indicator.component.scss")] }), __metadata("design:paramtypes", [_services_notification_service__WEBPACK_IMPORTED_MODULE_5__["NotificationService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _services_auth_service__WEBPACK_IMPORTED_MODULE_7__["AuthService"]]) ], NotificationIndicatorComponent); return NotificationIndicatorComponent; }()); /***/ }), /***/ "./src/app/components/indicators/power-indicator.component.html": /*!**********************************************************************!*\ !*** ./src/app/components/indicators/power-indicator.component.html ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/indicators/power-indicator.component.scss": /*!**********************************************************************!*\ !*** ./src/app/components/indicators/power-indicator.component.scss ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/indicators/power-indicator.component.ts": /*!********************************************************************!*\ !*** ./src/app/components/indicators/power-indicator.component.ts ***! \********************************************************************/ /*! exports provided: PowerIndicatorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PowerIndicatorComponent", function() { return PowerIndicatorComponent; }); /* harmony import */ var _services_toast_sevice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./toolbar-indicator/toolbar-indicator.component */ "./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var PowerIndicatorComponent = /** @class */ (function (_super) { __extends(PowerIndicatorComponent, _super); function PowerIndicatorComponent(dataPointService, _toastService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this._toastService = _toastService; _this._naturalKeyPowerOn = 'Gen_Operation_Crane_IsOn'; _this._toastTimeout = _services_toast_sevice__WEBPACK_IMPORTED_MODULE_0__["TimeSpan"].Long; _this.state = _toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_5__["ToolbarIndicatorState"].Default; _this.isPulsing = false; _this.isPowerOn = false; return _this; } PowerIndicatorComponent.prototype.ngOnInit = function () { this.setNaturalKeys([this._naturalKeyPowerOn]); }; PowerIndicatorComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; PowerIndicatorComponent.prototype.onValueChanged = function (naturalKey, data) { if (naturalKey === this._naturalKeyPowerOn) { this.isPowerOn = data; if (this.isPowerOn) { this.state = _toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_5__["ToolbarIndicatorState"].Active; } else { this.state = _toolbar_indicator_toolbar_indicator_component__WEBPACK_IMPORTED_MODULE_5__["ToolbarIndicatorState"].Default; } } }; PowerIndicatorComponent.prototype.handleClick = function (e) { if (e != null) { if (this.isPowerOn) { this._toastService.showToastAsync('power_is_on', this._toastTimeout, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_4__["NotificationToastType"].Success); } else { this._toastService.showToastAsync('power_is_off', this._toastTimeout, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_4__["NotificationToastType"].Warning); } } }; PowerIndicatorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'power-indicator', template: __webpack_require__(/*! ./power-indicator.component.html */ "./src/app/components/indicators/power-indicator.component.html"), styles: [__webpack_require__(/*! ./power-indicator.component.scss */ "./src/app/components/indicators/power-indicator.component.scss")] }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__["DataPointService"], _services_toast_sevice__WEBPACK_IMPORTED_MODULE_0__["ToastService"]]) ], PowerIndicatorComponent); return PowerIndicatorComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_3__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/indicators/progress-indicator/progress-indicator.component.html": /*!********************************************************************************************!*\ !*** ./src/app/components/indicators/progress-indicator/progress-indicator.component.html ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\n
\n
" /***/ }), /***/ "./src/app/components/indicators/progress-indicator/progress-indicator.component.scss": /*!********************************************************************************************!*\ !*** ./src/app/components/indicators/progress-indicator/progress-indicator.component.scss ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".progress.default-theme {\n background-color: #1561a1; }\n .progress.default-theme .indeterminate {\n background-color: #7bb9ee; }\n .progress.testing-theme {\n background-color: #cfac1f; }\n .progress.testing-theme .indeterminate {\n background-color: #f3e5ae; }\n .progress {\n z-index: 2000;\n margin: 0;\n top: 0;\n position: absolute; }\n" /***/ }), /***/ "./src/app/components/indicators/progress-indicator/progress-indicator.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/indicators/progress-indicator/progress-indicator.component.ts ***! \******************************************************************************************/ /*! exports provided: ProgressIndicatorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressIndicatorComponent", function() { return ProgressIndicatorComponent; }); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ProgressIndicatorComponent = /** @class */ (function () { function ProgressIndicatorComponent(_viewService) { this._viewService = _viewService; } ProgressIndicatorComponent.prototype.ngOnInit = function () { var _this = this; this._progressIndicatorSubscription = this._viewService.progressIndicatorVisibility.subscribe(function (visibility) { _this.isVisible = visibility; }); }; ProgressIndicatorComponent.prototype.ngOnDestroy = function () { this._progressIndicatorSubscription.unsubscribe(); }; ProgressIndicatorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'progress-indicator', template: __webpack_require__(/*! ./progress-indicator.component.html */ "./src/app/components/indicators/progress-indicator/progress-indicator.component.html"), styles: [__webpack_require__(/*! ./progress-indicator.component.scss */ "./src/app/components/indicators/progress-indicator/progress-indicator.component.scss")] }), __metadata("design:paramtypes", [app_services_view_service__WEBPACK_IMPORTED_MODULE_0__["ViewService"]]) ], ProgressIndicatorComponent); return ProgressIndicatorComponent; }()); /***/ }), /***/ "./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.html": /*!******************************************************************************************!*\ !*** ./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.html ***! \******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
  • \n \n \n \n
  • \n" /***/ }), /***/ "./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.scss": /*!******************************************************************************************!*\ !*** ./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.scss ***! \******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "li.toolbar-indicator.default-theme {\n color: #ffffff; }\n li.toolbar-indicator.default-theme.indicator-state-ok {\n background-color: #00cf78; }\n li.toolbar-indicator.default-theme.indicator-state-active {\n background-color: #00cf78; }\n li.toolbar-indicator.default-theme.indicator-state-warning {\n background-color: #ffa80f; }\n li.toolbar-indicator.default-theme.indicator-state-alert {\n background-color: #f11d40; }\n li.toolbar-indicator.default-theme.indicator-state-alert-light {\n background-color: #f9a4b2; }\n li.toolbar-indicator.default-theme.indicator-state-failure {\n background-color: #8e1c1c; }\n li.toolbar-indicator.default-theme.indicator-state-unknown {\n background-color: #d4d7da; }\n li.toolbar-indicator.testing-theme {\n color: #98057e; }\n li.toolbar-indicator.testing-theme.indicator-state-ok {\n background-color: #00cf78; }\n li.toolbar-indicator.testing-theme.indicator-state-active {\n background-color: #00cf78; }\n li.toolbar-indicator.testing-theme.indicator-state-warning {\n background-color: #ffa80f; }\n li.toolbar-indicator.testing-theme.indicator-state-alert-light {\n background-color: #f9a4b2; }\n li.toolbar-indicator.testing-theme.indicator-state-alert {\n background-color: #f11d40; }\n li.toolbar-indicator.testing-theme.indicator-state-failure {\n background-color: #8e1c1c; }\n li.toolbar-indicator.testing-theme.indicator-state-unknown {\n background-color: #d4d7da; }\n li.pulse {\n z-index: 1005; }\n li.toolbar-indicator i {\n line-height: toolbar-indicator-height;\n height: toolbar-indicator-height; }\n" /***/ }), /***/ "./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.ts": /*!****************************************************************************************!*\ !*** ./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.ts ***! \****************************************************************************************/ /*! exports provided: ToolbarIndicatorState, ToolbarIndicatorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolbarIndicatorState", function() { return ToolbarIndicatorState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolbarIndicatorComponent", function() { return ToolbarIndicatorComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ToolbarIndicatorState; (function (ToolbarIndicatorState) { ToolbarIndicatorState[ToolbarIndicatorState["Default"] = -1] = "Default"; ToolbarIndicatorState[ToolbarIndicatorState["Unknown"] = 0] = "Unknown"; ToolbarIndicatorState[ToolbarIndicatorState["Active"] = 1] = "Active"; ToolbarIndicatorState[ToolbarIndicatorState["Ok"] = 2] = "Ok"; ToolbarIndicatorState[ToolbarIndicatorState["Warning"] = 3] = "Warning"; ToolbarIndicatorState[ToolbarIndicatorState["AlertLight"] = 4] = "AlertLight"; ToolbarIndicatorState[ToolbarIndicatorState["Alert"] = 5] = "Alert"; ToolbarIndicatorState[ToolbarIndicatorState["Failure"] = 6] = "Failure"; })(ToolbarIndicatorState || (ToolbarIndicatorState = {})); var ToolbarIndicatorComponent = /** @class */ (function () { function ToolbarIndicatorComponent() { this._fallbackIcon = 'warning'; this.indicatorStates = ToolbarIndicatorState; this.isPulsing = false; this.state = ToolbarIndicatorState.Default; this.onUserClick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } Object.defineProperty(ToolbarIndicatorComponent.prototype, "icon", { get: function () { switch (this.state) { case ToolbarIndicatorState.Unknown: return this.orDefault(this.iconUnknown); case ToolbarIndicatorState.Active: return this.orDefault(this.iconActive); case ToolbarIndicatorState.Ok: return this.orDefault(this.iconOk); case ToolbarIndicatorState.Warning: return this.orDefault(this.iconWarning); case ToolbarIndicatorState.AlertLight: return this.orDefault(this.iconAlertLight); case ToolbarIndicatorState.Alert: return this.orDefault(this.iconAlert); case ToolbarIndicatorState.Failure: return this.orDefault(this.iconFailure); default: return this.orDefault(this.iconDefault); } }, enumerable: true, configurable: true }); ToolbarIndicatorComponent.prototype.handleUserClick = function () { this.onUserClick.emit(true); }; ToolbarIndicatorComponent.prototype.orDefault = function (icon) { return icon != null ? icon : this.iconDefault != null ? this.iconDefault : this._fallbackIcon; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ToolbarIndicatorComponent.prototype, "iconDefault", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ToolbarIndicatorComponent.prototype, "iconUnknown", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ToolbarIndicatorComponent.prototype, "iconActive", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ToolbarIndicatorComponent.prototype, "iconOk", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ToolbarIndicatorComponent.prototype, "iconWarning", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ToolbarIndicatorComponent.prototype, "iconAlertLight", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ToolbarIndicatorComponent.prototype, "iconAlert", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ToolbarIndicatorComponent.prototype, "iconFailure", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ToolbarIndicatorComponent.prototype, "isPulsing", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], ToolbarIndicatorComponent.prototype, "state", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], ToolbarIndicatorComponent.prototype, "onUserClick", void 0); ToolbarIndicatorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'toolbar-indicator', template: __webpack_require__(/*! ./toolbar-indicator.component.html */ "./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.html"), styles: [__webpack_require__(/*! ./toolbar-indicator.component.scss */ "./src/app/components/indicators/toolbar-indicator/toolbar-indicator.component.scss")] }) ], ToolbarIndicatorComponent); return ToolbarIndicatorComponent; }()); /***/ }), /***/ "./src/app/components/keyboard/numpad/numpad.component.html": /*!******************************************************************!*\ !*** ./src/app/components/keyboard/numpad/numpad.component.html ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n\n
    \n
    \n {{dialogTitle}}\n
    \n
    \n {{formatNumber(modalParams?.minValue)}}{{modalParams?.unit}} - {{formatNumber(modalParams?.maxValue)}}{{modalParams?.unit}}\n
    \n
    \n
    \n
    \n {{inputValueString}}\n
    \n
    \n {{modalParams?.unit}}\n
    \n
    \n\n
    \n input_out_of_range\n
    \n\n
    \n
    \n
    7
    \n
    8
    \n
    9
    \n
    \n
    \n
    \n
    4
    \n
    5
    \n
    6
    \n
    C
    \n
    \n
    \n
    1
    \n
    2
    \n
    3
    \n
    \n
    \n
    0
    \n
    {{decimalSeparator}}
    \n
    +/-
    \n
    \n
    \n\n
    \n \n \n
    \n \n
    " /***/ }), /***/ "./src/app/components/keyboard/numpad/numpad.component.scss": /*!******************************************************************!*\ !*** ./src/app/components/keyboard/numpad/numpad.component.scss ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#numpad-modal.default-theme .footer-area {\n border-top: solid 4px #1561a1; }\n\n#numpad-modal.testing-theme .footer-area {\n border-top: solid 4px #cfac1f; }\n\n.modal {\n overflow: hidden;\n min-width: 300px;\n max-width: 300px;\n padding: 8px;\n min-height: 462px;\n max-height: 462px;\n top: 25% !important;\n z-index: 1010 !important; }\n\n.modal .title-area {\n height: 14px;\n line-height: 12px;\n overflow: hidden;\n display: flex; }\n\n.modal .title-area .title-value {\n text-overflow: ellipsis;\n overflow: hidden;\n min-width: 150px;\n width: 150px;\n white-space: nowrap; }\n\n.modal .title-area .input-range {\n text-align: right;\n margin-right: 2px;\n width: 100%; }\n\n.modal .value-area {\n width: 100%;\n height: 64px;\n line-height: 64px;\n text-align: center;\n font-size: 32px;\n border-radius: 2px;\n margin: 8px 2px;\n position: relative; }\n\n.modal .value-area .input-value {\n max-width: 66%;\n margin-left: 17%;\n text-overflow: ellipsis;\n overflow: hidden; }\n\n.modal .value-area .input-unit {\n position: absolute;\n font-size: 28px;\n right: 24px;\n top: 0px; }\n\n.modal .warning-area {\n position: absolute;\n top: 80px;\n font-size: 10px;\n width: 100%;\n height: 9px;\n line-height: 9px;\n left: 0;\n right: 0;\n text-align: center; }\n\n.modal .button-area .button-row {\n width: 100%; }\n\n.modal .button-area .button-row .numpad-button {\n margin: 2px;\n width: 64px;\n height: 64px;\n line-height: 64px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.modal .button-area .button-row .numpad-button:active {\n box-shadow: none; }\n\n.modal .button-area .button-row .numpad-button.disabled {\n cursor: default;\n box-shadow: none;\n z-index: inherit;\n opacity: 0.8; }\n\n.modal .footer-area {\n margin-top: 12px;\n height: 64px;\n padding: 16px 4px; }\n" /***/ }), /***/ "./src/app/components/keyboard/numpad/numpad.component.ts": /*!****************************************************************!*\ !*** ./src/app/components/keyboard/numpad/numpad.component.ts ***! \****************************************************************/ /*! exports provided: NumpadComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumpadComponent", function() { return NumpadComponent; }); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _services_keyboard_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../services/keyboard.service */ "./src/app/services/keyboard.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NumpadComponent = /** @class */ (function () { function NumpadComponent(_keyboardService, _viewService, _translationService) { var _this = this; this._keyboardService = _keyboardService; this._viewService = _viewService; this._translationService = _translationService; this.revertNumber = -1; this.modalActions = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"](); this.inputValueString = ''; this.materializeParams = { dismissible: true, ready: function () { return _this.onModalReady(_this); }, complete: function () { return _this.onModalComplete(_this); } }; } NumpadComponent.prototype.ngOnInit = function () { var _this = this; this._keyboardServiceSubscription = this._keyboardService.numpadRequest.subscribe(function (params) { _this.modalParams = params; _this.dialogTitle = params.title ? params.title : 'Enter a value'; _this.openModal(); }); this._languageChangedSubscription = this._translationService.languageChangedEvent .subscribe(function (lang) { return _this.updateDecimalSeparator(lang); }); this.updateDecimalSeparator(this._translationService.currentLanguage); }; NumpadComponent.prototype.ngOnDestroy = function () { this._keyboardServiceSubscription.unsubscribe(); this._languageChangedSubscription.unsubscribe(); }; NumpadComponent.prototype.updateDecimalSeparator = function (lang) { var formatter = new Intl.NumberFormat(lang); this.decimalSeparator = formatter.format(1.1).substring(1, 2); }; NumpadComponent.prototype.openModal = function () { this.modalActions.emit({ action: 'modal', params: ['open'] }); this._viewService.activateFullModalOverlay = true; }; NumpadComponent.prototype.closeModal = function () { this.modalActions.emit({ action: 'modal', params: ['close'] }); }; NumpadComponent.prototype.cancel = function () { this.closeModal(); }; NumpadComponent.prototype.onModalReady = function (context) { // display the datatable when the modal window is initialized // to ensure proper column widths context.modalVisible = true; }; NumpadComponent.prototype.onModalComplete = function (context) { context.modalVisible = false; this._viewService.activateFullModalOverlay = false; this.modalParams = null; this.inputValueString = ''; this.updateNumericValue(); }; NumpadComponent.prototype.append = function (character) { this.removeLeadingZeros(character); this.inputValueString += character; this.updateNumericValue(); }; NumpadComponent.prototype.acceptUserInput = function () { if (this.valueOutOfRange) { return; } if (this.inputValue !== null && !isNaN(this.inputValue) && this.modalParams && this.modalParams.successCallback) { this.modalParams.successCallback(this.inputValue); this.closeModal(); } }; NumpadComponent.prototype.delete = function () { this.inputValueString = ''; this.updateNumericValue(); }; NumpadComponent.prototype.undo = function () { if (this.inputValueString != '') { this.inputValueString = this.inputValueString.slice(0, -1); } this.updateNumericValue(); }; NumpadComponent.prototype.setPosOrNegValue = function () { if (this.positiveValueOnly) { return; } if (this.inputValue) { this.inputValue *= this.revertNumber; } this.updateStringValue(); }; NumpadComponent.prototype.updateNumericValue = function () { if (!this.inputValueString || this.inputValueString === '') { this.inputValue = null; } else { this.inputValue = Number.parseFloat(this.inputValueString.replace(',', '.')); } }; NumpadComponent.prototype.updateStringValue = function () { if (this.inputValue !== null) { this.inputValueString = this.inputValue.toString(); } }; Object.defineProperty(NumpadComponent.prototype, "allowDecimalSeparator", { get: function () { if (this.modalParams && !this.modalParams.displayDecimals) { return false; } return !!this.inputValueString && this.inputValueString.indexOf(this.decimalSeparator) < 0; }, enumerable: true, configurable: true }); Object.defineProperty(NumpadComponent.prototype, "missingUserInput", { get: function () { return this.inputValue === null || this.inputValueString === ''; }, enumerable: true, configurable: true }); Object.defineProperty(NumpadComponent.prototype, "valueOutOfRange", { get: function () { if (this.missingUserInput) { return false; } var params = this.modalParams; if (params && this.inputValue !== null) { // check lower bound if set in params if (params.minValue !== undefined && this.inputValue < params.minValue) { return true; } // check upper bound if set in params if (params.maxValue !== undefined && this.inputValue > params.maxValue) { return true; } } return false; }, enumerable: true, configurable: true }); Object.defineProperty(NumpadComponent.prototype, "positiveValueOnly", { get: function () { var params = this.modalParams; if (params) { if (params.minValue !== undefined && params.minValue >= 0) { return true; } } return false; }, enumerable: true, configurable: true }); NumpadComponent.prototype.onKey = function (event) { switch (event.keyCode) { case 48: /* 0 */ case 96: /* numpad 0 */ case 49: /* 1 */ case 97: /* numpad 1 */ case 50: /* 2 */ case 98: /* numpad 2 */ case 51: /* 3 */ case 99: /* numpad 3 */ case 52: /* 4 */ case 100: /* numpad 4 */ case 53: /* 5 */ case 101: /* numpad 5 */ case 54: /* 6 */ case 102: /* numpad 6 */ case 55: /* 7 */ case 103: /* numpad 7 */ case 56: /* 8 */ case 104: /* numpad 8 */ case 57: /* 9 */ case 105:/* numpad 9 */ this.append(event.key); break; case 46: /* delete */ case 67:/* 'C' */ this.delete(); break; case 8:/* backspace */ this.undo(); break; case 110: /* decimal point */ case 188: /* comma */ case 190:/* period */ if (this.allowDecimalSeparator) { this.append(this.decimalSeparator); } break; case 109: /* subtract */ case 107:/* add */ if (!this.positiveValueOnly) { this.setPosOrNegValue(); } break; case 13:/* enter */ this.acceptUserInput(); break; case 27:/* escape */ this.cancel(); break; } }; NumpadComponent.prototype.removeLeadingZeros = function (appendingCharacter) { // allow decimal separators always, without removing leading zero if (appendingCharacter === this.decimalSeparator) { return; } if (this.inputValueString === '0') { this.inputValueString = ''; } }; NumpadComponent.prototype.formatNumber = function (value) { if (value !== null && value !== undefined) { return value.toString().replace('.', this.decimalSeparator); } return ''; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"])('document:keydown', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [KeyboardEvent]), __metadata("design:returntype", void 0) ], NumpadComponent.prototype, "onKey", null); NumpadComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({ selector: 'numpad', template: __webpack_require__(/*! ./numpad.component.html */ "./src/app/components/keyboard/numpad/numpad.component.html"), styles: [__webpack_require__(/*! ./numpad.component.scss */ "./src/app/components/keyboard/numpad/numpad.component.scss")] }), __metadata("design:paramtypes", [_services_keyboard_service__WEBPACK_IMPORTED_MODULE_2__["KeyboardService"], _services_view_service__WEBPACK_IMPORTED_MODULE_1__["ViewService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_0__["CmsTranslationService"]]) ], NumpadComponent); return NumpadComponent; }()); /***/ }), /***/ "./src/app/components/localizeddatepicker/localizeddatepicker.component.html": /*!***********************************************************************************!*\ !*** ./src/app/components/localizeddatepicker/localizeddatepicker.component.html ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n \n
    \n
    \n \n
    \n
    " /***/ }), /***/ "./src/app/components/localizeddatepicker/localizeddatepicker.component.scss": /*!***********************************************************************************!*\ !*** ./src/app/components/localizeddatepicker/localizeddatepicker.component.scss ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/localizeddatepicker/localizeddatepicker.component.ts": /*!*********************************************************************************!*\ !*** ./src/app/components/localizeddatepicker/localizeddatepicker.component.ts ***! \*********************************************************************************/ /*! exports provided: LocalizeddatepickerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocalizeddatepickerComponent", function() { return LocalizeddatepickerComponent; }); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LocalizeddatepickerComponent = /** @class */ (function () { function LocalizeddatepickerComponent(_cmsTranslation) { this._cmsTranslation = _cmsTranslation; this.pick = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"](); // materialize action used to close the picker on demand this.actions = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"](); this.dateOptions = []; this._alreadyFired = false; // public bc it is required for tests this.isLanguageChanging = false; this.dateOptions = [this.getDateOptionsDefault()]; } LocalizeddatepickerComponent.prototype.ngOnInit = function () { var _this = this; this.dateOptions = [this.getDateOptions(this._cmsTranslation.currentLanguage)]; this._languageChangedSubscription = this._cmsTranslation.languageChangedEvent.subscribe(function (x) { _this.isLanguageChanging = true; setTimeout(function () { _this.pickeddate = _this.generateDateFromMilliseconds(_this._pickedmilliseconds); var options = _this.getDateOptions(x); _this.dateOptions = [options]; _this.isLanguageChanging = false; }); }); // initialize the date as "today" with Time = 00:00:00 this.pickeddate = this.initial; if (this.pickeddate != null) { this.pickeddate.setHours(0); this.pickeddate.setMinutes(0); this.pickeddate.setSeconds(0); this.pickeddate.setMilliseconds(0); this._pickedmilliseconds = this.pickeddate.getTime(); } }; LocalizeddatepickerComponent.prototype.ngOnDestroy = function () { if (this._languageChangedSubscription) { this._languageChangedSubscription.unsubscribe(); } }; // the options are dependent on the language, since the translations are there LocalizeddatepickerComponent.prototype.getDateOptions = function (language) { if (this._cmsTranslation.availableLanguages != null && this._cmsTranslation.availableLanguages.indexOf(language) != -1) { return this.getDateOptionsTranslated(language); } else { return this.getDateOptionsDefault(); } }; LocalizeddatepickerComponent.prototype.getDateOptionsTranslated = function (language) { var langSpecific = { monthsFull: this.translateDateOptionsOrdered([ _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['january'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['february'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['march'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['april'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['may'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['june'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['july'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['august'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['september'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['october'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['november'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["MonthDisplayText"]['december'] ], language), monthsShort: this.translateDateOptionsOrdered([ 'january_short', 'february_short', 'march_short', 'april_short', 'may_short', 'june_short', 'july_short', 'august_short', 'september_short', 'october_short', 'november_short', 'december_short' ], language), weekdaysFull: this.translateDateOptionsOrdered([ _app_constants__WEBPACK_IMPORTED_MODULE_0__["DayDisplayText"]['sunday'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["DayDisplayText"]['monday'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["DayDisplayText"]['tuesday'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["DayDisplayText"]['wednesday'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["DayDisplayText"]['thursday'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["DayDisplayText"]['friday'], _app_constants__WEBPACK_IMPORTED_MODULE_0__["DayDisplayText"]['saturday'] ], language), weekdaysShort: this.translateDateOptionsOrdered([ 'sunday_short', 'monday_short', 'tuesday_short', 'wednesday_short', 'thursday_short', 'friday_short', 'saturday_short' ], language), today: this.translateDateOptionsOrdered('today', language), clear: this.translateDateOptionsOrdered('clear', language), close: this.translateDateOptionsOrdered('close', language), firstDay: 1, format: 'dddd, dd. mmmm yyyy', formatSubmit: 'yyyy/mm/dd', }; return Object.assign(this.getDateOptionsDefault(), langSpecific); }; LocalizeddatepickerComponent.prototype.translateDateOptionsOrdered = function (value, language) { var result = this._cmsTranslation.translation.translate(value, undefined, language); return Array.isArray(value) ? Object.keys(result).map(function (key) { return result[key]; }) : result; }; // default values are english, so for english only the eventHandlers are required LocalizeddatepickerComponent.prototype.getDateOptionsDefault = function () { var _this = this; return { onSet: function (value) { _this.saveSelectedMilliseconds(value); _this.sendIfChanged(); }, onClose: function () { // $('.picker').blur(); // $('.picker__holder').blur(); // $('.datepicker').blur(); } }; }; // save the current value selected in UI into a private variable // NOTE: no value picked means that we are saving -1 milliseconds // this will later be used to generate null Date LocalizeddatepickerComponent.prototype.saveSelectedMilliseconds = function (value) { if ('clear' in value) { this._pickedmilliseconds = -1; this.actions.emit({ action: 'pickadate', params: ['close'] }); } if ('highlight' in value) { // do nothing } if ('select' in value) { this._pickedmilliseconds = value.select; } }; // trigger the host event if no data has yet been sent OR if it has changed LocalizeddatepickerComponent.prototype.sendIfChanged = function () { if (!this._alreadyFired || this.hasChanged) { this.fire(this.generateDateFromMilliseconds(this._pickedmilliseconds)); } }; LocalizeddatepickerComponent.prototype.generateDateFromMilliseconds = function (millis) { if (millis === -1) { return undefined; } return new Date(millis); }; LocalizeddatepickerComponent.prototype.getMillisecondsFromDate = function (date) { return date != null ? date.getTime() : -1; }; LocalizeddatepickerComponent.prototype.fire = function (dateToSend) { this._alreadyFired = true; this._lastdatesent = dateToSend; this.pick.emit(this._lastdatesent); }; Object.defineProperty(LocalizeddatepickerComponent.prototype, "hasChanged", { // CASE: the previously sent value is now obsolete get: function () { return this.getMillisecondsFromDate(this._lastdatesent) !== this._pickedmilliseconds; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(), __metadata("design:type", Object) ], LocalizeddatepickerComponent.prototype, "pick", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), __metadata("design:type", Date) ], LocalizeddatepickerComponent.prototype, "initial", void 0); LocalizeddatepickerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ selector: 'localizeddatepicker', template: __webpack_require__(/*! ./localizeddatepicker.component.html */ "./src/app/components/localizeddatepicker/localizeddatepicker.component.html"), changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectionStrategy"].OnPush, styles: [__webpack_require__(/*! ./localizeddatepicker.component.scss */ "./src/app/components/localizeddatepicker/localizeddatepicker.component.scss")] }), __metadata("design:paramtypes", [app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"]]) ], LocalizeddatepickerComponent); return LocalizeddatepickerComponent; }()); /***/ }), /***/ "./src/app/components/localizedtimepicker/localizedtimepicker.component.html": /*!***********************************************************************************!*\ !*** ./src/app/components/localizedtimepicker/localizedtimepicker.component.html ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n \n
    \n
    \n \n
    \n
    " /***/ }), /***/ "./src/app/components/localizedtimepicker/localizedtimepicker.component.scss": /*!***********************************************************************************!*\ !*** ./src/app/components/localizedtimepicker/localizedtimepicker.component.scss ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/localizedtimepicker/localizedtimepicker.component.ts": /*!*********************************************************************************!*\ !*** ./src/app/components/localizedtimepicker/localizedtimepicker.component.ts ***! \*********************************************************************************/ /*! exports provided: LocalizedtimepickerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocalizedtimepickerComponent", function() { return LocalizedtimepickerComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_time_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/time-utils.service */ "./src/app/services/time-utils.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LocalizedtimepickerComponent = /** @class */ (function () { function LocalizedtimepickerComponent(_cmsTranslation, _timeUtils) { var _this = this; this._cmsTranslation = _cmsTranslation; this._timeUtils = _timeUtils; // used when the language changes to notify the UI that it needs to re-render the picker this.isLanguageChanging = false; // (initial) and (pick) both use 24H Format this._isExternalFormat12H = false; this._isInitialized = false; this._isCurrentFormat12H = false; this.pickerActions = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.pick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this._subscription = _cmsTranslation.languageChangedEvent.subscribe(function (lang) { _this.isLanguageChanging = true; setTimeout(function () { var wasOldFormat12H = _this._isCurrentFormat12H; var isNewFormat12H = _this._timeUtils.guessIf12HTimeFormat(lang); _this.changeTimeFormat(String(_this.pickedtime), wasOldFormat12H, isNewFormat12H); _this.isLanguageChanging = false; }); }); this.timeOptions = this.getTimeOptions(this._timeUtils.guessIf12HTimeFormat(_cmsTranslation.currentLanguage)); } Object.defineProperty(LocalizedtimepickerComponent.prototype, "pickedtime", { get: function () { return this._pickedtime; }, set: function (value) { var _this = this; var is12HFormatValue = (value || '').endsWith('AM') || (value || '').endsWith('PM'); this._isCurrentFormat12H = this._timeUtils.guessIf12HTimeFormat(this._cmsTranslation.currentLanguage); var newPickedTime = this.convertTimeFormat((value || ''), is12HFormatValue, this._isCurrentFormat12H); if (this._pickedtime !== newPickedTime) { this._pickedtime = newPickedTime; if (!this._pickedtime && this.resetToInitialOnClearing) { // timeout to let angular recognize the immediate change setTimeout(function () { _this.pickedtime = _this.initial; }, 10); } else { this.fireEvent(); } } }, enumerable: true, configurable: true }); LocalizedtimepickerComponent.prototype.ngOnInit = function () { if (!this.pickedtime) { this.pickedtime = this.initial; } this._isInitialized = true; }; LocalizedtimepickerComponent.prototype.ngOnDestroy = function () { if (this._subscription) { this._subscription.unsubscribe(); } }; LocalizedtimepickerComponent.prototype.deleteTime = function () { // no using the setter, because // the deletion should always happen this._pickedtime = undefined; this.fireEvent(); }; LocalizedtimepickerComponent.prototype.resetTime = function () { this.pickedtime = this.initial; }; LocalizedtimepickerComponent.prototype.fireEvent = function () { if (this._isInitialized && !this.isLanguageChanging && !this.isDisabled) { if (this.pickedtime != null) { this.pick.emit(this.convertTimeFormat(this.pickedtime, this._isCurrentFormat12H, this._isExternalFormat12H)); } else { this.pick.emit(undefined); } } }; LocalizedtimepickerComponent.prototype.changeTimeFormat = function (time, oldFormat12h, newFormat12h) { this._isCurrentFormat12H = newFormat12h; this._pickedtime = this.convertTimeFormat(time, oldFormat12h, newFormat12h); this.timeOptions = this.getTimeOptions(newFormat12h); }; LocalizedtimepickerComponent.prototype.getTimeOptions = function (isTwelveHour) { return { twelvehour: isTwelveHour, donetext: this._cmsTranslation.translateToCurrentLanguage('ok'), cleartext: this._cmsTranslation.translateToCurrentLanguage('clear'), canceltext: this._cmsTranslation.translateToCurrentLanguage('cancel'), autoclose: true }; }; LocalizedtimepickerComponent.prototype.convertTimeFormat = function (time, wasOldFormat12H, isNewFormat12H) { if (wasOldFormat12H === isNewFormat12H) { return time; } var transformFunction = isNewFormat12H ? this._timeUtils.transform24hTo12h : this._timeUtils.transform12hTo24h; return transformFunction(time); }; LocalizedtimepickerComponent.prototype.showPicker = function () { this.pickerActions.emit({ action: 'pickatime', params: ['show'] }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], LocalizedtimepickerComponent.prototype, "pick", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], LocalizedtimepickerComponent.prototype, "initial", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LocalizedtimepickerComponent.prototype, "isDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LocalizedtimepickerComponent.prototype, "resetToInitialOnClearing", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], LocalizedtimepickerComponent.prototype, "pickedtime", null); LocalizedtimepickerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'localizedtimepicker', template: __webpack_require__(/*! ./localizedtimepicker.component.html */ "./src/app/components/localizedtimepicker/localizedtimepicker.component.html"), styles: [__webpack_require__(/*! ./localizedtimepicker.component.scss */ "./src/app/components/localizedtimepicker/localizedtimepicker.component.scss")] }) /** * This Component communicates with the External Consumers via: * * one Input Property (initial) * * one Output Event (pick) * BOTH are exclusively 24H Format, so the 12H format is used only inside this * code and all the exterior interaction is done in a 24H format. */ , __metadata("design:paramtypes", [_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"], _services_time_utils_service__WEBPACK_IMPORTED_MODULE_2__["TimeUtilsService"]]) ], LocalizedtimepickerComponent); return LocalizedtimepickerComponent; }()); /***/ }), /***/ "./src/app/components/login/changePassword.component.html": /*!****************************************************************!*\ !*** ./src/app/components/login/changePassword.component.html ***! \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n

    {{craneName}}

    \n
    \n\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    {{errorMsg}}
    \n
    \n
    \n
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/login/changePassword.component.scss": /*!****************************************************************!*\ !*** ./src/app/components/login/changePassword.component.scss ***! \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#login.default-theme {\n background-color: #d4d7da; }\n #login.default-theme button {\n background-color: #1561a1; }\n #login.default-theme .form-frame .login-form .login-title {\n border-bottom: solid 6px #1561a1; }\n #login.default-theme .form-frame .login-form .login-title h4 {\n color: #1561a1; }\n #login.default-theme .form-frame .login-form .login-title {\n background-color: #d4d7da; }\n #login.default-theme .form-frame .login-form .error-hint {\n background-color: #f11d40; }\n #login.testing-theme {\n background-color: #d4d7da; }\n #login.testing-theme button {\n background-color: #cfac1f; }\n #login.testing-theme .form-frame .login-form .login-title {\n border-bottom: solid 6px #cfac1f; }\n #login.testing-theme .form-frame .login-form .login-title h4 {\n color: #cfac1f; }\n #login.testing-theme .form-frame .login-form .login-title {\n background-color: #d4d7da; }\n #login.testing-theme .form-frame .login-form .error-hint {\n background-color: #f11d40; }\n #login {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n background-image: url(\"/assets/img/pattern-box.svg\"), radial-gradient(circle, #1b629f 55%, #144773); }\n #login .left-side, #login .right-side {\n position: absolute;\n height: 100%;\n width: 50%;\n opacity: 0.75;\n background-size: auto 100%;\n background-repeat: no-repeat; }\n #login .left-side {\n left: 0;\n background-position: left center;\n background-image: url(\"/assets/img/blueprint-ctk.svg\"); }\n #login .right-side {\n right: 0;\n background-position: right center;\n background-image: url(\"/assets/img/blueprint-rtg.svg\"); }\n #login .form-frame {\n margin: 0 auto;\n float: none;\n height: 100%; }\n #login .form-frame .login-form {\n position: relative;\n height: inherit;\n background-color: white;\n padding: 0px;\n overflow: hidden;\n border-radius: 3px;\n transition: all 0.1s ease-in-out; }\n #login .form-frame .login-form:hover {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.08), 0 1px 18px 0 rgba(0, 0, 0, 0.06), 0 3px 5px -1px rgba(0, 0, 0, 0.14);\n transition: all 0.1s ease-in-out; }\n #login .form-frame .login-form .login-title {\n text-align: center; }\n #login .form-frame .login-form .login-title div.logo-container {\n padding-top: calc((2 * 24px) + 1.75rem); }\n #login .form-frame .login-form .login-title div.logo-container i {\n height: 80px !important;\n line-height: 80px !important;\n font-size: 160px; }\n #login .form-frame .login-form .login-title h4 {\n padding: 24px;\n margin: 0;\n font-size: 1.75rem;\n font-weight: bold;\n text-transform: uppercase; }\n #login .form-frame .login-form section {\n padding: 32px; }\n #login .form-frame .login-form section .centered {\n text-align: center; }\n #login .form-frame .login-form section label {\n text-transform: uppercase; }\n #login .form-frame .login-form .error-hint {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n color: white;\n padding: 8px;\n opacity: 0;\n text-align: center;\n -webkit-transform: translateY(30px);\n transform: translateY(30px);\n transition: all 0.2s ease-in-out; }\n #login .form-frame .login-form .error-hint.show {\n -webkit-transform: translateY(0px);\n transform: translateY(0px);\n opacity: 1;\n transition: all 0.2s ease-in-out; }\n #login button {\n color: white; }\n @media only screen and (min-width: 1281px) {\n #login .form-frame {\n padding-left: 86px;\n padding-right: 86px; }\n #login .form-frame .login-form section {\n padding: 56px; } }\n @media only screen and (min-width: 1600px) {\n #login .form-frame {\n padding-left: 128px;\n padding-right: 128px; }\n #login .form-frame .login-form section {\n padding: 56px; } }\n #login .dummy {\n position: absolute;\n right: 10px;\n bottom: 5px;\n color: #7d7d7d;\n font-size: 0.8rem; }\n" /***/ }), /***/ "./src/app/components/login/changePassword.component.ts": /*!**************************************************************!*\ !*** ./src/app/components/login/changePassword.component.ts ***! \**************************************************************/ /*! exports provided: ChangePasswordComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChangePasswordComponent", function() { return ChangePasswordComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_inactivity_detector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/inactivity-detector */ "./src/app/services/inactivity-detector.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../services/config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ChangePasswordComponent = /** @class */ (function () { function ChangePasswordComponent(inactivityService, configService, _authService) { this._authService = _authService; this.craneName = 'Crane ID'; inactivityService.stop(); this.craneName = configService.craneConfig.craneName; } ChangePasswordComponent.prototype.ngOnInit = function () { var lastUsedCredentials = this._authService.lastUsedCredentials; this.username = lastUsedCredentials.userName; this.oldPassword = lastUsedCredentials.password; }; ChangePasswordComponent.prototype.changePasswordAndLogin = function () { var _this = this; this.errorMsg = undefined; this.isBusy = true; if (this._loginSubscription != null) { this._loginSubscription.unsubscribe(); } this._loginSubscription = this._authService.changePasswordAndLogin(this.username, this.oldPassword, this.password, this.passwordConfirm).subscribe(function (response) { switch (response.state) { case _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["LoginResult"].Failure: { var responseMessage = response.message; _this.errorMsg = responseMessage != null ? responseMessage : 'Invalid login attempt'; break; } } _this.isBusy = false; }); }; ChangePasswordComponent.prototype.ngOnDestroy = function () { if (this._loginSubscription != null) { this._loginSubscription.unsubscribe(); } }; ChangePasswordComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-passwordChange', template: __webpack_require__(/*! ./changePassword.component.html */ "./src/app/components/login/changePassword.component.html"), styles: [__webpack_require__(/*! ./changePassword.component.scss */ "./src/app/components/login/changePassword.component.scss")] }), __metadata("design:paramtypes", [_services_inactivity_detector__WEBPACK_IMPORTED_MODULE_2__["InactivityDetectorService"], _services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"], _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]]) ], ChangePasswordComponent); return ChangePasswordComponent; }()); /***/ }), /***/ "./src/app/components/login/login.component.html": /*!*******************************************************!*\ !*** ./src/app/components/login/login.component.html ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n

    {{craneName}}

    \n
    \n\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    {{errorMsg}}
    \n
    \n
    \n
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/login/login.component.scss": /*!*******************************************************!*\ !*** ./src/app/components/login/login.component.scss ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#login.default-theme {\n background-color: #d4d7da; }\n #login.default-theme button {\n background-color: #1561a1; }\n #login.default-theme .form-frame .login-form .login-title {\n border-bottom: solid 6px #1561a1; }\n #login.default-theme .form-frame .login-form .login-title h4 {\n color: #1561a1; }\n #login.default-theme .form-frame .login-form .login-title {\n background-color: #d4d7da; }\n #login.default-theme .form-frame .login-form .error-hint {\n background-color: #f11d40; }\n #login.testing-theme {\n background-color: #d4d7da; }\n #login.testing-theme button {\n background-color: #cfac1f; }\n #login.testing-theme .form-frame .login-form .login-title {\n border-bottom: solid 6px #cfac1f; }\n #login.testing-theme .form-frame .login-form .login-title h4 {\n color: #cfac1f; }\n #login.testing-theme .form-frame .login-form .login-title {\n background-color: #d4d7da; }\n #login.testing-theme .form-frame .login-form .error-hint {\n background-color: #f11d40; }\n #login {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n background-image: url(\"/assets/img/pattern-box.svg\"), radial-gradient(circle, #1b629f 55%, #144773); }\n #login .left-side, #login .right-side {\n position: absolute;\n height: 100%;\n width: 50%;\n opacity: 0.75;\n background-size: auto 100%;\n background-repeat: no-repeat; }\n #login .left-side {\n left: 0;\n background-position: left center;\n background-image: url(\"/assets/img/blueprint-ctk.svg\"); }\n #login .right-side {\n right: 0;\n background-position: right center;\n background-image: url(\"/assets/img/blueprint-rtg.svg\"); }\n #login .form-frame {\n margin: 0 auto;\n float: none;\n height: 100%; }\n #login .form-frame .login-form {\n position: relative;\n height: inherit;\n background-color: white;\n padding: 0px;\n overflow: hidden;\n border-radius: 3px;\n transition: all 0.1s ease-in-out; }\n #login .form-frame .login-form:hover {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.08), 0 1px 18px 0 rgba(0, 0, 0, 0.06), 0 3px 5px -1px rgba(0, 0, 0, 0.14);\n transition: all 0.1s ease-in-out; }\n #login .form-frame .login-form .login-title {\n text-align: center; }\n #login .form-frame .login-form .login-title div.logo-container {\n padding-top: calc((2 * 24px) + 1.75rem); }\n #login .form-frame .login-form .login-title div.logo-container i {\n height: 80px !important;\n line-height: 80px !important;\n font-size: 160px; }\n #login .form-frame .login-form .login-title h4 {\n padding: 24px;\n margin: 0;\n font-size: 1.75rem;\n font-weight: bold;\n text-transform: uppercase; }\n #login .form-frame .login-form section {\n padding: 32px; }\n #login .form-frame .login-form section .centered {\n text-align: center; }\n #login .form-frame .login-form section label {\n text-transform: uppercase; }\n #login .form-frame .login-form .error-hint {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n color: white;\n padding: 8px;\n opacity: 0;\n text-align: center;\n -webkit-transform: translateY(30px);\n transform: translateY(30px);\n transition: all 0.2s ease-in-out; }\n #login .form-frame .login-form .error-hint.show {\n -webkit-transform: translateY(0px);\n transform: translateY(0px);\n opacity: 1;\n transition: all 0.2s ease-in-out; }\n #login button {\n color: white; }\n @media only screen and (min-width: 1281px) {\n #login .form-frame {\n padding-left: 86px;\n padding-right: 86px; }\n #login .form-frame .login-form section {\n padding: 56px; } }\n @media only screen and (min-width: 1600px) {\n #login .form-frame {\n padding-left: 128px;\n padding-right: 128px; }\n #login .form-frame .login-form section {\n padding: 56px; } }\n #login .dummy {\n position: absolute;\n right: 10px;\n bottom: 5px;\n color: #7d7d7d;\n font-size: 0.8rem; }\n" /***/ }), /***/ "./src/app/components/login/login.component.ts": /*!*****************************************************!*\ !*** ./src/app/components/login/login.component.ts ***! \*****************************************************/ /*! exports provided: LoginComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginComponent", function() { return LoginComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_inactivity_detector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/inactivity-detector */ "./src/app/services/inactivity-detector.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../services/config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LoginComponent = /** @class */ (function () { function LoginComponent(inactivityService, configService, _authService) { this._authService = _authService; this.craneName = 'Crane ID'; inactivityService.stop(); this.craneName = configService.craneConfig.craneName; } LoginComponent.prototype.login = function () { var _this = this; this.errorMsg = undefined; this.isBusy = true; if (this._loginSubscription != null) { this._loginSubscription.unsubscribe(); } this._loginSubscription = this._authService.login(this.username, this.password).subscribe(function (response) { switch (response.state) { case _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["LoginResult"].Failure: { var responseMessage = response.message; _this.errorMsg = responseMessage != null ? responseMessage : 'Invalid login attempt'; break; } } _this.isBusy = false; }); }; LoginComponent.prototype.ngOnDestroy = function () { if (this._loginSubscription != null) { this._loginSubscription.unsubscribe(); } }; LoginComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-login', template: __webpack_require__(/*! ./login.component.html */ "./src/app/components/login/login.component.html"), styles: [__webpack_require__(/*! ./login.component.scss */ "./src/app/components/login/login.component.scss")] }), __metadata("design:paramtypes", [_services_inactivity_detector__WEBPACK_IMPORTED_MODULE_2__["InactivityDetectorService"], _services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"], _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]]) ], LoginComponent); return LoginComponent; }()); /***/ }), /***/ "./src/app/components/login/logout.component.ts": /*!******************************************************!*\ !*** ./src/app/components/login/logout.component.ts ***! \******************************************************/ /*! exports provided: LogoutComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogoutComponent", function() { return LogoutComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/auth.service */ "./src/app/services/auth.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LogoutComponent = /** @class */ (function () { function LogoutComponent(_authService) { this._authService = _authService; } LogoutComponent.prototype.ngOnInit = function () { this._authService.logout(); }; LogoutComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-logout', template: '' }), __metadata("design:paramtypes", [_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]]) ], LogoutComponent); return LogoutComponent; }()); /***/ }), /***/ "./src/app/components/maintenance/customer-maintenance-points-edit.component.html": /*!****************************************************************************************!*\ !*** ./src/app/components/maintenance/customer-maintenance-points-edit.component.html ***! \****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
    \n
    \n
    \n
    \n
    \n

    \n  \n maintenance_point\n

    \n
    \n
    \n
    \n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n\n
    \n
    \n \n \n
    \n
    \n\n
    \n
    \n \n \n
    \n
    \n\n
    \n
    \n \n \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n

    \n  \n time_limit\n

    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n

    \n  \n primary_counter_limit\n

    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n

    \n  \n secondary_counter_limit\n

    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n
    \n
    \n \n
    \n
    \n
    \n\n \n\n
    \n
    " /***/ }), /***/ "./src/app/components/maintenance/customer-maintenance-points-edit.component.scss": /*!****************************************************************************************!*\ !*** ./src/app/components/maintenance/customer-maintenance-points-edit.component.scss ***! \****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n width: 100%;\n display: block;\n position: absolute; }\n\n#deleteButton {\n float: right; }\n" /***/ }), /***/ "./src/app/components/maintenance/customer-maintenance-points-edit.component.ts": /*!**************************************************************************************!*\ !*** ./src/app/components/maintenance/customer-maintenance-points-edit.component.ts ***! \**************************************************************************************/ /*! exports provided: CustomerMaintenancePointsEditComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomerMaintenancePointsEditComponent", function() { return CustomerMaintenancePointsEditComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_selection_entry__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../models/selection-entry */ "./src/app/models/selection-entry.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/maintenance/maintenance-point.service */ "./src/app/services/maintenance/maintenance-point.service.ts"); /* harmony import */ var _common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common/common-components/confirmation-modal/confirmation-modal.component */ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../pipes/counter-to-si-unit.pipe */ "./src/app/pipes/counter-to-si-unit.pipe.ts"); /* harmony import */ var _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../../pipes/counter-to-system-unit.pipe */ "./src/app/pipes/counter-to-system-unit.pipe.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CustomerMaintenancePointsEditComponent = /** @class */ (function () { function CustomerMaintenancePointsEditComponent(_service, _viewService, _viewServiceMP, _toastService, _cmsTranslation, _router, _route, _routePM, _counterToSiUnitPipe, _counterToSystemUnitPipe) { this._service = _service; this._viewService = _viewService; this._viewServiceMP = _viewServiceMP; this._toastService = _toastService; this._cmsTranslation = _cmsTranslation; this._router = _router; this._route = _route; this._routePM = _routePM; this._counterToSiUnitPipe = _counterToSiUnitPipe; this._counterToSystemUnitPipe = _counterToSystemUnitPipe; this.TimeUnit = types_config__WEBPACK_IMPORTED_MODULE_8__["TimeUnit"]; this.TimeUnitDisplayText = app_app_constants__WEBPACK_IMPORTED_MODULE_3__["TimeUnitDisplayText"]; this.MaintenanceType = types_config__WEBPACK_IMPORTED_MODULE_8__["MaintenanceType"]; this.deleteConfirmationModalActions = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this._hasTime = true; this._hasPrimaryCounter = false; this._hasSecondaryCounter = false; this.counters = []; this.loaded = false; this.fetchGroups(); this.fetchTypes(); } CustomerMaintenancePointsEditComponent.prototype.ngOnInit = function () { if (this._router.url.toString().endsWith('/create')) { this._viewService.setToolbarTitle('maintenance_plan_-_new'); } else { this._viewService.setToolbarTitle('maintenance_plan_-_edit'); } this.initializeData(); this.listenForLanguageChanges(); this.fetchMaintenancePoints(); }; CustomerMaintenancePointsEditComponent.prototype.fetchMaintenancePoints = function () { var _this = this; this._viewServiceMP.setToolbarTitle("maintenance_plan"); this._routePM.params .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["switchMap"])(function (params) { var idParam = params['id']; if (idParam != null) { return _this._service.getMaintenancePointDetail(idParam); } else { return Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["empty"])(); } })) .subscribe(function (point) { _this.point = point; _this.loaded = true; setTimeout(function () { Materialize.updateTextFields(); }); }); }; CustomerMaintenancePointsEditComponent.prototype.ngOnDestroy = function () { if (this._languageChangedSubscription != null) { this._languageChangedSubscription.unsubscribe(); } }; Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "isNewCustomerMaintenancePoint", { get: function () { return !this.model.id; }, enumerable: true, configurable: true }); Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "hasTime", { get: function () { return this._hasTime; }, set: function (value) { this._hasTime = value; this.ensurePointHasEitherTimeOrCounterOrBoth(true); }, enumerable: true, configurable: true }); Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "hasPrimaryCounter", { get: function () { return this._hasPrimaryCounter; }, set: function (value) { this._hasPrimaryCounter = value; this.ensurePointHasEitherTimeOrCounterOrBoth(false); }, enumerable: true, configurable: true }); Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "hasSecondaryCounter", { get: function () { return this._hasSecondaryCounter; }, set: function (value) { this._hasSecondaryCounter = value; this.ensurePointHasEitherTimeOrCounterOrBoth(false); }, enumerable: true, configurable: true }); Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "primaryCounterLimit", { get: function () { if (this.model != null && this.model.primaryCounterLimit != null) { return this._counterToSystemUnitPipe.transform(this.model.primaryCounterLimit.limit, this.model.primaryCounterLimit.counterType); } return undefined; }, set: function (value) { if (this.model != null && this.model.primaryCounterLimit != null) { var transformedValue = this._counterToSiUnitPipe.transform(value, this.model.primaryCounterLimit.counterType); if (transformedValue != null) { this.model.primaryCounterLimit.limit = transformedValue; } } }, enumerable: true, configurable: true }); Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "secondaryCounterLimit", { get: function () { if (this.model != null && this.model.secondaryCounterLimit != null) { return this._counterToSystemUnitPipe.transform(this.model.secondaryCounterLimit.limit, this.model.secondaryCounterLimit.counterType); } return undefined; }, set: function (value) { if (this.model != null && this.model.secondaryCounterLimit != null) { var transformedValue = this._counterToSiUnitPipe.transform(value, this.model.secondaryCounterLimit.counterType); if (transformedValue != null) { this.model.secondaryCounterLimit.limit = transformedValue; } } }, enumerable: true, configurable: true }); CustomerMaintenancePointsEditComponent.prototype.isWholeNumber = function (n) { return !Number.isNaN(n) && n % 1 == 0; }; CustomerMaintenancePointsEditComponent.prototype.timeLimitValueIsValid = function () { return this.model.timeLimit != null && this.isWholeNumber(this.model.timeLimit.limitValue); }; CustomerMaintenancePointsEditComponent.prototype.groupIsValid = function () { return this.model.group != null && this.model.group.length > 0; }; CustomerMaintenancePointsEditComponent.prototype.componentIsValid = function () { return this.model.component != null && this.model.component.length > 0; }; CustomerMaintenancePointsEditComponent.prototype.maintenanceTypeIsValid = function () { return this.model.maintenanceType != null && 0 <= types_config__WEBPACK_IMPORTED_MODULE_8__["MaintenanceType"][this.model.maintenanceType] && types_config__WEBPACK_IMPORTED_MODULE_8__["MaintenanceType"][this.model.maintenanceType] < 3; }; CustomerMaintenancePointsEditComponent.prototype.counterLimitValueIsValid = function (counterLimitDto) { return counterLimitDto != null && this.isWholeNumber(counterLimitDto.limit); }; CustomerMaintenancePointsEditComponent.prototype.counterLimitCounterIsValid = function (counterLimitDto) { return counterLimitDto != null && counterLimitDto.counter != null && counterLimitDto.counter.length > 0; }; CustomerMaintenancePointsEditComponent.prototype.activitiesAreValid = function () { return this.activities != null && this.activities.length > 0; }; Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "isInputValid", { get: function () { if (!this.groupIsValid()) { return false; } if (!this.componentIsValid()) { return false; } if (!this.activitiesAreValid()) { return false; } if (!this.maintenanceTypeIsValid()) { return false; } if (this.hasTime && !this.timeLimitValueIsValid()) { return false; } if (this.hasPrimaryCounter && !this.counterLimitValueIsValid(this.model.primaryCounterLimit)) { return false; } if (this.hasPrimaryCounter && !this.counterLimitCounterIsValid(this.model.primaryCounterLimit)) { return false; } if (this.hasSecondaryCounter && !this.counterLimitValueIsValid(this.model.secondaryCounterLimit)) { return false; } if (this.hasSecondaryCounter && !this.counterLimitCounterIsValid(this.model.secondaryCounterLimit)) { return false; } return true; }, enumerable: true, configurable: true }); CustomerMaintenancePointsEditComponent.prototype.toValidationClass = function (value) { if (!(this.form != null) || !this.form.dirty) { return value ? null : 'invalid'; } return value ? 'valid' : 'invalid'; }; Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "isCounterSelectionEnabled", { get: function () { return (this.hasPrimaryCounter || this.hasSecondaryCounter) && this.isNewCustomerMaintenancePoint; }, enumerable: true, configurable: true }); CustomerMaintenancePointsEditComponent.prototype.fetchGroups = function () { var _this = this; this._service .getGroups() .subscribe(function (groups) { _this.groups = groups.map(function (x) { return new _models_selection_entry__WEBPACK_IMPORTED_MODULE_9__["SelectionEntry"](x, x); }); }); }; CustomerMaintenancePointsEditComponent.prototype.fetchTypes = function () { this.selectOptionsForType = []; for (var key in types_config__WEBPACK_IMPORTED_MODULE_8__["MaintenanceType"]) { this.selectOptionsForType.push({ name: this._cmsTranslation.translation.translate(app_app_constants__WEBPACK_IMPORTED_MODULE_3__["MaintenanceTypeDisplayText"][key]), value: types_config__WEBPACK_IMPORTED_MODULE_8__["MaintenanceType"][key] }); } }; CustomerMaintenancePointsEditComponent.prototype.listenForLanguageChanges = function () { var _this = this; this._languageChangedSubscription = this._cmsTranslation .languageChangedEvent .subscribe(function () { // when the language changed, fetch the chart type // again, the server will respond // with the correct translations _this.fetchGroups(); _this.fetchTypes(); }); }; CustomerMaintenancePointsEditComponent.prototype.initializeData = function () { // first fetch the counters and then the maintenance point // to have all data available when the maintenance point // is loaded var _this = this; this._service .getCounters() .subscribe(function (counters) { _this.counters = counters; _this.fetchMaintenancePoint(); }); }; CustomerMaintenancePointsEditComponent.prototype.generateEmptyMaintenancePointDetail = function () { var timeLimit = { limitUnit: types_config__WEBPACK_IMPORTED_MODULE_8__["TimeUnit"].Day, limitValue: 1 }; var primaryCounterLimit = {}; var secondaryCounterLimit = {}; var hasCounterLimit = this.counters.length > 0; if (hasCounterLimit) { primaryCounterLimit = { limit: 1, counter: this.counters[0].name }; secondaryCounterLimit = { limit: 1, counter: this.counters[0].name }; } var emptyCustomerMaintenancePointUpdateDto = { id: '', isCustomerDefined: true, isEstimatedDueTime: false, group: '', component: '', description: '', note: '', tags: [], maintenanceType: types_config__WEBPACK_IMPORTED_MODULE_8__["MaintenanceType"].Regular, hasTimeLimit: true, timeLimit: timeLimit, activities: [], hasPrimaryCounterLimit: hasCounterLimit, primaryCounterLimit: primaryCounterLimit, hasSecondaryCounterLimit: hasCounterLimit, secondaryCounterLimit: secondaryCounterLimit, dueTime: new Date(), dueTimeInDays: 0 }; return emptyCustomerMaintenancePointUpdateDto; }; CustomerMaintenancePointsEditComponent.prototype.fetchMaintenancePoint = function () { var _this = this; this._route.paramMap .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["switchMap"])(function (params) { var id = params.get('id'); if (!!id) { return _this._service.getMaintenancePointDetail(id); } else { return Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["of"])(_this.generateEmptyMaintenancePointDetail()); } })) .subscribe(function (point) { _this.model = point; _this.activitiesAsString = _this.model.activities.join(', '); _this.hasPrimaryCounter = _this.model.hasPrimaryCounterLimit; _this.hasSecondaryCounter = _this.model.hasSecondaryCounterLimit; _this.hasTime = _this.model.hasTimeLimit; setTimeout(function () { Materialize.updateTextFields(); }); }); }; CustomerMaintenancePointsEditComponent.prototype.ensurePointHasEitherTimeOrCounterOrBoth = function (calledFromTimeSetter) { // this method is called from the limit setters, we want to ensure that // that at least one of the limits are present. // this method is called after the value was set in the setter // and so when both values are false we know that we just // set the time limit to false, and we hence need to set // the counter limits to true. if (!this._hasTime && calledFromTimeSetter) { if (!this._hasPrimaryCounter && !this._hasSecondaryCounter) { this._hasPrimaryCounter = true; } } if (!this._hasPrimaryCounter && !this.hasSecondaryCounter && !calledFromTimeSetter) { this._hasTime = true; } }; Object.defineProperty(CustomerMaintenancePointsEditComponent.prototype, "activities", { get: function () { if (!this.activitiesAsString || this.activitiesAsString.trim().length <= 0) { return []; } var activities = this.activitiesAsString.split(',').map(function (act) { return act.trim(); }); if (activities.every(function (act) { return act.length <= 0; })) { return []; } return activities; }, enumerable: true, configurable: true }); CustomerMaintenancePointsEditComponent.prototype.save = function () { var _this = this; var customerMaintenancePointUpdateDto; if (this.point !== undefined) { customerMaintenancePointUpdateDto = { id: this.model.id, group: this.model.group, component: this.model.component, description: this.model.description, maintenanceType: this.model.maintenanceType, activities: this.activities, note: this.model.note, tags: this.point.tags, }; } else { customerMaintenancePointUpdateDto = { id: this.model.id, group: this.model.group, component: this.model.component, description: this.model.description, maintenanceType: this.model.maintenanceType, activities: this.activities, note: this.model.note, }; } if (this.hasTime && this.model.timeLimit != null) { customerMaintenancePointUpdateDto.timeLimitValue = this.model.timeLimit.limitValue; customerMaintenancePointUpdateDto.timeLimitUnit = this.model.timeLimit.limitUnit; } if (this.hasPrimaryCounter && this.model.primaryCounterLimit != null) { customerMaintenancePointUpdateDto.primaryCounterName = this.model.primaryCounterLimit.counter; customerMaintenancePointUpdateDto.primaryCounterLimitValue = this.model.primaryCounterLimit.limit; } if (this.hasSecondaryCounter && this.model.secondaryCounterLimit != null) { customerMaintenancePointUpdateDto.secondaryCounterName = this.model.secondaryCounterLimit.counter; customerMaintenancePointUpdateDto.secondaryCounterLimitValue = this.model.secondaryCounterLimit.limit; } var observable; if (!customerMaintenancePointUpdateDto.id) { observable = this._service.createCustomerMaintenancePoint(customerMaintenancePointUpdateDto); } else { observable = this._service.updateCustomerMaintenancePoint(customerMaintenancePointUpdateDto.id, customerMaintenancePointUpdateDto); } observable.subscribe(function (complete) { return _this.close(); }, function (error) { var toastText = error._body != null ? error._body : error.message; _this._toastService.showToastAsync(toastText, app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_4__["TimeSpan"].Default, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_13__["NotificationToastType"].Error); }); }; CustomerMaintenancePointsEditComponent.prototype.onTagsItemsChange = function (selectedItems) { var _this = this; selectedItems.forEach(function (item) { item.maintenancePointId = _this.point.id; // Assuming maintenancePointId should be a string }); this.point.tags = selectedItems .filter(function (p) { return p.isDeleted == false; }); this.form.form.markAsDirty(); // Assuming this.point and this.form are correctly typed and initialized }; CustomerMaintenancePointsEditComponent.prototype.openDeleteConfirmationModal = function ($event) { $event.preventDefault(); this.deleteConfirmationModalActions.emit({ action: 'modal', params: ['open'] }); }; CustomerMaintenancePointsEditComponent.prototype.denyDeletion = function () { this.deleteConfirmationModalActions.emit({ action: 'modal', params: ['close'] }); }; CustomerMaintenancePointsEditComponent.prototype.delete = function () { var _this = this; this._service .delete(this.model.id) .subscribe(function () { return _this.close(); }); }; CustomerMaintenancePointsEditComponent.prototype.close = function () { this._router.navigateByUrl('/maintenance'); }; CustomerMaintenancePointsEditComponent.prototype.handleModalResult = function (e) { if (e != null) { switch (e.result) { case _common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_12__["ConfirmationResult"].Accept: { this.delete(); break; } case _common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_12__["ConfirmationResult"].Cancel: { this.denyDeletion(); break; } } } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('form'), __metadata("design:type", _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgForm"]) ], CustomerMaintenancePointsEditComponent.prototype, "form", void 0); CustomerMaintenancePointsEditComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'customer-maintenance-points-edit', template: __webpack_require__(/*! ./customer-maintenance-points-edit.component.html */ "./src/app/components/maintenance/customer-maintenance-points-edit.component.html"), styles: [__webpack_require__(/*! ./customer-maintenance-points-edit.component.scss */ "./src/app/components/maintenance/customer-maintenance-points-edit.component.scss")], providers: [_pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_14__["CounterToSiUnitPipe"], _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_15__["CounterToSystemUnitPipe"]] }), __metadata("design:paramtypes", [_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_11__["MaintenancePointService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_5__["ViewService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_5__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_4__["ToastService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_10__["CmsTranslationService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"], _pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_14__["CounterToSiUnitPipe"], _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_15__["CounterToSystemUnitPipe"]]) ], CustomerMaintenancePointsEditComponent); return CustomerMaintenancePointsEditComponent; }()); /***/ }), /***/ "./src/app/components/maintenance/maintenance-entrylist-edit.component.html": /*!**********************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-entrylist-edit.component.html ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
    \n \n
    \n
    \n
    \n
    \n

    \n {{point?.component}} ({{point?.group}})\n

    \n
    \n type: \n {{ MaintenanceTypeDisplayText[point.maintenanceType]\n }} | \n due_in \n {{ point.dueTimeInDays |\n daysToDueTime }}\n {{\n point.estimatedDueTimeInDays | daysToDueTime }}\n '\n
    \n
    \n
    \n\n
    \n\n
    \n
    \n

    \n  \n {{point?.activities?.join(', ')}}\n

    \n

    {{point?.description}}

    \n
    \n
    \n\n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n

    \n  \n time_limit\n

    \n
    \n
    \n
    \n
    \n \n

    {{ point?.timeLimit?.limitValue}}

    \n
    \n
    \n \n

    {{ TimeUnitDisplayText[point?.timeLimit?.limitUnit]\n }}

    \n
    \n
    \n \n

    \n {{ point?.timeLimit?.dueInDays | daysToDueTime }}

    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n

    \n  \n primary_counter_limit\n

    \n
    \n
    \n\n
    \n
    \n \n

    {{ point?.primaryCounterLimit?.start | counterToSystemUnit:\n point?.primaryCounterLimit?.counterType }} h\n

    \n
    \n
    \n \n

    {{ point?.primaryCounterLimit?.current |\n counterToSystemUnit: point?.primaryCounterLimit?.counterType }} h\n

    \n
    \n
    \n \n

    {{ point?.primaryCounterLimit?.due | counterToSystemUnit:\n point?.primaryCounterLimit?.counterType }} h\n

    \n
    \n
    \n\n
    \n
    \n \n

    {{ point?.primaryCounterLimit?.estimatedRate |\n counterToSystemUnit: point?.primaryCounterLimit?.counterType }} / h

    \n
    \n
    \n \n

    \n {{ point?.primaryCounterLimit?.estimatedDueTimeInDays | daysToDueTime }}

    \n
    \n
    \n \n

    {{\n point?.primaryCounterLimit?.counterDescription }}

    \n
    \n
    \n\n
    \n
    \n \n

    {{ point?.primaryCounterLimit?.limit | counterToSystemUnit:\n point?.primaryCounterLimit?.counterType }}

    \n
    \n
    \n \n \n
    \n
    \n \n
    \n
    \n
    \n\n
    \n
    \n
    \n

    \n  \n secondary_counter_limit\n

    \n
    \n
    \n\n
    \n
    \n \n

    {{ point?.secondaryCounterLimit?.start |\n counterToSystemUnit: point?.secondaryCounterLimit?.counterType }} h\n

    \n
    \n
    \n \n

    {{ point?.secondaryCounterLimit?.current |\n counterToSystemUnit: point?.secondaryCounterLimit?.counterType }} h\n

    \n
    \n
    \n \n

    {{ point?.secondaryCounterLimit?.due | counterToSystemUnit:\n point?.secondaryCounterLimit?.counterType }} h\n

    \n
    \n
    \n\n
    \n
    \n \n

    {{ point?.secondaryCounterLimit?.estimatedRate |\n counterToSystemUnit: point?.secondaryCounterLimit?.counterType }} / h

    \n
    \n
    \n \n

    \n {{ point?.secondaryCounterLimit?.estimatedDueTimeInDays | daysToDueTime }}

    \n
    \n
    \n \n

    {{\n point?.secondaryCounterLimit?.counterDescription }}

    \n
    \n
    \n\n
    \n
    \n \n

    {{ point?.secondaryCounterLimit?.limit |\n counterToSystemUnit: point?.secondaryCounterLimit?.counterType }}

    \n
    \n
    \n \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    " /***/ }), /***/ "./src/app/components/maintenance/maintenance-entrylist-edit.component.scss": /*!**********************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-entrylist-edit.component.scss ***! \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n width: 100%;\n display: block;\n position: absolute; }\n" /***/ }), /***/ "./src/app/components/maintenance/maintenance-entrylist-edit.component.ts": /*!********************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-entrylist-edit.component.ts ***! \********************************************************************************/ /*! exports provided: MaintenanceEntrylistEditComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaintenanceEntrylistEditComponent", function() { return MaintenanceEntrylistEditComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/data-cache.service */ "./src/app/services/data-cache.service.ts"); /* harmony import */ var app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/maintenance/maintenance-point.service */ "./src/app/services/maintenance/maintenance-point.service.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../pipes/counter-to-si-unit.pipe */ "./src/app/pipes/counter-to-si-unit.pipe.ts"); /* harmony import */ var _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../pipes/counter-to-system-unit.pipe */ "./src/app/pipes/counter-to-system-unit.pipe.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var MaintenanceEntrylistEditComponent = /** @class */ (function () { function MaintenanceEntrylistEditComponent(_service, _viewService, _toastService, _router, _route, _counterToSiUnitPipe, _counterToSystemUnitPipe) { this._service = _service; this._viewService = _viewService; this._toastService = _toastService; this._router = _router; this._route = _route; this._counterToSiUnitPipe = _counterToSiUnitPipe; this._counterToSystemUnitPipe = _counterToSystemUnitPipe; this._pageTitle = 'maintenance_plan'; this.TimeUnit = types_config__WEBPACK_IMPORTED_MODULE_10__["TimeUnit"]; this.TimeUnitDisplayText = app_app_constants__WEBPACK_IMPORTED_MODULE_3__["TimeUnitDisplayText"]; this.CounterType = types_config__WEBPACK_IMPORTED_MODULE_10__["CounterType"]; this.MaintenanceType = types_config__WEBPACK_IMPORTED_MODULE_10__["MaintenanceType"]; this.MaintenanceTypeDisplayText = app_app_constants__WEBPACK_IMPORTED_MODULE_3__["MaintenanceTypeDisplayText"]; this.selectedTags = []; this.updateEntryValid = true; this.loaded = false; } MaintenanceEntrylistEditComponent.prototype.ngOnInit = function () { var _this = this; this._viewService.setToolbarTitle(this._pageTitle); this._route.params .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__["switchMap"])(function (params) { var idParam = params['id']; if (idParam != null) { return _this._service.getMaintenancePointDetail(idParam); } else { return Object(rxjs__WEBPACK_IMPORTED_MODULE_8__["empty"])(); } })) .subscribe(function (point) { _this.point = point; _this.loaded = true; setTimeout(function () { Materialize.updateTextFields(); }); }); }; MaintenanceEntrylistEditComponent.prototype.isDueTimeToday = function (dueTimeInDays) { return dueTimeInDays < 1; }; Object.defineProperty(MaintenanceEntrylistEditComponent.prototype, "primaryCounterLimitOverride", { get: function () { if (this.point != null && this.point.primaryCounterLimit != null) { return this._counterToSystemUnitPipe.transform(this.point.primaryCounterLimit.limitOverride, this.point.primaryCounterLimit.counterType); } return undefined; }, set: function (value) { if (this.point != null && this.point.primaryCounterLimit != null) { this.point.primaryCounterLimit.limitOverride = this._counterToSiUnitPipe.transform(value, this.point.primaryCounterLimit.counterType); } }, enumerable: true, configurable: true }); Object.defineProperty(MaintenanceEntrylistEditComponent.prototype, "secondaryCounterLimitOverride", { get: function () { if (this.point != null && this.point.secondaryCounterLimit != null) { return this._counterToSystemUnitPipe.transform(this.point.secondaryCounterLimit.limitOverride, this.point.secondaryCounterLimit.counterType); } return undefined; }, set: function (value) { if (this.point != null && this.point.secondaryCounterLimit != null) { this.point.secondaryCounterLimit.limitOverride = this._counterToSiUnitPipe.transform(value, this.point.secondaryCounterLimit.counterType); } }, enumerable: true, configurable: true }); MaintenanceEntrylistEditComponent.prototype.onTagsItemsChange = function (selectedItems) { var _this = this; selectedItems.forEach(function (item) { item.maintenancePointId = _this.point.id; // Assuming maintenancePointId should be a string }); this.point.tags = selectedItems; this.form.form.markAsDirty(); // Assuming this.point and this.form are correctly typed and initialized }; MaintenanceEntrylistEditComponent.prototype.close = function () { this._router.navigate(['/maintenance']); }; MaintenanceEntrylistEditComponent.prototype.removePrimaryCounterLimitOverride = function () { if (this.point.primaryCounterLimit != null && this.point.primaryCounterLimit.limitOverride != null) { this.point.primaryCounterLimit.hasOverride = false; this.point.primaryCounterLimit.limitOverride = undefined; this.form.control.markAsDirty(); } }; MaintenanceEntrylistEditComponent.prototype.removeSecondaryCounterLimitOverride = function () { if (this.point.secondaryCounterLimit != null && this.point.secondaryCounterLimit.limitOverride != null) { this.point.secondaryCounterLimit.hasOverride = false; this.point.secondaryCounterLimit.limitOverride = undefined; this.form.control.markAsDirty(); } }; MaintenanceEntrylistEditComponent.prototype.removeTimeLimitOverride = function () { if (this.point.timeLimit != null && (this.point.timeLimit.limitValueOverride != null || this.point.timeLimit.limitUnitOverride != null)) { this.point.timeLimit.hasOverride = false; this.point.timeLimit.limitValueOverride = undefined; this.point.timeLimit.limitUnitOverride = undefined; this.form.control.markAsDirty(); } }; MaintenanceEntrylistEditComponent.prototype.saveEditedEntry = function () { var _this = this; var maintenancePointUpdateDto = { note: this.point.note, tags: this.point.tags, timeLimitValueOverride: this.point.timeLimit ? this.point.timeLimit.limitValueOverride : undefined, timeLimitUnitOverride: this.point.timeLimit ? this.point.timeLimit.limitUnitOverride : undefined, primaryCounterLimitOverride: this.point.primaryCounterLimit ? this.point.primaryCounterLimit.limitOverride : undefined, secondaryCounterLimitOverride: this.point.secondaryCounterLimit ? this.point.secondaryCounterLimit.limitOverride : undefined }; this._service.update(this.point.id, maintenancePointUpdateDto).subscribe(function (complete) { return _this.close(); }, function (error) { if (error._body) { // error is multiline, toast each error error._body .split(/\r?\n/) .forEach(function (line) { return _this._toastService.showToastAsync(line, app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_6__["TimeSpan"].Default, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_11__["NotificationToastType"].Error); }); } else { _this._toastService.showToastAsync(error.message, app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_6__["TimeSpan"].Default, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_11__["NotificationToastType"].Error); } }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('form'), __metadata("design:type", _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgForm"]) ], MaintenanceEntrylistEditComponent.prototype, "form", void 0); MaintenanceEntrylistEditComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'maintenance-entrylist-edit', template: __webpack_require__(/*! ./maintenance-entrylist-edit.component.html */ "./src/app/components/maintenance/maintenance-entrylist-edit.component.html"), styles: [__webpack_require__(/*! ./maintenance-entrylist-edit.component.scss */ "./src/app/components/maintenance/maintenance-entrylist-edit.component.scss")], providers: [app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_4__["DataCacheService"], _pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_12__["CounterToSiUnitPipe"], _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_13__["CounterToSystemUnitPipe"]] }), __metadata("design:paramtypes", [app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_5__["MaintenancePointService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_7__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_6__["ToastService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"], _pipes_counter_to_si_unit_pipe__WEBPACK_IMPORTED_MODULE_12__["CounterToSiUnitPipe"], _pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_13__["CounterToSystemUnitPipe"]]) ], MaintenanceEntrylistEditComponent); return MaintenanceEntrylistEditComponent; }()); /***/ }), /***/ "./src/app/components/maintenance/maintenance-entrylist.component.html": /*!*****************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-entrylist.component.html ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n\n
    \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n user_manual\n \n\n \n \n \n
    \n
    \n\n
    \n \n\n \n \n \n
    \n
    \n description\n {{row.description}}\n
    \n
    \n note\n {{row.note}}\n
    \n
    \n\n
    \n
    \n
    activity:
    \n
      0\">\n
    • \n {{i + 1}}\n  {{activity}}\n
    • \n
    \n
    \n
    \n
    tags:
    \n
      0\">\n
    • \n {{i + 1}}\n  {{tags}}\n
    • \n
    \n
    \n
    \n
    time_limit:
    \n
    \n due_at\n {{ getDueDate(row.timeCounterDueDate) | l10nDate:lang:'longDate' }}\n
    \n
    \n
    \n
    primary_counter_limit:
    \n
    \n counter\n {{row?.primaryCounterName}}\n
    \n
    \n due_in\n \n {{row?.primaryCounterDeltaValue | counterToSystemUnit: row?.primaryCounterType}}\n  h\n \n
    \n
    \n current_value\n \n {{row?.primaryCounterActualValue | counterToSystemUnit: row?.primaryCounterType}}\n  h\n \n
    \n
    \n due_at\n \n {{row?.primaryCounterDueValue | counterToSystemUnit: row?.primaryCounterType}}\n  h\n \n
    \n
    \n
    \n
    secondary_counter_limit:
    \n
    \n counter\n {{row?.secondaryCounterName}}\n
    \n
    \n due_in\n \n {{row?.secondaryCounterDeltaValue | counterToSystemUnit: row?.secondaryCounterType}}\n  h\n \n
    \n
    \n current_value\n \n {{row?.secondaryCounterActualValue | counterToSystemUnit: row?.secondaryCounterType}}\n  h\n \n
    \n
    \n due_at\n \n {{row?.secondaryCounterDueValue | counterToSystemUnit: row?.secondaryCounterType}}\n  h\n \n
    \n
    \n
    \n
    \n
    \n
    \n\n \n \n
    \n
    \n \n
    \n
    \n
    \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n {{columnDefinitions.group.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.component.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.description.headerName}}\n \n \n {{value}}\n {{value}}\n \n \n\n \n \n {{columnDefinitions.note.headerName}}\n \n \n {{value}}\n {{value}}\n \n \n\n \n \n {{columnDefinitions.activities.headerName}}\n \n \n {{value}}\n {{value}}\n \n \n\n \n \n {{columnDefinitions.tags.headerName}}\n \n \n {{value}}\n {{value}}\n \n \n\n \n \n {{columnDefinitions.dueTimeInDays.headerName}}\n \n \n {{ value | daysToDueTime }}\n '\n \n \n\n \n \n user_manuals\n \n \n \n \n \n \n \n
    \n\n
    \n \n \n \n
    \n\n
    \n\n" /***/ }), /***/ "./src/app/components/maintenance/maintenance-entrylist.component.scss": /*!*****************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-entrylist.component.scss ***! \*****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".detail-row-content.default-theme {\n background-color: #ffffff; }\n .detail-row-content.default-theme .summary-value-label {\n color: #ffffff; }\n .detail-row-content.default-theme .detail-description-label {\n border-color: #1561a1; }\n .detail-row-content.default-theme .detail-note-label {\n border-color: #ffa80f; }\n .detail-row-content.default-theme .detail-summary {\n border-color: #69727e; }\n .detail-row-content.default-theme .summary-value-label {\n background-color: #69727e; }\n .detail-row-content.testing-theme {\n background-color: #98057e; }\n .detail-row-content.testing-theme .summary-value-label {\n color: #98057e; }\n .detail-row-content.testing-theme .detail-description-label {\n border-color: #cfac1f; }\n .detail-row-content.testing-theme .detail-note-label {\n border-color: #ffa80f; }\n .detail-row-content.testing-theme .detail-summary {\n border-color: #797979; }\n .detail-row-content.testing-theme .summary-value-label {\n background-color: #797979; }\n :host {\n width: 100%;\n display: block;\n position: absolute; }\n .button-box {\n padding: 0;\n margin-bottom: 20px; }\n .filter-button, .dropdown-button {\n float: right;\n margin-left: 1rem; }\n .row-detail {\n overflow-y: auto; }\n .detail-summary {\n vertical-align: top; }\n .datatable-row-detail {\n overflow-y: auto; }\n .quick-filterable {\n cursor: pointer; }\n .quick-filterable:hover {\n font-weight: bold; }\n .detail-row-content {\n height: 100%;\n width: calc(100% - 30px);\n margin-left: 30px;\n padding: 4px 8px;\n overflow-y: auto; }\n .detail-row-content .detail-description, .detail-row-content .detail-note {\n white-space: pre-wrap;\n margin-bottom: 0.5em; }\n .detail-row-content .detail-description-label, .detail-row-content .detail-note-label, .detail-row-content .detail-summary {\n padding-left: 8px;\n border-left-style: solid;\n border-left-width: 4px; }\n .detail-row-content .divider {\n margin: 1rem 0; }\n .detail-row-content .detail-column {\n overflow: hidden; }\n .detail-row-content .activity-list {\n margin-top: 4px; }\n .detail-row-content .summary-value-container {\n font-size: 12px;\n text-align: left;\n margin-right: 8px;\n display: block; }\n .detail-row-content .summary-value-container, .detail-row-content .summary-value {\n margin-left: 1em;\n overflow: hidden;\n text-overflow: ellipsis; }\n .detail-row-content .summary-value-label {\n padding: 1px 5px;\n height: 18px; }\n" /***/ }), /***/ "./src/app/components/maintenance/maintenance-entrylist.component.ts": /*!***************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-entrylist.component.ts ***! \***************************************************************************/ /*! exports provided: MaintenanceEntrylistComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaintenanceEntrylistComponent", function() { return MaintenanceEntrylistComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @swimlane/ngx-datatable */ "./node_modules/@swimlane/ngx-datatable/release/index.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pipes/counter-to-system-unit.pipe */ "./src/app/pipes/counter-to-system-unit.pipe.ts"); /* harmony import */ var app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); /* harmony import */ var app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/data-cache.service */ "./src/app/services/data-cache.service.ts"); /* harmony import */ var app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/maintenance/maintenance-point.service */ "./src/app/services/maintenance/maintenance-point.service.ts"); /* harmony import */ var app_services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/services/storage/local-storage.service */ "./src/app/services/storage/local-storage.service.ts"); /* harmony import */ var app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/services/time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../configuration */ "./src/app/configuration.ts"); /* harmony import */ var _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../models/fullscreen-config */ "./src/app/models/fullscreen-config.ts"); /* harmony import */ var _models_selection_entry__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../models/selection-entry */ "./src/app/models/selection-entry.ts"); /* harmony import */ var _pipes_days_to_due_time_pipe__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../pipes/days-to-due-time.pipe */ "./src/app/pipes/days-to-due-time.pipe.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _models_column_definition__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./../../models/column-definition */ "./src/app/models/column-definition.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./../../services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var MaintenanceEntrylistComponent = /** @class */ (function () { function MaintenanceEntrylistComponent(_router, _authService, _service, _viewService, _toastService, _configuration, _preserveService, _storageService, _cmsTranslation, _csvConversionService, _daysToDueTimePipe, _timeUtilsService, _cmsTranslationService, _counterToSystemUnitPipe, _l10nDatePipe) { this._router = _router; this._authService = _authService; this._service = _service; this._viewService = _viewService; this._toastService = _toastService; this._configuration = _configuration; this._preserveService = _preserveService; this._storageService = _storageService; this._cmsTranslation = _cmsTranslation; this._csvConversionService = _csvConversionService; this._daysToDueTimePipe = _daysToDueTimePipe; this._timeUtilsService = _timeUtilsService; this._cmsTranslationService = _cmsTranslationService; this._counterToSystemUnitPipe = _counterToSystemUnitPipe; this._l10nDatePipe = _l10nDatePipe; this._timeend = '23:59'; this._pageTitle = 'maintenance_plan'; this._componentName = 'maintenanceEntryList'; this._selectedPageStorageKey = 'maintenanceDataTablePageSelection'; this.columnDefinitions = { group: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('group', 'group'), component: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('component', 'component'), description: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('description', 'description'), note: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('note', 'note'), tags: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('Checks', 'tags'), activities: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('activity', 'activities'), dueTimeInDays: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('due_time', 'dueTimeInDays'), isEstimatedDueTime: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('is_estimated_due_time', 'isEstimatedDueTime'), isCustomerDefined: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('customer', 'isCustomerDefined'), timeCounterCycle: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('time_limit', 'timeCounterCycle'), timeCounterCycleUnit: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('unit', 'timeCounterCycleUnit'), timeCounterDueDate: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('due_at', 'timeCounterDueDate'), primaryCounterName: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('primary_counter_limit', 'primaryCounterName'), primaryCounterType: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('type', 'primaryCounterType'), primaryCounterCycle: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('limit', 'primaryCounterCycle'), primaryCounterActualValue: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('current_value', 'primaryCounterActualValue'), primaryCounterDueValue: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('due_at', 'primaryCounterDueValue'), primaryCounterDeltaValue: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('due_in', 'primaryCounterDeltaValue'), secondaryCounterName: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('secondary_counter_limit', 'secondaryCounterName'), secondaryCounterType: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('type', 'secondaryCounterType'), secondaryCounterCycle: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('limit', 'secondaryCounterCycle'), secondaryCounterActualValue: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('current_value', 'secondaryCounterActualValue'), secondaryCounterDueValue: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('due_at', 'secondaryCounterDueValue'), secondaryCounterDeltaValue: new _models_column_definition__WEBPACK_IMPORTED_MODULE_22__["ColumnDefinition"]('due_in', 'secondaryCounterDeltaValue') }; this.currentVisible = 5; this.entries = []; this.intervals = ['<1 week', '<1 month', '<1 year', '>1 year']; this.selected = []; this.allEntriesSelected = false; this.isLoading = false; this.areAllEntriesExpanded = false; this._currentPage = 1; } Object.defineProperty(MaintenanceEntrylistComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); MaintenanceEntrylistComponent.prototype.ngOnInit = function () { this._viewService.setToolbarTitle(this._pageTitle); this._currentPage = this._storageService.getNumericItem(this._selectedPageStorageKey); this.filter = this._preserveService.getData(this._componentName) ? this._preserveService.getData(this._componentName) : { dateend: undefined, selectedGroups: [], selectedTags: [], filterText: '' }; this.listenForLanguageChanges(); this.fetchGroups(); this.fetchTags(); this.fetchMaintenancePoints(); this.fetchManuals(); }; MaintenanceEntrylistComponent.prototype.ngOnDestroy = function () { if (this._languageChangedSubscription) { this._languageChangedSubscription.unsubscribe(); } if (this._fetchMaintenancePointsRequestSubscription) { this._fetchMaintenancePointsRequestSubscription.unsubscribe(); } this._storageService.setItem(this._selectedPageStorageKey, JSON.stringify(this._currentPage)); }; MaintenanceEntrylistComponent.prototype.listenForLanguageChanges = function () { var _this = this; this._languageChangedSubscription = this._cmsTranslation .languageChangedEvent .subscribe(function () { // when the language changed, fetch the entry // list and groups again, the server will respond // with the correct translations _this.fetchGroups(); _this.fetchMaintenancePoints(); }); }; MaintenanceEntrylistComponent.prototype.onDatePick = function (date) { this.filter.dateend = date; this.filterOnChange(); }; MaintenanceEntrylistComponent.prototype.fetchGroups = function () { var _this = this; this._service .getGroups() .subscribe(function (groups) { _this.groups = groups.map(function (x) { return new _models_selection_entry__WEBPACK_IMPORTED_MODULE_16__["SelectionEntry"](x, x); }); }); }; MaintenanceEntrylistComponent.prototype.fetchTags = function () { var _this = this; this._service .getTags() .subscribe(function (tags) { _this.tags = tags.map(function (x) { return x; }); }); }; MaintenanceEntrylistComponent.prototype.fetchManuals = function () { var _this = this; this._service .getManuals() .subscribe(function (manuals) { _this.manuals = manuals; }); }; MaintenanceEntrylistComponent.prototype.fetchMaintenancePoints = function () { var _this = this; this.isLoading = true; if (!!this._fetchMaintenancePointsRequestSubscription) { this._fetchMaintenancePointsRequestSubscription.unsubscribe(); } this._fetchMaintenancePointsRequestSubscription = this._service .getMaintenancePoints(this.filter.selectedGroups, this.filter.selectedTags, this.filter.dateend, this.filter.filterText) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__["map"])(function (items) { return items; })) .subscribe(function (entries) { _this.selected = []; _this.entries = _this.sortByDate(entries, 'asc'); _this.isLoading = false; // We have to fire update event in this way (we ensure that the event // will be the last one in the event queue) so ngx-datatable will check // that we actually want to see a custom page opened first. _this._currentPage = _this._storageService.getNumericItem(_this._selectedPageStorageKey); setTimeout(function () { return _this.table.onFooterPage({ page: _this.getCurrentPage(_this._currentPage) }); }); }); }; MaintenanceEntrylistComponent.prototype.getCurrentPage = function (offset) { if (this.table != null && this.entries != null) { var maxNumberOfPages = Math.ceil(this.entries.length / this.table.pageSize); return Math.min(offset + 1, Math.max(maxNumberOfPages, 1)); } return 1; }; MaintenanceEntrylistComponent.prototype.sortByDate = function (entries, sort) { return sort.newValue == 'asc' || sort === 'asc' ? entries.sort(function (a, b) { return new Date(a.dueTime).getTime() - new Date(b.dueTime).getTime(); }) : entries.sort(function (b, a) { return new Date(a.dueTime).getTime() - new Date(b.dueTime).getTime(); }); }; MaintenanceEntrylistComponent.prototype.isDueTimeToday = function (dueTimeInDays) { return dueTimeInDays < 1; }; MaintenanceEntrylistComponent.prototype.printPage = function () { var fsConfig = new _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_15__["FullscreenConfig"]('Print preview', _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_15__["FullscreenType"].PrintPreview); fsConfig.screenSettings = { entries: this.entries }; this._viewService.openInFullscreen(fsConfig); }; MaintenanceEntrylistComponent.prototype.filterOnChange = function (newFilterValue) { if (newFilterValue !== undefined) { this.filter.filterText = newFilterValue; } this._preserveService.saveData(this._componentName, this.filter); this.fetchMaintenancePoints(); }; MaintenanceEntrylistComponent.prototype.sendDoneEntries = function () { var _this = this; var donePromise = this._service.markMaintenancePointsAsDone(this.selected).toPromise(); donePromise.then(function () { return _this.fetchMaintenancePoints(); }); donePromise.catch(function (e) { return _this._toastService.showToastAsync('error_occurred_please_try_again_in_1_hour', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_10__["TimeSpan"].Longer, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_21__["NotificationToastType"].Error); }); }; MaintenanceEntrylistComponent.prototype.displayMainManual = function (location) { var fsConfig = new _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_15__["FullscreenConfig"](this._cmsTranslation.translateToCurrentLanguage('manual'), _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_15__["FullscreenType"].PDF); var url = new URL(location, this._configuration.server); if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_18__["AuthService"].permissionViewModalPdfKey)) { fsConfig.screenSettings = { file: url.href }; this._viewService.openInFullscreen(fsConfig); } else { this._viewService.openPdfInNewTab(url.href); } }; MaintenanceEntrylistComponent.prototype.displayManual = function (dto) { if (dto.manual === undefined) { console.error('Tried to show manual on maintenance point that does not have any.'); return; } var url = new URL(dto.manual, this._configuration.server); if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_18__["AuthService"].permissionViewModalPdfKey)) { var fsConfig = new _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_15__["FullscreenConfig"](dto.manualDescription || this._cmsTranslation.translateToCurrentLanguage('manual'), _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_15__["FullscreenType"].PDF); // avoid duplicating // in the url, the server can handle it, // but the angular proxy cannot fsConfig.screenSettings = { file: url.href }; this._viewService.openInFullscreen(fsConfig); } else { this._viewService.openPdfInNewTab(url.href); } }; MaintenanceEntrylistComponent.prototype.hasManual = function (dto) { return !!dto.manual; }; MaintenanceEntrylistComponent.prototype.exportCSV = function () { var _this = this; var daysToDueTimePipe = this._daysToDueTimePipe; var currentLanguage = this._cmsTranslation.currentLanguage; var counterToSystemUnitPipe = this._counterToSystemUnitPipe; var l10nDatePipe = this._l10nDatePipe; this._csvConversionService.saveAsCSV(this._pageTitle, [ this.columnDefinitions.group, this.columnDefinitions.component, this.columnDefinitions.description, this.columnDefinitions.note, this.columnDefinitions.tags, this.columnDefinitions.activities, this.columnDefinitions.dueTimeInDays.addExtractor(function (x, _) { return daysToDueTimePipe.transform(x.dueTimeInDays, currentLanguage); }), this.columnDefinitions.isEstimatedDueTime.addExtractor(function (x, _) { return x.isEstimatedDueTime ? '1' : '0'; }), this.columnDefinitions.isCustomerDefined.addExtractor(function (x, _) { return x.isCustomerDefined ? '1' : '0'; }), this.columnDefinitions.timeCounterCycle, this.columnDefinitions.timeCounterCycleUnit.addExtractor(function (x, _) { return x.timeCounterCycleUnit != null ? types_config__WEBPACK_IMPORTED_MODULE_13__["TimeUnit"][x.timeCounterCycleUnit] : ''; }), this.columnDefinitions.timeCounterDueDate.addExtractor(function (x, _) { if (x.timeCounterDueDate != null) { var due = l10nDatePipe.transform(x.timeCounterDueDate, _this.lang, 'shortDate'); if (due != null) { return due.toString(); } } return ''; }), this.columnDefinitions.primaryCounterName, this.columnDefinitions.primaryCounterType.addExtractor(function (x, _) { return x.primaryCounterType != null ? types_config__WEBPACK_IMPORTED_MODULE_13__["CounterType"][x.primaryCounterType] : ''; }), this.columnDefinitions.primaryCounterCycle.addExtractor(function (x, _) { if (x.primaryCounterCycle != null && x.primaryCounterType != null) { var counterCycle = counterToSystemUnitPipe.transform(x.primaryCounterCycle, x.primaryCounterType); if (counterCycle != null) { return counterCycle.toString(); } } return ''; }), this.columnDefinitions.primaryCounterActualValue.addExtractor(function (x, _) { if (x.primaryCounterActualValue != null && x.primaryCounterType != null) { var actualValue = counterToSystemUnitPipe.transform(x.primaryCounterActualValue, x.primaryCounterType); if (actualValue != null) { return actualValue.toString(); } } return ''; }), this.columnDefinitions.primaryCounterDueValue.addExtractor(function (x, _) { if (x.primaryCounterDueValue != null && x.primaryCounterType != null) { var dueValue = counterToSystemUnitPipe.transform(x.primaryCounterDueValue, x.primaryCounterType); if (dueValue != null) { return dueValue.toString(); } } return ''; }), this.columnDefinitions.primaryCounterDeltaValue.addExtractor(function (x, _) { if (x.primaryCounterDeltaValue != null && x.primaryCounterType != null) { var deltaValue = counterToSystemUnitPipe.transform(x.primaryCounterDeltaValue, x.primaryCounterType); if (deltaValue != null) { return deltaValue.toString(); } } return ''; }), this.columnDefinitions.secondaryCounterName, this.columnDefinitions.secondaryCounterType.addExtractor(function (x, _) { return x.secondaryCounterType != null ? types_config__WEBPACK_IMPORTED_MODULE_13__["CounterType"][x.secondaryCounterType] : ''; }), this.columnDefinitions.secondaryCounterCycle.addExtractor(function (x, _) { if (x.secondaryCounterCycle != null && x.secondaryCounterType != null) { var counterCycle = counterToSystemUnitPipe.transform(x.secondaryCounterCycle, x.secondaryCounterType); if (counterCycle != null) { return counterCycle.toString(); } } return ''; }), this.columnDefinitions.secondaryCounterActualValue.addExtractor(function (x, _) { if (x.secondaryCounterActualValue != null && x.secondaryCounterType != null) { var actualValue = counterToSystemUnitPipe.transform(x.secondaryCounterActualValue, x.secondaryCounterType); if (actualValue != null) { return actualValue.toString(); } } return ''; }), this.columnDefinitions.secondaryCounterDueValue.addExtractor(function (x, _) { if (x.secondaryCounterDueValue != null && x.secondaryCounterType != null) { var dueValue = counterToSystemUnitPipe.transform(x.secondaryCounterDueValue, x.secondaryCounterType); if (dueValue != null) { return dueValue.toString(); } } return ''; }), this.columnDefinitions.secondaryCounterDeltaValue.addExtractor(function (x, _) { if (x.secondaryCounterDeltaValue != null && x.secondaryCounterType != null) { var deltaValue = counterToSystemUnitPipe.transform(x.secondaryCounterDeltaValue, x.secondaryCounterType); if (deltaValue != null) { return deltaValue.toString(); } } return ''; }), ], this.entries); }; MaintenanceEntrylistComponent.prototype.getRowClass = function (row) { return { 'accent-color': (row.isCustomerDefined) }; }; MaintenanceEntrylistComponent.prototype.isExpandable = function (row) { if (row != null) { if (row.activities != null && row.activities.length > 1) { return true; } if (row.tags != null && row.tags.length > 1) { return true; } if (row.description != null && row.description.length > 38) { return true; } if (row.note != null && row.note.length > 30) { return true; } } return false; }; MaintenanceEntrylistComponent.prototype.onSelectionAllUpdated = function (isSelected) { if (isSelected) { this.selected = this.entries.map(function (x) { x.checked = true; return x; }); } else { this.entries.forEach(function (x) { return x.checked = false; }); this.selected = []; } }; MaintenanceEntrylistComponent.prototype.onSelectionUpdated = function (entry) { if (entry.checked) { this.selected.push(entry); } else { var existingSelectedIndex = this.selected.indexOf(entry); this.selected.splice(existingSelectedIndex, 1); } if (this.selected != null && this.entries != null) { this.allEntriesSelected = this.selected.length === this.entries.length; } }; MaintenanceEntrylistComponent.prototype.onLongPress = function (event) { this._toastService.showToastAsync('filtered', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_10__["TimeSpan"].Short, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_21__["NotificationToastType"].Success); this.filter.filterText = event.target.innerText; this.filterOnChange(); }; MaintenanceEntrylistComponent.prototype.onShortPress = function (row) { row.isCustomerDefined ? this._router.navigate(["maintenance/edit/" + row.id]) : this._router.navigate(["maintenance/override/" + row.id]); }; MaintenanceEntrylistComponent.prototype.reset = function (event) { this.filter.filterText = ''; this.filterOnChange(); }; MaintenanceEntrylistComponent.prototype.onPageChange = function (e) { if (e != null && e.offset !== undefined && typeof this._currentPage === typeof e.offset && this._currentPage !== e.offset) { this._currentPage = e.offset; this._storageService.setItem(this._selectedPageStorageKey, JSON.stringify(this._currentPage)); } }; MaintenanceEntrylistComponent.prototype.expand = function (row) { if (this.table != null && this.table.rowDetail != null) { this.table.rowDetail.toggleExpandRow(row); this.areAllEntriesExpanded = this.table.rows.reduce(function (acc, x) { return x != null && x.expanded && acc; }, true); } }; MaintenanceEntrylistComponent.prototype.expandAll = function () { if (this.table != null && this.table.rowDetail != null) { if (this.areAllEntriesExpanded = !this.areAllEntriesExpanded) { this.table.rowDetail.expandAllRows(); } else { this.table.rowDetail.collapseAllRows(); } } }; MaintenanceEntrylistComponent.prototype.getDueDate = function (days) { return new Date(this._timeUtilsService.transformBackendUtcToEffectiveLocalTime(days).getTime()); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('maintenanceEntriesTable'), __metadata("design:type", _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__["DatatableComponent"]) ], MaintenanceEntrylistComponent.prototype, "table", void 0); MaintenanceEntrylistComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'maintenance-entrylist', template: __webpack_require__(/*! ./maintenance-entrylist.component.html */ "./src/app/components/maintenance/maintenance-entrylist.component.html"), styles: [__webpack_require__(/*! ./maintenance-entrylist.component.scss */ "./src/app/components/maintenance/maintenance-entrylist.component.scss")], host: { '[@routeAnimation]': 'true' }, providers: [app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_6__["DataCacheService"], app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_5__["SmartTranslatePipe"], _pipes_days_to_due_time_pipe__WEBPACK_IMPORTED_MODULE_17__["DaysToDueTimePipe"], angular_l10n__WEBPACK_IMPORTED_MODULE_3__["L10nDatePipe"]], animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_20__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _services_auth_service__WEBPACK_IMPORTED_MODULE_18__["AuthService"], app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_7__["MaintenancePointService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_11__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_10__["ToastService"], _configuration__WEBPACK_IMPORTED_MODULE_14__["Configuration"], app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_6__["DataCacheService"], app_services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_8__["LocalStorageService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_19__["CmsTranslationService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_23__["CSVConversionService"], _pipes_days_to_due_time_pipe__WEBPACK_IMPORTED_MODULE_17__["DaysToDueTimePipe"], app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_9__["TimeUtilsService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_19__["CmsTranslationService"], app_pipes_counter_to_system_unit_pipe__WEBPACK_IMPORTED_MODULE_4__["CounterToSystemUnitPipe"], angular_l10n__WEBPACK_IMPORTED_MODULE_3__["L10nDatePipe"]]) ], MaintenanceEntrylistComponent); return MaintenanceEntrylistComponent; }()); /***/ }), /***/ "./src/app/components/maintenance/maintenance-history.component.html": /*!***************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-history.component.html ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n\n
    \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n\n
    \n
    \n \n
    \n\n
    \n \n \n\n
    \n
    \n \n
    \n\n
    \n \n
    \n
    \n\n
    \n \n\n \n \n \n
    \n
    \n description\n {{row.description}}\n
    \n
    \n note\n {{row.note}}\n
    \n
    \n\n
    \n
    \n
    activity:
    \n
      0\">\n
    • \n {{i + 1}}\n  {{activity}}\n
    • \n
    \n
    \n
    \n
    details:
    \n
    \n scheduled_date\n {{ row.scheduledDate | l10nDate:lang:'longDate' }}\n
    \n
    \n execution_date\n {{ row.executionDate | l10nDate:lang:'longDate' }}\n
    \n
    \n
    \n
    \n
    \n
    \n\n \n \n
    \n
    \n \n
    \n
    \n
    \n\n \n \n {{columnDefinitions.group.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.component.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.description.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.note.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.doneBy.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.activities.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.executionDate.headerName}}\n \n \n {{value | l10nDate:lang:'longDate'}}\n \n \n\n
    \n\n\n
    \n" /***/ }), /***/ "./src/app/components/maintenance/maintenance-history.component.scss": /*!***************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-history.component.scss ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".detail-row-content.default-theme {\n background-color: #ffffff; }\n .detail-row-content.default-theme .summary-value-label {\n color: #ffffff; }\n .detail-row-content.default-theme .detail-description-label {\n border-color: #1561a1; }\n .detail-row-content.default-theme .detail-note-label {\n border-color: #ffa80f; }\n .detail-row-content.default-theme .detail-summary {\n border-color: #69727e; }\n .detail-row-content.default-theme .summary-value-label {\n background-color: #69727e; }\n .detail-row-content.testing-theme {\n background-color: #98057e; }\n .detail-row-content.testing-theme .summary-value-label {\n color: #98057e; }\n .detail-row-content.testing-theme .detail-description-label {\n border-color: #cfac1f; }\n .detail-row-content.testing-theme .detail-note-label {\n border-color: #ffa80f; }\n .detail-row-content.testing-theme .detail-summary {\n border-color: #797979; }\n .detail-row-content.testing-theme .summary-value-label {\n background-color: #797979; }\n :host {\n width: 100%;\n display: block;\n position: absolute; }\n .button-box {\n padding: 0;\n margin-bottom: 20px; }\n .filter-button, .dropdown-button {\n float: right;\n margin-left: 1rem; }\n .row-detail {\n overflow-y: auto; }\n .detail-summary {\n vertical-align: top; }\n .datatable-row-detail {\n overflow-y: auto; }\n .quick-filterable {\n cursor: pointer; }\n .quick-filterable:hover {\n font-weight: bold; }\n .detail-row-content {\n height: 100%;\n width: calc(100% - 30px);\n margin-left: 30px;\n padding: 4px 8px;\n overflow-y: auto; }\n .detail-row-content .detail-description, .detail-row-content .detail-note {\n white-space: pre-wrap;\n margin-bottom: 0.5em; }\n .detail-row-content .detail-description-label, .detail-row-content .detail-note-label, .detail-row-content .detail-summary {\n padding-left: 8px;\n border-left-style: solid;\n border-left-width: 4px; }\n .detail-row-content .divider {\n margin: 1rem 0; }\n .detail-row-content .detail-column {\n overflow: hidden; }\n .detail-row-content .activity-list {\n margin-top: 4px; }\n .detail-row-content .summary-value-container {\n font-size: 12px;\n text-align: left;\n margin-right: 8px;\n display: block; }\n .detail-row-content .summary-value-container, .detail-row-content .summary-value {\n margin-left: 1em;\n overflow: hidden;\n text-overflow: ellipsis; }\n .detail-row-content .summary-value-label {\n padding: 1px 5px;\n height: 18px; }\n" /***/ }), /***/ "./src/app/components/maintenance/maintenance-history.component.ts": /*!*************************************************************************!*\ !*** ./src/app/components/maintenance/maintenance-history.component.ts ***! \*************************************************************************/ /*! exports provided: MaintenanceHistoryComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaintenanceHistoryComponent", function() { return MaintenanceHistoryComponent; }); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @swimlane/ngx-datatable */ "./node_modules/@swimlane/ngx-datatable/release/index.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/data-cache.service */ "./src/app/services/data-cache.service.ts"); /* harmony import */ var app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/maintenance/maintenance-point.service */ "./src/app/services/maintenance/maintenance-point.service.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _models_column_definition__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../models/column-definition */ "./src/app/models/column-definition.ts"); /* harmony import */ var _models_selection_entry__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../models/selection-entry */ "./src/app/models/selection-entry.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../localizedtimepicker/localizedtimepicker.component */ "./src/app/components/localizedtimepicker/localizedtimepicker.component.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var MaintenanceHistoryComponent = /** @class */ (function () { function MaintenanceHistoryComponent(_cmsTranslation, _service, _viewService, _toastService, _preserveService, _csvConversionService, _cmsTranslationService, _l10nDatePipe) { this._cmsTranslation = _cmsTranslation; this._service = _service; this._viewService = _viewService; this._toastService = _toastService; this._preserveService = _preserveService; this._csvConversionService = _csvConversionService; this._cmsTranslationService = _cmsTranslationService; this._l10nDatePipe = _l10nDatePipe; this._pageTitle = 'maintenance_plan_-_history'; this._componentName = 'maintenanceHistory'; this._requestPipelineSubject = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"](); this._requestPipeline = this._requestPipelineSubject.asObservable(); this.columnDefinitions = { group: new _models_column_definition__WEBPACK_IMPORTED_MODULE_9__["ColumnDefinition"]('group', 'group'), component: new _models_column_definition__WEBPACK_IMPORTED_MODULE_9__["ColumnDefinition"]('component', 'component'), description: new _models_column_definition__WEBPACK_IMPORTED_MODULE_9__["ColumnDefinition"]('description', 'description'), note: new _models_column_definition__WEBPACK_IMPORTED_MODULE_9__["ColumnDefinition"]('note', 'note'), doneBy: new _models_column_definition__WEBPACK_IMPORTED_MODULE_9__["ColumnDefinition"]('user', 'doneBy'), activities: new _models_column_definition__WEBPACK_IMPORTED_MODULE_9__["ColumnDefinition"]('activity', 'activities'), scheduledDate: new _models_column_definition__WEBPACK_IMPORTED_MODULE_9__["ColumnDefinition"]('scheduled_date', 'scheduledDate'), executionDate: new _models_column_definition__WEBPACK_IMPORTED_MODULE_9__["ColumnDefinition"]('execution_date', 'executionDate') }; this.isLoading = false; this.entries = []; this.areAllEntriesExpanded = false; } MaintenanceHistoryComponent.prototype.onDateStartPick = function (dateStart) { this.isDateStartSet = !!dateStart; if (!this.isDateStartSet) { this.startTimePicker.deleteTime(); } else if (!this.hasStartTime()) { this.startTimePicker.resetTime(); } this.filter.fromDate = dateStart; this.queueRequestFilter(this.filter); }; MaintenanceHistoryComponent.prototype.onDateEndPick = function (dateEnd) { this.isDateEndSet = !!dateEnd; if (!this.isDateEndSet) { this.endTimePicker.deleteTime(); } else if (!this.hasEndTime()) { this.endTimePicker.resetTime(); } this.filter.toDate = dateEnd; this.queueRequestFilter(this.filter); }; MaintenanceHistoryComponent.prototype.onTimeStartPick = function (timeStart) { this.filter.fromTime = timeStart; this.queueRequestFilter(this.filter); }; MaintenanceHistoryComponent.prototype.onTimeEndPick = function (timeEnd) { this.filter.toTime = timeEnd; this.queueRequestFilter(this.filter); }; MaintenanceHistoryComponent.prototype.hasStartTime = function () { return this.isValidTime(this.filter.fromTime); }; MaintenanceHistoryComponent.prototype.hasEndTime = function () { return this.isValidTime(this.filter.toTime); }; MaintenanceHistoryComponent.prototype.isValidTime = function (time) { return !!time && time.trim().length > 0; }; Object.defineProperty(MaintenanceHistoryComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); MaintenanceHistoryComponent.prototype.ngOnInit = function () { var _this = this; this._viewService.setToolbarTitle(this._pageTitle); this._requestPipeline .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["distinctUntilChanged"])(function (a, b) { return JSON.stringify(a) === JSON.stringify(b); })) .subscribe(function (filter) { return _this.fetchMaintenancePoints(filter); }); var today = new Date(); var oneMonthFromNow = new Date(); oneMonthFromNow.setMonth(today.getMonth() - 1); this.filter = this._preserveService.getData(this._componentName) ? this._preserveService.getData(this._componentName) : { fromDate: oneMonthFromNow, fromTime: '00:00', toDate: today, toTime: '23:59', selectedGroups: [], filterText: '' }; this.listenForLanguageChanges(); this.fetchGroups(); this.queueRequestFilter(this.filter); }; MaintenanceHistoryComponent.prototype.ngOnDestroy = function () { if (this._languageChangedSubscription) { this._languageChangedSubscription.unsubscribe(); } if (this._fetchMaintenancePointsRequestSubscription) { this._fetchMaintenancePointsRequestSubscription.unsubscribe(); } }; MaintenanceHistoryComponent.prototype.listenForLanguageChanges = function () { var _this = this; this._languageChangedSubscription = this._cmsTranslation .languageChangedEvent .subscribe(function () { // when the language changed, fetch the entry // list and groups again, the server will respond // with the correct translations _this.fetchGroups(); _this.fetchMaintenancePoints(_this.filter); }); }; MaintenanceHistoryComponent.prototype.fetchGroups = function () { var _this = this; this._service .getGroups() .subscribe(function (groups) { _this.groups = groups.map(function (x) { return new _models_selection_entry__WEBPACK_IMPORTED_MODULE_10__["SelectionEntry"](x, x); }); }); }; MaintenanceHistoryComponent.prototype.queueRequestFilter = function (filter) { var newFilter = Object.assign({}, filter); this._requestPipelineSubject.next(newFilter); }; MaintenanceHistoryComponent.prototype.fetchMaintenancePoints = function (filter) { var _this = this; this.isLoading = true; if (this._fetchMaintenancePointsRequestSubscription != null) { this._fetchMaintenancePointsRequestSubscription.unsubscribe(); } this._fetchMaintenancePointsRequestSubscription = this._service .getMaintenancePointsHistory(filter.fromDate, filter.fromTime, filter.toDate, filter.toTime, filter.selectedGroups, filter.filterText) .subscribe(function (entries) { _this.entries = entries; _this.isLoading = false; }); }; MaintenanceHistoryComponent.prototype.filterOnChange = function (newFilterValue) { if (newFilterValue !== undefined) { this.filter.filterText = newFilterValue; } this._preserveService.saveData(this._componentName, this.filter); this.queueRequestFilter(this.filter); }; MaintenanceHistoryComponent.prototype.exportCSV = function () { var l10nDatePipe = this._l10nDatePipe; this._csvConversionService.saveAsCSV(this._pageTitle, [ this.columnDefinitions.group, this.columnDefinitions.component, this.columnDefinitions.description, this.columnDefinitions.note, this.columnDefinitions.activities, this.columnDefinitions.doneBy, this.columnDefinitions.scheduledDate.addExtractor(function (x, t) { var val = l10nDatePipe.transform(x.scheduledDate, t.currentLanguage, 'shortDate'); return val != null ? val : ''; }), this.columnDefinitions.executionDate.addExtractor(function (x, t) { var val = l10nDatePipe.transform(x.executionDate, t.currentLanguage, 'shortDate'); return val != null ? val : ''; }) ], this.entries); }; MaintenanceHistoryComponent.prototype.isExpandable = function (row) { if (row != null) { if (row.activities != null && row.activities.length > 1) { return true; } if (row.description != null && row.description.length > 38) { return true; } if (row.note != null && row.note.length > 30) { return true; } } return false; }; MaintenanceHistoryComponent.prototype.expand = function (row) { if (this.table != null && this.table.rowDetail != null) { this.table.rowDetail.toggleExpandRow(row); this.areAllEntriesExpanded = this.table.rows.reduce(function (acc, x) { return x != null && x.expanded && acc; }, true); } }; MaintenanceHistoryComponent.prototype.expandAll = function () { if (this.table != null && this.table.rowDetail != null) { if (this.areAllEntriesExpanded = !this.areAllEntriesExpanded) { this.table.rowDetail.expandAllRows(); } else { this.table.rowDetail.collapseAllRows(); } } }; MaintenanceHistoryComponent.prototype.onLongPress = function (event) { this._toastService.showToastAsync('filtered', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_5__["TimeSpan"].Short, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_15__["NotificationToastType"].Success); this.filter.filterText = event.target.innerText; this.filterOnChange(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('maintenanceEntriesTable'), __metadata("design:type", _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_0__["DatatableComponent"]) ], MaintenanceHistoryComponent.prototype, "table", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('startTimePicker'), __metadata("design:type", _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_14__["LocalizedtimepickerComponent"]) ], MaintenanceHistoryComponent.prototype, "startTimePicker", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('endTimePicker'), __metadata("design:type", _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_14__["LocalizedtimepickerComponent"]) ], MaintenanceHistoryComponent.prototype, "endTimePicker", void 0); MaintenanceHistoryComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'maintenance-history', template: __webpack_require__(/*! ./maintenance-history.component.html */ "./src/app/components/maintenance/maintenance-history.component.html"), styles: [__webpack_require__(/*! ./maintenance-history.component.scss */ "./src/app/components/maintenance/maintenance-history.component.scss")], host: { '[@routeAnimation]': 'true' }, providers: [app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_3__["DataCacheService"], angular_l10n__WEBPACK_IMPORTED_MODULE_2__["L10nDatePipe"]], animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_13__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_11__["CmsTranslationService"], app_services_maintenance_maintenance_point_service__WEBPACK_IMPORTED_MODULE_4__["MaintenancePointService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_6__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_5__["ToastService"], app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_3__["DataCacheService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_12__["CSVConversionService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_11__["CmsTranslationService"], angular_l10n__WEBPACK_IMPORTED_MODULE_2__["L10nDatePipe"]]) ], MaintenanceHistoryComponent); return MaintenanceHistoryComponent; }()); /***/ }), /***/ "./src/app/components/maintenance/maintenance.component.html": /*!*******************************************************************!*\ !*** ./src/app/components/maintenance/maintenance.component.html ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n\n\n\n" /***/ }), /***/ "./src/app/components/maintenance/maintenance.component.scss": /*!*******************************************************************!*\ !*** ./src/app/components/maintenance/maintenance.component.scss ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/maintenance/maintenance.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/maintenance/maintenance.component.ts ***! \*****************************************************************/ /*! exports provided: MaintenanceComponent, MAINTENANCE_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaintenanceComponent", function() { return MaintenanceComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAINTENANCE_CHILD_ROUTES", function() { return MAINTENANCE_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _maintenance_entrylist_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./maintenance-entrylist.component */ "./src/app/components/maintenance/maintenance-entrylist.component.ts"); /* harmony import */ var _maintenance_history_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./maintenance-history.component */ "./src/app/components/maintenance/maintenance-history.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var MaintenanceComponent = /** @class */ (function () { function MaintenanceComponent() { } MaintenanceComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'maintenance', template: __webpack_require__(/*! ./maintenance.component.html */ "./src/app/components/maintenance/maintenance.component.html"), styles: [__webpack_require__(/*! ./maintenance.component.scss */ "./src/app/components/maintenance/maintenance.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_1__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", []) ], MaintenanceComponent); return MaintenanceComponent; }()); var MAINTENANCE_CHILD_ROUTES = [ { path: '', redirectTo: 'entries', pathMatch: 'full' }, { path: 'entries', component: _maintenance_entrylist_component__WEBPACK_IMPORTED_MODULE_2__["MaintenanceEntrylistComponent"] }, { path: 'history', component: _maintenance_history_component__WEBPACK_IMPORTED_MODULE_3__["MaintenanceHistoryComponent"] } ]; /***/ }), /***/ "./src/app/components/modals/about-page/about-page.component.html": /*!************************************************************************!*\ !*** ./src/app/components/modals/about-page/about-page.component.html ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    crane_name{{craneConfig.craneName}}
    cms_version{{craneConfig.cmsVersion}}
    login_location{{loginLocation}}
    export_file_version{{craneConfig.plcVersion}}
    pdc_version{{craneConfig.pdcVersion}}
    plc_provider{{craneConfig.plcDataProvider}}
    plc_type{{craneConfig.plcType}}
    plc_ip_address{{craneConfig.plcIpAddress}}
    plc_slot{{craneConfig.plcSlot}}
    plc_rack{{craneConfig.plcRack}}
    \n \n \n \n \n \n
    \n https://www.kuenz.com\n \n \n
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/modals/about-page/about-page.component.scss": /*!************************************************************************!*\ !*** ./src/app/components/modals/about-page/about-page.component.scss ***! \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#about-page .modal-content {\n text-align: center; }\n\n#about-page table {\n width: 100%; }\n\n#about-page table tr .title {\n padding-left: 8px;\n font-weight: bold; }\n\n#about-page table tr .value {\n padding-right: 8px; }\n\n#about-page table tr .text-right {\n text-align: right; }\n\n#about-page table tr .text-left {\n text-align: left; }\n\n#about-page table tr .logo {\n padding-top: 0; }\n\n#about-page table tr .logo i {\n font-size: 160px;\n line-height: 80px;\n height: 80px;\n vertical-align: middle;\n display: inline-block; }\n\n#about-page table tr:nth-child(even) {\n background-color: #f2f2f2; }\n\n#about-page td {\n padding: 8px 4px; }\n" /***/ }), /***/ "./src/app/components/modals/about-page/about-page.component.ts": /*!**********************************************************************!*\ !*** ./src/app/components/modals/about-page/about-page.component.ts ***! \**********************************************************************/ /*! exports provided: AboutPageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AboutPageComponent", function() { return AboutPageComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/storage/local-storage.service */ "./src/app/services/storage/local-storage.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _services_metrics_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../services/metrics.service */ "./src/app/services/metrics.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AboutPageComponent = /** @class */ (function () { function AboutPageComponent(configService, _authService, _storageService, _metricsService) { this._authService = _authService; this._storageService = _storageService; this._metricsService = _metricsService; this.craneConfig = configService.craneConfig; this.loginLocation = types_config__WEBPACK_IMPORTED_MODULE_4__["LoginLocation"][_authService.loginLocation]; } AboutPageComponent.prototype.hardReloadClient = function () { var userName = this._authService.getClaimIdentityName(); this._metricsService.Log(userName, undefined, 'Hard client reload was requested.'); var userToken = this._storageService.getItem(app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["TokenStorageKey"]); var loginLocation = this._storageService.getItem(app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["LoginLocationKey"]); var defaultLocale = this._storageService.getItem(app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["DefaultLocaleStorageKey"]); this._storageService.clear(); this._metricsService.Log(userName, undefined, 'Cleared storage in context of hard client reload.'); this._storageService.setItem(app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["TokenStorageKey"], userToken); this._storageService.setItem(app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["LoginLocationKey"], loginLocation); this._storageService.setItem(app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["DefaultLocaleStorageKey"], defaultLocale); this._metricsService.Log(userName, undefined, 'Performing hard client reload programmatically.'); // Actually reloading. window.location.reload(true); }; Object.defineProperty(AboutPageComponent.prototype, "maxHeight", { get: function () { return 630; }, enumerable: true, configurable: true }); Object.defineProperty(AboutPageComponent.prototype, "maxWidth", { get: function () { return 900; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", []) ], AboutPageComponent.prototype, "maxHeight", null); AboutPageComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'about-page', styles: [__webpack_require__(/*! ./about-page.component.scss */ "./src/app/components/modals/about-page/about-page.component.scss")], template: __webpack_require__(/*! ./about-page.component.html */ "./src/app/components/modals/about-page/about-page.component.html") }), __metadata("design:paramtypes", [app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"], app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"], app_services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_3__["LocalStorageService"], _services_metrics_service__WEBPACK_IMPORTED_MODULE_5__["MetricsService"]]) ], AboutPageComponent); return AboutPageComponent; }()); /***/ }), /***/ "./src/app/components/modals/account-settings/account-settings.component.html": /*!************************************************************************************!*\ !*** ./src/app/components/modals/account-settings/account-settings.component.html ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/modals/account-settings/account-settings.component.scss": /*!************************************************************************************!*\ !*** ./src/app/components/modals/account-settings/account-settings.component.scss ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#account-settings-view .modal-footer {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 0px 24px; }\n #account-settings-view .modal-footer .btn {\n margin: 0; }\n .switch label {\n line-height: 36px; }\n" /***/ }), /***/ "./src/app/components/modals/account-settings/account-settings.component.ts": /*!**********************************************************************************!*\ !*** ./src/app/components/modals/account-settings/account-settings.component.ts ***! \**********************************************************************************/ /*! exports provided: AccountSettingsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AccountSettingsComponent", function() { return AccountSettingsComponent; }); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/user-data/user-data.service */ "./src/app/services/user-data/user-data.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _services_inactivity_detector__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../services/inactivity-detector */ "./src/app/services/inactivity-detector.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AccountSettingsComponent = /** @class */ (function () { function AccountSettingsComponent(_toastService, _userDataService, _inactivityService) { this._toastService = _toastService; this._userDataService = _userDataService; this._inactivityService = _inactivityService; this._closeCommandSubject = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"](); this.closeCommand = this._closeCommandSubject.asObservable(); } AccountSettingsComponent.prototype.ngOnInit = function () { // clone object to avoid modification in source object this.userData = Object.assign({}, this._userDataService.userData); this.passwordChangeData = { currentPassword: '', newPassword: '' }; }; Object.defineProperty(AccountSettingsComponent.prototype, "screenSettings", { set: function (value) { }, enumerable: true, configurable: true }); Object.defineProperty(AccountSettingsComponent.prototype, "maxHeight", { get: function () { return 390; }, enumerable: true, configurable: true }); Object.defineProperty(AccountSettingsComponent.prototype, "maxWidth", { get: function () { return 900; }, enumerable: true, configurable: true }); AccountSettingsComponent.prototype.toValidationClass = function (value) { if (!(this.form != null) || !this.form.dirty) { return value ? null : 'invalid'; } return value ? 'valid' : 'invalid'; }; Object.defineProperty(AccountSettingsComponent.prototype, "isAccountUpdateRequired", { get: function () { return this._userDataService.userData.autoLogout != this.userData.autoLogout; }, enumerable: true, configurable: true }); Object.defineProperty(AccountSettingsComponent.prototype, "isPasswordChangeRequired", { get: function () { if (this.updatePassword) { if (this.passwordChangeData.newPassword.length === 0) { return false; } if (this.passwordChangeData.newPassword.length < 2) { return false; } if (!this.confirmNewPassword) { return false; } if (this.passwordChangeData.newPassword === this.passwordChangeData.currentPassword) { return false; } if (this.confirmNewPassword !== this.passwordChangeData.newPassword) { return false; } return true; } return false; }, enumerable: true, configurable: true }); AccountSettingsComponent.prototype.toggleChangePassword = function () { this.updatePassword = !this.updatePassword; }; Object.defineProperty(AccountSettingsComponent.prototype, "updateAccountObservable", { get: function () { var _this = this; return this._userDataService.updateUserData(this.userData) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(function (err) { var errorMsg = 'failed_to_update_account'; console.error(errorMsg + " (" + err + ")"); _this.displayErrorFeedback(errorMsg); return rxjs__WEBPACK_IMPORTED_MODULE_3__["Observable"].throw(err); }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["tap"])(function () { var autoLogoutChanged = _this._userDataService.userData.autoLogout !== _this.userData.autoLogout; // reload data in user-data.service after updating _this._userDataService.loadUserData().subscribe(function () { // start/stop inactivity detector after updates on "autoLogout" if (autoLogoutChanged) { _this._userDataService.userData.autoLogout ? _this._inactivityService.start() : _this._inactivityService.start(); } }); _this.displaySuccessFeedback('account_updated'); })); }, enumerable: true, configurable: true }); Object.defineProperty(AccountSettingsComponent.prototype, "changePasswordObservable", { get: function () { var _this = this; return this._userDataService.changePassword(this.passwordChangeData) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(function (err) { var errorMsg = 'failed_to_change_password'; console.error(errorMsg + " (" + err + ")"); _this.displayErrorFeedback(errorMsg); return rxjs__WEBPACK_IMPORTED_MODULE_3__["Observable"].throw(err); }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["tap"])(function () { _this.displaySuccessFeedback('password_changed'); })); }, enumerable: true, configurable: true }); AccountSettingsComponent.prototype.updateAccount = function () { var _this = this; var requests = []; if (this.isAccountUpdateRequired) { this._userDataService.userData = this.userData; requests.push(this.updateAccountObservable); } if (this.isPasswordChangeRequired) { requests.push(this.changePasswordObservable); } // try to update userdata and/or password Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["forkJoin"])(requests) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["take"])(1)) .subscribe(function () { // close modal on success _this._closeCommandSubject.next(true); }, function (error) { console.error("Failed to update account information (" + error + ")"); }); }; AccountSettingsComponent.prototype.displaySuccessFeedback = function (message) { this._toastService.showToastAsync(message, app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__["TimeSpan"].Long, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_5__["NotificationToastType"].Success); }; AccountSettingsComponent.prototype.displayErrorFeedback = function (message) { this._toastService.showToastAsync(message, app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__["TimeSpan"].Long, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_5__["NotificationToastType"].Error); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('form'), __metadata("design:type", _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgForm"]) ], AccountSettingsComponent.prototype, "form", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], AccountSettingsComponent.prototype, "screenSettings", null); AccountSettingsComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'account-settings', styles: [__webpack_require__(/*! ./account-settings.component.scss */ "./src/app/components/modals/account-settings/account-settings.component.scss")], template: __webpack_require__(/*! ./account-settings.component.html */ "./src/app/components/modals/account-settings/account-settings.component.html") }), __metadata("design:paramtypes", [app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__["ToastService"], app_services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_2__["UserDataService"], _services_inactivity_detector__WEBPACK_IMPORTED_MODULE_6__["InactivityDetectorService"]]) ], AccountSettingsComponent); return AccountSettingsComponent; }()); /***/ }), /***/ "./src/app/components/modals/connection-modal.component.html": /*!*******************************************************************!*\ !*** ./src/app/components/modals/connection-modal.component.html ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n \n

    connection_error

    \n

    trying_to_reconnect

    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/modals/connection-modal.component.scss": /*!*******************************************************************!*\ !*** ./src/app/components/modals/connection-modal.component.scss ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#connection-modal.default-theme {\n border-top: solid #f11d40 4px; }\n #connection-modal.default-theme i {\n background-color: #d4d7da; }\n #connection-modal.default-theme i {\n color: #f11d40; }\n #connection-modal.testing-theme {\n border-top: solid #f11d40 4px; }\n #connection-modal.testing-theme i {\n background-color: #d4d7da; }\n #connection-modal.testing-theme i {\n color: #f11d40; }\n #connection-modal {\n z-index: 1008 !important; }\n #connection-modal .modal-content {\n text-align: center;\n margin: 40px; }\n #connection-modal i {\n width: 80px;\n height: 80px;\n padding-top: 16px;\n font-size: 3rem;\n border-radius: 50%;\n margin: 0 auto; }\n #connection-modal h4 {\n text-transform: uppercase;\n margin-top: 40px; }\n" /***/ }), /***/ "./src/app/components/modals/connection-modal.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/modals/connection-modal.component.ts ***! \*****************************************************************/ /*! exports provided: ConnectionModalComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectionModalComponent", function() { return ConnectionModalComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var app_services_signalr_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/signalr.service */ "./src/app/services/signalr.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ConnectionModalComponent = /** @class */ (function () { function ConnectionModalComponent(_signalRService, _viewService) { this._signalRService = _signalRService; this._viewService = _viewService; this.modalActions = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } ConnectionModalComponent.prototype.update = function (isAlive) { if (isAlive) { this.modalActions.emit({ action: 'modal', params: ['close'] }); this._viewService.activateFullModalOverlay = false; } else { this._viewService.closeQuickview(); this.modalActions.emit({ action: 'modal', params: ['open'] }); this._viewService.activateFullModalOverlay = true; } }; ConnectionModalComponent.prototype.ngOnInit = function () { var _this = this; this._aliveSubscription = this._signalRService.isCoreFunctionalityAlive.subscribe(function (res) { return _this.update(res); }, function (err) { return console.log("error: " + err); }, function () { return console.log('completed'); }); }; ConnectionModalComponent.prototype.ngOnDestroy = function () { this._aliveSubscription.unsubscribe(); }; ConnectionModalComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'connection-modal', template: __webpack_require__(/*! ./connection-modal.component.html */ "./src/app/components/modals/connection-modal.component.html"), styles: [__webpack_require__(/*! ./connection-modal.component.scss */ "./src/app/components/modals/connection-modal.component.scss")] }), __metadata("design:paramtypes", [app_services_signalr_service__WEBPACK_IMPORTED_MODULE_2__["SignalRService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_1__["ViewService"]]) ], ConnectionModalComponent); return ConnectionModalComponent; }()); /***/ }), /***/ "./src/app/components/modals/fullscreen-modal.component.html": /*!*******************************************************************!*\ !*** ./src/app/components/modals/fullscreen-modal.component.html ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    {{config?.title}}
    \n
    \n
    \n
    \n
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/modals/fullscreen-modal.component.scss": /*!*******************************************************************!*\ !*** ./src/app/components/modals/fullscreen-modal.component.scss ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#fullscreen-modal.default-theme .modal-header {\n background-color: #ffffff; }\n\n#fullscreen-modal.default-theme .modal-header .buttons i:hover {\n background-color: #f9a4b2; }\n\n#fullscreen-modal.testing-theme .modal-header {\n background-color: #ffffff; }\n\n#fullscreen-modal.testing-theme .modal-header .buttons i:hover {\n background-color: #f9a4b2; }\n\n#fullscreen-modal {\n z-index: 1009 !important;\n top: 5% !important;\n bottom: 5% !important;\n max-height: inherit !important;\n width: 85%;\n overflow-y: inherit !important; }\n\n#fullscreen-modal .modal-header {\n height: 48px; }\n\n#fullscreen-modal .modal-header .title {\n line-height: 48px;\n margin-left: 16px;\n font-size: 1.2rem;\n float: left; }\n\n#fullscreen-modal .modal-header .buttons {\n float: right; }\n\n#fullscreen-modal .modal-header .buttons i {\n width: 48px;\n height: 48px;\n text-align: center;\n line-height: 48px;\n cursor: pointer; }\n\n#fullscreen-modal .modal-header .buttons i:hover, #fullscreen-modal .modal-header .buttons i:active {\n color: white; }\n\n#fullscreen-modal .modal-content {\n padding: 0;\n overflow-y: auto;\n margin-top: 2px;\n height: calc(100% - 52px); }\n" /***/ }), /***/ "./src/app/components/modals/fullscreen-modal.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/modals/fullscreen-modal.component.ts ***! \*****************************************************************/ /*! exports provided: FullscreenModalComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FullscreenModalComponent", function() { return FullscreenModalComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_components_modals_fullscreen_print_preview_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/components/modals/fullscreen-print-preview.component */ "./src/app/components/modals/fullscreen-print-preview.component.ts"); /* harmony import */ var _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/fullscreen-config */ "./src/app/models/fullscreen-config.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _fullscreen_fullscreen_pdf_viewer_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../fullscreen/fullscreen-pdf-viewer.component */ "./src/app/components/fullscreen/fullscreen-pdf-viewer.component.ts"); /* harmony import */ var _account_settings_account_settings_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./account-settings/account-settings.component */ "./src/app/components/modals/account-settings/account-settings.component.ts"); /* harmony import */ var _notification_log_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./notification-log.component */ "./src/app/components/modals/notification-log.component.ts"); /* harmony import */ var _about_page_about_page_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./about-page/about-page.component */ "./src/app/components/modals/about-page/about-page.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var FullscreenModalComponent = /** @class */ (function () { function FullscreenModalComponent(_viewService, _componentFactoryResolver) { var _this = this; this._viewService = _viewService; this._componentFactoryResolver = _componentFactoryResolver; this.modalParams = { dismissible: true, opacity: .4, complete: function () { _this.disposeDynamicContent(); } }; this.modalActions = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this._screenTypeMapping = {}; this._screenTypeMapping[_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__["FullscreenType"].PDF] = _fullscreen_fullscreen_pdf_viewer_component__WEBPACK_IMPORTED_MODULE_4__["FullscreenPdfViewerComponent"]; this._screenTypeMapping[_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__["FullscreenType"].PrintPreview] = app_components_modals_fullscreen_print_preview_component__WEBPACK_IMPORTED_MODULE_1__["FullscreenPrintPreviewComponent"]; this._screenTypeMapping[_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__["FullscreenType"].AccountSettings] = _account_settings_account_settings_component__WEBPACK_IMPORTED_MODULE_5__["AccountSettingsComponent"]; this._screenTypeMapping[_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__["FullscreenType"].AboutCMS] = _about_page_about_page_component__WEBPACK_IMPORTED_MODULE_7__["AboutPageComponent"]; this._screenTypeMapping[_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__["FullscreenType"].DatapointValueLog] = _notification_log_component__WEBPACK_IMPORTED_MODULE_6__["NotificationLogComponent"]; } FullscreenModalComponent.prototype.ngOnInit = function () { var _this = this; this._viewServiceSubscription = this._viewService.fullscreenContent.subscribe(function (config) { _this.config = config; if (_this._fullscreenComponent) { // dispose existing components _this.disposeDynamicContent(); } if (_this.config) { _this.loadDynamicContent(); _this.setVisible = true; } }, function (err) { console.log("error: " + err); }, function () { console.log('completed'); }); }; FullscreenModalComponent.prototype.ngOnDestroy = function () { this._viewServiceSubscription.unsubscribe(); }; Object.defineProperty(FullscreenModalComponent.prototype, "setVisible", { set: function (visible) { var angularMaterializeAction = { action: 'modal', params: [visible ? 'open' : 'close'] }; this.modalActions.emit(angularMaterializeAction); }, enumerable: true, configurable: true }); FullscreenModalComponent.prototype.getComponentType = function (screenType) { var type = this._screenTypeMapping[screenType]; return type; }; FullscreenModalComponent.prototype.loadDynamicContent = function () { var _this = this; var componentType = this.getComponentType(this.config.type); var factory = this._componentFactoryResolver.resolveComponentFactory(componentType); this._componentRef = this.container.createComponent(factory); this._viewService.activateFullModalOverlay = true; this._fullscreenComponent = this._componentRef.instance; this._fullscreenComponent.screenSettings = this.config.screenSettings; if (this._fullscreenComponent.closeCommand) { this._closeSubscription = this._fullscreenComponent.closeCommand.subscribe(function () { _this.setVisible = false; }); } }; Object.defineProperty(FullscreenModalComponent.prototype, "maxHeight", { get: function () { if (this._fullscreenComponent) { return this._fullscreenComponent.maxHeight; } return undefined; }, enumerable: true, configurable: true }); Object.defineProperty(FullscreenModalComponent.prototype, "maxWidth", { get: function () { if (this._fullscreenComponent) { return this._fullscreenComponent.maxWidth; } return undefined; }, enumerable: true, configurable: true }); FullscreenModalComponent.prototype.disposeDynamicContent = function () { if (this._closeSubscription) { this._closeSubscription.unsubscribe(); } if (this._componentRef) { this._viewService.activateFullModalOverlay = false; this._componentRef.destroy(); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('container', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]) ], FullscreenModalComponent.prototype, "container", void 0); FullscreenModalComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'fullscreen-modal', template: __webpack_require__(/*! ./fullscreen-modal.component.html */ "./src/app/components/modals/fullscreen-modal.component.html"), styles: [__webpack_require__(/*! ./fullscreen-modal.component.scss */ "./src/app/components/modals/fullscreen-modal.component.scss")] }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_3__["ViewService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]]) ], FullscreenModalComponent); return FullscreenModalComponent; }()); /***/ }), /***/ "./src/app/components/modals/fullscreen-print-preview.component.html": /*!***************************************************************************!*\ !*** ./src/app/components/modals/fullscreen-print-preview.component.html ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n print_setup\n
    \n
    \n
    \n \n
    \n
    \n\n
    \n \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    groupcomponentdescriptionnoteactivityTagsdue_time
    {{mp.group}}{{mp.component}}{{mp.description}}{{mp.note}}{{mp.activities}}{{mp.Tags}}\n {{mp.dueTimeInDays | daysToDueTime}}\n '\n
    \n \n time_limit: {{ getDueDate(mp.timeCounterDueDate) | l10nDate:lang:'longDate' }}\n \n \n \n primary_counter_limit: \n {{mp?.primaryCounterDeltaValue | counterToSystemUnit: mp?.primaryCounterType}}\n  h \n ({{mp?.primaryCounterName}}: {{mp?.primaryCounterActualValue | counterToSystemUnit: mp?.primaryCounterType}} / {{mp?.primaryCounterDueValue | counterToSystemUnit: mp?.primaryCounterType}})\n \n \n \n secondary_counter_limit: \n {{mp?.secondaryCounterDeltaValue | counterToSystemUnit: mp?.secondaryCounterType}}\n  h \n ({{mp?.secondaryCounterName}}: {{mp?.secondaryCounterActualValue | counterToSystemUnit: mp?.secondaryCounterType}} / {{mp?.secondaryCounterDueValue | counterToSystemUnit: mp?.secondaryCounterType}})\n \n
    ' - estimated_due
    \n
    \n
    " /***/ }), /***/ "./src/app/components/modals/fullscreen-print-preview.component.scss": /*!***************************************************************************!*\ !*** ./src/app/components/modals/fullscreen-print-preview.component.scss ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "table {\n margin: 40px auto;\n font-family: \"Helvetica\" !important;\n page-break-inside: auto;\n table-layout: fixed;\n word-break: break-word;\n width: 90%; }\n table thead {\n display: table-header-group; }\n table th {\n text-align: left; }\n table tr {\n page-break-inside: avoid;\n page-break-after: auto; }\n table tr.border-bottom td {\n border-bottom: 1pt solid #ddd; }\n table.truncate-text thead tr th {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n table.truncate-text tbody tr td {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n #controlElements .col .card-label {\n font-size: 18px;\n line-height: 36px; }\n #controlElements .col .switch {\n margin-top: 8px; }\n #controlElements .col .switch label {\n font-size: 16px; }\n" /***/ }), /***/ "./src/app/components/modals/fullscreen-print-preview.component.ts": /*!*************************************************************************!*\ !*** ./src/app/components/modals/fullscreen-print-preview.component.ts ***! \*************************************************************************/ /*! exports provided: FullscreenPrintPreviewComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FullscreenPrintPreviewComponent", function() { return FullscreenPrintPreviewComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_time_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../services/time-utils.service */ "./src/app/services/time-utils.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var FullscreenPrintPreviewComponent = /** @class */ (function () { function FullscreenPrintPreviewComponent(_timeUtilsService, _cmsTranslationService) { this._timeUtilsService = _timeUtilsService; this._cmsTranslationService = _cmsTranslationService; this.displayDetailedPoints = false; } Object.defineProperty(FullscreenPrintPreviewComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); Object.defineProperty(FullscreenPrintPreviewComponent.prototype, "screenSettings", { set: function (screenConfig) { this.maintenancePoints = screenConfig.entries; }, enumerable: true, configurable: true }); Object.defineProperty(FullscreenPrintPreviewComponent.prototype, "maxHeight", { get: function () { return undefined; }, enumerable: true, configurable: true }); Object.defineProperty(FullscreenPrintPreviewComponent.prototype, "maxWidth", { get: function () { return undefined; }, enumerable: true, configurable: true }); FullscreenPrintPreviewComponent.prototype.print = function () { var headContent = document.getElementsByTagName('head')[0].innerHTML; var printContent = this.printArea.nativeElement.innerHTML; var printWindow = window.open(); if (printWindow) { printWindow.document.open(); printWindow.document.write("\n \n \n " + headContent + "\n \n \n " + printContent + "\n \n "); printWindow.document.close(); printWindow.onload = function () { printWindow.print(); setTimeout(function () { printWindow.close(); }); }; } }; FullscreenPrintPreviewComponent.prototype.getDueDate = function (days) { return new Date(this._timeUtilsService.transformBackendUtcToEffectiveLocalTime(days).getTime()); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('printArea'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], FullscreenPrintPreviewComponent.prototype, "printArea", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], FullscreenPrintPreviewComponent.prototype, "screenSettings", null); FullscreenPrintPreviewComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'fullscreen-print-preview', template: __webpack_require__(/*! ./fullscreen-print-preview.component.html */ "./src/app/components/modals/fullscreen-print-preview.component.html"), styles: [__webpack_require__(/*! ./fullscreen-print-preview.component.scss */ "./src/app/components/modals/fullscreen-print-preview.component.scss")], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }), __metadata("design:paramtypes", [_services_time_utils_service__WEBPACK_IMPORTED_MODULE_2__["TimeUtilsService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_1__["CmsTranslationService"]]) ], FullscreenPrintPreviewComponent); return FullscreenPrintPreviewComponent; }()); /***/ }), /***/ "./src/app/components/modals/notification-log.component.html": /*!*******************************************************************!*\ !*** ./src/app/components/modals/notification-log.component.html ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n alarm_values\n
    \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    no_records_found
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/modals/notification-log.component.scss": /*!*******************************************************************!*\ !*** ./src/app/components/modals/notification-log.component.scss ***! \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#controlElements .col .card-label {\n font-size: 18px;\n line-height: 36px; }\n\n#controlElements .col .switch {\n margin-top: 8px; }\n\n#controlElements .col .switch label {\n font-size: 16px; }\n" /***/ }), /***/ "./src/app/components/modals/notification-log.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/modals/notification-log.component.ts ***! \*****************************************************************/ /*! exports provided: NotificationLogComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationLogComponent", function() { return NotificationLogComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotificationLogComponent = /** @class */ (function () { function NotificationLogComponent(_configService) { this._configService = _configService; this._faultyDpCollectionSubject = new rxjs__WEBPACK_IMPORTED_MODULE_1__["ReplaySubject"](1); this.faultyDpCollection = this._faultyDpCollectionSubject.asObservable(); this.entriesAreAvailable = false; } NotificationLogComponent.prototype.getTitle = function (nk) { var metadata = this._configService.craneConfig.datapointMetadata[nk]; return metadata != null ? metadata.label : ''; }; Object.defineProperty(NotificationLogComponent.prototype, "screenSettings", { set: function (screenConfig) { var _this = this; this.entriesAreAvailable = !!screenConfig && !!screenConfig.entries && screenConfig.entries.length > 0; if (this.entriesAreAvailable) { var faultyDpCollection_1 = new _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); screenConfig.entries.forEach(function (e) { faultyDpCollection_1.items.push({ skipUpdates: true, title: _this.getTitle(e.cmsKey), // groupTitle: this.getGroupTitle(e.cmsKey), naturalKey: e.cmsKey, value: e.measurement }); }); this._faultyDpCollectionSubject.next(faultyDpCollection_1); } }, enumerable: true, configurable: true }); Object.defineProperty(NotificationLogComponent.prototype, "maxHeight", { get: function () { return 600; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationLogComponent.prototype, "maxWidth", { get: function () { return 900; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('displayDP'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], NotificationLogComponent.prototype, "diplayDP", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], NotificationLogComponent.prototype, "screenSettings", null); NotificationLogComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'notification-log', styles: [__webpack_require__(/*! ./notification-log.component.scss */ "./src/app/components/modals/notification-log.component.scss")], template: __webpack_require__(/*! ./notification-log.component.html */ "./src/app/components/modals/notification-log.component.html") }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"]]) ], NotificationLogComponent); return NotificationLogComponent; }()); /***/ }), /***/ "./src/app/components/modals/quickview.component.html": /*!************************************************************!*\ !*** ./src/app/components/modals/quickview.component.html ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n \n \n
    \n
    \n
    {{qvInfo?.title || ''}}
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    {{qvInfo?.title || ''}}
    \n
    \n \n \n\n \n \n {{item.title}}\n \n \n\n \n \n {{item.title}}\n \n \n\n \n \n {{item.title}}\n \n \n
    \n\n
    0\"\n id=\"quickwatch-area\">\n\n
    \n
    \n
    quickwatch
    \n
    \n
    \n \n
    \n
    \n 0\"\n [quickview-width]=\"true\"\n [data-collection]=\"watchItems\"\n [default-title]=\"'sensor_overview'\"\n [allow-delete]=\"true\"\n [allow-trend]=\"true\"\n [grouped]=\"true\">\n
    \n
    \n \n
    no_datapoints_selected
    \n
    \n
    \n
    \n
    0\">\n 0\">\n
    \n
    \n
    \n
      \n
    • \n \n
    • \n
    • \n \n
    • \n\n
    \n\n
    \n
    watching{{watchItemsCount}}
    \n \n
    \n
    \n
    \n\n\n" /***/ }), /***/ "./src/app/components/modals/quickview.component.scss": /*!************************************************************!*\ !*** ./src/app/components/modals/quickview.component.scss ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "#quickview.default-theme {\n border-left: solid #1561a1 4px; }\n #quickview.default-theme .footer-bar .watch-indicator .badge {\n color: #ffffff; }\n #quickview.default-theme .footer-bar ul li:active {\n color: #1561a1; }\n #quickview.default-theme .footer-bar ul li.highlight i {\n color: #1561a1; }\n #quickview.default-theme .footer-bar .watch-indicator:active {\n color: #1561a1; }\n #quickview.default-theme .trend-area {\n background-color: #f4f5f6; }\n #quickview.default-theme .footer-bar ul li:hover {\n background-color: #cfffeb; }\n #quickview.default-theme .footer-bar ul li.highlight {\n background-color: #cfffeb; }\n #quickview.default-theme .footer-bar .watch-indicator {\n background-color: #cfffeb; }\n #quickview.default-theme .footer-bar .watch-indicator:active {\n background-color: #cfffeb; }\n #quickview.default-theme tr.speedlimit {\n background-color: #ffc45c; }\n #quickview.default-theme tr.speedlimit:nth-child(odd) {\n background-color: #ffa80f; }\n #quickview.default-theme tr.speedlimit td {\n color: white; }\n #quickview.default-theme tr.release, #quickview.default-theme tr.interlock {\n background-color: #f5657d; }\n #quickview.default-theme tr.release:nth-child(odd), #quickview.default-theme tr.interlock:nth-child(odd) {\n background-color: #f11d40; }\n #quickview.default-theme tr.release td, #quickview.default-theme tr.interlock td {\n color: white; }\n #quickview.testing-theme {\n border-left: solid #cfac1f 4px; }\n #quickview.testing-theme .footer-bar .watch-indicator .badge {\n color: #98057e; }\n #quickview.testing-theme .footer-bar ul li:active {\n color: #cfac1f; }\n #quickview.testing-theme .footer-bar ul li.highlight i {\n color: #cfac1f; }\n #quickview.testing-theme .footer-bar .watch-indicator:active {\n color: #cfac1f; }\n #quickview.testing-theme .trend-area {\n background-color: #f4f5f6; }\n #quickview.testing-theme .footer-bar ul li:hover {\n background-color: #cfffeb; }\n #quickview.testing-theme .footer-bar ul li.highlight {\n background-color: #cfffeb; }\n #quickview.testing-theme .footer-bar .watch-indicator {\n background-color: #cfffeb; }\n #quickview.testing-theme .footer-bar .watch-indicator:active {\n background-color: #cfffeb; }\n #quickview.testing-theme tr.speedlimit {\n background-color: #ffc45c; }\n #quickview.testing-theme tr.speedlimit:nth-child(odd) {\n background-color: #ffa80f; }\n #quickview.testing-theme tr.speedlimit td {\n color: white; }\n #quickview.testing-theme tr.release, #quickview.testing-theme tr.interlock {\n background-color: #ce2dc5; }\n #quickview.testing-theme tr.release:nth-child(odd), #quickview.testing-theme tr.interlock:nth-child(odd) {\n background-color: #8f1f89; }\n #quickview.testing-theme tr.release td, #quickview.testing-theme tr.interlock td {\n color: white; }\n .btn-floating {\n position: fixed;\n bottom: 20px;\n right: -90px;\n transition: all 0.3s ease-in-out;\n z-index: 1001; }\n .btn-floating.slide-in {\n right: 24px;\n transition: all 0.3s 0.5s ease-in-out; }\n #quickview-title {\n word-wrap: break-word; }\n #quickview {\n overflow: hidden; }\n #quickview.modal.right-docked {\n max-height: 100%;\n height: 100%;\n max-width: 425px;\n top: 56px !important;\n left: inherit;\n width: 425px;\n -webkit-transform: inherit !important;\n transform: inherit !important;\n opacity: 1 !important;\n right: -425px;\n display: block !important;\n transition: right ease-in-out .3s !important; }\n #quickview.modal.right-docked.extended-toolbar {\n top: 146px !important; }\n #quickview.modal.right-docked.extended-toolbar .modal-content, #quickview.modal.right-docked.extended-toolbar .modal-content-watch {\n bottom: 194px; }\n #quickview.modal.right-docked.extended-toolbar spinner {\n bottom: 196px; }\n #quickview.modal.right-docked.open {\n right: 0%;\n transition: right ease-in-out .3s !important;\n z-index: 1002 !important; }\n #quickview spinner {\n margin: 0px;\n position: absolute;\n width: 100%;\n top: 0px;\n bottom: 104px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-top: 16px;\n top: 74px;\n bottom: 106px; }\n #quickview spinner.loading {\n overflow-y: hidden; }\n #quickview .modal-content {\n padding: 12px;\n margin: 0px;\n position: absolute;\n width: 100%;\n top: 0px;\n bottom: 104px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-top: 16px;\n -webkit-transform: translateX(-425px);\n transform: translateX(-425px);\n transition: -webkit-transform 0.3s ease-in-out;\n transition: transform 0.3s ease-in-out;\n transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; }\n #quickview .modal-content.loading {\n overflow-y: hidden; }\n #quickview .modal-content .modal-headline {\n padding-bottom: 16px;\n padding-left: 8px; }\n #quickview .modal-content .modal-headline .headline-label, #quickview .modal-content .modal-headline .headline-control {\n display: table-cell;\n vertical-align: middle; }\n #quickview .modal-content .modal-headline .headline-label {\n text-align: left;\n width: 100%; }\n #quickview .modal-content .modal-headline h5, #quickview .modal-content .modal-headline .headline-label > h5 {\n text-transform: uppercase;\n font-size: 22px; }\n #quickview .modal-content .modal-headline .headline-control {\n text-align: right;\n white-space: nowrap; }\n #quickview .modal-content .modal-headline .headline-control button {\n font-weight: bold;\n display: inline-block;\n min-width: 9em; }\n #quickview .modal-content.active {\n -webkit-transform: translateX(0px);\n transform: translateX(0px);\n transition: -webkit-transform 0.3s ease-in-out;\n transition: transform 0.3s ease-in-out;\n transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; }\n #quickview .modal-content-watch {\n padding: 12px;\n margin: 0px;\n position: absolute;\n width: 100%;\n top: 0px;\n bottom: 104px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-top: 16px;\n -webkit-transform: translateX(425px);\n transform: translateX(425px);\n transition: -webkit-transform 0.3s ease-in-out;\n transition: transform 0.3s ease-in-out;\n transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; }\n #quickview .modal-content-watch.loading {\n overflow-y: hidden; }\n #quickview .modal-content-watch .modal-headline {\n padding-bottom: 16px;\n padding-left: 8px; }\n #quickview .modal-content-watch .modal-headline .headline-label, #quickview .modal-content-watch .modal-headline .headline-control {\n display: table-cell;\n vertical-align: middle; }\n #quickview .modal-content-watch .modal-headline .headline-label {\n text-align: left;\n width: 100%; }\n #quickview .modal-content-watch .modal-headline h5, #quickview .modal-content-watch .modal-headline .headline-label > h5 {\n text-transform: uppercase;\n font-size: 22px; }\n #quickview .modal-content-watch .modal-headline .headline-control {\n text-align: right;\n white-space: nowrap; }\n #quickview .modal-content-watch .modal-headline .headline-control button {\n font-weight: bold;\n display: inline-block;\n min-width: 9em; }\n #quickview .modal-content-watch.active {\n -webkit-transform: translateX(0px);\n transform: translateX(0px);\n transition: -webkit-transform 0.3s ease-in-out;\n transition: transform 0.3s ease-in-out;\n transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; }\n #quickview .modal-content-watch .no-data-indicator {\n opacity: 0;\n z-index: -1;\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px; }\n #quickview .modal-content-watch .no-data-indicator.show {\n opacity: 1;\n transition: opacity 0.3s ease-in; }\n #quickview .modal-content-watch .no-data-indicator .no-data-content {\n margin: 0 auto;\n text-align: center; }\n #quickview .modal-content-watch .no-data-indicator .no-data-content i {\n font-size: 42px; }\n #quickview .footer-bar {\n position: fixed;\n bottom: 0px;\n height: 48px;\n width: 425px;\n margin: 0px;\n box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.07), 0 -1px 5px 0 rgba(0, 0, 0, 0.06), 0 -1px 1px -2px rgba(0, 0, 0, 0.1); }\n #quickview .footer-bar ul {\n margin: 0px; }\n #quickview .footer-bar ul li {\n float: left;\n text-align: center; }\n #quickview .footer-bar ul li i {\n font-size: 42px;\n line-height: 48px;\n vertical-align: middle;\n margin: 0 6px; }\n #quickview .footer-bar ul li:hover {\n cursor: pointer; }\n #quickview .footer-bar ul li:active {\n background-color: rgba(63, 177, 40, 0.11); }\n #quickview .footer-bar ul li:active.highlight i.cms-icon-pin {\n -webkit-transform: rotateZ(0);\n transform: rotateZ(0); }\n #quickview .footer-bar ul li.highlight i:active {\n background-color: rgba(63, 177, 40, 0.11); }\n #quickview .footer-bar ul li.highlight i.cms-icon-pin {\n -webkit-transform: rotateZ(-45deg);\n transform: rotateZ(-45deg);\n transition: -webkit-transform 0.15s ease-in;\n transition: transform 0.15s ease-in;\n transition: transform 0.15s ease-in, -webkit-transform 0.15s ease-in; }\n #quickview .footer-bar .watch-indicator {\n opacity: 0;\n padding: 0 16px;\n position: relative;\n transition: all 0.3s ease-in;\n bottom: -48px; }\n #quickview .footer-bar .watch-indicator.show {\n opacity: 1;\n cursor: pointer;\n bottom: 0px; }\n #quickview .footer-bar .watch-indicator.show:hover {\n cursor: pointer;\n background-color: #e6e6e6; }\n #quickview .footer-bar .watch-indicator:active {\n cursor: pointer;\n box-shadow: none; }\n #quickview .footer-bar .watch-indicator .back-button {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n text-align: center;\n font-size: 42px;\n line-height: 48px;\n vertical-align: middle;\n transition: opacity 0.3s ease-in; }\n #quickview .footer-bar .watch-indicator h5 {\n opacity: 1;\n margin: 0px;\n line-height: 48px;\n transition: opacity 0.3s ease-in; }\n #quickview .footer-bar .watch-indicator .badge {\n padding: 4px 8px;\n border-radius: 4px;\n margin: 12px 16px;\n min-width: 56px;\n line-height: 16px;\n height: 24px;\n opacity: 1;\n transition: opacity 0.3s ease-in; }\n #quickview .footer-bar .watch-indicator.watchview h5,\n #quickview .footer-bar .watch-indicator.watchview .badge {\n opacity: 0;\n transition: opacity 0.3s ease-in; }\n #quickview .footer-bar .watch-indicator.watchview .back-button {\n opacity: 1;\n transition: opacity 0.3s ease-in; }\n #quickview.quickview-pinned {\n z-index: 1 !important;\n box-shadow: none; }\n .trend-area {\n position: absolute;\n bottom: -20px;\n height: 120px;\n width: 100%;\n padding: 0px;\n transition: bottom 0.2s ease;\n box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.07), 0 -1px 5px 0 rgba(0, 0, 0, 0.06), 0 -1px 1px -2px rgba(0, 0, 0, 0.1); }\n .trend-area.show {\n bottom: 104px; }\n .shrinked-quickwatch-area {\n bottom: 224px !important;\n transition: bottom 0.2s ease; }\n .extended-toolbar .trend-area {\n bottom: 70px; }\n .extended-toolbar .trend-area.show {\n bottom: 194px; }\n .extended-toolbar .shrinked-quickwatch-area {\n bottom: 314px !important; }\n" /***/ }), /***/ "./src/app/components/modals/quickview.component.ts": /*!**********************************************************!*\ !*** ./src/app/components/modals/quickview.component.ts ***! \**********************************************************/ /*! exports provided: AutoCloseTimeout, QuickviewComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutoCloseTimeout", function() { return AutoCloseTimeout; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewComponent", function() { return QuickviewComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../toolbar/toolbar.component */ "./src/app/components/toolbar/toolbar.component.ts"); /* harmony import */ var _services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../services/quickview/quickview.service */ "./src/app/services/quickview/quickview.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AutoCloseTimeout = 1500; var QuickviewComponent = /** @class */ (function () { function QuickviewComponent(_viewService, _quickviewService, configService) { var _this = this; this._viewService = _viewService; this._quickviewService = _quickviewService; this._observableDatapointCollectionSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](new _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"]()); this.observableDatapointCollection = this._observableDatapointCollectionSubject.asObservable(); this.modalActions = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); // NOTE: when casting to "Materialize.ModalOptions" -> ng build fails! this.modalParams = { dismissible: true, opacity: .4, complete: function () { _this.qvInfo = undefined; _this.opened = false; _this.updateTriggerElement(); _this._viewService.quickviewOpened = false; } }; this.hasToolbarGauges = _toolbar_toolbar_component__WEBPACK_IMPORTED_MODULE_5__["ToolbarComponent"].hasGauges(configService.craneConfig); } QuickviewComponent.prototype.handleQuickViewInfo = function (info) { if (info.show) { // check if trigger changed if (!this.qvInfo || this.qvInfo.title !== info.title || this.qvInfo.datapoints.items.length != info.datapoints.items.length) { this.qvInfo = info; // triggering the quickview without applying any datapoints means to open the quickview in "Watch - Mode" // -> the view showing the to-be-watched-datapoints is visible immediately var hasDatapoints = info.datapoints != null && info.datapoints.items != null && info.datapoints.items.length > 0; this.showWatchContent = !hasDatapoints; if (hasDatapoints) { for (var _i = 0, _a = info.datapoints.items; _i < _a.length; _i++) { var item = _a[_i]; if (item != null && item.viewTemplate != null) { switch (item.viewTemplate) { case _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["CustomItemTemplate"].Speedlimit: { item.template = this.limitationItemTemplate; break; } case _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["CustomItemTemplate"].Interlock: { item.template = this.lockItemTemplate; break; } case _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["CustomItemTemplate"].Release: { item.template = this.releaseItemTemplate; break; } default: break; } } } this._observableDatapointCollectionSubject.next(info.datapoints); } this.qvInfo.initialized = this.showWatchContent; this.setVisibility(true); } else if (info.datapoints && this.showWatchContent) { // back to quickview if showing quickwatch this.showWatchContent = false; } } else { this.setVisibility(false); } this.updateTriggerElement(); }; QuickviewComponent.prototype.setVisibility = function (visible) { this.modalActions.emit({ action: 'modal', params: [visible ? 'open' : 'close'] }); if (visible) { this.opened = true; } }; Object.defineProperty(QuickviewComponent.prototype, "areDatapointsDefined", { get: function () { return !!this.qvInfo && !!this.qvInfo.datapoints; }, enumerable: true, configurable: true }); Object.defineProperty(QuickviewComponent.prototype, "watchItemsCount", { get: function () { return this._quickviewService.watchedItemsCount; }, enumerable: true, configurable: true }); Object.defineProperty(QuickviewComponent.prototype, "watchItems", { get: function () { return this._quickviewService.watchedItems; }, enumerable: true, configurable: true }); Object.defineProperty(QuickviewComponent.prototype, "maxTrendToggleCount", { get: function () { return Math.min(this.watchItemsCount, _services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_6__["MAX_TREND_ITEMS"]); }, enumerable: true, configurable: true }); Object.defineProperty(QuickviewComponent.prototype, "trendItemsCount", { get: function () { return this._quickviewService.trendItemsCount; }, enumerable: true, configurable: true }); QuickviewComponent.prototype.trendAll = function () { this._quickviewService.trendAll(); }; QuickviewComponent.prototype.onWatchItemsUpdated = function () { var _this = this; // Check if we have datapoints in quick watch... var viewItemsExist = this.qvInfo != null && this.qvInfo.datapoints != null && this.qvInfo.datapoints.items != null && this.qvInfo.datapoints.items.length > 0; if (!viewItemsExist && !this._viewService.quickviewPinned) { // close sidebar after 1.5 seconds if the last quickwatch item was removed, we are not not pinned and // there are no quick view items setTimeout(function () { return _this._viewService.closeQuickview(); }, AutoCloseTimeout); } else if (viewItemsExist && this.showWatchContent && !this._viewService.quickviewPinned) { // switch to quick view items after 1.5 Seconds setTimeout(function () { _this.showWatchContent = false; _this.updateTriggerElement(); }, AutoCloseTimeout); } }; QuickviewComponent.prototype.ngOnInit = function () { var _this = this; this._quickviewSubscription = this._viewService.showQuickviewTrigger.subscribe(function (info) { return _this.handleQuickViewInfo(info); }, function (err) { console.log("error: " + err); }, function () { console.log('quickview trigger received'); }); this._watchSubscription = this.watchItems.subscribe(function (_) { return _this.onWatchItemsUpdated(); }, function (err) { console.log("error: " + err); }, function () { console.log('quickview trigger received'); }); this._fullscreenToolbarSubscription = this._viewService.isToolbarFullscreen.subscribe(function (fullscreen) { _this._isToolbarFullscreen = fullscreen; }); }; QuickviewComponent.prototype.ngOnDestroy = function () { if (this._quickviewSubscription != null) { this._quickviewSubscription.unsubscribe(); } if (this._watchSubscription != null) { this._watchSubscription.unsubscribe(); } if (this._fullscreenToolbarSubscription != null) { this._fullscreenToolbarSubscription.unsubscribe(); } }; QuickviewComponent.prototype.closeQuickview = function () { this._viewService.closeQuickview(); }; Object.defineProperty(QuickviewComponent.prototype, "isQuickviewPinned", { get: function () { return this._viewService.quickviewPinned; }, enumerable: true, configurable: true }); QuickviewComponent.prototype.toggleQuickviewPin = function () { this._viewService.quickviewPinned = !this._viewService.quickviewPinned; }; QuickviewComponent.prototype.contentInitialized = function () { var _this = this; if (!this.qvInfo) { return; } // decouple from current change detection cycle // to avoid ExpressionChangedAfterItHasBeenCheckedError setTimeout(function () { return _this.qvInfo.initialized = true; }); }; QuickviewComponent.prototype.toggleViewMode = function () { if (!this.qvInfo || !this.qvInfo.datapoints) { return; } this.showWatchContent = !this.showWatchContent; this.updateTriggerElement(); }; QuickviewComponent.prototype.updateTriggerElement = function () { if (!this.qvInfo) { return; } this._viewService.quickviewTriggerElementId = !this.showWatchContent && this.opened ? this.qvInfo.triggerElementId : ''; }; Object.defineProperty(QuickviewComponent.prototype, "showWatchFab", { // show floating action button (Fab) get: function () { if (this.opened) { return false; } if (this.watchItemsCount == 0) { return false; } if (this._isToolbarFullscreen) { return false; } return true; }, enumerable: true, configurable: true }); Object.defineProperty(QuickviewComponent.prototype, "showToggleButton", { get: function () { if (this.showWatchContent) { return this.qvInfo != null && this.qvInfo.datapoints != null && this.qvInfo.datapoints.items != null && this.qvInfo.datapoints.items.length > 0; } else { return this.watchItemsCount > 0; } }, enumerable: true, configurable: true }); QuickviewComponent.prototype.show = function () { this._viewService.showQuickview(''); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('limitationItemTemplate'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], QuickviewComponent.prototype, "limitationItemTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('lockItemTemplate'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], QuickviewComponent.prototype, "lockItemTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('releaseItemTemplate'), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], QuickviewComponent.prototype, "releaseItemTemplate", void 0); QuickviewComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'quickview', template: __webpack_require__(/*! ./quickview.component.html */ "./src/app/components/modals/quickview.component.html"), styles: [__webpack_require__(/*! ./quickview.component.scss */ "./src/app/components/modals/quickview.component.scss")] }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], _services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_6__["QuickviewService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_1__["ConfigService"]]) ], QuickviewComponent); return QuickviewComponent; }()); /***/ }), /***/ "./src/app/components/not-found-error/not-found-error.component.html": /*!***************************************************************************!*\ !*** ./src/app/components/not-found-error/not-found-error.component.html ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n

    OOPS...

    \n\n
    \n C\n M\n S\n 5\n
    \n\n

    The CMS5 server seems to be down.

    \n\n \n
    " /***/ }), /***/ "./src/app/components/not-found-error/not-found-error.component.scss": /*!***************************************************************************!*\ !*** ./src/app/components/not-found-error/not-found-error.component.scss ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".error-container {\n text-align: center;\n font-size: 180px;\n font-family: 'Catamaran', sans-serif;\n font-weight: 800;\n margin: 20px 15px; }\n\n.error-container > span {\n display: inline-block;\n line-height: 0.7;\n position: relative; }\n\n.error-container > span > span {\n display: inline-block;\n position: relative; }\n\n.error-container > span:nth-of-type(1) {\n -webkit-perspective: 1000px;\n perspective: 1000px;\n -webkit-perspective-origin: 500% 50%;\n perspective-origin: 500% 50%; }\n\n.error-container > span:nth-of-type(1) > span {\n -webkit-transform-origin: 50% 100% 0px;\n transform-origin: 50% 100% 0px;\n -webkit-transform: rotateX(0);\n transform: rotateX(0);\n -webkit-animation: easyoutelastic 8s infinite;\n animation: easyoutelastic 8s infinite; }\n\n.error-container > span:nth-of-type(3) {\n -webkit-perspective: none;\n perspective: none;\n -webkit-perspective-origin: 50% 50%;\n perspective-origin: 50% 50%; }\n\n.error-container > span:nth-of-type(4) > span {\n -webkit-transform-origin: 100% 100% 0px;\n transform-origin: 100% 100% 0px;\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n -webkit-animation: rotatedrop 8s infinite;\n animation: rotatedrop 8s infinite; }\n\n@-webkit-keyframes easyoutelastic {\n 0% {\n -webkit-transform: rotateX(0);\n transform: rotateX(0); }\n 9% {\n -webkit-transform: rotateX(210deg);\n transform: rotateX(210deg); }\n 13% {\n -webkit-transform: rotateX(150deg);\n transform: rotateX(150deg); }\n 16% {\n -webkit-transform: rotateX(200deg);\n transform: rotateX(200deg); }\n 18% {\n -webkit-transform: rotateX(170deg);\n transform: rotateX(170deg); }\n 20% {\n -webkit-transform: rotateX(180deg);\n transform: rotateX(180deg); }\n 60% {\n -webkit-transform: rotateX(180deg);\n transform: rotateX(180deg); }\n 80% {\n -webkit-transform: rotateX(0);\n transform: rotateX(0); }\n 100% {\n -webkit-transform: rotateX(0);\n transform: rotateX(0); } }\n\n@keyframes easyoutelastic {\n 0% {\n -webkit-transform: rotateX(0);\n transform: rotateX(0); }\n 9% {\n -webkit-transform: rotateX(210deg);\n transform: rotateX(210deg); }\n 13% {\n -webkit-transform: rotateX(150deg);\n transform: rotateX(150deg); }\n 16% {\n -webkit-transform: rotateX(200deg);\n transform: rotateX(200deg); }\n 18% {\n -webkit-transform: rotateX(170deg);\n transform: rotateX(170deg); }\n 20% {\n -webkit-transform: rotateX(180deg);\n transform: rotateX(180deg); }\n 60% {\n -webkit-transform: rotateX(180deg);\n transform: rotateX(180deg); }\n 80% {\n -webkit-transform: rotateX(0);\n transform: rotateX(0); }\n 100% {\n -webkit-transform: rotateX(0);\n transform: rotateX(0); } }\n\n@-webkit-keyframes rotatedrop {\n 0% {\n -webkit-transform: rotate(0);\n transform: rotate(0); }\n 10% {\n -webkit-transform: rotate(30deg);\n transform: rotate(30deg); }\n 15% {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n 70% {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n 80% {\n -webkit-transform: rotate(0);\n transform: rotate(0); }\n 100% {\n -webkit-transform: rotateX(0);\n transform: rotateX(0); } }\n\n@keyframes rotatedrop {\n 0% {\n -webkit-transform: rotate(0);\n transform: rotate(0); }\n 10% {\n -webkit-transform: rotate(30deg);\n transform: rotate(30deg); }\n 15% {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n 70% {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n 80% {\n -webkit-transform: rotate(0);\n transform: rotate(0); }\n 100% {\n -webkit-transform: rotateX(0);\n transform: rotateX(0); } }\n\n* {\n box-sizing: border-box; }\n\nh1 {\n text-align: center;\n margin: 30px 15px; }\n\n.error-hint {\n margin: 80px auto 80px;\n font-size: 24px;\n text-align: center; }\n\n.link-container {\n text-align: center; }\n\n.centered {\n -webkit-transform: translateY(25%);\n transform: translateY(25%); }\n" /***/ }), /***/ "./src/app/components/not-found-error/not-found-error.component.ts": /*!*************************************************************************!*\ !*** ./src/app/components/not-found-error/not-found-error.component.ts ***! \*************************************************************************/ /*! exports provided: NotFoundErrorComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotFoundErrorComponent", function() { return NotFoundErrorComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotFoundErrorComponent = /** @class */ (function () { function NotFoundErrorComponent() { } NotFoundErrorComponent.prototype.tryAgain = function () { window.location.reload(true); }; NotFoundErrorComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-not-found-error', template: __webpack_require__(/*! ./not-found-error.component.html */ "./src/app/components/not-found-error/not-found-error.component.html"), styles: [__webpack_require__(/*! ./not-found-error.component.scss */ "./src/app/components/not-found-error/not-found-error.component.scss")] }), __metadata("design:paramtypes", []) ], NotFoundErrorComponent); return NotFoundErrorComponent; }()); /***/ }), /***/ "./src/app/components/notifications/notification-entrylist.component.html": /*!********************************************************************************!*\ !*** ./src/app/components/notifications/notification-entrylist.component.html ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n \n
    \n\n
    \n \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n\n
    \n \n\n \n \n \n
    \n
    1\">\n \n {{columnDefinitions.translatedText.headerName}}\n : \n {{row.translatedText}}\n
    \n
    \n \n {{row.translatedHelpText}}\n
    \n
    \n \n \n \n \n \n {{showManualDescription(row, index)}}\n \n
    \n
    \n
    \n
    \n
    \n
    \n\n \n \n
    \n
    \n \n
    \n
    \n
    \n\n \n \n {{columnDefinitions.notificationTypeAsString.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.notificationId.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.translatedText.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.translatedGroup.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.equipmentIdentifier.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.start.headerName}}\n \n \n {{value | l10nDate:lang:'medium'}}\n \n \n\n \n \n {{columnDefinitions.end.headerName}}\n \n \n {{value | l10nDate:lang:'medium'}}\n \n \n\n \n \n details\n \n \n \n \n \n \n \n\n \n \n user_manuals\n \n \n \n \n \n \n \n\n
    \n
    \n" /***/ }), /***/ "./src/app/components/notifications/notification-entrylist.component.ts": /*!******************************************************************************!*\ !*** ./src/app/components/notifications/notification-entrylist.component.ts ***! \******************************************************************************/ /*! exports provided: NotificationEntrylistComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationEntrylistComponent", function() { return NotificationEntrylistComponent; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @swimlane/ngx-datatable */ "./node_modules/@swimlane/ngx-datatable/release/index.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_components_localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/components/localizedtimepicker/localizedtimepicker.component */ "./src/app/components/localizedtimepicker/localizedtimepicker.component.ts"); /* harmony import */ var app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/models/fullscreen-config */ "./src/app/models/fullscreen-config.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../configuration */ "./src/app/configuration.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _models_column_definition__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../models/column-definition */ "./src/app/models/column-definition.ts"); /* harmony import */ var _models_notification_entry__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./../../models/notification-entry */ "./src/app/models/notification-entry.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_time_utils_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./../../services/time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _notification_filter__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./notification-filter */ "./src/app/components/notifications/notification-filter.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotificationEntrylistComponent = /** @class */ (function () { function NotificationEntrylistComponent(_cmsTranslation, _http, _authService, _timeUtils, _viewService, _toastService, _csvConversionService, _configuration, _cmsTranslationService, _craneConfigService) { var _this = this; this._cmsTranslation = _cmsTranslation; this._http = _http; this._authService = _authService; this._timeUtils = _timeUtils; this._viewService = _viewService; this._toastService = _toastService; this._csvConversionService = _csvConversionService; this._configuration = _configuration; this._cmsTranslationService = _cmsTranslationService; this._craneConfigService = _craneConfigService; this._pageTitle = 'historical_alarms'; this.entries = []; this.filteredentries = []; this.filter = ''; this.columnDefinitions = { notificationTypeAsString: new _models_column_definition__WEBPACK_IMPORTED_MODULE_17__["ColumnDefinition"]('type', 'notificationTypeAsString'), notificationId: new _models_column_definition__WEBPACK_IMPORTED_MODULE_17__["ColumnDefinition"]('number', 'notificationId'), translatedText: new _models_column_definition__WEBPACK_IMPORTED_MODULE_17__["ColumnDefinition"]('text', 'translatedText'), translatedHelpText: new _models_column_definition__WEBPACK_IMPORTED_MODULE_17__["ColumnDefinition"]('helptext', 'translatedHelpText'), translatedGroup: new _models_column_definition__WEBPACK_IMPORTED_MODULE_17__["ColumnDefinition"]('group', 'translatedGroup'), equipmentIdentifier: new _models_column_definition__WEBPACK_IMPORTED_MODULE_17__["ColumnDefinition"]('equipmentid', 'equipmentIdentifier'), start: new _models_column_definition__WEBPACK_IMPORTED_MODULE_17__["ColumnDefinition"]('start', 'start'), end: new _models_column_definition__WEBPACK_IMPORTED_MODULE_17__["ColumnDefinition"]('end', 'end') }; // every filter pushes to this Observable, which is debounced to avoid too many requests this._inputChanged = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subject"](); this.isLoading = false; this.timestart = '00:00'; this.timeend = '23:59'; this.areAllEntriesExpanded = false; this.selectedGroups = []; this._fetchGroupsRequest = this._http.get(this.urlGroups).subscribe(function (notificationGroups) { console.debug('Received notification group language translations', notificationGroups); _this.notificationGroups = notificationGroups; _this.translateGroupDropdown(); }); var oneDayInMilliSeconds = 1000 * 60 * 60 * 24; var daysToSubtract = 1; this.dateend = new Date(); this.datestart = new Date(this.dateend.getTime() - oneDayInMilliSeconds * daysToSubtract); this.selectedTypes = Object.keys(types_config__WEBPACK_IMPORTED_MODULE_11__["NotificationType"]).map(function (key) { return types_config__WEBPACK_IMPORTED_MODULE_11__["NotificationType"][key]; }); this.translateDropdowns(); } Object.defineProperty(NotificationEntrylistComponent.prototype, "url", { get: function () { return './api/notificationentry'; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationEntrylistComponent.prototype, "urlGroups", { get: function () { return './api/notification/groups'; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationEntrylistComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); NotificationEntrylistComponent.prototype.onDateStartPick = function (dateStart) { this.isDateStartSet = dateStart != null; if (!this.isDateStartSet) { this.startTimePicker.deleteTime(); } else if (!this.hasStartTime()) { this.startTimePicker.resetTime(); } this.datestart = dateStart; this._inputChanged.next('onDateStartPick'); }; NotificationEntrylistComponent.prototype.onDateEndPick = function (dateEnd) { this.isDateEndSet = dateEnd != null; if (!this.isDateEndSet) { this.endTimePicker.deleteTime(); } else if (!this.hasEndTime()) { this.endTimePicker.resetTime(); } this.dateend = dateEnd; this._inputChanged.next('onDateEndPick'); }; NotificationEntrylistComponent.prototype.onTimeStartPick = function (timeStart) { this.timestart = timeStart; this._inputChanged.next('onTimeStartPick'); }; NotificationEntrylistComponent.prototype.onTimeEndPick = function (timeEnd) { this.timeend = timeEnd; this._inputChanged.next('onTimeEndPick'); }; NotificationEntrylistComponent.prototype.ngOnInit = function () { var _this = this; this._viewService.setToolbarTitle(this._pageTitle); this.listenForLanguageChanges(); this._inputChangedSubscription = this._inputChanged.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["debounceTime"])(200)).subscribe(function (_) { return _this.fetchAlarmEntries(); }); this._inputChanged.next('ngOnInit'); }; NotificationEntrylistComponent.prototype.ngOnDestroy = function () { if (this._fetchRequest) { this._fetchRequest.unsubscribe(); } if (this._fetchGroupsRequest) { this._fetchGroupsRequest.unsubscribe(); } if (this._languageChangeSubscription) { this._languageChangeSubscription.unsubscribe(); } if (this._inputChangedSubscription) { this._inputChangedSubscription.unsubscribe(); } }; NotificationEntrylistComponent.prototype.listenForLanguageChanges = function () { var _this = this; this._languageChangeSubscription = this._cmsTranslation .languageChangedEvent .subscribe(function () { // when the language changed, fetch the entry // list and categories again, the server will respond // with the correct translations _this.translateDropdowns(); _this.fetchAlarmEntries(); }); }; NotificationEntrylistComponent.prototype.translateDropdowns = function () { this.translateGroupDropdown(); this.translateTypeDropdown(); }; NotificationEntrylistComponent.prototype.translateGroupDropdown = function () { this.selectGroupLabel = this._cmsTranslation.translation.translate('select_group'); this.selectGroupOptions = []; var currentLang = this._cmsTranslation.currentLanguage; if (currentLang != null && this.notificationGroups != null) { var groupTranslations = this.notificationGroups[currentLang]; if (groupTranslations != null) { for (var i = 0; i < groupTranslations.length; ++i) { this.selectGroupOptions.push({ name: groupTranslations[i], value: i }); } if ((this.selectedGroups == null || this.selectedGroups.length == 0) && groupTranslations.length > 0) { this.selectedGroups = Array.from(Array(groupTranslations.length).keys()); } } } }; NotificationEntrylistComponent.prototype.translateTypeDropdown = function () { this.selectTypeLabel = this._cmsTranslation.translation.translate('select_type'); this.selectTypeOptions = []; for (var _i = 0, _a = Object.keys(types_config__WEBPACK_IMPORTED_MODULE_11__["NotificationType"]).map(function (k) { return types_config__WEBPACK_IMPORTED_MODULE_11__["NotificationType"][k]; }).filter(function (k) { return typeof k === 'number'; }); _i < _a.length; _i++) { var key = _a[_i]; this.selectTypeOptions.push({ name: this._cmsTranslation.translation.translate(_app_constants__WEBPACK_IMPORTED_MODULE_12__["NotificationTypeDisplayText"][key]), value: key }); } }; NotificationEntrylistComponent.prototype.translate = function (key) { return this._cmsTranslation.translation.translate(key); }; NotificationEntrylistComponent.prototype.hasStartTime = function () { return this.isValidTime(this.timestart); }; NotificationEntrylistComponent.prototype.hasEndTime = function () { return this.isValidTime(this.timeend); }; NotificationEntrylistComponent.prototype.isValidTime = function (time) { return time != null && time.trim().length > 0; }; NotificationEntrylistComponent.prototype.fetchAlarmEntries = function () { var _this = this; if (!this.isDateTimeRangeValid(this.datestart, this.dateend, this.timestart, this.timeend)) { this.entries = []; this.filteredentries = []; this._toastService.showToastAsync('invalid_timerange', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__["TimeSpan"].Long, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__["NotificationToastType"].Error); return; } this.isLoading = true; this.entries = []; this.filteredentries = []; if (this._fetchRequest) { this._fetchRequest.unsubscribe(); } var startDate = this._timeUtils.transformFromLocalBackendTimeToUtc(this._timeUtils.toDateTime(this.timestart, this.datestart)); var endDate = this._timeUtils.transformFromLocalBackendTimeToUtc(this._timeUtils.toDateTime(this.timeend, this.dateend)); var request = { startDate: startDate, endDate: endDate }; this._fetchRequest = this._http.post(this.url, request).subscribe(function (entries) { console.log('Received ' + entries.length + ' notification entries'); _this.entries = entries.map(function (x) { return _models_notification_entry__WEBPACK_IMPORTED_MODULE_18__["NotificationEntry"].translate(x, _this._cmsTranslation.currentLanguage, _this._timeUtils); }); _this.filteredentries = _this.filterOnSearch(_this.entries, _this.filter, _this.selectedGroups, _this.selectedTypes); _this.isLoading = false; }); }; NotificationEntrylistComponent.prototype.filterOnSearch = function (entries, filter, selectedGroups, selectedTypes) { return entries.filter(this.filterElementBy(filter, selectedGroups, selectedTypes)); }; NotificationEntrylistComponent.prototype.filterOnChange = function (newFilterValue) { var _this = this; if (newFilterValue !== undefined) { this.filter = newFilterValue; } this.filteredentries = this.entries.filter(this.filterElementBy(this.filter, this.selectedGroups, this.selectedTypes)); setTimeout(function () { // This solves a bug in ngx-datatable described here: // https://github.com/swimlane/ngx-datatable/issues/141 _this.table.offset = 0; _this.table.bodyComponent.offsetY = 0; var elements = _this.table.element.getElementsByTagName('datatable-body'); if (elements != null && elements.length > 0) { var body = elements[0]; if (body != null) { body.scrollTop = 0; } } }); }; NotificationEntrylistComponent.prototype.filterElementBy = function (filter, selectedGroups, selectedTypes) { var _this = this; var lang = this._cmsTranslation.currentLanguage; var selectedGroupNames = this.getSelectedGroupNames(selectedGroups, lang); return function (entry) { return _this.filterByFieldText(entry, filter) && _notification_filter__WEBPACK_IMPORTED_MODULE_22__["NotificationFilter"].filterByGroup(entry, selectedGroupNames, lang) && _notification_filter__WEBPACK_IMPORTED_MODULE_22__["NotificationFilter"].filterByType(entry, selectedTypes); }; }; NotificationEntrylistComponent.prototype.isDateTimeRangeValid = function (dateStart, dateEnd, timeStart, timeEnd) { var startDateTime = this._timeUtils.toDateTime(timeStart, dateStart); var endDateTime = this._timeUtils.toDateTime(timeEnd, dateEnd); if (startDateTime != null && endDateTime != null) { if (startDateTime.getTime() >= endDateTime.getTime()) { return false; } } if (!dateEnd && timeEnd) { return false; } if (!dateStart && timeStart) { return false; } return true; }; NotificationEntrylistComponent.prototype.getSelectedGroupNames = function (selectedGroups, lang) { var groupNames = []; if (this.notificationGroups != null && selectedGroups != null && selectedGroups.length > 0) { var groupTranslations = this.notificationGroups[lang]; var maxIndex = selectedGroups.length > 0 ? Math.max.apply(Math, selectedGroups) : 0; if (groupTranslations != null && groupTranslations.length > maxIndex) { for (var _i = 0, selectedGroups_1 = selectedGroups; _i < selectedGroups_1.length; _i++) { var selectedGroup = selectedGroups_1[_i]; groupNames.push(groupTranslations[selectedGroup]); } } } return groupNames; }; NotificationEntrylistComponent.prototype.filterByFieldText = function (entry, filter) { // in case the user does not have permission to see equipment, there is no need to filter it var equipmentId = _notification_filter__WEBPACK_IMPORTED_MODULE_22__["NotificationFilter"].filterByEquipment(entry, filter); // current language is required for filters over text fields (notification text and group) var lang = this._cmsTranslation.currentLanguage; return equipmentId || _notification_filter__WEBPACK_IMPORTED_MODULE_22__["NotificationFilter"].filterByNumber(entry, filter) || _notification_filter__WEBPACK_IMPORTED_MODULE_22__["NotificationFilter"].filterByText(entry, filter, lang); }; NotificationEntrylistComponent.prototype.expand = function (row) { if (this.table != null && this.table.rowDetail != null) { this.table.rowDetail.toggleExpandRow(row); this.areAllEntriesExpanded = false; } }; NotificationEntrylistComponent.prototype.expandAll = function () { if (this.table != null && this.table.rowDetail != null) { if (!this.areAllEntriesExpanded) { this.table.rowDetail.expandAllRows(); this.areAllEntriesExpanded = true; } else { this.table.rowDetail.collapseAllRows(); this.areAllEntriesExpanded = false; } } }; NotificationEntrylistComponent.prototype.getCellClass = function (cell) { return { 'info': cell.value === _app_constants__WEBPACK_IMPORTED_MODULE_12__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_11__["NotificationType"].Info], 'warning': cell.value === _app_constants__WEBPACK_IMPORTED_MODULE_12__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_11__["NotificationType"].Warning], 'error': cell.value === _app_constants__WEBPACK_IMPORTED_MODULE_12__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_11__["NotificationType"].Error], }; }; NotificationEntrylistComponent.prototype.exportCSV = function () { var requiredColums = []; requiredColums.push(this.columnDefinitions.notificationTypeAsString.addExtractor(function (x, t) { return t.translateToCurrentLanguage(x.notificationTypeAsString); })); requiredColums.push(this.columnDefinitions.notificationId); requiredColums.push(this.columnDefinitions.translatedText); requiredColums.push(this.columnDefinitions.translatedGroup); requiredColums.push(this.columnDefinitions.equipmentIdentifier); requiredColums.push(this.columnDefinitions.start.addExtractor(function (x, t) { var val = new angular_l10n__WEBPACK_IMPORTED_MODULE_3__["L10nDatePipe"]().transform(x.start, t.currentLanguage, 'medium'); return val != null ? val : ''; })); requiredColums.push(this.columnDefinitions.end.addExtractor(function (x, t) { var val = new angular_l10n__WEBPACK_IMPORTED_MODULE_3__["L10nDatePipe"]().transform(x.end, t.currentLanguage, 'medium'); return val != null ? val : ''; })); this._csvConversionService.saveAsCSV(this._pageTitle, requiredColums, this.filteredentries); }; NotificationEntrylistComponent.prototype.onLongPress = function (event) { this._toastService.showToastAsync('filtered', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__["TimeSpan"].Short, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_16__["NotificationToastType"].Success); this.filter = event.target.innerText; this.filterOnChange(); }; NotificationEntrylistComponent.prototype.notificationDetailsLog = function (notification) { var fsConfig = new app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenConfig"](this._cmsTranslation.translation.translate('alarm_detail'), app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenType"].DatapointValueLog); fsConfig.screenSettings = { entries: notification.faultValues }; this._viewService.openInFullscreen(fsConfig); }; NotificationEntrylistComponent.prototype.hasDetailedInfo = function (notification) { return notification != null && notification.faultValues != null && notification.faultValues.length > 0; }; NotificationEntrylistComponent.prototype.showMainManual = function () { var fsConfig = new app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenConfig"](this._cmsTranslation.translateToCurrentLanguage('manual'), app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenType"].PDF); if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_19__["AuthService"].permissionViewModalPdfKey)) { fsConfig.screenSettings = { file: this._configuration.server + "files/notifications/manuals/" + this._craneConfigService.craneConfig.notificationManualFilename + this._cmsTranslation.currentLanguage + ".pdf" }; this._viewService.openInFullscreen(fsConfig); } else { var url = new URL("files/notifications/manuals/" + this._craneConfigService.craneConfig.notificationManualFilename + this._cmsTranslation.currentLanguage + ".pdf", "" + this._configuration.server); this._viewService.openPdfInNewTab(url.href); } }; NotificationEntrylistComponent.prototype.showManualDescription = function (notification, index) { var lang = this._cmsTranslation.currentLanguage; return notification.manuals[lang][index].description; }; NotificationEntrylistComponent.prototype.showManual = function (notification, index) { var fsConfig = new app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenConfig"](this._cmsTranslation.translateToCurrentLanguage('manual'), app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenType"].PDF); var lang = this._cmsTranslation.currentLanguage; if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_19__["AuthService"].permissionViewModalPdfKey)) { fsConfig.screenSettings = { file: this._configuration.server + "files/notifications/manuals/" + notification.manuals[lang][index].path }; this._viewService.openInFullscreen(fsConfig); } else { var url = new URL("files/notifications/manuals/" + notification.manuals[lang][index].path, "" + this._configuration.server); this._viewService.openPdfInNewTab(url.href); } }; NotificationEntrylistComponent.prototype.hasManual = function (notification) { return notification.manuals != null && notification.manuals[this._cmsTranslation.currentLanguage] != null && notification.manuals[this._cmsTranslation.currentLanguage][0] != null; }; NotificationEntrylistComponent.prototype.getManualCount = function (notification) { var count = 0; if (notification.manuals != null && notification.manuals[this._cmsTranslation.currentLanguage] != null) { count = notification.manuals[this._cmsTranslation.currentLanguage].length; } var response = new Array(count); for (var i = 0; i < count; i++) { response[i] = i; } return response; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('startTimePicker'), __metadata("design:type", app_components_localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_4__["LocalizedtimepickerComponent"]) ], NotificationEntrylistComponent.prototype, "startTimePicker", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('endTimePicker'), __metadata("design:type", app_components_localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_4__["LocalizedtimepickerComponent"]) ], NotificationEntrylistComponent.prototype, "endTimePicker", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('notificationEntriesTable'), __metadata("design:type", _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__["DatatableComponent"]) ], NotificationEntrylistComponent.prototype, "table", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", Object) ], NotificationEntrylistComponent.prototype, "filter", void 0); NotificationEntrylistComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'notification-entrylist', template: __webpack_require__(/*! ./notification-entrylist.component.html */ "./src/app/components/notifications/notification-entrylist.component.html"), styles: [__webpack_require__(/*! ./notification.component.scss */ "./src/app/components/notifications/notification.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_21__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_14__["CmsTranslationService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"], _services_auth_service__WEBPACK_IMPORTED_MODULE_19__["AuthService"], _services_time_utils_service__WEBPACK_IMPORTED_MODULE_20__["TimeUtilsService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_8__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__["ToastService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_15__["CSVConversionService"], _configuration__WEBPACK_IMPORTED_MODULE_13__["Configuration"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_14__["CmsTranslationService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"]]) ], NotificationEntrylistComponent); return NotificationEntrylistComponent; }()); /***/ }), /***/ "./src/app/components/notifications/notification-filter.ts": /*!*****************************************************************!*\ !*** ./src/app/components/notifications/notification-filter.ts ***! \*****************************************************************/ /*! exports provided: NotificationFilter */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationFilter", function() { return NotificationFilter; }); var NotificationFilter = /** @class */ (function () { function NotificationFilter() { } // number is filtered as "Contains" NotificationFilter.filterByNumber = function (entry, filter) { return entry.notificationId != null && entry.notificationId.toString().toLowerCase().indexOf(filter.toLowerCase()) !== -1; }; // text is filtered as "Contains"" NotificationFilter.filterByText = function (entry, filter, lang) { var text = entry.getText(lang); return text != null && text.toLowerCase().indexOf(filter.toLowerCase()) !== -1; }; // group is filtered as "Contains" any po NotificationFilter.filterByGroup = function (entry, filters, lang) { var group = entry.getNotificationGroup(lang); if (group != null) { var simplifiedGroup = group.toLowerCase(); var result = false; for (var _i = 0, filters_1 = filters; _i < filters_1.length; _i++) { var filter = filters_1[_i]; if (simplifiedGroup.indexOf(filter.toLowerCase()) !== -1) { result = true; } } return result; } return false; }; // group is filtered as "Contains" NotificationFilter.filterByGroupName = function (entry, filter, lang) { var group = entry.getNotificationGroup(lang); return group != null && group.toLowerCase().indexOf(filter.toLowerCase()) !== -1; }; // equipmentId is filtered as "Contains" NotificationFilter.filterByEquipment = function (entry, filter) { return entry.equipmentIdentifier != null && entry.equipmentIdentifier.toLowerCase().indexOf(filter.toLowerCase()) !== -1; }; // type is filtered as "In" NotificationFilter.filterByType = function (entry, types) { return types.indexOf(entry.notificationType) !== -1; }; return NotificationFilter; }()); /***/ }), /***/ "./src/app/components/notifications/notification-latestlist.component.html": /*!*********************************************************************************!*\ !*** ./src/app/components/notifications/notification-latestlist.component.html ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n \n
    \n\n
    \n \n \n
    \n
    \n\n
    \n \n\n \n \n \n
    \n
    1\">\n \n {{columnDefinitions.translatedText.headerName}}\n : \n {{row.translatedText}}\n
    \n
    \n \n {{row.translatedHelpText}}\n
    \n
    \n \n \n \n \n \n {{showManualDescription(row, index)}}\n \n
    \n
    \n
    \n
    \n
    \n
    \n\n \n \n
    \n
    \n \n
    \n
    \n
    \n\n \n \n {{columnDefinitions.notificationTypeAsString.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.notificationId.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.translatedText.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.translatedGroup.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.equipmentIdentifier.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.timestamp.headerName}}\n \n \n {{value | l10nDate:lang:'medium'}}\n \n \n\n \n \n details\n \n \n \n \n \n \n \n\n \n \n user_manuals\n \n \n \n \n \n \n \n\n
    \n\n
    \n \n
    \n\n
    \n" /***/ }), /***/ "./src/app/components/notifications/notification-latestlist.component.ts": /*!*******************************************************************************!*\ !*** ./src/app/components/notifications/notification-latestlist.component.ts ***! \*******************************************************************************/ /*! exports provided: NotificationLatestlistComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationLatestlistComponent", function() { return NotificationLatestlistComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @swimlane/ngx-datatable */ "./node_modules/@swimlane/ngx-datatable/release/index.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _types_keyed_collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../types/keyed-collection */ "./src/types/keyed-collection.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../configuration */ "./src/app/configuration.ts"); /* harmony import */ var _models_column_definition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../models/column-definition */ "./src/app/models/column-definition.ts"); /* harmony import */ var _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../models/fullscreen-config */ "./src/app/models/fullscreen-config.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _services_notification_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../services/notification.service */ "./src/app/services/notification.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _notification_filter__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./notification-filter */ "./src/app/components/notifications/notification-filter.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotificationLatestlistComponent = /** @class */ (function () { function NotificationLatestlistComponent(_cmsTranslation, _notificationService, _authService, _viewService, _toastService, _csvConversionService, _configuration, _craneConfigService) { this._cmsTranslation = _cmsTranslation; this._notificationService = _notificationService; this._authService = _authService; this._viewService = _viewService; this._toastService = _toastService; this._csvConversionService = _csvConversionService; this._configuration = _configuration; this._craneConfigService = _craneConfigService; this._pageTitle = 'latest_alarms'; this.filteredentries = []; this.filter = ''; this.areAllEntriesExpanded = false; this.columnDefinitions = { notificationTypeAsString: new _models_column_definition__WEBPACK_IMPORTED_MODULE_8__["ColumnDefinition"]('type', 'notificationTypeAsString'), notificationId: new _models_column_definition__WEBPACK_IMPORTED_MODULE_8__["ColumnDefinition"]('number', 'notificationId'), translatedText: new _models_column_definition__WEBPACK_IMPORTED_MODULE_8__["ColumnDefinition"]('text', 'translatedText'), translatedHelpText: new _models_column_definition__WEBPACK_IMPORTED_MODULE_8__["ColumnDefinition"]('helptext', 'translatedHelpText'), translatedGroup: new _models_column_definition__WEBPACK_IMPORTED_MODULE_8__["ColumnDefinition"]('group', 'translatedGroup'), equipmentIdentifier: new _models_column_definition__WEBPACK_IMPORTED_MODULE_8__["ColumnDefinition"]('equipmentid', 'equipmentIdentifier'), timestamp: new _models_column_definition__WEBPACK_IMPORTED_MODULE_8__["ColumnDefinition"]('time', 'timestamp') }; this.notifications = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_5__["KeyedCollection"](); } Object.defineProperty(NotificationLatestlistComponent.prototype, "entries", { get: function () { return this.notifications.Values(); }, enumerable: true, configurable: true }); Object.defineProperty(NotificationLatestlistComponent.prototype, "lang", { get: function () { return this._cmsTranslation.currentLanguage; }, enumerable: true, configurable: true }); NotificationLatestlistComponent.prototype.ngOnInit = function () { this._viewService.setToolbarTitle(this._pageTitle); this._notificationsSubscription = this.subscribeToNotifications(); }; NotificationLatestlistComponent.prototype.ngOnDestroy = function () { if (this._notificationsSubscription != null) { this._notificationsSubscription.unsubscribe(); } }; NotificationLatestlistComponent.prototype.filterOnChange = function (newFilterValue) { var _this = this; if (newFilterValue !== undefined) { this.filter = newFilterValue; } this.filteredentries = this.entries.filter(function (entry) { return _this.filterByFieldText(entry, _this.filter); }); }; NotificationLatestlistComponent.prototype.subscribeToNotifications = function () { var _this = this; return this._notificationService.notifications.subscribe(function (notifications) { _this.update(notifications); _this.filterOnChange(); }, function (err) { console.error(err); }); }; NotificationLatestlistComponent.prototype.update = function (notifications) { if (notifications != null) { this.notifications = notifications; } else { this.notifications = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_5__["KeyedCollection"](); } }; NotificationLatestlistComponent.prototype.filterByFieldText = function (entry, filterString) { // in case the user does not have permission to see this, the check is always false var equipmentId = _notification_filter__WEBPACK_IMPORTED_MODULE_18__["NotificationFilter"].filterByEquipment(entry, filterString); // fetching lang for searching by text and by group var lang = this._cmsTranslation.currentLanguage; return equipmentId || _notification_filter__WEBPACK_IMPORTED_MODULE_18__["NotificationFilter"].filterByNumber(entry, filterString) || _notification_filter__WEBPACK_IMPORTED_MODULE_18__["NotificationFilter"].filterByText(entry, filterString, lang) || _notification_filter__WEBPACK_IMPORTED_MODULE_18__["NotificationFilter"].filterByGroupName(entry, filterString, lang); }; NotificationLatestlistComponent.prototype.quit = function () { this._notificationService.quit(); }; NotificationLatestlistComponent.prototype.expand = function (row) { if (this.table != null && this.table.rowDetail != null) { this.table.rowDetail.toggleExpandRow(row); this.areAllEntriesExpanded = false; } }; NotificationLatestlistComponent.prototype.expandAll = function () { if (this.filteredentries != null && this.filteredentries.length > 0 && this.table != null && this.table.rowDetail != null) { if (!this.areAllEntriesExpanded) { this.table.rowDetail.expandAllRows(); this.areAllEntriesExpanded = true; } else { this.table.rowDetail.collapseAllRows(); this.areAllEntriesExpanded = false; } } }; NotificationLatestlistComponent.prototype.getCellClass = function (cell) { return { 'info': cell.value === _app_constants__WEBPACK_IMPORTED_MODULE_6__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_4__["NotificationType"].Info], 'warning': cell.value === _app_constants__WEBPACK_IMPORTED_MODULE_6__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_4__["NotificationType"].Warning], 'error': cell.value === _app_constants__WEBPACK_IMPORTED_MODULE_6__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_4__["NotificationType"].Error], }; }; NotificationLatestlistComponent.prototype.exportCSV = function () { // Here we have to check additionally if equipment is visible var requiredColums = []; requiredColums.push(this.columnDefinitions.notificationTypeAsString.addExtractor(function (x, t) { return t.translateToCurrentLanguage(x.notificationTypeAsString); })); requiredColums.push(this.columnDefinitions.notificationId); requiredColums.push(this.columnDefinitions.translatedText); requiredColums.push(this.columnDefinitions.translatedGroup); requiredColums.push(this.columnDefinitions.equipmentIdentifier); requiredColums.push(this.columnDefinitions.timestamp.addExtractor(function (x, t) { var val = new angular_l10n__WEBPACK_IMPORTED_MODULE_2__["L10nDatePipe"]().transform(x.timestamp, t.currentLanguage, 'medium'); return val != null ? val : ''; })); // Preparing and saving CSV. this._csvConversionService.saveAsCSV(this._pageTitle, requiredColums, this.filteredentries); }; NotificationLatestlistComponent.prototype.onLongPress = function (event) { this._toastService.showToastAsync('filtered', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_3__["TimeSpan"].Short, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_15__["NotificationToastType"].Success); this.filter = event.target.innerText; this.filterOnChange(); }; NotificationLatestlistComponent.prototype.notificationDetailsLog = function (notification) { var fsConfig = new _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_9__["FullscreenConfig"](this._cmsTranslation.translation.translate('alarm_detail'), _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_9__["FullscreenType"].DatapointValueLog); fsConfig.screenSettings = { // TEST IT LIKE THAT: // entries: [{cmsKey: 'NK_123', measurement: 1.23}, // {cmsKey: 'Gnt_SpeedLimit_MaxSpeedNegDir', measurement: 3.21}] entries: notification.faultValues }; this._viewService.openInFullscreen(fsConfig); }; NotificationLatestlistComponent.prototype.hasDetailedInfo = function (notification) { return notification.faultValues != null && notification.faultValues.length > 0; }; NotificationLatestlistComponent.prototype.showMainManual = function () { var fsConfig = new _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_9__["FullscreenConfig"](this._cmsTranslation.translateToCurrentLanguage('manual'), _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_9__["FullscreenType"].PDF); if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_16__["AuthService"].permissionViewModalPdfKey)) { fsConfig.screenSettings = { file: this._configuration.server + "files/notifications/manuals/" + this._craneConfigService.craneConfig.notificationManualFilename + this._cmsTranslation.currentLanguage + ".pdf" }; this._viewService.openInFullscreen(fsConfig); } else { var url = new URL("files/notifications/manuals/" + this._craneConfigService.craneConfig.notificationManualFilename + this._cmsTranslation.currentLanguage + ".pdf", "" + this._configuration.server); this._viewService.openPdfInNewTab(url.href); } }; NotificationLatestlistComponent.prototype.showManualDescription = function (notification, index) { var lang = this._cmsTranslation.currentLanguage; return notification.manuals[lang][index].description; }; NotificationLatestlistComponent.prototype.showManual = function (notification, index) { var fsConfig = new _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_9__["FullscreenConfig"](this._cmsTranslation.translateToCurrentLanguage('manual'), _models_fullscreen_config__WEBPACK_IMPORTED_MODULE_9__["FullscreenType"].PDF); var lang = this._cmsTranslation.currentLanguage; if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_16__["AuthService"].permissionViewModalPdfKey)) { fsConfig.screenSettings = { file: this._configuration.server + "files/notifications/manuals/" + notification.manuals[lang][index].path }; this._viewService.openInFullscreen(fsConfig); } else { var url = new URL("files/notifications/manuals/" + notification.manuals[lang][index].path, "" + this._configuration.server); this._viewService.openPdfInNewTab(url.href); } }; NotificationLatestlistComponent.prototype.hasManual = function (notification) { return notification.manuals != null && notification.manuals[this._cmsTranslation.currentLanguage] != null && notification.manuals[this._cmsTranslation.currentLanguage][0] != null; }; NotificationLatestlistComponent.prototype.getManualCount = function (notification) { var count = 0; if (notification.manuals != null && notification.manuals[this._cmsTranslation.currentLanguage] != null) { count = notification.manuals[this._cmsTranslation.currentLanguage].length; } var response = new Array(count); for (var i = 0; i < count; i++) { response[i] = i; } return response; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('notificationLatestTable'), __metadata("design:type", _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_1__["DatatableComponent"]) ], NotificationLatestlistComponent.prototype, "table", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], NotificationLatestlistComponent.prototype, "filter", void 0); NotificationLatestlistComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'notification-latestlist', template: __webpack_require__(/*! ./notification-latestlist.component.html */ "./src/app/components/notifications/notification-latestlist.component.html"), styles: [__webpack_require__(/*! ./notification.component.scss */ "./src/app/components/notifications/notification.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_14__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_10__["CmsTranslationService"], _services_notification_service__WEBPACK_IMPORTED_MODULE_12__["NotificationService"], _services_auth_service__WEBPACK_IMPORTED_MODULE_16__["AuthService"], _services_view_service__WEBPACK_IMPORTED_MODULE_13__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_3__["ToastService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_11__["CSVConversionService"], _configuration__WEBPACK_IMPORTED_MODULE_7__["Configuration"], _services_config_service__WEBPACK_IMPORTED_MODULE_17__["ConfigService"]]) ], NotificationLatestlistComponent); return NotificationLatestlistComponent; }()); /***/ }), /***/ "./src/app/components/notifications/notification-statistics.component.html": /*!*********************************************************************************!*\ !*** ./src/app/components/notifications/notification-statistics.component.html ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n
    \n
    \n \n \n\n
    \n
    \n \n
    \n\n
    \n \n \n\n
    \n
    \n \n
    \n
    \n
    \n
    \n \n \n
    \n\n
    \n\n
    \n \n\n \n \n \n
    \n
    1\">\n \n {{columnDefinitions.translatedText.headerName}}\n : \n {{row.translatedText}}\n
    \n
    \n \n {{row.translatedHelpText}}\n
    \n
    \n \n \n \n \n \n {{showManualDescription(row, index)}}\n \n
    \n
    \n
    \n
    \n
    \n
    \n\n \n \n
    \n
    \n \n
    \n
    \n
    \n\n \n \n {{columnDefinitions.notificationTypeAsString.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.notificationId.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.translatedText.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.translatedGroup.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.equipmentIdentifier.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.count.headerName}}\n \n \n {{value}}\n \n \n\n \n \n {{columnDefinitions.maximumDuration.headerName}}\n \n \n {{value | duration}}\n \n \n \n \n \n {{columnDefinitions.totalDuration.headerName}}\n \n \n {{value | duration}}\n \n \n\n
    \n
    " /***/ }), /***/ "./src/app/components/notifications/notification-statistics.component.ts": /*!*******************************************************************************!*\ !*** ./src/app/components/notifications/notification-statistics.component.ts ***! \*******************************************************************************/ /*! exports provided: NotificationStatisticsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationStatisticsComponent", function() { return NotificationStatisticsComponent; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @swimlane/ngx-datatable */ "./node_modules/@swimlane/ngx-datatable/release/index.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_configuration__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/configuration */ "./src/app/configuration.ts"); /* harmony import */ var app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/models/fullscreen-config */ "./src/app/models/fullscreen-config.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_column_definition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../models/column-definition */ "./src/app/models/column-definition.ts"); /* harmony import */ var _pipes_duration_pipe__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../pipes/duration.pipe */ "./src/app/pipes/duration.pipe.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../localizedtimepicker/localizedtimepicker.component */ "./src/app/components/localizedtimepicker/localizedtimepicker.component.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _models_notification_statistics__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./../../models/notification-statistics */ "./src/app/models/notification-statistics.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_notification_statistics_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./../../services/notification-statistics.service */ "./src/app/services/notification-statistics.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotificationStatisticsComponent = /** @class */ (function () { function NotificationStatisticsComponent(_authService, _http, _service, _cmsTranslation, _viewService, _toastService, _csvConversionService, _configuration, _cmsTranslationService, _craneConfigService) { var _this = this; this._authService = _authService; this._http = _http; this._service = _service; this._cmsTranslation = _cmsTranslation; this._viewService = _viewService; this._toastService = _toastService; this._csvConversionService = _csvConversionService; this._configuration = _configuration; this._cmsTranslationService = _cmsTranslationService; this._craneConfigService = _craneConfigService; this._pageTitle = 'alarm_statistics'; this._timeend = '23:59'; this._requestPipelineSubject = new rxjs__WEBPACK_IMPORTED_MODULE_8__["Subject"](); this._requestPipeline = this._requestPipelineSubject.asObservable(); this.columnDefinitions = { notificationTypeAsString: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('type', 'notificationTypeAsString'), translatedText: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('text', 'translatedText'), translatedHelpText: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('helptext', 'translatedHelpText'), notificationId: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('number', 'notificationId'), translatedGroup: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('group', 'translatedGroup'), equipmentIdentifier: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('equipmentid', 'equipmentIdentifier'), count: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('count', 'count'), maximumDuration: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('maximum_duration', 'maximumDuration'), totalDuration: new _models_column_definition__WEBPACK_IMPORTED_MODULE_11__["ColumnDefinition"]('total_duration', 'totalDuration') }; this.isLoading = false; this.entries = []; this.areAllEntriesExpanded = false; // bootstrapping notification groups. this._fetchGroupsRequest = this._http.get(this.urlGroups).subscribe(function (notificationGroups) { console.debug('Received notification group language translations', notificationGroups); _this.notificationGroups = notificationGroups; _this.translateGroupDropdown(); }); this.translateDropdowns(); } Object.defineProperty(NotificationStatisticsComponent.prototype, "urlGroups", { get: function () { return './api/notification/groups'; }, enumerable: true, configurable: true }); NotificationStatisticsComponent.prototype.onDateStartPick = function (dateStart) { this.isDateStartSet = dateStart != null; if (!this.isDateStartSet) { this.startTimePicker.deleteTime(); } else if (!this.hasStartTime()) { this.startTimePicker.resetTime(); } this.filter.fromDate = dateStart; this.queueRequestFilter(this.filter); }; NotificationStatisticsComponent.prototype.onDateEndPick = function (dateEnd) { this.isDateEndSet = dateEnd != null; if (!this.isDateEndSet) { this.endTimePicker.deleteTime(); } else if (!this.hasEndTime()) { this.endTimePicker.resetTime(); } this.filter.toDate = dateEnd; this.queueRequestFilter(this.filter); }; NotificationStatisticsComponent.prototype.onTimeStartPick = function (timeStart) { this.filter.fromTime = timeStart; this.queueRequestFilter(this.filter); }; NotificationStatisticsComponent.prototype.onTimeEndPick = function (timeEnd) { this.filter.toTime = timeEnd; this.queueRequestFilter(this.filter); }; NotificationStatisticsComponent.prototype.hasStartTime = function () { return this.isValidTime(this.filter.fromTime); }; NotificationStatisticsComponent.prototype.hasEndTime = function () { return this.isValidTime(this.filter.toTime); }; NotificationStatisticsComponent.prototype.isValidTime = function (time) { return time != null && time.trim().length > 0; }; Object.defineProperty(NotificationStatisticsComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); NotificationStatisticsComponent.prototype.ngOnInit = function () { var _this = this; this._viewService.setToolbarTitle(this._pageTitle); this._requestPipeline.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__["distinctUntilChanged"])(function (a, b) { return JSON.stringify(a) === JSON.stringify(b); })).subscribe(function (filter) { return _this.fetchAlarmStatistics(filter); }); var today = new Date(); var oneMonthAgo = new Date(); oneMonthAgo.setMonth(today.getMonth() - 1); var allTypes = Object.keys(types_config__WEBPACK_IMPORTED_MODULE_10__["NotificationType"]).map(function (key) { return types_config__WEBPACK_IMPORTED_MODULE_10__["NotificationType"][key]; }); this.filter = { fromDate: oneMonthAgo, fromTime: '00:00', toDate: today, toTime: this._timeend, selectedGroups: [], selectedTypes: allTypes, filterText: '' }; this.listenForLanguageChanges(); this.queueRequestFilter(this.filter); }; NotificationStatisticsComponent.prototype.ngOnDestroy = function () { if (this._fetchGroupsRequest) { this._fetchGroupsRequest.unsubscribe(); } if (this._languageChangedSubscription) { this._languageChangedSubscription.unsubscribe(); } if (this._fetchAlarmStatisticsRequestSubscription) { this._fetchAlarmStatisticsRequestSubscription.unsubscribe(); } }; NotificationStatisticsComponent.prototype.translateDropdowns = function () { this.translateGroupDropdown(); this.translateTypeDropdown(); }; NotificationStatisticsComponent.prototype.translateGroupDropdown = function () { this.selectGroupLabel = this._cmsTranslation.translation.translate('select_group'); this.selectGroupOptions = []; var currentLang = this._cmsTranslation.currentLanguage; if (currentLang != null && this.notificationGroups != null) { var groupTranslations = this.notificationGroups[currentLang]; if (groupTranslations != null) { for (var i = 0; i < groupTranslations.length; ++i) { this.selectGroupOptions.push({ name: groupTranslations[i], value: i }); } if ((this.filter.selectedGroups == null || this.filter.selectedGroups.length == 0) && groupTranslations.length > 0) { this.filter.selectedGroups = Array.from(Array(groupTranslations.length).keys()); } } } }; NotificationStatisticsComponent.prototype.translateTypeDropdown = function () { this.selectTypeLabel = this._cmsTranslation.translation.translate('select_type'); this.selectTypeOptions = []; for (var _i = 0, _a = Object.keys(types_config__WEBPACK_IMPORTED_MODULE_10__["NotificationType"]).map(function (k) { return types_config__WEBPACK_IMPORTED_MODULE_10__["NotificationType"][k]; }).filter(function (k) { return typeof k === 'number'; }); _i < _a.length; _i++) { var key = _a[_i]; this.selectTypeOptions.push({ name: this._cmsTranslation.translation.translate(app_app_constants__WEBPACK_IMPORTED_MODULE_3__["NotificationTypeDisplayText"][key]), value: key }); } }; NotificationStatisticsComponent.prototype.listenForLanguageChanges = function () { var _this = this; this._languageChangedSubscription = this._cmsTranslation .languageChangedEvent .subscribe(function () { // when the language changed, fetch the entry // list and categories again, the server will respond // with the correct translations _this.translateDropdowns(); _this.fetchAlarmStatistics(_this.filter); }); }; NotificationStatisticsComponent.prototype.queueRequestFilter = function (filter) { var newFilter = Object.assign({}, filter); this._requestPipelineSubject.next(newFilter); }; NotificationStatisticsComponent.prototype.fetchAlarmStatistics = function (filter) { var _this = this; if (this._fetchAlarmStatisticsRequestSubscription != null) { this._fetchAlarmStatisticsRequestSubscription.unsubscribe(); } this.isLoading = true; var lang = this._cmsTranslation.currentLanguage; var selectedGroupNames = this.getSelectedGroupNames(filter.selectedGroups, lang); this._fetchAlarmStatisticsRequestSubscription = this._service .getAlarmStatistics(filter.fromDate, filter.fromTime, filter.toDate, filter.toTime, lang, selectedGroupNames, filter.selectedTypes, filter.filterText).subscribe(function (entries) { _this.entries = entries.map(function (x) { return _models_notification_statistics__WEBPACK_IMPORTED_MODULE_19__["NotificationStatistics"].translate(x, _this._cmsTranslation.currentLanguage); }); _this.isLoading = false; setTimeout(function () { // This solves a bug in ngx-datatable described here: // https://github.com/swimlane/ngx-datatable/issues/141 _this.table.offset = 0; _this.table.bodyComponent.offsetY = 0; var elements = _this.table.element.getElementsByTagName('datatable-body'); if (elements != null && elements.length > 0) { var body = elements[0]; if (body != null) { body.scrollTop = 0; } } }); }); }; NotificationStatisticsComponent.prototype.filterOnChange = function (newFilterValue) { if (newFilterValue !== undefined) { this.filter.filterText = newFilterValue; } this.queueRequestFilter(this.filter); }; NotificationStatisticsComponent.prototype.onLongPress = function (event) { this._toastService.showToastAsync('filtered', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__["TimeSpan"].Short, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_18__["NotificationToastType"].Success); this.filter.filterText = event.target.innerText; this.filterOnChange(); }; NotificationStatisticsComponent.prototype.expand = function (row) { if (this.table != null && this.table.rowDetail != null) { this.table.rowDetail.toggleExpandRow(row); this.areAllEntriesExpanded = false; } }; NotificationStatisticsComponent.prototype.expandAll = function () { if (this.table != null && this.table.rowDetail != null) { if (!this.areAllEntriesExpanded) { this.table.rowDetail.expandAllRows(); this.areAllEntriesExpanded = true; } else { this.table.rowDetail.collapseAllRows(); this.areAllEntriesExpanded = false; } } }; NotificationStatisticsComponent.prototype.getCellClass = function (cell) { return { 'info': cell.value === app_app_constants__WEBPACK_IMPORTED_MODULE_3__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_10__["NotificationType"].Info], 'warning': cell.value === app_app_constants__WEBPACK_IMPORTED_MODULE_3__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_10__["NotificationType"].Warning], 'error': cell.value === app_app_constants__WEBPACK_IMPORTED_MODULE_3__["NotificationTypeDisplayText"][types_config__WEBPACK_IMPORTED_MODULE_10__["NotificationType"].Error], }; }; NotificationStatisticsComponent.prototype.getSelectedGroupNames = function (selectedGroups, lang) { var groupNames = []; if (this.notificationGroups != null && selectedGroups != null && selectedGroups.length > 0) { var groupTranslations = this.notificationGroups[lang]; var maxIndex = selectedGroups.length > 0 ? Math.max.apply(Math, selectedGroups) : 0; if (groupTranslations != null && groupTranslations.length > maxIndex) { for (var _i = 0, selectedGroups_1 = selectedGroups; _i < selectedGroups_1.length; _i++) { var selectedGroup = selectedGroups_1[_i]; groupNames.push(groupTranslations[selectedGroup]); } } } return groupNames; }; NotificationStatisticsComponent.prototype.showMainManual = function () { var fsConfig = new app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenConfig"](this._cmsTranslation.translateToCurrentLanguage('manual'), app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenType"].PDF); if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_20__["AuthService"].permissionViewModalPdfKey)) { fsConfig.screenSettings = { file: this._configuration.server + "files/notifications/manuals/" + this._craneConfigService.craneConfig.notificationManualFilename + this._cmsTranslation.currentLanguage + ".pdf" }; this._viewService.openInFullscreen(fsConfig); } else { var url = new URL("files/notifications/manuals/" + this._craneConfigService.craneConfig.notificationManualFilename + this._cmsTranslation.currentLanguage + ".pdf", "" + this._configuration.server); this._viewService.openPdfInNewTab(url.href); } }; NotificationStatisticsComponent.prototype.exportCSV = function () { var requiredColums = []; requiredColums.push(this.columnDefinitions.count); requiredColums.push(this.columnDefinitions.notificationTypeAsString.addExtractor(function (x, t) { return t.translateToCurrentLanguage(x.notificationTypeAsString); })); requiredColums.push(this.columnDefinitions.notificationId); requiredColums.push(this.columnDefinitions.translatedText); requiredColums.push(this.columnDefinitions.translatedGroup); requiredColums.push(this.columnDefinitions.equipmentIdentifier); requiredColums.push(this.columnDefinitions.maximumDuration.addExtractor(function (x) { return (new _pipes_duration_pipe__WEBPACK_IMPORTED_MODULE_12__["DurationPipe"]().transform(x.maximumDuration)); })); requiredColums.push(this.columnDefinitions.totalDuration.addExtractor(function (x) { return (new _pipes_duration_pipe__WEBPACK_IMPORTED_MODULE_12__["DurationPipe"]().transform(x.totalDuration)); })); this._csvConversionService.saveAsCSV(this._pageTitle, requiredColums, this.entries); }; NotificationStatisticsComponent.prototype.showManualDescription = function (notification, index) { var lang = this._cmsTranslation.currentLanguage; return notification.manuals[lang][index].description; }; NotificationStatisticsComponent.prototype.showManual = function (notification, index) { var fsConfig = new app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenConfig"](this._cmsTranslation.translateToCurrentLanguage('manual'), app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_5__["FullscreenType"].PDF); var lang = this._cmsTranslation.currentLanguage; if (this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_20__["AuthService"].permissionViewModalPdfKey)) { fsConfig.screenSettings = { file: this._configuration.server + "files/notifications/manuals/" + notification.manuals[lang][index].path }; this._viewService.openInFullscreen(fsConfig); } else { var url = new URL("files/notifications/manuals/" + notification.manuals[lang][index].path, "" + this._configuration.server); this._viewService.openPdfInNewTab(url.href); } }; NotificationStatisticsComponent.prototype.hasManual = function (notification) { return notification.manuals != null && notification.manuals[this._cmsTranslation.currentLanguage] != null && notification.manuals[this._cmsTranslation.currentLanguage][0] != null; }; NotificationStatisticsComponent.prototype.getManualCount = function (notification) { var count = 0; if (notification.manuals != null && notification.manuals[this._cmsTranslation.currentLanguage] != null) { count = notification.manuals[this._cmsTranslation.currentLanguage].length; } var response = new Array(count); for (var i = 0; i < count; i++) { response[i] = i; } return response; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('startTimePicker'), __metadata("design:type", _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_17__["LocalizedtimepickerComponent"]) ], NotificationStatisticsComponent.prototype, "startTimePicker", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('endTimePicker'), __metadata("design:type", _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_17__["LocalizedtimepickerComponent"]) ], NotificationStatisticsComponent.prototype, "endTimePicker", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('notificationStatisticsTable'), __metadata("design:type", _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__["DatatableComponent"]) ], NotificationStatisticsComponent.prototype, "table", void 0); NotificationStatisticsComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'notification-statistics', template: __webpack_require__(/*! ./notification-statistics.component.html */ "./src/app/components/notifications/notification-statistics.component.html"), styles: [__webpack_require__(/*! ./notification.component.scss */ "./src/app/components/notifications/notification.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_16__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_auth_service__WEBPACK_IMPORTED_MODULE_20__["AuthService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"], _services_notification_statistics_service__WEBPACK_IMPORTED_MODULE_21__["NotificationStatisticsService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_13__["CmsTranslationService"], _services_view_service__WEBPACK_IMPORTED_MODULE_15__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_7__["ToastService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_14__["CSVConversionService"], app_configuration__WEBPACK_IMPORTED_MODULE_4__["Configuration"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_13__["CmsTranslationService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"]]) ], NotificationStatisticsComponent); return NotificationStatisticsComponent; }()); /***/ }), /***/ "./src/app/components/notifications/notification.component.html": /*!**********************************************************************!*\ !*** ./src/app/components/notifications/notification.component.html ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n\n" /***/ }), /***/ "./src/app/components/notifications/notification.component.scss": /*!**********************************************************************!*\ !*** ./src/app/components/notifications/notification.component.scss ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme.detail-row-content {\n background-color: #ffffff; }\n .default-theme.detail-row-content .summary-value-label {\n color: #ffffff; }\n .default-theme .quick-filterable:hover::after {\n color: #1561a1; }\n .default-theme .detail-text-label {\n border-color: #1561a1; }\n .testing-theme.detail-row-content {\n background-color: #98057e; }\n .testing-theme.detail-row-content .summary-value-label {\n color: #98057e; }\n .testing-theme .quick-filterable:hover::after {\n color: #cfac1f; }\n .testing-theme .detail-text-label {\n border-color: #cfac1f; }\n :host {\n width: 100%;\n display: block;\n position: absolute; }\n .button-box {\n padding: 0; }\n .action-button {\n float: right;\n margin-left: 16px;\n padding: 0 1.5rem; }\n .quick-filterable {\n cursor: pointer; }\n .quick-filterable:hover {\n font-weight: bold; }\n .datatable-row-detail {\n overflow-y: auto; }\n .detail-row-content {\n height: 100%;\n width: calc(100% - 30px);\n margin-left: 30px;\n padding: 4px 8px;\n overflow-y: auto; }\n .detail-row-content .detail-text-label, .detail-row-content .detail-note-label, .detail-row-content .detail-summary {\n padding-left: 8px;\n border-left-style: solid;\n border-left-width: 4px; }\n .detail-row-content .detail-text {\n white-space: pre-wrap;\n margin-bottom: 0.5em; }\n .detail-row-content .manual-description {\n vertical-align: top; }\n" /***/ }), /***/ "./src/app/components/notifications/notification.component.ts": /*!********************************************************************!*\ !*** ./src/app/components/notifications/notification.component.ts ***! \********************************************************************/ /*! exports provided: NotificationComponent, NOTIFICATION_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationComponent", function() { return NotificationComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOTIFICATION_CHILD_ROUTES", function() { return NOTIFICATION_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _notification_entrylist_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./notification-entrylist.component */ "./src/app/components/notifications/notification-entrylist.component.ts"); /* harmony import */ var _notification_statistics_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./notification-statistics.component */ "./src/app/components/notifications/notification-statistics.component.ts"); /* harmony import */ var _notification_latestlist_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./notification-latestlist.component */ "./src/app/components/notifications/notification-latestlist.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var NotificationComponent = /** @class */ (function () { function NotificationComponent() { } NotificationComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'notification', template: __webpack_require__(/*! ./notification.component.html */ "./src/app/components/notifications/notification.component.html"), styles: [__webpack_require__(/*! ./notification.component.scss */ "./src/app/components/notifications/notification.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_1__["PageTransitionAnimation"].opacity }) // Translated , __metadata("design:paramtypes", []) ], NotificationComponent); return NotificationComponent; }()); var NOTIFICATION_CHILD_ROUTES = [ { path: '', redirectTo: 'latest', pathMatch: 'full' }, { path: 'latest', component: _notification_latestlist_component__WEBPACK_IMPORTED_MODULE_4__["NotificationLatestlistComponent"] }, { path: 'history', component: _notification_entrylist_component__WEBPACK_IMPORTED_MODULE_2__["NotificationEntrylistComponent"] }, { path: 'statistics', component: _notification_statistics_component__WEBPACK_IMPORTED_MODULE_3__["NotificationStatisticsComponent"] } ]; /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear-ctk-electrical-svg.component.html": /*!****************************************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear-ctk-electrical-svg.component.html ***! \****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n M1\n \n \n \n \n \n\n \n \n \n M1\n \n \n \n \n\n \n \n M2\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.driveStates[1].displayValue | unitsystemconvert:vm?.driveStates[1].displayValueNaturalKey:lang}}\n {{vm?.driveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang}}\n {{'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit}}\n \n \n\n\n\n" /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear-ctk-electrical-svg.component.ts": /*!**************************************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear-ctk-electrical-svg.component.ts ***! \**************************************************************************************/ /*! exports provided: SlewingGearCtkElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlewingGearCtkElectricalSvgComponent", function() { return SlewingGearCtkElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _models_slewing_gear_electrical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../models/slewing-gear-electrical-ctk.viewmodel */ "./src/app/models/slewing-gear-electrical-ctk.viewmodel.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SlewingGearCtkElectricalSvgComponent = /** @class */ (function (_super) { __extends(SlewingGearCtkElectricalSvgComponent, _super); function SlewingGearCtkElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_5__["ModelStates"]; _this._vm = new _models_slewing_gear_electrical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_9__["SlewingGearElectricalCtkViewModel"](_this.config, types_config__WEBPACK_IMPORTED_MODULE_4__["DisplayValue"].ActSpeed); return _this; } SlewingGearCtkElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'slewing-gear-ctk-electrical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./slewing-gear-ctk-electrical-svg.component.html */ "./src/app/components/slewing-gear/slewing-gear-ctk-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_8__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_7__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_6__["ColorService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], SlewingGearCtkElectricalSvgComponent); return SlewingGearCtkElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear-ctk-mechanical-svg.component.html": /*!****************************************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear-ctk-mechanical-svg.component.html ***! \****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: vm?.context.naturalKeySlewingGearTravellingSpeed}}{{vm?.context.naturalKeySlewingGearTravellingSpeed | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: vm?.context.naturalKeySlewingGearTravellingSpeed}}{{vm?.context.naturalKeySlewingGearTravellingSpeed | unitsystemunit }}\n \n \n \n \n \n \n \n \n\n \n \n \n \n {{vm?.speedPos | unitsystemconvert: vm?.context.naturalKeySlewingGearTravellingSpeed}}{{vm?.context.naturalKeySlewingGearTravellingSpeed | unitsystemunit }}\n {{vm?.maxSpeedPos | unitsystemconvert: vm?.context.naturalKeySlewingGearTravellingSpeed}}{{vm?.context.naturalKeySlewingGearTravellingSpeed | unitsystemunit }}\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n\n" /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear-ctk-mechanical-svg.component.ts": /*!**************************************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear-ctk-mechanical-svg.component.ts ***! \**************************************************************************************/ /*! exports provided: SlewingGearCtkMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlewingGearCtkMechanicalSvgComponent", function() { return SlewingGearCtkMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_models_slewing_gear_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/slewing-gear-mechanical-ctk.viewmodel */ "./src/app/models/slewing-gear-mechanical-ctk.viewmodel.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SlewingGearCtkMechanicalSvgComponent = /** @class */ (function (_super) { __extends(SlewingGearCtkMechanicalSvgComponent, _super); function SlewingGearCtkMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this._vm = new app_models_slewing_gear_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_3__["SlewingGearMechanicalCtkViewModel"](_this.config, orientationService); return _this; } SlewingGearCtkMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'slewing-gear-ctk-mechanical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./slewing-gear-ctk-mechanical-svg.component.html */ "./src/app/components/slewing-gear/slewing-gear-ctk-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_5__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"]]) ], SlewingGearCtkMechanicalSvgComponent); return SlewingGearCtkMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear-diagnostics.component.html": /*!*********************************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear-diagnostics.component.html ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n

    \n releases\n

    \n
    \n
    \n

    \n interlocks\n

    \n
    \n
    \n

    \n speed_limits\n

    \n
    \n
    \n
    \n \n \n \n \n \n \n
    \n
    " /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear-diagnostics.component.scss": /*!*********************************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear-diagnostics.component.scss ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".list-container {\n /* Margin to avoid content overlap from Alarm badge */\n margin-bottom: 70px; }\n" /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear-diagnostics.component.ts": /*!*******************************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear-diagnostics.component.ts ***! \*******************************************************************************/ /*! exports provided: SlewingGearDiagnosticsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlewingGearDiagnosticsComponent", function() { return SlewingGearDiagnosticsComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SlewingGearDiagnosticsComponent = /** @class */ (function () { function SlewingGearDiagnosticsComponent(_configService) { this._configService = _configService; this._speedLimitValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this._interlockValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this._releaseValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this.speedLimitObservableCollection = this._speedLimitValues.asObservable(); this.interlockObservableCollection = this._interlockValues.asObservable(); this.releaseObservableCollection = this._releaseValues.asObservable(); } SlewingGearDiagnosticsComponent_1 = SlewingGearDiagnosticsComponent; SlewingGearDiagnosticsComponent.isEnabled = function (craneConfig) { var sirDataPoints = SlewingGearDiagnosticsComponent_1.resolveSIRDataPoints(craneConfig); return sirDataPoints != null && sirDataPoints.length > 0; }; SlewingGearDiagnosticsComponent.resolveSIRDataPoints = function (craneConfig) { var sirDataPoints = []; var craneSelector = 'ctk'; var mechanical = craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasSlewingGear].components.find(function (e) { return e.id === "mechanical-" + craneSelector; }); if (mechanical != null && mechanical.enabled && mechanical.components != null) { var limitsPositive = mechanical.components.find(function (e) { return e.id === 'speedLimitPositive'; }); if (limitsPositive != null && limitsPositive.enabled && limitsPositive.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsPositive.quickviewDatapoints); } var limitsNegative = mechanical.components.find(function (e) { return e.id === 'speedLimitNegative'; }); if (limitsNegative != null && limitsNegative.enabled && limitsNegative.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsNegative.quickviewDatapoints); } } return sirDataPoints; }; SlewingGearDiagnosticsComponent.prototype.ngOnInit = function () { var sirDataPoints = SlewingGearDiagnosticsComponent_1.resolveSIRDataPoints(this._configService.craneConfig); this.initSIRDataPoints(sirDataPoints); }; SlewingGearDiagnosticsComponent.prototype.ngOnDestroy = function () { if (this._speedLimitValues != null) { this._speedLimitValues.unsubscribe(); } if (this._interlockValues != null) { this._interlockValues.unsubscribe(); } if (this._releaseValues != null) { this._releaseValues.unsubscribe(); } }; SlewingGearDiagnosticsComponent.prototype.initSIRDataPoints = function (datapoints) { var speedLimitCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var interlockCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var releaseCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var checkingSet = new Set(); datapoints.filter(function (v, i, a) { return a.indexOf(v) === i; }).forEach(function (x) { if (x != null && x.enabled && !checkingSet.has(x.naturalKey)) { switch (x.viewTemplate) { case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Speedlimit: { speedLimitCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Interlock: { interlockCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Release: { releaseCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } } } }); this._speedLimitValues.next(speedLimitCollection); this._interlockValues.next(interlockCollection); this._releaseValues.next(releaseCollection); }; SlewingGearDiagnosticsComponent = SlewingGearDiagnosticsComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'slewing-gear-diagnostics', template: __webpack_require__(/*! ./slewing-gear-diagnostics.component.html */ "./src/app/components/slewing-gear/slewing-gear-diagnostics.component.html"), styles: [__webpack_require__(/*! ./slewing-gear-diagnostics.component.scss */ "./src/app/components/slewing-gear/slewing-gear-diagnostics.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"]]) ], SlewingGearDiagnosticsComponent); return SlewingGearDiagnosticsComponent; var SlewingGearDiagnosticsComponent_1; }()); /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear.component.html": /*!*********************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear.component.html ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n" /***/ }), /***/ "./src/app/components/slewing-gear/slewing-gear.component.ts": /*!*******************************************************************!*\ !*** ./src/app/components/slewing-gear/slewing-gear.component.ts ***! \*******************************************************************/ /*! exports provided: DIAGNOSTICS_COMPONENT_ID, SlewingGearComponent, SLEWING_GEAR_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIAGNOSTICS_COMPONENT_ID", function() { return DIAGNOSTICS_COMPONENT_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlewingGearComponent", function() { return SlewingGearComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SLEWING_GEAR_CHILD_ROUTES", function() { return SLEWING_GEAR_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../common/detail-router-svg-page.component */ "./src/app/components/common/detail-router-svg-page.component.ts"); /* harmony import */ var _slewing_gear_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./slewing-gear-ctk-electrical-svg.component */ "./src/app/components/slewing-gear/slewing-gear-ctk-electrical-svg.component.ts"); /* harmony import */ var _slewing_gear_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./slewing-gear-ctk-mechanical-svg.component */ "./src/app/components/slewing-gear/slewing-gear-ctk-mechanical-svg.component.ts"); /* harmony import */ var _slewing_gear_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./slewing-gear-diagnostics.component */ "./src/app/components/slewing-gear/slewing-gear-diagnostics.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DIAGNOSTICS_COMPONENT_ID = 'diagnostics'; var SlewingGearComponent = /** @class */ (function (_super) { __extends(SlewingGearComponent, _super); function SlewingGearComponent(viewService, router, activatedRoute, _configService) { var _this = _super.call(this, viewService, router, activatedRoute, 'slewing_gear') || this; _this.viewService = viewService; _this.router = router; _this.activatedRoute = activatedRoute; _this._configService = _configService; return _this; } SlewingGearComponent.prototype.initializeTabs = function () { var components = this._configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasSlewingGear].components.filter(function (c) { return c.enabled; }); if (components != null) { if (_slewing_gear_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__["SlewingGearDiagnosticsComponent"].isEnabled(this._configService.craneConfig)) { // Default component which is not directly in the config components.push({ enabled: true, id: DIAGNOSTICS_COMPONENT_ID, title: 'diagnostics' }); } this._availableRoutes = components.map(function (e) { return "/slewingGear/" + e.id; }); this._tabTitles = components.map(function (e) { return e.title; }); } this.routeToDefaultTab(); }; Object.defineProperty(SlewingGearComponent.prototype, "tabTitles", { get: function () { return this._tabTitles; }, enumerable: true, configurable: true }); Object.defineProperty(SlewingGearComponent.prototype, "tabRoutes", { get: function () { return this._availableRoutes; }, enumerable: true, configurable: true }); SlewingGearComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'slewing-gear', template: __webpack_require__(/*! ./slewing-gear.component.html */ "./src/app/components/slewing-gear/slewing-gear.component.html"), // using animations on route navigation (showcase) styles: [':host { width: 100%; display: block; position: absolute; }'], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], app_services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"]]) ], SlewingGearComponent); return SlewingGearComponent; }(_common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_6__["DetailRouterSvgPageComponent"])); var SLEWING_GEAR_CHILD_ROUTES = [ { path: 'mechanical-ctk', component: _slewing_gear_ctk_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_8__["SlewingGearCtkMechanicalSvgComponent"] }, { path: 'electrical-ctk', component: _slewing_gear_ctk_electrical_svg_component__WEBPACK_IMPORTED_MODULE_7__["SlewingGearCtkElectricalSvgComponent"] }, { path: DIAGNOSTICS_COMPONENT_ID, component: _slewing_gear_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__["SlewingGearDiagnosticsComponent"] } ]; /***/ }), /***/ "./src/app/components/spreader/spreader-diagnostics.component.html": /*!*************************************************************************!*\ !*** ./src/app/components/spreader/spreader-diagnostics.component.html ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n

    \n releases\n

    \n
    \n
    \n

    \n interlocks\n

    \n
    \n
    \n
    \n \n \n \n \n
    \n
    " /***/ }), /***/ "./src/app/components/spreader/spreader-diagnostics.component.scss": /*!*************************************************************************!*\ !*** ./src/app/components/spreader/spreader-diagnostics.component.scss ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".list-container {\n /* Margin to avoid content overlap from Alarm badge */\n margin-bottom: 70px; }\n" /***/ }), /***/ "./src/app/components/spreader/spreader-diagnostics.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/spreader/spreader-diagnostics.component.ts ***! \***********************************************************************/ /*! exports provided: SpreaderDiagnosticsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpreaderDiagnosticsComponent", function() { return SpreaderDiagnosticsComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SpreaderDiagnosticsComponent = /** @class */ (function () { function SpreaderDiagnosticsComponent(_configService) { this._configService = _configService; this._interlockValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this._releaseValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this.interlockObservableCollection = this._interlockValues.asObservable(); this.releaseObservableCollection = this._releaseValues.asObservable(); } SpreaderDiagnosticsComponent_1 = SpreaderDiagnosticsComponent; SpreaderDiagnosticsComponent.isEnabled = function (craneConfig) { var sirDataPoints = SpreaderDiagnosticsComponent_1.resolveSIRDataPoints(craneConfig); return sirDataPoints != null && sirDataPoints.length > 0; }; SpreaderDiagnosticsComponent.resolveSIRDataPoints = function (craneConfig) { var sirDataPoints = []; var mechanical = craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasSpreader].components.find(function (e) { return e.id === 'spreader'; }); if (mechanical != null && mechanical.enabled && mechanical.components != null) { var limitsPositive = mechanical.components.find(function (e) { return e.id === 'spreaderLimitsPositive'; }); if (limitsPositive != null && limitsPositive.enabled && limitsPositive.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsPositive.quickviewDatapoints); } var limitsNegative = mechanical.components.find(function (e) { return e.id === 'spreaderLimitsNegative'; }); if (limitsNegative != null && limitsNegative.enabled && limitsNegative.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsNegative.quickviewDatapoints); } } return sirDataPoints; }; SpreaderDiagnosticsComponent.prototype.ngOnInit = function () { var sirDataPoints = SpreaderDiagnosticsComponent_1.resolveSIRDataPoints(this._configService.craneConfig); this.initSIRDataPoints(sirDataPoints); }; SpreaderDiagnosticsComponent.prototype.ngOnDestroy = function () { if (this._interlockValues != null) { this._interlockValues.unsubscribe(); } if (this._releaseValues != null) { this._releaseValues.unsubscribe(); } }; SpreaderDiagnosticsComponent.prototype.initSIRDataPoints = function (datapoints) { var interlockCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var releaseCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var checkingSet = new Set(); datapoints.filter(function (v, i, a) { return a.indexOf(v) === i; }).forEach(function (x) { if (x != null && x.enabled && !checkingSet.has(x.naturalKey)) { switch (x.viewTemplate) { case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Interlock: { interlockCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Release: { releaseCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } } } }); this._interlockValues.next(interlockCollection); this._releaseValues.next(releaseCollection); }; SpreaderDiagnosticsComponent = SpreaderDiagnosticsComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'spreader-diagnostics', template: __webpack_require__(/*! ./spreader-diagnostics.component.html */ "./src/app/components/spreader/spreader-diagnostics.component.html"), styles: [__webpack_require__(/*! ./spreader-diagnostics.component.scss */ "./src/app/components/spreader/spreader-diagnostics.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"]]) ], SpreaderDiagnosticsComponent); return SpreaderDiagnosticsComponent; var SpreaderDiagnosticsComponent_1; }()); /***/ }), /***/ "./src/app/components/spreader/spreader-svg.component.html": /*!*****************************************************************!*\ !*** ./src/app/components/spreader/spreader-svg.component.html ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n\n \n \n\n \n \n\n \n \n \n \n \n\n \n\n \n\n \n\n \n\n \n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n \n \n \n \n {{vm?.telescopeLengthLeft}}\n \n \n \n \n \n \n {{vm?.telescopeLengthRight}}\n \n \n \n \n \n \n \n {{vm?.twistlockFrontLeft.iconKey}}\n \n \n\n \n \n \n \n \n {{vm?.twistlockFrontRight.iconKey}} \n \n \n \n \n \n \n \n {{vm?.twistlockRearLeft.iconKey}}\n \n \n \n \n \n \n \n {{vm?.twistlockRearRight.iconKey}} \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n {{vm?.allFlippersDown ? 'V' : 'A'}}\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.piggybackFrontLeft.iconKey}}\n \n \n \n \n \n \n \n {{vm?.piggybackFrontRight.iconKey}}\n \n \n \n \n \n \n \n {{vm?.piggybackRearRight.iconKey}}\n \n \n \n \n \n \n \n {{vm?.piggybackRearLeft.iconKey}}\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n {{vm?.piggybackShoulderFrontLeft.iconKey}}\n \n \n \n \n \n {{vm?.piggybackShoulderFrontRight.iconKey}}\n \n \n \n \n \n {{vm?.piggybackShoulderRearLeft.iconKey}}\n \n \n \n \n \n {{vm?.piggybackShoulderRearRight.iconKey}}\n \n \n \n\n\n\n" /***/ }), /***/ "./src/app/components/spreader/spreader-svg.component.ts": /*!***************************************************************!*\ !*** ./src/app/components/spreader/spreader-svg.component.ts ***! \***************************************************************/ /*! exports provided: SpreaderSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpreaderSvgComponent", function() { return SpreaderSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_spreader_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/spreader.viewmodel */ "./src/app/models/spreader.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SpreaderSvgComponent = /** @class */ (function (_super) { __extends(SpreaderSvgComponent, _super); function SpreaderSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_5__["ModelStates"]; _this._vm = new _models_spreader_viewmodel__WEBPACK_IMPORTED_MODULE_6__["SpreaderViewModel"](configService.craneConfig, colorService, orientationService); return _this; } SpreaderSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'spreader-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./spreader-svg.component.html */ "./src/app/components/spreader/spreader-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], SpreaderSvgComponent); return SpreaderSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/spreader/spreader.component.html": /*!*************************************************************!*\ !*** ./src/app/components/spreader/spreader.component.html ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n\n\n" /***/ }), /***/ "./src/app/components/spreader/spreader.component.ts": /*!***********************************************************!*\ !*** ./src/app/components/spreader/spreader.component.ts ***! \***********************************************************/ /*! exports provided: DIAGNOSTICS_COMPONENT_ID, SpreaderComponent, SPREADER_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIAGNOSTICS_COMPONENT_ID", function() { return DIAGNOSTICS_COMPONENT_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpreaderComponent", function() { return SpreaderComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SPREADER_CHILD_ROUTES", function() { return SPREADER_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _spreader_spreader_svg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../spreader/spreader-svg.component */ "./src/app/components/spreader/spreader-svg.component.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../common/detail-router-svg-page.component */ "./src/app/components/common/detail-router-svg-page.component.ts"); /* harmony import */ var _spreader_diagnostics_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./spreader-diagnostics.component */ "./src/app/components/spreader/spreader-diagnostics.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DIAGNOSTICS_COMPONENT_ID = 'diagnostics'; var SpreaderComponent = /** @class */ (function (_super) { __extends(SpreaderComponent, _super); function SpreaderComponent(viewService, router, activatedRoute, _configService) { var _this = _super.call(this, viewService, router, activatedRoute, 'spreader') || this; _this.viewService = viewService; _this.router = router; _this.activatedRoute = activatedRoute; _this._configService = _configService; return _this; } SpreaderComponent.prototype.initializeTabs = function () { var components = this._configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasSpreader].components.filter(function (c) { return c.enabled; }); if (components != null) { if (_spreader_diagnostics_component__WEBPACK_IMPORTED_MODULE_8__["SpreaderDiagnosticsComponent"].isEnabled(this._configService.craneConfig)) { // Default component which is not directly in the config components.push({ enabled: true, id: DIAGNOSTICS_COMPONENT_ID, title: 'diagnostics' }); } this._availableRoutes = components.map(function (e) { return "/spreader/" + e.id; }); this._tabTitles = components.map(function (e) { return e.title; }); } this.routeToDefaultTab(); }; Object.defineProperty(SpreaderComponent.prototype, "tabTitles", { get: function () { return this._tabTitles; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderComponent.prototype, "tabRoutes", { get: function () { return this._availableRoutes; }, enumerable: true, configurable: true }); SpreaderComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'spreader', template: __webpack_require__(/*! ./spreader.component.html */ "./src/app/components/spreader/spreader.component.html"), // using animations on route navigation (showcase) styles: [':host { width: 100%; display: block; position: absolute; }'], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_4__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_3__["ViewService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"]]) ], SpreaderComponent); return SpreaderComponent; }(_common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_7__["DetailRouterSvgPageComponent"])); var SPREADER_CHILD_ROUTES = [ { path: 'spreader', component: _spreader_spreader_svg_component__WEBPACK_IMPORTED_MODULE_5__["SpreaderSvgComponent"] }, { path: DIAGNOSTICS_COMPONENT_ID, component: _spreader_diagnostics_component__WEBPACK_IMPORTED_MODULE_8__["SpreaderDiagnosticsComponent"] } ]; /***/ }), /***/ "./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.html": /*!*************************************************************************************************!*\ !*** ./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.html ***! \*************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.scss": /*!*************************************************************************************************!*\ !*** ./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.scss ***! \*************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".pagination.default-theme .nav-button {\n background-color: #1561a1; }\n .pagination.default-theme .nav-button:hover {\n background-color: #1b7cce;\n transition: background-color 0.1s ease-in; }\n .pagination.default-theme .nav-button {\n color: #ffffff; }\n .pagination.default-theme a.active {\n color: #ffffff; }\n .pagination.default-theme .nav-button.disabled {\n background-color: #d4d7da; }\n .pagination.default-theme .nav-button.disabled {\n color: #949aa3; }\n .pagination.default-theme a.active {\n background-color: #00cf78; }\n .pagination.default-theme a:hover:not(.active) {\n background-color: #9cffd5; }\n .pagination.default-theme a {\n color: #293647; }\n .pagination.testing-theme .nav-button {\n background-color: #cfac1f; }\n .pagination.testing-theme .nav-button:hover {\n background-color: #e2c23f;\n transition: background-color 0.1s ease-in; }\n .pagination.testing-theme .nav-button {\n color: #ffffff; }\n .pagination.testing-theme a.active {\n color: #ffffff; }\n .pagination.testing-theme .nav-button.disabled {\n background-color: #b0c3d2; }\n .pagination.testing-theme .nav-button.disabled {\n color: #a9cfec; }\n .pagination.testing-theme a.active {\n background-color: #00cf78; }\n .pagination.testing-theme a:hover:not(.active) {\n background-color: #9cffd5; }\n .pagination.testing-theme a {\n color: #525252; }\n ul {\n display: inline-flex;\n padding: 0px;\n margin: 0px;\n height: 40px; }\n ul li {\n display: inline; }\n ul li .nav-button {\n width: 40px;\n height: 40px; }\n ul li .nav-button i {\n padding-top: 10px;\n font-size: 18px; }\n ul li .nav-button:not(.disabled) {\n cursor: pointer; }\n ul li .nav-button.disabled {\n pointer-events: none; }\n ul li a {\n cursor: pointer;\n padding: 0;\n width: 40px;\n height: 40px;\n line-height: 40px;\n vertical-align: middle;\n text-decoration: none;\n text-align: center; }\n ul li a.active {\n pointer-events: none; }\n" /***/ }), /***/ "./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.ts": /*!***********************************************************************************************!*\ !*** ./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.ts ***! \***********************************************************************************************/ /*! exports provided: ChartDataPagerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartDataPagerComponent", function() { return ChartDataPagerComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ChartDataPagerComponent = /** @class */ (function () { function ChartDataPagerComponent() { this.maxNavButtonCount = 5; this.hasMoreItemsOffset = 2; this.pages = []; this.currentPage = 1; this.navigate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } Object.defineProperty(ChartDataPagerComponent.prototype, "pageCount", { get: function () { return this._totalPages; }, set: function (value) { this._totalPages = value; this.updatePages(); }, enumerable: true, configurable: true }); ChartDataPagerComponent.prototype.updatePages = function () { this.pages = []; var minPage = Math.min(Math.max(1, this.pageCount - (this.maxNavButtonCount - 1)), Math.max(1, this.currentPage - ((this.maxNavButtonCount - 1) - this.hasMoreItemsOffset))); var maxPage = Math.min(minPage + (this.maxNavButtonCount - 1), this._totalPages); for (var page = minPage; page <= maxPage; page++) { this.pages.push(page); } }; ChartDataPagerComponent.prototype.goToPage = function (pageNumber) { if (pageNumber === this.currentPage || pageNumber < 1 || pageNumber > this.pageCount) { return; } this.currentPage = pageNumber; this.updatePages(); this.navigate.emit(pageNumber); }; Object.defineProperty(ChartDataPagerComponent.prototype, "hasNext", { get: function () { return this.currentPage < this._totalPages; }, enumerable: true, configurable: true }); Object.defineProperty(ChartDataPagerComponent.prototype, "hasPrev", { get: function () { return this.currentPage > 1; }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], ChartDataPagerComponent.prototype, "pageCount", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], ChartDataPagerComponent.prototype, "navigate", void 0); ChartDataPagerComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'chart-data-pager', template: __webpack_require__(/*! ./chart-data-pager.component.html */ "./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.html"), styles: [__webpack_require__(/*! ./chart-data-pager.component.scss */ "./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.scss")] }), __metadata("design:paramtypes", []) ], ChartDataPagerComponent); return ChartDataPagerComponent; }()); /***/ }), /***/ "./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.html": /*!****************************************************************************************************!*\ !*** ./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.html ***! \****************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n \n
    \n
    \n \n \n
    \n" /***/ }), /***/ "./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.scss": /*!****************************************************************************************************!*\ !*** ./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.scss ***! \****************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme :host {\n background-color: #f4f5f6; }\n\n.chart-frame.default-theme {\n background-color: #ffffff; }\n\n.testing-theme :host {\n background-color: #f4f5f6; }\n\n.chart-frame.testing-theme {\n background-color: #98057e; }\n\n:host {\n display: block;\n height: 100%;\n position: relative; }\n\n.chart-frame {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 40px;\n width: 100%; }\n\n.chart-frame .chart-host {\n width: auto;\n height: 100%;\n display: block;\n padding: 1em;\n box-sizing: border-box; }\n\n.chart-controls {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%; }\n\nbutton.refresh {\n height: 40px;\n min-width: 180px; }\n" /***/ }), /***/ "./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.ts": /*!**************************************************************************************************!*\ !*** ./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.ts ***! \**************************************************************************************************/ /*! exports provided: StatisticsColumnChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticsColumnChartComponent", function() { return StatisticsColumnChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.ts"); /* harmony import */ var app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_project__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! types/project */ "./src/types/project.ts"); /* harmony import */ var _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../services/statistics/statistics.service */ "./src/app/services/statistics/statistics.service.ts"); /* harmony import */ var _utils_date_to_group_converter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/date-to-group.converter */ "./src/app/components/statistics/utils/date-to-group.converter.ts"); /* harmony import */ var _chart_data_pager_chart_data_pager_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../chart-data-pager/chart-data-pager.component */ "./src/app/components/statistics/controls/chart-data-pager/chart-data-pager.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var StatisticsColumnChartComponent = /** @class */ (function () { function StatisticsColumnChartComponent(_statisticService, _unitSystemNumericConvertPipe, translationService, _timeUtilsService, _cmsTranslationService) { this._statisticService = _statisticService; this._unitSystemNumericConvertPipe = _unitSystemNumericConvertPipe; this._timeUtilsService = _timeUtilsService; this._cmsTranslationService = _cmsTranslationService; this._statisticItems = new Map(); this.isDirty = false; this.isLoading = false; this.totalPageCount = 0; this.pageCountChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this._datePipe = new angular_l10n__WEBPACK_IMPORTED_MODULE_1__["L10nDatePipe"](); this._smartTranslate = new app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_3__["SmartTranslatePipe"](translationService); } Object.defineProperty(StatisticsColumnChartComponent.prototype, "granularity", { set: function (value) { this._granularity = value; this.evaluateDirty(); }, enumerable: true, configurable: true }); Object.defineProperty(StatisticsColumnChartComponent.prototype, "chartType", { set: function (value) { this._chartType = value; this.evaluateDirty(); }, enumerable: true, configurable: true }); Object.defineProperty(StatisticsColumnChartComponent.prototype, "dateFrom", { set: function (value) { this._dateFrom = value; this.evaluateDirty(); }, enumerable: true, configurable: true }); Object.defineProperty(StatisticsColumnChartComponent.prototype, "timeFrom", { set: function (value) { this._timeFrom = value; this.evaluateDirty(); }, enumerable: true, configurable: true }); Object.defineProperty(StatisticsColumnChartComponent.prototype, "dateTo", { set: function (value) { this._dateTo = value; this.evaluateDirty(); }, enumerable: true, configurable: true }); Object.defineProperty(StatisticsColumnChartComponent.prototype, "timeTo", { set: function (value) { this._timeTo = value; this.evaluateDirty(); }, enumerable: true, configurable: true }); Object.defineProperty(StatisticsColumnChartComponent.prototype, "statisticItems", { set: function (value) { var _this = this; this._statisticItems.clear(); if (value != null) { value.forEach(function (v) { return _this._statisticItems.set(v.naturalKey, v); }); } this.evaluateDirty(); }, enumerable: true, configurable: true }); Object.defineProperty(StatisticsColumnChartComponent.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); StatisticsColumnChartComponent.prototype.ngOnInit = function () { var _this = this; this._translationServiceSubscription = this._cmsTranslationService.languageChangedEvent.subscribe(function (_) { _this.updateChartData(); }); }; StatisticsColumnChartComponent.prototype.evaluateDirty = function () { this.isDirty = (this._dateFrom != null || this._dateTo != null) ? false : true; }; StatisticsColumnChartComponent.prototype.resetPageIndex = function () { this.pager.currentPage = 1; this.pager.pageCount = this.totalPageCount; }; StatisticsColumnChartComponent.prototype.updateChartData = function (page) { var _this = this; if (page === void 0) { page = 0; } if (this.isDirty) { this.resetPageIndex(); this.isDirty = false; } if (this._statisticItems != null && this._statisticItems.size > 0) { this.isLoading = true; var from = this._timeUtilsService.toDateTime(this._timeFrom, this._dateFrom); var to = this._timeUtilsService.toDateTime(this._timeTo, this._dateTo); var chartDataObservable = this._statisticService.getChartData(this._granularity, this._chartType, from, to, this.lang, Array.from(this._statisticItems.keys()), page - 1); chartDataObservable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["take"])(1)).subscribe(function (data) { _this.isLoading = false; _this.handleNewStatisticsData(data); }); } }; StatisticsColumnChartComponent.prototype.handleNewStatisticsData = function (data) { this.chart.clear(); if (data.groupDates != null && data.series != null) { var newLabels = this.getLabels(data.groupDates); this.chart.labels = newLabels; for (var _i = 0, _a = data.series; _i < _a.length; _i++) { var serie = _a[_i]; var key = serie.naturalKey; var serieConfig = this._statisticItems.get(key); if (serieConfig != null) { var title = serieConfig.title; var color = serieConfig.color; this.chart.addDataset(key, title, color); var newData = this.getData(serie, data.groupDates); this.chart.supplyData(key, newData); } } } this.totalPageCount = Math.max(1, data.totalPages); this.pageCountChanged.emit(this.totalPageCount); this.chart.update(); }; Object.defineProperty(StatisticsColumnChartComponent.prototype, "resolveChartType", { get: function () { switch (Number(types_project__WEBPACK_IMPORTED_MODULE_9__["StatisticChartType"][this._chartType])) { case types_project__WEBPACK_IMPORTED_MODULE_9__["StatisticChartType"].Bar: return app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["ChartType"].Bar; case types_project__WEBPACK_IMPORTED_MODULE_9__["StatisticChartType"].Line: return app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["ChartType"].Line; default: return app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["ChartType"].Bar; } }, enumerable: true, configurable: true }); StatisticsColumnChartComponent.prototype.getLabels = function (groupDates) { // for a multi-row display on the x-axis we crete an array of labels var newLabels = []; for (var _i = 0, groupDates_1 = groupDates; _i < groupDates_1.length; _i++) { var date = groupDates_1[_i]; var group = _utils_date_to_group_converter__WEBPACK_IMPORTED_MODULE_11__["DateToGroupConverter"].convert(this._timeUtilsService.transformBackendUtcToEffectiveLocalTime(date), this._granularity, this._datePipe, this._smartTranslate, this.lang); var groupLines = group.split(';'); // we receive group lines separated with semicolon newLabels.push(groupLines); } return newLabels; }; StatisticsColumnChartComponent.prototype.getData = function (serie, groupDates) { var newData = []; if (serie.items != null && serie.items.length > 0 && groupDates != null && groupDates.length > 0) { var itemsMap = serie.items.reduce(function (map, item) { return map.set(item.key, item.value); }, new Map()); // this way we ensure correct data alignment (data order) for (var _i = 0, groupDates_2 = groupDates; _i < groupDates_2.length; _i++) { var date = groupDates_2[_i]; var value = itemsMap.get(date); switch (this.resolveChartType) { case app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["ChartType"].Bar: { var point = app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["OperatorChartComponent"].initChartPoint(value); newData.push(point); break; } default: { var point = app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["OperatorChartComponent"].initChartPoint(value, Object(moment__WEBPACK_IMPORTED_MODULE_7__["utc"])(date).toDate()); newData.push(point); break; } } } } return newData; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('pager'), __metadata("design:type", _chart_data_pager_chart_data_pager_component__WEBPACK_IMPORTED_MODULE_12__["ChartDataPagerComponent"]) ], StatisticsColumnChartComponent.prototype, "pager", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('chart'), __metadata("design:type", app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["OperatorChartComponent"]) ], StatisticsColumnChartComponent.prototype, "chart", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], StatisticsColumnChartComponent.prototype, "granularity", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], StatisticsColumnChartComponent.prototype, "chartType", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Date), __metadata("design:paramtypes", [Date]) ], StatisticsColumnChartComponent.prototype, "dateFrom", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], StatisticsColumnChartComponent.prototype, "timeFrom", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Date), __metadata("design:paramtypes", [Date]) ], StatisticsColumnChartComponent.prototype, "dateTo", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], StatisticsColumnChartComponent.prototype, "timeTo", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array), __metadata("design:paramtypes", [Array]) ], StatisticsColumnChartComponent.prototype, "statisticItems", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], StatisticsColumnChartComponent.prototype, "pageCountChanged", void 0); StatisticsColumnChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'statistics-column-chart', template: __webpack_require__(/*! ./statistics-column-chart.component.html */ "./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.html"), styles: [__webpack_require__(/*! ./statistics-column-chart.component.scss */ "./src/app/components/statistics/controls/column-chart/statistics-column-chart.component.scss")], providers: [app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_4__["UnitSystemNumericConvertPipe"]] }), __metadata("design:paramtypes", [_services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_10__["StatisticsService"], app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_4__["UnitSystemNumericConvertPipe"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_6__["TimeUtilsService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_5__["CmsTranslationService"]]) ], StatisticsColumnChartComponent); return StatisticsColumnChartComponent; }()); /***/ }), /***/ "./src/app/components/statistics/models/statistic-export-values.ts": /*!*************************************************************************!*\ !*** ./src/app/components/statistics/models/statistic-export-values.ts ***! \*************************************************************************/ /*! exports provided: StatisticExportValues */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticExportValues", function() { return StatisticExportValues; }); var StatisticExportValues = /** @class */ (function () { function StatisticExportValues(date, values) { if (values === void 0) { values = []; } this.date = date; this.values = values; } return StatisticExportValues; }()); /***/ }), /***/ "./src/app/components/statistics/models/statistic-item-selection.ts": /*!**************************************************************************!*\ !*** ./src/app/components/statistics/models/statistic-item-selection.ts ***! \**************************************************************************/ /*! exports provided: StatisticItemSelection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticItemSelection", function() { return StatisticItemSelection; }); var StatisticItemSelection = /** @class */ (function () { function StatisticItemSelection() { } return StatisticItemSelection; }()); /***/ }), /***/ "./src/app/components/statistics/statistic-tabs/base-statistic.component.html": /*!************************************************************************************!*\ !*** ./src/app/components/statistics/statistic-tabs/base-statistic.component.html ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n \n \n
    \n
    \n \n \n
    \n\n
    \n \n \n\n
    \n
    \n \n
    \n
    \n \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/statistics/statistic-tabs/base-statistic.component.scss": /*!************************************************************************************!*\ !*** ./src/app/components/statistics/statistic-tabs/base-statistic.component.scss ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n width: 100%;\n display: block;\n position: absolute; }\n\n.content-wrapper .col {\n height: inherit; }\n\n.content-wrapper .col.datapoint-collection-container {\n padding-left: 0;\n position: relative; }\n\n.content-wrapper .col.datapoint-collection-container .scrollable-content {\n position: absolute;\n height: 100%;\n overflow-y: scroll;\n overflow-x: hidden; }\n\n.content-wrapper .col .floating-chart-container {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n border-radius: 6px;\n overflow: hidden;\n height: 100%; }\n" /***/ }), /***/ "./src/app/components/statistics/statistic-tabs/base-statistic.component.ts": /*!**********************************************************************************!*\ !*** ./src/app/components/statistics/statistic-tabs/base-statistic.component.ts ***! \**********************************************************************************/ /*! exports provided: BaseStatisticComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseStatisticComponent", function() { return BaseStatisticComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_project__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! types/project */ "./src/types/project.ts"); /* harmony import */ var _models_column_definition__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../models/column-definition */ "./src/app/models/column-definition.ts"); /* harmony import */ var _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../localizedtimepicker/localizedtimepicker.component */ "./src/app/components/localizedtimepicker/localizedtimepicker.component.ts"); /* harmony import */ var _models_statistic_export_values__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../models/statistic-export-values */ "./src/app/components/statistics/models/statistic-export-values.ts"); /* harmony import */ var _models_statistic_item_selection__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../models/statistic-item-selection */ "./src/app/components/statistics/models/statistic-item-selection.ts"); /* harmony import */ var _utils_date_to_group_converter__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/date-to-group.converter */ "./src/app/components/statistics/utils/date-to-group.converter.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BaseStatisticComponent = /** @class */ (function () { function BaseStatisticComponent(_translationService, _timeUtilsService, _configService, _statisticService, _viewService, _storageService, _colorService, _cmsTranslation, _csvConversionService, _changeDetector) { this._translationService = _translationService; this._timeUtilsService = _timeUtilsService; this._configService = _configService; this._statisticService = _statisticService; this._viewService = _viewService; this._storageService = _storageService; this._colorService = _colorService; this._cmsTranslation = _cmsTranslation; this._csvConversionService = _csvConversionService; this._changeDetector = _changeDetector; this._statisticHoursCollection = new rxjs__WEBPACK_IMPORTED_MODULE_4__["ReplaySubject"](1); this.statisticCollection = this._statisticHoursCollection.asObservable(); this.items = []; this.selectOptionsForChartType = []; this.selectOptionsForTimePeriod = []; this.granularities = types_project__WEBPACK_IMPORTED_MODULE_6__["StatisticGranularity"]; this.chartTypes = types_project__WEBPACK_IMPORTED_MODULE_6__["StatisticChartType"]; this.defaultFromTime = '00:00'; this.defaultToTime = '23:59'; this._pageTitle = 'statistics'; this.exportRows = []; this.totalPageCount = 0; this.requestingExportData = false; this._viewService.setToolbarTitle('statistics'); this.colorPalette = this._colorService.chartSeriesPalette; this._datePipe = new angular_l10n__WEBPACK_IMPORTED_MODULE_1__["L10nDatePipe"](); this._smartTranslate = new app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_3__["SmartTranslatePipe"](_translationService); this.initStatisticCounters(); this.initChartTypeDropdown(); this.initTimePeriodDropdown(); this.listenForLanguageChanges(); } Object.defineProperty(BaseStatisticComponent.prototype, "lang", { get: function () { return this._cmsTranslation.currentLanguage; }, enumerable: true, configurable: true }); BaseStatisticComponent.prototype.restorePreviousSelection = function () { var _this = this; var selectedItems = this._storageService.getItem(this.selectedItemsStorageKey); if (selectedItems) { this.selectedItems = JSON.parse(selectedItems); this.selectedItems.forEach(function (selection) { var statisticCounter = _this.statisticCounters.items.find(function (e) { return e.naturalKey === selection.naturalKey; }); if (statisticCounter != null) { statisticCounter.isSelected = true; statisticCounter.selectionColor = selection.color; } }); } }; BaseStatisticComponent.prototype.ngOnInit = function () { this.restorePreviousSelection(); var today = new Date(); var oneMonthBeforeNow = new Date(); oneMonthBeforeNow.setMonth(today.getMonth() - 1); this.defaultStartDate = oneMonthBeforeNow; this.defaultEndDate = today; this.fromTime = this.defaultFromTime; this.toTime = this.defaultToTime; this.startDate = this.defaultStartDate; this.endDate = this.defaultEndDate; this.chartType = types_project__WEBPACK_IMPORTED_MODULE_6__["StatisticChartType"].Bar; this.granularity = types_project__WEBPACK_IMPORTED_MODULE_6__["StatisticGranularity"].Hour; }; BaseStatisticComponent.prototype.ngOnDestroy = function () { if (this._languageChangedSubscription) { this._languageChangedSubscription.unsubscribe(); } if (this._fetchStatisticsPointsRequestSubscription) { this._fetchStatisticsPointsRequestSubscription.unsubscribe(); } }; BaseStatisticComponent.prototype.counterSelectionChanged = function () { this.selectedItems = this.statisticCounters.items .filter(function (e) { return e.isSelected; }) .map(function (item) { var selectedItem = new _models_statistic_item_selection__WEBPACK_IMPORTED_MODULE_11__["StatisticItemSelection"](); selectedItem.naturalKey = item.naturalKey; selectedItem.title = item.title; // tslint:disable-next-line:no-bitwise selectedItem.color = item.selectionColor || '#' + (Math.random() * 0xFFFFFF << 0).toString(16); return selectedItem; }); // persist selected items in local-storage this._storageService.setItem(this.selectedItemsStorageKey, JSON.stringify(this.selectedItems)); }; BaseStatisticComponent.prototype.onTimeStartPick = function (timeStart) { this.fromTime = timeStart; }; BaseStatisticComponent.prototype.onTimeEndPick = function (timeEnd) { this.toTime = timeEnd; }; BaseStatisticComponent.prototype.onDateStartPick = function (dateStart) { this.isDateStartSet = !!dateStart; if (!this.hasStartTime()) { this.fromTime = this.defaultFromTime; } this.startDate = dateStart; }; BaseStatisticComponent.prototype.onDateEndPick = function (dateEnd) { this.isDateEndSet = !!dateEnd; if (!this.hasEndTime()) { this.toTime = this.defaultToTime; } this.endDate = dateEnd; }; BaseStatisticComponent.prototype.filterMatchingCounters = function (naturalKeyFilter, counterTabs) { var statisticCounters = new _models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_8__["DataPointCollection"](); for (var _i = 0, counterTabs_1 = counterTabs; _i < counterTabs_1.length; _i++) { var counterTab = counterTabs_1[_i]; if (counterTab != null && counterTab.enabled && counterTab.datapointCollectionControls != null && counterTab.datapointCollectionControls.length > 0) { for (var _a = 0, _b = counterTab.datapointCollectionControls; _a < _b.length; _a++) { var dataPointControl = _b[_a]; if (dataPointControl != null && dataPointControl.enabled && dataPointControl.datapoints != null && dataPointControl.datapoints.length > 0) { var readDataPoints = dataPointControl.datapoints; if (readDataPoints != null && readDataPoints.length > 0) { for (var _c = 0, readDataPoints_1 = readDataPoints; _c < readDataPoints_1.length; _c++) { var readDataPoint = readDataPoints_1[_c]; if (readDataPoint != null && readDataPoint.enabled && readDataPoint.naturalKey != null && readDataPoint.naturalKey.search(naturalKeyFilter) >= 0) { statisticCounters.items.push({ title: readDataPoint.title, naturalKey: readDataPoint.naturalKey }); } } } } } } } return statisticCounters; }; BaseStatisticComponent.prototype.hasStartTime = function () { return this.isValidTime(this.fromTime); }; BaseStatisticComponent.prototype.hasEndTime = function () { return this.isValidTime(this.toTime); }; BaseStatisticComponent.prototype.isValidTime = function (time) { return time != null && time.trim().length > 0; }; BaseStatisticComponent.prototype.listenForLanguageChanges = function () { var _this = this; this._languageChangedSubscription = this._cmsTranslation.languageChangedEvent.subscribe(function () { _this._changeDetector.detectChanges(); _this.selectOptionsForChartType = _this.selectOptionsForChartType.slice(); _this.selectOptionsForTimePeriod = _this.selectOptionsForTimePeriod.slice(); _this._changeDetector.detectChanges(); }); }; BaseStatisticComponent.prototype.initChartTypeDropdown = function () { var _this = this; var numberKeys = Object .keys(this.chartTypes) .map(function (k) { return _this.chartTypes[k]; }) .filter(function (v) { return typeof v === 'number'; }); for (var _i = 0, numberKeys_1 = numberKeys; _i < numberKeys_1.length; _i++) { var key = numberKeys_1[_i]; this.selectOptionsForChartType.push({ name: app_app_constants__WEBPACK_IMPORTED_MODULE_2__["StatisticChartTypeDisplayText"][key], value: types_project__WEBPACK_IMPORTED_MODULE_6__["StatisticChartType"][key] }); } }; BaseStatisticComponent.prototype.initTimePeriodDropdown = function () { var _this = this; var numberKeys = Object .keys(this.granularities) .map(function (k) { return _this.granularities[k]; }) .filter(function (v) { return typeof v === 'number'; }); for (var _i = 0, numberKeys_2 = numberKeys; _i < numberKeys_2.length; _i++) { var key = numberKeys_2[_i]; this.selectOptionsForTimePeriod.push({ name: app_app_constants__WEBPACK_IMPORTED_MODULE_2__["StatisticGranularityDisplayText"][key], value: types_project__WEBPACK_IMPORTED_MODULE_6__["StatisticGranularity"][key] }); } }; BaseStatisticComponent.prototype.getExportPageRequest = function (pageIndex) { var from = this._timeUtilsService.toDateTime(this.fromTime, this.startDate); var to = this._timeUtilsService.toDateTime(this.toTime, this.endDate); return this._statisticService.getChartData(this.granularity, this.chartType, from, to, this.lang, this.selectedItems.map(function (e) { return e.naturalKey; }), pageIndex); }; BaseStatisticComponent.prototype.exportCurrentSelection = function () { var _this = this; if (this._fetchStatisticsPointsRequestSubscription != null) { this._fetchStatisticsPointsRequestSubscription.unsubscribe(); } this.loading = true; this.requestingExportData = true; this.exportRows = []; var exportDataRequests = []; for (var pageNr = 0; pageNr < this.totalPageCount; ++pageNr) { exportDataRequests.push(this.getExportPageRequest(pageNr)); } this._fetchStatisticsPointsRequestSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["forkJoin"])(exportDataRequests) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(function () { _this._csvConversionService.saveAsCSV(_this._pageTitle, _this.columnDefinitions, _this.exportRows); _this.requestingExportData = false; _this.loading = false; })) .subscribe(function (statisticDataPages) { statisticDataPages.forEach(function (page) { page.groupDates.forEach(function (groupDate, groupDateindex) { var exportRow = new _models_statistic_export_values__WEBPACK_IMPORTED_MODULE_10__["StatisticExportValues"](new Date(groupDate)); page.series.forEach(function (serie) { var rowValue = serie.items[groupDateindex].value; exportRow.values.push(rowValue != null ? rowValue.toString() : ''); }); _this.exportRows.push(exportRow); }); }); }); }; BaseStatisticComponent.prototype.fillColumns = function () { var _this = this; this.columnDefinitions = []; this.columnDefinitions.push(new _models_column_definition__WEBPACK_IMPORTED_MODULE_7__["ColumnDefinition"]('date', 'date', function (exportItem) { var dateString = _utils_date_to_group_converter__WEBPACK_IMPORTED_MODULE_12__["DateToGroupConverter"].convert(exportItem.date, _this.granularity, _this._datePipe, _this._smartTranslate, _this.lang); return dateString.replace(';', ' / '); })); this.selectedItems.forEach(function (item, index) { _this.columnDefinitions.push(new _models_column_definition__WEBPACK_IMPORTED_MODULE_7__["ColumnDefinition"](item.title, 'values', function (exportItem) { var value = exportItem.values[index]; return value != null ? value.toString() : app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder; })); }); }; BaseStatisticComponent.prototype.setTotalPages = function (pageCount) { this.totalPageCount = pageCount; }; BaseStatisticComponent.prototype.exportCSV = function () { this.fillColumns(); this.exportCurrentSelection(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('startTimePicker'), __metadata("design:type", _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_9__["LocalizedtimepickerComponent"]) ], BaseStatisticComponent.prototype, "startTimePicker", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('endTimePicker'), __metadata("design:type", _localizedtimepicker_localizedtimepicker_component__WEBPACK_IMPORTED_MODULE_9__["LocalizedtimepickerComponent"]) ], BaseStatisticComponent.prototype, "endTimePicker", void 0); return BaseStatisticComponent; }()); /***/ }), /***/ "./src/app/components/statistics/statistic-tabs/energy-statistic/energy-statistic.component.ts": /*!*****************************************************************************************************!*\ !*** ./src/app/components/statistics/statistic-tabs/energy-statistic/energy-statistic.component.ts ***! \*****************************************************************************************************/ /*! exports provided: EnergyStatisticComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnergyStatisticComponent", function() { return EnergyStatisticComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../services/statistics/statistics.service */ "./src/app/services/statistics/statistics.service.ts"); /* harmony import */ var _services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../services/storage/local-storage.service */ "./src/app/services/storage/local-storage.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _base_statistic_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base-statistic.component */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.ts"); /* harmony import */ var app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/services/time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var EnergyStatisticComponent = /** @class */ (function (_super) { __extends(EnergyStatisticComponent, _super); function EnergyStatisticComponent(_translationService, _timeUtilsService, _configService, _statisticService, _viewService, _storageService, _colorService, _cmsTranslation, _csvConversionService, _changeDetector) { var _this = _super.call(this, _translationService, _timeUtilsService, _configService, _statisticService, _viewService, _storageService, _colorService, _cmsTranslation, _csvConversionService, _changeDetector) || this; _this._translationService = _translationService; _this._timeUtilsService = _timeUtilsService; _this._configService = _configService; _this._statisticService = _statisticService; _this._viewService = _viewService; _this._storageService = _storageService; _this._colorService = _colorService; _this._cmsTranslation = _cmsTranslation; _this._csvConversionService = _csvConversionService; _this._changeDetector = _changeDetector; _this._selectedItemsStorageKey = 'energyStatisticSelection'; return _this; } EnergyStatisticComponent_1 = EnergyStatisticComponent; EnergyStatisticComponent.prototype.initStatisticCounters = function () { var counterTabs = this._configService.craneConfig.dynamicPageConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_12__["Const"].AliasOperatingHours].tabs; this._statisticCounters = this.filterMatchingCounters(EnergyStatisticComponent_1.NaturalKeyFilter, counterTabs); this._statisticHoursCollection.next(this._statisticCounters); }; Object.defineProperty(EnergyStatisticComponent.prototype, "statisticCounters", { get: function () { return this._statisticCounters; }, enumerable: true, configurable: true }); Object.defineProperty(EnergyStatisticComponent.prototype, "selectedItemsStorageKey", { get: function () { return this._selectedItemsStorageKey; }, enumerable: true, configurable: true }); EnergyStatisticComponent.NaturalKeyFilter = /_Energy_/gi; EnergyStatisticComponent = EnergyStatisticComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'energy-statistic', template: __webpack_require__(/*! ../base-statistic.component.html */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.html"), styles: [__webpack_require__(/*! ../base-statistic.component.scss */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.scss")], host: { '[@routeAnimation]': 'true' }, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_11__["TimeUtilsService"], _services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"], _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_6__["StatisticsService"], _services_view_service__WEBPACK_IMPORTED_MODULE_8__["ViewService"], _services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_7__["LocalStorageService"], _services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_5__["CSVConversionService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]]) ], EnergyStatisticComponent); return EnergyStatisticComponent; var EnergyStatisticComponent_1; }(_base_statistic_component__WEBPACK_IMPORTED_MODULE_10__["BaseStatisticComponent"])); /***/ }), /***/ "./src/app/components/statistics/statistic-tabs/operating-hour-statistic/operating-hour-statistic.component.ts": /*!*********************************************************************************************************************!*\ !*** ./src/app/components/statistics/statistic-tabs/operating-hour-statistic/operating-hour-statistic.component.ts ***! \*********************************************************************************************************************/ /*! exports provided: OperatingHourStatisticComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatingHourStatisticComponent", function() { return OperatingHourStatisticComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../services/statistics/statistics.service */ "./src/app/services/statistics/statistics.service.ts"); /* harmony import */ var _services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../services/storage/local-storage.service */ "./src/app/services/storage/local-storage.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _base_statistic_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base-statistic.component */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.ts"); /* harmony import */ var app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/services/time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OperatingHourStatisticComponent = /** @class */ (function (_super) { __extends(OperatingHourStatisticComponent, _super); function OperatingHourStatisticComponent(_translationService, _timeUtilsService, _configService, _statisticService, _viewService, _storageService, _colorService, _cmsTranslation, _csvConversionService, _changeDetector) { var _this = _super.call(this, _translationService, _timeUtilsService, _configService, _statisticService, _viewService, _storageService, _colorService, _cmsTranslation, _csvConversionService, _changeDetector) || this; _this._translationService = _translationService; _this._timeUtilsService = _timeUtilsService; _this._configService = _configService; _this._statisticService = _statisticService; _this._viewService = _viewService; _this._storageService = _storageService; _this._colorService = _colorService; _this._cmsTranslation = _cmsTranslation; _this._csvConversionService = _csvConversionService; _this._changeDetector = _changeDetector; _this._selectedItemsStorageKey = 'operatingCounterStatisticSelection'; return _this; } OperatingHourStatisticComponent_1 = OperatingHourStatisticComponent; OperatingHourStatisticComponent.prototype.initStatisticCounters = function () { var counterTabs = this._configService.craneConfig.dynamicPageConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_12__["Const"].AliasOperatingHours].tabs; this._statisticCounters = this.filterMatchingCounters(OperatingHourStatisticComponent_1.NaturalKeyFilter, counterTabs); this._statisticHoursCollection.next(this._statisticCounters); }; Object.defineProperty(OperatingHourStatisticComponent.prototype, "statisticCounters", { get: function () { return this._statisticCounters; }, enumerable: true, configurable: true }); Object.defineProperty(OperatingHourStatisticComponent.prototype, "selectedItemsStorageKey", { get: function () { return this._selectedItemsStorageKey; }, enumerable: true, configurable: true }); OperatingHourStatisticComponent.NaturalKeyFilter = /_OperatingHourCounter_/gi; OperatingHourStatisticComponent = OperatingHourStatisticComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'operating-hour-statistic', template: __webpack_require__(/*! ../base-statistic.component.html */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.html"), styles: [__webpack_require__(/*! ../base-statistic.component.scss */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.scss")], changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_11__["TimeUtilsService"], _services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"], _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_6__["StatisticsService"], _services_view_service__WEBPACK_IMPORTED_MODULE_8__["ViewService"], _services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_7__["LocalStorageService"], _services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_5__["CSVConversionService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]]) ], OperatingHourStatisticComponent); return OperatingHourStatisticComponent; var OperatingHourStatisticComponent_1; }(_base_statistic_component__WEBPACK_IMPORTED_MODULE_10__["BaseStatisticComponent"])); /***/ }), /***/ "./src/app/components/statistics/statistic-tabs/switching-cycle-statistic/switching-cycle-statistic.component.ts": /*!***********************************************************************************************************************!*\ !*** ./src/app/components/statistics/statistic-tabs/switching-cycle-statistic/switching-cycle-statistic.component.ts ***! \***********************************************************************************************************************/ /*! exports provided: SwitchingCycleStatisticComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SwitchingCycleStatisticComponent", function() { return SwitchingCycleStatisticComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../services/csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../services/statistics/statistics.service */ "./src/app/services/statistics/statistics.service.ts"); /* harmony import */ var _services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../services/storage/local-storage.service */ "./src/app/services/storage/local-storage.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _base_statistic_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base-statistic.component */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.ts"); /* harmony import */ var app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/services/time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SwitchingCycleStatisticComponent = /** @class */ (function (_super) { __extends(SwitchingCycleStatisticComponent, _super); function SwitchingCycleStatisticComponent(_translationService, _timeUtilsService, _configService, _statisticService, _viewService, _storageService, _colorService, _cmsTranslation, _csvConversionService, _changeDetector) { var _this = _super.call(this, _translationService, _timeUtilsService, _configService, _statisticService, _viewService, _storageService, _colorService, _cmsTranslation, _csvConversionService, _changeDetector) || this; _this._translationService = _translationService; _this._timeUtilsService = _timeUtilsService; _this._configService = _configService; _this._statisticService = _statisticService; _this._viewService = _viewService; _this._storageService = _storageService; _this._colorService = _colorService; _this._cmsTranslation = _cmsTranslation; _this._csvConversionService = _csvConversionService; _this._changeDetector = _changeDetector; _this._selectedItemsStorageKey = 'switchingCycleStatisticSelection'; return _this; } SwitchingCycleStatisticComponent_1 = SwitchingCycleStatisticComponent; SwitchingCycleStatisticComponent.prototype.initStatisticCounters = function () { var counterTabs = this._configService.craneConfig.dynamicPageConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_12__["Const"].AliasOperatingHours].tabs; this._statisticCounters = this.filterMatchingCounters(SwitchingCycleStatisticComponent_1.NaturalKeyFilter, counterTabs); this._statisticHoursCollection.next(this._statisticCounters); }; Object.defineProperty(SwitchingCycleStatisticComponent.prototype, "statisticCounters", { get: function () { return this._statisticCounters; }, enumerable: true, configurable: true }); Object.defineProperty(SwitchingCycleStatisticComponent.prototype, "selectedItemsStorageKey", { get: function () { return this._selectedItemsStorageKey; }, enumerable: true, configurable: true }); SwitchingCycleStatisticComponent.NaturalKeyFilter = /_Counter_|_LoadSpectrum_/gi; SwitchingCycleStatisticComponent = SwitchingCycleStatisticComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'switching-cycles-statistic', template: __webpack_require__(/*! ../base-statistic.component.html */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.html"), styles: [__webpack_require__(/*! ../base-statistic.component.scss */ "./src/app/components/statistics/statistic-tabs/base-statistic.component.scss")], changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_9__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslationService"], app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_11__["TimeUtilsService"], _services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"], _services_statistics_statistics_service__WEBPACK_IMPORTED_MODULE_6__["StatisticsService"], _services_view_service__WEBPACK_IMPORTED_MODULE_8__["ViewService"], _services_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_7__["LocalStorageService"], _services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_2__["CmsTranslationService"], _services_csv_conversion_service__WEBPACK_IMPORTED_MODULE_5__["CSVConversionService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]]) ], SwitchingCycleStatisticComponent); return SwitchingCycleStatisticComponent; var SwitchingCycleStatisticComponent_1; }(_base_statistic_component__WEBPACK_IMPORTED_MODULE_10__["BaseStatisticComponent"])); /***/ }), /***/ "./src/app/components/statistics/statistics.component.html": /*!*****************************************************************!*\ !*** ./src/app/components/statistics/statistics.component.html ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n" /***/ }), /***/ "./src/app/components/statistics/statistics.component.ts": /*!***************************************************************!*\ !*** ./src/app/components/statistics/statistics.component.ts ***! \***************************************************************/ /*! exports provided: StatisticsComponent, STATISTICS_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticsComponent", function() { return StatisticsComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATISTICS_CHILD_ROUTES", function() { return STATISTICS_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _statistic_tabs_energy_statistic_energy_statistic_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./statistic-tabs/energy-statistic/energy-statistic.component */ "./src/app/components/statistics/statistic-tabs/energy-statistic/energy-statistic.component.ts"); /* harmony import */ var _statistic_tabs_operating_hour_statistic_operating_hour_statistic_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./statistic-tabs/operating-hour-statistic/operating-hour-statistic.component */ "./src/app/components/statistics/statistic-tabs/operating-hour-statistic/operating-hour-statistic.component.ts"); /* harmony import */ var _statistic_tabs_switching_cycle_statistic_switching_cycle_statistic_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./statistic-tabs/switching-cycle-statistic/switching-cycle-statistic.component */ "./src/app/components/statistics/statistic-tabs/switching-cycle-statistic/switching-cycle-statistic.component.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var StatisticsComponent = /** @class */ (function () { function StatisticsComponent(_configService) { this._configService = _configService; this._availableRoutes = []; this._tabTitles = []; } Object.defineProperty(StatisticsComponent.prototype, "tabTitles", { get: function () { return this._tabTitles; }, enumerable: true, configurable: true }); Object.defineProperty(StatisticsComponent.prototype, "tabRoutes", { get: function () { return this._availableRoutes; }, enumerable: true, configurable: true }); StatisticsComponent.prototype.ngOnInit = function () { this.initializeTabs(); }; StatisticsComponent.prototype.ngOnDestroy = function () { }; StatisticsComponent.prototype.initializeTabs = function () { var counterTabs = this._configService.craneConfig.dynamicPageConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasOperatingHours].tabs; var hasOperatingHourCounters = this.hasMatchingCounters(_statistic_tabs_operating_hour_statistic_operating_hour_statistic_component__WEBPACK_IMPORTED_MODULE_5__["OperatingHourStatisticComponent"].NaturalKeyFilter, counterTabs); var hasSwitchingCycleCounters = this.hasMatchingCounters(_statistic_tabs_switching_cycle_statistic_switching_cycle_statistic_component__WEBPACK_IMPORTED_MODULE_6__["SwitchingCycleStatisticComponent"].NaturalKeyFilter, counterTabs); var hasEnergyCounters = this.hasMatchingCounters(_statistic_tabs_energy_statistic_energy_statistic_component__WEBPACK_IMPORTED_MODULE_4__["EnergyStatisticComponent"].NaturalKeyFilter, counterTabs); if (hasOperatingHourCounters) { this._tabTitles.push('operating_hours'); this._availableRoutes.push('/statistics/operating-hours'); } if (hasSwitchingCycleCounters) { this._tabTitles.push('switching_cycles'); this._availableRoutes.push('/statistics/switching-cycles'); } if (hasEnergyCounters) { this._tabTitles.push('energy_statistics'); this._availableRoutes.push('/statistics/energy'); } }; StatisticsComponent.prototype.hasMatchingCounters = function (naturalKeyFilter, counterTabs) { for (var _i = 0, counterTabs_1 = counterTabs; _i < counterTabs_1.length; _i++) { var counterTab = counterTabs_1[_i]; if (counterTab != null && counterTab.enabled && counterTab.datapointCollectionControls != null && counterTab.datapointCollectionControls.length > 0) { for (var _a = 0, _b = counterTab.datapointCollectionControls; _a < _b.length; _a++) { var dataPointControl = _b[_a]; if (dataPointControl != null && dataPointControl.enabled && dataPointControl.datapoints != null && dataPointControl.datapoints.length > 0) { var readDataPoints = dataPointControl.datapoints; if (readDataPoints != null && readDataPoints.length > 0) { for (var _c = 0, readDataPoints_1 = readDataPoints; _c < readDataPoints_1.length; _c++) { var readDataPoint = readDataPoints_1[_c]; if (readDataPoint != null && readDataPoint.enabled && readDataPoint.naturalKey != null && readDataPoint.naturalKey.search(naturalKeyFilter) >= 0) { return true; } } } } } } } return false; }; StatisticsComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'statistics', template: __webpack_require__(/*! ./statistics.component.html */ "./src/app/components/statistics/statistics.component.html"), // using animations on route navigation (showcase) styles: [':host { width: 100%; display: block; position: absolute; }'], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_3__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"]]) ], StatisticsComponent); return StatisticsComponent; }()); var STATISTICS_CHILD_ROUTES = [ { path: '', redirectTo: 'operating-hours', pathMatch: 'full' }, { path: 'operating-hours', component: _statistic_tabs_operating_hour_statistic_operating_hour_statistic_component__WEBPACK_IMPORTED_MODULE_5__["OperatingHourStatisticComponent"] }, { path: 'switching-cycles', component: _statistic_tabs_switching_cycle_statistic_switching_cycle_statistic_component__WEBPACK_IMPORTED_MODULE_6__["SwitchingCycleStatisticComponent"] }, { path: 'energy', component: _statistic_tabs_energy_statistic_energy_statistic_component__WEBPACK_IMPORTED_MODULE_4__["EnergyStatisticComponent"] } ]; /***/ }), /***/ "./src/app/components/statistics/utils/date-to-group.converter.ts": /*!************************************************************************!*\ !*** ./src/app/components/statistics/utils/date-to-group.converter.ts ***! \************************************************************************/ /*! exports provided: DateToGroupConverter */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateToGroupConverter", function() { return DateToGroupConverter; }); /* harmony import */ var types_project__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/project */ "./src/types/project.ts"); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var DateToGroupConverter = /** @class */ (function () { function DateToGroupConverter() { // this is only a helper class } DateToGroupConverter.getWeekNumber = function (date, lang) { var utcDate = Object(moment__WEBPACK_IMPORTED_MODULE_1__["utc"])(date).locale(lang); return utcDate.week(); }; DateToGroupConverter.convert = function (date, granularity, datePipe, smartTranslatePipe, lang) { var monthNames = [ app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['january'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['february'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['march'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['april'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['may'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['june'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['july'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['august'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['september'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['october'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['november'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["MonthDisplayText"]['december'] ]; // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay var dayNames = [app_app_constants__WEBPACK_IMPORTED_MODULE_2__["DayDisplayText"]['sunday'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["DayDisplayText"]['monday'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["DayDisplayText"]['tuesday'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["DayDisplayText"]['wednesday'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["DayDisplayText"]['thursday'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["DayDisplayText"]['friday'], app_app_constants__WEBPACK_IMPORTED_MODULE_2__["DayDisplayText"]['saturday']]; switch (Number(types_project__WEBPACK_IMPORTED_MODULE_0__["StatisticGranularity"][granularity])) { case types_project__WEBPACK_IMPORTED_MODULE_0__["StatisticGranularity"].Day: var day = smartTranslatePipe.transform(dayNames[date.getDay()], lang); return day + ";" + datePipe.transform(date, lang, 'mediumDate'); case types_project__WEBPACK_IMPORTED_MODULE_0__["StatisticGranularity"].Week: var calendarWeek = smartTranslatePipe.transform('calendar_week_abbreviation', lang); return calendarWeek + " " + this.getWeekNumber(date, lang) + ";" + date.getFullYear(); case types_project__WEBPACK_IMPORTED_MODULE_0__["StatisticGranularity"].Month: var month = smartTranslatePipe.transform(monthNames[date.getMonth()], lang); return month + ";" + date.getFullYear(); case types_project__WEBPACK_IMPORTED_MODULE_0__["StatisticGranularity"].Year: return "" + date.getFullYear(); default: var startTime = datePipe.transform(date, lang, 'shortTime'); var endTime = datePipe.transform(new Date(date.getTime() + 60 * 60 * 1000), lang, 'shortTime'); var dateSubtext = datePipe.transform(new Date(date), lang, 'mediumDate'); return startTime + " - " + endTime + ";" + dateSubtext; } }; return DateToGroupConverter; }()); /***/ }), /***/ "./src/app/components/svgs/orientation-labels/orientation-labels.component.html": /*!**************************************************************************************!*\ !*** ./src/app/components/svgs/orientation-labels/orientation-labels.component.html ***! \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n {{captionTop}}\n
    \n
    \n {{captionBottom}}\n
    \n
    \n {{captionLeft}}\n
    \n
    \n {{captionRight}}\n
    \n
    \n" /***/ }), /***/ "./src/app/components/svgs/orientation-labels/orientation-labels.component.scss": /*!**************************************************************************************!*\ !*** ./src/app/components/svgs/orientation-labels/orientation-labels.component.scss ***! \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".orientation-label {\n font-size: 16px;\n border-radius: 2px;\n padding: 4px; }\n .orientation-label.label-top {\n position: absolute;\n top: 8px;\n left: 50%;\n text-align: center;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%); }\n .orientation-label.label-bottom {\n position: absolute;\n bottom: 16px;\n left: 50%;\n text-align: center;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%); }\n .orientation-label.label-left {\n position: absolute;\n top: 50%;\n -webkit-transform: rotateZ(-90deg) translateY(-100%);\n transform: rotateZ(-90deg) translateY(-100%);\n -webkit-transform-origin: 50%;\n transform-origin: 50%; }\n .orientation-label.label-right {\n position: absolute;\n top: 50%;\n right: 0;\n -webkit-transform: rotateZ(90deg) translateY(-100%);\n transform: rotateZ(90deg) translateY(-100%);\n -webkit-transform-origin: 50%;\n transform-origin: 50%; }\n .orientation-labels.trolley .label-top {\n top: 61px;\n left: 53%;\n -webkit-transform: translateX(0%);\n transform: translateX(0%); }\n .orientation-labels.trolley .label-bottom {\n bottom: 42px;\n left: 53%;\n -webkit-transform: translateX(0%);\n transform: translateX(0%); }\n" /***/ }), /***/ "./src/app/components/svgs/orientation-labels/orientation-labels.component.ts": /*!************************************************************************************!*\ !*** ./src/app/components/svgs/orientation-labels/orientation-labels.component.ts ***! \************************************************************************************/ /*! exports provided: OrientationLabelsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrientationLabelsComponent", function() { return OrientationLabelsComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OrientationLabelsComponent = /** @class */ (function () { function OrientationLabelsComponent(_orientationService) { this._orientationService = _orientationService; } OrientationLabelsComponent_1 = OrientationLabelsComponent; OrientationLabelsComponent.prototype.setOrientationLabels = function () { _a = this._orientationService.getOrientationLabels(OrientationLabelsComponent_1.ascentSideText, OrientationLabelsComponent_1.freeSideText, OrientationLabelsComponent_1.electricalSideText, OrientationLabelsComponent_1.emptySideText, OrientationLabelsComponent_1.hingedPostText, OrientationLabelsComponent_1.fixedPostText, OrientationLabelsComponent_1.cabinSideText), this.captionTop = _a[0], this.captionRight = _a[1], this.captionBottom = _a[2], this.captionLeft = _a[3]; var _a; }; OrientationLabelsComponent.prototype.ngOnInit = function () { var _this = this; this.setOrientationLabels(); this._orientationChangedSubscription = this._orientationService.orientationChangedSubject() .subscribe(function () { return _this.setOrientationLabels(); }); }; OrientationLabelsComponent.prototype.ngOnDestroy = function () { if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; OrientationLabelsComponent.ascentSideText = 'ascent_side'; OrientationLabelsComponent.freeSideText = 'free_side'; OrientationLabelsComponent.hingedPostText = 'hinged_post'; OrientationLabelsComponent.electricalSideText = 'electrical_side'; OrientationLabelsComponent.fixedPostText = 'fixed_post'; OrientationLabelsComponent.emptySideText = 'empty_side'; OrientationLabelsComponent.cabinSideText = 'cabin_side'; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], OrientationLabelsComponent.prototype, "trolleyOffset", void 0); OrientationLabelsComponent = OrientationLabelsComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'orientation-labels', template: __webpack_require__(/*! ./orientation-labels.component.html */ "./src/app/components/svgs/orientation-labels/orientation-labels.component.html"), styles: [__webpack_require__(/*! ./orientation-labels.component.scss */ "./src/app/components/svgs/orientation-labels/orientation-labels.component.scss")] }), __metadata("design:paramtypes", [app_services_orientation_service__WEBPACK_IMPORTED_MODULE_1__["OrientationService"]]) ], OrientationLabelsComponent); return OrientationLabelsComponent; var OrientationLabelsComponent_1; }()); /***/ }), /***/ "./src/app/components/svgs/svg-base.component.scss": /*!*********************************************************!*\ !*** ./src/app/components/svgs/svg-base.component.scss ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "svg {\n display: block;\n margin: 0 auto;\n font-size: 24px;\n font-family: 'Roboto';\n max-height: calc(100vh - 206px); }\n svg text {\n cursor: default;\n user-select: none;\n -webkit-touch-callout: none;\n /* iOS Safari */\n -webkit-user-select: none;\n /* Safari */\n /* Konqueror HTML */\n -moz-user-select: none;\n /* Firefox */\n -ms-user-select: none;\n /* Internet Explorer/Edge */\n user-select: none;\n /* Non-prefixed version, currently\n supported by Chrome and Opera */ }\n svg .icon, svg .icon-wide {\n fill: #ffffff; }\n svg .icon.rotatable, svg .icon-wide.rotatable {\n -webkit-transform-origin: 50% 50%;\n transform-origin: 50% 50%; }\n svg .connection-line {\n fill: none;\n stroke: #BFC3C8;\n stroke-width: 2;\n stroke-miterlimit: 10; }\n svg.footer-visible {\n max-height: calc(100vh - 280px); }\n svg .selected-only {\n display: none; }\n svg .clickable {\n -webkit-filter: url(#drop-shadow);\n filter: url(#drop-shadow);\n cursor: pointer; }\n svg .clickable text {\n cursor: pointer; }\n svg .clickable.hovered {\n -webkit-filter: url(#drop-shadow-hovered);\n filter: url(#drop-shadow-hovered);\n -webkit-transform-origin: 50.01%;\n -webkit-transition: .1s;\n transform-origin: 50.01%;\n transition: .1s; }\n svg .clickable.pressed {\n -webkit-filter: url(#drop-shadow-pressed);\n filter: url(#drop-shadow-pressed);\n -webkit-transform-origin: 50.02%;\n -webkit-transition: .0s;\n transform-origin: 50.02%;\n transition: .0s; }\n svg .disabled {\n opacity: 0.4; }\n" /***/ }), /***/ "./src/app/components/svgs/svg-base.component.ts": /*!*******************************************************!*\ !*** ./src/app/components/svgs/svg-base.component.ts ***! \*******************************************************/ /*! exports provided: SvgBaseComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgBaseComponent", function() { return SvgBaseComponent; }); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var SvgBaseComponent = /** @class */ (function (_super) { __extends(SvgBaseComponent, _super); function SvgBaseComponent(dataPointService, configService, activatedRoute, colorService, cmsTranslationService) { var _this = _super.call(this, dataPointService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.cmsTranslationService = cmsTranslationService; _this.viewModes = types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"]; _this.shadows = [ { id: 'drop-shadow', deviation: 1.5, offsetX: 1, offsetY: 1, color: '#000000', opacity: 0.3, blurred: true }, { id: 'drop-shadow-hovered', deviation: 1.6, offsetX: 1, offsetY: 1, color: '#000000', opacity: 0.5, blurred: true }, { id: 'drop-shadow-pressed', deviation: 1.1, offsetX: 1, offsetY: 1, color: '#000000', opacity: 0.1, blurred: true }, ]; _this.glows = [ { id: 'focus-glow', deviation: 2, radius: 2, offsetX: '-75%', offsetY: '-75%', color: _this.colorService.getColor('state-active'), height: '300%', width: '300%' }, { id: 'error-glow', deviation: 5, radius: 4, offsetX: '-75%', offsetY: '-75%', color: _this.colorService.getColor('state-alert'), height: '300%', width: '300%' } ]; _this.config = _this.configService.craneConfig; return _this; } Object.defineProperty(SvgBaseComponent.prototype, "vm", { get: function () { return this.initCompleted ? this._vm : undefined; }, enumerable: true, configurable: true }); Object.defineProperty(SvgBaseComponent.prototype, "component", { get: function () { return this._vm.component; }, enumerable: true, configurable: true }); Object.defineProperty(SvgBaseComponent.prototype, "viewMode", { set: function (value) { this._vm.valuesToBeDisplayed = value; }, enumerable: true, configurable: true }); SvgBaseComponent.prototype.viewModeSelected = function (value) { return this._vm.valuesToBeDisplayed === value; }; Object.defineProperty(SvgBaseComponent.prototype, "lang", { get: function () { return this.cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); SvgBaseComponent.prototype.ngOnInit = function () { this.setNaturalKeys(this._vm.naturalKeys); }; SvgBaseComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); }; SvgBaseComponent.prototype.onValuesChanged = function () { if (this.initCompleted && this.dataPoints != null && !this.dataPoints.isEmpty) { this._vm.updateFromDatapoints(this.dataPoints); } }; return SvgBaseComponent; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_1__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/toast/notification-toast.component.html": /*!********************************************************************!*\ !*** ./src/app/components/toast/notification-toast.component.html ***! \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n \n \n \n \n
    \n
    {{ title }}
    \n
    \n
    {{ message }}
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/toast/notification-toast.component.scss": /*!********************************************************************!*\ !*** ./src/app/components/toast/notification-toast.component.scss ***! \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".notyf-wrapper {\n cursor: pointer; }\n .notyf-wrapper .notyf-icon i {\n width: 70px;\n font-size: 2em; }\n .notyf-wrapper .notyf-icon i:before {\n vertical-align: middle; }\n .notyf-wrapper .notyf-icon.title-icon {\n vertical-align: top; }\n .notyf-title {\n display: block;\n width: 100%;\n font-weight: bold;\n font-size: 1.2rem; }\n hr ~ .notyf-message {\n display: block;\n width: 100%; }\n" /***/ }), /***/ "./src/app/components/toast/notification-toast.component.ts": /*!******************************************************************!*\ !*** ./src/app/components/toast/notification-toast.component.ts ***! \******************************************************************/ /*! exports provided: NotificationToastType, MaxTextLength, NotificationToastComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationToastType", function() { return NotificationToastType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaxTextLength", function() { return MaxTextLength; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationToastComponent", function() { return NotificationToastComponent; }); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm5/animations.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-toastr */ "./node_modules/ngx-toastr/fesm5/ngx-toastr.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotificationToastType; (function (NotificationToastType) { NotificationToastType[NotificationToastType["Default"] = 0] = "Default"; NotificationToastType[NotificationToastType["Success"] = 1] = "Success"; NotificationToastType[NotificationToastType["Error"] = 2] = "Error"; NotificationToastType[NotificationToastType["Warning"] = 3] = "Warning"; })(NotificationToastType || (NotificationToastType = {})); var MaxTextLength = 20; var NotificationToastComponent = /** @class */ (function (_super) { __extends(NotificationToastComponent, _super); function NotificationToastComponent(toastrService, toastPackage) { var _this = _super.call(this, toastrService, toastPackage) || this; _this.toastrService = toastrService; _this.toastPackage = toastPackage; _this.notificationTypes = NotificationToastType; return _this; } NotificationToastComponent.prototype.ngOnInit = function () { var notificationOptions = this.options; this.notificationType = notificationOptions.notificationType; }; NotificationToastComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: '[notification-toast-component]', styles: [__webpack_require__(/*! ./notification-toast.component.scss */ "./src/app/components/toast/notification-toast.component.scss")], template: __webpack_require__(/*! ./notification-toast.component.html */ "./src/app/components/toast/notification-toast.component.html"), animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["trigger"])('flyInOut', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["state"])('inactive', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ display: 'none', opacity: 0 })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["transition"])('inactive => active', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["animate"])('300ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["keyframes"])([ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 0, bottom: '-15px', 'max-width': 0, 'margin-top': 0, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 0.8, bottom: '-3px', }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 1, bottom: '0', 'margin-top': '12px', 'max-width': '400px', }), ]))), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["state"])('active', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ bottom: '0', 'margin-top': '12px', 'max-width': '400px', })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["transition"])('active => removed', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["animate"])('300ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["keyframes"])([ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 0.6, bottom: 0, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 0.1, bottom: '-3px', }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({ opacity: 0, bottom: '-15px', }), ]))), ]), ], }), __metadata("design:paramtypes", [ngx_toastr__WEBPACK_IMPORTED_MODULE_2__["ToastrService"], ngx_toastr__WEBPACK_IMPORTED_MODULE_2__["ToastPackage"]]) ], NotificationToastComponent); return NotificationToastComponent; }(ngx_toastr__WEBPACK_IMPORTED_MODULE_2__["Toast"])); /***/ }), /***/ "./src/app/components/toolbar/replay-mode/replay-mode.component.html": /*!***************************************************************************!*\ !*** ./src/app/components/toolbar/replay-mode/replay-mode.component.html ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n
    \n
    \n \n {{modeDescription}}\n
    \n
    \n" /***/ }), /***/ "./src/app/components/toolbar/replay-mode/replay-mode.component.scss": /*!***************************************************************************!*\ !*** ./src/app/components/toolbar/replay-mode/replay-mode.component.scss ***! \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme .mode-description {\n color: #ffffff; }\n\n.testing-theme .mode-description {\n color: #98057e; }\n\n#mode-border-top, #mode-border-bottom, #mode-border-left, #mode-border-right, .mode-description {\n position: fixed;\n z-index: 1006; }\n\n#mode-border-left, #mode-border-right {\n top: 0;\n bottom: 0;\n width: 3px; }\n\n#mode-border-left {\n left: 0; }\n\n#mode-border-right {\n right: 0; }\n\n#mode-border-top, #mode-border-bottom {\n left: 0;\n right: 0;\n height: 3px; }\n\n#mode-border-top {\n top: 0; }\n\n#mode-border-bottom {\n bottom: 0; }\n\n.mode-description {\n text-align: left;\n font-size: 1.3em;\n line-height: 1.3em;\n bottom: 0;\n left: 0;\n padding: 0 0.4em 0 0.3em;\n border-width: 0.2em;\n border-style: solid;\n border-radius: 0 0.3em 0 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n vertical-align: middle; }\n\n.mode-description i {\n display: inline-block;\n vertical-align: inherit;\n font-size: 1.3rem;\n line-height: 1.3rem; }\n" /***/ }), /***/ "./src/app/components/toolbar/replay-mode/replay-mode.component.ts": /*!*************************************************************************!*\ !*** ./src/app/components/toolbar/replay-mode/replay-mode.component.ts ***! \*************************************************************************/ /*! exports provided: ReplayModeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplayModeComponent", function() { return ReplayModeComponent; }); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_color_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ReplayModeComponent = /** @class */ (function () { function ReplayModeComponent(_dataPointService, _colorService, configService) { var _this = this; this._dataPointService = _dataPointService; this._colorService = _colorService; this._craneMode = types_config__WEBPACK_IMPORTED_MODULE_5__["CraneMode"].Normal; this.modeDescription = ''; this.showBorder = false; this._frame = { themes: [], enabled: false }; if (configService.craneConfig.dashboard.frame != null) { if (configService.craneConfig.dashboard.frame.enabled) { this._frame = configService.craneConfig.dashboard.frame; } } this._connectionChangedSubscription = this._dataPointService.isConnectionAlive.subscribe(function (isConnected) { if (isConnected) { _this._dataPointService.requestDataPoints([app_app_constants__WEBPACK_IMPORTED_MODULE_2__["CRANE_MODE_NATURAL_KEY"]]); } }); this._dataPointChangedSubscription = this._dataPointService.dataPoints.subscribe(function (dataPointUpdates) { return _this.updateCraneMode(dataPointUpdates); }, function (error) { return console.error(error); }); } ReplayModeComponent.prototype.updateCraneMode = function (dataPointUpdates) { if (dataPointUpdates != null) { var dataPointUpdateValues = dataPointUpdates.Values(); var _loop_1 = function (dataPoint) { if (dataPoint != null && dataPoint.naturalKey == app_app_constants__WEBPACK_IMPORTED_MODULE_2__["CRANE_MODE_NATURAL_KEY"]) { if (parseInt(dataPoint.data) in types_config__WEBPACK_IMPORTED_MODULE_5__["CraneMode"]) { this_1._craneMode = dataPoint.data; this_1.modeDescription = types_config__WEBPACK_IMPORTED_MODULE_5__["CraneMode"][dataPoint.data] + " mode"; this_1.showBorder = this_1._craneMode === types_config__WEBPACK_IMPORTED_MODULE_5__["CraneMode"].Replay || this_1._craneMode === types_config__WEBPACK_IMPORTED_MODULE_5__["CraneMode"].Testing; this_1._isDefaultMode = true; } else { if (this_1._frame.themes.length > 0) { this_1._currentTheme = this_1._frame.themes.filter(function (t) { return t.value == dataPoint.data; })[0]; if (this_1._currentTheme != null) { this_1.modeDescription = this_1._currentTheme.title; this_1.showBorder = this_1._currentTheme != null; this_1._isDefaultMode = false; } } } } }; var this_1 = this; for (var _i = 0, dataPointUpdateValues_1 = dataPointUpdateValues; _i < dataPointUpdateValues_1.length; _i++) { var dataPoint = dataPointUpdateValues_1[_i]; _loop_1(dataPoint); } } }; ReplayModeComponent.prototype.getColor = function () { if (this._isDefaultMode) { switch (this._craneMode) { case types_config__WEBPACK_IMPORTED_MODULE_5__["CraneMode"].Replay: return this._colorService.getColor('replay-mode'); case types_config__WEBPACK_IMPORTED_MODULE_5__["CraneMode"].Testing: return this._colorService.getColor('testing-mode'); default: return ''; } } else { return this._currentTheme.color; } }; ReplayModeComponent.prototype.ngOnDestroy = function () { if (this._connectionChangedSubscription != null) { this._connectionChangedSubscription.unsubscribe(); } if (this._dataPointChangedSubscription != null) { this._dataPointChangedSubscription.unsubscribe(); } }; ReplayModeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'app-replay-mode', template: __webpack_require__(/*! ./replay-mode.component.html */ "./src/app/components/toolbar/replay-mode/replay-mode.component.html"), styles: [__webpack_require__(/*! ./replay-mode.component.scss */ "./src/app/components/toolbar/replay-mode/replay-mode.component.scss")] }), __metadata("design:paramtypes", [app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_4__["DataPointService"], app_services_color_service__WEBPACK_IMPORTED_MODULE_3__["ColorService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_0__["ConfigService"]]) ], ReplayModeComponent); return ReplayModeComponent; }()); /***/ }), /***/ "./src/app/components/toolbar/toolbar-gauges.component.html": /*!******************************************************************!*\ !*** ./src/app/components/toolbar/toolbar-gauges.component.html ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n
    \n \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n \n
    \n\n
    \n \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n\n \n
    \n \n
    \n
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n\n
    \n \n \n \n \n \n
    \n\n
    \n \n \n \n
    \n\n
    \n \n\n \n
    \n \n
    \n
    \n
    \n\n
    \n\n \n \n \n
    \n\n
    \n
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/toolbar/toolbar-gauges.component.scss": /*!******************************************************************!*\ !*** ./src/app/components/toolbar/toolbar-gauges.component.scss ***! \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n height: 90px;\n display: block; }\n\n.toolbar-gauges {\n top: 56px;\n position: absolute;\n width: 100%;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 0 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n min-height: 90px;\n height: 90px;\n transition: all 0.5s ease-in-out; }\n\n.toolbar-gauges .gauge-container {\n margin-top: 0;\n margin-left: 18px;\n margin-right: 18px;\n position: relative; }\n\n.toolbar-gauges .gauge-container .inline-gauge-container {\n display: table;\n width: 100%;\n table-layout: inherit;\n line-height: 0px;\n margin-top: 6px; }\n\n.toolbar-gauges .gauge-container .inline-gauge-container .inline-gauge {\n display: table-cell;\n text-align: center; }\n\n.toolbar-gauges .gauge-container .inline-gauge-container .control-place-holder {\n min-width: 200px;\n padding-left: auto;\n padding-right: auto;\n padding-top: 0px;\n padding-bottom: 0px;\n text-align: center; }\n\n.toolbar-gauges .gauge-container .inline-gauge-container icon-value-gauge i.large, .toolbar-gauges .gauge-container .inline-gauge-container container-movement-gauge i.large {\n font-size: 50px;\n width: 50px;\n margin-top: 16px; }\n\n.toolbar-gauges .gauge-container .clickable {\n border-radius: 2px;\n cursor: pointer; }\n\n.toolbar-gauges .gauge-container .clickable:hover {\n background-color: rgba(0, 0, 0, 0.1);\n transition: background-color 0.1s ease-in; }\n\n.toolbar-gauges .gauge-container .clickable text {\n cursor: pointer; }\n\n.toolbar-gauges.fullscreen {\n min-height: 90px;\n height: 100vh;\n transition: all 0.5s ease-in-out; }\n\n.toolbar-gauges .fullscreen-gauges {\n position: absolute;\n top: 50px;\n right: 0px;\n left: 0px; }\n" /***/ }), /***/ "./src/app/components/toolbar/toolbar-gauges.component.ts": /*!****************************************************************!*\ !*** ./src/app/components/toolbar/toolbar-gauges.component.ts ***! \****************************************************************/ /*! exports provided: ToolbarGaugesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolbarGaugesComponent", function() { return ToolbarGaugesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ToolbarGaugesComponent = /** @class */ (function () { function ToolbarGaugesComponent(_configService, _orientationService) { this._configService = _configService; this._orientationService = _orientationService; this.gridConfig = { margins: [5], draggable: false, resizable: false, max_cols: 12, visible_cols: 0, visible_rows: 0, min_cols: 1, min_rows: 1, row_height: 290, cascade: 'none', min_width: 50, min_height: 290, fix_to_grid: false, auto_style: true, auto_resize: true, maintain_ratio: false, prefer_new: false, limit_to_screen: false }; this.cachedComponents = new Map(); } Object.defineProperty(ToolbarGaugesComponent.prototype, "slewingGearRotationOffset", { get: function () { if (this._configService.craneConfig.craneType === types_config__WEBPACK_IMPORTED_MODULE_4__["CraneType"].CTK) { var ascentSideRight = this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight; return ascentSideRight ? -90 : 90; } return 0; }, enumerable: true, configurable: true }); ToolbarGaugesComponent.prototype.GetGaugeComponents = function (componentId) { var config = this._configService.craneConfig; var counter = null; var component = []; if (this.cachedComponents.has(componentId)) { var tuple = this.cachedComponents.get(componentId); component = tuple[0]; counter = tuple[1]; } if (counter == null || this._configService.counter > counter) { if (config != null) { var toolbar_1 = config.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasToolbar]; if (toolbar_1 != null) { var toolbarGauges = toolbar_1.components.find(function (x) { return x.id === 'toolbar-gauges'; }); if (toolbarGauges != null && toolbarGauges.enabled && toolbarGauges.components != null) { component = toolbarGauges.components.filter(function (e) { return e.enabled && e.id === componentId; }); this.cachedComponents.set(componentId, [component, this._configService.counter]); return component; } } } } return component; }; ToolbarGaugesComponent.prototype.GetFirstRequiredNaturalKey = function (componentId) { var component = this.GetGaugeComponents(componentId); if (component[0]) { var requiredDatapoints = component[0].requiredDatapoints; if (requiredDatapoints) { return requiredDatapoints[0].naturalKey; } } return undefined; }; ToolbarGaugesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'toolbar-gauges', template: __webpack_require__(/*! ./toolbar-gauges.component.html */ "./src/app/components/toolbar/toolbar-gauges.component.html"), styles: [__webpack_require__(/*! ./toolbar-gauges.component.scss */ "./src/app/components/toolbar/toolbar-gauges.component.scss")] }), __metadata("design:paramtypes", [app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_3__["OrientationService"]]) ], ToolbarGaugesComponent); return ToolbarGaugesComponent; }()); /***/ }), /***/ "./src/app/components/toolbar/toolbar-terminal-mapping.component.html": /*!****************************************************************************!*\ !*** ./src/app/components/toolbar/toolbar-terminal-mapping.component.html ***! \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "{{terminalMapping}}\n" /***/ }), /***/ "./src/app/components/toolbar/toolbar-terminal-mapping.component.ts": /*!**************************************************************************!*\ !*** ./src/app/components/toolbar/toolbar-terminal-mapping.component.ts ***! \**************************************************************************/ /*! exports provided: ToolbarTerminalMapping */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolbarTerminalMapping", function() { return ToolbarTerminalMapping; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ToolbarTerminalMapping = /** @class */ (function () { function ToolbarTerminalMapping() { this.terminalMapping = app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder; } ToolbarTerminalMapping.prototype.ngOnInit = function () { var _this = this; var locationSupplier = this.locationSupplier; if (locationSupplier != null) { this._terminalMappingSubscription = locationSupplier.subscribe(function (v) { return _this.terminalMapping = v; }); } else { console.error("Received bad location supplier."); } }; ToolbarTerminalMapping.prototype.ngOnDestroy = function () { if (this._terminalMappingSubscription != null) { this._terminalMappingSubscription.unsubscribe(); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]) ], ToolbarTerminalMapping.prototype, "locationSupplier", void 0); ToolbarTerminalMapping = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'toolbar-terminal-mapping', template: __webpack_require__(/*! ./toolbar-terminal-mapping.component.html */ "./src/app/components/toolbar/toolbar-terminal-mapping.component.html"), }) ], ToolbarTerminalMapping); return ToolbarTerminalMapping; }()); /***/ }), /***/ "./src/app/components/toolbar/toolbar.component.html": /*!***********************************************************!*\ !*** ./src/app/components/toolbar/toolbar.component.html ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n" /***/ }), /***/ "./src/app/components/toolbar/toolbar.component.scss": /*!***********************************************************!*\ !*** ./src/app/components/toolbar/toolbar.component.scss ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n display: block;\n height: 56px; }\n :host.with-gauges {\n height: 146px; }\n .default-theme .nav-wrapper .dropdown-content li.radiobutton-style a.active {\n border-left: solid 6px #1561a1; }\n .default-theme .nav-wrapper .dropdown-content li a:hover .menu-icon i {\n color: #1561a1; }\n .default-theme nav .nav-wrapper button.btn-default {\n background-color: #1561a1; }\n .default-theme #sidenav-header {\n border-bottom: solid 5px #1561a1; }\n .default-theme .side-nav li a.active {\n border-left: solid 6px #1561a1; }\n .default-theme .side-nav li a.active i {\n color: #1561a1; }\n .default-theme a.quick-button.active i {\n color: #1561a1 !important; }\n .default-theme .nav-wrapper .dropdown-content li.radiobutton-style a.active {\n background-color: #cfffeb; }\n .default-theme .side-nav li a.active {\n background-color: #cfffeb; }\n .default-theme nav .dropdown-content li a.default {\n color: #293647; }\n .default-theme .nav-wrapper .dropdown-content .menu-icon i {\n color: #69727e; }\n .default-theme nav .dropdown-content li a.cancel, .default-theme nav .dropdown-content li a.locked {\n color: #69727e; }\n .default-theme .nav-wrapper .fullscreen-toggle a, .default-theme .nav-wrapper .fullscreen-toggle i,\n.default-theme .nav-wrapper .username a,\n.default-theme .nav-wrapper .username i,\n.default-theme .nav-wrapper .language a,\n.default-theme .nav-wrapper .language i,\n.default-theme .nav-wrapper .unitsystem a,\n.default-theme .nav-wrapper .unitsystem i,\n.default-theme .nav-wrapper .overflow a,\n.default-theme .nav-wrapper .overflow i {\n color: #69727e; }\n .default-theme .nav-wrapper .toolbar-separator {\n border-left: 1px solid #69727e; }\n .default-theme .nav-wrapper a.home-nav.slide-out .toolbar-separator {\n border-left: 1px solid #69727e; }\n .default-theme #sidenav-header #title {\n color: #69727e; }\n .default-theme.operatingMode a i, .default-theme.operatingMode a.active i {\n color: #ffffff !important; }\n .default-theme a.active i {\n color: #1561a1 !important; }\n .default-theme.operatingMode {\n background-color: #00cf78; }\n .testing-theme .nav-wrapper .dropdown-content li.radiobutton-style a.active {\n border-left: solid 6px #cfac1f; }\n .testing-theme .nav-wrapper .dropdown-content li a:hover .menu-icon i {\n color: #cfac1f; }\n .testing-theme nav .nav-wrapper button.btn-default {\n background-color: #cfac1f; }\n .testing-theme #sidenav-header {\n border-bottom: solid 5px #cfac1f; }\n .testing-theme .side-nav li a.active {\n border-left: solid 6px #cfac1f; }\n .testing-theme .side-nav li a.active i {\n color: #cfac1f; }\n .testing-theme a.quick-button.active i {\n color: #cfac1f !important; }\n .testing-theme .nav-wrapper .dropdown-content li.radiobutton-style a.active {\n background-color: #cfffeb; }\n .testing-theme .side-nav li a.active {\n background-color: #cfffeb; }\n .testing-theme nav .dropdown-content li a.default {\n color: #525252; }\n .testing-theme .nav-wrapper .dropdown-content .menu-icon i {\n color: #797979; }\n .testing-theme nav .dropdown-content li a.cancel, .testing-theme nav .dropdown-content li a.locked {\n color: #797979; }\n .testing-theme .nav-wrapper .fullscreen-toggle a, .testing-theme .nav-wrapper .fullscreen-toggle i,\n.testing-theme .nav-wrapper .username a,\n.testing-theme .nav-wrapper .username i,\n.testing-theme .nav-wrapper .language a,\n.testing-theme .nav-wrapper .language i,\n.testing-theme .nav-wrapper .unitsystem a,\n.testing-theme .nav-wrapper .unitsystem i,\n.testing-theme .nav-wrapper .overflow a,\n.testing-theme .nav-wrapper .overflow i {\n color: rgba(255, 255, 255, 0.75); }\n .testing-theme .nav-wrapper .toolbar-separator {\n border-left: 1px solid rgba(255, 255, 255, 0.75); }\n .testing-theme .nav-wrapper a.home-nav.slide-out .toolbar-separator {\n border-left: 1px solid rgba(255, 255, 255, 0.75); }\n .testing-theme #sidenav-header #title {\n color: rgba(255, 255, 255, 0.75); }\n .testing-theme.operatingMode a i, .testing-theme.operatingMode a.active i {\n color: #98057e !important; }\n .testing-theme a.active i {\n color: #cfac1f !important; }\n .testing-theme.operatingMode {\n background-color: #00cf78; }\n .toolbar {\n position: fixed;\n top: 0;\n z-index: 1003;\n line-height: 56px; }\n .toolbar.top-gauges {\n height: 56px !important; }\n .toolbar.top-gauges.contains-extended-gauges {\n height: 146px !important; }\n .nav-wrapper {\n height: 56px; }\n .nav-wrapper .fullscreen-toggle span,\n .nav-wrapper .username span,\n .nav-wrapper .language span,\n .nav-wrapper .unitsystem span,\n .nav-wrapper .overflow span {\n margin-right: 8px; }\n .nav-wrapper .overflow {\n width: 56px; }\n .nav-wrapper .quick-buttons {\n float: right; }\n .nav-wrapper .toolbar-texts {\n float: right; }\n .nav-wrapper .dropdown-content {\n width: inherit !important;\n overflow: visible !important; }\n .nav-wrapper .dropdown-content .dropdown-content {\n left: -100% !important;\n z-index: 1; }\n .nav-wrapper .dropdown-content .menu-icon i {\n margin: 0px;\n margin-top: -18px;\n height: 50px !important; }\n .nav-wrapper .toolbar-separator {\n height: 32px;\n width: 1px;\n float: left;\n margin: 12px 4px; }\n .nav-wrapper a.home-nav {\n margin-left: 16px; }\n .nav-wrapper a.quick-button:hover {\n background-color: rgba(0, 0, 0, 0.1);\n transition: background-color 0.1s ease-in; }\n .nav-wrapper a.quick-button.up i {\n margin-top: -3px; }\n .nav-wrapper a.quick-button.left i {\n padding: 0 16px; }\n .nav-wrapper a.quick-button.active {\n pointer-events: none; }\n .nav-wrapper .toolbar-text.left div {\n padding: 0 16px; }\n .nav-wrapper .toolbar-logo {\n font-size: 56px;\n margin-right: 10px; }\n nav .brand-logo {\n position: relative; }\n .brand-logo-title {\n float: left;\n font-size: 1.5rem;\n vertical-align: middle; }\n .brand-logo-title + .toolbar-separator {\n margin-left: 0.3em;\n margin-right: 0.3em; }\n @media only screen and (min-width: 601px) {\n nav .nav-wrapper i,\n nav a.button-collapse,\n nav a.button-collapse i {\n height: 56px !important;\n line-height: 56px !important; }\n nav .nav-wrapper ul.side-nav li a i {\n height: 48px !important;\n line-height: 48px !important; } }\n @media only screen and (min-width: 993px) {\n nav .nav-wrapper i,\n nav a.button-collapse,\n nav a.button-collapse i {\n height: 56px !important;\n line-height: 56px !important; }\n nav a.button-collapse {\n display: block; }\n nav .nav-wrapper ul.side-nav li a i {\n height: 48px !important;\n line-height: 48px !important; } }\n .side-nav .divider {\n margin: 8px 0px; }\n .side-nav li a {\n padding-left: 32px; }\n .side-nav li a.active {\n padding-left: 26px;\n pointer-events: none; }\n #sidenav-header {\n position: relative;\n height: 155px;\n margin-bottom: 12px; }\n #sidenav-header #image {\n position: absolute;\n left: 0px;\n top: 0px;\n width: 300px;\n height: 150px;\n overflow: hidden; }\n #sidenav-header #title {\n line-height: normal;\n font-size: 1rem;\n font-weight: 300;\n position: absolute;\n left: 8px;\n bottom: 7px; }\n nav .dropdown-content {\n min-width: 100px; }\n nav .nav-wrapper button {\n float: right;\n margin-right: 16px;\n margin-top: 10px;\n color: white; }\n nav .nav-wrapper ul#text-toolbar {\n height: 48px; }\n nav .dropdown-content {\n min-width: 190px; }\n" /***/ }), /***/ "./src/app/components/toolbar/toolbar.component.ts": /*!*********************************************************!*\ !*** ./src/app/components/toolbar/toolbar.component.ts ***! \*********************************************************/ /*! exports provided: ToolbarComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolbarComponent", function() { return ToolbarComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/fullscreen-config */ "./src/app/models/fullscreen-config.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../datapoints/base-datapoint.component */ "./src/app/components/datapoints/base-datapoint.component.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../../services/user-data/user-data.service */ "./src/app/services/user-data/user-data.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ToolbarComponent = /** @class */ (function (_super) { __extends(ToolbarComponent, _super); function ToolbarComponent(_cmsTranslate, _unitconversion, _viewService, _authService, _userDataService, _colorService, dataPointService, configService) { var _this = _super.call(this, dataPointService) || this; _this._cmsTranslate = _cmsTranslate; _this._unitconversion = _unitconversion; _this._viewService = _viewService; _this._authService = _authService; _this._userDataService = _userDataService; _this._colorService = _colorService; _this.dataPointService = dataPointService; _this.configService = configService; _this.NavigationItemType = types_config__WEBPACK_IMPORTED_MODULE_7__["NavigationItemType"]; _this._navigationItemsOperationModeRegistry = new Map(); _this._replayToolSubject = new rxjs__WEBPACK_IMPORTED_MODULE_5__["Subject"](); _this.replayMode = _this._replayToolSubject.asObservable(); _this.production = environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].production; _this.toolbarFullscreen = false; _this.user = ''; _this.craneConfig = configService.craneConfig; _this.hasToolbarGauges = ToolbarComponent_1.hasGauges(configService.craneConfig); _this.navigationItems = _this.craneConfig.navigation.items || []; return _this; } ToolbarComponent_1 = ToolbarComponent; ToolbarComponent.prototype.ngOnInit = function () { var _this = this; this.user = this._authService.getClaimIdentityName(); this._toolbarTitleSubscription = this._viewService.toolbarTitleChanged.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["debounceTime"])(1)).subscribe(function (title) { _this.toolbarTitle = title; }); this._toolbarFullscreenSubscription = this._viewService.isToolbarFullscreen.subscribe(function (isFullcreen) { _this.toolbarFullscreen = isFullcreen; }); var operatingModeNaturalKeys = this.navigationItems .filter(function (x) { return x != null && x.enabled && x.nkOperatingMode != null; }) .map(function (x) { return x.nkOperatingMode; }); this.setNaturalKeys(operatingModeNaturalKeys); }; ToolbarComponent.prototype.ngOnDestroy = function () { _super.prototype.ngOnDestroy.call(this); this._toolbarTitleSubscription.unsubscribe(); this._toolbarFullscreenSubscription.unsubscribe(); }; Object.defineProperty(ToolbarComponent.prototype, "productVersion", { get: function () { return this.craneConfig.cmsVersion; }, enumerable: true, configurable: true }); Object.defineProperty(ToolbarComponent.prototype, "useDefaultImage", { get: function () { return this.craneConfig.useDefaultImage; }, enumerable: true, configurable: true }); Object.defineProperty(ToolbarComponent.prototype, "imagePath", { get: function () { return ToolbarComponent_1._assetPath + this.craneConfig.imagePath; }, enumerable: true, configurable: true }); Object.defineProperty(ToolbarComponent.prototype, "languages", { get: function () { return this._cmsTranslate.availableLanguages; }, enumerable: true, configurable: true }); Object.defineProperty(ToolbarComponent.prototype, "currentLanguage", { get: function () { return this._cmsTranslate.currentLanguage; }, enumerable: true, configurable: true }); Object.defineProperty(ToolbarComponent.prototype, "unitsystems", { get: function () { return this.craneConfig.unitSystems.map(function (unit) { return types_config__WEBPACK_IMPORTED_MODULE_7__["UnitSystem"][unit]; }); }, enumerable: true, configurable: true }); ToolbarComponent.prototype.onValueChanged = function (naturalKey, datapointData) { if (naturalKey != null) { this._navigationItemsOperationModeRegistry.set(naturalKey, datapointData); } }; ToolbarComponent.prototype.setLanguage = function (language) { this._userDataService.setLanguage(language); this._cmsTranslate.use(language); }; ToolbarComponent.prototype.setUnitSystem = function (unitSystemName) { this._userDataService.setUnitSystem(types_config__WEBPACK_IMPORTED_MODULE_7__["UnitSystem"][unitSystemName]); this._unitconversion.use(types_config__WEBPACK_IMPORTED_MODULE_7__["UnitSystem"][unitSystemName]); }; ToolbarComponent.prototype.isCurrentUnitsystem = function (name) { if (this._unitconversion != null) { var selectedUnitSystem = this._unitconversion.selectedUnitSystem; if (selectedUnitSystem != null && name != null) { return selectedUnitSystem === types_config__WEBPACK_IMPORTED_MODULE_7__["UnitSystem"][name]; } } return false; }; ToolbarComponent.prototype.isVisibleItem = function (navigationItem) { if (navigationItem != null && navigationItem.enabled && navigationItem.authorizedRoles != null) { var userRole = this._authService.getRole().toLowerCase(); return new RegExp("\\*|" + userRole).test(navigationItem.authorizedRoles.toLowerCase()); } return false; }; ToolbarComponent.prototype.isOperatingModeActive = function (nkOperatingMode) { if (nkOperatingMode != null) { var operatingModeValue = this._navigationItemsOperationModeRegistry.get(nkOperatingMode); return operatingModeValue != null && operatingModeValue; } return false; }; ToolbarComponent.prototype.setTheme = function (theme) { this._colorService.updateColorTheme(theme); }; ToolbarComponent.prototype.openMyAccountModal = function () { var fsConfig = new app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__["FullscreenConfig"]('my_account', app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_2__["FullscreenType"].AccountSettings); this._viewService.openInFullscreen(fsConfig); }; Object.defineProperty(ToolbarComponent.prototype, "isReadOnlyAuthSystem", { get: function () { return this._authService.isReadOnlyAuthSystem; }, enumerable: true, configurable: true }); Object.defineProperty(ToolbarComponent.prototype, "canManuallyLogout", { get: function () { return this._authService.canManuallyLogout; }, enumerable: true, configurable: true }); ToolbarComponent.prototype.logout = function () { this._authService.logout(); }; Object.defineProperty(ToolbarComponent.prototype, "initialRoute", { get: function () { return this._authService.getClaimValue(_services_auth_service__WEBPACK_IMPORTED_MODULE_13__["AuthService"].claimInitialRoute); }, enumerable: true, configurable: true }); Object.defineProperty(ToolbarComponent.prototype, "isSlewingGearEnabled", { get: function () { return this.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasSlewingGear].enabled; }, enumerable: true, configurable: true }); ToolbarComponent.hasGauges = function (config) { if (config != null) { var toolbar_1 = config.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasToolbar]; if (toolbar_1 != null) { var toolbarGauges = toolbar_1.components.find(function (x) { return x.id === 'toolbar-gauges'; }); return toolbarGauges != null && toolbarGauges.enabled; } } return false; }; ToolbarComponent._assetPath = '/files/assets/'; ToolbarComponent = ToolbarComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'toolbar', template: __webpack_require__(/*! ./toolbar.component.html */ "./src/app/components/toolbar/toolbar.component.html"), styles: [__webpack_require__(/*! ./toolbar.component.scss */ "./src/app/components/toolbar/toolbar.component.scss")] }), __metadata("design:paramtypes", [_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_14__["CmsTranslationService"], _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_10__["UnitConversionService"], _services_view_service__WEBPACK_IMPORTED_MODULE_11__["ViewService"], _services_auth_service__WEBPACK_IMPORTED_MODULE_13__["AuthService"], _services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_15__["UserDataService"], _services_color_service__WEBPACK_IMPORTED_MODULE_8__["ColorService"], _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], app_services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"]]) ], ToolbarComponent); return ToolbarComponent; var ToolbarComponent_1; }(_datapoints_base_datapoint_component__WEBPACK_IMPORTED_MODULE_12__["BaseDatapointComponent"])); /***/ }), /***/ "./src/app/components/traverse/traverse-diagnostics.component.html": /*!*************************************************************************!*\ !*** ./src/app/components/traverse/traverse-diagnostics.component.html ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n

    \n releases\n

    \n
    \n
    \n

    \n interlocks\n

    \n
    \n
    \n
    \n \n \n \n \n
    \n
    " /***/ }), /***/ "./src/app/components/traverse/traverse-diagnostics.component.scss": /*!*************************************************************************!*\ !*** ./src/app/components/traverse/traverse-diagnostics.component.scss ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".list-container {\n /* Margin to avoid content overlap from Alarm badge */\n margin-bottom: 70px; }\n" /***/ }), /***/ "./src/app/components/traverse/traverse-diagnostics.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/traverse/traverse-diagnostics.component.ts ***! \***********************************************************************/ /*! exports provided: TraverseDiagnosticsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TraverseDiagnosticsComponent", function() { return TraverseDiagnosticsComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TraverseDiagnosticsComponent = /** @class */ (function () { function TraverseDiagnosticsComponent(_configService) { this._configService = _configService; this._interlockValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this._releaseValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this.interlockObservableCollection = this._interlockValues.asObservable(); this.releaseObservableCollection = this._releaseValues.asObservable(); } TraverseDiagnosticsComponent_1 = TraverseDiagnosticsComponent; TraverseDiagnosticsComponent.isEnabled = function (craneConfig) { var sirDataPoints = TraverseDiagnosticsComponent_1.resolveSIRDataPoints(craneConfig); return sirDataPoints != null && sirDataPoints.length > 0; }; TraverseDiagnosticsComponent.resolveSIRDataPoints = function (craneConfig) { var sirDataPoints = []; var mechanical = craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasTraverse].components.find(function (e) { return e.id === 'magneticTraverse'; }); if (mechanical != null && mechanical.enabled && mechanical.components != null) { var limitsPositive = mechanical.components.find(function (e) { return e.id === 'traverseLimitsPositive'; }); if (limitsPositive != null && limitsPositive.enabled && limitsPositive.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsPositive.quickviewDatapoints); } var limitsNegative = mechanical.components.find(function (e) { return e.id === 'traverseLimitsNegative'; }); if (limitsNegative != null && limitsNegative.enabled && limitsNegative.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsNegative.quickviewDatapoints); } } return sirDataPoints; }; TraverseDiagnosticsComponent.prototype.ngOnInit = function () { var sirDataPoints = TraverseDiagnosticsComponent_1.resolveSIRDataPoints(this._configService.craneConfig); this.initSIRDataPoints(sirDataPoints); }; TraverseDiagnosticsComponent.prototype.ngOnDestroy = function () { if (this._interlockValues != null) { this._interlockValues.unsubscribe(); } if (this._releaseValues != null) { this._releaseValues.unsubscribe(); } }; TraverseDiagnosticsComponent.prototype.initSIRDataPoints = function (datapoints) { var interlockCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var releaseCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var checkingSet = new Set(); datapoints.filter(function (v, i, a) { return a.indexOf(v) === i; }).forEach(function (x) { if (x != null && x.enabled && !checkingSet.has(x.naturalKey)) { switch (x.viewTemplate) { case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Interlock: { interlockCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Release: { releaseCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } } } }); this._interlockValues.next(interlockCollection); this._releaseValues.next(releaseCollection); }; TraverseDiagnosticsComponent = TraverseDiagnosticsComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'traverse-diagnostics', template: __webpack_require__(/*! ./traverse-diagnostics.component.html */ "./src/app/components/traverse/traverse-diagnostics.component.html"), styles: [__webpack_require__(/*! ./traverse-diagnostics.component.scss */ "./src/app/components/traverse/traverse-diagnostics.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"]]) ], TraverseDiagnosticsComponent); return TraverseDiagnosticsComponent; var TraverseDiagnosticsComponent_1; }()); /***/ }), /***/ "./src/app/components/traverse/traverse-svg.component.html": /*!*****************************************************************!*\ !*** ./src/app/components/traverse/traverse-svg.component.html ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n\n \n \n \n \n\n \n \n \n\n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n\n\n" /***/ }), /***/ "./src/app/components/traverse/traverse-svg.component.ts": /*!***************************************************************!*\ !*** ./src/app/components/traverse/traverse-svg.component.ts ***! \***************************************************************/ /*! exports provided: TraverseSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TraverseSvgComponent", function() { return TraverseSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_traverse_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/traverse.viewmodel */ "./src/app/models/traverse.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TraverseSvgComponent = /** @class */ (function (_super) { __extends(TraverseSvgComponent, _super); function TraverseSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_5__["ModelStates"]; _this._vm = new _models_traverse_viewmodel__WEBPACK_IMPORTED_MODULE_6__["TraverseViewModel"](configService.craneConfig, colorService, orientationService); return _this; } TraverseSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'traverse-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./traverse-svg.component.html */ "./src/app/components/traverse/traverse-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TraverseSvgComponent); return TraverseSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/traverse/traverse.component.html": /*!*************************************************************!*\ !*** ./src/app/components/traverse/traverse.component.html ***! \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n\n\n" /***/ }), /***/ "./src/app/components/traverse/traverse.component.ts": /*!***********************************************************!*\ !*** ./src/app/components/traverse/traverse.component.ts ***! \***********************************************************/ /*! exports provided: DIAGNOSTICS_COMPONENT_ID, TraverseComponent, TRAVERSE_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIAGNOSTICS_COMPONENT_ID", function() { return DIAGNOSTICS_COMPONENT_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TraverseComponent", function() { return TraverseComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRAVERSE_CHILD_ROUTES", function() { return TRAVERSE_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _traverse_traverse_svg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../traverse/traverse-svg.component */ "./src/app/components/traverse/traverse-svg.component.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../common/detail-router-svg-page.component */ "./src/app/components/common/detail-router-svg-page.component.ts"); /* harmony import */ var _traverse_diagnostics_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./traverse-diagnostics.component */ "./src/app/components/traverse/traverse-diagnostics.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DIAGNOSTICS_COMPONENT_ID = 'diagnostics'; var TraverseComponent = /** @class */ (function (_super) { __extends(TraverseComponent, _super); function TraverseComponent(viewService, router, activatedRoute, _configService) { var _this = _super.call(this, viewService, router, activatedRoute, 'magnetic_traverse') || this; _this.viewService = viewService; _this.router = router; _this.activatedRoute = activatedRoute; _this._configService = _configService; return _this; } TraverseComponent.prototype.initializeTabs = function () { var components = this._configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasTraverse].components.filter(function (c) { return c.enabled; }); if (components != null) { if (_traverse_diagnostics_component__WEBPACK_IMPORTED_MODULE_8__["TraverseDiagnosticsComponent"].isEnabled(this._configService.craneConfig)) { // Default component which is not directly in the config components.push({ enabled: true, id: DIAGNOSTICS_COMPONENT_ID, title: 'diagnostics' }); } this._availableRoutes = components.map(function (e) { return "/magneticTraverse/" + e.id; }); this._tabTitles = components.map(function (e) { return e.title; }); } this.routeToDefaultTab(); }; Object.defineProperty(TraverseComponent.prototype, "tabTitles", { get: function () { return this._tabTitles; }, enumerable: true, configurable: true }); Object.defineProperty(TraverseComponent.prototype, "tabRoutes", { get: function () { return this._availableRoutes; }, enumerable: true, configurable: true }); TraverseComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'traverse', template: __webpack_require__(/*! ./traverse.component.html */ "./src/app/components/traverse/traverse.component.html"), // using animations on route navigation (showcase) styles: [':host { width: 100%; display: block; position: absolute; }'], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_4__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_3__["ViewService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"]]) ], TraverseComponent); return TraverseComponent; }(_common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_7__["DetailRouterSvgPageComponent"])); var TRAVERSE_CHILD_ROUTES = [ { path: 'magneticTraverse', component: _traverse_traverse_svg_component__WEBPACK_IMPORTED_MODULE_5__["TraverseSvgComponent"] }, { path: DIAGNOSTICS_COMPONENT_ID, component: _traverse_diagnostics_component__WEBPACK_IMPORTED_MODULE_8__["TraverseDiagnosticsComponent"] } ]; /***/ }), /***/ "./src/app/components/trend/quickview-trend/quickview-trend.component.html": /*!*********************************************************************************!*\ !*** ./src/app/components/trend/quickview-trend/quickview-trend.component.html ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n \n
    \n" /***/ }), /***/ "./src/app/components/trend/quickview-trend/quickview-trend.component.scss": /*!*********************************************************************************!*\ !*** ./src/app/components/trend/quickview-trend/quickview-trend.component.scss ***! \*********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".chart-frame.default-theme {\n background-color: #ffffff; }\n\n.chart-frame.testing-theme {\n background-color: #98057e; }\n\n.chart-frame {\n display: block;\n height: 100%;\n width: auto;\n cursor: pointer; }\n\n.chart-frame:hover {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n\n.chart-frame:active {\n box-shadow: none; }\n" /***/ }), /***/ "./src/app/components/trend/quickview-trend/quickview-trend.component.ts": /*!*******************************************************************************!*\ !*** ./src/app/components/trend/quickview-trend/quickview-trend.component.ts ***! \*******************************************************************************/ /*! exports provided: QuickviewTrendComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewTrendComponent", function() { return QuickviewTrendComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component */ "./src/app/components/dynamic-page/dynamic-page-controls/operator-chart/operator-chart.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/quickview/quickview.service */ "./src/app/services/quickview/quickview.service.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var QuickviewTrendComponent = /** @class */ (function () { function QuickviewTrendComponent(_router, _quickviewService, _viewService, _translationService, _unitConversionService) { this._router = _router; this._quickviewService = _quickviewService; this._viewService = _viewService; this._translationService = _translationService; this._unitConversionService = _unitConversionService; this.chartType = app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["ChartType"].Line; } QuickviewTrendComponent.prototype.ngOnInit = function () { var _this = this; this.chart.settings = { showedTimeRange: 6000 }; this._quickviewOpenedSubscription = this._viewService.isQuickviewOpened.subscribe(function (isOpened) { if (_this.chart != null) { _this.chart.togglePause(!isOpened); } }); }; QuickviewTrendComponent.prototype.ngOnDestroy = function () { if (this._quickviewOpenedSubscription != null) { this._quickviewOpenedSubscription.unsubscribe(); } if (this._dataSamplesSubscription != null) { this._dataSamplesSubscription.unsubscribe(); } if (this._translationServiceSubscription != null) { this._translationServiceSubscription.unsubscribe(); } if (this._unitConversionServiceSubscription != null) { this._unitConversionServiceSubscription.unsubscribe(); } if (this.chart != null) { this.chart.dispose(); } }; QuickviewTrendComponent.prototype.onChartInit = function (chart) { var _this = this; var nks = this._quickviewService.sampledNaturalKeys; this.addMissingDatasets(nks, true); this._dataSamplesSubscription = this.getDatasamplesSubscription(); this._translationServiceSubscription = this._translationService.languageChangedEvent.subscribe(function (_) { if (_this.chart != null) { _this.onChartRefresh(); } }); this._unitConversionServiceSubscription = this._unitConversionService.unitSystemChanged.subscribe(function (_) { if (_this.chart != null) { _this.onChartRefresh(); } }); }; QuickviewTrendComponent.prototype.onChartRefresh = function (chart) { if (this.isActive()) { var nks = this.chart.getDatasetIds(); for (var _i = 0, nks_1 = nks; _i < nks_1.length; _i++) { var nk = nks_1[_i]; var dataArray = this._quickviewService.getSampledData(nk); this.chart.supplyData(nk, dataArray); } } }; QuickviewTrendComponent.prototype.openTrend = function () { this._router.navigate(['/analysis']); }; QuickviewTrendComponent.prototype.isActive = function () { var isVisible = this._viewService != null ? this._viewService.quickviewOpened : false; var hasWatchItems = this._quickviewService != null ? this._quickviewService.watchedItemsCount > 0 : false; return isVisible && hasWatchItems; }; QuickviewTrendComponent.prototype.getDatasamplesSubscription = function () { var _this = this; return this._quickviewService.dataSamples.subscribe(function (changeEvent) { if (changeEvent != null && changeEvent.state != null && changeEvent.nks != null && changeEvent.nks.length > 0) { var isDirty = false; switch (changeEvent.state) { case app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_4__["DataSampleState"].Added: { isDirty = _this.addMissingDatasets(changeEvent.nks); break; } case app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_4__["DataSampleState"].Deleted: { isDirty = _this.cleanupDatasets(changeEvent.nks); break; } } if (isDirty) { _this.chart.update({ preservation: true }); } } }); }; QuickviewTrendComponent.prototype.addMissingDatasets = function (nks, isUpdateRequired) { if (isUpdateRequired === void 0) { isUpdateRequired = false; } var isDirty = false; for (var _i = 0, nks_2 = nks; _i < nks_2.length; _i++) { var nk = nks_2[_i]; if (!this.chart.hasDataset(nk)) { var quickWatchItem = this._quickviewService.getQuickwatchItem(nk); if (quickWatchItem != null) { this.chart.addDataset(nk, quickWatchItem.title, quickWatchItem.trendColor, []); isDirty = true; } } } if (isUpdateRequired && isDirty) { this.chart.update({ preservation: true }); } return isDirty; }; QuickviewTrendComponent.prototype.cleanupDatasets = function (nks, isUpdateRequired) { if (isUpdateRequired === void 0) { isUpdateRequired = false; } var isDirty = false; for (var _i = 0, nks_3 = nks; _i < nks_3.length; _i++) { var nk = nks_3[_i]; if (this.chart.hasDataset(nk)) { this.chart.removeDataset(nk); isDirty = true; } } if (isUpdateRequired && isDirty) { this.chart.update({ preservation: true }); } return isDirty; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('chart'), __metadata("design:type", app_components_dynamic_page_dynamic_page_controls_operator_chart_operator_chart_component__WEBPACK_IMPORTED_MODULE_2__["OperatorChartComponent"]) ], QuickviewTrendComponent.prototype, "chart", void 0); QuickviewTrendComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'quickview-trend', template: __webpack_require__(/*! ./quickview-trend.component.html */ "./src/app/components/trend/quickview-trend/quickview-trend.component.html"), styles: [__webpack_require__(/*! ./quickview-trend.component.scss */ "./src/app/components/trend/quickview-trend/quickview-trend.component.scss")] }), __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], app_services_quickview_quickview_service__WEBPACK_IMPORTED_MODULE_4__["QuickviewService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_6__["ViewService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_5__["UnitConversionService"]]) ], QuickviewTrendComponent); return QuickviewTrendComponent; }()); /***/ }), /***/ "./src/app/components/trolley/trolley-csx-double-girder-electrical-svg.component.html": /*!********************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-csx-double-girder-electrical-svg.component.html ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n 0\"\n [class.state-alert-fill]=\"vm?.driveStates[0].faultCode > 0\">\n \n \n \n \n \n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n \n \n \n {{ vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang }} \n {{ 'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit }}\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.driveStates[0].faultCode > 0\"\n svg-mirror-flip [flipHorizontal]=\"false\" [flipVertical]=\"vm?.flipDrivesVertical\">\n \n \n \n \n \n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.driveStates[1].faultCode > 0\"\n svg-mirror-flip [flipHorizontal]=\"false\" [flipVertical]=\"vm?.flipDrivesVertical\">\n \n \n \n \n \n \n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang}}\n {{'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit}}\n \n \n \n {{vm?.driveStates[1].displayValue | unitsystemconvert:vm?.driveStates[1].displayValueNaturalKey:lang}}\n {{vm?.driveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n\n\n\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley-csx-double-girder-electrical-svg.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-csx-double-girder-electrical-svg.component.ts ***! \******************************************************************************************/ /*! exports provided: TrolleyCsxDoubleGirderElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyCsxDoubleGirderElectricalSvgComponent", function() { return TrolleyCsxDoubleGirderElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_trolley_electrical_csx_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/trolley-electrical-csx.viewmodel */ "./src/app/models/trolley-electrical-csx.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyCsxDoubleGirderElectricalSvgComponent = /** @class */ (function (_super) { __extends(TrolleyCsxDoubleGirderElectricalSvgComponent, _super); function TrolleyCsxDoubleGirderElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this._vm = new _models_trolley_electrical_csx_viewmodel__WEBPACK_IMPORTED_MODULE_6__["TrolleyElectricalCsxViewModel"](orientationService, _this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].ActSpeed); return _this; } TrolleyCsxDoubleGirderElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley-csx-double-girder-electrical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./trolley-csx-double-girder-electrical-svg.component.html */ "./src/app/components/trolley/trolley-csx-double-girder-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TrolleyCsxDoubleGirderElectricalSvgComponent); return TrolleyCsxDoubleGirderElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/trolley/trolley-csx-double-girder-mechanical-svg.component.html": /*!********************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-csx-double-girder-mechanical-svg.component.html ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n {{vm?.speedPos | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedPos| unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.stormBreakState == 0 ? '\\ue028' : vm?.stormBreakState == 1 ? 'P' : '\\ue02c'}}\n \n \n \n \n \n {{vm?.stormBreakLeftState == 0 ? '\\ue028' : vm?.stormBreakLeftState == 1 ? 'P' : '\\ue02c'}}\n \n \n \n \n \n H\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n\n\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley-csx-double-girder-mechanical-svg.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-csx-double-girder-mechanical-svg.component.ts ***! \******************************************************************************************/ /*! exports provided: TrolleyCsxDoubleGirderMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyCsxDoubleGirderMechanicalSvgComponent", function() { return TrolleyCsxDoubleGirderMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_trolley_mechanical_csx_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/trolley-mechanical-csx.viewmodel */ "./src/app/models/trolley-mechanical-csx.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyCsxDoubleGirderMechanicalSvgComponent = /** @class */ (function (_super) { __extends(TrolleyCsxDoubleGirderMechanicalSvgComponent, _super); function TrolleyCsxDoubleGirderMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_5__["ModelStates"]; _this._vm = new _models_trolley_mechanical_csx_viewmodel__WEBPACK_IMPORTED_MODULE_6__["TrolleyMechanicalCsxViewModel"](orientationService, _this.config); return _this; } TrolleyCsxDoubleGirderMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley-csx-double-girder-mechanical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./trolley-csx-double-girder-mechanical-svg.component.html */ "./src/app/components/trolley/trolley-csx-double-girder-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TrolleyCsxDoubleGirderMechanicalSvgComponent); return TrolleyCsxDoubleGirderMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/trolley/trolley-ctk-double-girder-electrical-svg.component.html": /*!********************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-ctk-double-girder-electrical-svg.component.html ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n 0\"\n [class.state-alert-fill]=\"vm?.driveStates[0].faultCode > 0\">\n \n \n \n \n \n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n \n \n \n {{ vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang }} \n {{ 'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit }}\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.driveStates[0].faultCode > 0\"\n svg-mirror-flip [flipHorizontal]=\"false\" [flipVertical]=\"vm?.flipDrivesVertical\">\n \n \n \n \n \n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.driveStates[1].faultCode > 0\"\n svg-mirror-flip [flipHorizontal]=\"false\" [flipVertical]=\"vm?.flipDrivesVertical\">\n \n \n \n \n \n \n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang}}\n {{'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit}}\n \n \n \n {{vm?.driveStates[1].displayValue | unitsystemconvert:vm?.driveStates[1].displayValueNaturalKey:lang}}\n {{vm?.driveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n \n \n\n\n\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley-ctk-double-girder-electrical-svg.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-ctk-double-girder-electrical-svg.component.ts ***! \******************************************************************************************/ /*! exports provided: TrolleyCtkDoubleGirderElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyCtkDoubleGirderElectricalSvgComponent", function() { return TrolleyCtkDoubleGirderElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_trolley_electrical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/trolley-electrical-ctk.viewmodel */ "./src/app/models/trolley-electrical-ctk.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyCtkDoubleGirderElectricalSvgComponent = /** @class */ (function (_super) { __extends(TrolleyCtkDoubleGirderElectricalSvgComponent, _super); function TrolleyCtkDoubleGirderElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this._vm = new _models_trolley_electrical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_6__["TrolleyElectricalCtkViewModel"](orientationService, _this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].ActSpeed); return _this; } TrolleyCtkDoubleGirderElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley-ctk-double-girder-electrical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./trolley-ctk-double-girder-electrical-svg.component.html */ "./src/app/components/trolley/trolley-ctk-double-girder-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TrolleyCtkDoubleGirderElectricalSvgComponent); return TrolleyCtkDoubleGirderElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/trolley/trolley-ctk-double-girder-mechanical-svg.component.html": /*!********************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-ctk-double-girder-mechanical-svg.component.html ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n {{vm?.speedPos | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedPos| unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.stormBreakState == 0 ? '\\ue028' : vm?.stormBreakState == 1 ? 'P' : '\\ue02c'}}\n \n \n \n \n \n H\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n\n\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley-ctk-double-girder-mechanical-svg.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-ctk-double-girder-mechanical-svg.component.ts ***! \******************************************************************************************/ /*! exports provided: TrolleyCtkDoubleGirderMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyCtkDoubleGirderMechanicalSvgComponent", function() { return TrolleyCtkDoubleGirderMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_trolley_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/trolley-mechanical-ctk.viewmodel */ "./src/app/models/trolley-mechanical-ctk.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyCtkDoubleGirderMechanicalSvgComponent = /** @class */ (function (_super) { __extends(TrolleyCtkDoubleGirderMechanicalSvgComponent, _super); function TrolleyCtkDoubleGirderMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_5__["ModelStates"]; _this._vm = new _models_trolley_mechanical_ctk_viewmodel__WEBPACK_IMPORTED_MODULE_6__["TrolleyMechanicalCtkViewModel"](orientationService, _this.config); return _this; } TrolleyCtkDoubleGirderMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley-ctk-double-girder-mechanical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./trolley-ctk-double-girder-mechanical-svg.component.html */ "./src/app/components/trolley/trolley-ctk-double-girder-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TrolleyCtkDoubleGirderMechanicalSvgComponent); return TrolleyCtkDoubleGirderMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/trolley/trolley-diagnostics.component.html": /*!***********************************************************************!*\ !*** ./src/app/components/trolley/trolley-diagnostics.component.html ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n

    \n releases\n

    \n
    \n
    \n

    \n interlocks\n

    \n
    \n
    \n

    \n speed_limits\n

    \n
    \n
    \n
    \n \n \n \n \n \n \n
    \n
    " /***/ }), /***/ "./src/app/components/trolley/trolley-diagnostics.component.scss": /*!***********************************************************************!*\ !*** ./src/app/components/trolley/trolley-diagnostics.component.scss ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".list-container {\n /* Margin to avoid content overlap from Alarm badge */\n margin-bottom: 70px; }\n" /***/ }), /***/ "./src/app/components/trolley/trolley-diagnostics.component.ts": /*!*********************************************************************!*\ !*** ./src/app/components/trolley/trolley-diagnostics.component.ts ***! \*********************************************************************/ /*! exports provided: TrolleyDiagnosticsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyDiagnosticsComponent", function() { return TrolleyDiagnosticsComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyDiagnosticsComponent = /** @class */ (function () { function TrolleyDiagnosticsComponent(_configService) { this._configService = _configService; this._speedLimitValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this._interlockValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this._releaseValues = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"](new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"]()); this.speedLimitObservableCollection = this._speedLimitValues.asObservable(); this.interlockObservableCollection = this._interlockValues.asObservable(); this.releaseObservableCollection = this._releaseValues.asObservable(); } TrolleyDiagnosticsComponent_1 = TrolleyDiagnosticsComponent; TrolleyDiagnosticsComponent.isEnabled = function (craneConfig) { var sirDataPoints = TrolleyDiagnosticsComponent_1.resolveSIRDataPoints(craneConfig); return sirDataPoints != null && sirDataPoints.length > 0; }; TrolleyDiagnosticsComponent.resolveSIRDataPoints = function (craneConfig) { var sirDataPoints = []; var craneSelector = craneConfig.craneType === types_config__WEBPACK_IMPORTED_MODULE_4__["CraneType"].CTK ? 'ctk' : 'rtg'; var mechanical = craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasTrolley].components.find(function (e) { return e.id === "mechanical-" + craneSelector + "-double-girder"; }); if (mechanical != null && mechanical.enabled && mechanical.components != null) { var limitsPositive = mechanical.components.find(function (e) { return e.id === 'speedLimitPositive'; }); if (limitsPositive != null && limitsPositive.enabled && limitsPositive.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsPositive.quickviewDatapoints); } var limitsNegative = mechanical.components.find(function (e) { return e.id === 'speedLimitNegative'; }); if (limitsNegative != null && limitsNegative.enabled && limitsNegative.quickviewDatapoints != null) { sirDataPoints.push.apply(sirDataPoints, limitsNegative.quickviewDatapoints); } } return sirDataPoints; }; TrolleyDiagnosticsComponent.prototype.ngOnInit = function () { var sirDataPoints = TrolleyDiagnosticsComponent_1.resolveSIRDataPoints(this._configService.craneConfig); this.initSIRDataPoints(sirDataPoints); }; TrolleyDiagnosticsComponent.prototype.ngOnDestroy = function () { if (this._speedLimitValues != null) { this._speedLimitValues.unsubscribe(); } if (this._interlockValues != null) { this._interlockValues.unsubscribe(); } if (this._releaseValues != null) { this._releaseValues.unsubscribe(); } }; TrolleyDiagnosticsComponent.prototype.initSIRDataPoints = function (datapoints) { var speedLimitCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var interlockCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var releaseCollection = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["DataPointCollection"](); var checkingSet = new Set(); datapoints.filter(function (v, i, a) { return a.indexOf(v) === i; }).forEach(function (x) { if (x != null && x.enabled && !checkingSet.has(x.naturalKey)) { switch (x.viewTemplate) { case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Speedlimit: { speedLimitCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Interlock: { interlockCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } case app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_2__["CustomItemTemplate"].Release: { releaseCollection.items.push({ title: x.title, groupTitle: x.groupTitle, naturalKey: x.naturalKey }); checkingSet.add(x.naturalKey); break; } } } }); this._speedLimitValues.next(speedLimitCollection); this._interlockValues.next(interlockCollection); this._releaseValues.next(releaseCollection); }; TrolleyDiagnosticsComponent = TrolleyDiagnosticsComponent_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley-diagnostics', template: __webpack_require__(/*! ./trolley-diagnostics.component.html */ "./src/app/components/trolley/trolley-diagnostics.component.html"), styles: [__webpack_require__(/*! ./trolley-diagnostics.component.scss */ "./src/app/components/trolley/trolley-diagnostics.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_6__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_5__["ConfigService"]]) ], TrolleyDiagnosticsComponent); return TrolleyDiagnosticsComponent; var TrolleyDiagnosticsComponent_1; }()); /***/ }), /***/ "./src/app/components/trolley/trolley-kc-double-girder-electrical-svg.component.html": /*!*******************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-kc-double-girder-electrical-svg.component.html ***! \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Speed\n Torque\n \n \n\n \n 0\"\n [class.state-alert-fill]=\"vm?.driveStates[0].faultCode > 0\"\n svg-mirror-flip [flipHorizontal]=\"false\" [flipVertical]=\"true\">\n \n \n \n \n \n \n \n \n \n \n 0\"\n [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n M1\n \n \n \n M2\n \n\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n {{vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang}}\n {{'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit}}\n \n \n \n\n\n\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley-kc-double-girder-electrical-svg.component.ts": /*!*****************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-kc-double-girder-electrical-svg.component.ts ***! \*****************************************************************************************/ /*! exports provided: TrolleyKcDoubleGirderElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyKcDoubleGirderElectricalSvgComponent", function() { return TrolleyKcDoubleGirderElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_models_trolley_electrical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/models/trolley-electrical-kc.viewmodel */ "./src/app/models/trolley-electrical-kc.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyKcDoubleGirderElectricalSvgComponent = /** @class */ (function (_super) { __extends(TrolleyKcDoubleGirderElectricalSvgComponent, _super); function TrolleyKcDoubleGirderElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this._vm = new app_models_trolley_electrical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_6__["TrolleyElectricalKcViewModel"](orientationService, _this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].ActSpeed); return _this; } TrolleyKcDoubleGirderElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-trolley-kc-double-girder-electrical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./trolley-kc-double-girder-electrical-svg.component.html */ "./src/app/components/trolley/trolley-kc-double-girder-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TrolleyKcDoubleGirderElectricalSvgComponent); return TrolleyKcDoubleGirderElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/trolley/trolley-kc-double-girder-mechanical-svg.component.html": /*!*******************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-kc-double-girder-mechanical-svg.component.html ***! \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n M1\n \n \n \n \n M2\n \n \n\n \n \n \n \n \n \n \n {{vm?.speedPos | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedPos| unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n\n \n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley-kc-double-girder-mechanical-svg.component.ts": /*!*****************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-kc-double-girder-mechanical-svg.component.ts ***! \*****************************************************************************************/ /*! exports provided: TrolleyKcDoubleGirderMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyKcDoubleGirderMechanicalSvgComponent", function() { return TrolleyKcDoubleGirderMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var app_models_trolley_mechanical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/models/trolley-mechanical-kc.viewmodel */ "./src/app/models/trolley-mechanical-kc.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyKcDoubleGirderMechanicalSvgComponent = /** @class */ (function (_super) { __extends(TrolleyKcDoubleGirderMechanicalSvgComponent, _super); function TrolleyKcDoubleGirderMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_5__["ModelStates"]; _this._vm = new app_models_trolley_mechanical_kc_viewmodel__WEBPACK_IMPORTED_MODULE_6__["TrolleyMechanicalKcViewModel"](orientationService, _this.config); return _this; } TrolleyKcDoubleGirderMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'app-trolley-kc-double-girder-mechanical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./trolley-kc-double-girder-mechanical-svg.component.html */ "./src/app/components/trolley/trolley-kc-double-girder-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TrolleyKcDoubleGirderMechanicalSvgComponent); return TrolleyKcDoubleGirderMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/trolley/trolley-rtg-double-girder-electrical-svg.component.html": /*!********************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-rtg-double-girder-electrical-svg.component.html ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n 0\" [class.state-alert-fill]=\"vm?.driveStates[0].faultCode > 0\">\n \n \n \n \n \n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n \n \n \n {{ vm?.dcBusValue | unitsystemconvert:'Gen_ActiveLineModule_1_OutputVoltage':lang }} \n {{ 'Gen_ActiveLineModule_1_OutputVoltage' | unitsystemunit }}\n \n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.driveStates[0].faultCode > 0\">\n \n \n \n \n \n \n \n \n \n 0\" [class.state-alert-fill]=\"vm?.driveStates[1].faultCode > 0\">\n \n \n \n \n \n \n \n \n \n\n 0\" [class.state-alert-fill]=\"vm?.cuState.faultCode > 0\">\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n\n \n\n \n \n {{vm?.driveStates[0].displayValue | unitsystemconvert:vm?.driveStates[0].displayValueNaturalKey:lang}}\n {{vm?.driveStates[0].displayValueNaturalKey | unitsystemunit}}\n \n\n \n \n {{vm?.driveStates[1].displayValue | unitsystemconvert:vm?.driveStates[1].displayValueNaturalKey:lang}}\n {{vm?.driveStates[1].displayValueNaturalKey | unitsystemunit}}\n \n\n\n \n \n 0.00\n %\n \n\n \n \n\n\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley-rtg-double-girder-electrical-svg.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-rtg-double-girder-electrical-svg.component.ts ***! \******************************************************************************************/ /*! exports provided: TrolleyRtgDoubleGirderElectricalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyRtgDoubleGirderElectricalSvgComponent", function() { return TrolleyRtgDoubleGirderElectricalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_trolley_electrical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/trolley-electrical-rtg.viewmodel */ "./src/app/models/trolley-electrical-rtg.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyRtgDoubleGirderElectricalSvgComponent = /** @class */ (function (_super) { __extends(TrolleyRtgDoubleGirderElectricalSvgComponent, _super); function TrolleyRtgDoubleGirderElectricalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_6__["ModelStates"]; _this._vm = new _models_trolley_electrical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_7__["TrolleyElectricalRtgViewModel"](orientationService, _this.config, types_config__WEBPACK_IMPORTED_MODULE_5__["DisplayValue"].OutputVoltage); return _this; } TrolleyRtgDoubleGirderElectricalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley-rtg-double-girder-electrical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./trolley-rtg-double-girder-electrical-svg.component.html */ "./src/app/components/trolley/trolley-rtg-double-girder-electrical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_10__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_9__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_8__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TrolleyRtgDoubleGirderElectricalSvgComponent); return TrolleyRtgDoubleGirderElectricalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/trolley/trolley-rtg-double-girder-mechanical-svg.component.html": /*!********************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-rtg-double-girder-mechanical-svg.component.html ***! \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.speedPos | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedPos| unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.speedNeg | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n {{vm?.maxSpeedNeg | unitsystemconvert: 'Tro_SpeedEval_ActVelocity'}}{{'Tro_SpeedEval_ActVelocity' | unitsystemunit }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{vm?.stormBreakState == 0 ? '\\ue028' : vm?.stormBreakState == 1 ? 'P' : '\\ue02c'}}\n \n \n \n \n \n H\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n M1\n \n \n \n M2\n \n \n \n M3\n \n \n \n M4\n \n\n\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley-rtg-double-girder-mechanical-svg.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/trolley/trolley-rtg-double-girder-mechanical-svg.component.ts ***! \******************************************************************************************/ /*! exports provided: TrolleyRtgDoubleGirderMechanicalSvgComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyRtgDoubleGirderMechanicalSvgComponent", function() { return TrolleyRtgDoubleGirderMechanicalSvgComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/svgs/svg-base.component */ "./src/app/components/svgs/svg-base.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var _models_trolley_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/trolley-mechanical-rtg.viewmodel */ "./src/app/models/trolley-mechanical-rtg.viewmodel.ts"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/datapoint.service */ "./src/app/services/datapoint.service.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TrolleyRtgDoubleGirderMechanicalSvgComponent = /** @class */ (function (_super) { __extends(TrolleyRtgDoubleGirderMechanicalSvgComponent, _super); function TrolleyRtgDoubleGirderMechanicalSvgComponent(dataPointService, configService, activatedRoute, colorService, orientationService, cmsTranslationService) { var _this = _super.call(this, dataPointService, configService, activatedRoute, colorService, cmsTranslationService) || this; _this.dataPointService = dataPointService; _this.configService = configService; _this.activatedRoute = activatedRoute; _this.colorService = colorService; _this.orientationService = orientationService; _this.cmsTranslationService = cmsTranslationService; _this.modelStates = _models_model_state__WEBPACK_IMPORTED_MODULE_5__["ModelStates"]; _this._vm = new _models_trolley_mechanical_rtg_viewmodel__WEBPACK_IMPORTED_MODULE_6__["TrolleyMechanicalRtgViewModel"](orientationService, _this.config); return _this; } TrolleyRtgDoubleGirderMechanicalSvgComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley-rtg-double-girder-mechanical-svg', styles: [__webpack_require__(/*! ../svgs/svg-base.component.scss */ "./src/app/components/svgs/svg-base.component.scss")], template: __webpack_require__(/*! ./trolley-rtg-double-girder-mechanical-svg.component.html */ "./src/app/components/trolley/trolley-rtg-double-girder-mechanical-svg.component.html"), }), __metadata("design:paramtypes", [_services_datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_color_service__WEBPACK_IMPORTED_MODULE_7__["ColorService"], app_services_orientation_service__WEBPACK_IMPORTED_MODULE_4__["OrientationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], TrolleyRtgDoubleGirderMechanicalSvgComponent); return TrolleyRtgDoubleGirderMechanicalSvgComponent; }(app_components_svgs_svg_base_component__WEBPACK_IMPORTED_MODULE_2__["SvgBaseComponent"])); /***/ }), /***/ "./src/app/components/trolley/trolley.component.html": /*!***********************************************************!*\ !*** ./src/app/components/trolley/trolley.component.html ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n\n\n" /***/ }), /***/ "./src/app/components/trolley/trolley.component.ts": /*!*********************************************************!*\ !*** ./src/app/components/trolley/trolley.component.ts ***! \*********************************************************/ /*! exports provided: DIAGNOSTICS_COMPONENT_ID, TrolleyComponent, TROLLEY_CHILD_ROUTES */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIAGNOSTICS_COMPONENT_ID", function() { return DIAGNOSTICS_COMPONENT_ID; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyComponent", function() { return TrolleyComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TROLLEY_CHILD_ROUTES", function() { return TROLLEY_CHILD_ROUTES; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../common/detail-router-svg-page.component */ "./src/app/components/common/detail-router-svg-page.component.ts"); /* harmony import */ var _trolley_ctk_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./trolley-ctk-double-girder-electrical-svg.component */ "./src/app/components/trolley/trolley-ctk-double-girder-electrical-svg.component.ts"); /* harmony import */ var _trolley_ctk_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./trolley-ctk-double-girder-mechanical-svg.component */ "./src/app/components/trolley/trolley-ctk-double-girder-mechanical-svg.component.ts"); /* harmony import */ var _trolley_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./trolley-diagnostics.component */ "./src/app/components/trolley/trolley-diagnostics.component.ts"); /* harmony import */ var _trolley_rtg_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./trolley-rtg-double-girder-electrical-svg.component */ "./src/app/components/trolley/trolley-rtg-double-girder-electrical-svg.component.ts"); /* harmony import */ var _trolley_rtg_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./trolley-rtg-double-girder-mechanical-svg.component */ "./src/app/components/trolley/trolley-rtg-double-girder-mechanical-svg.component.ts"); /* harmony import */ var _trolley_csx_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./trolley-csx-double-girder-mechanical-svg.component */ "./src/app/components/trolley/trolley-csx-double-girder-mechanical-svg.component.ts"); /* harmony import */ var _trolley_csx_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./trolley-csx-double-girder-electrical-svg.component */ "./src/app/components/trolley/trolley-csx-double-girder-electrical-svg.component.ts"); /* harmony import */ var _trolley_kc_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./trolley-kc-double-girder-electrical-svg.component */ "./src/app/components/trolley/trolley-kc-double-girder-electrical-svg.component.ts"); /* harmony import */ var _trolley_kc_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./trolley-kc-double-girder-mechanical-svg.component */ "./src/app/components/trolley/trolley-kc-double-girder-mechanical-svg.component.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DIAGNOSTICS_COMPONENT_ID = 'diagnostics'; var TrolleyComponent = /** @class */ (function (_super) { __extends(TrolleyComponent, _super); function TrolleyComponent(viewService, router, activatedRoute, _configService) { var _this = _super.call(this, viewService, router, activatedRoute, 'trolley') || this; _this.viewService = viewService; _this.router = router; _this.activatedRoute = activatedRoute; _this._configService = _configService; return _this; } TrolleyComponent.prototype.initializeTabs = function () { var components = this._configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasTrolley].components.filter(function (c) { return c.enabled; }); if (components != null) { if (_trolley_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__["TrolleyDiagnosticsComponent"].isEnabled(this._configService.craneConfig)) { // Default component which is not directly in the config components.push({ enabled: true, id: DIAGNOSTICS_COMPONENT_ID, title: 'diagnostics' }); } this._availableRoutes = components.map(function (e) { return "/trolley/" + e.id; }); this._tabTitles = components.map(function (e) { return e.title; }); } this.routeToDefaultTab(); }; Object.defineProperty(TrolleyComponent.prototype, "tabTitles", { get: function () { return this._tabTitles; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyComponent.prototype, "tabRoutes", { get: function () { return this._availableRoutes; }, enumerable: true, configurable: true }); TrolleyComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'trolley', template: __webpack_require__(/*! ./trolley.component.html */ "./src/app/components/trolley/trolley.component.html"), // using animations on route navigation (showcase) styles: [':host { width: 100%; display: block; position: absolute; }'], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_5__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _services_config_service__WEBPACK_IMPORTED_MODULE_3__["ConfigService"]]) ], TrolleyComponent); return TrolleyComponent; }(_common_detail_router_svg_page_component__WEBPACK_IMPORTED_MODULE_6__["DetailRouterSvgPageComponent"])); var TROLLEY_CHILD_ROUTES = [ { path: 'mechanical-rtg-double-girder', component: _trolley_rtg_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_11__["TrolleyRtgDoubleGirderMechanicalSvgComponent"] }, { path: 'electrical-rtg-double-girder', component: _trolley_rtg_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_10__["TrolleyRtgDoubleGirderElectricalSvgComponent"] }, { path: 'mechanical-ctk-double-girder', component: _trolley_ctk_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_8__["TrolleyCtkDoubleGirderMechanicalSvgComponent"] }, { path: 'electrical-ctk-double-girder', component: _trolley_ctk_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_7__["TrolleyCtkDoubleGirderElectricalSvgComponent"] }, { path: 'mechanical-csx-double-girder', component: _trolley_csx_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_12__["TrolleyCsxDoubleGirderMechanicalSvgComponent"] }, { path: 'electrical-csx-double-girder', component: _trolley_csx_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_13__["TrolleyCsxDoubleGirderElectricalSvgComponent"] }, { path: 'mechanical-kc-double-girder', component: _trolley_kc_double_girder_mechanical_svg_component__WEBPACK_IMPORTED_MODULE_15__["TrolleyKcDoubleGirderMechanicalSvgComponent"] }, { path: 'electrical-kc-double-girder', component: _trolley_kc_double_girder_electrical_svg_component__WEBPACK_IMPORTED_MODULE_14__["TrolleyKcDoubleGirderElectricalSvgComponent"] }, { path: DIAGNOSTICS_COMPONENT_ID, component: _trolley_diagnostics_component__WEBPACK_IMPORTED_MODULE_9__["TrolleyDiagnosticsComponent"] } ]; /***/ }), /***/ "./src/app/components/user-management/user-detail/user-detail.component.html": /*!***********************************************************************************!*\ !*** ./src/app/components/user-management/user-detail/user-detail.component.html ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
    \n
    \n
    \n
    \n

    \n  \n {{editMode === editModes.Create ? 'create_user' : 'update_user'}}\n

    \n
    \n
    \n\n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n\n
    \n
    \n \n \n
    \n
    \n \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n\n
    \n
    \n \n
    \n \n
    \n \n \n \n
    \n
    \n
    \n
    \n\n \n
    \n" /***/ }), /***/ "./src/app/components/user-management/user-detail/user-detail.component.scss": /*!***********************************************************************************!*\ !*** ./src/app/components/user-management/user-detail/user-detail.component.scss ***! \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n width: 100%;\n display: block;\n position: absolute; }\n\n#deleteButton {\n float: right; }\n\n#changePasswordButton {\n display: none;\n transition: all 0.2s ease-in-out; }\n\n#changePasswordButton.show {\n display: block; }\n\n.switch label {\n line-height: 36px; }\n\n.row.optional {\n display: none;\n transition: all 0.2s ease-in-out; }\n\n.row.optional.show {\n display: block; }\n" /***/ }), /***/ "./src/app/components/user-management/user-detail/user-detail.component.ts": /*!*********************************************************************************!*\ !*** ./src/app/components/user-management/user-detail/user-detail.component.ts ***! \*********************************************************************************/ /*! exports provided: EditMode, UserDetailComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditMode", function() { return EditMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserDetailComponent", function() { return UserDetailComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_components_common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/components/common/common-components/confirmation-modal/confirmation-modal.component */ "./src/app/components/common/common-components/confirmation-modal/confirmation-modal.component.ts"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/index.js"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _services_user_management_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../services/user-management.service */ "./src/app/services/user-management.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var EditMode; (function (EditMode) { EditMode[EditMode["Create"] = 0] = "Create"; EditMode[EditMode["Update"] = 1] = "Update"; })(EditMode || (EditMode = {})); var UserDetailComponent = /** @class */ (function () { function UserDetailComponent(configService, _translate, _unitSystemService, _viewService, _toastService, _router, _route, _userMgt) { this._translate = _translate; this._unitSystemService = _unitSystemService; this._viewService = _viewService; this._toastService = _toastService; this._router = _router; this._route = _route; this._userMgt = _userMgt; this.updatePassword = false; this.editModes = EditMode; this.deleteConfirmationModalActions = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this._allUsers = []; this.isRosLoginEnabled = configService.craneConfig.authentification.isRosLoginEnabled; this._passwordPolicies = configService.craneConfig.passwordPolicies; } UserDetailComponent.prototype.ngOnInit = function () { var _this = this; this._routeSubscription = this._route.params .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["switchMap"])(function (params) { var requests = []; var idParam = params['id']; if (_this._router.url.toString().endsWith('/create') || !idParam) { _this.editMode = EditMode.Create; _this._viewService.setToolbarTitle('user_-_new'); requests.push(Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["of"])(_this.generateDefaultUser())); } else { _this.editMode = EditMode.Update; _this._viewService.setToolbarTitle('user_-_edit'); requests.push(_this._userMgt.getUser(idParam)); } requests.push(_this._userMgt.getManageableRoles()); return Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["forkJoin"])(requests).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["take"])(1)); })) .subscribe(function (results) { _this.user = results[0]; _this.roles = results[1]; console.log('Loaded', _this.user, _this.roles); setTimeout(function () { Materialize.updateTextFields(); }); }); this.fetchRoles(); this.fetchUsers(); }; UserDetailComponent.prototype.ngOnDestroy = function () { this._routeSubscription.unsubscribe(); }; UserDetailComponent.prototype.fetchRoles = function () { var _this = this; this._userMgt .getManageableRoles() .subscribe(function (roles) { _this.roles = roles; }); }; UserDetailComponent.prototype.fetchUsers = function () { var _this = this; this._userMgt.getUsers() .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["take"])(1)) .subscribe(function (users) { _this._allUsers = users; }); }; UserDetailComponent.prototype.generateDefaultUser = function () { return { id: Object(uuid__WEBPACK_IMPORTED_MODULE_9__["v4"])(), rosId: undefined, userName: '', role: 'Operator', password: '', confirmPassword: '', autoLogout: false, language: this._translate.currentLanguage, unitSystem: this._unitSystemService.selectedUnitSystem, initialRoute: '/', newPassword: '' }; }; UserDetailComponent.prototype.displaySuccessFeedback = function (message) { var translatedMessage = this._translate.translateToCurrentLanguage(message); this._toastService.showToastAsync(translatedMessage, app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_5__["TimeSpan"].Long, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_12__["NotificationToastType"].Success); }; UserDetailComponent.prototype.displayErrorFeedback = function () { this._toastService.showToastAsync('error', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_5__["TimeSpan"].Long, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_12__["NotificationToastType"].Error); }; UserDetailComponent.prototype.roleIsValid = function () { return this.user.role != null; }; UserDetailComponent.prototype.isUsernameValid = function () { var _this = this; if (this.editMode === EditMode.Create) { if (!this.user.userName) { return false; } if (this.user.userName.indexOf(' ') >= 0) { return false; } if (this.user.userName.length > 100) { return false; } if (this._allUsers.some(function (user) { return user.userName == _this.user.userName; })) { return false; } } return true; }; UserDetailComponent.prototype.isPasswordValid = function () { if (this.user.password) { if (!/\S/.test(this.user.password)) { return false; } if (this.user.password.length <= this._passwordPolicies.requiredLength) { return false; } if (this.user.password.length > 100) { return false; } } if (this.editMode === EditMode.Create) { if (!this.user.password) { return false; } if (!this.user.confirmPassword) { return false; } } else if (this.editMode === EditMode.Update) { if (!(this.updatePassword || this.user.role)) { return false; } } if (this.user.password == '') { return false; } if (this.user.password !== this.user.confirmPassword) { return false; } return true; }; Object.defineProperty(UserDetailComponent.prototype, "isInputValid", { get: function () { if (!this.roleIsValid()) { return false; } if (!this.isUsernameValid()) { return false; } if (!this.isPasswordValid()) { return false; } return true; }, enumerable: true, configurable: true }); UserDetailComponent.prototype.toValidationClass = function (value) { if (!(this.form != null) || !this.form.dirty) { return value ? null : 'invalid'; } return value ? 'valid' : 'invalid'; }; UserDetailComponent.prototype.openDeleteConfirmationModal = function ($event) { $event.preventDefault(); this.deleteConfirmationModalActions.emit({ action: 'modal', params: ['open'] }); }; UserDetailComponent.prototype.handleModalResult = function (e) { if (e != null) { switch (e.result) { case app_components_common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_3__["ConfirmationResult"].Accept: { this.delete(); break; } case app_components_common_common_components_confirmation_modal_confirmation_modal_component__WEBPACK_IMPORTED_MODULE_3__["ConfirmationResult"].Cancel: { this.denyDeletion(); break; } } } }; UserDetailComponent.prototype.denyDeletion = function () { this.deleteConfirmationModalActions.emit({ action: 'modal', params: ['close'] }); }; UserDetailComponent.prototype.save = function () { if (this.editMode === EditMode.Create) { this.createUser(); } else { this.updateUser(); } }; UserDetailComponent.prototype.delete = function () { var _this = this; this._userMgt.deleteUser(this.user) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["take"])(1)).subscribe(function (success) { _this.displaySuccessFeedback('user_deleted'); _this.backToUserList(); }, function (error) { _this.displayErrorFeedback(); console.error('Failed to delete user', _this.user, error); }); }; UserDetailComponent.prototype.cancel = function () { this.backToUserList(); }; UserDetailComponent.prototype.createUser = function () { var _this = this; this._userMgt.createUser(this.user).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["take"])(1)).subscribe(function (success) { _this.displaySuccessFeedback('user_created'); _this.backToUserList(); }, function (error) { _this.displayErrorFeedback(); console.error('Failed to create user', _this.user, error); }); }; UserDetailComponent.prototype.updateUser = function () { var _this = this; this._userMgt.updateUser(this.user).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["take"])(1)).subscribe(function (success) { _this.displaySuccessFeedback('user_updated'); _this.backToUserList(); }, function (error) { _this.displayErrorFeedback(); console.error('Failed to update user', _this.user, error); }); }; UserDetailComponent.prototype.backToUserList = function () { this._router.navigate(['/users']); }; UserDetailComponent.prototype.toggleChangePassword = function () { this.updatePassword = !this.updatePassword; if (!this.updatePassword) { this.user.password = undefined; this.user.confirmPassword = undefined; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('form'), __metadata("design:type", _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"]) ], UserDetailComponent.prototype, "form", void 0); UserDetailComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'user-detail', template: __webpack_require__(/*! ./user-detail.component.html */ "./src/app/components/user-management/user-detail/user-detail.component.html"), styles: [__webpack_require__(/*! ./user-detail.component.scss */ "./src/app/components/user-management/user-detail/user-detail.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_14__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_10__["ConfigService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_4__["CmsTranslationService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_6__["UnitConversionService"], _services_view_service__WEBPACK_IMPORTED_MODULE_11__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_5__["ToastService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"], _services_user_management_service__WEBPACK_IMPORTED_MODULE_13__["UserManagementService"]]) ], UserDetailComponent); return UserDetailComponent; }()); /***/ }), /***/ "./src/app/components/user-management/user-list/user-list.component.html": /*!*******************************************************************************!*\ !*** ./src/app/components/user-management/user-list/user-list.component.html ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
    \n
    \n\n
    \n \n
    \n\n
    \n \n
    \n
    \n\n
    \n \n\n \n \n username\n \n \n {{ value }}\n \n \n\n \n \n ros_id\n \n \n {{ value }}\n \n \n\n \n \n user_role\n \n \n {{ value }}\n \n \n\n \n \n edit\n \n \n \n \n \n \n \n \n\n
    \n
    \n
    \n" /***/ }), /***/ "./src/app/components/user-management/user-list/user-list.component.scss": /*!*******************************************************************************!*\ !*** ./src/app/components/user-management/user-list/user-list.component.scss ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".default-theme .quick-filterable:hover::after {\n color: #1561a1; }\n\n.testing-theme .quick-filterable:hover::after {\n color: #cfac1f; }\n\n:host {\n width: 100%;\n display: block;\n position: absolute; }\n\n.quick-filterable {\n cursor: pointer; }\n\n.quick-filterable:hover {\n font-weight: bold; }\n\n.quick-filterable:hover::after {\n margin-left: 4px;\n font-size: 13px;\n font-family: 'cms-icons';\n opacity: 0.3;\n vertical-align: middle;\n content: 'F'; }\n\n.quick-filterable:active::after {\n opacity: 0.8; }\n\n.row-detail {\n overflow-y: auto; }\n\n.detail-activities {\n vertical-align: top; }\n\n.datatable-row-detail {\n overflow-y: auto; }\n\nngx-datatable {\n opacity: 1;\n transition: opacity 0.3s ease-in; }\n\nngx-datatable.loading {\n opacity: 0;\n transition: none; }\n" /***/ }), /***/ "./src/app/components/user-management/user-list/user-list.component.ts": /*!*****************************************************************************!*\ !*** ./src/app/components/user-management/user-list/user-list.component.ts ***! \*****************************************************************************/ /*! exports provided: UserListComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserListComponent", function() { return UserListComponent; }); /* harmony import */ var app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/services/toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _services_user_management_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../services/user-management.service */ "./src/app/services/user-management.service.ts"); /* harmony import */ var _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../animation/page-transition.animation */ "./src/app/components/animation/page-transition.animation.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/data-cache.service */ "./src/app/services/data-cache.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../services/config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UserListComponent = /** @class */ (function () { function UserListComponent(configService, _viewService, _toastService, _preserveService, _userMgt) { this._viewService = _viewService; this._toastService = _toastService; this._preserveService = _preserveService; this._userMgt = _userMgt; this._componentName = 'userList'; this._allUsers = []; this.users = []; this.isRosLoginEnabled = configService.craneConfig.authentification.isRosLoginEnabled; } UserListComponent.prototype.ngOnInit = function () { this._viewService.setToolbarTitle('user'); this.filter = this._preserveService.getData(this._componentName) ? this._preserveService.getData(this._componentName) : { filterText: '' }; this.fetchUsers(); }; UserListComponent.prototype.fetchUsers = function () { var _this = this; this._userMgt.getUsers() .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(function () { return _this.initialLoadingCompleted = true; })) .subscribe(function (users) { _this._allUsers = users; _this.filterUserList(); }); }; UserListComponent.prototype.filterUserList = function (newFilterValue) { var _this = this; if (newFilterValue !== undefined) { this.filter.filterText = newFilterValue; } if (this.filter && this.filter.filterText) { this.users = this._allUsers.filter(function (u) { return u.userName.toLocaleLowerCase().indexOf(_this.filter.filterText.toLocaleLowerCase()) >= 0 || u.role.toLocaleLowerCase().indexOf(_this.filter.filterText.toLocaleLowerCase()) >= 0; }); } else { this.users = this._allUsers; } }; UserListComponent.prototype.onLongPress = function (event) { this._toastService.showToastAsync('filtered', app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_0__["TimeSpan"].Short, _toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_7__["NotificationToastType"].Success); this.filter.filterText = event.target.innerText; this._preserveService.saveData(this._componentName, this.filter); this.filterUserList(); }; UserListComponent.prototype.isEditable = function (user) { return user.canManage && !user.isCurrentlyLoggedOnUser; }; UserListComponent.prototype.getRowClass = function (user) { return { 'disabled-row': !user.canManage || user.isCurrentlyLoggedOnUser }; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ViewChild"])('userTable'), __metadata("design:type", Object) ], UserListComponent.prototype, "table", void 0); UserListComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_6__["Component"])({ selector: 'user-list', template: __webpack_require__(/*! ./user-list.component.html */ "./src/app/components/user-management/user-list/user-list.component.html"), styles: [__webpack_require__(/*! ./user-list.component.scss */ "./src/app/components/user-management/user-list/user-list.component.scss")], host: { '[@routeAnimation]': 'true' }, animations: _animation_page_transition_animation__WEBPACK_IMPORTED_MODULE_3__["PageTransitionAnimation"].opacity }), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], app_services_toast_sevice__WEBPACK_IMPORTED_MODULE_0__["ToastService"], app_services_data_cache_service__WEBPACK_IMPORTED_MODULE_5__["DataCacheService"], _services_user_management_service__WEBPACK_IMPORTED_MODULE_2__["UserManagementService"]]) ], UserListComponent); return UserListComponent; }()); /***/ }), /***/ "./src/app/configuration.ts": /*!**********************************!*\ !*** ./src/app/configuration.ts ***! \**********************************/ /*! exports provided: Configuration */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Configuration", function() { return Configuration; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var Configuration = /** @class */ (function () { function Configuration(_platformLocation) { this._platformLocation = _platformLocation; this._apiUrl = 'api/'; } Object.defineProperty(Configuration.prototype, "server", { get: function () { var baseHref = this._platformLocation.getBaseHrefFromDOM(); return window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + baseHref; }, enumerable: true, configurable: true }); Object.defineProperty(Configuration.prototype, "serverWithApiUrl", { get: function () { return this.server + this._apiUrl; }, enumerable: true, configurable: true }); Configuration = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_angular_common__WEBPACK_IMPORTED_MODULE_1__["PlatformLocation"]]) ], Configuration); return Configuration; }()); /***/ }), /***/ "./src/app/directives/claims/claim-exists.directive.ts": /*!*************************************************************!*\ !*** ./src/app/directives/claims/claim-exists.directive.ts ***! \*************************************************************/ /*! exports provided: ClaimExistsDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClaimExistsDirective", function() { return ClaimExistsDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/auth.service */ "./src/app/services/auth.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var ClaimExistsDirective = /** @class */ (function () { function ClaimExistsDirective(_templateRef, _viewContainer, _authService) { this._templateRef = _templateRef; this._viewContainer = _viewContainer; this._authService = _authService; } Object.defineProperty(ClaimExistsDirective.prototype, "ifClaimExists", { set: function (claim) { var _this = this; var claimExists = false; if (claim != null && claim.length > 0) { var optionalClaims = claim.split('|'); if (optionalClaims != null && optionalClaims.length > 0) { claimExists = optionalClaims.some(function (c) { return _this._authService.getPermissionWithClaim(c); }); } } if (claimExists) { this._viewContainer.createEmbeddedView(this._templateRef); } else { this._viewContainer.clear(); } }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], ClaimExistsDirective.prototype, "ifClaimExists", null); ClaimExistsDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[ifClaimExists]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]]) ], ClaimExistsDirective); return ClaimExistsDirective; }()); /***/ }), /***/ "./src/app/directives/claims/claim-missing.directive.ts": /*!**************************************************************!*\ !*** ./src/app/directives/claims/claim-missing.directive.ts ***! \**************************************************************/ /*! exports provided: ClaimMissingDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClaimMissingDirective", function() { return ClaimMissingDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/auth.service */ "./src/app/services/auth.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var ClaimMissingDirective = /** @class */ (function () { function ClaimMissingDirective(_templateRef, _viewContainer, _authService) { this._templateRef = _templateRef; this._viewContainer = _viewContainer; this._authService = _authService; } Object.defineProperty(ClaimMissingDirective.prototype, "ifClaimMissing", { set: function (claim) { var _this = this; var isClaimMissing = true; if (claim != null && claim.length > 0) { var optionalClaims = claim.split('|'); if (optionalClaims != null && optionalClaims.length > 0) { isClaimMissing = !optionalClaims.some(function (c) { return _this._authService.getPermissionWithClaim(c); }); } } if (isClaimMissing) { this._viewContainer.createEmbeddedView(this._templateRef); } else { this._viewContainer.clear(); } }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String), __metadata("design:paramtypes", [String]) ], ClaimMissingDirective.prototype, "ifClaimMissing", null); ClaimMissingDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[ifClaimMissing]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]]) ], ClaimMissingDirective); return ClaimMissingDirective; }()); /***/ }), /***/ "./src/app/directives/gestures/long-press.directive.ts": /*!*************************************************************!*\ !*** ./src/app/directives/gestures/long-press.directive.ts ***! \*************************************************************/ /*! exports provided: LongPressDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LongPressDirective", function() { return LongPressDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var LongPressDirective = /** @class */ (function () { function LongPressDirective() { this.duration = 500; this.disable = false; this.onLongPress = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this._mouseX = 0; this._mouseY = 0; } Object.defineProperty(LongPressDirective.prototype, "press", { get: function () { return this._pressing; }, enumerable: true, configurable: true }); Object.defineProperty(LongPressDirective.prototype, "longPress", { get: function () { return this._longPressing; }, enumerable: true, configurable: true }); LongPressDirective.prototype.onMouseDown = function (event) { var _this = this; if (this.disable) { return; } // ignore right and middle clicks if (event.which !== 1) { return; } this._mouseX = event.clientX; this._mouseY = event.clientY; this._pressing = true; this._longPressing = false; this._timeout = setTimeout(function () { _this._longPressing = true; _this.onLongPress.emit(event); }, this.duration); }; LongPressDirective.prototype.onMouseMove = function (event) { if (this._pressing && !this._longPressing) { var movedHorizontal = Math.abs(event.clientX - this._mouseX) > 10; var movedVertical = Math.abs(event.clientY - this._mouseY) > 10; if (movedHorizontal || movedVertical) { this.endPress(); } } }; LongPressDirective.prototype.endPress = function () { clearTimeout(this._timeout); this._longPressing = false; this._pressing = false; }; LongPressDirective.prototype.onMouseUp = function () { this.endPress(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LongPressDirective.prototype, "duration", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LongPressDirective.prototype, "disable", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LongPressDirective.prototype, "onLongPress", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"])('class.press'), __metadata("design:type", Object), __metadata("design:paramtypes", []) ], LongPressDirective.prototype, "press", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"])('class.longpress'), __metadata("design:type", Object), __metadata("design:paramtypes", []) ], LongPressDirective.prototype, "longPress", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mousedown', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], LongPressDirective.prototype, "onMouseDown", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mousemove', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], LongPressDirective.prototype, "onMouseMove", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseup'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], LongPressDirective.prototype, "onMouseUp", null); LongPressDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[long-press]' }) ], LongPressDirective); return LongPressDirective; }()); /***/ }), /***/ "./src/app/directives/gestures/short-press.directive.ts": /*!**************************************************************!*\ !*** ./src/app/directives/gestures/short-press.directive.ts ***! \**************************************************************/ /*! exports provided: ShortPressDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShortPressDirective", function() { return ShortPressDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var ShortPressDirective = /** @class */ (function () { function ShortPressDirective() { this.onShortPress = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } ShortPressDirective.prototype.onMouseDown = function (e) { var _this = this; this._isShort = true; this._timeout = setTimeout(function () { _this._isShort = false; }, 500); }; ShortPressDirective.prototype.onMouseLeave = function (e) { if (this._isShort) { this.onShortPress.emit(e); } clearTimeout(this._timeout); }; ShortPressDirective.prototype.onMouseUp = function (e) { clearTimeout(this._timeout); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], ShortPressDirective.prototype, "onShortPress", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mousedown'), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], ShortPressDirective.prototype, "onMouseDown", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseup'), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], ShortPressDirective.prototype, "onMouseLeave", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], ShortPressDirective.prototype, "onMouseUp", null); ShortPressDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[short-press]' }) ], ShortPressDirective); return ShortPressDirective; }()); /***/ }), /***/ "./src/app/directives/gestures/touch-click.directive.ts": /*!**************************************************************!*\ !*** ./src/app/directives/gestures/touch-click.directive.ts ***! \**************************************************************/ /*! exports provided: TouchClickDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TouchClickDirective", function() { return TouchClickDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var EventDetection; (function (EventDetection) { EventDetection[EventDetection["Undefined"] = 0] = "Undefined"; EventDetection[EventDetection["MouseEvents"] = 1] = "MouseEvents"; EventDetection[EventDetection["TouchEvents"] = 2] = "TouchEvents"; })(EventDetection || (EventDetection = {})); var TouchClickDirective = /** @class */ (function () { function TouchClickDirective() { this.onClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.onDown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.onUp = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.onCancel = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this._detection = EventDetection.Undefined; } TouchClickDirective.prototype.isValidEventType = function (detectionType) { if (this._detection === EventDetection.Undefined) { // store the first event-type and skip events of other type this._detection = detectionType; } return detectionType === this._detection; }; TouchClickDirective.prototype.onMouseDown = function (event) { var _this = this; this.fireIfEventTypeMatches(EventDetection.MouseEvents, function () { return _this.initTouchClick(event); }); }; TouchClickDirective.prototype.onMouseUp = function () { var _this = this; this.fireIfEventTypeMatches(EventDetection.MouseEvents, function () { return _this.fireTouchClick(); }); }; TouchClickDirective.prototype.onMouseLeave = function () { var _this = this; this.fireIfEventTypeMatches(EventDetection.MouseEvents, function () { return _this.cancelTouchClick(); }); }; TouchClickDirective.prototype.onMouseMove = function (event) { var _this = this; this.fireIfEventTypeMatches(EventDetection.MouseEvents, function () { if (!!_this._mouseX && !!_this._mouseY) { var movedHorizontal = Math.abs(_this._mouseX - event.clientX) > 10; var movedVertical = Math.abs(_this._mouseY - event.clientY) > 10; if (movedHorizontal || movedVertical) { _this.cancelTouchClick(); } } }); }; TouchClickDirective.prototype.onTouchStart = function () { var _this = this; this.fireIfEventTypeMatches(EventDetection.TouchEvents, function () { return _this.initTouchClick(); }); }; TouchClickDirective.prototype.onTouchEnd = function (event) { var _this = this; this.fireIfEventTypeMatches(EventDetection.TouchEvents, function () { return _this.fireTouchClick(); }); }; TouchClickDirective.prototype.onTouchMove = function () { var _this = this; this.fireIfEventTypeMatches(EventDetection.TouchEvents, function () { return _this.cancelTouchClick(); }); }; TouchClickDirective.prototype.initTouchClick = function (event) { if (event) { this._mouseX = event.clientX; this._mouseY = event.clientY; } this._down = true; this.onDown.emit(true); }; TouchClickDirective.prototype.cancelTouchClick = function () { if (this._down) { this._down = false; this._mouseX = undefined; this._mouseX = undefined; this.onCancel.emit(true); } }; TouchClickDirective.prototype.fireTouchClick = function () { this.onUp.emit(true); if (this._down) { this.onClicked.emit(true); } this._down = false; }; TouchClickDirective.prototype.fireIfEventTypeMatches = function (detectionType, subject) { if (this.isValidEventType(detectionType)) { subject(); } else { console.trace("Event type '" + EventDetection[detectionType] + "' was ignored, because '" + EventDetection[this._detection] + "' is already active."); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], TouchClickDirective.prototype, "onClicked", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], TouchClickDirective.prototype, "onDown", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], TouchClickDirective.prototype, "onUp", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], TouchClickDirective.prototype, "onCancel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mousedown', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], TouchClickDirective.prototype, "onMouseDown", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseup'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TouchClickDirective.prototype, "onMouseUp", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TouchClickDirective.prototype, "onMouseLeave", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mousemove', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], TouchClickDirective.prototype, "onMouseMove", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('touchstart'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TouchClickDirective.prototype, "onTouchStart", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('touchend', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], TouchClickDirective.prototype, "onTouchEnd", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('touchmove'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TouchClickDirective.prototype, "onTouchMove", null); TouchClickDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[touch-click]' }) ], TouchClickDirective); return TouchClickDirective; }()); /***/ }), /***/ "./src/app/directives/i18n/smart-translate.directive.ts": /*!**************************************************************!*\ !*** ./src/app/directives/i18n/smart-translate.directive.ts ***! \**************************************************************/ /*! exports provided: SmartTranslateDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmartTranslateDirective", function() { return SmartTranslateDirective; }); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SmartTranslateDirective = /** @class */ (function (_super) { __extends(SmartTranslateDirective, _super); function SmartTranslateDirective(translation, el, renderer) { var _this = _super.call(this, translation, el, renderer) || this; _this.translation = translation; _this.el = el; _this.renderer = renderer; return _this; } SmartTranslateDirective.prototype.getValues = function (key) { return _super.prototype.getValues.call(this, key); }; SmartTranslateDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"])({ selector: '[smarttranslate]' }), __metadata("design:paramtypes", [angular_l10n__WEBPACK_IMPORTED_MODULE_0__["TranslationService"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]]) ], SmartTranslateDirective); return SmartTranslateDirective; }(angular_l10n__WEBPACK_IMPORTED_MODULE_0__["TranslateDirective"])); /***/ }), /***/ "./src/app/directives/svgs/component-enabled.directive.ts": /*!****************************************************************!*\ !*** ./src/app/directives/svgs/component-enabled.directive.ts ***! \****************************************************************/ /*! exports provided: ComponentEnabledDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentEnabledDirective", function() { return ComponentEnabledDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var ComponentEnabledDirective = /** @class */ (function () { function ComponentEnabledDirective(_templateRef, _viewContainer, _configService) { this._templateRef = _templateRef; this._viewContainer = _viewContainer; this._configService = _configService; } Object.defineProperty(ComponentEnabledDirective.prototype, "ifComponentEnabled", { set: function (componentPaths) { var _this = this; if (!Array.isArray(componentPaths)) { componentPaths = [componentPaths]; } if (componentPaths.some(function (p) { return _this.isComponentEnabled(p); })) { this._viewContainer.createEmbeddedView(this._templateRef); } else { this._viewContainer.clear(); } }, enumerable: true, configurable: true }); ComponentEnabledDirective.prototype.isComponentEnabled = function (componentPath) { var invertResult = false; if (componentPath.length > 0 && componentPath[0] == '!') { invertResult = true; componentPath = componentPath.substring(1); } var pathElements = componentPath.split('.'); var craneConfig = this._configService.craneConfig; var result = this.inspectConfigNode(craneConfig.deviceConfigs, pathElements) || this.inspectConfigNode(craneConfig.dynamicPageConfigs, pathElements); if (invertResult) return !result; return result; }; ComponentEnabledDirective.prototype.inspectConfigNode = function (configNode, pathElements) { if (configNode != null) { var currentConfigNode = configNode; var _loop_1 = function (pathElement) { var path = this_1.resolveComponentPath(pathElement); var componentId = path[0]; var containerId = path[1]; if (currentConfigNode != null) { var component = undefined; if (containerId != null && containerId.length > 0 && currentConfigNode.hasOwnProperty(containerId)) { var container = currentConfigNode[containerId]; if (container != null && container.length > 0) { component = container.find(function (e) { return e.enabled && (componentId === '*' || e['id'] === componentId); }); } } else if (componentId != null && componentId.length > 0 && currentConfigNode.hasOwnProperty(componentId)) { component = currentConfigNode[componentId]; } if (component != null && component.enabled) { currentConfigNode = component; } else { return { value: false }; } } }; var this_1 = this; for (var _i = 0, pathElements_1 = pathElements; _i < pathElements_1.length; _i++) { var pathElement = pathElements_1[_i]; var state_1 = _loop_1(pathElement); if (typeof state_1 === "object") return state_1.value; } return currentConfigNode != null && currentConfigNode['enabled'] === true; } return false; }; ComponentEnabledDirective.prototype.resolveComponentPath = function (pathElement) { if (pathElement != null) { // check if pathElement conforms 'containerId[componentId]' format var componentIdIndex = pathElement.indexOf('['); if (componentIdIndex >= 0) { var componentId = pathElement.substring(componentIdIndex + 1).replace(']', ''); var containerId = pathElement.substring(0, componentIdIndex); return [componentId, containerId]; } } return [pathElement, undefined]; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], ComponentEnabledDirective.prototype, "ifComponentEnabled", null); ComponentEnabledDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[ifComponentEnabled]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], app_services_config_service__WEBPACK_IMPORTED_MODULE_1__["ConfigService"]]) ], ComponentEnabledDirective); return ComponentEnabledDirective; }()); /***/ }), /***/ "./src/app/directives/svgs/config-inspector.directive.ts": /*!***************************************************************!*\ !*** ./src/app/directives/svgs/config-inspector.directive.ts ***! \***************************************************************/ /*! exports provided: ConfigInspectorDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigInspectorDirective", function() { return ConfigInspectorDirective; }); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ConfigInspectorDirective = /** @class */ (function () { function ConfigInspectorDirective(_hostElement, _renderer, _configService) { this._hostElement = _hostElement; this._renderer = _renderer; this._configService = _configService; } ConfigInspectorDirective.prototype.findComponentConfig = function (cfgNode) { // the config-node-input string looks like: // e.g.: "settings.components[e-house].components[air-conditioning-unit2]" var nodeElements = cfgNode.split('.'); var configNode = this._configService.craneConfig; nodeElements.forEach(function (node) { var componentId = ''; // check if note contains component id like 'node[componentId]' var componentIdIndex = node.indexOf('['); if (componentIdIndex > 0) { componentId = node.substring(componentIdIndex + 1).replace(']', ''); node = node.substring(0, componentIdIndex); } if (configNode && configNode.hasOwnProperty(node)) { configNode = configNode[node]; if (componentId.length > 0) { configNode = configNode.filter(function (e) { return e.id === componentId; })[0]; } } else { configNode = null; } }); return configNode; }; ConfigInspectorDirective.prototype.ngOnInit = function () { // exit if no config-node is applied if (!this.configNode) { return; } // find the component (defined in configNode) in the craneConfig object var configItem = this.findComponentConfig(this.configNode); if (!configItem) { return; } // if component is ENABLED add class defined in "enabledClass"-property if (this.enabledClass && configItem.enabled) { this._renderer.addClass(this._hostElement.nativeElement, this.enabledClass); } // if component is DISABLED add class defined in "disabledClass"-property if (this.disabledClass && !configItem.enabled) { this._renderer.addClass(this._hostElement.nativeElement, this.disabledClass); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], ConfigInspectorDirective.prototype, "enabledClass", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), __metadata("design:type", String) ], ConfigInspectorDirective.prototype, "disabledClass", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])('config-inspector'), __metadata("design:type", String) ], ConfigInspectorDirective.prototype, "configNode", void 0); ConfigInspectorDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"])({ selector: '[config-inspector]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], app_services_config_service__WEBPACK_IMPORTED_MODULE_0__["ConfigService"]]) ], ConfigInspectorDirective); return ConfigInspectorDirective; }()); /***/ }), /***/ "./src/app/directives/svgs/svg-clickable.directive.ts": /*!************************************************************!*\ !*** ./src/app/directives/svgs/svg-clickable.directive.ts ***! \************************************************************/ /*! exports provided: SvgClickableDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgClickableDirective", function() { return SvgClickableDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var SvgClickableDirective = /** @class */ (function () { function SvgClickableDirective(_renderer, hostElement) { this._renderer = _renderer; this.hostElement = hostElement; this._cssClassHovered = 'hovered'; this._cssClassPressed = 'pressed'; this._cssClassClickable = 'clickable'; } SvgClickableDirective.prototype.ngOnInit = function () { this._renderer.addClass(this.hostElement.nativeElement, this._cssClassClickable); }; SvgClickableDirective.prototype.onMouseEnter = function (event) { this.hovered = true; }; SvgClickableDirective.prototype.onMouseLeave = function (event) { this.hovered = false; this.pressed = false; }; SvgClickableDirective.prototype.onMouseDown = function (event) { this.pressed = true; }; SvgClickableDirective.prototype.onMouseUp = function (event) { this.pressed = false; }; Object.defineProperty(SvgClickableDirective.prototype, "pressed", { set: function (value) { if (value) { this._renderer.addClass(this.hostElement.nativeElement, this._cssClassPressed); } else { this._renderer.removeClass(this.hostElement.nativeElement, this._cssClassPressed); } }, enumerable: true, configurable: true }); Object.defineProperty(SvgClickableDirective.prototype, "hovered", { set: function (value) { if (value) { this._renderer.addClass(this.hostElement.nativeElement, this._cssClassHovered); } else { this._renderer.removeClass(this.hostElement.nativeElement, this._cssClassHovered); } }, enumerable: true, configurable: true }); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseenter', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgClickableDirective.prototype, "onMouseEnter", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgClickableDirective.prototype, "onMouseLeave", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mousedown', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgClickableDirective.prototype, "onMouseDown", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseup', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgClickableDirective.prototype, "onMouseUp", null); SvgClickableDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[svg-clickable]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], SvgClickableDirective); return SvgClickableDirective; }()); /***/ }), /***/ "./src/app/directives/svgs/svg-mirror-flip.directive.ts": /*!**************************************************************!*\ !*** ./src/app/directives/svgs/svg-mirror-flip.directive.ts ***! \**************************************************************/ /*! exports provided: SvgMirrorFlipDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgMirrorFlipDirective", function() { return SvgMirrorFlipDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var SvgMirrorFlipDirective = /** @class */ (function () { function SvgMirrorFlipDirective(_orientationService, _renderer, _hostElement) { this._orientationService = _orientationService; this._renderer = _renderer; this._hostElement = _hostElement; this._flipHorizontal = undefined; this._flipVertical = undefined; this._moveOffsetX = 0; this._moveOffsetY = 0; this._centerY = 0; } Object.defineProperty(SvgMirrorFlipDirective.prototype, "flipHorizontal", { set: function (value) { this._flipHorizontal = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorFlipDirective.prototype, "flipVertical", { set: function (value) { this._flipVertical = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorFlipDirective.prototype, "moveOffsetX", { set: function (value) { this._moveOffsetX = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorFlipDirective.prototype, "moveOffsetY", { set: function (value) { this._moveOffsetY = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorFlipDirective.prototype, "centerY", { set: function (value) { this._centerY = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); SvgMirrorFlipDirective.prototype.ngOnInit = function () { var _this = this; this.calculateTransformation(); this._orientationChangedSubscription = this._orientationService.orientationChangedSubject() .subscribe(function () { return _this.calculateTransformation(); }); }; SvgMirrorFlipDirective.prototype.ngOnDestroy = function () { if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; SvgMirrorFlipDirective.prototype.calculateTransformation = function () { var htmlElem = this._hostElement.nativeElement; var flipVertical = this._flipVertical != null ? this._flipVertical : !this._orientationService.isTrolleyForwardTop; var flipHorizontal = this._flipHorizontal != null ? this._flipHorizontal : !this._orientationService.isGantryForwardRight; if (flipHorizontal || flipVertical) { var scaleY = flipVertical ? -1 : 1; var scaleX = flipHorizontal ? -1 : 1; this.applyMirrorTransformation(htmlElem, scaleX, scaleY); } else { this.removeMirrorTransformation(htmlElem); } }; SvgMirrorFlipDirective.prototype.applyMirrorTransformation = function (htmlElem, scaleX, scaleY) { var moveOffsetX = this._moveOffsetX; var moveOffsetY = this._moveOffsetY; var centerY = this._centerY; this._renderer.setAttribute(htmlElem, 'transform', "scale(" + (scaleX != null ? scaleX : 0) + ", " + (scaleY != null ? scaleY : 0) + ") translate(" + (moveOffsetX != null ? moveOffsetX : 0) + ", " + (moveOffsetY != null ? moveOffsetY : 0) + ")"); var transformOrigin = centerY !== 0 ? "50% " + centerY : "50%"; this._renderer.setAttribute(htmlElem, 'transform-origin', transformOrigin); }; SvgMirrorFlipDirective.prototype.removeMirrorTransformation = function (htmlElem) { this._renderer.removeAttribute(htmlElem, 'transform'); this._renderer.removeAttribute(htmlElem, 'transform-origin'); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], SvgMirrorFlipDirective.prototype, "flipHorizontal", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], SvgMirrorFlipDirective.prototype, "flipVertical", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], SvgMirrorFlipDirective.prototype, "moveOffsetX", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], SvgMirrorFlipDirective.prototype, "moveOffsetY", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], SvgMirrorFlipDirective.prototype, "centerY", null); SvgMirrorFlipDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[svg-mirror-flip]' }), __metadata("design:paramtypes", [app_services_orientation_service__WEBPACK_IMPORTED_MODULE_1__["OrientationService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], SvgMirrorFlipDirective); return SvgMirrorFlipDirective; }()); /***/ }), /***/ "./src/app/directives/svgs/svg-mirror-move.directive.ts": /*!**************************************************************!*\ !*** ./src/app/directives/svgs/svg-mirror-move.directive.ts ***! \**************************************************************/ /*! exports provided: SvgMirrorMoveDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgMirrorMoveDirective", function() { return SvgMirrorMoveDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_orientation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/orientation.service */ "./src/app/services/orientation.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var SvgMirrorMoveDirective = /** @class */ (function () { function SvgMirrorMoveDirective(_orientationService, _renderer, _hostElement) { this._orientationService = _orientationService; this._renderer = _renderer; this._hostElement = _hostElement; // detail view metrics this._svgWidth = 1280; this._svgHeight = 640; // dashboard-card metrics this._svgWidthCompact = 522; this._svgHeightCompact = 200; this._flipHorizontal = undefined; this._flipVertical = undefined; this._moveOffsetX = 0; this._moveOffsetY = 0; this._flipVertical = !this._orientationService.isTrolleyForwardTop; this._flipHorizontal = !this._orientationService.isGantryForwardRight; } Object.defineProperty(SvgMirrorMoveDirective.prototype, "flipHorizontal", { set: function (value) { this._flipHorizontal = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorMoveDirective.prototype, "flipVertical", { set: function (value) { this._flipVertical = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorMoveDirective.prototype, "cardMirror", { set: function (value) { this._cardMirror = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorMoveDirective.prototype, "centerY", { set: function (value) { this._centerY = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorMoveDirective.prototype, "moveOffsetX", { set: function (value) { this._moveOffsetX = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); Object.defineProperty(SvgMirrorMoveDirective.prototype, "moveOffsetY", { set: function (value) { this._moveOffsetY = value; this.calculateTransformation(); }, enumerable: true, configurable: true }); SvgMirrorMoveDirective.prototype.ngOnInit = function () { var _this = this; this.calculateTransformation(); this._orientationChangedSubscription = this._orientationService.orientationChangedSubject() .subscribe(function () { return _this.calculateTransformation(); }); }; SvgMirrorMoveDirective.prototype.ngOnDestroy = function () { if (this._orientationChangedSubscription != null) { this._orientationChangedSubscription.unsubscribe(); } }; SvgMirrorMoveDirective.prototype.calculateTransformation = function () { var htmlElem = this._hostElement.nativeElement; var clientRect = htmlElem.getBBox(); var flipVertical = this._flipVertical != null ? this._flipVertical : !this._orientationService.isTrolleyForwardTop; var flipHorizontal = this._flipHorizontal != null ? this._flipHorizontal : !this._orientationService.isGantryForwardRight; if (flipHorizontal || flipVertical) { var moveX = flipHorizontal ? this.offsetX(clientRect, flipHorizontal) : 0; var moveY = flipVertical ? this.offsetY(clientRect, flipVertical) : 0; this.applyMirrorTransformation(htmlElem, moveX, moveY); } else { this.removeMirrorTransformation(htmlElem); } }; SvgMirrorMoveDirective.prototype.offsetX = function (rect, flipHorizontal) { if (!flipHorizontal) { return 0; } var moveOffsetX = this._moveOffsetX; if (moveOffsetX !== 0) { return moveOffsetX; } var svgWidth = this._cardMirror ? this._svgWidthCompact : this._svgWidth; var centerX = rect.x + rect.width / 2; return (svgWidth / 2 - centerX) * 2; }; SvgMirrorMoveDirective.prototype.offsetY = function (rect, flipVertical) { if (!flipVertical) { return 0; } var moveOffsetY = this._moveOffsetY; if (moveOffsetY !== 0) { return moveOffsetY; } var svgHeight = this._cardMirror ? this._svgHeightCompact : this._svgHeight; var svgCenter = this._centerY ? this._centerY : svgHeight / 2; var centerY = rect.y + rect.height / 2; return (svgCenter - centerY) * 2; }; SvgMirrorMoveDirective.prototype.applyMirrorTransformation = function (htmlElem, moveX, moveY) { this._renderer.setAttribute(htmlElem, 'transform', "translate(" + (moveX != null ? moveX : 0) + ", " + (moveY != null ? moveY : 0) + ")"); }; SvgMirrorMoveDirective.prototype.removeMirrorTransformation = function (htmlElem) { this._renderer.removeAttribute(htmlElem, 'transform'); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], SvgMirrorMoveDirective.prototype, "flipHorizontal", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], SvgMirrorMoveDirective.prototype, "flipVertical", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean), __metadata("design:paramtypes", [Boolean]) ], SvgMirrorMoveDirective.prototype, "cardMirror", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], SvgMirrorMoveDirective.prototype, "centerY", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], SvgMirrorMoveDirective.prototype, "moveOffsetX", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], SvgMirrorMoveDirective.prototype, "moveOffsetY", null); SvgMirrorMoveDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[svg-mirror-move]' }), __metadata("design:paramtypes", [app_services_orientation_service__WEBPACK_IMPORTED_MODULE_1__["OrientationService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], SvgMirrorMoveDirective); return SvgMirrorMoveDirective; }()); /***/ }), /***/ "./src/app/directives/svgs/svg-quickview.directive.ts": /*!************************************************************!*\ !*** ./src/app/directives/svgs/svg-quickview.directive.ts ***! \************************************************************/ /*! exports provided: SvgQuickviewDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgQuickviewDirective", function() { return SvgQuickviewDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/view.service */ "./src/app/services/view.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var SvgQuickviewDirective = /** @class */ (function () { function SvgQuickviewDirective(_renderer, hostElement, _viewService) { this._renderer = _renderer; this.hostElement = hostElement; this._viewService = _viewService; this._cssClassHovered = 'hovered'; this._cssClassPressed = 'pressed'; this._cssClassFocused = 'focused'; this._cssClassClickable = 'clickable'; this._elementId = this.hostElement.nativeElement.id; } Object.defineProperty(SvgQuickviewDirective.prototype, "components", { set: function (value) { this._components = value; if (this.isClickable(this._elementId)) { this._renderer.addClass(this.hostElement.nativeElement, this._cssClassClickable); } }, enumerable: true, configurable: true }); SvgQuickviewDirective.prototype.onMouseEnter = function (event) { this.hovered = true; }; SvgQuickviewDirective.prototype.onMouseLeave = function (event) { this.hovered = false; this.pressed = false; }; SvgQuickviewDirective.prototype.onMouseDown = function (event) { this.pressed = true; }; SvgQuickviewDirective.prototype.onMouseUp = function (event) { this.pressed = false; }; SvgQuickviewDirective.prototype.onClick = function ($event) { this.openQuickwatch($event); }; SvgQuickviewDirective.prototype.ngAfterViewInit = function () { this._elementId = this.hostElement.nativeElement.id; if (this.isClickable(this._elementId)) { this._renderer.addClass(this.hostElement.nativeElement, this._cssClassClickable); } }; SvgQuickviewDirective.prototype.ngOnInit = function () { var _this = this; this._viewServiceSubscription = this._viewService.quickviewTriggerElement.subscribe(function (focusedElementId) { _this.focused = _this._elementId === focusedElementId; }); }; SvgQuickviewDirective.prototype.ngOnDestroy = function () { if (this._viewServiceSubscription) { this._viewServiceSubscription.unsubscribe(); } }; Object.defineProperty(SvgQuickviewDirective.prototype, "pressed", { set: function (value) { if (value) { this._renderer.addClass(this.hostElement.nativeElement, this._cssClassPressed); } else { this._renderer.removeClass(this.hostElement.nativeElement, this._cssClassPressed); } }, enumerable: true, configurable: true }); Object.defineProperty(SvgQuickviewDirective.prototype, "hovered", { set: function (value) { if (value) { this._renderer.addClass(this.hostElement.nativeElement, this._cssClassHovered); } else { this._renderer.removeClass(this.hostElement.nativeElement, this._cssClassHovered); } }, enumerable: true, configurable: true }); Object.defineProperty(SvgQuickviewDirective.prototype, "focused", { set: function (value) { if (value) { this._renderer.addClass(this.hostElement.nativeElement, this._cssClassFocused); } else { this._renderer.removeClass(this.hostElement.nativeElement, this._cssClassFocused); } }, enumerable: true, configurable: true }); SvgQuickviewDirective.prototype.openQuickwatch = function (e) { var _this = this; if (!this.isClickable(this._elementId)) { return; } var config = this._components.find(function (device) { return device.id === _this._elementId; }); if (!config || !config.enabled || !config.quickviewDatapoints) { return; } var qvInfo = { title: config.title, items: config.quickviewDatapoints.filter(function (dp) { return dp.enabled; }) }; this._viewService.showQuickview(config.title, qvInfo, this._elementId); }; SvgQuickviewDirective.prototype.isClickable = function (id) { var deviceConfig = this._components && this._components.find(function (e) { return e.id === id; }); if (!deviceConfig || !deviceConfig.enabled || !deviceConfig.quickviewDatapoints) { return false; } return deviceConfig.quickviewDatapoints.some(function (e) { return e.enabled; }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])('svg-quickview'), __metadata("design:type", Array), __metadata("design:paramtypes", [Array]) ], SvgQuickviewDirective.prototype, "components", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseenter', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgQuickviewDirective.prototype, "onMouseEnter", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgQuickviewDirective.prototype, "onMouseLeave", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mousedown', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgQuickviewDirective.prototype, "onMouseDown", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseup', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgQuickviewDirective.prototype, "onMouseUp", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('click', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [MouseEvent]), __metadata("design:returntype", void 0) ], SvgQuickviewDirective.prototype, "onClick", null); SvgQuickviewDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[svg-quickview]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _services_view_service__WEBPACK_IMPORTED_MODULE_1__["ViewService"]]) ], SvgQuickviewDirective); return SvgQuickviewDirective; }()); /***/ }), /***/ "./src/app/directives/theming/card-state.directive.ts": /*!************************************************************!*\ !*** ./src/app/directives/theming/card-state.directive.ts ***! \************************************************************/ /*! exports provided: CardStateDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardStateDirective", function() { return CardStateDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _models_model_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/model-state */ "./src/app/models/model-state.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var CardStateDirective = /** @class */ (function () { function CardStateDirective(_renderer, hostElement, _colorService) { this._renderer = _renderer; this.hostElement = hostElement; this._colorService = _colorService; } Object.defineProperty(CardStateDirective.prototype, "cardState", { set: function (state) { this._cardState = state; this.updateStyle(); }, enumerable: true, configurable: true }); Object.defineProperty(CardStateDirective.prototype, "initState", { set: function (state) { this._modelState = state; this.updateStyle(); }, enumerable: true, configurable: true }); CardStateDirective.prototype.ngOnInit = function () { var _this = this; this._colorServiceSubscription = this._colorService.colorTheme.subscribe(function () { _this.updatePaletteColors(); _this.updateStyle(); }); }; CardStateDirective.prototype.ngOnDestroy = function () { if (this._colorServiceSubscription) { this._colorServiceSubscription.unsubscribe(); } }; CardStateDirective.prototype.updateStyle = function () { if (!this._colors) { return; } var color = this._colors[this._modelState === _models_model_state__WEBPACK_IMPORTED_MODULE_2__["ModelStates"].InitializationFailed ? types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this._cardState]; if (color !== this._color) { this._renderer.setStyle(this.hostElement.nativeElement, "border-top", "solid 6px " + color); this._color = color; } }; CardStateDirective.prototype.updatePaletteColors = function () { this._colors = {}; this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle] = this._colorService.getColor('state-active'); // font-color-secondary this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok] = this._colorService.getColor('state-active'); this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning] = this._colorService.getColor('state-warning'); this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error] = this._colorService.getColor('state-alert'); this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Speedlimit] = this._colorService.getColor('speedlimit'); this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Interlock] = this._colorService.getColor('interlock'); this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].SpeedLimitNegative] = this._colorService.getColor('speedlimit'); this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].SpeedLimitPositive] = this._colorService.getColor('speedlimit'); this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].InterlockNegative] = this._colorService.getColor('interlock'); this._colors[types_config__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].InterlockPositive] = this._colorService.getColor('interlock'); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], CardStateDirective.prototype, "cardState", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], CardStateDirective.prototype, "initState", null); CardStateDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[cardState]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _services_color_service__WEBPACK_IMPORTED_MODULE_1__["ColorService"]]) ], CardStateDirective); return CardStateDirective; }()); /***/ }), /***/ "./src/app/directives/theming/color-theme.directive.ts": /*!*************************************************************!*\ !*** ./src/app/directives/theming/color-theme.directive.ts ***! \*************************************************************/ /*! exports provided: ColorThemeDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorThemeDirective", function() { return ColorThemeDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_color_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../services/color.service */ "./src/app/services/color.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var ColorThemeDirective = /** @class */ (function () { function ColorThemeDirective(_renderer, hostElement, _colorService) { this._renderer = _renderer; this.hostElement = hostElement; this._colorService = _colorService; this._elementId = this.hostElement.nativeElement.id; } ColorThemeDirective.prototype.ngOnInit = function () { var _this = this; this._colorServiceSubscription = this._colorService.colorTheme.subscribe(function (theme) { _this.applyTheme(theme); }); }; ColorThemeDirective.prototype.ngOnDestroy = function () { if (this._colorServiceSubscription) { this._colorServiceSubscription.unsubscribe(); } }; ColorThemeDirective.prototype.applyTheme = function (theme) { if (this._theme === theme) { return; } if (this._theme && this._theme !== '') { this._renderer.removeClass(this.hostElement.nativeElement, this._theme); } this._renderer.addClass(this.hostElement.nativeElement, theme); this._theme = theme; }; ColorThemeDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[color-theme]' }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _services_color_service__WEBPACK_IMPORTED_MODULE_1__["ColorService"]]) ], ColorThemeDirective); return ColorThemeDirective; }()); /***/ }), /***/ "./src/app/guards/about-modal.guard.ts": /*!*********************************************!*\ !*** ./src/app/guards/about-modal.guard.ts ***! \*********************************************/ /*! exports provided: AboutModalGuard */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AboutModalGuard", function() { return AboutModalGuard; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/models/fullscreen-config */ "./src/app/models/fullscreen-config.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../services/view.service */ "./src/app/services/view.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AboutModalGuard = /** @class */ (function () { function AboutModalGuard(_viewService) { this._viewService = _viewService; } AboutModalGuard.prototype.canActivate = function (route, state) { if (route != null && route.routeConfig != null && route.routeConfig.path != null && route.routeConfig.path.toLowerCase().includes('about')) { this.openAboutModal(); } return false; }; AboutModalGuard.prototype.openAboutModal = function () { var fsConfig = new app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_1__["FullscreenConfig"]('About CMS', app_models_fullscreen_config__WEBPACK_IMPORTED_MODULE_1__["FullscreenType"].AboutCMS); this._viewService.openInFullscreen(fsConfig); }; AboutModalGuard = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_2__["ViewService"]]) ], AboutModalGuard); return AboutModalGuard; }()); /***/ }), /***/ "./src/app/guards/auth.guard.ts": /*!**************************************!*\ !*** ./src/app/guards/auth.guard.ts ***! \**************************************/ /*! exports provided: AuthGuard */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthGuard", function() { return AuthGuard; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/auth.service */ "./src/app/services/auth.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AuthGuard = /** @class */ (function () { function AuthGuard(_authService, _router) { this._authService = _authService; this._router = _router; } AuthGuard.prototype.canActivate = function (route, state) { var requestedUrl = state.url; return this.checkLogin(requestedUrl); }; AuthGuard.prototype.canActivateChild = function (route, state) { return this.canActivate(route, state); }; AuthGuard.prototype.checkLogin = function (requestedUrl) { if (this._authService.isLoggedIn) { return true; } if (requestedUrl != null) { this._authService.redirectUrl = requestedUrl; } console.warn('Route-access denied. User is not logged-in. Force logout.'); this._authService.logout(); return false; }; AuthGuard = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]]) ], AuthGuard); return AuthGuard; }()); /***/ }), /***/ "./src/app/guards/dynamic-page-loader.guard.ts": /*!*****************************************************!*\ !*** ./src/app/guards/dynamic-page-loader.guard.ts ***! \*****************************************************/ /*! exports provided: DynamicPageLoaderGuard */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicPageLoaderGuard", function() { return DynamicPageLoaderGuard; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _auth_guard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./auth.guard */ "./src/app/guards/auth.guard.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DynamicPageLoaderGuard = /** @class */ (function (_super) { __extends(DynamicPageLoaderGuard, _super); function DynamicPageLoaderGuard(authService, router, _configService) { var _this = _super.call(this, authService, router) || this; _this._configService = _configService; return _this; } DynamicPageLoaderGuard.prototype.canActivate = function (route, state) { if (_super.prototype.canActivate.call(this, route, state)) { var alias = state.url; return this.checkRole(alias); } return false; }; DynamicPageLoaderGuard.prototype.canActivateChild = function (route, state) { return this.canActivate(route, state); }; DynamicPageLoaderGuard.prototype.checkRole = function (aliasPath) { if (aliasPath != null) { var aliasPathParts = aliasPath.replace(/^\//, '').split('/'); if (aliasPathParts.length >= 1 && aliasPathParts.length <= 2) { var dynamicPageConfigs = this._configService.craneConfig.dynamicPageConfigs; if (dynamicPageConfigs != null) { var dynamicPageAlias = aliasPathParts[0]; var dynamicPageConfig = dynamicPageConfigs[dynamicPageAlias]; if (dynamicPageConfig != null && dynamicPageConfig.enabled) { var currentUserRole = this._authService.getRole(); if (aliasPathParts.length == 2) { var dynamicPageTabAlias_1 = aliasPathParts[1]; var dynamicPageTabConfig = dynamicPageConfig.tabs.find(function (x) { return x.enabled && x.alias === dynamicPageTabAlias_1; }); if (dynamicPageTabConfig == undefined) { dynamicPageTabConfig = dynamicPageConfig.svgTabs.find(function (x) { return x.enabled && x.alias === dynamicPageTabAlias_1; }); } return this.checkIfRoleAuthorized(dynamicPageTabConfig, currentUserRole); } return this.checkIfRoleAuthorized(dynamicPageConfig, currentUserRole); } } } } console.warn('Route-access denied. Redirecting to home.'); this._router.navigate(["/" + _app_constants__WEBPACK_IMPORTED_MODULE_4__["HOME_PAGE_URL"]]); return false; }; DynamicPageLoaderGuard.prototype.checkIfRoleAuthorized = function (dynamicConfig, userRole) { if (dynamicConfig != null && dynamicConfig.enabled && dynamicConfig.authorizedRoles != null) { var checkedUserRole = userRole.toLowerCase(); return new RegExp("\\*|" + checkedUserRole).test(dynamicConfig.authorizedRoles.toLowerCase()); } return false; }; DynamicPageLoaderGuard = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"]]) ], DynamicPageLoaderGuard); return DynamicPageLoaderGuard; }(_auth_guard__WEBPACK_IMPORTED_MODULE_5__["AuthGuard"])); /***/ }), /***/ "./src/app/guards/user-management.guard.ts": /*!*************************************************!*\ !*** ./src/app/guards/user-management.guard.ts ***! \*************************************************/ /*! exports provided: UserManagementGuard */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserManagementGuard", function() { return UserManagementGuard; }); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UserManagementGuard = /** @class */ (function () { function UserManagementGuard(_router, _authService) { this._router = _router; this._authService = _authService; } UserManagementGuard.prototype.canActivate = function (route, state) { if (!this._authService.isReadOnlyAuthSystem && this._authService.getPermissionWithClaim(_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"].permissionManageUsersKey)) { return true; } console.warn('Route-access denied. Redirecting to home.'); this._router.navigate(["/" + _app_constants__WEBPACK_IMPORTED_MODULE_0__["HOME_PAGE_URL"]]); return false; }; UserManagementGuard.prototype.canActivateChild = function (route, state) { return this.canActivate(route, state); }; UserManagementGuard = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])(), __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"], _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]]) ], UserManagementGuard); return UserManagementGuard; }()); /***/ }), /***/ "./src/app/models/automatic-mode-half-order.viewmodel.ts": /*!***************************************************************!*\ !*** ./src/app/models/automatic-mode-half-order.viewmodel.ts ***! \***************************************************************/ /*! exports provided: AutomaticModeLoadState, AutomaticModeOrderState, AutomaticModeHalfOrderViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutomaticModeLoadState", function() { return AutomaticModeLoadState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutomaticModeOrderState", function() { return AutomaticModeOrderState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutomaticModeHalfOrderViewModel", function() { return AutomaticModeHalfOrderViewModel; }); /* harmony import */ var types_keyed_collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/keyed-collection */ "./src/types/keyed-collection.ts"); /* harmony import */ var types_project__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/project */ "./src/types/project.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _base_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var AutomaticModeLoadState; (function (AutomaticModeLoadState) { AutomaticModeLoadState[AutomaticModeLoadState["Undefined"] = 0] = "Undefined"; AutomaticModeLoadState[AutomaticModeLoadState["LoadTaken"] = 1] = "LoadTaken"; AutomaticModeLoadState[AutomaticModeLoadState["LoadPutDown"] = 2] = "LoadPutDown"; })(AutomaticModeLoadState || (AutomaticModeLoadState = {})); var AutomaticModeOrderState; (function (AutomaticModeOrderState) { AutomaticModeOrderState[AutomaticModeOrderState["NoOrder"] = 0] = "NoOrder"; AutomaticModeOrderState[AutomaticModeOrderState["Active"] = 1] = "Active"; AutomaticModeOrderState[AutomaticModeOrderState["Finished"] = 2] = "Finished"; AutomaticModeOrderState[AutomaticModeOrderState["Invalid"] = 2] = "Invalid"; AutomaticModeOrderState[AutomaticModeOrderState["Deleted"] = 2] = "Deleted"; })(AutomaticModeOrderState || (AutomaticModeOrderState = {})); var AutomaticModeHalfOrderViewModel = /** @class */ (function (_super) { __extends(AutomaticModeHalfOrderViewModel, _super); function AutomaticModeHalfOrderViewModel(craneConfig, _httpClient) { var _this = _super.call(this, craneConfig.deviceConfigs[_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasAutomaticModeHalfOrder].components.find(function (c) { return c.id === 'overview'; })) || this; _this.craneConfig = craneConfig; _this._httpClient = _httpClient; _this._unknownStateText = _app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder; _this._dataPoints = new types_keyed_collection__WEBPACK_IMPORTED_MODULE_0__["KeyedCollection"](); return _this; } AutomaticModeHalfOrderViewModel.prototype.updateComponentConfig = function () { this.initMappings(); this.initNaturalKeys(); }; AutomaticModeHalfOrderViewModel.prototype.initMappings = function () { var components = this.components; if (components != null) { var orderProgressComponent = components.find(function (x) { return x.enabled && x.id === 'order-progress'; }); if (orderProgressComponent != null && orderProgressComponent.stateMappings != null) { var progressStateMapping = this.resolveStateMappingText(orderProgressComponent.stateMappings, 'progress-state-mapping'); this.progressStateMapping = progressStateMapping != null ? Array.from(progressStateMapping.values()) : []; this._orderStateMapping = this.resolveStateMappingText(orderProgressComponent.stateMappings, 'order-state-mapping'); } var orderDetailsComponent = components.find(function (x) { return x.enabled && x.id === 'order-details'; }); if (orderDetailsComponent != null && orderDetailsComponent.components != null) { var orderDetailsContainerCornerCastingsComponent = orderDetailsComponent.components.find(function (x) { return x.enabled && x.id === 'order-details-container-corner-castings'; }); if (orderDetailsContainerCornerCastingsComponent != null && orderDetailsContainerCornerCastingsComponent.stateMappings != null) { this._hasWtpCornerCastingsMapping = this.resolveStateMappingText(orderDetailsContainerCornerCastingsComponent.stateMappings, 'order-details-container-has-corner-castings-mapping'); } } var orderLoadStatusComponent = components.find(function (x) { return x.enabled && x.id === 'order-load-status'; }); if (orderLoadStatusComponent != null && orderLoadStatusComponent.stateMappings != null) { this._loadStateMapping = this.resolveStateMappingText(orderLoadStatusComponent.stateMappings, 'load-state-mapping'); } var orderSequenceComponent = components.find(function (x) { return x.enabled && x.id === 'order-sequence'; }); if (orderSequenceComponent != null && orderSequenceComponent.stateMappings != null) { this._orderSequenceStepMapping = this.resolveStateMappingText(orderSequenceComponent.stateMappings, 'order-sequence-step-mapping'); } var craneStateDetailsComponent = components.find(function (x) { return x.enabled && x.id === 'crane-state-details'; }); if (craneStateDetailsComponent != null && craneStateDetailsComponent.components != null) { var craneStateDetailsStatusComponent = craneStateDetailsComponent.components.find(function (x) { return x.enabled && x.id === 'crane-state-details-status'; }); if (craneStateDetailsStatusComponent != null && craneStateDetailsStatusComponent.stateMappings != null) { this._craneStateDetailsStatusHoistMapping = this.resolveStateMappingText(craneStateDetailsStatusComponent.stateMappings, 'crane-state-details-status-mapping'); } var craneStateDetailsReleasesComponent = craneStateDetailsComponent.components.find(function (x) { return x.enabled && x.id === 'crane-state-details-releases'; }); if (craneStateDetailsReleasesComponent != null && craneStateDetailsReleasesComponent.stateMappings != null) { this._craneStateDetailsReleasesMapping = this.resolveStateMappingText(craneStateDetailsReleasesComponent.stateMappings, 'crane-state-details-releases-mapping'); } var craneStateDetailsInterlocksComponent = craneStateDetailsComponent.components.find(function (x) { return x.enabled && x.id === 'crane-state-details-interlocks'; }); if (craneStateDetailsInterlocksComponent != null && craneStateDetailsInterlocksComponent.stateMappings != null) { this._craneStateDetailsInterlocksMapping = this.resolveStateMappingText(craneStateDetailsInterlocksComponent.stateMappings, 'crane-state-details-interlocks-mapping'); } } } }; AutomaticModeHalfOrderViewModel.prototype.initNaturalKeys = function () { var naturalKeys = new Set(); var components = this.components; if (components != null) { var orderProgress = components.find(function (x) { return x.enabled && x.id === 'order-progress'; }); var orderProgressNaturalKeys = this.initOrderProgress(orderProgress); if (orderProgressNaturalKeys != null) { orderProgressNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var orderDetails = components.find(function (x) { return x.enabled && x.id === 'order-details'; }); var orderDetailsNaturalKeys = this.initOrderDetails(orderDetails); if (orderDetailsNaturalKeys != null) { orderDetailsNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var orderLoadStatus = components.find(function (x) { return x.enabled && x.id === 'order-load-status'; }); var orderLoadStatusNaturalKeys = this.initOrderLoadStatus(orderLoadStatus); if (orderLoadStatusNaturalKeys != null) { orderLoadStatusNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var orderStepSequence = components.find(function (x) { return x.enabled && x.id === 'order-sequence'; }); var orderStepSequenceNaturalKeys = this.initOrderStepSequence(orderStepSequence); if (orderStepSequenceNaturalKeys != null) { orderStepSequenceNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var craneStateDetails = components.find(function (x) { return x.enabled && x.id === 'crane-state-details'; }); var craneStateDetailsNaturalKeys = this.initCraneStateDetails(craneStateDetails); if (craneStateDetailsNaturalKeys != null) { craneStateDetailsNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var orderCancelButton = components.find(function (x) { return x.enabled && x.id === 'order-cancel-button'; }); this.initCancelActiveOrderButton(orderCancelButton); this.initOrderPosition(components); } this.naturalKeys = Array.from(naturalKeys); }; AutomaticModeHalfOrderViewModel.prototype.initOrderProgress = function (orderProgressRoot) { var orderProgressNaturalKeys = this.resolveNaturalKeys(orderProgressRoot); return orderProgressNaturalKeys != null ? Array.from(orderProgressNaturalKeys) : []; }; AutomaticModeHalfOrderViewModel.prototype.initOrderDetails = function (orderDetailsRoot) { var naturalKeys = []; var orderDetails = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], orderId: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, orderState: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, containerNumber: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, loadType: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, wtpCornerCastings: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] } }; if (orderDetailsRoot != null && orderDetailsRoot.components != null) { orderDetails.label = orderDetailsRoot.title; for (var _i = 0, _a = orderDetailsRoot.components; _i < _a.length; _i++) { var orderDetailsComponent = _a[_i]; if (orderDetailsComponent.enabled && orderDetailsComponent.id != null && orderDetailsComponent.requiredDatapoints != null) { var requiredDatapoint = orderDetailsComponent.requiredDatapoints[0]; if (requiredDatapoint != null) { switch (orderDetailsComponent.id) { case 'order-details-id': { orderDetails.orderId.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsOrderId = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-details-status': { orderDetails.orderState.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsOrderStatus = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-details-container-number': { orderDetails.containerNumber.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsContainerNumber = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-details-load-type': { orderDetails.loadType.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsLoadType = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-details-container-corner-castings': { orderDetails.wtpCornerCastings.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsWtpCornerCastings = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } default: break; } } } } } this.orderDetails = orderDetails; return naturalKeys; }; AutomaticModeHalfOrderViewModel.prototype.initOrderPosition = function (components) { var orderPosition = { source: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, destination: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] } }; var orderPositionSource = components.find(function (x) { return x.enabled && x.id === 'order-position-source'; }); var orderPositionSourceConfig = this.initOrderPositionConfig(orderPositionSource); if (orderPositionSourceConfig != null) { orderPosition.source = orderPositionSourceConfig; } var orderPositionDestination = components.find(function (x) { return x.enabled && x.id === 'order-position-destination'; }); var orderPositionDestinationConfig = this.initOrderPositionConfig(orderPositionDestination); if (orderPositionDestinationConfig != null) { orderPosition.destination = orderPositionDestinationConfig; } this.orderPosition = orderPosition; }; AutomaticModeHalfOrderViewModel.prototype.initOrderPositionConfig = function (orderPosition) { var config = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }; if (orderPosition != null && orderPosition.components != null) { config.label = orderPosition.title; var orderPositionCollection = new _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["DoubleDataPointCollection"](); var _loop_1 = function (orderPositionComponent) { if (orderPositionComponent.enabled && orderPositionComponent.id != null && orderPositionComponent.components != null) { var locationField = undefined; var isDoneCallback = undefined; switch (orderPositionComponent.id) { case orderPosition.id + "-area": { locationField = types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].MasterBlock, isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 1; }; break; } case orderPosition.id + "-x": { locationField = types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].X, isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 1; }; break; } case orderPosition.id + "-y": { locationField = types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].Y, isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 1; }; break; } case orderPosition.id + "-z": { locationField = types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].Z, isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 1; }; break; } case orderPosition.id + "-x-footmark": { isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 2.5; }; break; } default: break; } var actualValueComponent = orderPositionComponent.components.find(function (x) { return x.enabled && x.id === orderPositionComponent.id + "-actual-value"; }); var actualNaturalKey = actualValueComponent != null && actualValueComponent.requiredDatapoints != null ? actualValueComponent.requiredDatapoints[0].naturalKey : undefined; var setValueComponent = orderPositionComponent.components.find(function (x) { return x.enabled && x.id === orderPositionComponent.id + "-set-value"; }); var setNaturalKey = setValueComponent != null && setValueComponent.requiredDatapoints != null ? setValueComponent.requiredDatapoints[0].naturalKey : undefined; orderPositionCollection.items.push({ title: orderPositionComponent.title, subtitle: orderPositionComponent.subtitle, groupTitle: orderPosition.title, naturalKey: actualNaturalKey, secondNaturalKey: setNaturalKey, locationField: locationField, isDoneCallback: isDoneCallback }); } }; for (var _i = 0, _a = orderPosition.components; _i < _a.length; _i++) { var orderPositionComponent = _a[_i]; _loop_1(orderPositionComponent); } config.internalValue = orderPositionCollection; } return config; }; AutomaticModeHalfOrderViewModel.prototype.initOrderLoadStatus = function (orderLoadStatusRoot) { var naturalKeys = []; this.loadState = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }; if (orderLoadStatusRoot != null) { this.loadState.label = orderLoadStatusRoot.title; if (orderLoadStatusRoot.requiredDatapoints != null) { var loadStateDataPoint = orderLoadStatusRoot.requiredDatapoints[0]; if (loadStateDataPoint != null && loadStateDataPoint.naturalKey != null) { this._naturalKeyLoadStateStatus = loadStateDataPoint.naturalKey; naturalKeys.push(loadStateDataPoint.naturalKey); } } } return naturalKeys; }; AutomaticModeHalfOrderViewModel.prototype.initOrderStepSequence = function (orderSequenceRoot) { var naturalKeys = []; var orderSequenceStep = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], current: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, previous: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] } }; if (orderSequenceRoot != null) { orderSequenceStep.label = orderSequenceRoot.title; if (orderSequenceRoot.components != null) { for (var _i = 0, _a = orderSequenceRoot.components; _i < _a.length; _i++) { var orderSequenceComponent = _a[_i]; if (orderSequenceComponent.enabled && orderSequenceComponent.id != null && orderSequenceComponent.requiredDatapoints != null) { var requiredDatapoint = orderSequenceComponent.requiredDatapoints[0]; if (requiredDatapoint != null) { switch (orderSequenceComponent.id) { case 'order-sequence-step-current': { orderSequenceStep.current.label = orderSequenceComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderSequenceStepCurrent = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-sequence-step-previous': { orderSequenceStep.previous.label = orderSequenceComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderSequenceStepPrevious = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } default: break; } } } } } if (orderSequenceRoot.stateMappings != null) { var sequenceStepCollection = new _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["DataPointCollection"](); var mappingNaturalKey = this._naturalKeyOrderSequenceStepCurrent; if (mappingNaturalKey != null) { var orderSequenceStepMapping = orderSequenceRoot.stateMappings.find(function (x) { return x.enabled && x.id === 'order-sequence-step-mapping'; }); if (orderSequenceStepMapping != null && orderSequenceStepMapping.mappings != null) { for (var _b = 0, _c = orderSequenceStepMapping.mappings; _b < _c.length; _b++) { var mapping = _c[_b]; if (mapping != null && mapping.enabled && mapping.text != null && mapping.text.length > 0) { sequenceStepCollection.items.push({ title: mapping.text, naturalKey: mappingNaturalKey, condition: mapping.condition, viewTemplate: _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["CustomItemTemplate"].StateMapping }); } } } } orderSequenceStep.quickviewCollection = sequenceStepCollection; } } this.orderSequenceStep = orderSequenceStep; return naturalKeys; }; AutomaticModeHalfOrderViewModel.prototype.initCraneStateDetails = function (craneStateDetailsRoot) { var naturalKeys = []; var craneStateDetails = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], status: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, releases: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, interlocks: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] } }; if (craneStateDetailsRoot != null) { craneStateDetails.label = craneStateDetailsRoot.title; if (craneStateDetailsRoot.components != null) { for (var _i = 0, _a = craneStateDetailsRoot.components; _i < _a.length; _i++) { var craneStateDetailsComponent = _a[_i]; if (craneStateDetailsComponent.enabled && craneStateDetailsComponent.id != null) { var quickViewDataPoints = this.resolveQuickViewDataPoints(craneStateDetailsComponent); var naturalKeyCraneDetail = quickViewDataPoints != null ? quickViewDataPoints.items.map(function (x) { return x.naturalKey; }) : []; naturalKeys.push.apply(naturalKeys, naturalKeyCraneDetail); switch (craneStateDetailsComponent.id) { case 'crane-state-details-status': { craneStateDetails.status.label = craneStateDetailsComponent.title; craneStateDetails.status.quickviewCollection = quickViewDataPoints; this._naturalKeyCraneDetailStatus = naturalKeyCraneDetail; break; } case 'crane-state-details-releases': { craneStateDetails.releases.label = craneStateDetailsComponent.title; craneStateDetails.releases.quickviewCollection = quickViewDataPoints; this._naturalKeyCraneDetailReleases = naturalKeyCraneDetail; break; } case 'crane-state-details-interlocks': { craneStateDetails.interlocks.label = craneStateDetailsComponent.title; craneStateDetails.interlocks.quickviewCollection = quickViewDataPoints; this._naturalKeyCraneDetailInterlocks = naturalKeyCraneDetail; break; } default: break; } } } } } this.craneStateDetails = craneStateDetails; return naturalKeys; }; AutomaticModeHalfOrderViewModel.prototype.resolveQuickViewDataPoints = function (component) { var quickViewDataPoints = new _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["DataPointCollection"](); if (component != null && component.quickviewDatapoints != null) { for (var _i = 0, _a = component.quickviewDatapoints; _i < _a.length; _i++) { var dataPoint = _a[_i]; if (dataPoint != null && dataPoint.enabled) { quickViewDataPoints.items.push({ title: dataPoint.title, groupTitle: dataPoint.groupTitle, naturalKey: dataPoint.naturalKey, viewTemplate: dataPoint.viewTemplate }); } } } return quickViewDataPoints; }; AutomaticModeHalfOrderViewModel.prototype.initCancelActiveOrderButton = function (orderCancelButtonRoot) { this.cancelActiveOrderButton = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }; if (orderCancelButtonRoot != null) { this.cancelActiveOrderButton.label = orderCancelButtonRoot.title; } }; AutomaticModeHalfOrderViewModel.prototype.updateFromDatapoints = function (dataPoints) { if (dataPoints != null && !dataPoints.isEmpty) { for (var _i = 0, _a = dataPoints.Entries(); _i < _a.length; _i++) { var _b = _a[_i], naturalKey = _b[0], dataPoint = _b[1]; this._dataPoints.AddOrUpdate(naturalKey, dataPoint); } this.updateViewModel(); } }; AutomaticModeHalfOrderViewModel.prototype.updateViewModel = function () { this.updateOrderDetails(); this.updateOrderStepSequences(); this.updateLoadState(); this.updateProgressStep(); this.updateCraneDetailReleasesState(); this.updateCraneDetailStatusState(); this.updateCraneDetailInterlocksState(); this.updateCancelActiveOrderButtonState(); }; AutomaticModeHalfOrderViewModel.prototype.cancelActiveOrder = function (orderId) { var _this = this; if (!this.cancelActiveOrderButton.isOrderCancellationRequested) { this.cancelActiveOrderButton.isOrderCancellationRequested = true; var resolvedOrderId = orderId != null ? orderId : '0'; var requestObservable = this._httpClient.delete("OrderWithId/" + resolvedOrderId); requestObservable.subscribe(function (_) { return _this.cancelActiveOrderButton.isOrderCancellationRequested = false; }, function (error) { _this.cancelActiveOrderButton.isOrderCancellationRequested = false; console.log(error); }); } }; AutomaticModeHalfOrderViewModel.prototype.updateOrderDetails = function () { var orderIdDp = this._dataPoints.Get(this._naturalKeyOrderDetailsOrderId); if (orderIdDp != null) { this.orderDetails.orderId.internalValue = orderIdDp.data; this.orderDetails.orderId.displayValue = orderIdDp.data; } var orderStateDp = this._dataPoints.Get(this._naturalKeyOrderDetailsOrderStatus); if (orderStateDp != null) { this.orderDetails.orderState.internalValue = orderStateDp.data; var orderStateMapping = this._orderStateMapping.get(orderStateDp.data); this.orderDetails.orderState.displayValue = orderStateMapping != null ? orderStateMapping : this._unknownStateText; } var containerNumberStringDp = this._dataPoints.Get(this._naturalKeyOrderDetailsContainerNumber); if (containerNumberStringDp != null && containerNumberStringDp.data != null) { this.orderDetails.containerNumber.internalValue = containerNumberStringDp.data; var containerNumberStringParts = containerNumberStringDp.data.split(';', 1); if (containerNumberStringParts.length >= 1) { this.orderDetails.containerNumber.displayValue = containerNumberStringParts[0]; } } var loadTypeDp = this._dataPoints.Get(this._naturalKeyOrderDetailsLoadType); if (loadTypeDp != null) { this.orderDetails.loadType.internalValue = loadTypeDp.data; this.orderDetails.loadType.displayValue = loadTypeDp.data; } var cornerCastingsDp = this._dataPoints.Get(this._naturalKeyOrderDetailsWtpCornerCastings); var hasWtpCornerCastingsMapping = this._hasWtpCornerCastingsMapping; if (cornerCastingsDp != null && hasWtpCornerCastingsMapping != null) { this.orderDetails.wtpCornerCastings.internalValue = cornerCastingsDp.data; this.orderDetails.wtpCornerCastings.displayValue = hasWtpCornerCastingsMapping.get(cornerCastingsDp.data) || this._unknownStateText; } else { this.orderDetails.wtpCornerCastings.internalValue = undefined; this.orderDetails.wtpCornerCastings.displayValue = this._unknownStateText; } }; AutomaticModeHalfOrderViewModel.prototype.updateOrderStepSequences = function () { var orderStepMapping = this._orderSequenceStepMapping; if (orderStepMapping != null) { var orderStepNrDp = this._dataPoints.Get(this._naturalKeyOrderSequenceStepCurrent); if (orderStepNrDp != null) { this.orderSequenceStep.current.internalValue = orderStepNrDp.data; this.orderSequenceStep.current.displayValue = orderStepMapping.get(orderStepNrDp.data) || this._unknownStateText; } else { this.orderSequenceStep.current.internalValue = undefined; this.orderSequenceStep.current.displayValue = this._unknownStateText; } var orderPreviousStepNrDp = this._dataPoints.Get(this._naturalKeyOrderSequenceStepPrevious); if (orderPreviousStepNrDp != null) { this.orderSequenceStep.previous.internalValue = orderPreviousStepNrDp.data; this.orderSequenceStep.previous.displayValue = orderStepMapping.get(orderPreviousStepNrDp.data) || this._unknownStateText; } else { this.orderSequenceStep.previous.internalValue = undefined; this.orderSequenceStep.previous.displayValue = this._unknownStateText; } } }; AutomaticModeHalfOrderViewModel.prototype.updateLoadState = function () { var loadStateMapping = this._loadStateMapping; var loadStateDp = this._dataPoints.Get(this._naturalKeyLoadStateStatus); if (loadStateDp != null && loadStateMapping != null) { this.loadState.internalValue = loadStateDp.data; this.loadState.displayValue = loadStateMapping.get(loadStateDp.data) || this._unknownStateText; } else { this.loadState.internalValue = undefined; this.loadState.displayValue = this._unknownStateText; } }; AutomaticModeHalfOrderViewModel.prototype.updateProgressStep = function () { var step = -1; if (this.orderDetails.orderState.internalValue === AutomaticModeOrderState.Active || this.orderDetails.orderState.internalValue === AutomaticModeOrderState.Finished) { switch (this.loadState.internalValue) { case AutomaticModeLoadState.LoadTaken: step = 1; break; case AutomaticModeLoadState.LoadPutDown: step = 2; break; default: step = 0; break; } } this.progressStep = step; }; AutomaticModeHalfOrderViewModel.prototype.updateCraneDetailStatusState = function () { var _this = this; var craneStateDetailsStatusHoistMapping = this._craneStateDetailsStatusHoistMapping; var naturalKeyCraneDetailStatus = this._naturalKeyCraneDetailStatus; var craneStateDetailsStatusData = naturalKeyCraneDetailStatus != null ? naturalKeyCraneDetailStatus.filter(function (x) { return x != null; }).map(function (x) { return _this._dataPoints.Get(x); }) : undefined; if (craneStateDetailsStatusHoistMapping != null && craneStateDetailsStatusData != null) { var allStatusesOk = craneStateDetailsStatusData.reduce(function (acc, x) { return x != null && x.data && acc; }, true); this.craneStateDetails.status.internalValue = allStatusesOk; this.craneStateDetails.status.displayValue = craneStateDetailsStatusHoistMapping.get(allStatusesOk ? 1 : 0) || this._unknownStateText; } else { this.craneStateDetails.status.internalValue = undefined; this.craneStateDetails.status.displayValue = this._unknownStateText; } }; AutomaticModeHalfOrderViewModel.prototype.updateCraneDetailReleasesState = function () { var _this = this; var craneStateDetailsReleasesMapping = this._craneStateDetailsReleasesMapping; var naturalKeyCraneDetailReleases = this._naturalKeyCraneDetailReleases; var craneStateDetailsReleasesData = naturalKeyCraneDetailReleases != null ? naturalKeyCraneDetailReleases.filter(function (x) { return x != null; }).map(function (x) { return _this._dataPoints.Get(x); }) : undefined; if (craneStateDetailsReleasesMapping != null && craneStateDetailsReleasesData != null) { var allReleasesSet = craneStateDetailsReleasesData.reduce(function (acc, x) { return x != null && x.data && acc; }, true); this.craneStateDetails.releases.internalValue = allReleasesSet; this.craneStateDetails.releases.displayValue = craneStateDetailsReleasesMapping.get(allReleasesSet ? 1 : 0) || this._unknownStateText; } else { this.craneStateDetails.releases.internalValue = undefined; this.craneStateDetails.releases.displayValue = this._unknownStateText; } }; AutomaticModeHalfOrderViewModel.prototype.updateCraneDetailInterlocksState = function () { var _this = this; var craneStateDetailsInterlocksMapping = this._craneStateDetailsInterlocksMapping; var naturalKeyCraneDetailInterlocks = this._naturalKeyCraneDetailInterlocks; var craneStateDetailsInterlocksData = naturalKeyCraneDetailInterlocks != null ? naturalKeyCraneDetailInterlocks.filter(function (x) { return x != null; }).map(function (x) { return _this._dataPoints.Get(x); }) : undefined; if (craneStateDetailsInterlocksMapping != null && craneStateDetailsInterlocksData != null) { var allInterlocksSet = craneStateDetailsInterlocksData.reduce(function (acc, x) { return x != null && x.data && acc; }, true); this.craneStateDetails.interlocks.internalValue = allInterlocksSet; this.craneStateDetails.interlocks.displayValue = craneStateDetailsInterlocksMapping.get(allInterlocksSet ? 1 : 0) || this._unknownStateText; } else { this.craneStateDetails.interlocks.internalValue = undefined; this.craneStateDetails.interlocks.displayValue = this._unknownStateText; } }; AutomaticModeHalfOrderViewModel.prototype.updateCancelActiveOrderButtonState = function () { if (this.orderDetails.orderId != null && this.orderDetails.orderId.internalValue != null) { var orderId = this.orderDetails.orderId.internalValue; this.cancelActiveOrderButton.internalValue = orderId; this.cancelActiveOrderButton.displayValue = this.orderDetails.orderId.label + ": " + orderId; } else if (this.orderDetails.orderId != null) { this.cancelActiveOrderButton.internalValue = undefined; this.cancelActiveOrderButton.displayValue = this.orderDetails.orderId.label + ": '" + _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] + " (0)'"; } else { this.cancelActiveOrderButton.internalValue = undefined; this.cancelActiveOrderButton.displayValue = this._unknownStateText; } }; return AutomaticModeHalfOrderViewModel; }(_base_viewmodel__WEBPACK_IMPORTED_MODULE_3__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/automatic-mode.viewmodel.ts": /*!****************************************************!*\ !*** ./src/app/models/automatic-mode.viewmodel.ts ***! \****************************************************/ /*! exports provided: AutomaticModeLoadState, AutomaticModeOrderState, AutomaticModeViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutomaticModeLoadState", function() { return AutomaticModeLoadState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutomaticModeOrderState", function() { return AutomaticModeOrderState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutomaticModeViewModel", function() { return AutomaticModeViewModel; }); /* harmony import */ var types_keyed_collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/keyed-collection */ "./src/types/keyed-collection.ts"); /* harmony import */ var types_project__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/project */ "./src/types/project.ts"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _base_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var AutomaticModeLoadState; (function (AutomaticModeLoadState) { AutomaticModeLoadState[AutomaticModeLoadState["Undefined"] = 0] = "Undefined"; AutomaticModeLoadState[AutomaticModeLoadState["LoadTaken"] = 1] = "LoadTaken"; AutomaticModeLoadState[AutomaticModeLoadState["LoadPutDown"] = 2] = "LoadPutDown"; })(AutomaticModeLoadState || (AutomaticModeLoadState = {})); var AutomaticModeOrderState; (function (AutomaticModeOrderState) { AutomaticModeOrderState[AutomaticModeOrderState["NoOrder"] = 0] = "NoOrder"; AutomaticModeOrderState[AutomaticModeOrderState["Active"] = 1] = "Active"; AutomaticModeOrderState[AutomaticModeOrderState["Finished"] = 2] = "Finished"; AutomaticModeOrderState[AutomaticModeOrderState["Invalid"] = 2] = "Invalid"; AutomaticModeOrderState[AutomaticModeOrderState["Deleted"] = 2] = "Deleted"; })(AutomaticModeOrderState || (AutomaticModeOrderState = {})); var AutomaticModeViewModel = /** @class */ (function (_super) { __extends(AutomaticModeViewModel, _super); function AutomaticModeViewModel(craneConfig, _httpClient) { var _this = _super.call(this, craneConfig.deviceConfigs[_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasAutomaticMode].components.find(function (c) { return c.id === 'overview'; })) || this; _this.craneConfig = craneConfig; _this._httpClient = _httpClient; _this._unknownStateText = _app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder; _this._dataPoints = new types_keyed_collection__WEBPACK_IMPORTED_MODULE_0__["KeyedCollection"](); return _this; } AutomaticModeViewModel.prototype.updateComponentConfig = function () { this.initMappings(); this.initNaturalKeys(); }; AutomaticModeViewModel.prototype.initMappings = function () { var components = this.components; if (components != null) { var orderProgressComponent = components.find(function (x) { return x.enabled && x.id === 'order-progress'; }); if (orderProgressComponent != null && orderProgressComponent.stateMappings != null) { var progressStateMapping = this.resolveStateMappingText(orderProgressComponent.stateMappings, 'progress-state-mapping'); this.progressStateMapping = progressStateMapping != null ? Array.from(progressStateMapping.values()) : []; this._orderStateMapping = this.resolveStateMappingText(orderProgressComponent.stateMappings, 'order-state-mapping'); } var orderDetailsComponent = components.find(function (x) { return x.enabled && x.id === 'order-details'; }); if (orderDetailsComponent != null && orderDetailsComponent.components != null) { var orderDetailsContainerCornerCastingsComponent = orderDetailsComponent.components.find(function (x) { return x.enabled && x.id === 'order-details-container-corner-castings'; }); if (orderDetailsContainerCornerCastingsComponent != null && orderDetailsContainerCornerCastingsComponent.stateMappings != null) { this._hasWtpCornerCastingsMapping = this.resolveStateMappingText(orderDetailsContainerCornerCastingsComponent.stateMappings, 'order-details-container-has-corner-castings-mapping'); } } var orderLoadStatusComponent = components.find(function (x) { return x.enabled && x.id === 'order-load-status'; }); if (orderLoadStatusComponent != null && orderLoadStatusComponent.stateMappings != null) { this._loadStateMapping = this.resolveStateMappingText(orderLoadStatusComponent.stateMappings, 'load-state-mapping'); } var orderSequenceComponent = components.find(function (x) { return x.enabled && x.id === 'order-sequence'; }); if (orderSequenceComponent != null && orderSequenceComponent.stateMappings != null) { this._orderSequenceStepMapping = this.resolveStateMappingText(orderSequenceComponent.stateMappings, 'order-sequence-step-mapping'); } var craneStateDetailsComponent = components.find(function (x) { return x.enabled && x.id === 'crane-state-details'; }); if (craneStateDetailsComponent != null && craneStateDetailsComponent.components != null) { var craneStateDetailsStatusComponent = craneStateDetailsComponent.components.find(function (x) { return x.enabled && x.id === 'crane-state-details-status'; }); if (craneStateDetailsStatusComponent != null && craneStateDetailsStatusComponent.stateMappings != null) { this._craneStateDetailsStatusHoistMapping = this.resolveStateMappingText(craneStateDetailsStatusComponent.stateMappings, 'crane-state-details-status-mapping'); } var craneStateDetailsReleasesComponent = craneStateDetailsComponent.components.find(function (x) { return x.enabled && x.id === 'crane-state-details-releases'; }); if (craneStateDetailsReleasesComponent != null && craneStateDetailsReleasesComponent.stateMappings != null) { this._craneStateDetailsReleasesMapping = this.resolveStateMappingText(craneStateDetailsReleasesComponent.stateMappings, 'crane-state-details-releases-mapping'); } var craneStateDetailsInterlocksComponent = craneStateDetailsComponent.components.find(function (x) { return x.enabled && x.id === 'crane-state-details-interlocks'; }); if (craneStateDetailsInterlocksComponent != null && craneStateDetailsInterlocksComponent.stateMappings != null) { this._craneStateDetailsInterlocksMapping = this.resolveStateMappingText(craneStateDetailsInterlocksComponent.stateMappings, 'crane-state-details-interlocks-mapping'); } } } }; AutomaticModeViewModel.prototype.initNaturalKeys = function () { var naturalKeys = new Set(); var components = this.components; if (components != null) { var orderProgress = components.find(function (x) { return x.enabled && x.id === 'order-progress'; }); var orderProgressNaturalKeys = this.initOrderProgress(orderProgress); if (orderProgressNaturalKeys != null) { this._naturalKeyLoadStateStatus = orderProgressNaturalKeys[1]; orderProgressNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var orderDetails = components.find(function (x) { return x.enabled && x.id === 'order-details'; }); var orderDetailsNaturalKeys = this.initOrderDetails(orderDetails); if (orderDetailsNaturalKeys != null) { orderDetailsNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var orderLoadStatus = components.find(function (x) { return x.enabled && x.id === 'order-load-status'; }); var orderLoadStatusNaturalKeys = this.initOrderLoadStatus(orderLoadStatus); if (orderLoadStatusNaturalKeys != null) { orderLoadStatusNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var orderStepSequence = components.find(function (x) { return x.enabled && x.id === 'order-sequence'; }); var orderStepSequenceNaturalKeys = this.initOrderStepSequence(orderStepSequence); if (orderStepSequenceNaturalKeys != null) { orderStepSequenceNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var craneStateDetails = components.find(function (x) { return x.enabled && x.id === 'crane-state-details'; }); var craneStateDetailsNaturalKeys = this.initCraneStateDetails(craneStateDetails); if (craneStateDetailsNaturalKeys != null) { craneStateDetailsNaturalKeys.forEach(function (x) { return naturalKeys.add(x); }); } var orderCancelButton = components.find(function (x) { return x.enabled && x.id === 'order-cancel-button'; }); this.initCancelActiveOrderButton(orderCancelButton); this.initOrderPosition(components); } this.naturalKeys = Array.from(naturalKeys); }; AutomaticModeViewModel.prototype.initOrderProgress = function (orderProgressRoot) { var orderProgressNaturalKeys = this.resolveNaturalKeys(orderProgressRoot); return orderProgressNaturalKeys != null ? Array.from(orderProgressNaturalKeys) : []; }; AutomaticModeViewModel.prototype.initOrderDetails = function (orderDetailsRoot) { var naturalKeys = []; var orderDetails = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], orderId: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, orderState: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, containerNumber: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, loadType: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, wtpCornerCastings: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] } }; if (orderDetailsRoot != null && orderDetailsRoot.components != null) { orderDetails.label = orderDetailsRoot.title; for (var _i = 0, _a = orderDetailsRoot.components; _i < _a.length; _i++) { var orderDetailsComponent = _a[_i]; if (orderDetailsComponent.enabled && orderDetailsComponent.id != null && orderDetailsComponent.requiredDatapoints != null) { var requiredDatapoint = orderDetailsComponent.requiredDatapoints[0]; if (requiredDatapoint != null) { switch (orderDetailsComponent.id) { case 'order-details-id': { orderDetails.orderId.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsOrderId = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-details-status': { orderDetails.orderState.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsOrderStatus = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-details-container-number': { orderDetails.containerNumber.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsContainerNumber = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-details-load-type': { orderDetails.loadType.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsLoadType = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-details-container-corner-castings': { orderDetails.wtpCornerCastings.label = orderDetailsComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderDetailsWtpCornerCastings = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } default: break; } } } } } this.orderDetails = orderDetails; return naturalKeys; }; AutomaticModeViewModel.prototype.initOrderPosition = function (components) { var orderPosition = { source: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, destination: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] } }; var orderPositionSource = components.find(function (x) { return x.enabled && x.id === 'order-position-source'; }); var orderPositionSourceConfig = this.initOrderPositionConfig(orderPositionSource); if (orderPositionSourceConfig != null) { orderPosition.source = orderPositionSourceConfig; } var orderPositionDestination = components.find(function (x) { return x.enabled && x.id === 'order-position-destination'; }); var orderPositionDestinationConfig = this.initOrderPositionConfig(orderPositionDestination); if (orderPositionDestinationConfig != null) { orderPosition.destination = orderPositionDestinationConfig; } this.orderPosition = orderPosition; }; AutomaticModeViewModel.prototype.initOrderPositionConfig = function (orderPosition) { var config = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }; if (orderPosition != null && orderPosition.components != null) { config.label = orderPosition.title; var orderPositionCollection = new _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["DoubleDataPointCollection"](); var _loop_1 = function (orderPositionComponent) { if (orderPositionComponent.enabled && orderPositionComponent.id != null && orderPositionComponent.components != null) { var locationField = undefined; var isDoneCallback = undefined; switch (orderPositionComponent.id) { case orderPosition.id + "-area": { locationField = types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].MasterBlock, isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 1; }; break; } case orderPosition.id + "-x": { locationField = types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].X, isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 1; }; break; } case orderPosition.id + "-y": { locationField = types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].Y, isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 1; }; break; } case orderPosition.id + "-z": { locationField = types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].Z, isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 1; }; break; } default: isDoneCallback = function (item) { return Math.abs(item.value - item.secondValue) < 2.5; }; break; } var actualValueComponent = orderPositionComponent.components.find(function (x) { return x.enabled && x.id === orderPositionComponent.id + "-actual-value"; }); var actualNaturalKey = actualValueComponent != null && actualValueComponent.requiredDatapoints != null ? actualValueComponent.requiredDatapoints[0].naturalKey : undefined; var setValueComponent = orderPositionComponent.components.find(function (x) { return x.enabled && x.id === orderPositionComponent.id + "-set-value"; }); var setNaturalKey = setValueComponent != null && setValueComponent.requiredDatapoints != null ? setValueComponent.requiredDatapoints[0].naturalKey : undefined; orderPositionCollection.items.push({ title: orderPositionComponent.title, subtitle: orderPositionComponent.subtitle, groupTitle: orderPosition.title, naturalKey: actualNaturalKey, secondNaturalKey: setNaturalKey, locationField: locationField, isDoneCallback: isDoneCallback }); } }; for (var _i = 0, _a = orderPosition.components; _i < _a.length; _i++) { var orderPositionComponent = _a[_i]; _loop_1(orderPositionComponent); } config.internalValue = orderPositionCollection; } return config; }; AutomaticModeViewModel.prototype.initOrderLoadStatus = function (orderLoadStatusRoot) { var naturalKeys = []; this.loadState = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }; if (orderLoadStatusRoot != null) { this.loadState.label = orderLoadStatusRoot.title; if (orderLoadStatusRoot.requiredDatapoints != null) { var loadStateDataPoint = orderLoadStatusRoot.requiredDatapoints[0]; if (loadStateDataPoint != null && loadStateDataPoint.naturalKey != null) { this._naturalKeyLoadStateStatus = loadStateDataPoint.naturalKey; naturalKeys.push(loadStateDataPoint.naturalKey); } } } return naturalKeys; }; AutomaticModeViewModel.prototype.initOrderStepSequence = function (orderSequenceRoot) { var naturalKeys = []; var orderSequenceStep = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], current: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, previous: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] } }; if (orderSequenceRoot != null) { orderSequenceStep.label = orderSequenceRoot.title; if (orderSequenceRoot.components != null) { for (var _i = 0, _a = orderSequenceRoot.components; _i < _a.length; _i++) { var orderSequenceComponent = _a[_i]; if (orderSequenceComponent.enabled && orderSequenceComponent.id != null && orderSequenceComponent.requiredDatapoints != null) { var requiredDatapoint = orderSequenceComponent.requiredDatapoints[0]; if (requiredDatapoint != null) { switch (orderSequenceComponent.id) { case 'order-sequence-step-current': { orderSequenceStep.current.label = orderSequenceComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderSequenceStepCurrent = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } case 'order-sequence-step-previous': { orderSequenceStep.previous.label = orderSequenceComponent.title; if (requiredDatapoint.naturalKey != null) { this._naturalKeyOrderSequenceStepPrevious = requiredDatapoint.naturalKey; naturalKeys.push(requiredDatapoint.naturalKey); } break; } default: break; } } } } } if (orderSequenceRoot.stateMappings != null) { var sequenceStepCollection = new _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["DataPointCollection"](); var mappingNaturalKey = this._naturalKeyOrderSequenceStepCurrent; if (mappingNaturalKey != null) { var orderSequenceStepMapping = orderSequenceRoot.stateMappings.find(function (x) { return x.enabled && x.id === 'order-sequence-step-mapping'; }); if (orderSequenceStepMapping != null && orderSequenceStepMapping.mappings != null) { for (var _b = 0, _c = orderSequenceStepMapping.mappings; _b < _c.length; _b++) { var mapping = _c[_b]; if (mapping != null && mapping.enabled && mapping.text != null && mapping.text.length > 0) { sequenceStepCollection.items.push({ title: mapping.text, naturalKey: mappingNaturalKey, condition: mapping.condition, viewTemplate: _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["CustomItemTemplate"].StateMapping }); } } } } orderSequenceStep.quickviewCollection = sequenceStepCollection; } } this.orderSequenceStep = orderSequenceStep; return naturalKeys; }; AutomaticModeViewModel.prototype.initCraneStateDetails = function (craneStateDetailsRoot) { var naturalKeys = []; var craneStateDetails = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], status: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, releases: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }, interlocks: { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] } }; if (craneStateDetailsRoot != null) { craneStateDetails.label = craneStateDetailsRoot.title; if (craneStateDetailsRoot.components != null) { for (var _i = 0, _a = craneStateDetailsRoot.components; _i < _a.length; _i++) { var craneStateDetailsComponent = _a[_i]; if (craneStateDetailsComponent.enabled && craneStateDetailsComponent.id != null) { var quickViewDataPoints = this.resolveQuickViewDataPoints(craneStateDetailsComponent); var naturalKeyCraneDetail = quickViewDataPoints != null ? quickViewDataPoints.items.map(function (x) { return x.naturalKey; }) : []; naturalKeys.push.apply(naturalKeys, naturalKeyCraneDetail); switch (craneStateDetailsComponent.id) { case 'crane-state-details-status': { craneStateDetails.status.label = craneStateDetailsComponent.title; craneStateDetails.status.quickviewCollection = quickViewDataPoints; this._naturalKeyCraneDetailStatus = naturalKeyCraneDetail; break; } case 'crane-state-details-releases': { craneStateDetails.releases.label = craneStateDetailsComponent.title; craneStateDetails.releases.quickviewCollection = quickViewDataPoints; this._naturalKeyCraneDetailReleases = naturalKeyCraneDetail; break; } case 'crane-state-details-interlocks': { craneStateDetails.interlocks.label = craneStateDetailsComponent.title; craneStateDetails.interlocks.quickviewCollection = quickViewDataPoints; this._naturalKeyCraneDetailInterlocks = naturalKeyCraneDetail; break; } default: break; } } } } } this.craneStateDetails = craneStateDetails; return naturalKeys; }; AutomaticModeViewModel.prototype.resolveQuickViewDataPoints = function (component) { var quickViewDataPoints = new _datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_4__["DataPointCollection"](); if (component != null && component.quickviewDatapoints != null) { for (var _i = 0, _a = component.quickviewDatapoints; _i < _a.length; _i++) { var dataPoint = _a[_i]; if (dataPoint != null && dataPoint.enabled) { quickViewDataPoints.items.push({ title: dataPoint.title, groupTitle: dataPoint.groupTitle, naturalKey: dataPoint.naturalKey, viewTemplate: dataPoint.viewTemplate }); } } } return quickViewDataPoints; }; AutomaticModeViewModel.prototype.initCancelActiveOrderButton = function (orderCancelButtonRoot) { this.cancelActiveOrderButton = { label: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"], displayValue: _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] }; if (orderCancelButtonRoot != null) { this.cancelActiveOrderButton.label = orderCancelButtonRoot.title; } }; AutomaticModeViewModel.prototype.updateFromDatapoints = function (dataPoints) { if (dataPoints != null && !dataPoints.isEmpty) { for (var _i = 0, _a = dataPoints.Entries(); _i < _a.length; _i++) { var _b = _a[_i], naturalKey = _b[0], dataPoint = _b[1]; this._dataPoints.AddOrUpdate(naturalKey, dataPoint); } this.updateViewModel(); } }; AutomaticModeViewModel.prototype.updateViewModel = function () { this.updateOrderDetails(); this.updateOrderStepSequences(); this.updateLoadState(); this.updateProgressStep(); this.updateCraneDetailReleasesState(); this.updateCraneDetailStatusState(); this.updateCraneDetailInterlocksState(); this.updateCancelActiveOrderButtonState(); }; AutomaticModeViewModel.prototype.cancelActiveOrder = function (orderId) { var _this = this; if (!this.cancelActiveOrderButton.isOrderCancellationRequested) { this.cancelActiveOrderButton.isOrderCancellationRequested = true; var resolvedOrderId = orderId != null ? orderId : '0'; var requestObservable = this._httpClient.delete("api/tosOrderCancellation/" + resolvedOrderId); requestObservable.subscribe(function (_) { return _this.cancelActiveOrderButton.isOrderCancellationRequested = false; }, function (error) { _this.cancelActiveOrderButton.isOrderCancellationRequested = false; console.log(error); }); } }; AutomaticModeViewModel.prototype.updateOrderDetails = function () { var orderIdDp = this._dataPoints.Get(this._naturalKeyOrderDetailsOrderId); if (orderIdDp != null) { this.orderDetails.orderId.internalValue = orderIdDp.data; this.orderDetails.orderId.displayValue = orderIdDp.data; } var orderStateDp = this._dataPoints.Get(this._naturalKeyOrderDetailsOrderStatus); if (orderStateDp != null) { this.orderDetails.orderState.internalValue = orderStateDp.data; var orderStateMapping = this._orderStateMapping.get(orderStateDp.data); this.orderDetails.orderState.displayValue = orderStateMapping != null ? orderStateMapping : this._unknownStateText; } var containerNumberStringDp = this._dataPoints.Get(this._naturalKeyOrderDetailsContainerNumber); if (containerNumberStringDp != null && containerNumberStringDp.data != null) { this.orderDetails.containerNumber.internalValue = containerNumberStringDp.data; var containerNumberStringParts = containerNumberStringDp.data.split(';', 1); if (containerNumberStringParts.length >= 1) { this.orderDetails.containerNumber.displayValue = containerNumberStringParts[0]; } } var loadTypeDp = this._dataPoints.Get(this._naturalKeyOrderDetailsLoadType); if (loadTypeDp != null) { this.orderDetails.loadType.internalValue = loadTypeDp.data; this.orderDetails.loadType.displayValue = loadTypeDp.data; } var cornerCastingsDp = this._dataPoints.Get(this._naturalKeyOrderDetailsWtpCornerCastings); var hasWtpCornerCastingsMapping = this._hasWtpCornerCastingsMapping; if (cornerCastingsDp != null && hasWtpCornerCastingsMapping != null) { this.orderDetails.wtpCornerCastings.internalValue = cornerCastingsDp.data; this.orderDetails.wtpCornerCastings.displayValue = hasWtpCornerCastingsMapping.get(cornerCastingsDp.data) || this._unknownStateText; } else { this.orderDetails.wtpCornerCastings.internalValue = undefined; this.orderDetails.wtpCornerCastings.displayValue = this._unknownStateText; } }; AutomaticModeViewModel.prototype.updateOrderStepSequences = function () { var orderStepMapping = this._orderSequenceStepMapping; if (orderStepMapping != null) { var orderStepNrDp = this._dataPoints.Get(this._naturalKeyOrderSequenceStepCurrent); if (orderStepNrDp != null) { this.orderSequenceStep.current.internalValue = orderStepNrDp.data; this.orderSequenceStep.current.displayValue = orderStepMapping.get(orderStepNrDp.data) || this._unknownStateText; } else { this.orderSequenceStep.current.internalValue = undefined; this.orderSequenceStep.current.displayValue = this._unknownStateText; } var orderPreviousStepNrDp = this._dataPoints.Get(this._naturalKeyOrderSequenceStepPrevious); if (orderPreviousStepNrDp != null) { this.orderSequenceStep.previous.internalValue = orderPreviousStepNrDp.data; this.orderSequenceStep.previous.displayValue = orderStepMapping.get(orderPreviousStepNrDp.data) || this._unknownStateText; } else { this.orderSequenceStep.previous.internalValue = undefined; this.orderSequenceStep.previous.displayValue = this._unknownStateText; } } }; AutomaticModeViewModel.prototype.updateLoadState = function () { var loadStateMapping = this._loadStateMapping; var loadStateDp = this._dataPoints.Get(this._naturalKeyLoadStateStatus); if (loadStateDp != null && loadStateMapping != null) { this.loadState.internalValue = loadStateDp.data; this.loadState.displayValue = loadStateMapping.get(loadStateDp.data) || this._unknownStateText; } else { this.loadState.internalValue = undefined; this.loadState.displayValue = this._unknownStateText; } }; AutomaticModeViewModel.prototype.updateProgressStep = function () { var loadStateDp = this._dataPoints.Get(this._naturalKeyLoadStateStatus); var step = -1; if (loadStateDp !== undefined && typeof loadStateDp.data === "number" && loadStateDp.data >= 0 && loadStateDp.data < this.progressStateMapping.length) { step = loadStateDp.data; } this.progressStep = step; }; AutomaticModeViewModel.prototype.updateCraneDetailStatusState = function () { var _this = this; var craneStateDetailsStatusHoistMapping = this._craneStateDetailsStatusHoistMapping; var naturalKeyCraneDetailStatus = this._naturalKeyCraneDetailStatus; var craneStateDetailsStatusData = naturalKeyCraneDetailStatus != null ? naturalKeyCraneDetailStatus.filter(function (x) { return x != null; }).map(function (x) { return _this._dataPoints.Get(x); }) : undefined; if (craneStateDetailsStatusHoistMapping != null && craneStateDetailsStatusData != null) { var allStatusesOk = craneStateDetailsStatusData.reduce(function (acc, x) { return x != null && x.data && acc; }, true); this.craneStateDetails.status.internalValue = allStatusesOk; this.craneStateDetails.status.displayValue = craneStateDetailsStatusHoistMapping.get(allStatusesOk ? 1 : 0) || this._unknownStateText; } else { this.craneStateDetails.status.internalValue = undefined; this.craneStateDetails.status.displayValue = this._unknownStateText; } }; AutomaticModeViewModel.prototype.updateCraneDetailReleasesState = function () { var _this = this; var craneStateDetailsReleasesMapping = this._craneStateDetailsReleasesMapping; var naturalKeyCraneDetailReleases = this._naturalKeyCraneDetailReleases; var craneStateDetailsReleasesData = naturalKeyCraneDetailReleases != null ? naturalKeyCraneDetailReleases.filter(function (x) { return x != null; }).map(function (x) { return _this._dataPoints.Get(x); }) : undefined; if (craneStateDetailsReleasesMapping != null && craneStateDetailsReleasesData != null) { var allReleasesSet = craneStateDetailsReleasesData.reduce(function (acc, x) { return x != null && x.data && acc; }, true); this.craneStateDetails.releases.internalValue = allReleasesSet; this.craneStateDetails.releases.displayValue = craneStateDetailsReleasesMapping.get(allReleasesSet ? 1 : 0) || this._unknownStateText; } else { this.craneStateDetails.releases.internalValue = undefined; this.craneStateDetails.releases.displayValue = this._unknownStateText; } }; AutomaticModeViewModel.prototype.updateCraneDetailInterlocksState = function () { var _this = this; var craneStateDetailsInterlocksMapping = this._craneStateDetailsInterlocksMapping; var naturalKeyCraneDetailInterlocks = this._naturalKeyCraneDetailInterlocks; var craneStateDetailsInterlocksData = naturalKeyCraneDetailInterlocks != null ? naturalKeyCraneDetailInterlocks.filter(function (x) { return x != null; }).map(function (x) { return _this._dataPoints.Get(x); }) : undefined; if (craneStateDetailsInterlocksMapping != null && craneStateDetailsInterlocksData != null) { var allInterlocksSet = craneStateDetailsInterlocksData.reduce(function (acc, x) { return x != null && x.data && acc; }, true); this.craneStateDetails.interlocks.internalValue = allInterlocksSet; this.craneStateDetails.interlocks.displayValue = craneStateDetailsInterlocksMapping.get(allInterlocksSet ? 1 : 0) || this._unknownStateText; } else { this.craneStateDetails.interlocks.internalValue = undefined; this.craneStateDetails.interlocks.displayValue = this._unknownStateText; } }; AutomaticModeViewModel.prototype.updateCancelActiveOrderButtonState = function () { if (this.orderDetails.orderId != null && this.orderDetails.orderId.internalValue != null) { var orderId = this.orderDetails.orderId.internalValue; this.cancelActiveOrderButton.internalValue = orderId; this.cancelActiveOrderButton.displayValue = this.orderDetails.orderId.label + ": " + orderId; } else if (this.orderDetails.orderId != null) { this.cancelActiveOrderButton.internalValue = undefined; this.cancelActiveOrderButton.displayValue = this.orderDetails.orderId.label + ": '" + _app_constants__WEBPACK_IMPORTED_MODULE_2__["NOT_AVAILABLE"] + " (0)'"; } else { this.cancelActiveOrderButton.internalValue = undefined; this.cancelActiveOrderButton.displayValue = this._unknownStateText; } }; return AutomaticModeViewModel; }(_base_viewmodel__WEBPACK_IMPORTED_MODULE_3__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/base.viewmodel.ts": /*!******************************************!*\ !*** ./src/app/models/base.viewmodel.ts ***! \******************************************/ /*! exports provided: BaseViewmodel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseViewmodel", function() { return BaseViewmodel; }); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var BaseViewmodel = /** @class */ (function () { function BaseViewmodel(component) { this.component = component; this.components = component != null && component.components != null ? component.components : []; } Object.defineProperty(BaseViewmodel.prototype, "components", { get: function () { return this._components; }, set: function (value) { this._components = value; this.updateComponentConfig(); }, enumerable: true, configurable: true }); Object.defineProperty(BaseViewmodel.prototype, "valuesToBeDisplayed", { get: function () { return this._valuesToBeDisplayed; }, set: function (value) { switch (value) { case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].GearTemp: this._viewMode = 'gear_temperature'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].MotTemp: this._viewMode = 'motor_temperature'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].Position: this._viewMode = 'position'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].OutputVoltage: this._viewMode = 'output_voltage'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].ActCurrent: this._viewMode = 'actual_current'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].ActTorque: this._viewMode = 'actual_torque'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].OutputFrequency: this._viewMode = 'output_frequency'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].ActSpeed: this._viewMode = 'actual_speed'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].Load: this._viewMode = 'load'; break; case types_config__WEBPACK_IMPORTED_MODULE_0__["DisplayValue"].Velocity: this._viewMode = 'velocity'; break; } this._valuesToBeDisplayed = value; this.updateViewModel(); }, enumerable: true, configurable: true }); BaseViewmodel.prototype.isDeviceEnabled = function () { var componentIdChain = []; for (var _i = 0; _i < arguments.length; _i++) { componentIdChain[_i] = arguments[_i]; } if (componentIdChain != null && componentIdChain.length > 0) { var components = this.components; for (var index = 0; index < componentIdChain.length; ++index) { var componentId = componentIdChain[index]; if (components != null && components.length > 0) { for (var _a = 0, components_1 = components; _a < components_1.length; _a++) { var component = components_1[_a]; if (component.id === componentId && component.enabled) { if (index === componentIdChain.length - 1) { return true; } else { components = component.components; break; } } } } } } return false; }; BaseViewmodel.prototype.isDatapointEnabled = function (nk) { var _this = this; if (nk != null) { var isEnabledInSelf = this.component != null && (this.component.quickviewDatapoints != null && this.dpArrayIncludes(this.component.quickviewDatapoints, nk) || this.dpArrayIncludes(this.component.requiredDatapoints, nk)); if (isEnabledInSelf) { return true; } else { return this.components.filter(function (e) { return e.enabled; }).some(function (e) { return _this.dpArrayIncludes(e.quickviewDatapoints, nk) || _this.dpArrayIncludes(e.requiredDatapoints, nk); }); } } return false; }; BaseViewmodel.prototype.supplyIfDatapointEnabled = function (supplyFunction, nk) { var isEnabled = this.isDatapointEnabled(nk); if (isEnabled) { supplyFunction.apply(nk); } return isEnabled; }; BaseViewmodel.prototype.resolveNaturalKeys = function (component) { if (component != null) { var naturalKeys_1 = new Set(); var queue = [component]; while (queue.length > 0) { var currentComponent = queue.pop(); if (currentComponent != null && currentComponent.enabled) { if (currentComponent.requiredDatapoints != null) { currentComponent.requiredDatapoints.forEach(function (x) { if (x != null) { naturalKeys_1.add(x.naturalKey); } }); } if (currentComponent.quickviewDatapoints != null) { currentComponent.quickviewDatapoints.forEach(function (x) { if (x != null) { naturalKeys_1.add(x.naturalKey); } }); } if (currentComponent.components != null && currentComponent.components.length > 0) { queue.push.apply(queue, currentComponent.components); } } } return naturalKeys_1; } return undefined; }; BaseViewmodel.prototype.resolveStateMappingText = function (stateMappings, stateMappingId) { var stateMappingText = new Map(); var stateMappingConfig = stateMappings.find(function (m) { return m.enabled && m.id === stateMappingId; }); if (stateMappingConfig != null && stateMappingConfig.mappings != null) { for (var _i = 0, _a = stateMappingConfig.mappings; _i < _a.length; _i++) { var mapping = _a[_i]; if (mapping != null && mapping.condition != null) { stateMappingText.set(mapping.condition, mapping.text); } } } return stateMappingText; }; BaseViewmodel.prototype.dpArrayIncludes = function (array, key) { var _this = this; return array != null && array.find(function (x) { return _this.dpMatches(x, key); }); }; BaseViewmodel.prototype.dpMatches = function (dp, key) { if (dp != null) { var rdp = dp; if (rdp != null) { var hasKeyMatch = rdp.naturalKey === key; if (hasKeyMatch) { var qdp = dp; if (qdp != null && qdp.enabled != null) { return qdp.enabled; } return true; } } } return false; }; return BaseViewmodel; }()); /***/ }), /***/ "./src/app/models/column-definition.ts": /*!*********************************************!*\ !*** ./src/app/models/column-definition.ts ***! \*********************************************/ /*! exports provided: ColumnDefinition */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnDefinition", function() { return ColumnDefinition; }); // base column definition impl var ColumnDefinition = /** @class */ (function () { function ColumnDefinition(headerName, propertyName, stringValueExtractor) { this.headerName = headerName; this.propertyName = propertyName; this.stringValueExtractor = stringValueExtractor; } ColumnDefinition.prototype.addExtractor = function (stringValueExtractor) { return new ColumnDefinition(this.headerName, this.propertyName, stringValueExtractor); }; return ColumnDefinition; }()); /***/ }), /***/ "./src/app/models/data-point.ts": /*!**************************************!*\ !*** ./src/app/models/data-point.ts ***! \**************************************/ /*! exports provided: DataPoint */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataPoint", function() { return DataPoint; }); // base data point, where data can be anything var DataPoint = /** @class */ (function () { function DataPoint(naturalKey, data, timeStamp) { if (timeStamp === void 0) { timeStamp = undefined; } this.naturalKey = naturalKey; this.data = data; this.timeStamp = timeStamp; } return DataPoint; }()); /***/ }), /***/ "./src/app/models/datapoint-collection.viewmodel.ts": /*!**********************************************************!*\ !*** ./src/app/models/datapoint-collection.viewmodel.ts ***! \**********************************************************/ /*! exports provided: CustomItemTemplate, DataPointCollection, DoubleDataPointCollection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomItemTemplate", function() { return CustomItemTemplate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataPointCollection", function() { return DataPointCollection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DoubleDataPointCollection", function() { return DoubleDataPointCollection; }); var CustomItemTemplate; (function (CustomItemTemplate) { CustomItemTemplate[CustomItemTemplate["Speedlimit"] = 1] = "Speedlimit"; CustomItemTemplate[CustomItemTemplate["Interlock"] = 2] = "Interlock"; CustomItemTemplate[CustomItemTemplate["Release"] = 3] = "Release"; CustomItemTemplate[CustomItemTemplate["StateMapping"] = 4] = "StateMapping"; })(CustomItemTemplate || (CustomItemTemplate = {})); var DataPointCollection = /** @class */ (function () { function DataPointCollection() { this.items = []; } return DataPointCollection; }()); var DoubleDataPointCollection = /** @class */ (function () { function DoubleDataPointCollection() { this.items = []; } return DoubleDataPointCollection; }()); /***/ }), /***/ "./src/app/models/deprecated/hoist-electrical-2m4w.viewmodel.ts": /*!**********************************************************************!*\ !*** ./src/app/models/deprecated/hoist-electrical-2m4w.viewmodel.ts ***! \**********************************************************************/ /*! exports provided: HoistElectrical2m4wViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistElectrical2m4wViewModel", function() { return HoistElectrical2m4wViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var FrequencyConverterState = /** @class */ (function () { function FrequencyConverterState() { } return FrequencyConverterState; }()); var ControlUnitState = /** @class */ (function () { function ControlUnitState() { } return ControlUnitState; }()); /** * @deprecated Use configurable svg page to create hoist pages */ var HoistElectrical2m4wViewModel = /** @class */ (function (_super) { __extends(HoistElectrical2m4wViewModel, _super); function HoistElectrical2m4wViewModel(craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasHoist].components.filter(function (e) { return e.id === 'electrical-2m4w'; })[0]) || this; _this.craneConfig = craneConfig; _this.frequencyConverterStates = new Array(); _this.dcBusValue = 0; _this.controlUnitState = new ControlUnitState(); _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this._frequencyConverters = ['1', '2']; _this.stateText = 'initializing'; _this.valuesToBeDisplayed = displayValue; _this._frequencyConverters.forEach(function (nr) { _this.frequencyConverterStates.push(_this.defaultFrequencyConverterState); }); _this.controlUnitState = _this.defaultControlUnitState; return _this; } Object.defineProperty(HoistElectrical2m4wViewModel.prototype, "defaultFrequencyConverterState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(HoistElectrical2m4wViewModel.prototype, "defaultControlUnitState", { get: function () { return { warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); HoistElectrical2m4wViewModel.prototype.updateComponentConfig = function () { }; Object.defineProperty(HoistElectrical2m4wViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(HoistElectrical2m4wViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(HoistElectrical2m4wViewModel.naturalKeyWildcardControlUnitFaultCode); naturalKeys.push(HoistElectrical2m4wViewModel.naturalKeyWildcardControlUnitWarnCode); this._frequencyConverters.forEach(function (nr) { naturalKeys.push(HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); HoistElectrical2m4wViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; HoistElectrical2m4wViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(HoistElectrical2m4wViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(HoistElectrical2m4wViewModel.naturalKeyWildcardControlUnitWarnCode); if (cuStateWarnCodeDp != null) { this.controlUnitState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(HoistElectrical2m4wViewModel.naturalKeyWildcardControlUnitFaultCode); if (cuStateFaultCodeDp != null) { this.controlUnitState.faultCode = cuStateFaultCodeDp.data; } this._frequencyConverters.forEach(function (nr, index) { var frequencyConverterState = _this.frequencyConverterStates[index]; var frequencyConverterWarnCodeDp = _this._dataPoints.Get(HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); if (frequencyConverterWarnCodeDp != null) { frequencyConverterState.warnCode = frequencyConverterWarnCodeDp.data; } var frequencyConverterStateFaultCodeDp = _this._dataPoints.Get(HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); if (frequencyConverterStateFaultCodeDp != null) { frequencyConverterState.faultCode = frequencyConverterStateFaultCodeDp.data; } switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: frequencyConverterState.displayValueNaturalKey = HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: frequencyConverterState.displayValueNaturalKey = HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr); break; default: frequencyConverterState.displayValueNaturalKey = undefined; break; } if (frequencyConverterState.displayValueNaturalKey) { var frequencyConverterStateDisplayValueDp = _this._dataPoints.Get(frequencyConverterState.displayValueNaturalKey); if (frequencyConverterStateDisplayValueDp != null) { frequencyConverterState.displayValue = frequencyConverterStateDisplayValueDp.data; } } }); this.warnCodeActive = this.frequencyConverterStates.some(function (ds) { return ds.warnCode > 0; }) || this.controlUnitState.warnCode > 0; this.faultCodeActive = this.frequencyConverterStates.some(function (ds) { return ds.faultCode > 0; }) || this.controlUnitState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; } else { this.stateText = this._viewMode; this.highlight = false; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; HoistElectrical2m4wViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; HoistElectrical2m4wViewModel.naturalKeyWildcardControlUnitFaultCode = 'Hst_Positioning_Ctrl_Cu_1_FaultCode'; HoistElectrical2m4wViewModel.naturalKeyWildcardControlUnitWarnCode = 'Hst_Positioning_Ctrl_Cu_1_WarnCode'; HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlFaultCode = 'Hst_Positioning_Ctrl_Ctrl_$_FaultCode'; HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlWarnCode = 'Hst_Positioning_Ctrl_Ctrl_$_WarnCode'; HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlActSpeed = 'Hst_Positioning_Ctrl_Ctrl_$_ActSpeed'; HoistElectrical2m4wViewModel.naturalKeyWildcardCtrlActTorque = 'Hst_Positioning_Ctrl_Ctrl_$_ActTorque'; return HoistElectrical2m4wViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/deprecated/hoist-electrical-ctk.viewmodel.ts": /*!*********************************************************************!*\ !*** ./src/app/models/deprecated/hoist-electrical-ctk.viewmodel.ts ***! \*********************************************************************/ /*! exports provided: HoistElectricalCtkViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistElectricalCtkViewModel", function() { return HoistElectricalCtkViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); /** * @deprecated Use configurable svg page to create hoist pages */ var HoistElectricalCtkViewModel = /** @class */ (function (_super) { __extends(HoistElectricalCtkViewModel, _super); function HoistElectricalCtkViewModel(craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasHoist].components.filter(function (e) { return e.id === 'electrical-ctk'; })[0]) || this; _this.craneConfig = craneConfig; _this.driveStates = new Array(); _this.dcBusValue = 0; _this.cuState = new CUState(); _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this._drives = _this.singleDrive ? ['1'] : ['1', '2']; _this.stateText = 'initializing'; _this.valuesToBeDisplayed = displayValue; _this._drives.forEach(function (nr) { _this.driveStates.push(_this.defaultDriveState); }); _this.cuState = _this.defaultCUState; return _this; } Object.defineProperty(HoistElectricalCtkViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(HoistElectricalCtkViewModel.prototype, "defaultCUState", { get: function () { return { warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); HoistElectricalCtkViewModel.prototype.updateComponentConfig = function () { this.singleDrive = !this.isDeviceEnabled('frequency-converter-2'); }; Object.defineProperty(HoistElectricalCtkViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(HoistElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(HoistElectricalCtkViewModel.naturalKeyWildcardCUFaultCode); naturalKeys.push(HoistElectricalCtkViewModel.naturalKeyWildcardCUWarnCode); this._drives.forEach(function (nr) { naturalKeys.push(HoistElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(HoistElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(HoistElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(HoistElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); HoistElectricalCtkViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; HoistElectricalCtkViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(HoistElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(HoistElectricalCtkViewModel.naturalKeyWildcardCUWarnCode); if (cuStateWarnCodeDp != null) { this.cuState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(HoistElectricalCtkViewModel.naturalKeyWildcardCUFaultCode); if (cuStateFaultCodeDp != null) { this.cuState.faultCode = cuStateFaultCodeDp.data; } this._drives.forEach(function (nr, index) { var driveState = _this.driveStates[index]; var driveStateWarnCodeDp = _this._dataPoints.Get(HoistElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); if (driveStateWarnCodeDp != null) { driveState.warnCode = driveStateWarnCodeDp.data; } var driveStateFaultCodeDp = _this._dataPoints.Get(HoistElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); if (driveStateFaultCodeDp != null) { driveState.faultCode = driveStateFaultCodeDp.data; } switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: driveState.displayValueNaturalKey = HoistElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: driveState.displayValueNaturalKey = HoistElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState.displayValueNaturalKey) { var driveStateDisplayValueDp = _this._dataPoints.Get(driveState.displayValueNaturalKey); if (driveStateDisplayValueDp != null) { driveState.displayValue = driveStateDisplayValueDp.data; } } }); this.warnCodeActive = this.driveStates.some(function (ds) { return ds.warnCode > 0; }) || this.cuState.warnCode > 0; this.faultCodeActive = this.driveStates.some(function (ds) { return ds.faultCode > 0; }) || this.cuState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; } else { this.stateText = this._viewMode; this.highlight = false; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; HoistElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; HoistElectricalCtkViewModel.naturalKeyWildcardCUFaultCode = 'Hst_Positioning_Ctrl_Cu_1_FaultCode'; HoistElectricalCtkViewModel.naturalKeyWildcardCUWarnCode = 'Hst_Positioning_Ctrl_Cu_1_WarnCode'; HoistElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode = 'Hst_Positioning_Ctrl_Ctrl_$_FaultCode'; HoistElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode = 'Hst_Positioning_Ctrl_Ctrl_$_WarnCode'; HoistElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed = 'Hst_Positioning_Ctrl_Ctrl_$_ActSpeed'; HoistElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque = 'Hst_Positioning_Ctrl_Ctrl_$_ActTorque'; return HoistElectricalCtkViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/deprecated/hoist-electrical-rtg.viewmodel.ts": /*!*********************************************************************!*\ !*** ./src/app/models/deprecated/hoist-electrical-rtg.viewmodel.ts ***! \*********************************************************************/ /*! exports provided: HoistElectricalRtgViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistElectricalRtgViewModel", function() { return HoistElectricalRtgViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); /** * @deprecated Use configurable svg page to create hoist pages */ var HoistElectricalRtgViewModel = /** @class */ (function (_super) { __extends(HoistElectricalRtgViewModel, _super); function HoistElectricalRtgViewModel(craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasHoist].components.find(function (e) { return e.id === 'electrical-rtg'; })) || this; _this.craneConfig = craneConfig; _this._oneToEight = ['1', '2', '3', '4', '5', '6', '7', '8']; _this._oneToTwo = ['1', '2']; _this.driveStates = new Array(); _this.dcBusValue = 0; _this.cuStates = new Array(); _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.stateText = 'initializing'; _this.valuesToBeDisplayed = displayValue; _this._oneToEight.forEach(function (nr) { _this.driveStates.push(_this.defaultDriveState); }); _this._oneToTwo.forEach(function (nr) { _this.cuStates.push(_this.defaultCUState); }); return _this; } Object.defineProperty(HoistElectricalRtgViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(HoistElectricalRtgViewModel.prototype, "defaultCUState", { get: function () { return { warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); HoistElectricalRtgViewModel.prototype.updateComponentConfig = function () { }; Object.defineProperty(HoistElectricalRtgViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage); this._oneToTwo.forEach(function (nr) { naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCUFaultCode.replace('$', nr)); naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCUWarnCode.replace('$', nr)); }); this._oneToEight.forEach(function (nr) { naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage.replace('$', nr)); naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent.replace('$', nr)); naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency.replace('$', nr)); naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); HoistElectricalRtgViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; HoistElectricalRtgViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(HoistElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } this._oneToTwo.forEach(function (nr, index) { var cuState = _this.cuStates[index]; var cuStateWarnCodeDp = _this._dataPoints.Get(HoistElectricalRtgViewModel.naturalKeyWildcardCUWarnCode.replace('$', nr)); if (cuStateWarnCodeDp != null) { cuState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = _this._dataPoints.Get(HoistElectricalRtgViewModel.naturalKeyWildcardCUFaultCode.replace('$', nr)); if (cuStateFaultCodeDp != null) { cuState.faultCode = cuStateFaultCodeDp.data; } }); this._oneToEight.forEach(function (nr, index) { var driveState = _this.driveStates[index]; var driveStateWarnCodeDp = _this._dataPoints.Get(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); if (driveStateWarnCodeDp != null) { driveState.warnCode = driveStateWarnCodeDp.data; } var driveStateFaultCodeDp = _this._dataPoints.Get(HoistElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); if (driveStateFaultCodeDp != null) { driveState.faultCode = driveStateFaultCodeDp.data; } switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].OutputVoltage: driveState.displayValueNaturalKey = HoistElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActCurrent: driveState.displayValueNaturalKey = HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: driveState.displayValueNaturalKey = HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].OutputFrequency: driveState.displayValueNaturalKey = HoistElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: driveState.displayValueNaturalKey = HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState.displayValueNaturalKey) { var driveStateDisplayValueDp = _this._dataPoints.Get(driveState.displayValueNaturalKey); if (driveStateDisplayValueDp != null) { driveState.displayValue = driveStateDisplayValueDp.data; } } }); this.warnCodeActive = this.driveStates.some(function (ds) { return ds.warnCode > 0; }) || this.cuStates.some(function (ds) { return ds.warnCode > 0; }); this.faultCodeActive = this.driveStates.some(function (ds) { return ds.faultCode > 0; }) || this.cuStates.some(function (ds) { return ds.faultCode > 0; }); if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; } else { this.stateText = this._viewMode; this.highlight = false; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; HoistElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; HoistElectricalRtgViewModel.naturalKeyWildcardCUFaultCode = 'Hst_Positioning_Ctrl_Cu_$_FaultCode'; HoistElectricalRtgViewModel.naturalKeyWildcardCUWarnCode = 'Hst_Positioning_Ctrl_Cu_$_WarnCode'; HoistElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode = 'Hst_Positioning_Ctrl_Ctrl_$_FaultCode'; HoistElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode = 'Hst_Positioning_Ctrl_Ctrl_$_WarnCode'; HoistElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage = 'Hst_Positioning_Ctrl_Ctrl_$_OutputVoltage'; HoistElectricalRtgViewModel.naturalKeyWildcardCtrlDcLinkVoltage = 'Hst_Positioning_Ctrl_Ctrl_$_DcLinkVoltage'; HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent = 'Hst_Positioning_Ctrl_Ctrl_$_ActCurrent'; HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed = 'Hst_Positioning_Ctrl_Ctrl_$_ActSpeed'; HoistElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency = 'Hst_Positioning_Ctrl_Ctrl_$_OutputFrequency'; HoistElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque = 'Hst_Positioning_Ctrl_Ctrl_$_ActTorque'; return HoistElectricalRtgViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/deprecated/hoist-mechanical-2m4w.viewmodel.ts": /*!**********************************************************************!*\ !*** ./src/app/models/deprecated/hoist-mechanical-2m4w.viewmodel.ts ***! \**********************************************************************/ /*! exports provided: HoistMechanical2m4wViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistMechanical2m4wViewModel", function() { return HoistMechanical2m4wViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var BrakeState = /** @class */ (function () { function BrakeState() { } return BrakeState; }()); var MotorState = /** @class */ (function () { function MotorState() { } return MotorState; }()); var ComponentLabel = /** @class */ (function () { function ComponentLabel() { } return ComponentLabel; }()); var ValueContainer = /** @class */ (function () { function ValueContainer() { } return ValueContainer; }()); /** * @deprecated Use configurable svg page to create hoist pages */ var HoistMechanical2m4wViewModel = /** @class */ (function (_super) { __extends(HoistMechanical2m4wViewModel, _super); function HoistMechanical2m4wViewModel(craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasHoist].components.find(function (e) { return e.id === 'mechanical-2m4w'; })) || this; _this.craneConfig = craneConfig; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.speedPos = 0; _this.speedNeg = 0; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.speedLimitPositiveActive = false; _this.speedLimitNegativeActive = false; _this.interlockPositiveActive = false; _this.interlockNegativeActive = false; _this.releaseIsMissing = false; _this.driveStates = new Array(); _this.motorStates = new Array(); _this.engineBrakeStates = new Array(); _this.safetyBrakeStates = new Array(); _this.hasError = false; _this._motorLabels = [ { labelValue: '1', }, { labelValue: '2', }, ]; _this._safetyBrakeLabels = [ { labelValue: '1', }, { labelValue: '2', }, { labelValue: '3', }, { labelValue: '4', }, ]; _this._brakeLabels = [ { labelValue: '1', }, { labelValue: '2', }, { labelValue: '3', }, { labelValue: '4', }, ]; _this._gearBoxLabels = [ { labelValue: '1', }, { labelValue: '2', }, { labelValue: '3', }, { labelValue: '4', }, ]; _this._wireDrumLabels = [ { labelValue: '1', }, { labelValue: '2', }, { labelValue: '3', }, { labelValue: '4', }, ]; _this.valueContainers = [ { displayValue: 0, displayValueNaturalKey: '' }, { displayValue: 0, displayValueNaturalKey: '' }, { displayValue: 0, displayValueNaturalKey: '' }, { displayValue: 0, displayValueNaturalKey: '' }, ]; _this.stateText = 'initializing'; _this.liftHeight = 0.0; _this.tara = 0.0; _this.valuesToBeDisplayed = displayValue; _this.actualSpeed = 0.0; for (var index = 0; index < _this._gearBoxLabels.length; index++) { _this.driveStates.push(_this.defaultDriveState); } for (var index = 0; index < _this._brakeLabels.length; index++) { _this.engineBrakeStates.push(_this.defaultBrakeState); } for (var index = 0; index < _this._safetyBrakeLabels.length; index++) { _this.safetyBrakeStates.push(_this.defaultBrakeState); } for (var index = 0; index < _this._motorLabels.length; index++) { _this.motorStates.push(_this.defaultMotorState); } return _this; } Object.defineProperty(HoistMechanical2m4wViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(HoistMechanical2m4wViewModel.prototype, "defaultDriveState", { get: function () { return { driveAlert: false, gearTempValid: true, ropeForceValid: true, calcLoadValid: true, velocityValid: true, actPositionValid: true, displayValue: 0, displayValueNaturalKey: '' }; }, enumerable: true, configurable: true }); Object.defineProperty(HoistMechanical2m4wViewModel.prototype, "defaultBrakeState", { get: function () { return { brakeClosed: false, brakeOpened: false, brakeAlert: false }; }, enumerable: true, configurable: true }); Object.defineProperty(HoistMechanical2m4wViewModel.prototype, "defaultMotorState", { get: function () { return { motorRunning: false }; }, enumerable: true, configurable: true }); HoistMechanical2m4wViewModel.prototype.updateComponentConfig = function () { this.safetyBrake1 = this.isDeviceEnabled('safety-brake-1'); this.safetyBrake2 = this.isDeviceEnabled('safety-brake-2'); this.safetyBrake3 = this.isDeviceEnabled('safety-brake-3'); this.safetyBrake4 = this.isDeviceEnabled('safety-brake-4'); this.brake1 = this.isDeviceEnabled('brake-1'); this.brake2 = this.isDeviceEnabled('brake-2'); this.brake3 = this.isDeviceEnabled('brake-3'); this.brake4 = this.isDeviceEnabled('brake-4'); this.gearBox1 = this.isDeviceEnabled('gear-box-1'); this.gearBox2 = this.isDeviceEnabled('gear-box-2'); this.gearBox3 = this.isDeviceEnabled('gear-box-3'); this.gearBox4 = this.isDeviceEnabled('gear-box-4'); this.valueView1 = this.isDeviceEnabled('value-view-1'); this.valueView2 = this.isDeviceEnabled('value-view-2'); this.valueView3 = this.isDeviceEnabled('value-view-3'); this.valueView4 = this.isDeviceEnabled('value-view-4'); this.updateFooterValuesConfig(); }; HoistMechanical2m4wViewModel.prototype.updateFooterValuesConfig = function () { this.weightFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanical2m4wViewModel.naturalKeyHoistTara, description: 'load', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanical2m4wViewModel.naturalKeyHoistActEncSpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; this.heightFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanical2m4wViewModel.naturalKeyHoistLiftHeight, description: 'lift_height', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; }; HoistMechanical2m4wViewModel.prototype.getLiftHeightNaturalKey = function () { return HoistMechanical2m4wViewModel.naturalKeyHoistLiftHeight; }; Object.defineProperty(HoistMechanical2m4wViewModel.prototype, "naturalKeys", { get: function () { var _this = this; var naturalKeys = []; naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyHoistIsLifted); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyHoistLiftHeight); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyHoistTara); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyInterlockPosActive); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyInterlockNegActive); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyMaxSpeedPos); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyMaxSpeedNeg); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyHoistActEncSpeed); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeySpeedLimitPosActive); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeySpeedLimitNegActive); if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateIdle)) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateIdle); } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiPo)) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiPo); } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiNe)) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiNe); } if (this.valueView1 || this.valueView2) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistLoad.replace('$', this._motorLabels[0].labelValue)); } if (this.valueView3 || this.valueView4) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistLoad.replace('$', this._motorLabels[1].labelValue)); } if (this.safetyBrake1) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeClosed.replace('$', this._safetyBrakeLabels[0].labelValue)); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeOpened.replace('$', this._safetyBrakeLabels[0].labelValue)); } if (this.safetyBrake2) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeClosed.replace('$', this._safetyBrakeLabels[1].labelValue)); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeOpened.replace('$', this._safetyBrakeLabels[1].labelValue)); } if (this.safetyBrake3) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeClosed.replace('$', this._safetyBrakeLabels[2].labelValue)); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeOpened.replace('$', this._safetyBrakeLabels[2].labelValue)); } if (this.safetyBrake4) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeClosed.replace('$', this._safetyBrakeLabels[3].labelValue)); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeOpened.replace('$', this._safetyBrakeLabels[3].labelValue)); } if (this.brake1) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', this._brakeLabels[0].labelValue)); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', this._brakeLabels[0].labelValue)); } if (this.brake2) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', this._brakeLabels[1].labelValue)); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', this._brakeLabels[1].labelValue)); } if (this.brake3) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', this._brakeLabels[2].labelValue)); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', this._brakeLabels[2].labelValue)); } if (this.brake4) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', this._brakeLabels[3].labelValue)); naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', this._brakeLabels[3].labelValue)); } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(HoistMechanical2m4wViewModel.naturalKeyReleaseAutomaticIsMissing); } this._gearBoxLabels.forEach(function (gearBoxLabel) { var actTorque = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActTorque.replace('$', gearBoxLabel.labelValue); if (_this.isDatapointEnabled(actTorque)) { naturalKeys.push(actTorque); } }); this._motorLabels.forEach(function (motorLabel) { var actEncSpeed = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActEncSpeed.replace('$', motorLabel.labelValue); if (_this.isDatapointEnabled(actEncSpeed)) { naturalKeys.push(actEncSpeed); } }); this._wireDrumLabels.forEach(function (wireDrumLabel) { var actRopeForce = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActRopeForce.replace('$', wireDrumLabel.labelValue); if (_this.isDatapointEnabled(actRopeForce)) { naturalKeys.push(actRopeForce); } var actPosition = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActPosition.replace('$', wireDrumLabel.labelValue); if (_this.isDatapointEnabled(actPosition)) { naturalKeys.push(actPosition); } var actVelocity = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActVelocity.replace('$', wireDrumLabel.labelValue); if (_this.isDatapointEnabled(actVelocity)) { naturalKeys.push(actVelocity); } }); return naturalKeys; }, enumerable: true, configurable: true }); HoistMechanical2m4wViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateSpeedData(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateViewModel(); }; HoistMechanical2m4wViewModel.prototype.updateViewModel = function () { if (!this._dataPoints) { return; } this.isHoistLifted = this._dataPoints.UncheckedGet(HoistMechanical2m4wViewModel.naturalKeyHoistIsLifted).data; this.liftHeight = this._dataPoints.UncheckedGet(HoistMechanical2m4wViewModel.naturalKeyHoistLiftHeight).data; this.isLiftHeightValid = true; this.tara = this._dataPoints.UncheckedGet(HoistMechanical2m4wViewModel.naturalKeyHoistTara).data; this.updateSafetyBrakeStates(); this.updateBrakeStates(); this.updateDriveStates(); this.updateMotorStates(); this.updateValueContainers(); this.updateState(); this.updateFooterValues(); }; HoistMechanical2m4wViewModel.prototype.updateBrakeStates = function () { if (this.brake1) { this.updateBrakeState(this.engineBrakeStates, this._brakeLabels[0].labelValue, 0); } if (this.brake2) { this.updateBrakeState(this.engineBrakeStates, this._brakeLabels[1].labelValue, 1); } if (this.brake3) { this.updateBrakeState(this.engineBrakeStates, this._brakeLabels[2].labelValue, 2); } if (this.brake4) { this.updateBrakeState(this.engineBrakeStates, this._brakeLabels[3].labelValue, 3); } }; HoistMechanical2m4wViewModel.prototype.updateBrakeState = function (brakeStates, nr, index) { var brakeState = brakeStates[index]; var brakeOpenedDataPoint = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', nr)); if (brakeOpenedDataPoint != undefined) brakeState.brakeOpened = brakeOpenedDataPoint.data; var brakeClosedDataPoint = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', nr)); if (brakeClosedDataPoint != undefined) brakeState.brakeClosed = brakeClosedDataPoint.data; brakeState.brakeAlert = brakeState.brakeClosed && brakeState.brakeOpened; }; HoistMechanical2m4wViewModel.prototype.updateSafetyBrakeStates = function () { if (this.safetyBrake1) { this.updateSafetyBrakeState(this.safetyBrakeStates, this._safetyBrakeLabels[0].labelValue, 0); } if (this.safetyBrake2) { this.updateSafetyBrakeState(this.safetyBrakeStates, this._safetyBrakeLabels[1].labelValue, 1); } if (this.safetyBrake3) { this.updateSafetyBrakeState(this.safetyBrakeStates, this._safetyBrakeLabels[0].labelValue, 0); } if (this.safetyBrake4) { this.updateSafetyBrakeState(this.safetyBrakeStates, this._safetyBrakeLabels[1].labelValue, 1); } }; HoistMechanical2m4wViewModel.prototype.updateSafetyBrakeState = function (safetyBrakeStates, nr, index) { var safetyBrakeState = safetyBrakeStates[index]; var safetyBrakeOpenedDataPoint = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeOpened.replace('$', nr)); if (safetyBrakeOpenedDataPoint != undefined) safetyBrakeState.brakeOpened = safetyBrakeOpenedDataPoint.data; var safetyBrakeClosedDataPoint = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeClosed.replace('$', nr)); if (safetyBrakeClosedDataPoint != undefined) safetyBrakeState.brakeClosed = safetyBrakeClosedDataPoint.data; safetyBrakeState.brakeAlert = safetyBrakeState.brakeClosed && safetyBrakeState.brakeOpened; }; HoistMechanical2m4wViewModel.prototype.updateMotorStates = function () { for (var index = 0; index < this.motorStates.length; index++) { var motorState = this.motorStates[index]; var motorLabel = this._motorLabels[index].labelValue; var motorStateDatapoint = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', motorLabel)); if (motorStateDatapoint != undefined) motorState.motorRunning = motorStateDatapoint.data; } }; HoistMechanical2m4wViewModel.prototype.updateDriveStates = function () { for (var index = 0; index < this.driveStates.length; index++) { var driveState = this.driveStates[index]; driveState.ropeForceValid = true; driveState.velocityValid = true; driveState.calcLoadValid = true; driveState.gearTempValid = true; driveState.actPositionValid = true; driveState.driveAlert = !driveState.gearTempValid || !driveState.ropeForceValid || !driveState.velocityValid || !driveState.calcLoadValid || !driveState.actPositionValid; } }; HoistMechanical2m4wViewModel.prototype.updateValueContainers = function () { for (var index = 0; index < this.valueContainers.length; index++) { var valueContainer = this.valueContainers[index]; var motorLabel = this._motorLabels[Math.floor(index / 2)]; var gearBoxLabel = this._gearBoxLabels[index]; var wireDrumLabel = this._wireDrumLabels[index]; switch (this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].GearTemp: valueContainer.displayValueNaturalKey = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistGearTemp.replace('$', gearBoxLabel.labelValue); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].MotTemp: valueContainer.displayValueNaturalKey = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistMotTemp.replace('$', motorLabel.labelValue); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].Velocity: valueContainer.displayValueNaturalKey = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActVelocity.replace('$', motorLabel.labelValue); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].Load: valueContainer.displayValueNaturalKey = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistLoad.replace('$', wireDrumLabel.labelValue); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].Position: valueContainer.displayValueNaturalKey = HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActPosition.replace('$', wireDrumLabel.labelValue); break; default: valueContainer.displayValueNaturalKey = undefined; break; } if (valueContainer.displayValueNaturalKey != undefined) { var datapointItem = this._dataPoints.Get(valueContainer.displayValueNaturalKey); if (datapointItem != undefined) { valueContainer.displayValue = datapointItem.data; } } } }; HoistMechanical2m4wViewModel.prototype.updateState = function () { this.hasError = this.isInError(); if (this.hasError) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'lifts'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'lowers'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.motorStates.some(function (s) { return s.motorRunning; })) { this.stateText = 'active'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.hasError ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; }; HoistMechanical2m4wViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; HoistMechanical2m4wViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; HoistMechanical2m4wViewModel.prototype.isInError = function () { return this.safetyBrakeStates.some(function (sbs) { return sbs.brakeAlert; }) || this.engineBrakeStates.some(function (ebs) { return ebs.brakeAlert; }) || this.driveStates.some(function (ds) { return ds.driveAlert; }) || !this.isLiftHeightValid || (this.movePos && this.moveNeg); }; HoistMechanical2m4wViewModel.prototype.updateFooterValues = function () { this.weightFooterValue.value = this.tara; this.weightFooterValue.state = this.state; this.speedFooterValue.value = this.actualSpeed; this.speedFooterValue.state = this.state; this.heightFooterValue.value = this.liftHeight; this.heightFooterValue.state = this.state; }; HoistMechanical2m4wViewModel.prototype.updateSpeedIndication = function () { var isInterlockPositiveActiveDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyInterlockPosActive); this.interlockPositiveActive = isInterlockPositiveActiveDp != undefined ? isInterlockPositiveActiveDp.data : 0; var isInterlockNegativeActiveDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyInterlockNegActive); this.interlockNegativeActive = isInterlockNegativeActiveDp != undefined ? isInterlockNegativeActiveDp.data : 0; var isSpeedLimitPositiveActiveDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeySpeedLimitPosActive); this.speedLimitPositiveActive = isSpeedLimitPositiveActiveDp != undefined ? isSpeedLimitPositiveActiveDp.data : 0; var isSpeedLimitNegativeActiveDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeySpeedLimitNegActive); this.speedLimitNegativeActive = isSpeedLimitNegativeActiveDp != undefined ? isSpeedLimitNegativeActiveDp.data : 0; }; HoistMechanical2m4wViewModel.prototype.updateSpeedData = function () { var maxSpeedPosDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyMaxSpeedPos); this.maxSpeedPos = maxSpeedPosDp != undefined ? maxSpeedPosDp.data : 0; var maxSpeedNegDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyMaxSpeedNeg); this.maxSpeedNeg = maxSpeedNegDp != undefined ? maxSpeedNegDp.data : 0; if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateIdle); if (isIdleDp != undefined) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiPo); if (movePosDp != undefined) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiNe); if (moveNegDp != undefined) { this.moveNeg = moveNegDp.data; } } var speedDp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyHoistActEncSpeed); this.actualSpeed = speedDp != null ? Math.abs(speedDp.data) : 0; this.speedPos = this.movePos ? this.actualSpeed : 0; this.speedNeg = this.moveNeg ? this.actualSpeed : 0; }; HoistMechanical2m4wViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyRelease1IsMissing); if (dp != undefined) { release1 = dp.data; } } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyRelease2IsMissing); if (dp != undefined) { release2 = dp.data; } } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyRelease3IsMissing); if (dp != undefined) { release3 = dp.data; } } if (this.isDatapointEnabled(HoistMechanical2m4wViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(HoistMechanical2m4wViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != undefined) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; HoistMechanical2m4wViewModel.naturalKeyHoistIsLifted = 'Hst_Container_IsLifted'; HoistMechanical2m4wViewModel.naturalKeyHoistLiftHeight = 'Hst_PositionEval_ActLiftHeight'; HoistMechanical2m4wViewModel.naturalKeyHoistTara = 'Hst_LoadEval_ActLoadTara'; HoistMechanical2m4wViewModel.naturalKeyInterlockPosActive = 'Hst_Interlocks_IsInterlockPosDirActive'; HoistMechanical2m4wViewModel.naturalKeyInterlockNegActive = 'Hst_Interlocks_IsInterlockNegDirActive'; HoistMechanical2m4wViewModel.naturalKeyMaxSpeedPos = 'Hst_SpeedLimit_MaxSpeedPosDir'; HoistMechanical2m4wViewModel.naturalKeyMaxSpeedNeg = 'Hst_SpeedLimit_MaxSpeedNegDir'; HoistMechanical2m4wViewModel.naturalKeySpeedLimitPosActive = 'Hst_SpeedLimit_IsSpeedLimitPosDirActive'; HoistMechanical2m4wViewModel.naturalKeySpeedLimitNegActive = 'Hst_SpeedLimit_IsSpeedLimitNegDirActive'; HoistMechanical2m4wViewModel.naturalKeyHoistActEncSpeed = 'Hst_SpeedEval_ActEncSpeed'; HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateIdle = 'Hst_MovementEval_ActState_Idle'; HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiPo = 'Hst_MovementEval_ActState_RiPo'; HoistMechanical2m4wViewModel.naturalKeyHoistMovementEvalActStateRiNe = 'Hst_MovementEval_ActState_RiNe'; HoistMechanical2m4wViewModel.naturalKeyRelease1IsMissing = 'Hst_Release_1_PosDir_NegDir_IsMissing'; HoistMechanical2m4wViewModel.naturalKeyRelease2IsMissing = 'Hst_Release_2_PosDir_NegDir_IsMissing'; HoistMechanical2m4wViewModel.naturalKeyRelease3IsMissing = 'Hst_Release_3_PosDir_NegDir_IsMissing'; HoistMechanical2m4wViewModel.naturalKeyReleaseAutomaticIsMissing = 'Hst_Release_Automatic_PosDir_NegDir_IsMissing'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistLoad = 'Hst_LoadEval_ActLoad_$'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeOpened = 'Hst_Positioning_Ctrl_Ctrl_$_BrakeCtrl_IsOpened_1'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistBrakeClosed = 'Hst_Positioning_Ctrl_Ctrl_$_BrakeCtrl_IsClosed_1'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeOpened = 'Hst_Positioning_Ctrl_Ctrl_$_SafetyBrakeCtrl_IsOpened_1'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistSafetyBrakeClosed = 'Hst_Positioning_Ctrl_Ctrl_$_SafetyBrakeCtrl_IsClosed_1'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActTorque = 'Hst_Positioning_Ctrl_Ctrl_$_ActTorque'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActRopeForce = 'Hst_LoadEval_ActRopeForce_$'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActEncSpeed = 'Hst_SpeedEval_ActEncSpeed_$'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActPosition = 'Hst_PositionEval_ActPosition_$'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistActVelocity = 'Hst_SpeedEval_ActVelocity_$'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistGearTemp = 'Hst_Positioning_Ctrl_Ctrl_$_MotCtrl_ActGearTemp_1'; HoistMechanical2m4wViewModel.naturalKeyWildcardHoistMotTemp = 'Hst_Positioning_Ctrl_Ctrl_$_MotCtrl_ActMotTemp_1'; return HoistMechanical2m4wViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/deprecated/hoist-mechanical-ctk.viewmodel.ts": /*!*********************************************************************!*\ !*** ./src/app/models/deprecated/hoist-mechanical-ctk.viewmodel.ts ***! \*********************************************************************/ /*! exports provided: HoistMechanicalCtkViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistMechanicalCtkViewModel", function() { return HoistMechanicalCtkViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var BrakeState = /** @class */ (function () { function BrakeState() { } return BrakeState; }()); var MotorState = /** @class */ (function () { function MotorState() { } return MotorState; }()); /** * @deprecated Use configurable svg page to create hoist pages */ var HoistMechanicalCtkViewModel = /** @class */ (function (_super) { __extends(HoistMechanicalCtkViewModel, _super); function HoistMechanicalCtkViewModel(craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasHoist].components.find(function (e) { return e.id === 'mechanical-ctk'; })) || this; _this.craneConfig = craneConfig; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.speedPos = 0; _this.speedNeg = 0; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.speedLimitPositiveActive = false; _this.speedLimitNegativeActive = false; _this.interlockPositiveActive = false; _this.interlockNegativeActive = false; _this.releaseIsMissing = false; _this.driveStates = new Array(); _this.motorStates = new Array(); _this.engineBrakeStates = new Array(); _this.safetyBrakeStates = new Array(); _this.hasError = false; _this._oneToTwo = ['1', '2']; _this._leftToRight = ['Left', 'Right']; _this.stateText = 'initializing'; _this.liftHeight = 0.0; _this.tara = 0.0; _this.valuesToBeDisplayed = displayValue; _this.actualSpeed = 0.0; _this._oneToTwo.forEach(function () { _this.driveStates.push(_this.defaultDriveState); _this.motorStates.push(_this.defaultMotorState); _this.engineBrakeStates.push(_this.defaultBrakeState); _this.safetyBrakeStates.push(_this.defaultBrakeState); }); return _this; } Object.defineProperty(HoistMechanicalCtkViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(HoistMechanicalCtkViewModel.prototype, "defaultDriveState", { get: function () { return { driveAlert: false, gearTempValid: true, ropeForceValid: true, calcLoadValid: true, velocityValid: true, actPositionValid: true, displayValue: 0, displayValueNaturalKey: '' }; }, enumerable: true, configurable: true }); Object.defineProperty(HoistMechanicalCtkViewModel.prototype, "defaultBrakeState", { get: function () { return { brakeClosed: false, brakeOpened: false, brakeAlert: false }; }, enumerable: true, configurable: true }); Object.defineProperty(HoistMechanicalCtkViewModel.prototype, "defaultMotorState", { get: function () { return { motorRunning: false }; }, enumerable: true, configurable: true }); HoistMechanicalCtkViewModel.prototype.updateComponentConfig = function () { this.brakeLeft = this.isDeviceEnabled('brake-left'); this.brakeRight = this.isDeviceEnabled('brake-right'); this.safetyBrakeLeft = this.isDeviceEnabled('safety-brake-left'); this.safetyBrakeRight = this.isDeviceEnabled('safety-brake-right'); this.singleMotor = this.isDeviceEnabled('motor-center'); this.gearBoxLeft = this.isDeviceEnabled('gear-box-left'); this.gearBoxRight = this.isDeviceEnabled('gear-box-right'); this.textLabelLeft = this.isDeviceEnabled('text-label-left'); this.textLabelRight = this.isDeviceEnabled('text-label-right'); this.updateFooterValuesConfig(); }; HoistMechanicalCtkViewModel.prototype.updateFooterValuesConfig = function () { this.weightFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanicalCtkViewModel.naturalKeyHoistTara, description: 'load', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanicalCtkViewModel.naturalKeyHoistActEncSpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; this.heightFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanicalCtkViewModel.naturalKeyHoistLiftHeight, description: 'lift_height', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; }; HoistMechanicalCtkViewModel.prototype.getLiftHeightNaturalKey = function () { return HoistMechanicalCtkViewModel.naturalKeyHoistLiftHeight; }; Object.defineProperty(HoistMechanicalCtkViewModel.prototype, "naturalKeys", { get: function () { var _this = this; var naturalKeys = []; naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyHoistIsLifted); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyHoistLiftHeight); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyHoistTara); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyInterlockPosActive); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyInterlockNegActive); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyMaxSpeedPos); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyMaxSpeedNeg); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyHoistActEncSpeed); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeySpeedLimitPosActive); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeySpeedLimitNegActive); if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateIdle)) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateIdle); } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiPo)) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiPo); } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiNe)) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiNe); } if (this.textLabelLeft) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistLoad.replace('$', this._leftToRight[0])); } if (this.textLabelRight) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistLoad.replace('$', this._leftToRight[1])); } if (this.safetyBrakeLeft) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistSafetyBrakeClosed.replace('$', this._oneToTwo[0])); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistSafetyBrakeOpened.replace('$', this._oneToTwo[0])); } if (this.safetyBrakeRight) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistSafetyBrakeClosed.replace('$', this._oneToTwo[1])); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistSafetyBrakeOpened.replace('$', this._oneToTwo[1])); } if (this.brakeLeft) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', this._oneToTwo[0])); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', this._oneToTwo[0])); } if (this.brakeRight) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', this._oneToTwo[1])); naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', this._oneToTwo[1])); } if (this.gearBoxLeft) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActTorque.replace('$', this._oneToTwo[0])); } if (this.gearBoxRight) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActTorque.replace('$', this._oneToTwo[1])); } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(HoistMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing); } this._oneToTwo.forEach(function (nr, index) { var actEncSpeedLeftRight = HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActEncSpeedLeftRight.replace('$', nr); if (_this.isDatapointEnabled(actEncSpeedLeftRight)) { naturalKeys.push(actEncSpeedLeftRight); } var actRopeForce = HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActRopeForce.replace('$', nr); if (_this.isDatapointEnabled(actRopeForce)) { naturalKeys.push(actRopeForce); } var actPosition = HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActPosition.replace('$', nr); if (_this.isDatapointEnabled(actPosition)) { naturalKeys.push(actPosition); } }); return naturalKeys; }, enumerable: true, configurable: true }); HoistMechanicalCtkViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateSpeedData(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateViewModel(); }; HoistMechanicalCtkViewModel.prototype.updateViewModel = function () { var _this = this; if (!this._dataPoints) { return; } this.isHoistLifted = this._dataPoints.UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyHoistIsLifted).data; this.liftHeight = this._dataPoints.UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyHoistLiftHeight).data; this.isLiftHeightValid = true; this.tara = this._dataPoints.UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyHoistTara).data; if (this.safetyBrakeLeft) { this.updateSafetyBrakeStates(this.safetyBrakeStates, this._oneToTwo[0], 0); } if (this.safetyBrakeRight) { this.updateSafetyBrakeStates(this.safetyBrakeStates, this._oneToTwo[1], 1); } if (this.brakeLeft) { this.updateBrakeStates(this.engineBrakeStates, this._oneToTwo[0], 0); } if (this.brakeRight) { this.updateBrakeStates(this.engineBrakeStates, this._oneToTwo[1], 1); } this._oneToTwo.forEach(function (nr, index) { var motorState = _this.motorStates[index]; if (!_this.singleMotor || index === 0) { motorState.motorRunning = _this._dataPoints.UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', nr)).data; } var driveState = _this.driveStates[index]; driveState.ropeForceValid = true; driveState.velocityValid = true; driveState.calcLoadValid = true; driveState.gearTempValid = true; driveState.actPositionValid = true; driveState.driveAlert = !driveState.gearTempValid || !driveState.ropeForceValid || !driveState.velocityValid || !driveState.calcLoadValid || !driveState.actPositionValid; if ((_this.textLabelLeft && index === 0) || (_this.textLabelRight && index === 1)) { switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].Load: driveState.displayValueNaturalKey = HoistMechanicalCtkViewModel.naturalKeyWildcardHoistLoad.replace('$', _this._leftToRight[index]); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].Position: driveState.displayValueNaturalKey = HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActPosition.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (!!driveState.displayValueNaturalKey) { var datapointItem = _this._dataPoints.UncheckedGet(driveState.displayValueNaturalKey); if (!!datapointItem) { driveState.displayValue = _this._dataPoints.UncheckedGet(driveState.displayValueNaturalKey).data; } } } }); this.updateState(); this.updateFooterValues(); }; HoistMechanicalCtkViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.hasError = this.isInError(); if (this.hasError) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'lifts'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'lowers'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.motorStates.some(function (s) { return s.motorRunning; })) { this.stateText = 'active'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.hasError ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; }; HoistMechanicalCtkViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; HoistMechanicalCtkViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; HoistMechanicalCtkViewModel.prototype.isInError = function () { return this.safetyBrakeStates.some(function (sbs) { return sbs.brakeAlert; }) || this.engineBrakeStates.some(function (ebs) { return ebs.brakeAlert; }) || this.driveStates.some(function (ds) { return ds.driveAlert; }) || !this.isLiftHeightValid || (this.movePos && this.moveNeg); }; HoistMechanicalCtkViewModel.prototype.updateFooterValues = function () { this.weightFooterValue.value = this.tara; this.weightFooterValue.state = this.state; this.speedFooterValue.value = this.actualSpeed; this.speedFooterValue.state = this.state; this.heightFooterValue.value = this.liftHeight; this.heightFooterValue.state = this.state; }; HoistMechanicalCtkViewModel.prototype.updateBrakeStates = function (brakeStates, nr, index) { var brakeState = brakeStates[index]; brakeState.brakeOpened = this._dataPoints .UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', nr)).data; brakeState.brakeClosed = this._dataPoints .UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', nr)).data; brakeState.brakeAlert = brakeState.brakeClosed && brakeState.brakeOpened; }; HoistMechanicalCtkViewModel.prototype.updateSafetyBrakeStates = function (safetyBrakeStates, nr, index) { var safetyBrakeState = safetyBrakeStates[index]; safetyBrakeState.brakeOpened = this._dataPoints .UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistSafetyBrakeOpened.replace('$', nr)).data; safetyBrakeState.brakeClosed = this._dataPoints .UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyWildcardHoistSafetyBrakeClosed.replace('$', nr)).data; safetyBrakeState.brakeAlert = safetyBrakeState.brakeClosed && safetyBrakeState.brakeOpened; }; HoistMechanicalCtkViewModel.prototype.updateSpeedIndication = function () { var isInterlockPositiveActiveDp = this._dataPoints.UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyInterlockPosActive); this.interlockPositiveActive = !!isInterlockPositiveActiveDp ? isInterlockPositiveActiveDp.data : 0; var isInterlockNegativeActiveDp = this._dataPoints.UncheckedGet(HoistMechanicalCtkViewModel.naturalKeyInterlockNegActive); this.interlockNegativeActive = !!isInterlockNegativeActiveDp ? isInterlockNegativeActiveDp.data : 0; var isSpeedLimitPositiveActiveDp = this._dataPoints.UncheckedGet(HoistMechanicalCtkViewModel.naturalKeySpeedLimitPosActive); this.speedLimitPositiveActive = !!isSpeedLimitPositiveActiveDp ? isSpeedLimitPositiveActiveDp.data : 0; var isSpeedLimitNegativeActiveDp = this._dataPoints.UncheckedGet(HoistMechanicalCtkViewModel.naturalKeySpeedLimitNegActive); this.speedLimitNegativeActive = !!isSpeedLimitNegativeActiveDp ? isSpeedLimitNegativeActiveDp.data : 0; }; HoistMechanicalCtkViewModel.prototype.updateSpeedData = function () { var maxSpeedPosDp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyMaxSpeedPos); this.maxSpeedPos = maxSpeedPosDp != null ? maxSpeedPosDp.data : 0; var maxSpeedNegDp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyMaxSpeedNeg); this.maxSpeedNeg = maxSpeedNegDp != null ? maxSpeedNegDp.data : 0; if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } var speedDp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyHoistActEncSpeed); this.actualSpeed = speedDp != null ? Math.abs(speedDp.data) : 0; this.speedPos = this.movePos ? this.actualSpeed : 0; this.speedNeg = this.moveNeg ? this.actualSpeed : 0; }; HoistMechanicalCtkViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(HoistMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(HoistMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; HoistMechanicalCtkViewModel.naturalKeyHoistIsLifted = 'Hst_Container_IsLifted'; HoistMechanicalCtkViewModel.naturalKeyHoistLiftHeight = 'Hst_PositionEval_ActLiftHeight'; HoistMechanicalCtkViewModel.naturalKeyHoistTara = 'Hst_LoadEval_ActLoadTara'; HoistMechanicalCtkViewModel.naturalKeyInterlockPosActive = 'Hst_Interlocks_IsInterlockPosDirActive'; HoistMechanicalCtkViewModel.naturalKeyInterlockNegActive = 'Hst_Interlocks_IsInterlockNegDirActive'; HoistMechanicalCtkViewModel.naturalKeyMaxSpeedPos = 'Hst_SpeedLimit_MaxSpeedPosDir'; HoistMechanicalCtkViewModel.naturalKeyMaxSpeedNeg = 'Hst_SpeedLimit_MaxSpeedNegDir'; HoistMechanicalCtkViewModel.naturalKeySpeedLimitPosActive = 'Hst_SpeedLimit_IsSpeedLimitPosDirActive'; HoistMechanicalCtkViewModel.naturalKeySpeedLimitNegActive = 'Hst_SpeedLimit_IsSpeedLimitNegDirActive'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistLoad = 'Hst_LoadEval_ActLoad$'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeOpened = 'Hst_Positioning_Ctrl_Ctrl_$_BrakeCtrl_IsOpened_1'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistBrakeClosed = 'Hst_Positioning_Ctrl_Ctrl_$_BrakeCtrl_IsClosed_1'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistSafetyBrakeOpened = 'Hst_Positioning_Ctrl_Ctrl_$_SafetyBrakeCtrl_IsOpened_1'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistSafetyBrakeClosed = 'Hst_Positioning_Ctrl_Ctrl_$_SafetyBrakeCtrl_IsClosed_1'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActTorque = 'Hst_Positioning_Ctrl_Ctrl_$_ActTorque'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActRopeForce = 'Hst_LoadEval_ActRopeForce_$'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActEncSpeedLeftRight = 'Hst_SpeedEval_ActEncSpeed_$'; HoistMechanicalCtkViewModel.naturalKeyWildcardHoistActPosition = 'Hst_PositionEval_ActPosition_$'; HoistMechanicalCtkViewModel.naturalKeyHoistActEncSpeed = 'Hst_SpeedEval_ActEncSpeed'; HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateIdle = 'Hst_MovementEval_ActState_Idle'; HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiPo = 'Hst_MovementEval_ActState_RiPo'; HoistMechanicalCtkViewModel.naturalKeyHoistMovementEvalActStateRiNe = 'Hst_MovementEval_ActState_RiNe'; HoistMechanicalCtkViewModel.naturalKeyRelease1IsMissing = 'Hst_Release_1_PosDir_NegDir_IsMissing'; HoistMechanicalCtkViewModel.naturalKeyRelease2IsMissing = 'Hst_Release_2_PosDir_NegDir_IsMissing'; HoistMechanicalCtkViewModel.naturalKeyRelease3IsMissing = 'Hst_Release_3_PosDir_NegDir_IsMissing'; HoistMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing = 'Hst_Release_Automatic_PosDir_NegDir_IsMissing'; return HoistMechanicalCtkViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/deprecated/hoist-mechanical-rtg.viewmodel.ts": /*!*********************************************************************!*\ !*** ./src/app/models/deprecated/hoist-mechanical-rtg.viewmodel.ts ***! \*********************************************************************/ /*! exports provided: HoistMechanicalRtgViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistMechanicalRtgViewModel", function() { return HoistMechanicalRtgViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); /** * @deprecated Use configurable svg page to create hoist pages */ var HoistMechanicalRtgViewModel = /** @class */ (function (_super) { __extends(HoistMechanicalRtgViewModel, _super); function HoistMechanicalRtgViewModel(craneConfig, displayValue, _configService, _colorService) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasHoist].components.find(function (e) { return e.id === 'mechanical-rtg'; })) || this; _this.craneConfig = craneConfig; _this._configService = _configService; _this._colorService = _colorService; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.speedPos = 0; _this.speedNeg = 0; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.speedLimitPositiveActive = false; _this.speedLimitNegativeActive = false; _this.interlockPositiveActive = false; _this.interlockNegativeActive = false; _this.releaseIsMissing = false; _this.driveStates = new Array(); _this.hasError = false; _this._oneToEight = ['1', '2', '3', '4', '5', '6', '7', '8']; _this.stateText = 'initializing'; _this.liftHeight = 0.0; _this.tara = 0.0; _this.valuesToBeDisplayed = displayValue; _this.actualSpeed = 0.0; _this._oneToEight.forEach(function (nr) { _this.driveStates.push(_this.defaultDriveState); }); return _this; } Object.defineProperty(HoistMechanicalRtgViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(HoistMechanicalRtgViewModel.prototype, "defaultDriveState", { get: function () { return { motorRunning: false, brakeClosed: false, brakeOpened: true, brakeAlert: false, driveAlert: false, motorTempValid: true, gearTempValid: true, ropeForceValid: true, calcLoadValid: true, velocityValid: true, actPositionValid: true, displayValue: 0, displayValueNaturalKey: '', displayValueIsBool: false }; }, enumerable: true, configurable: true }); HoistMechanicalRtgViewModel.prototype.updateComponentConfig = function () { this.updateFooterValuesConfig(); }; HoistMechanicalRtgViewModel.prototype.updateFooterValuesConfig = function () { this.weightFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanicalRtgViewModel.naturalKeyHoistTara, description: 'load', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanicalRtgViewModel.naturalKeyHoistActEncSpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; this.heightFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: HoistMechanicalRtgViewModel.naturalKeyHoistLiftHeight, description: 'lift_height', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; }; HoistMechanicalRtgViewModel.prototype.getLiftHeightNaturalKey = function () { return HoistMechanicalRtgViewModel.naturalKeyHoistLiftHeight; }; HoistMechanicalRtgViewModel.prototype.getColorCode = function (driveState) { var naturalKey = driveState.displayValueNaturalKey; if (naturalKey != null && this.isBooleanValue(driveState.displayValue)) { var metaData = this._configService.craneConfig.datapointMetadata[naturalKey]; var _a = this._colorService.resolveColors(naturalKey, metaData), active = _a[0], inactive = _a[1]; return driveState.displayValue ? active : inactive; } return ''; }; Object.defineProperty(HoistMechanicalRtgViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyHoistIsLifted); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyHoistLiftHeight); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyHoistTara); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyInterlockPosActive); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyInterlockNegActive); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyMaxSpeedPos); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyMaxSpeedNeg); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyHoistActEncSpeed); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeySpeedLimitPosActive); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeySpeedLimitNegActive); if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateIdle)) { naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateIdle); } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiPo)) { naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiPo); } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiNe)) { naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiNe); } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing); } this._oneToEight.forEach(function (nr) { naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeAirGap.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistGearTemp.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistMotTemp.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActTorque.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActVelocity.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActRopeForce.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActPosition.replace('$', nr)); naturalKeys.push(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActCalcLoad.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); HoistMechanicalRtgViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateSpeedData(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateViewModel(); }; HoistMechanicalRtgViewModel.prototype.updateViewModel = function () { var _this = this; if (!this._dataPoints) { return; } this.isHoistLifted = this._dataPoints.UncheckedGet(HoistMechanicalRtgViewModel.naturalKeyHoistIsLifted).data; this.liftHeight = this._dataPoints.UncheckedGet(HoistMechanicalRtgViewModel.naturalKeyHoistLiftHeight).data; this.isLiftHeightValid = true; this.tara = this._dataPoints.UncheckedGet(HoistMechanicalRtgViewModel.naturalKeyHoistTara).data; this._oneToEight.forEach(function (nr, index) { var driveState = _this.driveStates[index]; driveState.brakeOpened = _this._dataPoints .UncheckedGet(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', nr)).data; driveState.brakeClosed = _this._dataPoints .UncheckedGet(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeClosed.replace('$', nr)).data; driveState.ropeForceValid = true; driveState.velocityValid = true; driveState.calcLoadValid = true; driveState.motorTempValid = true; driveState.gearTempValid = true; driveState.actPositionValid = true; driveState.driveAlert = !driveState.gearTempValid || !driveState.motorTempValid || !driveState.ropeForceValid || !driveState.velocityValid || !driveState.calcLoadValid || !driveState.actPositionValid; driveState.brakeAlert = driveState.brakeClosed && driveState.brakeOpened; driveState.motorRunning = !driveState.driveAlert && _this._dataPoints.UncheckedGet(HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeOpened.replace('$', nr)).data; switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].GearTemp: driveState.displayValueNaturalKey = HoistMechanicalRtgViewModel.naturalKeyWildcardHoistGearTemp.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].MotTemp: driveState.displayValueNaturalKey = HoistMechanicalRtgViewModel.naturalKeyWildcardHoistMotTemp.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].Velocity: driveState.displayValueNaturalKey = HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActVelocity.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].Load: driveState.displayValueNaturalKey = HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActCalcLoad.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].Position: driveState.displayValueNaturalKey = HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActPosition.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState != null && driveState.displayValueNaturalKey) { var datapoint = _this._dataPoints.Get(driveState.displayValueNaturalKey); if (datapoint != null && datapoint.data != null) { driveState.displayValue = datapoint.data; driveState.displayValueIsBool = _this.isBooleanValue(driveState.displayValue); } } }); this.updateState(); this.updateFooterValues(); }; HoistMechanicalRtgViewModel.prototype.isBooleanValue = function (value) { return typeof (value) === 'boolean'; }; HoistMechanicalRtgViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.hasError = this.isInError(); if (this.hasError) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'lifts'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'lowers'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.driveStates.some(function (s) { return s.motorRunning; })) { this.stateText = 'active'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.hasError ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; }; HoistMechanicalRtgViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; HoistMechanicalRtgViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; HoistMechanicalRtgViewModel.prototype.isInError = function () { return this.driveStates.some(function (ds) { return ds.brakeAlert; }) || this.driveStates.some(function (ds) { return ds.driveAlert; }) || !this.isLiftHeightValid || (this.movePos && this.moveNeg); }; HoistMechanicalRtgViewModel.prototype.updateFooterValues = function () { this.weightFooterValue.value = this.tara; this.weightFooterValue.state = this.state; this.speedFooterValue.value = this.actualSpeed; this.speedFooterValue.state = this.state; this.heightFooterValue.value = this.liftHeight; this.heightFooterValue.state = this.state; }; HoistMechanicalRtgViewModel.prototype.updateSpeedIndication = function () { var isInterlockPositiveActiveDp = this._dataPoints.UncheckedGet(HoistMechanicalRtgViewModel.naturalKeyInterlockPosActive); this.interlockPositiveActive = !!isInterlockPositiveActiveDp ? isInterlockPositiveActiveDp.data : 0; var isInterlockNegativeActiveDp = this._dataPoints.UncheckedGet(HoistMechanicalRtgViewModel.naturalKeyInterlockNegActive); this.interlockNegativeActive = !!isInterlockNegativeActiveDp ? isInterlockNegativeActiveDp.data : 0; var isSpeedLimitPositiveActiveDp = this._dataPoints.UncheckedGet(HoistMechanicalRtgViewModel.naturalKeySpeedLimitPosActive); this.speedLimitPositiveActive = !!isSpeedLimitPositiveActiveDp ? isSpeedLimitPositiveActiveDp.data : 0; var isSpeedLimitNegativeActiveDp = this._dataPoints.UncheckedGet(HoistMechanicalRtgViewModel.naturalKeySpeedLimitNegActive); this.speedLimitNegativeActive = !!isSpeedLimitNegativeActiveDp ? isSpeedLimitNegativeActiveDp.data : 0; }; HoistMechanicalRtgViewModel.prototype.updateSpeedData = function () { var maxSpeedPosDp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyMaxSpeedPos); this.maxSpeedPos = maxSpeedPosDp != null ? maxSpeedPosDp.data : 0; var maxSpeedNegDp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyMaxSpeedNeg); this.maxSpeedNeg = maxSpeedNegDp != null ? maxSpeedNegDp.data : 0; if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } var speedDp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyHoistActEncSpeed); this.actualSpeed = speedDp != null ? Math.abs(speedDp.data) : 0; this.speedPos = this.movePos ? this.actualSpeed : 0; this.speedNeg = this.moveNeg ? this.actualSpeed : 0; }; HoistMechanicalRtgViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(HoistMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(HoistMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; HoistMechanicalRtgViewModel.naturalKeyHoistIsLifted = 'Hst_Container_IsLifted'; HoistMechanicalRtgViewModel.naturalKeyHoistLiftHeight = 'Hst_PositionEval_ActLiftHeight'; HoistMechanicalRtgViewModel.naturalKeyHoistTara = 'Hst_LoadEval_ActLoadTara'; HoistMechanicalRtgViewModel.naturalKeyInterlockPosActive = 'Hst_Interlocks_IsInterlockPosDirActive'; HoistMechanicalRtgViewModel.naturalKeyInterlockNegActive = 'Hst_Interlocks_IsInterlockNegDirActive'; HoistMechanicalRtgViewModel.naturalKeyMaxSpeedPos = 'Hst_SpeedLimit_MaxSpeedPosDir'; HoistMechanicalRtgViewModel.naturalKeyMaxSpeedNeg = 'Hst_SpeedLimit_MaxSpeedNegDir'; HoistMechanicalRtgViewModel.naturalKeySpeedLimitPosActive = 'Hst_SpeedLimit_IsSpeedLimitPosDirActive'; HoistMechanicalRtgViewModel.naturalKeySpeedLimitNegActive = 'Hst_SpeedLimit_IsSpeedLimitNegDirActive'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeOpened = 'Hst_Positioning_Ctrl_Ctrl_$_BrakeCtrl_IsOpened_1'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeClosed = 'Hst_Positioning_Ctrl_Ctrl_$_BrakeCtrl_IsClosed_1'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistBrakeAirGap = 'Hst_Positioning_Ctrl_Ctrl_$_BrakeCtrl_ActAirGap_1'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistGearTemp = 'Hst_Positioning_Ctrl_Ctrl_$_MotCtrl_ActGearTemp_1'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistMotTemp = 'Hst_Positioning_Ctrl_Ctrl_$_MotCtrl_ActMotTemp_1'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActTorque = 'Hst_Positioning_Ctrl_Ctrl_$_ActTorque'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActRopeForce = 'Hst_LoadEval_ActRopeForce_$'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActVelocity = 'Hst_SpeedEval_ActVelocity_$'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActPosition = 'Hst_PositionEval_ActPosition_$'; HoistMechanicalRtgViewModel.naturalKeyWildcardHoistActCalcLoad = 'Hst_LoadEval_ActCalcLoad_$'; HoistMechanicalRtgViewModel.naturalKeyHoistActEncSpeed = 'Hst_SpeedEval_ActEncSpeed'; HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateIdle = 'Hst_MovementEval_ActState_Idle'; HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiPo = 'Hst_MovementEval_ActState_RiPo'; HoistMechanicalRtgViewModel.naturalKeyHoistMovementEvalActStateRiNe = 'Hst_MovementEval_ActState_RiNe'; HoistMechanicalRtgViewModel.naturalKeyRelease1IsMissing = 'Hst_Release_1_PosDir_NegDir_IsMissing'; HoistMechanicalRtgViewModel.naturalKeyRelease2IsMissing = 'Hst_Release_2_PosDir_NegDir_IsMissing'; HoistMechanicalRtgViewModel.naturalKeyRelease3IsMissing = 'Hst_Release_3_PosDir_NegDir_IsMissing'; HoistMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing = 'Hst_Release_Automatic_PosDir_NegDir_IsMissing'; return HoistMechanicalRtgViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/fullscreen-config.ts": /*!*********************************************!*\ !*** ./src/app/models/fullscreen-config.ts ***! \*********************************************/ /*! exports provided: FullscreenType, FullscreenConfig */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FullscreenType", function() { return FullscreenType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FullscreenConfig", function() { return FullscreenConfig; }); var FullscreenType; (function (FullscreenType) { FullscreenType[FullscreenType["PDF"] = 0] = "PDF"; FullscreenType[FullscreenType["PrintPreview"] = 1] = "PrintPreview"; FullscreenType[FullscreenType["AccountSettings"] = 2] = "AccountSettings"; FullscreenType[FullscreenType["AboutCMS"] = 3] = "AboutCMS"; FullscreenType[FullscreenType["DatapointValueLog"] = 4] = "DatapointValueLog"; })(FullscreenType || (FullscreenType = {})); // base data point, where data can be anything var FullscreenConfig = /** @class */ (function () { function FullscreenConfig(title, type) { this.title = title; this.type = type; } return FullscreenConfig; }()); /***/ }), /***/ "./src/app/models/gantry-card.viewmodel.ts": /*!*************************************************!*\ !*** ./src/app/models/gantry-card.viewmodel.ts ***! \*************************************************/ /*! exports provided: DistanceSensorState, LockState, GantryMotorState, TireState */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DistanceSensorState", function() { return DistanceSensorState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LockState", function() { return LockState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryMotorState", function() { return GantryMotorState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TireState", function() { return TireState; }); var DistanceSensorState; (function (DistanceSensorState) { DistanceSensorState[DistanceSensorState["Idle"] = 0] = "Idle"; DistanceSensorState[DistanceSensorState["Warning"] = 1] = "Warning"; DistanceSensorState[DistanceSensorState["Error"] = 2] = "Error"; })(DistanceSensorState || (DistanceSensorState = {})); var LockState = /** @class */ (function () { function LockState() { } return LockState; }()); var GantryMotorState; (function (GantryMotorState) { GantryMotorState[GantryMotorState["Idle"] = 0] = "Idle"; GantryMotorState[GantryMotorState["Running"] = 1] = "Running"; GantryMotorState[GantryMotorState["Error"] = 2] = "Error"; })(GantryMotorState || (GantryMotorState = {})); var TireState; (function (TireState) { TireState[TireState["Idle"] = 0] = "Idle"; TireState[TireState["Warning"] = 1] = "Warning"; TireState[TireState["Error"] = 2] = "Error"; })(TireState || (TireState = {})); /***/ }), /***/ "./src/app/models/gantry-electrical-ctk.viewmodel.ts": /*!***********************************************************!*\ !*** ./src/app/models/gantry-electrical-ctk.viewmodel.ts ***! \***********************************************************/ /*! exports provided: GantryElectricalCtkViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryElectricalCtkViewModel", function() { return GantryElectricalCtkViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); var GantryElectricalCtkViewModel = /** @class */ (function (_super) { __extends(GantryElectricalCtkViewModel, _super); function GantryElectricalCtkViewModel(_orientationService, craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasGantry].components.find(function (e) { return e.id === 'electrical-ctk'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this._positioningFreqConverters = ['1', '2']; _this.positioningDriveStates = new Array(); _this.dcBusValue = 0; _this.cuState = new CUState(); _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.valuesToBeDisplayed = displayValue; _this.stateText = 'initializing'; _this._positioningFreqConverters.forEach(function (nr) { _this.positioningDriveStates.push(_this.defaultDriveState); }); _this.cuState = _this.defaultCUState; _this.updateComponentConfig(); return _this; } Object.defineProperty(GantryElectricalCtkViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(GantryElectricalCtkViewModel.prototype, "defaultCUState", { get: function () { return { warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(GantryElectricalCtkViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipGantryVertical !== null) return this._orientationService.flipGantryVertical; return this._orientationService.isHingedPostForward === this._orientationService.isTrolleyForwardTop; // hingedPostOnTop }, enumerable: true, configurable: true }); Object.defineProperty(GantryElectricalCtkViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipGantryHorizontal !== null) return this._orientationService.flipGantryHorizontal; return !(this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight); // ascentSideRight }, enumerable: true, configurable: true }); GantryElectricalCtkViewModel.prototype.updateComponentConfig = function () { }; Object.defineProperty(GantryElectricalCtkViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(GantryElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(GantryElectricalCtkViewModel.naturalKeyCUFaultCode); naturalKeys.push(GantryElectricalCtkViewModel.naturalKeyCUWarnCode); this._positioningFreqConverters.forEach(function (nr) { naturalKeys.push(GantryElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(GantryElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(GantryElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(GantryElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); GantryElectricalCtkViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; GantryElectricalCtkViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(GantryElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(GantryElectricalCtkViewModel.naturalKeyCUFaultCode); if (cuStateFaultCodeDp != null) { this.cuState.faultCode = cuStateFaultCodeDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(GantryElectricalCtkViewModel.naturalKeyCUWarnCode); if (cuStateWarnCodeDp != null) { this.cuState.warnCode = cuStateWarnCodeDp.data; } this._positioningFreqConverters.forEach(function (nr, index) { var positioningDriveState = _this.positioningDriveStates[index]; var ctrlFaultCodeDp = _this._dataPoints.Get(GantryElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); if (ctrlFaultCodeDp != null) { positioningDriveState.faultCode = ctrlFaultCodeDp.data; } var ctrlWarnCodeDp = _this._dataPoints.Get(GantryElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); if (ctrlWarnCodeDp != null) { positioningDriveState.warnCode = ctrlWarnCodeDp.data; } switch (_this.valuesToBeDisplayed) { case _types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: positioningDriveState.displayValueNaturalKey = GantryElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque .replace('$', nr); break; case _types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: positioningDriveState.displayValueNaturalKey = GantryElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed .replace('$', nr); break; default: positioningDriveState.displayValueNaturalKey = undefined; break; } if (positioningDriveState.displayValueNaturalKey) { var positioningDisplayValueDp = _this._dataPoints.Get(positioningDriveState.displayValueNaturalKey); if (positioningDisplayValueDp != null) { positioningDriveState.displayValue = positioningDisplayValueDp.data; } } }); this.warnCodeActive = this.positioningDriveStates.some(function (ds) { return ds.warnCode > 0; }) || this.cuState.warnCode > 0; this.faultCodeActive = this.positioningDriveStates.some(function (ds) { return ds.faultCode > 0; }) || this.cuState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; this.isIdle = false; } else { this.stateText = this._viewMode; this.highlight = false; this.isIdle = true; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; GantryElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; GantryElectricalCtkViewModel.naturalKeyCUFaultCode = 'Gnt_Positioning_Ctrl_Cu_FaultCode'; GantryElectricalCtkViewModel.naturalKeyCUWarnCode = 'Gnt_Positioning_Ctrl_Cu_WarnCode'; GantryElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode = 'Gnt_Positioning_Ctrl_Ctrl_$_FaultCode'; GantryElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode = 'Gnt_Positioning_Ctrl_Ctrl_$_WarnCode'; GantryElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed = 'Gnt_Positioning_Ctrl_Ctrl_$_ActSpeed'; GantryElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque = 'Gnt_Positioning_Ctrl_Ctrl_$_ActTorque'; return GantryElectricalCtkViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/gantry-electrical-rtg.viewmodel.ts": /*!***********************************************************!*\ !*** ./src/app/models/gantry-electrical-rtg.viewmodel.ts ***! \***********************************************************/ /*! exports provided: GantryElectricalRtgViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryElectricalRtgViewModel", function() { return GantryElectricalRtgViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); var GantryElectricalRtgViewModel = /** @class */ (function (_super) { __extends(GantryElectricalRtgViewModel, _super); function GantryElectricalRtgViewModel(_orientationService, craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasGantry].components.filter(function (e) { return e.id === 'electrical-rtg'; })[0]) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this._positioningFreqConverters = ['1', '2']; _this._wheelSteeringFreqConverters = ['1', '2', '3', '4']; _this.positioningDriveStates = new Array(); _this.wheelSteeringDriveStates = new Array(); _this.cuState = { warnCode: 0, faultCode: 0 }; _this.dcBusValue = 0; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.stateText = 'initializing'; _this._positioningFreqConverters.forEach(function (nr) { _this.positioningDriveStates.push(_this.defaultDriveState); }); _this._wheelSteeringFreqConverters.forEach(function (nr) { _this.wheelSteeringDriveStates.push(_this.defaultDriveState); }); _this.valuesToBeDisplayed = displayValue; _this.updateComponentConfig(); return _this; } Object.defineProperty(GantryElectricalRtgViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(GantryElectricalRtgViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipGantryHorizontal !== null) return this._orientationService.flipGantryHorizontal; return !(this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight); // ascentSideRight }, enumerable: true, configurable: true }); Object.defineProperty(GantryElectricalRtgViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipGantryVertical !== null) return this._orientationService.flipGantryVertical; return this._orientationService.isElectricalSideForward === this._orientationService.isTrolleyForwardTop; // electricalSideTop }, enumerable: true, configurable: true }); GantryElectricalRtgViewModel.prototype.updateComponentConfig = function () { }; Object.defineProperty(GantryElectricalRtgViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyCUFaultCode); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyCUWarnCode); this._positioningFreqConverters.forEach(function (nr) { naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); this._wheelSteeringFreqConverters.forEach(function (nr) { naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringFaultCode.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringWarnCode.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringOutputVoltage.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActCurrent.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringOutputFrequency.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActTorque.replace('$', nr)); naturalKeys.push(GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActSpeed.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); GantryElectricalRtgViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; GantryElectricalRtgViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(GantryElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(GantryElectricalRtgViewModel.naturalKeyCUWarnCode); if (cuStateWarnCodeDp != null) { this.cuState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(GantryElectricalRtgViewModel.naturalKeyCUFaultCode); if (cuStateFaultCodeDp != null) { this.cuState.faultCode = cuStateFaultCodeDp.data; } this._positioningFreqConverters.forEach(function (nr, index) { _this.updateDriveState(_this.positioningDriveStates[index], GantryElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); this._wheelSteeringFreqConverters.forEach(function (nr, index) { _this.updateDriveState(_this.wheelSteeringDriveStates[index], GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringWarnCode.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringFaultCode.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringOutputVoltage.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActCurrent.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActTorque.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringOutputFrequency.replace('$', nr), GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActSpeed.replace('$', nr)); }); this.warnCodeActive = this.positioningDriveStates.some(function (ds) { return ds.warnCode > 0; }) || this.wheelSteeringDriveStates.some(function (ds) { return ds.warnCode > 0; }) || this.cuState.warnCode > 0; this.faultCodeActive = this.positioningDriveStates.some(function (ds) { return ds.faultCode > 0; }) || this.wheelSteeringDriveStates.some(function (ds) { return ds.faultCode > 0; }) || this.cuState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; this.isIdle = false; } else { this.stateText = this._viewMode; this.highlight = false; this.isIdle = true; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; GantryElectricalRtgViewModel.prototype.updateDriveState = function (driveState, nkWarnCode, nkFaultCode, nkOutputVoltage, nkActCurrent, nkActTorque, nkOutputFrequency, nkActSpeed) { var driveStateWarnCodeDp = this._dataPoints.Get(nkWarnCode); if (driveStateWarnCodeDp != null) { driveState.warnCode = driveStateWarnCodeDp.data; } var driveStateFaultCodeDp = this._dataPoints.Get(nkFaultCode); if (driveStateFaultCodeDp != null) { driveState.faultCode = driveStateFaultCodeDp.data; } switch (this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].OutputVoltage: driveState.displayValueNaturalKey = nkOutputVoltage; break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActCurrent: driveState.displayValueNaturalKey = nkActCurrent; break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: driveState.displayValueNaturalKey = nkActTorque; break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].OutputFrequency: driveState.displayValueNaturalKey = nkOutputFrequency; break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: driveState.displayValueNaturalKey = nkActSpeed; break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState.displayValueNaturalKey) { var driveStateDisplayValueDp = this._dataPoints.Get(driveState.displayValueNaturalKey); if (driveStateDisplayValueDp != null) { driveState.displayValue = driveStateDisplayValueDp.data; } } }; GantryElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; GantryElectricalRtgViewModel.naturalKeyCUFaultCode = 'Gnt_Positioning_Ctrl_Cu_FaultCode'; GantryElectricalRtgViewModel.naturalKeyCUWarnCode = 'Gnt_Positioning_Ctrl_Cu_WarnCode'; GantryElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode = 'Gnt_Positioning_Ctrl_Ctrl_$_FaultCode'; GantryElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode = 'Gnt_Positioning_Ctrl_Ctrl_$_WarnCode'; GantryElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage = 'Gnt_Positioning_Ctrl_Ctrl_$_OutputVoltage'; GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent = 'Gnt_Positioning_Ctrl_Ctrl_$_ActCurrent'; GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed = 'Gnt_Positioning_Ctrl_Ctrl_$_ActSpeed'; GantryElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency = 'Gnt_Positioning_Ctrl_Ctrl_$_OutputFrequency'; GantryElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque = 'Gnt_Positioning_Ctrl_Ctrl_$_ActTorque'; GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringFaultCode = 'Wst_WheelSteering_Positioning_Positioning_$_Ctrl_Ctrl_1_FaultCode'; GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringWarnCode = 'Wst_WheelSteering_Positioning_Positioning_$_Ctrl_Ctrl_1_WarnCode'; GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringOutputVoltage = 'Wst_WheelSteering_Positioning_Positioning_$_Ctrl_Ctrl_1_OutputVoltage'; GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActCurrent = 'Wst_WheelSteering_Positioning_Positioning_$_Ctrl_Ctrl_1_ActCurrent'; GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActSpeed = 'Wst_WheelSteering_Positioning_Positioning_$_Ctrl_Ctrl_1_ActSpeed'; GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringOutputFrequency = 'Wst_WheelSteering_Positioning_Positioning_$_Ctrl_Ctrl_1_OutputFrequency'; GantryElectricalRtgViewModel.naturalKeyWildcardWheelSteeringActTorque = 'Wst_WheelSteering_Positioning_Positioning_$_Ctrl_Ctrl_1_ActTorque'; return GantryElectricalRtgViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/gantry-mechanical-ctk.viewmodel.ts": /*!***********************************************************!*\ !*** ./src/app/models/gantry-mechanical-ctk.viewmodel.ts ***! \***********************************************************/ /*! exports provided: GantryMechanicalCtkViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryMechanicalCtkViewModel", function() { return GantryMechanicalCtkViewModel; }); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../pipes/unit-system-convert.pipe */ "./src/app/pipes/unit-system-convert.pipe.ts"); /* harmony import */ var _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./gantry-card.viewmodel */ "./src/app/models/gantry-card.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var GantryMechanicalCtkViewModel = /** @class */ (function (_super) { __extends(GantryMechanicalCtkViewModel, _super); function GantryMechanicalCtkViewModel(_orientationService, craneConfig) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasGantry].components.find(function (e) { return e.id === 'mechanical-ctk'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__["StateIndication"].Ok; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.sensorState = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_7__["DistanceSensorState"]; _this.distanceSensorStates = []; _this.lockStates = []; _this.isCableReelPresent = false; _this.isNeighbourCranePosDirPresent = false; _this.isNeighbourCraneNegDirPresent = false; _this.isFixedPostClosedRailClampEnabled = false; _this.isHingedPostClosedRailClampEnabled = false; _this._fpToHp = ['FixedPost', 'HingedPost']; _this._fpFreeSideToHpAscentSide = ['FP_FreeSide', 'FP_AscentSide', 'HP_FreeSide', 'HP_AscentSide']; _this._currentUnitSystem = types_config__WEBPACK_IMPORTED_MODULE_5__["UnitSystem"].Metric; _this.stateText = 'initializing'; _this.position = 0.0; _this.speed = 0.0; _this._fpToHp.forEach(function (nr) { return _this.lockStates.push(new _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_7__["LockState"]()); }); _this._fpFreeSideToHpAscentSide.forEach(function (nr) { return _this.distanceSensorStates.push(_gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_7__["DistanceSensorState"].Idle); }); _this.updateComponentConfig(); return _this; } Object.defineProperty(GantryMechanicalCtkViewModel.prototype, "isMoving", { get: function () { return this.moveNeg !== this.movePos && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalCtkViewModel.prototype, "isPositiveDirectionOnRight", { get: function () { return !this._orientationService.isGantryForwardRight; }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalCtkViewModel.prototype, "flipCableReelLeft", { get: function () { return this._orientationService.isCableReelLeft; }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalCtkViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipGantryHorizontal !== null) return this._orientationService.flipGantryHorizontal; return !(this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight); // ascentSideRight }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalCtkViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipGantryVertical !== null) return this._orientationService.flipGantryVertical; return this._orientationService.isHingedPostForward === this._orientationService.isTrolleyForwardTop; // hingedPostOnTop }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalCtkViewModel.prototype, "isCollisionAvoidanceSystemActive", { get: function () { return this.isNeighbourCranePosDirPresent || this.isNeighbourCraneNegDirPresent; }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalCtkViewModel.prototype, "unitSystem", { set: function (value) { this._currentUnitSystem = value; }, enumerable: true, configurable: true }); GantryMechanicalCtkViewModel.prototype.updateComponentConfig = function () { this.distanceSensors = this.isDeviceEnabled('distance-sensor-1') && this.isDeviceEnabled('distance-sensor-2') && this.isDeviceEnabled('distance-sensor-3') && this.isDeviceEnabled('distance-sensor-4'); this.windLockFp = this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryPositioningWindlockFPIsClosed); this.windLockHp = this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryPositioningWindlockHPIsClosed); this.isCableReelPresent = this.isDeviceEnabled('cable-reel'); this.isFixedPostLockingDevicePresent = this.isDeviceEnabled('rail-lock-rear'); this.isHingedPostLockingDevicePresent = this.isDeviceEnabled('rail-lock-front'); this.updateFooterValuesConfig(); }; GantryMechanicalCtkViewModel.prototype.updateFooterValuesConfig = function () { this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__["StateIndication"].Idle }; this.positionFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: GantryMechanicalCtkViewModel.naturalKeyGantryTravelingPosition, description: 'position', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__["StateIndication"].Idle }; }; Object.defineProperty(GantryMechanicalCtkViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingPosition); naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeed); naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingInterlockPosActive); naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingInterlockNegActive); naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingMaxSpeedPos); naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingMaxSpeedNeg); naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeedLimitPosActive); naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeedLimitNegActive); if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningRailClampClosed.replace('$', this._fpToHp[0]))) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningRailClampClosed.replace('$', this._fpToHp[0])); this.isFixedPostClosedRailClampEnabled = true; } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningRailClampClosed.replace('$', this._fpToHp[1]))) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningRailClampClosed.replace('$', this._fpToHp[1])); this.isHingedPostClosedRailClampEnabled = true; } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateIdle)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateIdle); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiPo)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiPo); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiNe)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiNe); } if (this.windLockFp) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningWindlockIsClosed.replace('$', this._fpToHp[0])); } if (this.windLockHp) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningWindlockIsClosed.replace('$', this._fpToHp[1])); } if (this.distanceSensors) { this._fpFreeSideToHpAscentSide.forEach(function (nr) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningDistanceSensorWarning.replace('$', nr)); naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningDistanceSensorAlert.replace('$', nr)); }); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyNeighbourCranePosDirIsPresent)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyNeighbourCranePosDirIsPresent); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyNeighbourCraneNegDirIsPresent)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyNeighbourCraneNegDirIsPresent); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosSlowdown)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosSlowdown); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosStop)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosStop); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCranePos)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCranePos); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegSlowdown)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegSlowdown); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegStop)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegStop); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCraneNeg)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCraneNeg); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(GantryMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing); } return naturalKeys; }, enumerable: true, configurable: true }); GantryMechanicalCtkViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; GantryMechanicalCtkViewModel.prototype.updateViewModel = function () { if (!this._dataPoints) { return; } this.updatePositionData(); this.updateSpeedData(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateState(); this.updateLocks(); if (this.distanceSensors) { this.updateDistanceSensor(); } this.updateNeighbourCranePresence(); if (this.isCollisionAvoidanceSystemActive) { this.updateCollisionDetection(); this.updateCollisionDistanceToNeighbourCranes(); } this.updateFooterValues(); }; GantryMechanicalCtkViewModel.prototype.updateFooterValues = function () { this.speedFooterValue.value = this.speed; this.speedFooterValue.state = this.state; this.positionFooterValue.value = this.position; this.positionFooterValue.state = this.state; }; GantryMechanicalCtkViewModel.prototype.updateSpeedData = function () { var maxSpeedPosDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingMaxSpeedPos); this.maxSpeedPos = maxSpeedPosDp != null ? maxSpeedPosDp.data : 0; var maxSpeedNegDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingMaxSpeedNeg); this.maxSpeedNeg = maxSpeedNegDp != null ? maxSpeedNegDp.data : 0; if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } var speedDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeed); this.speed = speedDp != null ? Math.abs(speedDp.data) : 0; this.speedPos = this.movePos ? this.speed : 0; this.speedNeg = this.moveNeg ? this.speed : 0; }; GantryMechanicalCtkViewModel.prototype.updatePositionData = function () { this.position = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingPosition) .data; }; GantryMechanicalCtkViewModel.prototype.updateSpeedIndication = function () { this.interlockPositiveActive = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingInterlockPosActive) .data; this.interlockNegativeActive = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingInterlockNegActive) .data; this.speedLimitPositiveActive = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeedLimitPosActive) .data; this.speedLimitNegativeActive = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeedLimitNegActive) .data; }; GantryMechanicalCtkViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; GantryMechanicalCtkViewModel.prototype.updateDistanceSensor = function () { var _this = this; this._fpFreeSideToHpAscentSide.forEach(function (nr, index) { var warning = _this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningDistanceSensorWarning.replace('$', nr)).data; var error = _this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningDistanceSensorAlert.replace('$', nr)).data; _this.distanceSensorStates[index] = error ? _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_7__["DistanceSensorState"].Error : warning ? _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_7__["DistanceSensorState"].Warning : _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_7__["DistanceSensorState"].Idle; }); }; GantryMechanicalCtkViewModel.prototype.updateNeighbourCranePresence = function () { if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyNeighbourCranePosDirIsPresent)) { var isNeighbourCranePosDirPresentDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyNeighbourCranePosDirIsPresent); this.isNeighbourCranePosDirPresent = isNeighbourCranePosDirPresentDp != null ? isNeighbourCranePosDirPresentDp.data : false; } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyNeighbourCraneNegDirIsPresent)) { var isNeighbourCraneNegDirPresentDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyNeighbourCraneNegDirIsPresent); this.isNeighbourCraneNegDirPresent = isNeighbourCraneNegDirPresentDp != null ? isNeighbourCraneNegDirPresentDp.data : false; } }; GantryMechanicalCtkViewModel.prototype.updateCollisionDistanceToNeighbourCranes = function () { if (this.isNeighbourCranePosDirPresent) { if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCranePos)) { var collisionAvoidanceDistancePosDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCranePos); this.collisionAvoidanceDistancePos = collisionAvoidanceDistancePosDp != null ? collisionAvoidanceDistancePosDp.data : 0; } } if (this.isNeighbourCraneNegDirPresent) { if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCraneNeg)) { var collisionAvoidanceDistanceNegDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCraneNeg); this.collisionAvoidanceDistanceNeg = collisionAvoidanceDistanceNegDp != null ? collisionAvoidanceDistanceNegDp.data : 0; } } }; GantryMechanicalCtkViewModel.prototype.updateCollisionDetection = function () { if (this.isNeighbourCranePosDirPresent) { if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosSlowdown)) { var collisionAvoidancePositiveSlowdownDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosSlowdown); this.collisionAvoidancePositiveSlowdown = collisionAvoidancePositiveSlowdownDp != null ? collisionAvoidancePositiveSlowdownDp.data : false; } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosStop)) { var collisionAvoidancePositiveStopDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosStop); this.collisionAvoidancePositiveStop = collisionAvoidancePositiveStopDp != null ? collisionAvoidancePositiveStopDp.data : false; } } if (this.isNeighbourCraneNegDirPresent) { if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegSlowdown)) { var collisionAvoidanceNegativeSlowdownDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegSlowdown); this.collisionAvoidanceNegativeSlowdown = collisionAvoidanceNegativeSlowdownDp != null ? collisionAvoidanceNegativeSlowdownDp.data : false; } if (this.isDatapointEnabled(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegStop)) { var collisionAvoidanceNegativeStopDp = this._dataPoints.Get(GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegStop); this.collisionAvoidanceNegativeStop = collisionAvoidanceNegativeStopDp != null ? collisionAvoidanceNegativeStopDp.data : false; } } }; GantryMechanicalCtkViewModel.prototype.updateLocks = function () { if (this.isFixedPostClosedRailClampEnabled) { this.lockStates[0].RailclampLocked = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningRailClampClosed.replace('$', this._fpToHp[0])) .data; } if (this.isHingedPostClosedRailClampEnabled) { this.lockStates[1].RailclampLocked = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningRailClampClosed.replace('$', this._fpToHp[1])) .data; } if (this.windLockFp) { this.lockStates[0].WindlockLocked = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningWindlockIsClosed.replace('$', this._fpToHp[0])) .data; } if (this.windLockHp) { this.lockStates[1].WindlockLocked = this._dataPoints .UncheckedGet(GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningWindlockIsClosed.replace('$', this._fpToHp[1])) .data; } this.isLockClosed = this.lockStates.some(function (i) { return i.RailclampLocked || i.WindlockLocked; }); }; GantryMechanicalCtkViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.error = this.isInError(); if (this.error) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'moving_forwards'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'moving_backwards'; this.highlight = true; } else if (!this.isMoving && !this.isIdle) { this.stateText = 'active'; this.highlight = true; } else if (this.lockStates.some(function (s) { return s.WindlockLocked; })) { this.stateText = 'wind_locks_activated'; this.highlight = true; } else if (this.lockStates.some(function (s) { return s.RailclampLocked; })) { this.stateText = 'rail_clamp_activated'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_8__["StateIndication"].Ok; }; GantryMechanicalCtkViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; GantryMechanicalCtkViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; GantryMechanicalCtkViewModel.prototype.isInError = function () { return this.distanceSensorStates.some(function (s) { return s === _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_7__["DistanceSensorState"].Error; }); }; GantryMechanicalCtkViewModel.prototype.initUnitConversion = function (unitConversionService, unitKeyService, translationService) { this._currentLanguage = translationService.currentLanguage; if (!this._unitSystemConvertPipe) { var unitSystemBaseConvertPipe = new app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_3__["UnitSystemBaseConvertPipe"](unitConversionService); var unitSystemNumericConvertPipe = new app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_4__["UnitSystemNumericConvertPipe"](unitConversionService, unitKeyService, unitSystemBaseConvertPipe); var l10nDecimalPipe = new angular_l10n__WEBPACK_IMPORTED_MODULE_0__["L10nDecimalPipe"](); this._unitSystemConvertPipe = new _pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_6__["UnitSystemConvertPipe"](unitConversionService, unitKeyService, unitSystemNumericConvertPipe, translationService, l10nDecimalPipe); } }; GantryMechanicalCtkViewModel.naturalKeyGantryTravelingPosition = 'Gnt_PositionEval_ActPosition'; GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeed = 'Gnt_SpeedEval_ActVelocity'; GantryMechanicalCtkViewModel.naturalKeyGantryPositioningBrakeClosed = 'Gnt_Positioning_IsBrakeClosed'; GantryMechanicalCtkViewModel.naturalKeyGantryTravelingInterlockPosActive = 'Gnt_Interlocks_IsInterlockPosDirActive'; GantryMechanicalCtkViewModel.naturalKeyGantryTravelingInterlockNegActive = 'Gnt_Interlocks_IsInterlockNegDirActive'; GantryMechanicalCtkViewModel.naturalKeyGantryTravelingMaxSpeedPos = 'Gnt_SpeedLimit_MaxSpeedPosDir'; GantryMechanicalCtkViewModel.naturalKeyGantryTravelingMaxSpeedNeg = 'Gnt_SpeedLimit_MaxSpeedNegDir'; GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeedLimitPosActive = 'Gnt_SpeedLimit_IsSpeedLimitPosDirActive'; GantryMechanicalCtkViewModel.naturalKeyGantryTravelingSpeedLimitNegActive = 'Gnt_SpeedLimit_IsSpeedLimitNegDirActive'; GantryMechanicalCtkViewModel.naturalKeyGantryPositioningWindlockFPIsClosed = 'Gnt_Positioning_WindLock_FixedPost_IsClosed'; GantryMechanicalCtkViewModel.naturalKeyGantryPositioningWindlockHPIsClosed = 'Gnt_Positioning_WindLock_HingedPost_IsClosed'; GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningRailClampClosed = 'Gnt_RailClamp_$_Closed'; GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningWindlockIsClosed = 'Gnt_Positioning_WindLock_$_IsClosed'; GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningDistanceSensorWarning = 'Gnt_Positioning_DistanceSensor_$_Warning'; GantryMechanicalCtkViewModel.naturalKeyWildcardGantryPositioningDistanceSensorAlert = 'Gnt_Positioning_DistanceSensor_$_Alert'; GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosActive = 'Gnt_CollisionAvoidance_NeighbouringCrane_PositiveDirectionActive'; GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosSlowdown = 'Gnt_CollisionAvoidance_NeighbouringCrane_PositiveDirectionInPrelimit'; GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCranePosStop = 'Gnt_CollisionAvoidance_NeighbouringCrane_PositiveDirectionInEndlimit'; GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCranePos = 'Gnt_Distance_NeighbourCrane_PositiveDirection'; GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegActive = 'Gnt_CollisionAvoidance_NeighbouringCrane_NegativeDirectionActive'; GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegSlowdown = 'Gnt_CollisionAvoidance_NeighbouringCrane_NegativeDirectionInPrelimit'; GantryMechanicalCtkViewModel.naturalKeyGantryCollisionAvoidanceNeighbouringCraneNegStop = 'Gnt_CollisionAvoidance_NeighbouringCrane_NegativeDirectionInEndlimit'; GantryMechanicalCtkViewModel.naturalKeyGantryDistanceNeighbouringCraneNeg = 'Gnt_Distance_NeighbourCrane_NegativeDirection'; GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateIdle = 'Gnt_MovementEval_ActState_Idle'; GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiPo = 'Gnt_MovementEval_ActState_RiPo'; GantryMechanicalCtkViewModel.naturalKeyGantryMovementEvalActStateRiNe = 'Gnt_MovementEval_ActState_RiNe'; GantryMechanicalCtkViewModel.naturalKeyRelease1IsMissing = 'Gnt_Release_1_PosDir_NegDir_IsMissing'; GantryMechanicalCtkViewModel.naturalKeyRelease2IsMissing = 'Gnt_Release_2_PosDir_NegDir_IsMissing'; GantryMechanicalCtkViewModel.naturalKeyRelease3IsMissing = 'Gnt_Release_3_PosDir_NegDir_IsMissing'; GantryMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing = 'Gnt_Release_Automatic_PosDir_NegDir_IsMissing'; GantryMechanicalCtkViewModel.naturalKeyNeighbourCranePosDirIsPresent = 'Gbl_NeighbourCrane_PosDir_IsPresent'; GantryMechanicalCtkViewModel.naturalKeyNeighbourCraneNegDirIsPresent = 'Gbl_NeighbourCrane_NegDir_IsPresent'; return GantryMechanicalCtkViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_2__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/gantry-mechanical-rtg.viewmodel.ts": /*!***********************************************************!*\ !*** ./src/app/models/gantry-mechanical-rtg.viewmodel.ts ***! \***********************************************************/ /*! exports provided: GantryMechanicalRtgViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GantryMechanicalRtgViewModel", function() { return GantryMechanicalRtgViewModel; }); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var core_js_library_web_timers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/library/web/timers */ "./node_modules/core-js/library/web/timers.js"); /* harmony import */ var core_js_library_web_timers__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_library_web_timers__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../pipes/unit-system-convert.pipe */ "./src/app/pipes/unit-system-convert.pipe.ts"); /* harmony import */ var _utils_array_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/array.utils */ "./src/app/utils/array.utils.ts"); /* harmony import */ var _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./gantry-card.viewmodel */ "./src/app/models/gantry-card.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var WheelSteeringState = /** @class */ (function () { function WheelSteeringState() { this.motorRunning = false; this.windLockUnlocked = false; this.rotationAngle45 = false; this.rotationAngle90 = false; this.driveAlert = false; this.motorTempValid = false; this.gearTempValid = false; this.positionError = false; } Object.defineProperty(WheelSteeringState.prototype, "rotateAngle", { get: function () { return this._rotateAngle; }, // delay the initial setter to overcome the issue with initial svg-rotation (ignoring transform-origin (Bug 986)) set: function (value) { var _this = this; if (!this._rotateAngle) { Object(core_js_library_web_timers__WEBPACK_IMPORTED_MODULE_5__["setTimeout"])(function () { _this._rotateAngle = value; }); } else { this._rotateAngle = value; } }, enumerable: true, configurable: true }); Object.defineProperty(WheelSteeringState.prototype, "icon", { get: function () { return this.windLockUnlocked ? '\ue028' : '\ue029'; }, enumerable: true, configurable: true }); return WheelSteeringState; }()); var GantryMechanicalRtgViewModel = /** @class */ (function (_super) { __extends(GantryMechanicalRtgViewModel, _super); function GantryMechanicalRtgViewModel(_orientationService, craneConfig) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasGantry].components.find(function (e) { return e.id === 'mechanical-rtg'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.motorState = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["GantryMotorState"]; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__["StateIndication"].Ok; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.sensorState = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["DistanceSensorState"]; _this.distanceSensorStates = []; _this.wheelSteeringStates = new Array(); _this.motorStatesTraveling = new Array(); _this.tireStates = new Array(); _this.isCableReelPresent = false; _this._oneToTwo = ['1', '2']; _this._oneToFour = ['1', '2', '3', '4']; _this._emptyToElectrical = ['Empty', 'Electrical']; _this._drivesDistance = ['Drive1', 'Drive2', 'Drive3', 'Drive4']; _this._currentUnitSystem = types_config__WEBPACK_IMPORTED_MODULE_6__["UnitSystem"].Metric; _this.stateText = 'initializing'; _this.position = 0.0; _this.speed = 0.0; _this._oneToFour.forEach(function (nr) { _this.motorStatesTraveling.push(_gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["GantryMotorState"].Idle); }); _this._oneToFour.forEach(function (nr) { _this.wheelSteeringStates.push(_this.defaultWheelSteeringDriveState); }); Object(_utils_array_utils__WEBPACK_IMPORTED_MODULE_8__["rangeFrom"])(16).forEach(function (nr) { _this.tireStates.push(_gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Idle); }); _this._drivesDistance.forEach(function (nr) { return _this.distanceSensorStates.push(_gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["DistanceSensorState"].Idle); }); _this.updateComponentConfig(); return _this; } Object.defineProperty(GantryMechanicalRtgViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalRtgViewModel.prototype, "isPositiveDirectionOnRight", { get: function () { return !this._orientationService.isGantryForwardRight; }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalRtgViewModel.prototype, "flipCableReelLeft", { get: function () { return this._orientationService.isCableReelLeft; }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalRtgViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipGantryHorizontal !== null) return this._orientationService.flipGantryHorizontal; return !(this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight); // ascentSideRight }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalRtgViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipGantryVertical !== null) return this._orientationService.flipGantryVertical; return this._orientationService.isElectricalSideForward === this._orientationService.isTrolleyForwardTop; // electricalSideTop }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalRtgViewModel.prototype, "unitSystem", { set: function (value) { this._currentUnitSystem = value; }, enumerable: true, configurable: true }); Object.defineProperty(GantryMechanicalRtgViewModel.prototype, "defaultWheelSteeringDriveState", { get: function () { return new WheelSteeringState(); }, enumerable: true, configurable: true }); GantryMechanicalRtgViewModel.prototype.updateComponentConfig = function () { this.distanceSensors = this.isDeviceEnabled('distance-sensor-1') && this.isDeviceEnabled('distance-sensor-2') && this.isDeviceEnabled('distance-sensor-3') && this.isDeviceEnabled('distance-sensor-4'); this.tireSensors = this.isDeviceEnabled('tires-empty-side-1-4') && this.isDeviceEnabled('tires-empty-side-5-8') && this.isDeviceEnabled('tires-electrical-side-1-4') && this.isDeviceEnabled('tires-electrical-side-5-8'); this.isCableReelPresent = this.isDeviceEnabled('cable-reel'); this.updateFooterValuesConfig(); }; GantryMechanicalRtgViewModel.prototype.updateFooterValuesConfig = function () { this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__["StateIndication"].Idle }; this.positionFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: GantryMechanicalRtgViewModel.naturalKeyGantryTravelingPosition, description: 'position', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__["StateIndication"].Idle }; }; Object.defineProperty(GantryMechanicalRtgViewModel.prototype, "naturalKeys", { get: function () { var _this = this; var naturalKeys = []; naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingPosition); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeed); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryPositioningBrakeClosed); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingInterlockPosActive); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingInterlockNegActive); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingMaxSpeedPos); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingMaxSpeedNeg); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeedLimitPosActive); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeedLimitNegActive); if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateIdle)) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateIdle); } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiPo)) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiPo); } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiNe)) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiNe); } if (this.distanceSensors) { this._drivesDistance.forEach(function (nr) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryPositioningDistanceSensorWarning.replace('$', nr)); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryPositioningDistanceSensorAlert.replace('$', nr)); }); } if (this.tireSensors) { this._emptyToElectrical.forEach(function (nr1) { Object(_utils_array_utils__WEBPACK_IMPORTED_MODULE_8__["rangeFrom"])(8).forEach(function (nr2) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireAirLeakageDetected.replace('§', nr1).replace('$', nr2)); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireLowPressureWarning.replace('§', nr1).replace('$', nr2)); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireLowPressureError.replace('§', nr1).replace('$', nr2)); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireError.replace('§', nr1).replace('$', nr2)); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireBatteryEmpty.replace('§', nr1).replace('$', nr2)); }); }); } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing); } this._oneToTwo.forEach(function (nr1) { _this._oneToTwo.forEach(function (nr2) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTravelingBrakeOpen.replace('§', nr1).replace('$', nr2)); }); }); this._oneToFour.forEach(function (nr) { naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringBreakeOpen.replace('$', nr)); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringPosition.replace('$', nr)); naturalKeys.push(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringWindLockIsUnlocked.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); GantryMechanicalRtgViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; GantryMechanicalRtgViewModel.prototype.updateViewModel = function () { if (!this._dataPoints) { return; } this.updatePositionData(); this.updateSpeedData(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateTravelingStates(); this.updateWheelSteeringStates(); this.updateWheelSteeringRotation(); if (this.tireSensors) { this.updateTireStates(); } this.updateState(); if (this.distanceSensors) { this.updateDistanceSensor(); } this.updateFooterValues(); }; GantryMechanicalRtgViewModel.prototype.updateFooterValues = function () { this.speedFooterValue.value = this.speed; this.speedFooterValue.state = this.state; this.positionFooterValue.value = this.position; this.positionFooterValue.state = this.state; }; GantryMechanicalRtgViewModel.prototype.updateTravelingStates = function () { var _this = this; var motorindex = 0; this._oneToTwo.forEach(function (nr1) { _this._oneToTwo.forEach(function (nr2) { var motorRunningDp = _this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTravelingBrakeOpen.replace('§', nr1).replace('$', nr2)); var error = false; if (error) { _this.motorStatesTraveling[motorindex] = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["GantryMotorState"].Error; } else if (motorRunningDp != null && motorRunningDp.data) { _this.motorStatesTraveling[motorindex] = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["GantryMotorState"].Running; } else { _this.motorStatesTraveling[motorindex] = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["GantryMotorState"].Idle; } motorindex++; }); }); }; GantryMechanicalRtgViewModel.prototype.updateWheelSteeringStates = function () { var _this = this; this._oneToFour.forEach(function (nr, index) { var wheelSteeringState = _this.wheelSteeringStates[index]; wheelSteeringState.motorTempValid = true; wheelSteeringState.gearTempValid = true; wheelSteeringState.motorRunning = _this._dataPoints.UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringBreakeOpen.replace('$', nr)).data; wheelSteeringState.driveAlert = !wheelSteeringState.motorTempValid || !wheelSteeringState.gearTempValid; wheelSteeringState.windLockUnlocked = _this._dataPoints.UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringWindLockIsUnlocked.replace('$', nr)).data; }); }; GantryMechanicalRtgViewModel.prototype.updateTireStates = function () { var _this = this; this._emptyToElectrical.forEach(function (nr1) { Object(_utils_array_utils__WEBPACK_IMPORTED_MODULE_8__["rangeFrom"])(8).forEach(function (nr2) { var warning = _this._dataPoints.UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireLowPressureWarning.replace('§', nr1).replace('$', nr2)).data || _this._dataPoints.UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireBatteryEmpty.replace('§', nr1).replace('$', nr2)).data; var error = _this._dataPoints.UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireAirLeakageDetected.replace('§', nr1).replace('$', nr2)).data || _this._dataPoints.UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireLowPressureError.replace('§', nr1).replace('$', nr2)).data || _this._dataPoints.UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireError.replace('§', nr1).replace('$', nr2)).data; var index = nr1 === 'Empty' ? Number(nr2) : Number(nr2) + 8; if (error) { _this.tireStates[index] = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Error; } else if (warning) { _this.tireStates[index] = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Warning; } else { _this.tireStates[index] = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Idle; } }); }); }; GantryMechanicalRtgViewModel.prototype.updateWheelSteeringRotation = function () { var _this = this; var angle = 0; this._oneToFour.forEach(function (nr, index) { angle = _this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringPosition.replace('$', nr)). data; var isUnlockedDp = _this._dataPoints .Get(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringWindLockIsUnlocked.replace('$', nr)); // 22.5° in rad var angle225DegInRad = 0.3926991; // 67.5° in rad var angle675DegInRad = 1.178097; var rotation = 0; if ((isUnlockedDp != null && isUnlockedDp.data) || (angle > -angle225DegInRad && angle < angle225DegInRad)) { rotation = 0; } else if (angle >= angle225DegInRad && angle <= angle675DegInRad) { rotation = 45; } else if (angle >= -angle675DegInRad && angle <= -angle225DegInRad) { rotation = 315; } else { rotation = 90; } _this.wheelSteeringStates[index].rotateAngle = rotation; }); }; GantryMechanicalRtgViewModel.prototype.updateSpeedData = function () { var maxSpeedPosDp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingMaxSpeedPos); this.maxSpeedPos = maxSpeedPosDp != null ? maxSpeedPosDp.data : 0; var maxSpeedNegDp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingMaxSpeedNeg); this.maxSpeedNeg = maxSpeedNegDp != null ? maxSpeedNegDp.data : 0; if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } var speedDp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeed); this.speed = speedDp != null ? Math.abs(speedDp.data) : 0; this.speedPos = this.movePos ? this.speed : 0; this.speedNeg = this.moveNeg ? this.speed : 0; }; GantryMechanicalRtgViewModel.prototype.updatePositionData = function () { var _this = this; this.position = this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingPosition) .data; this._oneToFour.forEach(function (nr, index) { _this.wheelSteeringStates[index].positionError = false; }); this.isLockClosed = this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyGantryPositioningBrakeClosed) .data; }; GantryMechanicalRtgViewModel.prototype.updateSpeedIndication = function () { this.interlockPositiveActive = this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingInterlockPosActive) .data; this.interlockNegativeActive = this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingInterlockNegActive) .data; this.speedLimitPositiveActive = this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeedLimitPosActive) .data; this.speedLimitNegativeActive = this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeedLimitNegActive) .data; }; GantryMechanicalRtgViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(GantryMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(GantryMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; GantryMechanicalRtgViewModel.prototype.updateDistanceSensor = function () { var _this = this; this._drivesDistance.forEach(function (nr, index) { var warning = _this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryPositioningDistanceSensorWarning.replace('$', nr)).data; var error = _this._dataPoints .UncheckedGet(GantryMechanicalRtgViewModel.naturalKeyWildcardGantryPositioningDistanceSensorAlert.replace('$', nr)).data; _this.distanceSensorStates[index] = error ? _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["DistanceSensorState"].Error : warning ? _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["DistanceSensorState"].Warning : _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["DistanceSensorState"].Idle; }); }; GantryMechanicalRtgViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.error = this.isInError(); if (this.error) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'moving_forwards'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'moving_backwards'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.wheelSteeringStates.some(function (s) { return s.motorRunning; })) { this.stateText = 'active'; this.highlight = true; } else if (this.wheelSteeringStates.some(function (s) { return !s.windLockUnlocked; })) { this.stateText = 'wind_locks_activated'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_10__["StateIndication"].Ok; }; GantryMechanicalRtgViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; GantryMechanicalRtgViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; GantryMechanicalRtgViewModel.prototype.isInError = function () { return this.motorStatesTraveling.some(function (s) { return s === _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["GantryMotorState"].Error; }) || this.wheelSteeringStates.some(function (s) { return s.positionError || s.driveAlert; }); }; GantryMechanicalRtgViewModel.prototype.initUnitConversion = function (unitConversionService, unitKeyService, translationService) { this._currentLanguage = translationService.currentLanguage; if (!this._unitSystemConvertPipe) { var unitSystemBaseConvertPipe = new app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_3__["UnitSystemBaseConvertPipe"](unitConversionService); var unitSystemNumericConvertPipe = new app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_4__["UnitSystemNumericConvertPipe"](unitConversionService, unitKeyService, unitSystemBaseConvertPipe); var l10nDecimalPipe = new angular_l10n__WEBPACK_IMPORTED_MODULE_0__["L10nDecimalPipe"](); this._unitSystemConvertPipe = new _pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_7__["UnitSystemConvertPipe"](unitConversionService, unitKeyService, unitSystemNumericConvertPipe, translationService, l10nDecimalPipe); } }; GantryMechanicalRtgViewModel.prototype.getTireState = function (driveNumber) { var _this = this; var error = false; var warning = false; var state = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Idle; Object(_utils_array_utils__WEBPACK_IMPORTED_MODULE_8__["rangeFrom"])(4, driveNumber * 4 - 4).forEach(function (nr, index) { error = error || _this.tireStates[Number(nr)] === _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Error; warning = warning || _this.tireStates[Number(nr)] === _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Warning; }); if (error) { state = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Error; } else if (warning) { state = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Warning; } else { state = _gantry_card_viewmodel__WEBPACK_IMPORTED_MODULE_9__["TireState"].Idle; } return state; }; GantryMechanicalRtgViewModel.naturalKeyGantryTravelingPosition = 'Gnt_PositionEval_ActPosition'; GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeed = 'Gnt_SpeedEval_ActVelocity'; GantryMechanicalRtgViewModel.naturalKeyGantryPositioningBrakeClosed = 'Gnt_Positioning_IsBrakeClosed'; GantryMechanicalRtgViewModel.naturalKeyGantryTravelingInterlockPosActive = 'Gnt_Interlocks_IsInterlockPosDirActive'; GantryMechanicalRtgViewModel.naturalKeyGantryTravelingInterlockNegActive = 'Gnt_Interlocks_IsInterlockNegDirActive'; GantryMechanicalRtgViewModel.naturalKeyGantryTravelingMaxSpeedPos = 'Gnt_SpeedLimit_MaxSpeedPosDir'; GantryMechanicalRtgViewModel.naturalKeyGantryTravelingMaxSpeedNeg = 'Gnt_SpeedLimit_MaxSpeedNegDir'; GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeedLimitPosActive = 'Gnt_SpeedLimit_IsSpeedLimitPosDirActive'; GantryMechanicalRtgViewModel.naturalKeyGantryTravelingSpeedLimitNegActive = 'Gnt_SpeedLimit_IsSpeedLimitNegDirActive'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTravelingBrakeOpen = 'Gnt_Positioning_Ctrl_Ctrl_§_BrakeCtrl_IsOpened_$'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringPosition = 'Wst_WheelSteering_PositionEval_PositionEval_$_ActPosition'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringWindLockIsUnlocked = 'Wst_WheelSteering_WindLock_WindLock_$_IsRunUnlocked'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryWheelSteeringBreakeOpen = 'Wst_WheelSteering_Positioning_Positioning_$_Ctrl_Ctrl_1_BrakeCtrl_IsOpened_1'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryPositioningDistanceSensorWarning = 'Gnt_Positioning_DistanceSensor_$_Warning'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryPositioningDistanceSensorAlert = 'Gnt_Positioning_DistanceSensor_$_Alert'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireAirLeakageDetected = 'Wst_WheelSteering_§Side_Tire_$_Air_Leakage_Detected'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireLowPressureWarning = 'Wst_WheelSteering_§Side_Tire_$_Low_Pressure_Warning'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireLowPressureError = 'Wst_WheelSteering_§Side_Tire_$_Low_Pressure_Error'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireError = 'Wst_WheelSteering_§Side_Tire_$_Error'; GantryMechanicalRtgViewModel.naturalKeyWildcardGantryTireBatteryEmpty = 'Wst_WheelSteering_§Side_Tire_$_Battery_Empty'; GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateIdle = 'Gnt_MovementEval_ActState_Idle'; GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiPo = 'Gnt_MovementEval_ActState_RiPo'; GantryMechanicalRtgViewModel.naturalKeyGantryMovementEvalActStateRiNe = 'Gnt_MovementEval_ActState_RiNe'; GantryMechanicalRtgViewModel.naturalKeyRelease1IsMissing = 'Gnt_Release_1_PosDir_NegDir_IsMissing'; GantryMechanicalRtgViewModel.naturalKeyRelease2IsMissing = 'Gnt_Release_2_PosDir_NegDir_IsMissing'; GantryMechanicalRtgViewModel.naturalKeyRelease3IsMissing = 'Gnt_Release_3_PosDir_NegDir_IsMissing'; GantryMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing = 'Gnt_Release_Automatic_PosDir_NegDir_IsMissing'; return GantryMechanicalRtgViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_2__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/model-state.ts": /*!***************************************!*\ !*** ./src/app/models/model-state.ts ***! \***************************************/ /*! exports provided: ModelStates */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModelStates", function() { return ModelStates; }); var ModelStates; (function (ModelStates) { ModelStates[ModelStates["Initializing"] = 0] = "Initializing"; ModelStates[ModelStates["Initialized"] = 1] = "Initialized"; ModelStates[ModelStates["InitializationFailed"] = 2] = "InitializationFailed"; })(ModelStates || (ModelStates = {})); /***/ }), /***/ "./src/app/models/notification-entry.ts": /*!**********************************************!*\ !*** ./src/app/models/notification-entry.ts ***! \**********************************************/ /*! exports provided: NotificationEntry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationEntry", function() { return NotificationEntry; }); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var NotificationEntry = /** @class */ (function () { function NotificationEntry(id, notificationType, notificationId, notificationGroups, equipmentIdentifier, texts, helpTexts, start, end, faultValues, manuals) { var _this = this; this.id = id; this.notificationType = notificationType; this.notificationId = notificationId; this.notificationGroups = notificationGroups; this.equipmentIdentifier = equipmentIdentifier; this.texts = texts; this.helpTexts = helpTexts; this.start = start; this.end = end; this.faultValues = faultValues; this.manuals = manuals; this.getText = function (language) { if (_this.texts != null && _this.texts.hasOwnProperty(language)) { return _this.texts[language]; } return _this.notificationId.toString(); }; this.getHelpText = function (language) { if (_this.helpTexts != null && _this.helpTexts.hasOwnProperty(language)) { return _this.helpTexts[language]; } return ''; }; this.getNotificationGroup = function (language) { if (_this.notificationGroups.hasOwnProperty(language)) { return _this.notificationGroups[language]; } return ''; }; } Object.defineProperty(NotificationEntry.prototype, "notificationTypeAsString", { get: function () { return app_app_constants__WEBPACK_IMPORTED_MODULE_0__["NotificationTypeDisplayText"][this.notificationType]; }, enumerable: true, configurable: true }); NotificationEntry.translate = function (entry, language, timeUtilsService) { var start = timeUtilsService.transformToLocalBackendTime(entry.start); var end = timeUtilsService.transformToLocalBackendTime(entry.end); var notificationEntry = new NotificationEntry(entry.id, entry.notificationType, entry.notificationId, entry.notificationGroups, entry.equipmentIdentifier, entry.texts, entry.helpTexts, start, end, entry.faultValues, entry.manuals); notificationEntry.translatedGroup = notificationEntry.getNotificationGroup(language); notificationEntry.translatedText = notificationEntry.getText(language); notificationEntry.translatedHelpText = notificationEntry.getHelpText(language); return notificationEntry; }; return NotificationEntry; }()); /***/ }), /***/ "./src/app/models/notification-statistics.ts": /*!***************************************************!*\ !*** ./src/app/models/notification-statistics.ts ***! \***************************************************/ /*! exports provided: NotificationStatistics */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationStatistics", function() { return NotificationStatistics; }); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var NotificationStatistics = /** @class */ (function () { function NotificationStatistics(notificationType, notificationId, notificationGroups, equipmentIdentifier, texts, helpTexts, maximumDuration, totalDuration, count, manuals) { var _this = this; this.notificationType = notificationType; this.notificationId = notificationId; this.notificationGroups = notificationGroups; this.equipmentIdentifier = equipmentIdentifier; this.texts = texts; this.helpTexts = helpTexts; this.maximumDuration = maximumDuration; this.totalDuration = totalDuration; this.count = count; this.manuals = manuals; this.getText = function (language) { if (_this.texts != null && _this.texts.hasOwnProperty(language)) { return _this.texts[language]; } return _this.notificationId.toString(); }; this.getHelpText = function (language) { if (_this.helpTexts != null && _this.helpTexts.hasOwnProperty(language)) { return _this.helpTexts[language]; } return ''; }; this.getNotificationGroup = function (language) { if (_this.notificationGroups.hasOwnProperty(language)) { return _this.notificationGroups[language]; } return ''; }; } Object.defineProperty(NotificationStatistics.prototype, "notificationTypeAsString", { get: function () { return app_app_constants__WEBPACK_IMPORTED_MODULE_0__["NotificationTypeDisplayText"][this.notificationType]; }, enumerable: true, configurable: true }); NotificationStatistics.translate = function (entry, language) { var notificationStatistics = new NotificationStatistics(entry.notificationType, entry.notificationId, entry.notificationGroups, entry.equipmentIdentifier, entry.texts, entry.helpTexts, entry.maximumDuration, entry.totalDuration, entry.count, entry.manuals); notificationStatistics.translatedGroup = notificationStatistics.getNotificationGroup(language); notificationStatistics.translatedText = notificationStatistics.getText(language); notificationStatistics.translatedHelpText = notificationStatistics.getHelpText(language); return notificationStatistics; }; return NotificationStatistics; }()); /***/ }), /***/ "./src/app/models/notification.ts": /*!****************************************!*\ !*** ./src/app/models/notification.ts ***! \****************************************/ /*! exports provided: Notification */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return Notification; }); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var Notification = /** @class */ (function () { function Notification(occuranceId, notificationType, notificationId, notificationGroups, equipmentIdentifier, texts, helpTexts, timestamp, isActive, faultValues, manuals) { var _this = this; this.occuranceId = occuranceId; this.notificationType = notificationType; this.notificationId = notificationId; this.notificationGroups = notificationGroups; this.equipmentIdentifier = equipmentIdentifier; this.texts = texts; this.helpTexts = helpTexts; this.timestamp = timestamp; this.isActive = isActive; this.faultValues = faultValues; this.manuals = manuals; this.translateSelf = function (language, timeUtilsService) { _this.translatedGroup = _this.getNotificationGroup(language); _this.translatedText = _this.getText(language); _this.translatedHelpText = _this.getHelpText(language); var timestamp = timeUtilsService.transformToLocalBackendTime(_this.timestamp); _this.timestamp = timestamp; return _this; }; this.getText = function (language) { if (_this.texts != null && _this.texts.hasOwnProperty(language)) { return _this.texts[language]; } return _this.notificationId.toString(); }; this.getHelpText = function (language) { if (_this.helpTexts != null && _this.helpTexts.hasOwnProperty(language)) { return _this.helpTexts[language]; } return ''; }; this.getNotificationGroup = function (language) { if (_this.notificationGroups.hasOwnProperty(language)) { return _this.notificationGroups[language]; } return ''; }; } Object.defineProperty(Notification.prototype, "notificationTypeAsString", { get: function () { return app_app_constants__WEBPACK_IMPORTED_MODULE_0__["NotificationTypeDisplayText"][this.notificationType]; }, enumerable: true, configurable: true }); return Notification; }()); /***/ }), /***/ "./src/app/models/numpad-params.ts": /*!*****************************************!*\ !*** ./src/app/models/numpad-params.ts ***! \*****************************************/ /*! exports provided: NumpadParams */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumpadParams", function() { return NumpadParams; }); var NumpadParams = /** @class */ (function () { function NumpadParams() { } return NumpadParams; }()); /***/ }), /***/ "./src/app/models/quickview-info.viewmodel.ts": /*!****************************************************!*\ !*** ./src/app/models/quickview-info.viewmodel.ts ***! \****************************************************/ /*! exports provided: QuickviewInfo, QuickviewInfoUpdate */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewInfo", function() { return QuickviewInfo; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewInfoUpdate", function() { return QuickviewInfoUpdate; }); var QuickviewInfo = /** @class */ (function () { function QuickviewInfo() { } return QuickviewInfo; }()); var QuickviewInfoUpdate = /** @class */ (function () { function QuickviewInfoUpdate() { } return QuickviewInfoUpdate; }()); /***/ }), /***/ "./src/app/models/selection-entry.ts": /*!*******************************************!*\ !*** ./src/app/models/selection-entry.ts ***! \*******************************************/ /*! exports provided: SelectionEntry */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionEntry", function() { return SelectionEntry; }); var SelectionEntry = /** @class */ (function () { function SelectionEntry(name, value) { this.name = name; this.value = value; } return SelectionEntry; }()); /***/ }), /***/ "./src/app/models/slewing-gear-electrical-ctk.viewmodel.ts": /*!*****************************************************************!*\ !*** ./src/app/models/slewing-gear-electrical-ctk.viewmodel.ts ***! \*****************************************************************/ /*! exports provided: SlewingGearElectricalCtkViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlewingGearElectricalCtkViewModel", function() { return SlewingGearElectricalCtkViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); var SlewingGearElectricalCtkViewModel = /** @class */ (function (_super) { __extends(SlewingGearElectricalCtkViewModel, _super); function SlewingGearElectricalCtkViewModel(craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasSlewingGear].components.find(function (e) { return e.id === 'electrical-ctk'; })) || this; _this.craneConfig = craneConfig; _this.driveStates = new Array(); _this.dcBusValue = 0; _this.cuState = new CUState(); _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.stateText = 'initializing'; _this.valuesToBeDisplayed = displayValue; _this._drives = _this.singleDrive ? ['1'] : ['1', '2']; _this._drives.forEach(function (nr) { _this.driveStates.push(_this.defaultDriveState); }); _this.cuState = _this.defaultCUState; return _this; } Object.defineProperty(SlewingGearElectricalCtkViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: false, faultCode: false }; }, enumerable: true, configurable: true }); Object.defineProperty(SlewingGearElectricalCtkViewModel.prototype, "defaultCUState", { get: function () { return { warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); SlewingGearElectricalCtkViewModel.prototype.updateComponentConfig = function () { this.singleDrive = !this.isDeviceEnabled('frequency-converter-2'); }; Object.defineProperty(SlewingGearElectricalCtkViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(SlewingGearElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(SlewingGearElectricalCtkViewModel.naturalKeyCUFaultCode); naturalKeys.push(SlewingGearElectricalCtkViewModel.naturalKeyCUWarnCode); this._drives.forEach(function (nr) { naturalKeys.push(SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterFaultCode.replace('$', nr)); naturalKeys.push(SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterWarnCode.replace('$', nr)); naturalKeys.push(SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterSpeed.replace('$', nr)); naturalKeys.push(SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterTorque.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); SlewingGearElectricalCtkViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; SlewingGearElectricalCtkViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(SlewingGearElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(SlewingGearElectricalCtkViewModel.naturalKeyCUWarnCode); if (cuStateWarnCodeDp != null) { this.cuState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(SlewingGearElectricalCtkViewModel.naturalKeyCUFaultCode); if (cuStateFaultCodeDp != null) { this.cuState.faultCode = cuStateFaultCodeDp.data; } this._drives.forEach(function (nr, index) { var driveState = _this.driveStates[index]; var driveStateWarnCodeDp = _this._dataPoints.Get(SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterWarnCode.replace('$', nr)); if (driveStateWarnCodeDp != null) { driveState.warnCode = driveStateWarnCodeDp.data; } var driveStateFaultCodeDp = _this._dataPoints.Get(SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterFaultCode.replace('$', nr)); if (driveStateFaultCodeDp != null) { driveState.faultCode = driveStateFaultCodeDp.data; } switch (_this.valuesToBeDisplayed) { case _types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: driveState.displayValueNaturalKey = SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterTorque.replace('$', nr); break; case _types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: driveState.displayValueNaturalKey = SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterSpeed.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState.displayValueNaturalKey) { var driveStateDisplayValueDp = _this._dataPoints.Get(driveState.displayValueNaturalKey); if (driveStateDisplayValueDp != null) { driveState.displayValue = driveStateDisplayValueDp.data; } } }); this.warnCodeActive = this.driveStates.some(function (ds) { return ds.warnCode != false; }) || this.cuState.warnCode > 0; this.faultCodeActive = this.driveStates.some(function (ds) { return ds.faultCode != false; }) || this.cuState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; } else { this.stateText = this._viewMode; this.highlight = false; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; SlewingGearElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; SlewingGearElectricalCtkViewModel.naturalKeyCUFaultCode = 'Slg_ControlUnit_1_FaultCode'; SlewingGearElectricalCtkViewModel.naturalKeyCUWarnCode = 'Slg_ControlUnit_1_WarnCode'; SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterFaultCode = 'Slg_FrequencyConverter_$_FaultCode'; SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterWarnCode = 'Slg_FrequencyConverter_$_WarnCode'; SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterSpeed = 'Slg_FrequencyConverter_$_Velocity'; SlewingGearElectricalCtkViewModel.naturalKeyFrequencyConverterTorque = 'Slg_FrequencyConverter_$_Torque'; return SlewingGearElectricalCtkViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/slewing-gear-mechanical-ctk.viewmodel.ts": /*!*****************************************************************!*\ !*** ./src/app/models/slewing-gear-mechanical-ctk.viewmodel.ts ***! \*****************************************************************/ /*! exports provided: SlewingGearMechanicalCtkViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlewingGearMechanicalCtkViewModel", function() { return SlewingGearMechanicalCtkViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var SlewingGearMechanicalCtkViewModel = /** @class */ (function (_super) { __extends(SlewingGearMechanicalCtkViewModel, _super); function SlewingGearMechanicalCtkViewModel(craneConfig, _orientationService) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].AliasSlewingGear].components.find(function (e) { return e.id === 'mechanical-ctk'; })) || this; _this.craneConfig = craneConfig; _this._orientationService = _orientationService; _this.context = SlewingGearMechanicalCtkViewModel; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__["StateIndication"].Ok; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.speedLimitPositiveActive = false; _this.speedLimitNegativeActive = false; _this.interlockPositiveActive = false; _this.interlockNegativeActive = false; _this.releaseIsMissing = false; _this._positionError = false; _this._encoderError = false; _this.stateText = 'initializing'; _this.position = 0.0; _this.speed = 0.0; _this.preselectMotor1 = false; _this.preselectMotor2 = false; _this.updateComponentConfig(); return _this; } Object.defineProperty(SlewingGearMechanicalCtkViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(SlewingGearMechanicalCtkViewModel.prototype, "isAscentSideRight", { get: function () { return this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight; }, enumerable: true, configurable: true }); SlewingGearMechanicalCtkViewModel.prototype.updateComponentConfig = function () { this.hasFooterSpeed = this.isDeviceEnabled(SlewingGearMechanicalCtkViewModel.footerId, SlewingGearMechanicalCtkViewModel.footerSpeedId); this.hasFooterPosition = this.isDeviceEnabled(SlewingGearMechanicalCtkViewModel.footerId, SlewingGearMechanicalCtkViewModel.footerPositionId); this.hasPosition = this.isDeviceEnabled(SlewingGearMechanicalCtkViewModel.positionId); this.hasSpeedLimitForward = this.isDeviceEnabled(SlewingGearMechanicalCtkViewModel.speedLimitForwardId); this.hasSpeedLimitBackward = this.isDeviceEnabled(SlewingGearMechanicalCtkViewModel.speedLimitBackwardId); this.hasAscentDoor = this.isDeviceEnabled(SlewingGearMechanicalCtkViewModel.ascentDoorId); this.updateFooterValuesConfig(); this.updateState(); }; SlewingGearMechanicalCtkViewModel.prototype.updateFooterValuesConfig = function () { this.speedFooterValue = { isVisible: this.hasFooterSpeed, value: app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder, naturalKey: SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingSpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__["StateIndication"].Idle }; this.positionFooterValue = { isVisible: this.hasFooterPosition, value: app_app_constants__WEBPACK_IMPORTED_MODULE_2__["Const"].NoValuePlaceholder, naturalKey: SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPosition, description: 'rotation_angle', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__["StateIndication"].Idle }; }; Object.defineProperty(SlewingGearMechanicalCtkViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPositionInvalid)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPositionInvalid); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPositionEvalActEncPosition1HasMalfunction)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPositionEvalActEncPosition1HasMalfunction); } if (this.hasFooterSpeed) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPosition); } if (this.hasFooterSpeed || this.hasSpeedLimitForward || this.hasSpeedLimitBackward) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingSpeed); } if (this.hasSpeedLimitForward) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingInterlockPosActive); naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingMaxSpeedPos); naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingSpeedLimitPosActive); } if (this.hasSpeedLimitBackward) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingInterlockNegActive); naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingMaxSpeedNeg); naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingSpeedLimitNegActive); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateIdle)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateIdle); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiPo)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiPo); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiNe)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiNe); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor1)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor1); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor1)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor1); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor2)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor2); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor2)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor2); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(SlewingGearMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing); } return naturalKeys; }, enumerable: true, configurable: true }); SlewingGearMechanicalCtkViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; SlewingGearMechanicalCtkViewModel.prototype.updateViewModel = function () { if (this._dataPoints) { this.updateSpeedData(); this.updateSpeedIndication(); this.updateReleaseData(); this.updatePositionData(); this.updateMotorPreselection(); this.updateBrakeOpenedMotor(); this.updateMotorStateActive(); this.updateState(); this.updateFooterValues(); } }; SlewingGearMechanicalCtkViewModel.prototype.updateFooterValues = function () { this.speedFooterValue.value = this.speed; this.speedFooterValue.state = this.state; this.positionFooterValue.value = this.position; this.positionFooterValue.state = this.state; }; SlewingGearMechanicalCtkViewModel.prototype.updateSpeedData = function () { if (this.hasFooterSpeed || this.hasSpeedLimitForward || this.hasSpeedLimitBackward) { var speedDatapoint = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingSpeed); if (speedDatapoint != null) { this.speed = Math.abs(speedDatapoint.data); } } if (this.hasSpeedLimitForward) { var maxSpeedPos = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingMaxSpeedPos); if (maxSpeedPos != null) { this.maxSpeedPos = maxSpeedPos.data; } } if (this.hasSpeedLimitBackward) { var maxSpeedNeg = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingMaxSpeedNeg); if (maxSpeedNeg != null) { this.maxSpeedNeg = maxSpeedNeg.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } if (this.hasSpeedLimitForward) { this.speedPos = this.movePos ? this.speed : 0; } if (this.hasSpeedLimitBackward) { this.speedNeg = this.moveNeg ? this.speed : 0; } }; SlewingGearMechanicalCtkViewModel.prototype.updatePositionData = function () { var position = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPosition); if (position != null) { this.position = position.data; } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPositionInvalid)) { var positionErrorDatapoint = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPositionInvalid); if (positionErrorDatapoint != null) { this._positionError = positionErrorDatapoint.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPositionEvalActEncPosition1HasMalfunction)) { var encoderErrorDatapoint = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPositionEvalActEncPosition1HasMalfunction); if (encoderErrorDatapoint != null) { this._encoderError = encoderErrorDatapoint.data; } } }; SlewingGearMechanicalCtkViewModel.prototype.updateMotorPreselection = function () { if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor1)) { var preselectMotor1 = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor1); if (preselectMotor1 != null) { this.preselectMotor1 = preselectMotor1.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor2)) { var preselectMotor2 = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor2); if (preselectMotor2 != null) { this.preselectMotor2 = preselectMotor2.data; } } }; SlewingGearMechanicalCtkViewModel.prototype.updateBrakeOpenedMotor = function () { if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor1)) { var isBrakeOpenedMotor1 = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor1); if (isBrakeOpenedMotor1 != null) { this.isBrakeOpenedMotor1 = isBrakeOpenedMotor1.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor2)) { var isBrakeOpenedMotor2 = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor2); if (isBrakeOpenedMotor2 != null) { this.isBrakeOpenedMotor2 = isBrakeOpenedMotor2.data; } } }; SlewingGearMechanicalCtkViewModel.prototype.updateMotorStateActive = function () { var preselectMotor1State = this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor1) ? this.preselectMotor1 : true; var brakesMotor1State = this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor1) ? this.isBrakeOpenedMotor1 : true; var preselectMotor2State = this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor2) ? this.preselectMotor2 : true; var brakesMotor2State = this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor2) ? this.isBrakeOpenedMotor2 : true; this.motor1StateActive = preselectMotor1State && brakesMotor1State; this.motor2StateActive = preselectMotor2State && brakesMotor2State; }; SlewingGearMechanicalCtkViewModel.prototype.updateSpeedIndication = function () { if (this.hasSpeedLimitForward) { var interlockPositiveActive = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingInterlockPosActive); if (interlockPositiveActive != null) { this.interlockPositiveActive = interlockPositiveActive.data; } var speedLimitPositiveActive = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingSpeedLimitPosActive); if (speedLimitPositiveActive != null) { this.speedLimitPositiveActive = speedLimitPositiveActive.data; } } if (this.hasSpeedLimitBackward) { var interlockNegativeActive = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingInterlockNegActive); if (interlockNegativeActive != null) { this.interlockNegativeActive = interlockNegativeActive.data; } var speedLimitNegativeActive = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingSpeedLimitNegActive); if (speedLimitNegativeActive != null) { this.speedLimitNegativeActive = speedLimitNegativeActive.data; } } }; SlewingGearMechanicalCtkViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(SlewingGearMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(SlewingGearMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; SlewingGearMechanicalCtkViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.error = this.isInError(); if (this.error) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'turns_in_positive_direction'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'turns_in_negative_direction'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.motor1StateActive || this.motor2StateActive) { this.stateText = 'active'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_1__["StateIndication"].Ok; }; SlewingGearMechanicalCtkViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; SlewingGearMechanicalCtkViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; SlewingGearMechanicalCtkViewModel.prototype.isInError = function () { return this._positionError || this._encoderError; }; SlewingGearMechanicalCtkViewModel.componentId = 'mechanical-ctk'; SlewingGearMechanicalCtkViewModel.speedLimitForwardId = 'speedLimitPositive'; SlewingGearMechanicalCtkViewModel.speedLimitBackwardId = 'speedLimitNegative'; SlewingGearMechanicalCtkViewModel.positionId = 'position'; SlewingGearMechanicalCtkViewModel.ascentDoorId = 'ascentDoor'; SlewingGearMechanicalCtkViewModel.footerId = 'footer'; SlewingGearMechanicalCtkViewModel.footerSpeedId = 'footer-speed'; SlewingGearMechanicalCtkViewModel.footerPositionId = 'footer-position'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPosition = 'Slg_PositionEval_ActPosition'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingPositionInvalid = 'Slg_PositionEval_Detection_HasMalfunction'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravellingSpeed = 'Slg_SpeedEval_ActSpeed'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingInterlockPosActive = 'Slg_Interlocks_IsInterlockPosDirActive'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingInterlockNegActive = 'Slg_Interlocks_IsInterlockNegDirActive'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingMaxSpeedNeg = 'Slg_SpeedLimit_MaxSpeedNegDir'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingMaxSpeedPos = 'Slg_SpeedLimit_MaxSpeedPosDir'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingSpeedLimitPosActive = 'Slg_SpeedLimit_IsSpeedLimitPosDirActive'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearTravelingSpeedLimitNegActive = 'Slg_SpeedLimit_IsSpeedLimitNegDirActive'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPositionEvalActEncPosition1HasMalfunction = 'Slg_PositionEval_ActEncPosition_1_HasMalfunction'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor1 = 'Slg_PreSelection_Motor_1'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor1 = 'Slg_Positioning_Ctrl_Ctrl_1_BrakeCtrl_IsOpened_1'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearPreselectionMotor2 = 'Slg_PreSelection_Motor_2'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearBrakeIsOpenedMotor2 = 'Slg_Positioning_Ctrl_Ctrl_1_BrakeCtrl_IsOpened_2'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateIdle = 'Slg_MovementEval_ActState_Idle'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiPo = 'Slg_MovementEval_ActState_RiPo'; SlewingGearMechanicalCtkViewModel.naturalKeySlewingGearMovementEvalActStateRiNe = 'Slg_MovementEval_ActState_RiNe'; SlewingGearMechanicalCtkViewModel.naturalKeyRelease1IsMissing = 'Slg_Release_1_PosDir_NegDir_IsMissing'; SlewingGearMechanicalCtkViewModel.naturalKeyRelease2IsMissing = 'Slg_Release_2_PosDir_NegDir_IsMissing'; SlewingGearMechanicalCtkViewModel.naturalKeyRelease3IsMissing = 'Slg_Release_3_PosDir_NegDir_IsMissing'; SlewingGearMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing = 'Slg_Release_Automatic_PosDir_NegDir_IsMissing'; return SlewingGearMechanicalCtkViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/spreader.viewmodel.ts": /*!**********************************************!*\ !*** ./src/app/models/spreader.viewmodel.ts ***! \**********************************************/ /*! exports provided: SpreaderViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpreaderViewModel", function() { return SpreaderViewModel; }); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var PiggybackFootState = /** @class */ (function () { function PiggybackFootState() { } return PiggybackFootState; }()); var SpreaderViewModel = /** @class */ (function (_super) { __extends(SpreaderViewModel, _super); function SpreaderViewModel(craneConfig, _colorService, _orientationService) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_0__["Const"].AliasSpreader].components.find(function (c) { return c.id === 'spreader'; })) || this; _this.craneConfig = craneConfig; _this._colorService = _colorService; _this._orientationService = _orientationService; _this.defaultTwistLockState = { seated: false, locked: false, unlocked: true, error: false, iso: true, wtp: false, flipperUp: true, flipperDown: false, iconKey: '\ue028' }; _this.defaultPiggybackState = { unclamped: false, seated: false, bearing: false, iconKey: '\ue032' }; _this.defaultShoulderState = { shoulderInArmUp: false, shoulderOutArmDown: false, shoulderOutArmUp: false, error: false, iconKey: '\ue032' }; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Ok; _this.twistlockRearLeft = _this.defaultTwistLockState; _this.twistlockRearRight = _this.defaultTwistLockState; _this.twistlockFrontLeft = _this.defaultTwistLockState; _this.twistlockFrontRight = _this.defaultTwistLockState; _this.piggybackRearLeft = _this.defaultPiggybackState; _this.piggybackRearRight = _this.defaultPiggybackState; _this.piggybackFrontLeft = _this.defaultPiggybackState; _this.piggybackFrontRight = _this.defaultPiggybackState; _this.piggybackShoulderRearLeft = _this.defaultShoulderState; _this.piggybackShoulderRearRight = _this.defaultShoulderState; _this.piggybackShoulderFrontLeft = _this.defaultShoulderState; _this.piggybackShoulderFrontRight = _this.defaultShoulderState; _this.piggybackFootState = []; _this._rearLeToFrontRi = ['RearLe', 'RearRi', 'FrontLe', 'FrontRi']; _this._rearLeftToFrontRight = ['RearLeft', 'RearRight', 'FrontLeft', 'FrontRight']; _this.stateText = 'initializing'; _this.telescopeLength = SpreaderViewModel.telescopeValueUndefined; _this.telescopeWidth = SpreaderViewModel.telescopeValueUndefined; _this.updateComponentConfig(); return _this; } Object.defineProperty(SpreaderViewModel.prototype, "flipSpreaderFrontRear", { get: function () { return this._orientationService.isSpreaderFrontTop; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "defaultPiggybackFootState", { get: function () { return { SeatedA: false, SeatedB: false, Bearing: false, }; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "naturalKeys", { get: function () { var _this = this; var naturalKeys = []; if (this.piggybacks) { naturalKeys.push(SpreaderViewModel.naturalKeySpreaderPreselectTwistlock); naturalKeys.push(SpreaderViewModel.naturalKeySpreaderPreselectPiggyback); } this._rearLeToFrontRi.forEach(function (nr) { naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockSeatedA.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockUnlocked.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockLocked.replace('$', nr)); if (!_this.fixedIso) { naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderBeamIso.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderBeamWtp.replace('$', nr)); } }); if (this.telescopeLeft || this.telescopeRight) { naturalKeys.push(SpreaderViewModel.naturalKeySpreaderTelescopeWider); naturalKeys.push(SpreaderViewModel.naturalKeySpreaderTelescopeSmaller); } if (this.piggybacks) { this._rearLeftToFrontRight.forEach(function (nr) { naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootSeatedA.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootSeatedB.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootBearingA.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootUnclamped.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderIn.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderOut.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderArmUp.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderArmDown.replace('$', nr)); }); } if (this.flippers) { this._rearLeftToFrontRight.forEach(function (nr) { naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderFlipperUp.replace('$', nr)); naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderFlipperDown.replace('$', nr)); }); } if (this.telescopePositions != null && this.telescopePositions.length > 0) { this.telescopePositions.forEach(function (nr) { if (_this.telescopeLeft) { naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderTelescopePositionLeft.replace('$', nr)); } if (_this.telescopeRight) { naturalKeys.push(SpreaderViewModel.naturalKeyWildcardSpreaderTelescopePositionRight.replace('$', nr)); } }); } if (this.longshiftOnCard) { naturalKeys.push(SpreaderViewModel.naturalKeySpreaderLongshiftPosition); } return naturalKeys; }, enumerable: true, configurable: true }); SpreaderViewModel.prototype.updateComponentConfig = function () { this.greenLockIndication = this.isDeviceEnabled(SpreaderViewModel.greenLockIndicationId); this.fixedIso = !this.isDeviceEnabled(SpreaderViewModel.isoWtpId); this.flippers = this.isDeviceEnabled(SpreaderViewModel.flipperId); this.piggybacks = this.isDeviceEnabled(SpreaderViewModel.piggybackId); this.longshiftOnCard = this.isDeviceEnabled(SpreaderViewModel.longshiftOnCardId); var telescopeLeft = this.components.find(function (c) { return c.id === SpreaderViewModel.telescopeLeftId; }); this.telescopeLeft = this.isDeviceEnabled(SpreaderViewModel.telescopeLeftId); var telescopeRight = this.components.find(function (c) { return c.id === SpreaderViewModel.telescopeRightId; }); this.telescopeRight = this.isDeviceEnabled(SpreaderViewModel.telescopeRightId); if (this.telescopeLeft && telescopeLeft != null && telescopeLeft.quickviewDatapoints) { this.telescopePositions = (telescopeLeft.quickviewDatapoints .filter(function (c) { return c.naturalKey.startsWith(SpreaderViewModel.telescopeLeAId) && c.enabled; }) .map(function (c) { return c.naturalKey.replace(SpreaderViewModel.telescopeLeAId, ''); })); } else if (this.telescopeRight && telescopeRight != null && telescopeRight.quickviewDatapoints) { this.telescopePositions = (telescopeRight.quickviewDatapoints .filter(function (c) { return c.naturalKey.startsWith(SpreaderViewModel.telescopeRiAId) && c.enabled; }) .map(function (c) { return c.naturalKey.replace(SpreaderViewModel.telescopeRiAId, ''); })); } this.telescopePositionCount = this.telescopePositions ? this.telescopePositions.length : 0; this.updateFooterValuesConfig(); }; SpreaderViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; SpreaderViewModel.prototype.updateViewModel = function () { if (this._dataPoints != null) { this.updateTelescopePosition(); this.twistlockRearLeft = this.updateTwistlockState(true, true); this.twistlockRearRight = this.updateTwistlockState(true, false); this.twistlockFrontLeft = this.updateTwistlockState(false, true); this.twistlockFrontRight = this.updateTwistlockState(false, false); if (this.piggybacks) { this.piggybackRearLeft = this.updatePiggybackState(true, true); this.piggybackRearRight = this.updatePiggybackState(true, false); this.piggybackFrontLeft = this.updatePiggybackState(false, true); this.piggybackFrontRight = this.updatePiggybackState(false, false); this.piggybackShoulderRearLeft = this.updateShoulderState(true, true); this.piggybackShoulderRearRight = this.updateShoulderState(true, false); this.piggybackShoulderFrontLeft = this.updateShoulderState(false, true); this.piggybackShoulderFrontRight = this.updateShoulderState(false, false); } this.multipleMovingSensorsActive = this.balkenWider && this.balkenSmaller; this.twistlockPreselected = this.isTwistlockPreselected(); this.piggybackPreselected = this.isPiggyBackPreselected(); this.updateTelescopeWidth(); this.updateLongshift(); this.error = this.twistlocksHaveError || (this.piggybacks && this.piggybacksHaveError); if (this.error) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else { if (this.allTwistlocksLocked && !this.allTwistlocksSeated) { this.stateText = 'all_twistlocks_locked'; this.highlight = false; this.isIdle = true; } else if (this.allTwistlocksLocked && this.allTwistlocksSeated) { this.stateText = 'all_twistlocks_seated_and_locked'; this.highlight = false; this.isIdle = true; } else if (this.allTwistlocksUnlocked && !this.allTwistlocksSeated) { this.stateText = 'all_twistlocks_unlocked'; this.highlight = false; this.isIdle = true; } else if (this.allTwistlocksUnlocked && this.allTwistlocksSeated) { this.stateText = 'all_twistlocks_seated_and_unlocked'; this.highlight = false; this.isIdle = true; } else if (this.allTwistlocksSeated && !this.allTwistlocksLocked && !this.allTwistlocksUnlocked) { this.stateText = 'all_twistlocks_seated'; this.highlight = false; this.isIdle = true; } else { this.stateText = 'active'; this.highlight = true; this.isIdle = false; } } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Error : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Ok; this.updateFooterValues(); } }; SpreaderViewModel.prototype.updateFooterValuesConfig = function () { this.telescopeWidthFooterValue = { isVisible: !this.fixedIso, value: app_app_constants__WEBPACK_IMPORTED_MODULE_0__["Const"].NoValuePlaceholder, description: 'telescope_width', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Idle }; this.telescopeLengthFooterValue = { isVisible: this.telescopeLeft || this.telescopeRight, value: app_app_constants__WEBPACK_IMPORTED_MODULE_0__["Const"].NoValuePlaceholder, description: 'telescope_length', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Idle }; this.longShiftPositionFooterValue = { isVisible: this.longshiftOnCard, value: app_app_constants__WEBPACK_IMPORTED_MODULE_0__["Const"].NoValuePlaceholder, naturalKey: SpreaderViewModel.naturalKeySpreaderLongshiftPosition, description: 'longshift', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Idle }; }; SpreaderViewModel.prototype.updateFooterValues = function () { this.telescopeWidthFooterValue.value = this.telescopeWidth; this.telescopeLengthFooterValue.value = this.telescopeLength; if (this.multipleLeftLengthSensorsActive || this.multipleRightLengthSensorsActive) { this.telescopeLengthFooterValue.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Error; } else { this.telescopeLengthFooterValue.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Ok; } this.longShiftPositionFooterValue.value = this.longShiftPosition; }; SpreaderViewModel.prototype.updateMultipleLengthSensorsActive = function (activeSensorsLeft, activeSensorsRight) { this.multipleLeftLengthSensorsActive = activeSensorsLeft > 1; this.multipleRightLengthSensorsActive = activeSensorsRight > 1; }; SpreaderViewModel.prototype.isPiggyBackPreselected = function () { if (this.piggybacks) { return this.getDatapointBooleanValue(SpreaderViewModel.naturalKeySpreaderPreselectPiggyback); } return false; }; SpreaderViewModel.prototype.isTwistlockPreselected = function () { if (this.piggybacks) { return this.getDatapointBooleanValue(SpreaderViewModel.naturalKeySpreaderPreselectTwistlock); } return true; }; SpreaderViewModel.prototype.updateTwistlockState = function (rear, left) { var seated = this.isTwistlockSeated(rear, left); var locked = this.isTwistlockLocked(rear, left); var unlocked = this.isTwistlockUnlocked(rear, left); var iso = this.isBalkenISO(rear, left); var wtp = this.isBalkenWTP(rear, left); var error = false; var color = this.getTwistlockColor(locked, unlocked, error); var iconKey = this.getIconKey(seated, locked, unlocked, error); var flipperUp = this.isFlipperUp(rear, left); var flipperDown = this.isFlipperDown(rear, left); return { seated: seated, locked: locked, unlocked: unlocked, iso: iso, wtp: wtp, error: error, color: color, iconKey: iconKey, flipperUp: flipperUp, flipperDown: flipperDown }; }; SpreaderViewModel.prototype.updatePiggybackState = function (rear, left) { var seated = this.isPiggybackSensorASeated(rear, left) || this.isPiggybackSensorBSeated(rear, left); var unclamped = this.isPiggybackUnclamped(rear, left); var bearing = this.isPiggybackBearing(rear, left); var color = this.getPiggybackColor(seated, bearing, unclamped); var iconKey = this.getIconKeyPiggyback(seated, bearing, unclamped); return { unclamped: unclamped, seated: seated, bearing: bearing, color: color, iconKey: iconKey }; }; SpreaderViewModel.prototype.updateShoulderState = function (rear, left) { var shoulderInArmUp = this.isShoulderIn(rear, left) && this.isArmUp(rear, left); var shoulderOutArmUp = this.isShoulderOut(rear, left) && this.isArmUp(rear, left); var shoulderOutArmDown = this.isShoulderOut(rear, left) && this.isArmDown(rear, left); var error = false; var iconKey = this.getIconKeyShoulder(shoulderInArmUp, shoulderOutArmUp, shoulderOutArmDown, error); return { shoulderInArmUp: shoulderInArmUp, shoulderOutArmDown: shoulderOutArmDown, shoulderOutArmUp: shoulderOutArmUp, error: error, iconKey: iconKey }; }; SpreaderViewModel.prototype.updateLongshift = function () { if (this.longshiftOnCard) { var positionDp = this._dataPoints.Get(SpreaderViewModel.naturalKeySpreaderLongshiftPosition); if (positionDp != null) { this.longShiftPosition = positionDp.data; } } }; SpreaderViewModel.prototype.getColorCode = function (colorKey) { return this._colorService.getColor(colorKey); }; SpreaderViewModel.prototype.getTwistlockColor = function (locked, unlocked, error) { // color codes used in card-canvas on dashboard only if (error) { return this.getColorCode('state-alert'); } else if (locked) { return this.greenLockIndication ? this.getColorCode('locked-invers') : this.getColorCode('locked'); } else if (unlocked) { return this.greenLockIndication ? this.getColorCode('unlocked-invers') : this.getColorCode('unlocked'); } else { return this.getColorCode('primary-color'); } }; SpreaderViewModel.prototype.getPiggybackColor = function (seated, bearing, unclamped) { // color codes used in card-canvas on dashboard only if (bearing) { return this.greenLockIndication ? this.getColorCode('locked-invers') : this.getColorCode('locked'); } else if (seated) { return this.getColorCode('seated'); } else if (unclamped) { return this.greenLockIndication ? this.getColorCode('unclamped-invers') : this.getColorCode('unclamped'); } else { return this.getColorCode('primary-color'); } }; SpreaderViewModel.prototype.getIconKey = function (seated, locked, unlocked, error) { if (error) { return '\ue02c'; } else if (unlocked) { return '\ue028'; } else if (locked) { return 'P'; } else if (seated) { return '\ue012'; } else { return '\ue028'; } }; SpreaderViewModel.prototype.getIconKeyPiggyback = function (seated, bearing, unclamped) { if (seated) { return '\ue012'; } else if (bearing) { return '\ue02a'; } else if (unclamped) { return '\ue032'; } else { return '\ue032'; } }; SpreaderViewModel.prototype.getIconKeyShoulder = function (shoulderInArmUp, shoulderOutArmUp, shoulderOutArmDown, error) { if (shoulderInArmUp) { return '\ue004'; } else if (shoulderOutArmUp) { return '\ue005'; } else if (shoulderOutArmDown) { return '\ue006'; } else if (error) { return '\ue02c'; } else { return '\ue004'; } }; SpreaderViewModel.prototype.twistLockDescription = function (top, left) { if (this.isTwistlockLocked(top, left)) { return 'Locked'; } if (this.isTwistlockSeated(top, left)) { return 'Seated'; } return ''; }; SpreaderViewModel.prototype.piggybackDescription = function (top, left) { if (this.isPiggybackSensorASeated(top, left)) { return 'Seated'; } if (this.isPiggybackSensorBSeated(top, left)) { return 'Seated'; } if (this.isPiggybackBearing(top, left)) { return 'Bearing'; } return ''; }; SpreaderViewModel.prototype.shoulderDescription = function (top, left) { if (this.isShoulderIn(top, left)) { return 'ShoulderIn'; } if (this.isShoulderOut(top, left)) { return 'ShoulderOut'; } if (this.isArmDown(top, left)) { return 'ArmDown'; } if (this.isArmUp(top, left)) { return 'ArmUp'; } return ''; }; SpreaderViewModel.prototype.getPositionAbbrev = function (top, left) { return "" + (top ? 'Rear' : 'Front') + (left ? 'Le' : 'Ri'); }; SpreaderViewModel.prototype.getPosition = function (top, left) { return "" + (top ? 'Rear' : 'Front') + (left ? 'Left' : 'Right'); }; SpreaderViewModel.prototype.getDatapointBooleanValue = function (naturalKey) { var dataPoints = this._dataPoints; if (dataPoints != null && this.isDatapointEnabled(naturalKey)) { var dp = dataPoints.Get(naturalKey); if (dp != null) { return dp.data === true; } } return false; }; SpreaderViewModel.prototype.isTwistlockLocked = function (top, left) { if (this._dataPoints != null) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockLocked.replace('$', this.getPositionAbbrev(top, left)); return this.getDatapointBooleanValue(naturalKey); } return false; }; SpreaderViewModel.prototype.isBalkenISO = function (top, left) { if (this._dataPoints != null) { if (!this.fixedIso) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderBeamIso.replace('$', this.getPositionAbbrev(top, left)); return this.getDatapointBooleanValue(naturalKey); } return true; } return false; }; SpreaderViewModel.prototype.isBalkenWTP = function (top, left) { if (this._dataPoints != null) { if (!this.fixedIso) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderBeamWtp.replace('$', this.getPositionAbbrev(top, left)); return this.getDatapointBooleanValue(naturalKey); } } return false; }; SpreaderViewModel.prototype.isTwistlockUnlocked = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockUnlocked.replace('$', this.getPositionAbbrev(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isTwistlockSeated = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockSeatedA.replace('$', this.getPositionAbbrev(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isPiggybackSensorASeated = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootSeatedA.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isPiggybackSensorBSeated = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootSeatedB.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isPiggybackBearing = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootBearingA.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isPiggybackUnclamped = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootUnclamped.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isShoulderIn = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderIn.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isShoulderOut = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderOut.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isArmDown = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderArmDown.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isArmUp = function (top, left) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderArmUp.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isTelescopePositionActiveLeft = function (position) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderTelescopePositionLeft.replace('$', position); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isTelescopePositionActiveRight = function (position) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderTelescopePositionRight.replace('$', position); return this.getDatapointBooleanValue(naturalKey); }; SpreaderViewModel.prototype.isFlipperUp = function (top, left) { if (this.flippers && this._dataPoints != null) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderFlipperUp.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); } return false; }; SpreaderViewModel.prototype.isFlipperDown = function (top, left) { if (this.flippers && this._dataPoints != null) { var naturalKey = SpreaderViewModel.naturalKeyWildcardSpreaderFlipperDown.replace('$', this.getPosition(top, left)); return this.getDatapointBooleanValue(naturalKey); } return false; }; Object.defineProperty(SpreaderViewModel.prototype, "allFlippersDown", { get: function () { return this.twistlockRearLeft.flipperDown && this.twistlockRearRight.flipperDown && this.twistlockFrontLeft.flipperDown && this.twistlockFrontRight.flipperDown; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "allTwistlocksLocked", { get: function () { return this.twistlockRearLeft.locked && this.twistlockRearRight.locked && this.twistlockFrontLeft.locked && this.twistlockFrontRight.locked; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "allBalkenISO", { get: function () { return this.twistlockRearLeft.iso && this.twistlockRearRight.iso && this.twistlockFrontLeft.iso && this.twistlockFrontRight.iso; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "allBalkenWTP", { get: function () { return this.twistlockRearLeft.wtp && this.twistlockRearRight.wtp && this.twistlockFrontLeft.wtp && this.twistlockFrontRight.wtp; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "allTwistlocksSeated", { get: function () { return this.twistlockRearLeft.seated && this.twistlockRearRight.seated && this.twistlockFrontLeft.seated && this.twistlockFrontRight.seated; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "allTwistlocksUnlocked", { get: function () { return this.twistlockRearLeft.unlocked && this.twistlockRearRight.unlocked && this.twistlockFrontLeft.unlocked && this.twistlockFrontRight.unlocked; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "twistlocksHaveError", { get: function () { return this.twistlockRearLeft.error || this.twistlockRearRight.error || this.twistlockFrontLeft.error || this.twistlockFrontRight.error; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "allPiggybacksBearing", { get: function () { return this.piggybackRearLeft.bearing && this.piggybackRearRight.bearing && this.piggybackFrontLeft.bearing && this.piggybackFrontRight.bearing; }, enumerable: true, configurable: true }); Object.defineProperty(SpreaderViewModel.prototype, "piggybacksHaveError", { get: function () { return this.piggybackShoulderRearLeft.error || this.piggybackShoulderRearRight.error || this.piggybackShoulderFrontLeft.error || this.piggybackShoulderFrontRight.error; }, enumerable: true, configurable: true }); SpreaderViewModel.prototype.updateTelescopePosition = function () { if (this.telescopeLeft || this.telescopeRight) { this.balkenWider = this.getDatapointBooleanValue(SpreaderViewModel.naturalKeySpreaderTelescopeWider); this.balkenSmaller = this.getDatapointBooleanValue(SpreaderViewModel.naturalKeySpreaderTelescopeSmaller); } this.telescopeLengthLeft = SpreaderViewModel.telescopeValueUndefined; this.telescopeLengthRight = SpreaderViewModel.telescopeValueUndefined; var positioningLeft = true; var positioningRight = true; var telescopeLeftActiveValueCounter = 0; var telescopeRightActiveValueCounter = 0; if (this.telescopePositions != null && this.telescopePositions.length > 0) { for (var i = 0; i < this.telescopePositions.length; i++) { var length = this.telescopePositions[i]; if (this.telescopeLeft && this.isTelescopePositionActiveLeft(length)) { positioningLeft = false; this.telescopePositionLeft = i; this.telescopeLengthLeft = length + "'"; telescopeLeftActiveValueCounter += 1; } if (this.telescopeRight && this.isTelescopePositionActiveRight(length)) { positioningRight = false; this.telescopePositionRight = i; this.telescopeLengthRight = length + "'"; telescopeRightActiveValueCounter += 1; } } } this.updateMultipleLengthSensorsActive(telescopeLeftActiveValueCounter, telescopeRightActiveValueCounter); if (this.telescopeLeft && this.telescopeRight) { // got sensors on both side if (this.telescopePositionLeft == this.telescopePositionRight) { this.telescopeLength = !positioningLeft ? this.telescopeLengthLeft : SpreaderViewModel.telescopeValueUndefined; this.telescopePosition = this.telescopePositionLeft; } this.telescopePositioning = positioningLeft || positioningRight; if (!isNaN(this.telescopePositionLeft) && !isNaN(this.telescopePositionRight)) { this.setTelescopeTransformed(this.telescopePositionLeft, this.telescopePositionRight, this.telescopePositions.length); } } else if (this.telescopeLeft) { // got sensors on the left this.telescopeLength = !positioningLeft ? this.telescopeLengthLeft : SpreaderViewModel.telescopeValueUndefined; this.telescopePosition = this.telescopePositionLeft; this.telescopePositioning = positioningLeft; if (!isNaN(this.telescopePosition)) { this.setTelescopeTransformed(this.telescopePosition, this.telescopePosition, this.telescopePositions.length); } } else if (this.telescopeRight) { // got sensors on the right this.telescopeLength = !positioningRight ? this.telescopeLengthRight : SpreaderViewModel.telescopeValueUndefined; this.telescopePosition = this.telescopePositionRight; this.telescopePositioning = positioningRight; if (!isNaN(this.telescopePosition)) { this.setTelescopeTransformed(this.telescopePosition, this.telescopePosition, this.telescopePositions.length); } } }; SpreaderViewModel.prototype.updateTelescopeWidth = function () { if (this.allBalkenISO) { this.telescopeWidth = 'ISO'; } else if (this.allBalkenWTP) { this.telescopeWidth = 'WTP'; } else { this.telescopeWidth = SpreaderViewModel.telescopeValueUndefined; } }; SpreaderViewModel.prototype.setTelescopeTransformed = function (positionLeft, positionRight, length) { var posLeft = positionLeft != null ? positionLeft : 0; var posRight = positionRight != null ? positionRight : 0; var len = length != null ? length : 0; this.telescopeLeftTransform = "translate(" + -(66 * posLeft / len) + ",0)"; this.telescopeRightTransform = "translate(" + (66 * posRight / len) + ",0)"; }; SpreaderViewModel.componentId = 'spreader'; SpreaderViewModel.greenLockIndicationId = 'green-lock-indication'; SpreaderViewModel.isoWtpId = 'iso-wtp'; SpreaderViewModel.flipperId = 'flipper'; SpreaderViewModel.piggybackId = 'piggyback'; SpreaderViewModel.telescopeLeftId = 'telescopeLeft'; SpreaderViewModel.telescopeRightId = 'telescopeRight'; SpreaderViewModel.telescopeLeAId = 'Spr_Telescop_LeA'; SpreaderViewModel.telescopeRiAId = 'Spr_Telescop_RiA'; SpreaderViewModel.longshiftOnCardId = 'longshift-on-card'; SpreaderViewModel.naturalKeySpreaderPreselectTwistlock = 'Spr_State_Gen_PreSelectionTwistlock'; SpreaderViewModel.naturalKeySpreaderPreselectPiggyback = 'Spr_State_Gen_PreSelectionPiggyback'; SpreaderViewModel.naturalKeySpreaderLongshiftPosition = 'Spr_PositionEval_Longshift_ActPosition'; SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockSeatedA = 'Spr_Twistlock_Seated$A'; SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockUnlocked = 'Spr_Twistlock_Unlocked$A'; SpreaderViewModel.naturalKeyWildcardSpreaderTwistlockLocked = 'Spr_Twistlock_Locked$A'; SpreaderViewModel.naturalKeyWildcardSpreaderBeamIso = 'Spr_Twistlock_BeamIso$'; SpreaderViewModel.naturalKeyWildcardSpreaderBeamWtp = 'Spr_Twistlock_BeamWtp$'; SpreaderViewModel.naturalKeySpreaderTelescopeWider = 'Spr_Telescop_Wider'; SpreaderViewModel.naturalKeySpreaderTelescopeSmaller = 'Spr_Telescop_Smaller'; SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootUnclamped = 'Spr_Piggyback_Foot_$_Unclamped'; SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootSeatedA = 'Spr_Piggyback_Foot_$_SeatedA'; SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootSeatedB = 'Spr_Piggyback_Foot_$_SeatedB'; SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackFootBearingA = 'Spr_Piggyback_Foot_$_BearingA'; SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderIn = 'Spr_Piggyback_Shoulder_$_In'; SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderOut = 'Spr_Piggyback_Shoulder_$_Out'; SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderArmUp = 'Spr_Piggyback_Shoulder_$_ArmUp'; SpreaderViewModel.naturalKeyWildcardSpreaderPiggybackShoulderArmDown = 'Spr_Piggyback_Shoulder_$_ArmDown'; SpreaderViewModel.naturalKeyWildcardSpreaderFlipperUp = 'Spr_Flipper_$_Up'; SpreaderViewModel.naturalKeyWildcardSpreaderFlipperDown = 'Spr_Flipper_$_Down'; SpreaderViewModel.naturalKeyWildcardSpreaderTelescopePositionLeft = 'Spr_Telescop_LeA$'; SpreaderViewModel.naturalKeyWildcardSpreaderTelescopePositionRight = 'Spr_Telescop_RiA$'; SpreaderViewModel.telescopeValueUndefined = app_app_constants__WEBPACK_IMPORTED_MODULE_0__["Const"].NoValuePlaceholder; return SpreaderViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/state-indication.enum.ts": /*!*************************************************!*\ !*** ./src/app/models/state-indication.enum.ts ***! \*************************************************/ /*! exports provided: StateIndication */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StateIndication", function() { return StateIndication; }); var StateIndication; (function (StateIndication) { StateIndication[StateIndication["Idle"] = -1] = "Idle"; StateIndication[StateIndication["Ok"] = 0] = "Ok"; StateIndication[StateIndication["Warning"] = 1] = "Warning"; StateIndication[StateIndication["Error"] = 2] = "Error"; StateIndication[StateIndication["Speedlimit"] = 3] = "Speedlimit"; StateIndication[StateIndication["Interlock"] = 4] = "Interlock"; })(StateIndication || (StateIndication = {})); /***/ }), /***/ "./src/app/models/traverse.viewmodel.ts": /*!**********************************************!*\ !*** ./src/app/models/traverse.viewmodel.ts ***! \**********************************************/ /*! exports provided: TraverseViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TraverseViewModel", function() { return TraverseViewModel; }); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var TraverseViewModel = /** @class */ (function (_super) { __extends(TraverseViewModel, _super); function TraverseViewModel(craneConfig, _colorService, _orientationService) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_0__["Const"].AliasTraverse].components.find(function (c) { return c.id === 'magneticTraverse'; })) || this; _this.craneConfig = craneConfig; _this._colorService = _colorService; _this._orientationService = _orientationService; _this.defaultMagnetState = { on: false, error: false, partialLoad: false }; _this.defaulCableBasketState = { open: false, iconKey: '\ue028', }; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Ok; _this.magnetState = _this.defaultMagnetState; _this.cableBasketLeftState = _this.defaulCableBasketState; _this.cableBasketRightState = _this.defaulCableBasketState; _this._monitoringSensorIndices = ['1', '2', '3']; _this._cableBasketPositions = ['Left', 'Right']; _this.stateText = 'initializing'; _this.updateComponentConfig(); return _this; } Object.defineProperty(TraverseViewModel.prototype, "naturalKeys", { get: function () { var _this = this; var naturalKeys = []; if (this.hasMagnets) { naturalKeys.push(TraverseViewModel.naturalKeyTraverseMagnetOn); naturalKeys.push(TraverseViewModel.naturalKeyTraverseMagnetError); naturalKeys.push(TraverseViewModel.naturalKeyTraverseMagnetPartialLoad); } if (this.hasCableBasketLeft && this.hasCableBasketRight) { this._cableBasketPositions.forEach(function (cableBasketPosition) { _this._monitoringSensorIndices.forEach(function (monitorinSensorNr) { naturalKeys.push(TraverseViewModel.naturalKeyTraverseCableBasketWildcardMonitoringSensor.replace('§', cableBasketPosition).replace('$', monitorinSensorNr)); }); }); } return naturalKeys; }, enumerable: true, configurable: true }); TraverseViewModel.prototype.updateComponentConfig = function () { this.hasMagnets = this.isDeviceEnabled(TraverseViewModel.magnetsId); var cableBasketLeft = this.components.find(function (c) { return c.id === TraverseViewModel.cableBasketLeftId; }); this.hasCableBasketLeft = this.isDeviceEnabled(TraverseViewModel.cableBasketLeftId); var cableBasketRight = this.components.find(function (c) { return c.id === TraverseViewModel.cableBasketRightId; }); this.hasCableBasketRight = this.isDeviceEnabled(TraverseViewModel.cableBasketRightId); }; TraverseViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TraverseViewModel.prototype.updateViewModel = function () { if (this._dataPoints != null) { this.magnetState = this.updateMagnetState(); this.cableBasketLeftState = this.updateCableBasketState('Left'); this.cableBasketRightState = this.updateCableBasketState('Right'); this.error = this.magnetsHaveError; if (this.error) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else { if (this.magnetsOn) { this.stateText = 'magnet_on'; this.highlight = false; this.isIdle = false; } else if (this.magnetsHavePartialLoad) { this.stateText = 'partial_load'; this.highlight = false; this.isIdle = false; } else if (this.magnetsHaveError) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else { this.stateText = 'Idle'; this.isIdle = true; } } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Error : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_2__["StateIndication"].Ok; } }; TraverseViewModel.prototype.updateMagnetState = function () { var on = this.isMagnetOn(); var error = this.isMagnetError(); var partialLoad = this.isMagnetParialLoad(); return { on: on, error: error, partialLoad: partialLoad }; }; TraverseViewModel.prototype.updateCableBasketState = function (cableBasketPosition) { var open = this.cableBasketOpen(cableBasketPosition); var iconKey = this.getCableBasketIconKey(open); return { open: open, iconKey: iconKey }; }; TraverseViewModel.prototype.getColorCode = function (colorKey) { return this._colorService.getColor(colorKey); }; TraverseViewModel.prototype.getCableBasketIconKey = function (open) { if (open) { return '\ue028'; } else { return 'P'; } }; TraverseViewModel.prototype.getDatapointBooleanValue = function (naturalKey) { var dataPoints = this._dataPoints; if (dataPoints != null && this.isDatapointEnabled(naturalKey)) { var dp = dataPoints.Get(naturalKey); if (dp != null) { return dp.data === true; } } return false; }; TraverseViewModel.prototype.isMonitoringSensorOpen = function (cableBasketPosition, monitoringSensorNr) { var naturalKey = TraverseViewModel.naturalKeyTraverseCableBasketWildcardMonitoringSensor.replace('§', cableBasketPosition).replace('$', monitoringSensorNr); return this.getDatapointBooleanValue(naturalKey); }; TraverseViewModel.prototype.isMagnetOn = function () { var naturalKey = TraverseViewModel.naturalKeyTraverseMagnetOn; return this.getDatapointBooleanValue(naturalKey); }; TraverseViewModel.prototype.isMagnetError = function () { var naturalKey = TraverseViewModel.naturalKeyTraverseMagnetError; return this.getDatapointBooleanValue(naturalKey); }; TraverseViewModel.prototype.isMagnetParialLoad = function () { var naturalKey = TraverseViewModel.naturalKeyTraverseMagnetPartialLoad; return this.getDatapointBooleanValue(naturalKey); }; Object.defineProperty(TraverseViewModel.prototype, "magnetsOn", { get: function () { return this.magnetState.on; }, enumerable: true, configurable: true }); Object.defineProperty(TraverseViewModel.prototype, "magnetsHaveError", { get: function () { return this.magnetState.error; }, enumerable: true, configurable: true }); Object.defineProperty(TraverseViewModel.prototype, "magnetsHavePartialLoad", { get: function () { return this.magnetState.partialLoad; }, enumerable: true, configurable: true }); TraverseViewModel.prototype.cableBasketOpen = function (nr) { return this.isMonitoringSensorOpen(nr, '1') || this.isMonitoringSensorOpen(nr, '2') || this.isMonitoringSensorOpen(nr, '3'); }; TraverseViewModel.componentId = 'magneticTraverse'; TraverseViewModel.magnetsId = 'magnet'; TraverseViewModel.cableBasketLeftId = 'cableBasketLeft'; TraverseViewModel.cableBasketRightId = 'cableBasketRight'; TraverseViewModel.naturalKeyTraverseMagnetOn = 'Tra_Magnet_On'; TraverseViewModel.naturalKeyTraverseMagnetPartialLoad = 'Tra_Magnet_PartialLoad'; TraverseViewModel.naturalKeyTraverseMagnetError = 'Tra_Magnet_Error'; TraverseViewModel.naturalKeyTraverseCableBasketWildcardMonitoringSensor = 'Tra_Cable_Basket_§_Monitoring_$'; return TraverseViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/trolley-card.viewmodel.ts": /*!**************************************************!*\ !*** ./src/app/models/trolley-card.viewmodel.ts ***! \**************************************************/ /*! exports provided: TrolleyMotorState, StormBreakState */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyMotorState", function() { return TrolleyMotorState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StormBreakState", function() { return StormBreakState; }); var TrolleyMotorState; (function (TrolleyMotorState) { TrolleyMotorState[TrolleyMotorState["Idle"] = 0] = "Idle"; TrolleyMotorState[TrolleyMotorState["Running"] = 1] = "Running"; TrolleyMotorState[TrolleyMotorState["Error"] = 2] = "Error"; })(TrolleyMotorState || (TrolleyMotorState = {})); var StormBreakState; (function (StormBreakState) { StormBreakState[StormBreakState["Opened"] = 0] = "Opened"; StormBreakState[StormBreakState["Closed"] = 1] = "Closed"; StormBreakState[StormBreakState["Error"] = 2] = "Error"; })(StormBreakState || (StormBreakState = {})); /***/ }), /***/ "./src/app/models/trolley-electrical-csx.viewmodel.ts": /*!************************************************************!*\ !*** ./src/app/models/trolley-electrical-csx.viewmodel.ts ***! \************************************************************/ /*! exports provided: TrolleyElectricalCsxViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyElectricalCsxViewModel", function() { return TrolleyElectricalCsxViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); var TrolleyElectricalCsxViewModel = /** @class */ (function (_super) { __extends(TrolleyElectricalCsxViewModel, _super); function TrolleyElectricalCsxViewModel(_orientationService, craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasTrolley].components.find(function (e) { return e.id === 'electrical-csx-double-girder'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.cuState = { warnCode: 0, faultCode: 0 }; _this.dcBusValue = 0; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.stateText = 'initializing'; _this.valuesToBeDisplayed = displayValue; _this.updateComponentConfig(); return _this; } Object.defineProperty(TrolleyElectricalCsxViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyElectricalCsxViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipTrolleyHorizontal !== null) return this._orientationService.flipTrolleyHorizontal; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyElectricalCsxViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipTrolleyVertical !== null) return this._orientationService.flipTrolleyVertical; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); TrolleyElectricalCsxViewModel.prototype.updateComponentConfig = function () { var _this = this; this.twoFrequencyConverters = this.isDeviceEnabled('frequency-converter-2'); this._freqConverters = this.twoFrequencyConverters ? ['1', '2'] : ['1']; this.driveStates = new Array(); this._freqConverters.forEach(function (nr) { _this.driveStates.push(_this.defaultDriveState); }); }; Object.defineProperty(TrolleyElectricalCsxViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(TrolleyElectricalCsxViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(TrolleyElectricalCsxViewModel.naturalKeyCUFaultCode); naturalKeys.push(TrolleyElectricalCsxViewModel.naturalKeyCUWarnCode); this._freqConverters.forEach(function (nr) { naturalKeys.push(TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); TrolleyElectricalCsxViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TrolleyElectricalCsxViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(TrolleyElectricalCsxViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(TrolleyElectricalCsxViewModel.naturalKeyCUWarnCode); if (cuStateWarnCodeDp != null) { this.cuState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(TrolleyElectricalCsxViewModel.naturalKeyCUFaultCode); if (cuStateFaultCodeDp != null) { this.cuState.faultCode = cuStateFaultCodeDp.data; } this._freqConverters.forEach(function (nr, index) { var driveState = _this.driveStates[index]; var driveStateWarnCodeDp = _this._dataPoints.Get(TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); if (driveStateWarnCodeDp != null) { driveState.warnCode = driveStateWarnCodeDp.data; } var driveStateFaultCodeDp = _this._dataPoints.Get(TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); if (driveStateFaultCodeDp != null) { driveState.faultCode = driveStateFaultCodeDp.data; } switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: driveState.displayValueNaturalKey = TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: driveState.displayValueNaturalKey = TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState.displayValueNaturalKey) { var driveStateDisplayValueDp = _this._dataPoints.Get(driveState.displayValueNaturalKey); if (driveStateDisplayValueDp != null) { driveState.displayValue = driveStateDisplayValueDp.data; } } }); this.warnCodeActive = this.driveStates.some(function (ds) { return ds.warnCode > 0; }) || this.cuState.warnCode > 0; this.faultCodeActive = this.driveStates.some(function (ds) { return ds.faultCode > 0; }) || this.cuState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; this.isIdle = false; } else { this.stateText = this._viewMode; this.highlight = false; this.isIdle = true; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; TrolleyElectricalCsxViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; TrolleyElectricalCsxViewModel.naturalKeyCUFaultCode = 'Tro_Positioning_Ctrl_Cu_FaultCode'; TrolleyElectricalCsxViewModel.naturalKeyCUWarnCode = 'Tro_Positioning_Ctrl_Cu_WarnCode'; TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlFaultCode = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_FaultCode'; TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlWarnCode = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_WarnCode'; TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlActSpeed = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActSpeed'; TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlActTorque = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActTorque'; TrolleyElectricalCsxViewModel.naturalKeyWildcardCtrlActDataSet = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActDataSet'; return TrolleyElectricalCsxViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/trolley-electrical-ctk.viewmodel.ts": /*!************************************************************!*\ !*** ./src/app/models/trolley-electrical-ctk.viewmodel.ts ***! \************************************************************/ /*! exports provided: TrolleyElectricalCtkViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyElectricalCtkViewModel", function() { return TrolleyElectricalCtkViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); var TrolleyElectricalCtkViewModel = /** @class */ (function (_super) { __extends(TrolleyElectricalCtkViewModel, _super); function TrolleyElectricalCtkViewModel(_orientationService, craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasTrolley].components.find(function (e) { return e.id === 'electrical-ctk-double-girder'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.cuState = { warnCode: 0, faultCode: 0 }; _this.dcBusValue = 0; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.stateText = 'initializing'; _this.valuesToBeDisplayed = displayValue; _this.updateComponentConfig(); return _this; } Object.defineProperty(TrolleyElectricalCtkViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyElectricalCtkViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipTrolleyHorizontal !== null) return this._orientationService.flipTrolleyHorizontal; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyElectricalCtkViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipTrolleyVertical !== null) return this._orientationService.flipTrolleyVertical; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); TrolleyElectricalCtkViewModel.prototype.updateComponentConfig = function () { var _this = this; this.twoFrequencyConverters = this.isDeviceEnabled('frequency-converter-2'); this._freqConverters = this.twoFrequencyConverters ? ['1', '2'] : ['1']; this.driveStates = new Array(); this._freqConverters.forEach(function (nr) { _this.driveStates.push(_this.defaultDriveState); }); }; Object.defineProperty(TrolleyElectricalCtkViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(TrolleyElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(TrolleyElectricalCtkViewModel.naturalKeyCUFaultCode); naturalKeys.push(TrolleyElectricalCtkViewModel.naturalKeyCUWarnCode); this._freqConverters.forEach(function (nr) { naturalKeys.push(TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); TrolleyElectricalCtkViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TrolleyElectricalCtkViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(TrolleyElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(TrolleyElectricalCtkViewModel.naturalKeyCUWarnCode); if (cuStateWarnCodeDp != null) { this.cuState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(TrolleyElectricalCtkViewModel.naturalKeyCUFaultCode); if (cuStateFaultCodeDp != null) { this.cuState.faultCode = cuStateFaultCodeDp.data; } this._freqConverters.forEach(function (nr, index) { var driveState = _this.driveStates[index]; var driveStateWarnCodeDp = _this._dataPoints.Get(TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); if (driveStateWarnCodeDp != null) { driveState.warnCode = driveStateWarnCodeDp.data; } var driveStateFaultCodeDp = _this._dataPoints.Get(TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); if (driveStateFaultCodeDp != null) { driveState.faultCode = driveStateFaultCodeDp.data; } switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: driveState.displayValueNaturalKey = TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: driveState.displayValueNaturalKey = TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState.displayValueNaturalKey) { var driveStateDisplayValueDp = _this._dataPoints.Get(driveState.displayValueNaturalKey); if (driveStateDisplayValueDp != null) { driveState.displayValue = driveStateDisplayValueDp.data; } } }); this.warnCodeActive = this.driveStates.some(function (ds) { return ds.warnCode > 0; }) || this.cuState.warnCode > 0; this.faultCodeActive = this.driveStates.some(function (ds) { return ds.faultCode > 0; }) || this.cuState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; this.isIdle = false; } else { this.stateText = this._viewMode; this.highlight = false; this.isIdle = true; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; TrolleyElectricalCtkViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; TrolleyElectricalCtkViewModel.naturalKeyCUFaultCode = 'Tro_Positioning_Ctrl_Cu_FaultCode'; TrolleyElectricalCtkViewModel.naturalKeyCUWarnCode = 'Tro_Positioning_Ctrl_Cu_WarnCode'; TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlFaultCode = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_FaultCode'; TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlWarnCode = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_WarnCode'; TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlActSpeed = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActSpeed'; TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlActTorque = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActTorque'; TrolleyElectricalCtkViewModel.naturalKeyWildcardCtrlActDataSet = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActDataSet'; return TrolleyElectricalCtkViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/trolley-electrical-kc.viewmodel.ts": /*!***********************************************************!*\ !*** ./src/app/models/trolley-electrical-kc.viewmodel.ts ***! \***********************************************************/ /*! exports provided: TrolleyElectricalKcViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyElectricalKcViewModel", function() { return TrolleyElectricalKcViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); var TrolleyElectricalKcViewModel = /** @class */ (function (_super) { __extends(TrolleyElectricalKcViewModel, _super); function TrolleyElectricalKcViewModel(_orientationService, craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasTrolley].components.find(function (e) { return e.id === 'electrical-kc-double-girder'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.cuState = { warnCode: 0, faultCode: 0 }; _this.dcBusValue = 0; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.movePos = false; _this.moveNeg = false; _this.stateText = 'initializing'; _this.valuesToBeDisplayed = displayValue; _this.position = 0.0; _this.speed = 0.0; _this.updateComponentConfig(); return _this; } Object.defineProperty(TrolleyElectricalKcViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyElectricalKcViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipTrolleyHorizontal !== null) return this._orientationService.flipTrolleyHorizontal; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyElectricalKcViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipTrolleyVertical !== null) return this._orientationService.flipTrolleyVertical; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); TrolleyElectricalKcViewModel.prototype.updateComponentConfig = function () { var _this = this; this._freqConverters = ['1']; this.driveStates = new Array(); this._freqConverters.forEach(function (nr) { _this.driveStates.push(_this.defaultDriveState); }); this.updateFooterValuesConfig(); }; TrolleyElectricalKcViewModel.prototype.updateFooterValuesConfig = function () { this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: TrolleyElectricalKcViewModel.naturalKeyTrolleySpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; this.positionFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].NoValuePlaceholder, naturalKey: TrolleyElectricalKcViewModel.naturalKeyTrolleyPosition, description: 'position', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle }; }; Object.defineProperty(TrolleyElectricalKcViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyCUFaultCode); naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyCUWarnCode); this._freqConverters.forEach(function (nr) { naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); // Footer natural keys naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyTrolleyPosition); naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyTrolleySpeed); naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyMaxSpeedPos); naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyMaxSpeedNeg); if (this.isDatapointEnabled(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle); } if (this.isDatapointEnabled(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); } if (this.isDatapointEnabled(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { naturalKeys.push(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); } return naturalKeys; }, enumerable: true, configurable: true }); TrolleyElectricalKcViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TrolleyElectricalKcViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(TrolleyElectricalKcViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(TrolleyElectricalKcViewModel.naturalKeyCUWarnCode); if (cuStateWarnCodeDp != null) { this.cuState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(TrolleyElectricalKcViewModel.naturalKeyCUFaultCode); if (cuStateFaultCodeDp != null) { this.cuState.faultCode = cuStateFaultCodeDp.data; } this._freqConverters.forEach(function (nr, index) { var driveState = _this.driveStates[index]; var driveStateWarnCodeDp = _this._dataPoints.Get(TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); if (driveStateWarnCodeDp != null) { driveState.warnCode = driveStateWarnCodeDp.data; } var driveStateFaultCodeDp = _this._dataPoints.Get(TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); if (driveStateFaultCodeDp != null) { driveState.faultCode = driveStateFaultCodeDp.data; } switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: driveState.displayValueNaturalKey = TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: driveState.displayValueNaturalKey = TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState.displayValueNaturalKey) { var driveStateDisplayValueDp = _this._dataPoints.Get(driveState.displayValueNaturalKey); if (driveStateDisplayValueDp != null) { driveState.displayValue = driveStateDisplayValueDp.data; } } }); this.warnCodeActive = this.driveStates.some(function (ds) { return ds.warnCode > 0; }) || this.cuState.warnCode > 0; this.faultCodeActive = this.driveStates.some(function (ds) { return ds.faultCode > 0; }) || this.cuState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; this.isIdle = false; } else { this.stateText = this._viewMode; this.highlight = false; this.isIdle = true; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; // Update footer this.updatePositionData(); this.updateSpeedData(); this.updateFooterValues(); } }; TrolleyElectricalKcViewModel.prototype.updateFooterValues = function () { this.speedFooterValue.value = this.speed; this.speedFooterValue.state = this.state; this.positionFooterValue.value = this.position; this.positionFooterValue.state = this.state; }; TrolleyElectricalKcViewModel.prototype.updateSpeedData = function () { var actualSpeed = this._dataPoints .UncheckedGet(TrolleyElectricalKcViewModel.naturalKeyTrolleySpeed) .data; this.maxSpeedPos = this._dataPoints .UncheckedGet(TrolleyElectricalKcViewModel.naturalKeyMaxSpeedPos) .data; this.maxSpeedNeg = this._dataPoints .UncheckedGet(TrolleyElectricalKcViewModel.naturalKeyMaxSpeedNeg) .data; if (this.isDatapointEnabled(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } this.speed = Math.abs(actualSpeed); this.speedPos = this.movePos ? this.speed : 0; this.speedNeg = this.moveNeg ? this.speed : 0; }; TrolleyElectricalKcViewModel.prototype.updatePositionData = function () { this.position = this._dataPoints .UncheckedGet(TrolleyElectricalKcViewModel.naturalKeyTrolleyPosition) .data; }; TrolleyElectricalKcViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; TrolleyElectricalKcViewModel.naturalKeyCUFaultCode = 'Tro_Positioning_Ctrl_Cu_FaultCode'; TrolleyElectricalKcViewModel.naturalKeyCUWarnCode = 'Tro_Positioning_Ctrl_Cu_WarnCode'; TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlFaultCode = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_FaultCode'; TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlWarnCode = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_WarnCode'; TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlActSpeed = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActSpeed'; TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlActTorque = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActTorque'; TrolleyElectricalKcViewModel.naturalKeyWildcardCtrlActDataSet = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActDataSet'; // Footer natural keys TrolleyElectricalKcViewModel.naturalKeyTrolleyPosition = 'Tro_PositionEval_ActPosition'; TrolleyElectricalKcViewModel.naturalKeyTrolleySpeed = 'Tro_SpeedEval_ActVelocity'; TrolleyElectricalKcViewModel.naturalKeyMaxSpeedPos = 'Tro_SpeedLimit_MaxSpeedPosDir'; TrolleyElectricalKcViewModel.naturalKeyMaxSpeedNeg = 'Tro_SpeedLimit_MaxSpeedNegDir'; TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle = 'Tro_MovementEval_ActState_Idle'; TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo = 'Tro_MovementEval_ActState_RiPo'; TrolleyElectricalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe = 'Tro_MovementEval_ActState_RiNe'; return TrolleyElectricalKcViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/trolley-electrical-rtg.viewmodel.ts": /*!************************************************************!*\ !*** ./src/app/models/trolley-electrical-rtg.viewmodel.ts ***! \************************************************************/ /*! exports provided: TrolleyElectricalRtgViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyElectricalRtgViewModel", function() { return TrolleyElectricalRtgViewModel; }); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var DriveState = /** @class */ (function () { function DriveState() { } return DriveState; }()); var CUState = /** @class */ (function () { function CUState() { } return CUState; }()); var TrolleyElectricalRtgViewModel = /** @class */ (function (_super) { __extends(TrolleyElectricalRtgViewModel, _super); function TrolleyElectricalRtgViewModel(_orientationService, craneConfig, displayValue) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasTrolley].components.find(function (e) { return e.id === 'electrical-rtg-double-girder'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.cuState = { warnCode: 0, faultCode: 0 }; _this.dcBusValue = 0; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; _this.stateText = 'initializing'; _this.valuesToBeDisplayed = displayValue; _this.updateComponentConfig(); return _this; } Object.defineProperty(TrolleyElectricalRtgViewModel.prototype, "defaultDriveState", { get: function () { return { displayValue: 0, displayValueNaturalKey: '', warnCode: 0, faultCode: 0 }; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyElectricalRtgViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipTrolleyHorizontal !== null) return this._orientationService.flipTrolleyHorizontal; return this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight; // ascentSideRight }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyElectricalRtgViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipTrolleyVertical !== null) return this._orientationService.flipTrolleyVertical; return !(this._orientationService.isElectricalSideForward === this._orientationService.isTrolleyForwardTop); // electricalSideTop }, enumerable: true, configurable: true }); TrolleyElectricalRtgViewModel.prototype.updateComponentConfig = function () { var _this = this; this.twoFrequencyConverters = this.isDeviceEnabled('frequency-converter-2'); this._freqConverters = this.twoFrequencyConverters ? ['1', '2'] : ['1']; this.driveStates = new Array(); this._freqConverters.forEach(function (nr) { _this.driveStates.push(_this.defaultDriveState); }); }; Object.defineProperty(TrolleyElectricalRtgViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage); naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyCUFaultCode); naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyCUWarnCode); this._freqConverters.forEach(function (nr) { naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage.replace('$', nr)); naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent.replace('$', nr)); naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency.replace('$', nr)); naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr)); naturalKeys.push(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr)); }); return naturalKeys; }, enumerable: true, configurable: true }); TrolleyElectricalRtgViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TrolleyElectricalRtgViewModel.prototype.updateViewModel = function () { var _this = this; if (this._dataPoints != null) { var dcBusValueDp = this._dataPoints.Get(TrolleyElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage); if (dcBusValueDp != null) { this.dcBusValue = dcBusValueDp.data; } var cuStateWarnCodeDp = this._dataPoints.Get(TrolleyElectricalRtgViewModel.naturalKeyCUWarnCode); if (cuStateWarnCodeDp != null) { this.cuState.warnCode = cuStateWarnCodeDp.data; } var cuStateFaultCodeDp = this._dataPoints.Get(TrolleyElectricalRtgViewModel.naturalKeyCUFaultCode); if (cuStateFaultCodeDp != null) { this.cuState.faultCode = cuStateFaultCodeDp.data; } this._freqConverters.forEach(function (nr, index) { var driveState = _this.driveStates[index]; var driveStateWarnCodeDp = _this._dataPoints.Get(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode.replace('$', nr)); if (driveStateWarnCodeDp != null) { driveState.warnCode = driveStateWarnCodeDp.data; } var driveStateFaultCodeDp = _this._dataPoints.Get(TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode.replace('$', nr)); if (driveStateFaultCodeDp != null) { driveState.faultCode = driveStateFaultCodeDp.data; } switch (_this.valuesToBeDisplayed) { case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].OutputVoltage: driveState.displayValueNaturalKey = TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActCurrent: driveState.displayValueNaturalKey = TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActTorque: driveState.displayValueNaturalKey = TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].OutputFrequency: driveState.displayValueNaturalKey = TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency.replace('$', nr); break; case types_config__WEBPACK_IMPORTED_MODULE_2__["DisplayValue"].ActSpeed: driveState.displayValueNaturalKey = TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed.replace('$', nr); break; default: driveState.displayValueNaturalKey = undefined; break; } if (driveState.displayValueNaturalKey) { var driveStateDisplayValueDp = _this._dataPoints.Get(driveState.displayValueNaturalKey); if (driveStateDisplayValueDp != null) { driveState.displayValue = driveStateDisplayValueDp.data; } } }); this.warnCodeActive = this.driveStates.some(function (ds) { return ds.warnCode > 0; }) || this.cuState.warnCode > 0; this.faultCodeActive = this.driveStates.some(function (ds) { return ds.faultCode > 0; }) || this.cuState.faultCode > 0; if (this.faultCodeActive) { this.stateText = 'error'; this.highlight = true; this.isIdle = false; } else if (this.warnCodeActive) { this.stateText = 'warning'; this.highlight = true; this.isIdle = false; } else { this.stateText = this._viewMode; this.highlight = false; this.isIdle = true; } this.state = this.faultCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Error : this.warnCodeActive ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Warning : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_3__["StateIndication"].Ok; } }; TrolleyElectricalRtgViewModel.naturalKeyGenActiveLineModuleOutputVoltage = 'Gen_ActiveLineModule_1_OutputVoltage'; TrolleyElectricalRtgViewModel.naturalKeyCUFaultCode = 'Tro_Positioning_Ctrl_Cu_FaultCode'; TrolleyElectricalRtgViewModel.naturalKeyCUWarnCode = 'Tro_Positioning_Ctrl_Cu_WarnCode'; TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlFaultCode = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_FaultCode'; TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlWarnCode = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_WarnCode'; TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlOutputVoltage = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_OutputVoltage'; TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActCurrent = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActCurrent'; TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActSpeed = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActSpeed'; TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlOutputFrequency = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_OutputFrequency'; TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActTorque = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActTorque'; TrolleyElectricalRtgViewModel.naturalKeyWildcardCtrlActDataSet = 'Tro_Positioning_Ctrl_Ctrl_$_SinamicsS_ActDataSet'; return TrolleyElectricalRtgViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_0__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/trolley-mechanical-csx.viewmodel.ts": /*!************************************************************!*\ !*** ./src/app/models/trolley-mechanical-csx.viewmodel.ts ***! \************************************************************/ /*! exports provided: TrolleyMechanicalCsxViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyMechanicalCsxViewModel", function() { return TrolleyMechanicalCsxViewModel; }); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pipes/unit-system-convert.pipe */ "./src/app/pipes/unit-system-convert.pipe.ts"); /* harmony import */ var _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trolley-card.viewmodel */ "./src/app/models/trolley-card.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var TrolleyMechanicalCsxViewModel = /** @class */ (function (_super) { __extends(TrolleyMechanicalCsxViewModel, _super); function TrolleyMechanicalCsxViewModel(_orientationService, craneConfig) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].AliasTrolley].components.find(function (e) { return e.id === 'mechanical-csx-double-girder'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.motorState = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"]; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Ok; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.driveStates = new Array(); _this._oneToFour = ['1', '2', '3', '4']; _this._currentUnitSystem = types_config__WEBPACK_IMPORTED_MODULE_0__["UnitSystem"].Metric; _this.stateText = 'initializing'; _this.position = 0.0; _this.speed = 0.0; _this._oneToFour.forEach(function (nr) { _this.driveStates.push(_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Idle); }); _this.updateComponentConfig(); return _this; } Object.defineProperty(TrolleyMechanicalCsxViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCsxViewModel.prototype, "isAscentSideRight", { get: function () { return this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCsxViewModel.prototype, "isPositiveDirectionOnTop", { get: function () { return this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCsxViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipTrolleyVertical !== null) return this._orientationService.flipTrolleyVertical; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCsxViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipTrolleyHorizontal !== null) return this._orientationService.flipTrolleyHorizontal; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCsxViewModel.prototype, "unitSystem", { set: function (value) { this._currentUnitSystem = value; }, enumerable: true, configurable: true }); TrolleyMechanicalCsxViewModel.prototype.updateComponentConfig = function () { this.hasMachineryHouse = this.isDeviceEnabled('machinery-house'); this.hasStormBrakes = this.isDeviceEnabled('windLockRight'); this.hasStormBrakesLeft = this.isDeviceEnabled('windLockLeft'); this.updateFooterValuesConfig(); }; TrolleyMechanicalCsxViewModel.prototype.updateFooterValuesConfig = function () { this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].NoValuePlaceholder, naturalKey: TrolleyMechanicalCsxViewModel.naturalKeyTrolleySpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle }; this.positionFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].NoValuePlaceholder, naturalKey: TrolleyMechanicalCsxViewModel.naturalKeyTrolleyPosition, description: 'position', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle }; }; Object.defineProperty(TrolleyMechanicalCsxViewModel.prototype, "naturalKeys", { get: function () { var _this = this; var naturalKeys = []; naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyPosition); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleySpeed); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyInterlockPosActive); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyInterlockNegActive); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyMaxSpeedPos); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyMaxSpeedNeg); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeySpeedLimitPosActive); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeySpeedLimitNegActive); if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateIdle); } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); } this._oneToFour.forEach(function (nr) { var trolleyBrakeOpen = TrolleyMechanicalCsxViewModel.naturalKeyWildcardTrolleyBrakeOpen.replace('$', nr); if (_this.isDatapointEnabled(trolleyBrakeOpen)) { naturalKeys.push(trolleyBrakeOpen); } }); if (this.hasStormBrakes) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockClosed); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockOpened); } if (this.hasStormBrakesLeft) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockLeftClosed); naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockLeftOpened); } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(TrolleyMechanicalCsxViewModel.naturalKeyReleaseAutomaticIsMissing); } return naturalKeys; }, enumerable: true, configurable: true }); TrolleyMechanicalCsxViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TrolleyMechanicalCsxViewModel.prototype.updateViewModel = function () { if (!this._dataPoints) { return; } this.updatePositionData(); this.updateSpeedData(); this.updateStormBreakState(); this.updateMotorStates(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateState(); this.updateFooterValues(); }; TrolleyMechanicalCsxViewModel.prototype.updateFooterValues = function () { this.speedFooterValue.value = this.speed; this.speedFooterValue.state = this.state; this.positionFooterValue.value = this.position; this.positionFooterValue.state = this.state; }; TrolleyMechanicalCsxViewModel.prototype.updateMotorStates = function () { var _this = this; this._oneToFour.forEach(function (nr, index) { var motorTempValid = true; var gearTempValid = true; var motorRunningDp = _this._dataPoints.Get(TrolleyMechanicalCsxViewModel.naturalKeyWildcardTrolleyBrakeOpen.replace('$', nr)); if (!motorTempValid || !gearTempValid) { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Error; } else if (motorRunningDp != null && motorRunningDp.data) { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Running; } else { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Idle; } }); }; TrolleyMechanicalCsxViewModel.prototype.updateStormBreakState = function () { if (this.hasStormBrakes) { var stormBreakLocked = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockClosed) .data; var stormBreakOpened = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockOpened) .data; this.stormBreakState = this.getStormBreakState(stormBreakLocked, stormBreakOpened); } if (this.hasStormBrakesLeft) { var stormBreakLocked = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockLeftClosed) .data; var stormBreakOpened = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockLeftOpened) .data; this.stormBreakLeftState = this.getStormBreakState(stormBreakLocked, stormBreakOpened); } }; TrolleyMechanicalCsxViewModel.prototype.updateSpeedData = function () { var actualSpeed = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyTrolleySpeed) .data; this.maxSpeedPos = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyMaxSpeedPos) .data; this.maxSpeedNeg = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyMaxSpeedNeg) .data; if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } this.speed = Math.abs(actualSpeed); this.speedPos = this.movePos ? this.speed : 0; this.speedNeg = this.moveNeg ? this.speed : 0; }; TrolleyMechanicalCsxViewModel.prototype.updatePositionData = function () { this.position = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyTrolleyPosition) .data; }; TrolleyMechanicalCsxViewModel.prototype.updateSpeedIndication = function () { this.interlockPositiveActive = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyInterlockPosActive) .data; this.interlockNegativeActive = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeyInterlockNegActive) .data; this.speedLimitPositiveActive = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeySpeedLimitPosActive) .data; this.speedLimitNegativeActive = this._dataPoints .UncheckedGet(TrolleyMechanicalCsxViewModel.naturalKeySpeedLimitNegActive) .data; }; TrolleyMechanicalCsxViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalCsxViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalCsxViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalCsxViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCsxViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalCsxViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; TrolleyMechanicalCsxViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.error = this.isInError(); if (this.error) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'moving_forwards'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'moving_backwards'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.driveStates.some(function (s) { return s === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Running; })) { this.stateText = 'active'; this.highlight = true; } else if (this.stormBreakState === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Closed) { this.stateText = 'wind_locks_activated'; this.highlight = true; } else if (this.stormBreakLeftState === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Closed) { this.stateText = 'wind_locks_activated'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Ok; }; TrolleyMechanicalCsxViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; TrolleyMechanicalCsxViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; TrolleyMechanicalCsxViewModel.prototype.isInError = function () { return this.driveStates.some(function (s) { return s === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Error; }) || this.stormBreakState === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Error || this.stormBreakLeftState === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Error; }; TrolleyMechanicalCsxViewModel.prototype.getStormBreakState = function (stormBreakLocked, stormBreakOpened) { return stormBreakLocked === stormBreakOpened ? _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Error : stormBreakOpened ? _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Opened : _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Closed; }; TrolleyMechanicalCsxViewModel.prototype.initUnitConversion = function (unitConversionService, unitKeyService, translationService) { this._currentLanguage = translationService.currentLanguage; if (!this._unitSystemConvertPipe) { var unitSystemBaseConvertPipe = new app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_8__["UnitSystemBaseConvertPipe"](unitConversionService); var unitSystemNumericConvertPipe = new app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_6__["UnitSystemNumericConvertPipe"](unitConversionService, unitKeyService, unitSystemBaseConvertPipe); var l10nDecimalPipe = new angular_l10n__WEBPACK_IMPORTED_MODULE_7__["L10nDecimalPipe"](); this._unitSystemConvertPipe = new app_pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_2__["UnitSystemConvertPipe"](unitConversionService, unitKeyService, unitSystemNumericConvertPipe, translationService, l10nDecimalPipe); } }; TrolleyMechanicalCsxViewModel.naturalKeyTrolleyPosition = 'Tro_PositionEval_ActPosition'; TrolleyMechanicalCsxViewModel.naturalKeyTrolleySpeed = 'Tro_SpeedEval_ActVelocity'; TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockClosed = 'Tro_WindLock_Right_IsRunLock'; TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockOpened = 'Tro_WindLock_Right_IsRunUnlock'; TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockLeftClosed = 'Tro_WindLock_Left_IsRunLock'; TrolleyMechanicalCsxViewModel.naturalKeyTrolleyStormlockLeftOpened = 'Tro_WindLock_Left_IsRunUnlock'; TrolleyMechanicalCsxViewModel.naturalKeyInterlockPosActive = 'Tro_Interlocks_IsInterlockPosDirActive'; TrolleyMechanicalCsxViewModel.naturalKeyInterlockNegActive = 'Tro_Interlocks_IsInterlockNegDirActive'; TrolleyMechanicalCsxViewModel.naturalKeyMaxSpeedPos = 'Tro_SpeedLimit_MaxSpeedPosDir'; TrolleyMechanicalCsxViewModel.naturalKeyMaxSpeedNeg = 'Tro_SpeedLimit_MaxSpeedNegDir'; TrolleyMechanicalCsxViewModel.naturalKeySpeedLimitPosActive = 'Tro_SpeedLimit_IsSpeedLimitPosDirActive'; TrolleyMechanicalCsxViewModel.naturalKeySpeedLimitNegActive = 'Tro_SpeedLimit_IsSpeedLimitNegDirActive'; TrolleyMechanicalCsxViewModel.naturalKeyWildcardTrolleyBrakeOpen = 'Tro_Positioning_Ctrl_Ctrl_1_BrakeCtrl_IsOpened_$'; TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateIdle = 'Tro_MovementEval_ActState_Idle'; TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiPo = 'Tro_MovementEval_ActState_RiPo'; TrolleyMechanicalCsxViewModel.naturalKeyTrolleyMovementEvalActStateRiNe = 'Tro_MovementEval_ActState_RiNe'; TrolleyMechanicalCsxViewModel.naturalKeyRelease1IsMissing = 'Tro_Release_1_PosDir_NegDir_IsMissing'; TrolleyMechanicalCsxViewModel.naturalKeyRelease2IsMissing = 'Tro_Release_2_PosDir_NegDir_IsMissing'; TrolleyMechanicalCsxViewModel.naturalKeyRelease3IsMissing = 'Tro_Release_3_PosDir_NegDir_IsMissing'; TrolleyMechanicalCsxViewModel.naturalKeyReleaseAutomaticIsMissing = 'Tro_Release_Automatic_PosDir_NegDir_IsMissing'; return TrolleyMechanicalCsxViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/trolley-mechanical-ctk.viewmodel.ts": /*!************************************************************!*\ !*** ./src/app/models/trolley-mechanical-ctk.viewmodel.ts ***! \************************************************************/ /*! exports provided: TrolleyMechanicalCtkViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyMechanicalCtkViewModel", function() { return TrolleyMechanicalCtkViewModel; }); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pipes/unit-system-convert.pipe */ "./src/app/pipes/unit-system-convert.pipe.ts"); /* harmony import */ var _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trolley-card.viewmodel */ "./src/app/models/trolley-card.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var TrolleyMechanicalCtkViewModel = /** @class */ (function (_super) { __extends(TrolleyMechanicalCtkViewModel, _super); function TrolleyMechanicalCtkViewModel(_orientationService, craneConfig) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].AliasTrolley].components.find(function (e) { return e.id === 'mechanical-ctk-double-girder'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.motorState = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"]; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Ok; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.driveStates = new Array(); _this._oneToFour = ['1', '2', '3', '4']; _this._currentUnitSystem = types_config__WEBPACK_IMPORTED_MODULE_0__["UnitSystem"].Metric; _this.stateText = 'initializing'; _this.position = 0.0; _this.speed = 0.0; _this._oneToFour.forEach(function (nr) { _this.driveStates.push(_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Idle); }); _this.updateComponentConfig(); return _this; } Object.defineProperty(TrolleyMechanicalCtkViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCtkViewModel.prototype, "isAscentSideRight", { get: function () { return this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCtkViewModel.prototype, "isPositiveDirectionOnTop", { get: function () { return this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCtkViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipTrolleyVertical !== null) return this._orientationService.flipTrolleyVertical; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCtkViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipTrolleyHorizontal !== null) return this._orientationService.flipTrolleyHorizontal; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalCtkViewModel.prototype, "unitSystem", { set: function (value) { this._currentUnitSystem = value; }, enumerable: true, configurable: true }); TrolleyMechanicalCtkViewModel.prototype.updateComponentConfig = function () { this.hasMachineryHouse = this.isDeviceEnabled('machinery-house'); this.hasStormBrakes = this.isDeviceEnabled('windLock'); this.updateFooterValuesConfig(); }; TrolleyMechanicalCtkViewModel.prototype.updateFooterValuesConfig = function () { this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].NoValuePlaceholder, naturalKey: TrolleyMechanicalCtkViewModel.naturalKeyTrolleySpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle }; this.positionFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].NoValuePlaceholder, naturalKey: TrolleyMechanicalCtkViewModel.naturalKeyTrolleyPosition, description: 'position', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle }; }; Object.defineProperty(TrolleyMechanicalCtkViewModel.prototype, "naturalKeys", { get: function () { var _this = this; var naturalKeys = []; naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyPosition); naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyTrolleySpeed); naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyInterlockPosActive); naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyInterlockNegActive); naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyMaxSpeedPos); naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyMaxSpeedNeg); naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeySpeedLimitPosActive); naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeySpeedLimitNegActive); if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateIdle); } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); } this._oneToFour.forEach(function (nr) { var trolleyBrakeOpen = TrolleyMechanicalCtkViewModel.naturalKeyWildcardTrolleyBrakeOpen.replace('$', nr); if (_this.isDatapointEnabled(trolleyBrakeOpen)) { naturalKeys.push(trolleyBrakeOpen); } }); if (this.hasStormBrakes) { naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyStormlockClosed); naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyStormlockOpened); } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(TrolleyMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing); } return naturalKeys; }, enumerable: true, configurable: true }); TrolleyMechanicalCtkViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TrolleyMechanicalCtkViewModel.prototype.updateViewModel = function () { if (!this._dataPoints) { return; } this.updatePositionData(); this.updateSpeedData(); this.updateStormBreakState(); this.updateMotorStates(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateState(); this.updateFooterValues(); }; TrolleyMechanicalCtkViewModel.prototype.updateFooterValues = function () { this.speedFooterValue.value = this.speed; this.speedFooterValue.state = this.state; this.positionFooterValue.value = this.position; this.positionFooterValue.state = this.state; }; TrolleyMechanicalCtkViewModel.prototype.updateMotorStates = function () { var _this = this; this._oneToFour.forEach(function (nr, index) { var motorTempValid = true; var gearTempValid = true; var motorRunningDp = _this._dataPoints.Get(TrolleyMechanicalCtkViewModel.naturalKeyWildcardTrolleyBrakeOpen.replace('$', nr)); if (!motorTempValid || !gearTempValid) { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Error; } else if (motorRunningDp != null && motorRunningDp.data) { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Running; } else { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Idle; } }); }; TrolleyMechanicalCtkViewModel.prototype.updateStormBreakState = function () { if (this.hasStormBrakes) { var stormBreakLocked = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyStormlockClosed) .data; var stormBreakOpened = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyStormlockOpened) .data; this.stormBreakState = this.getStormBreakState(stormBreakLocked, stormBreakOpened); } }; TrolleyMechanicalCtkViewModel.prototype.updateSpeedData = function () { var actualSpeed = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeyTrolleySpeed) .data; this.maxSpeedPos = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeyMaxSpeedPos) .data; this.maxSpeedNeg = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeyMaxSpeedNeg) .data; if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } this.speed = Math.abs(actualSpeed); this.speedPos = this.movePos ? this.speed : 0; this.speedNeg = this.moveNeg ? this.speed : 0; }; TrolleyMechanicalCtkViewModel.prototype.updatePositionData = function () { this.position = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeyTrolleyPosition) .data; }; TrolleyMechanicalCtkViewModel.prototype.updateSpeedIndication = function () { this.interlockPositiveActive = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeyInterlockPosActive) .data; this.interlockNegativeActive = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeyInterlockNegActive) .data; this.speedLimitPositiveActive = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeySpeedLimitPosActive) .data; this.speedLimitNegativeActive = this._dataPoints .UncheckedGet(TrolleyMechanicalCtkViewModel.naturalKeySpeedLimitNegActive) .data; }; TrolleyMechanicalCtkViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalCtkViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalCtkViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalCtkViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; TrolleyMechanicalCtkViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.error = this.isInError(); if (this.error) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'moving_forwards'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'moving_backwards'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.driveStates.some(function (s) { return s === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Running; })) { this.stateText = 'active'; this.highlight = true; } else if (this.stormBreakState === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Closed) { this.stateText = 'wind_locks_activated'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Ok; }; TrolleyMechanicalCtkViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; TrolleyMechanicalCtkViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; TrolleyMechanicalCtkViewModel.prototype.isInError = function () { return this.driveStates.some(function (s) { return s === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Error; }) || this.stormBreakState === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Error; }; TrolleyMechanicalCtkViewModel.prototype.getStormBreakState = function (stormBreakLocked, stormBreakOpened) { return stormBreakLocked === stormBreakOpened ? _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Error : stormBreakOpened ? _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Opened : _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Closed; }; TrolleyMechanicalCtkViewModel.prototype.initUnitConversion = function (unitConversionService, unitKeyService, translationService) { this._currentLanguage = translationService.currentLanguage; if (!this._unitSystemConvertPipe) { var unitSystemBaseConvertPipe = new app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_8__["UnitSystemBaseConvertPipe"](unitConversionService); var unitSystemNumericConvertPipe = new app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_6__["UnitSystemNumericConvertPipe"](unitConversionService, unitKeyService, unitSystemBaseConvertPipe); var l10nDecimalPipe = new angular_l10n__WEBPACK_IMPORTED_MODULE_7__["L10nDecimalPipe"](); this._unitSystemConvertPipe = new app_pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_2__["UnitSystemConvertPipe"](unitConversionService, unitKeyService, unitSystemNumericConvertPipe, translationService, l10nDecimalPipe); } }; TrolleyMechanicalCtkViewModel.naturalKeyTrolleyPosition = 'Tro_PositionEval_ActPosition'; TrolleyMechanicalCtkViewModel.naturalKeyTrolleySpeed = 'Tro_SpeedEval_ActVelocity'; TrolleyMechanicalCtkViewModel.naturalKeyTrolleyStormlockClosed = 'Tro_WindLock_IsRunLock'; TrolleyMechanicalCtkViewModel.naturalKeyTrolleyStormlockOpened = 'Tro_WindLock_IsRunUnlock'; TrolleyMechanicalCtkViewModel.naturalKeyInterlockPosActive = 'Tro_Interlocks_IsInterlockPosDirActive'; TrolleyMechanicalCtkViewModel.naturalKeyInterlockNegActive = 'Tro_Interlocks_IsInterlockNegDirActive'; TrolleyMechanicalCtkViewModel.naturalKeyMaxSpeedPos = 'Tro_SpeedLimit_MaxSpeedPosDir'; TrolleyMechanicalCtkViewModel.naturalKeyMaxSpeedNeg = 'Tro_SpeedLimit_MaxSpeedNegDir'; TrolleyMechanicalCtkViewModel.naturalKeySpeedLimitPosActive = 'Tro_SpeedLimit_IsSpeedLimitPosDirActive'; TrolleyMechanicalCtkViewModel.naturalKeySpeedLimitNegActive = 'Tro_SpeedLimit_IsSpeedLimitNegDirActive'; TrolleyMechanicalCtkViewModel.naturalKeyWildcardTrolleyBrakeOpen = 'Tro_Positioning_Ctrl_Ctrl_1_BrakeCtrl_IsOpened_$'; TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateIdle = 'Tro_MovementEval_ActState_Idle'; TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiPo = 'Tro_MovementEval_ActState_RiPo'; TrolleyMechanicalCtkViewModel.naturalKeyTrolleyMovementEvalActStateRiNe = 'Tro_MovementEval_ActState_RiNe'; TrolleyMechanicalCtkViewModel.naturalKeyRelease1IsMissing = 'Tro_Release_1_PosDir_NegDir_IsMissing'; TrolleyMechanicalCtkViewModel.naturalKeyRelease2IsMissing = 'Tro_Release_2_PosDir_NegDir_IsMissing'; TrolleyMechanicalCtkViewModel.naturalKeyRelease3IsMissing = 'Tro_Release_3_PosDir_NegDir_IsMissing'; TrolleyMechanicalCtkViewModel.naturalKeyReleaseAutomaticIsMissing = 'Tro_Release_Automatic_PosDir_NegDir_IsMissing'; return TrolleyMechanicalCtkViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/trolley-mechanical-kc.viewmodel.ts": /*!***********************************************************!*\ !*** ./src/app/models/trolley-mechanical-kc.viewmodel.ts ***! \***********************************************************/ /*! exports provided: TrolleyMechanicalKcViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyMechanicalKcViewModel", function() { return TrolleyMechanicalKcViewModel; }); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pipes/unit-system-convert.pipe */ "./src/app/pipes/unit-system-convert.pipe.ts"); /* harmony import */ var _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trolley-card.viewmodel */ "./src/app/models/trolley-card.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var TrolleyMechanicalKcViewModel = /** @class */ (function (_super) { __extends(TrolleyMechanicalKcViewModel, _super); function TrolleyMechanicalKcViewModel(_orientationService, craneConfig) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].AliasTrolley].components.find(function (e) { return e.id === 'mechanical-kc-double-girder'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.motorState = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"]; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Ok; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.hasStormBrakes = false; _this.driveStates = new Array(); _this._oneToTwo = ['1', '2']; // configurations _this.hasMachineryHouse = false; _this._currentUnitSystem = types_config__WEBPACK_IMPORTED_MODULE_0__["UnitSystem"].Metric; _this.stateText = 'initializing'; _this.position = 0.0; _this.speed = 0.0; _this._oneToTwo.forEach(function (nr) { _this.driveStates.push(_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Idle); }); _this.updateComponentConfig(); return _this; } Object.defineProperty(TrolleyMechanicalKcViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalKcViewModel.prototype, "isAscentSideRight", { get: function () { return this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalKcViewModel.prototype, "isPositiveDirectionOnTop", { get: function () { return this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalKcViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipTrolleyVertical !== null) return this._orientationService.flipTrolleyVertical; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalKcViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipTrolleyHorizontal !== null) return this._orientationService.flipTrolleyHorizontal; return this._orientationService.isTrolleyPodestForward !== this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalKcViewModel.prototype, "unitSystem", { set: function (value) { this._currentUnitSystem = value; }, enumerable: true, configurable: true }); TrolleyMechanicalKcViewModel.prototype.updateComponentConfig = function () { this.updateFooterValuesConfig(); }; TrolleyMechanicalKcViewModel.prototype.updateFooterValuesConfig = function () { this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].NoValuePlaceholder, naturalKey: TrolleyMechanicalKcViewModel.naturalKeyTrolleySpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle }; this.positionFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].NoValuePlaceholder, naturalKey: TrolleyMechanicalKcViewModel.naturalKeyTrolleyPosition, description: 'position', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle }; }; Object.defineProperty(TrolleyMechanicalKcViewModel.prototype, "naturalKeys", { get: function () { var _this = this; var naturalKeys = []; naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyTrolleyPosition); naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyTrolleySpeed); naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyInterlockPosActive); naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyInterlockNegActive); naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyMaxSpeedPos); naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyMaxSpeedNeg); naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeySpeedLimitPosActive); naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeySpeedLimitNegActive); if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle); } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); } this._oneToTwo.forEach(function (nr) { var trolleyBrakeOpen = TrolleyMechanicalKcViewModel.naturalKeyWildcardTrolleyBrakeOpen.replace('$', nr); if (_this.isDatapointEnabled(trolleyBrakeOpen)) { naturalKeys.push(trolleyBrakeOpen); } }); if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(TrolleyMechanicalKcViewModel.naturalKeyReleaseAutomaticIsMissing); } return naturalKeys; }, enumerable: true, configurable: true }); TrolleyMechanicalKcViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TrolleyMechanicalKcViewModel.prototype.updateViewModel = function () { if (!this._dataPoints) { return; } this.updatePositionData(); this.updateSpeedData(); this.updateMotorStates(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateState(); this.updateFooterValues(); }; TrolleyMechanicalKcViewModel.prototype.updateFooterValues = function () { this.speedFooterValue.value = this.speed; this.speedFooterValue.state = this.state; this.positionFooterValue.value = this.position; this.positionFooterValue.state = this.state; }; TrolleyMechanicalKcViewModel.prototype.updateMotorStates = function () { var _this = this; this._oneToTwo.forEach(function (nr, index) { var motorTempValid = true; var gearTempValid = true; var motorRunningDp = _this._dataPoints.Get(TrolleyMechanicalKcViewModel.naturalKeyWildcardTrolleyBrakeOpen.replace('$', nr)); if (!motorTempValid || !gearTempValid) { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Error; } else if (motorRunningDp != null && motorRunningDp.data) { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Running; } else { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Idle; } }); }; TrolleyMechanicalKcViewModel.prototype.updateSpeedData = function () { var actualSpeed = this._dataPoints .UncheckedGet(TrolleyMechanicalKcViewModel.naturalKeyTrolleySpeed) .data; this.maxSpeedPos = this._dataPoints .UncheckedGet(TrolleyMechanicalKcViewModel.naturalKeyMaxSpeedPos) .data; this.maxSpeedNeg = this._dataPoints .UncheckedGet(TrolleyMechanicalKcViewModel.naturalKeyMaxSpeedNeg) .data; if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } this.speed = Math.abs(actualSpeed); this.speedPos = this.movePos ? this.speed : 0; this.speedNeg = this.moveNeg ? this.speed : 0; }; TrolleyMechanicalKcViewModel.prototype.updatePositionData = function () { this.position = this._dataPoints .UncheckedGet(TrolleyMechanicalKcViewModel.naturalKeyTrolleyPosition) .data; }; TrolleyMechanicalKcViewModel.prototype.updateSpeedIndication = function () { this.interlockPositiveActive = this._dataPoints .UncheckedGet(TrolleyMechanicalKcViewModel.naturalKeyInterlockPosActive) .data; this.interlockNegativeActive = this._dataPoints .UncheckedGet(TrolleyMechanicalKcViewModel.naturalKeyInterlockNegActive) .data; this.speedLimitPositiveActive = this._dataPoints .UncheckedGet(TrolleyMechanicalKcViewModel.naturalKeySpeedLimitPosActive) .data; this.speedLimitNegativeActive = this._dataPoints .UncheckedGet(TrolleyMechanicalKcViewModel.naturalKeySpeedLimitNegActive) .data; }; TrolleyMechanicalKcViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalKcViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalKcViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalKcViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalKcViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalKcViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; TrolleyMechanicalKcViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.error = this.isInError(); if (this.error) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'moving_forwards'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'moving_backwards'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.driveStates.some(function (s) { return s === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Running; })) { this.stateText = 'active'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Ok; }; TrolleyMechanicalKcViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; TrolleyMechanicalKcViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; TrolleyMechanicalKcViewModel.prototype.isInError = function () { return this.driveStates.some(function (s) { return s === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Error; }); }; TrolleyMechanicalKcViewModel.prototype.initUnitConversion = function (unitConversionService, unitKeyService, translationService) { this._currentLanguage = translationService.currentLanguage; if (!this._unitSystemConvertPipe) { var unitSystemBaseConvertPipe = new app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_8__["UnitSystemBaseConvertPipe"](unitConversionService); var unitSystemNumericConvertPipe = new app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_6__["UnitSystemNumericConvertPipe"](unitConversionService, unitKeyService, unitSystemBaseConvertPipe); var l10nDecimalPipe = new angular_l10n__WEBPACK_IMPORTED_MODULE_7__["L10nDecimalPipe"](); this._unitSystemConvertPipe = new app_pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_2__["UnitSystemConvertPipe"](unitConversionService, unitKeyService, unitSystemNumericConvertPipe, translationService, l10nDecimalPipe); } }; TrolleyMechanicalKcViewModel.naturalKeyTrolleyPosition = 'Tro_PositionEval_ActPosition'; TrolleyMechanicalKcViewModel.naturalKeyTrolleySpeed = 'Tro_SpeedEval_ActVelocity'; TrolleyMechanicalKcViewModel.naturalKeyInterlockPosActive = 'Tro_Interlocks_IsInterlockPosDirActive'; TrolleyMechanicalKcViewModel.naturalKeyInterlockNegActive = 'Tro_Interlocks_IsInterlockNegDirActive'; TrolleyMechanicalKcViewModel.naturalKeyMaxSpeedPos = 'Tro_SpeedLimit_MaxSpeedPosDir'; TrolleyMechanicalKcViewModel.naturalKeyMaxSpeedNeg = 'Tro_SpeedLimit_MaxSpeedNegDir'; TrolleyMechanicalKcViewModel.naturalKeySpeedLimitPosActive = 'Tro_SpeedLimit_IsSpeedLimitPosDirActive'; TrolleyMechanicalKcViewModel.naturalKeySpeedLimitNegActive = 'Tro_SpeedLimit_IsSpeedLimitNegDirActive'; TrolleyMechanicalKcViewModel.naturalKeyWildcardTrolleyBrakeOpen = 'Tro_Positioning_Ctrl_Ctrl_1_BrakeCtrl_IsOpened_$'; TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateIdle = 'Tro_MovementEval_ActState_Idle'; TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiPo = 'Tro_MovementEval_ActState_RiPo'; TrolleyMechanicalKcViewModel.naturalKeyTrolleyMovementEvalActStateRiNe = 'Tro_MovementEval_ActState_RiNe'; TrolleyMechanicalKcViewModel.naturalKeyRelease1IsMissing = 'Tro_Release_1_PosDir_NegDir_IsMissing'; TrolleyMechanicalKcViewModel.naturalKeyRelease2IsMissing = 'Tro_Release_2_PosDir_NegDir_IsMissing'; TrolleyMechanicalKcViewModel.naturalKeyRelease3IsMissing = 'Tro_Release_3_PosDir_NegDir_IsMissing'; TrolleyMechanicalKcViewModel.naturalKeyReleaseAutomaticIsMissing = 'Tro_Release_Automatic_PosDir_NegDir_IsMissing'; return TrolleyMechanicalKcViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__["BaseViewmodel"])); /***/ }), /***/ "./src/app/models/trolley-mechanical-rtg.viewmodel.ts": /*!************************************************************!*\ !*** ./src/app/models/trolley-mechanical-rtg.viewmodel.ts ***! \************************************************************/ /*! exports provided: TrolleyMechanicalRtgViewModel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrolleyMechanicalRtgViewModel", function() { return TrolleyMechanicalRtgViewModel; }); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/models/base.viewmodel */ "./src/app/models/base.viewmodel.ts"); /* harmony import */ var app_pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pipes/unit-system-convert.pipe */ "./src/app/pipes/unit-system-convert.pipe.ts"); /* harmony import */ var _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trolley-card.viewmodel */ "./src/app/models/trolley-card.viewmodel.ts"); /* harmony import */ var _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./state-indication.enum */ "./src/app/models/state-indication.enum.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var TrolleyMechanicalRtgViewModel = /** @class */ (function (_super) { __extends(TrolleyMechanicalRtgViewModel, _super); function TrolleyMechanicalRtgViewModel(_orientationService, craneConfig) { var _this = _super.call(this, craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].AliasTrolley].components.find(function (e) { return e.id === 'mechanical-rtg-double-girder'; })) || this; _this._orientationService = _orientationService; _this.craneConfig = craneConfig; _this.motorState = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"]; _this.state = _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Ok; _this.isIdle = false; _this.movePos = false; _this.moveNeg = false; _this.driveStates = new Array(); _this._oneToFour = ['1', '2', '3', '4']; _this._currentUnitSystem = types_config__WEBPACK_IMPORTED_MODULE_0__["UnitSystem"].Metric; _this.stateText = 'initializing'; _this.position = 0.0; _this.speed = 0.0; _this._oneToFour.forEach(function (nr) { _this.driveStates.push(_trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Idle); }); _this.updateComponentConfig(); return _this; } Object.defineProperty(TrolleyMechanicalRtgViewModel.prototype, "isMoving", { get: function () { return (this.moveNeg !== this.movePos) && !this.isIdle; // neg XOR pos && !isIdle }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalRtgViewModel.prototype, "isAscentSideRight", { get: function () { return this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalRtgViewModel.prototype, "isPositiveDirectionOnTop", { get: function () { return this._orientationService.isTrolleyForwardTop; }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalRtgViewModel.prototype, "flipDrivesVertical", { get: function () { if (this._orientationService.flipTrolleyVertical !== null) return this._orientationService.flipTrolleyVertical; return !(this._orientationService.isElectricalSideForward === this._orientationService.isTrolleyForwardTop); // electricalSideTop }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalRtgViewModel.prototype, "flipDrivesHorizontal", { get: function () { if (this._orientationService.flipTrolleyHorizontal !== null) return this._orientationService.flipTrolleyHorizontal; return this._orientationService.isAscentSideForward === this._orientationService.isGantryForwardRight; // isAscentSideRight }, enumerable: true, configurable: true }); Object.defineProperty(TrolleyMechanicalRtgViewModel.prototype, "unitSystem", { set: function (value) { this._currentUnitSystem = value; }, enumerable: true, configurable: true }); TrolleyMechanicalRtgViewModel.prototype.updateComponentConfig = function () { this.hasMachineryHouse = this.isDeviceEnabled('machinery-house'); this.hasStormBrakes = this.isDeviceEnabled('windLock'); this.updateFooterValuesConfig(); }; TrolleyMechanicalRtgViewModel.prototype.updateFooterValuesConfig = function () { this.speedFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].NoValuePlaceholder, naturalKey: TrolleyMechanicalRtgViewModel.naturalKeyTrolleySpeed, description: 'speed', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle }; this.positionFooterValue = { isVisible: true, value: app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].NoValuePlaceholder, naturalKey: TrolleyMechanicalRtgViewModel.naturalKeyTrolleyPosition, description: 'position', state: _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle }; }; Object.defineProperty(TrolleyMechanicalRtgViewModel.prototype, "naturalKeys", { get: function () { var naturalKeys = []; naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyPosition); naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyTrolleySpeed); naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyInterlockPosActive); naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyInterlockNegActive); naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyMaxSpeedPos); naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyMaxSpeedNeg); naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeySpeedLimitPosActive); naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeySpeedLimitNegActive); if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateIdle); } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); } this._oneToFour.forEach(function (nr) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyWildcardTrolleyBrakeOpen.replace('$', nr)); }); if (this.hasStormBrakes) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyStormlockClosed); naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyStormlockOpened); } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyRelease1IsMissing)) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyRelease1IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyRelease2IsMissing)) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyRelease2IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyRelease3IsMissing)) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyRelease3IsMissing); } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing)) { naturalKeys.push(TrolleyMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing); } return naturalKeys; }, enumerable: true, configurable: true }); TrolleyMechanicalRtgViewModel.prototype.updateFromDatapoints = function (dataPoints) { this._dataPoints = dataPoints; this.updateViewModel(); }; TrolleyMechanicalRtgViewModel.prototype.updateViewModel = function () { if (!this._dataPoints) { return; } this.updatePositionData(); this.updateSpeedData(); this.updateSpeedIndication(); this.updateReleaseData(); this.updateStormBreakState(); this.updateMotorStates(); this.updateState(); this.updateFooterValues(); }; TrolleyMechanicalRtgViewModel.prototype.updateFooterValues = function () { this.speedFooterValue.value = this.speed; this.speedFooterValue.state = this.state; this.positionFooterValue.value = this.position; this.positionFooterValue.state = this.state; }; TrolleyMechanicalRtgViewModel.prototype.updateMotorStates = function () { var _this = this; this._oneToFour.forEach(function (nr, index) { var motorTempValid = true; var gearTempValid = true; var motorRunningDp = _this._dataPoints.Get(TrolleyMechanicalRtgViewModel.naturalKeyWildcardTrolleyBrakeOpen.replace('$', nr)); if (!motorTempValid || !gearTempValid) { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Error; } else if (motorRunningDp != null && motorRunningDp.data) { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Running; } else { _this.driveStates[index] = _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Idle; } }); }; TrolleyMechanicalRtgViewModel.prototype.updateStormBreakState = function () { if (this.hasStormBrakes) { var stormBreakLocked = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyStormlockClosed) .data; var stormBreakOpened = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyStormlockOpened) .data; this.stormBreakState = this.getStormBreakState(stormBreakLocked, stormBreakOpened); } }; TrolleyMechanicalRtgViewModel.prototype.updateSpeedData = function () { var actualSpeed = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeyTrolleySpeed) .data; this.maxSpeedPos = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeyMaxSpeedPos) .data; this.maxSpeedNeg = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeyMaxSpeedNeg) .data; if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateIdle)) { var isIdleDp = this._dataPoints.Get(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateIdle); if (isIdleDp != null) { this.isIdle = isIdleDp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiPo)) { var movePosDp = this._dataPoints.Get(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiPo); if (movePosDp != null) { this.movePos = movePosDp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiNe)) { var moveNegDp = this._dataPoints.Get(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiNe); if (moveNegDp != null) { this.moveNeg = moveNegDp.data; } } this.speed = Math.abs(actualSpeed); this.speedPos = this.movePos ? this.speed : 0; this.speedNeg = this.moveNeg ? this.speed : 0; }; TrolleyMechanicalRtgViewModel.prototype.updatePositionData = function () { this.position = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeyTrolleyPosition) .data; }; TrolleyMechanicalRtgViewModel.prototype.updateSpeedIndication = function () { this.interlockPositiveActive = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeyInterlockPosActive) .data; this.interlockNegativeActive = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeyInterlockNegActive) .data; this.speedLimitPositiveActive = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeySpeedLimitPosActive) .data; this.speedLimitNegativeActive = this._dataPoints .UncheckedGet(TrolleyMechanicalRtgViewModel.naturalKeySpeedLimitNegActive) .data; }; TrolleyMechanicalRtgViewModel.prototype.updateReleaseData = function () { var release1 = false, release2 = false, release3 = false, releaseAutomatic = false; if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyRelease1IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalRtgViewModel.naturalKeyRelease1IsMissing); if (dp != null) { release1 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyRelease2IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalRtgViewModel.naturalKeyRelease2IsMissing); if (dp != null) { release2 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyRelease3IsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalRtgViewModel.naturalKeyRelease3IsMissing); if (dp != null) { release3 = dp.data; } } if (this.isDatapointEnabled(TrolleyMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing)) { var dp = this._dataPoints.Get(TrolleyMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing); if (dp != null) { releaseAutomatic = dp.data; } } this.releaseIsMissing = release1 || release2 || release3 || releaseAutomatic; }; TrolleyMechanicalRtgViewModel.prototype.updateState = function () { // control "red-line" indicator bound to "error" this.error = this.isInError(); if (this.error) { this.stateText = 'error'; this.highlight = true; } else if (this.isMoving && this.movePos) { this.stateText = 'moving_forwards'; this.highlight = true; } else if (this.isMoving && this.moveNeg) { this.stateText = 'moving_backwards'; this.highlight = true; } else if ((!this.isMoving && !this.isIdle) || this.driveStates.some(function (s) { return s === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Running; })) { this.stateText = 'active'; this.highlight = true; } else if (this.stormBreakState === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Closed) { this.stateText = 'wind_locks_activated'; this.highlight = true; } else { this.stateText = 'idle'; this.highlight = false; } this.state = this.error ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Error : this.isInInterlockOrReleaseMissingState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Interlock : this.isInSpeedLimitState() ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Speedlimit : this.isIdle ? _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Idle : _state_indication_enum__WEBPACK_IMPORTED_MODULE_4__["StateIndication"].Ok; }; TrolleyMechanicalRtgViewModel.prototype.isInInterlockOrReleaseMissingState = function () { return this.releaseIsMissing || this.interlockPositiveActive || this.interlockNegativeActive; }; TrolleyMechanicalRtgViewModel.prototype.isInSpeedLimitState = function () { return this.speedLimitPositiveActive || this.speedLimitNegativeActive; }; TrolleyMechanicalRtgViewModel.prototype.isInError = function () { return this.driveStates.some(function (s) { return s === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["TrolleyMotorState"].Error; }) || this.stormBreakState === _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Error; }; TrolleyMechanicalRtgViewModel.prototype.getStormBreakState = function (stormBreakLocked, stormBreakOpened) { return stormBreakLocked === stormBreakOpened ? _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Error : stormBreakOpened ? _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Opened : _trolley_card_viewmodel__WEBPACK_IMPORTED_MODULE_3__["StormBreakState"].Closed; }; TrolleyMechanicalRtgViewModel.prototype.initUnitConversion = function (unitConversionService, unitKeyService, translationService) { this._currentLanguage = translationService.currentLanguage; if (!this._unitSystemConvertPipe) { var unitSystemBaseConvertPipe = new app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_8__["UnitSystemBaseConvertPipe"](unitConversionService); var unitSystemNumericConvertPipe = new app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_7__["UnitSystemNumericConvertPipe"](unitConversionService, unitKeyService, unitSystemBaseConvertPipe); var l10nDecimalPipe = new angular_l10n__WEBPACK_IMPORTED_MODULE_6__["L10nDecimalPipe"](); this._unitSystemConvertPipe = new app_pipes_unit_system_convert_pipe__WEBPACK_IMPORTED_MODULE_2__["UnitSystemConvertPipe"](unitConversionService, unitKeyService, unitSystemNumericConvertPipe, translationService, l10nDecimalPipe); } }; TrolleyMechanicalRtgViewModel.naturalKeyTrolleyPosition = 'Tro_PositionEval_ActPosition'; TrolleyMechanicalRtgViewModel.naturalKeyTrolleySpeed = 'Tro_SpeedEval_ActVelocity'; TrolleyMechanicalRtgViewModel.naturalKeyTrolleyStormlockClosed = 'Tro_WindLock_IsRunLock'; TrolleyMechanicalRtgViewModel.naturalKeyTrolleyStormlockOpened = 'Tro_WindLock_IsRunUnlock'; TrolleyMechanicalRtgViewModel.naturalKeyInterlockPosActive = 'Tro_Interlocks_IsInterlockPosDirActive'; TrolleyMechanicalRtgViewModel.naturalKeyInterlockNegActive = 'Tro_Interlocks_IsInterlockNegDirActive'; TrolleyMechanicalRtgViewModel.naturalKeyMaxSpeedPos = 'Tro_SpeedLimit_MaxSpeedPosDir'; TrolleyMechanicalRtgViewModel.naturalKeyMaxSpeedNeg = 'Tro_SpeedLimit_MaxSpeedNegDir'; TrolleyMechanicalRtgViewModel.naturalKeySpeedLimitPosActive = 'Tro_SpeedLimit_IsSpeedLimitPosDirActive'; TrolleyMechanicalRtgViewModel.naturalKeySpeedLimitNegActive = 'Tro_SpeedLimit_IsSpeedLimitNegDirActive'; TrolleyMechanicalRtgViewModel.naturalKeyWildcardTrolleyBrakeOpen = 'Tro_Positioning_Ctrl_Ctrl_1_BrakeCtrl_IsOpened_$'; TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateIdle = 'Tro_MovementEval_ActState_Idle'; TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiPo = 'Tro_MovementEval_ActState_RiPo'; TrolleyMechanicalRtgViewModel.naturalKeyTrolleyMovementEvalActStateRiNe = 'Tro_MovementEval_ActState_RiNe'; TrolleyMechanicalRtgViewModel.naturalKeyRelease1IsMissing = 'Tro_Release_1_PosDir_NegDir_IsMissing'; TrolleyMechanicalRtgViewModel.naturalKeyRelease2IsMissing = 'Tro_Release_2_PosDir_NegDir_IsMissing'; TrolleyMechanicalRtgViewModel.naturalKeyRelease3IsMissing = 'Tro_Release_3_PosDir_NegDir_IsMissing'; TrolleyMechanicalRtgViewModel.naturalKeyReleaseAutomaticIsMissing = 'Tro_Release_Automatic_PosDir_NegDir_IsMissing'; return TrolleyMechanicalRtgViewModel; }(app_models_base_viewmodel__WEBPACK_IMPORTED_MODULE_1__["BaseViewmodel"])); /***/ }), /***/ "./src/app/pipes/counter-to-si-unit.pipe.ts": /*!**************************************************!*\ !*** ./src/app/pipes/counter-to-si-unit.pipe.ts ***! \**************************************************/ /*! exports provided: CounterToSiUnitPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CounterToSiUnitPipe", function() { return CounterToSiUnitPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _counter_to_unit_key_pipe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./counter-to-unit-key.pipe */ "./src/app/pipes/counter-to-unit-key.pipe.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; ; var CounterToSiUnitPipe = /** @class */ (function () { function CounterToSiUnitPipe(_unitConversion, _unitSystemBaseConvertPipe, _counterToUnitKeyPipe) { this._unitConversion = _unitConversion; this._unitSystemBaseConvertPipe = _unitSystemBaseConvertPipe; this._counterToUnitKeyPipe = _counterToUnitKeyPipe; } CounterToSiUnitPipe.prototype.transform = function (value, counterType) { var _this = this; if (this._cachedUnitSystem !== this._unitConversion.selectedUnitSystem) { this._cachedUnitSystem = this._unitConversion.selectedUnitSystem; this._unitConversion.initialized .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (x) { return x; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])()) .subscribe(function () { _this._initialized = true; _this._cachedValue = undefined; }); } if (this._initialized) { if (this._cachedResult != null && this._cachedValue === value) { return this._cachedResult; } this._cachedValue = value; this._cachedResult = this.convertCounterValue(value, counterType, this._cachedUnitSystem); } return this._cachedResult; }; CounterToSiUnitPipe.prototype.convertCounterValue = function (value, counterType, sourceUnitSystem) { if (value != null) { var unitKey = this._counterToUnitKeyPipe.transform(counterType); if (unitKey != null) { var result = this._unitSystemBaseConvertPipe.transform(value, unitKey, sourceUnitSystem, types_config__WEBPACK_IMPORTED_MODULE_4__["UnitSystem"].Si); return result != null ? result : undefined; } return value; } return undefined; }; CounterToSiUnitPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'counterToSiUnit', pure: false }), __metadata("design:paramtypes", [app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__["UnitConversionService"], app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_1__["UnitSystemBaseConvertPipe"], _counter_to_unit_key_pipe__WEBPACK_IMPORTED_MODULE_5__["CounterToUnitKeyPipe"]]) ], CounterToSiUnitPipe); return CounterToSiUnitPipe; }()); /***/ }), /***/ "./src/app/pipes/counter-to-system-unit.pipe.ts": /*!******************************************************!*\ !*** ./src/app/pipes/counter-to-system-unit.pipe.ts ***! \******************************************************/ /*! exports provided: CounterToSystemUnitPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CounterToSystemUnitPipe", function() { return CounterToSystemUnitPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _counter_to_unit_key_pipe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./counter-to-unit-key.pipe */ "./src/app/pipes/counter-to-unit-key.pipe.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CounterToSystemUnitPipe = /** @class */ (function () { function CounterToSystemUnitPipe(_unitConversion, _unitSystemBaseConvertPipe, _counterToUnitKeyPipe) { this._unitConversion = _unitConversion; this._unitSystemBaseConvertPipe = _unitSystemBaseConvertPipe; this._counterToUnitKeyPipe = _counterToUnitKeyPipe; } CounterToSystemUnitPipe.prototype.transform = function (value, counterType) { var _this = this; if (this._cachedUnitSystem !== this._unitConversion.selectedUnitSystem) { this._cachedUnitSystem = this._unitConversion.selectedUnitSystem; this._unitConversion.initialized .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (x) { return x; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])()) .subscribe(function () { _this._initialized = true; _this._cachedValue = undefined; }); } if (this._initialized) { if (this._cachedResult != null && this._cachedValue === value) { return this._cachedResult; } this._cachedValue = value; this._cachedResult = this.convertCounterValue(value, counterType, this._cachedUnitSystem); } return this._cachedResult; }; CounterToSystemUnitPipe.prototype.convertCounterValue = function (value, counterType, destinationUnitSystem) { if (value != null) { var unitKey = this._counterToUnitKeyPipe.transform(counterType); if (unitKey != null) { var result = this._unitSystemBaseConvertPipe.transform(value, unitKey, types_config__WEBPACK_IMPORTED_MODULE_4__["UnitSystem"].Si, destinationUnitSystem); return result != null ? result : undefined; } return value; } return undefined; }; CounterToSystemUnitPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'counterToSystemUnit', pure: false }), __metadata("design:paramtypes", [app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__["UnitConversionService"], app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_1__["UnitSystemBaseConvertPipe"], _counter_to_unit_key_pipe__WEBPACK_IMPORTED_MODULE_5__["CounterToUnitKeyPipe"]]) ], CounterToSystemUnitPipe); return CounterToSystemUnitPipe; }()); /***/ }), /***/ "./src/app/pipes/counter-to-unit-key.pipe.ts": /*!***************************************************!*\ !*** ./src/app/pipes/counter-to-unit-key.pipe.ts ***! \***************************************************/ /*! exports provided: CounterToUnitKeyPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CounterToUnitKeyPipe", function() { return CounterToUnitKeyPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var CounterToUnitKeyPipe = /** @class */ (function () { function CounterToUnitKeyPipe() { } CounterToUnitKeyPipe.prototype.transform = function (counterType) { if (counterType != null) { switch (counterType) { case types_config__WEBPACK_IMPORTED_MODULE_1__["CounterType"].OperatingHour: return 'OperatingTime'; case types_config__WEBPACK_IMPORTED_MODULE_1__["CounterType"].Count: return 'Numeric'; default: break; } } return undefined; }; CounterToUnitKeyPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'counterToUnitKey', pure: true }) ], CounterToUnitKeyPipe); return CounterToUnitKeyPipe; }()); /***/ }), /***/ "./src/app/pipes/days-to-due-time.pipe.ts": /*!************************************************!*\ !*** ./src/app/pipes/days-to-due-time.pipe.ts ***! \************************************************/ /*! exports provided: AVERAGE_NUMBER_OF_DAYS_IN_YEAR, NOW_LITERAL, DaysToDueTimePipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AVERAGE_NUMBER_OF_DAYS_IN_YEAR", function() { return AVERAGE_NUMBER_OF_DAYS_IN_YEAR; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NOW_LITERAL", function() { return NOW_LITERAL; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DaysToDueTimePipe", function() { return DaysToDueTimePipe; }); /* harmony import */ var app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AVERAGE_NUMBER_OF_DAYS_IN_YEAR = 365.2425; var NOW_LITERAL = 'today'; var DaysToDueTimePipe = /** @class */ (function () { function DaysToDueTimePipe(_translationService, _cmsTranslationService) { this._translationService = _translationService; this._cmsTranslationService = _cmsTranslationService; this._smartTranslate = new app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_0__["SmartTranslatePipe"](_translationService); } DaysToDueTimePipe.prototype.transform = function (days, lang) { if (!lang) { lang = this._cmsTranslationService.currentLanguage; } if (days != null) { var daysUntilDue = days; var monthsUntilDue = Math.round(days / (AVERAGE_NUMBER_OF_DAYS_IN_YEAR / 12)); var yearsUntilDue = Math.round(days / AVERAGE_NUMBER_OF_DAYS_IN_YEAR); if (yearsUntilDue >= 1) { return this._smartTranslate.transform(yearsUntilDue == 1 ? 'year_amount' : 'years_amount', lang, { 'numberOfYears': yearsUntilDue }); } if (monthsUntilDue >= 1) { return this._smartTranslate.transform(monthsUntilDue == 1 ? 'month_amount' : 'months_amount', lang, { 'numberOfMonths': monthsUntilDue }); } if (daysUntilDue >= 1) { return this._smartTranslate.transform(daysUntilDue == 1 ? 'day_amount' : 'days_amount', lang, { 'numberOfDays': daysUntilDue }); } if (yearsUntilDue < 0) { return this._smartTranslate.transform(yearsUntilDue == -1 ? 'year_amount_ago' : 'years_amount_ago', lang, { 'numberOfYears': -yearsUntilDue }); } if (monthsUntilDue < 0) { return this._smartTranslate.transform(monthsUntilDue == -1 ? 'month_amount_ago' : 'months_amount_ago', lang, { 'numberOfMonths': -monthsUntilDue }); } if (daysUntilDue < 0) { return this._smartTranslate.transform(daysUntilDue == -1 ? 'day_amount_ago' : 'days_amount_ago', lang, { 'numberOfDays': -daysUntilDue }); } } return this._smartTranslate.transform(NOW_LITERAL, lang); }; DaysToDueTimePipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Pipe"])({ name: 'daysToDueTime', pure: true }), __metadata("design:paramtypes", [angular_l10n__WEBPACK_IMPORTED_MODULE_2__["TranslationService"], app_services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"]]) ], DaysToDueTimePipe); return DaysToDueTimePipe; }()); /***/ }), /***/ "./src/app/pipes/duration.pipe.ts": /*!****************************************!*\ !*** ./src/app/pipes/duration.pipe.ts ***! \****************************************/ /*! exports provided: DurationPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DurationPipe", function() { return DurationPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var DurationPipe = /** @class */ (function () { function DurationPipe() { this._secondsPerHour = 3600; } DurationPipe.prototype.transform = function (value) { var seconds = (value % 60); var minutes = Math.floor(value / 60 % 60); var hours = Math.floor(value / this._secondsPerHour); return this.formatValue(hours) + ":" + this.formatValue(minutes) + ":" + this.formatValue(seconds); }; DurationPipe.prototype.formatValue = function (value) { var valueAsString = value.toString(); if (valueAsString.length < 2) { return ('0' + value.toString()).slice(-2); } return valueAsString; }; DurationPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'duration' }) ], DurationPipe); return DurationPipe; }()); /***/ }), /***/ "./src/app/pipes/enum-keys.pipe.ts": /*!*****************************************!*\ !*** ./src/app/pipes/enum-keys.pipe.ts ***! \*****************************************/ /*! exports provided: EnumKeysPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnumKeysPipe", function() { return EnumKeysPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var EnumKeysPipe = /** @class */ (function () { function EnumKeysPipe() { } EnumKeysPipe.prototype.transform = function (value) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var keys = []; for (var enumMember in value) { if (!isNaN(parseInt(enumMember, 10))) { keys.push({ key: enumMember, value: value[enumMember] }); } } return keys; }; EnumKeysPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'enumKeys' }) ], EnumKeysPipe); return EnumKeysPipe; }()); /***/ }), /***/ "./src/app/pipes/group-by.pipe.ts": /*!****************************************!*\ !*** ./src/app/pipes/group-by.pipe.ts ***! \****************************************/ /*! exports provided: GroupByPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupByPipe", function() { return GroupByPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var GroupByPipe = /** @class */ (function () { function GroupByPipe() { } GroupByPipe.prototype.transform = function (value, field) { var groupedObj = value.reduce(function (prev, cur) { if (!prev[cur[field]]) { prev[cur[field]] = [cur]; } else { prev[cur[field]].push(cur); } return prev; }, {}); return Object.keys(groupedObj).map(function (key) { return ({ key: key, value: groupedObj[key] }); }); }; GroupByPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'groupBy', pure: false }), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])() ], GroupByPipe); return GroupByPipe; }()); /***/ }), /***/ "./src/app/pipes/location-alias.pipe.ts": /*!**********************************************!*\ !*** ./src/app/pipes/location-alias.pipe.ts ***! \**********************************************/ /*! exports provided: LocationAliasPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocationAliasPipe", function() { return LocationAliasPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_location_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/location.service */ "./src/app/services/location.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LocationAliasPipe = /** @class */ (function () { function LocationAliasPipe(_locationService) { this._locationService = _locationService; } LocationAliasPipe.prototype.transform = function (location, locationField) { if (location != null) { return this._locationService.getTerminalMappingAliasAsync(location, locationField); } return Promise.resolve(app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"]); }; LocationAliasPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'locationAlias', pure: true }), __metadata("design:paramtypes", [app_services_location_service__WEBPACK_IMPORTED_MODULE_2__["LocationService"]]) ], LocationAliasPipe); return LocationAliasPipe; }()); /***/ }), /***/ "./src/app/pipes/location.pipe.ts": /*!****************************************!*\ !*** ./src/app/pipes/location.pipe.ts ***! \****************************************/ /*! exports provided: LocationPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocationPipe", function() { return LocationPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_project__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/project */ "./src/types/project.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var LocationPipe = /** @class */ (function () { function LocationPipe() { } LocationPipe.prototype.transform = function (value, locationField) { if (locationField != null) { var locationDto = {}; switch (locationField) { case types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].MasterBlock: { locationDto.masterBlockId = value; break; } case types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].SlaveBlock: { locationDto.slaveBlockId = value; break; } case types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].X: { locationDto.x = value; break; } case types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].Y: { locationDto.y = value; break; } case types_project__WEBPACK_IMPORTED_MODULE_1__["LocationField"].Z: { locationDto.z = value; break; } default: break; } return locationDto; } return { masterBlockId: value }; }; LocationPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'location', pure: true }) ], LocationPipe); return LocationPipe; }()); /***/ }), /***/ "./src/app/pipes/safe-content.pipe.ts": /*!********************************************!*\ !*** ./src/app/pipes/safe-content.pipe.ts ***! \********************************************/ /*! exports provided: SafeContentPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SafeContentPipe", function() { return SafeContentPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SafeContentPipe = /** @class */ (function () { function SafeContentPipe(sanitizer) { this.sanitizer = sanitizer; } SafeContentPipe.prototype.transform = function (value, context) { return this.sanitizer.sanitize(context, this.escapeHtml(value)); }; SafeContentPipe.prototype.escapeHtml = function (unsafe) { if (unsafe != null) { return String(unsafe).replace(/&/g, '&') .replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, '''); } return ''; }; SafeContentPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'safe-content' }), __metadata("design:paramtypes", [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"]]) ], SafeContentPipe); return SafeContentPipe; }()); /***/ }), /***/ "./src/app/pipes/smart-translate.pipe.ts": /*!***********************************************!*\ !*** ./src/app/pipes/smart-translate.pipe.ts ***! \***********************************************/ /*! exports provided: SmartTranslatePipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmartTranslatePipe", function() { return SmartTranslatePipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var SmartTranslatePipe = /** @class */ (function (_super) { __extends(SmartTranslatePipe, _super); function SmartTranslatePipe() { return _super !== null && _super.apply(this, arguments) || this; } SmartTranslatePipe.prototype.transform = function (key, lang, args) { if (key != null) { if (typeof key === 'string' || key instanceof String) { return _super.prototype.transform.call(this, key, lang, args); } else { return JSON.stringify(key); } } return key; }; SmartTranslatePipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'smarttranslate', pure: false }), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])() ], SmartTranslatePipe); return SmartTranslatePipe; }(angular_l10n__WEBPACK_IMPORTED_MODULE_1__["TranslatePipe"])); /***/ }), /***/ "./src/app/pipes/text-trim.pipe.ts": /*!*****************************************!*\ !*** ./src/app/pipes/text-trim.pipe.ts ***! \*****************************************/ /*! exports provided: TextTrimPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextTrimPipe", function() { return TextTrimPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var TextTrimPipe = /** @class */ (function () { function TextTrimPipe() { } TextTrimPipe.prototype.transform = function (text, cutoff, append, skip) { if (!text) { return ''; } var trimmedText = text.toString().trim(); if (!!skip) { return trimmedText; } if (!append || trimmedText.length <= cutoff) { append = ''; } cutoff = (cutoff > trimmedText.length) ? trimmedText.length : cutoff; return trimmedText.substring(0, cutoff) + append; }; TextTrimPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'textTrim' }) ], TextTrimPipe); return TextTrimPipe; }()); /***/ }), /***/ "./src/app/pipes/unit-system-base-convert.pipe.ts": /*!********************************************************!*\ !*** ./src/app/pipes/unit-system-base-convert.pipe.ts ***! \********************************************************/ /*! exports provided: UnitSystemBaseConvertPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnitSystemBaseConvertPipe", function() { return UnitSystemBaseConvertPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var qty = __webpack_require__(/*! js-quantities */ "./node_modules/js-quantities/build/quantities.js"); var UnitSystemBaseConvertPipe = /** @class */ (function () { function UnitSystemBaseConvertPipe(_unitConversion) { this._unitConversion = _unitConversion; } UnitSystemBaseConvertPipe.prototype.transform = function (value, unitKey, sourceUnitSystem, destinationUnitSystem) { var unitPrecision = this._unitConversion.getPrecision(unitKey); var convert; if (sourceUnitSystem != destinationUnitSystem) { var unitConfig = this._unitConversion.getUnitConfig(unitKey); var sourceUnit = this.getDestinationUnit(unitConfig, sourceUnitSystem); var destinationUnit = this.getDestinationUnit(unitConfig, destinationUnitSystem); if (sourceUnit != destinationUnit) { try { convert = qty.swiftConverter(sourceUnit, destinationUnit); } catch (e) { var message = "Cannot create converter for unit key " + unitKey + " to convert from " + sourceUnit + " to " + destinationUnit + ": " + e.message; console.error(message); throw new Error(message); } } } try { var result = qty(convert ? convert(value) : value); return unitPrecision != null ? result.toPrec(unitPrecision).toFloat() : result.toFloat(); } catch (e) { var message = "Cannot converter for unit key " + unitKey + " with value " + value + ": " + e.message; console.error(message); return Number.NaN; } }; UnitSystemBaseConvertPipe.prototype.getDestinationUnit = function (unitConfig, destinationUnitSystem) { if (unitConfig != null && destinationUnitSystem != null) { switch (destinationUnitSystem) { case types_config__WEBPACK_IMPORTED_MODULE_1__["UnitSystem"].Metric: return unitConfig.metricUnit; case types_config__WEBPACK_IMPORTED_MODULE_1__["UnitSystem"].Imperial: return unitConfig.imperialUnit; case types_config__WEBPACK_IMPORTED_MODULE_1__["UnitSystem"].Si: return unitConfig.siUnit; default: break; } } return undefined; }; UnitSystemBaseConvertPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'unitSystemBaseConvert', pure: false }), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__["UnitConversionService"]]) ], UnitSystemBaseConvertPipe); return UnitSystemBaseConvertPipe; }()); /***/ }), /***/ "./src/app/pipes/unit-system-convert.pipe.ts": /*!***************************************************!*\ !*** ./src/app/pipes/unit-system-convert.pipe.ts ***! \***************************************************/ /*! exports provided: UnitSystemConvertPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnitSystemConvertPipe", function() { return UnitSystemConvertPipe; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UnitSystemConvertPipe = /** @class */ (function () { function UnitSystemConvertPipe(_unitConversion, _unitKeyService, _unitSystemNumericConvertPipe, _translate, _l10nDecimalPipe) { this._unitConversion = _unitConversion; this._unitKeyService = _unitKeyService; this._unitSystemNumericConvertPipe = _unitSystemNumericConvertPipe; this._translate = _translate; this._l10nDecimalPipe = _l10nDecimalPipe; } UnitSystemConvertPipe.prototype.transform = function (value, naturalkey, lang) { var _this = this; if (this._cachedUnitSystem !== this._unitConversion.selectedUnitSystem) { this._cachedUnitSystem = this._unitConversion.selectedUnitSystem; this._unitConversion.initialized .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(function (x) { return x; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["first"])()) .subscribe(function () { _this._initialized = true; _this._cachedValue = undefined; }); } if (!lang) { lang = this._translate.currentLanguage; } if (this._initialized) { if (this._cachedValue === value && this._cachedResult != null && this._cachedLang === lang) { return this._cachedResult; } this._cachedValue = value; this._cachedLang = lang; this.convertQuantity(value, naturalkey, this._cachedLang); } return this._cachedResult; }; UnitSystemConvertPipe.prototype.convertQuantity = function (value, naturalkey, lang) { if (this._unitKeyService.keys.ContainsKey(naturalkey) && typeof (value) === 'number') { var unitKey = this._unitKeyService.keys.UncheckedGet(naturalkey); var unitFractionSize = this._unitConversion.getFractionSize(unitKey); var numericResult = this._unitSystemNumericConvertPipe.transform(value, naturalkey); var stringResult = this._l10nDecimalPipe.transform(numericResult, lang, '1.' + unitFractionSize + '-' + unitFractionSize); this._cachedResult = stringResult != null ? stringResult : undefined; } else { this._cachedResult = value != null ? value.toString() : undefined; } }; UnitSystemConvertPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'unitsystemconvert', pure: false }), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_4__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_5__["UnitKeyService"], _unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_6__["UnitSystemNumericConvertPipe"], _services_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"], angular_l10n__WEBPACK_IMPORTED_MODULE_1__["L10nDecimalPipe"]]) ], UnitSystemConvertPipe); return UnitSystemConvertPipe; }()); /***/ }), /***/ "./src/app/pipes/unit-system-numeric-convert.pipe.ts": /*!***********************************************************!*\ !*** ./src/app/pipes/unit-system-numeric-convert.pipe.ts ***! \***********************************************************/ /*! exports provided: UnitSystemNumericConvertPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnitSystemNumericConvertPipe", function() { return UnitSystemNumericConvertPipe; }); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../types/config */ "./src/types/config.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var _unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UnitSystemNumericConvertPipe = /** @class */ (function () { function UnitSystemNumericConvertPipe(_unitConversion, _unitKeyService, _unitSystemBaseConvertPipe) { this._unitConversion = _unitConversion; this._unitKeyService = _unitKeyService; this._unitSystemBaseConvertPipe = _unitSystemBaseConvertPipe; } UnitSystemNumericConvertPipe.prototype.transform = function (value, naturalkey) { var _this = this; if (value != null) { if (this._cachedUnitSystem !== this._unitConversion.selectedUnitSystem) { this._cachedUnitSystem = this._unitConversion.selectedUnitSystem; this._unitConversion.initialized .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["filter"])(function (x) { return x; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()) .subscribe(function () { _this._initialized = true; }); } if (this._initialized) { return this.convertQuantity(value, naturalkey); } } return undefined; }; UnitSystemNumericConvertPipe.prototype.convertQuantity = function (value, naturalkey) { if (this._unitKeyService.keys.ContainsKey(naturalkey) && typeof (value) === 'number') { var unitKey = this._unitKeyService.keys.UncheckedGet(naturalkey); var sourceUnitSystem = _types_config__WEBPACK_IMPORTED_MODULE_3__["UnitSystem"].Si; var destinationUnitSystem = this._cachedUnitSystem != null ? this._cachedUnitSystem : _types_config__WEBPACK_IMPORTED_MODULE_3__["UnitSystem"].Metric; var result = this._unitSystemBaseConvertPipe.transform(value, unitKey, sourceUnitSystem, destinationUnitSystem); return result != null ? result : undefined; } else { return value != null ? value : undefined; } }; UnitSystemNumericConvertPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Pipe"])({ name: 'unitSystemNumericConvert', pure: false }), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_4__["UnitKeyService"], _unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_5__["UnitSystemBaseConvertPipe"]]) ], UnitSystemNumericConvertPipe); return UnitSystemNumericConvertPipe; }()); /***/ }), /***/ "./src/app/pipes/unit-system-unit.pipe.ts": /*!************************************************!*\ !*** ./src/app/pipes/unit-system-unit.pipe.ts ***! \************************************************/ /*! exports provided: UnitSystemUnitPipe */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnitSystemUnitPipe", function() { return UnitSystemUnitPipe; }); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _services_unitconversion_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var _services_unitkey_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/unitkey.service */ "./src/app/services/unitkey.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UnitSystemUnitPipe = /** @class */ (function () { function UnitSystemUnitPipe(_unitConversion, _unitKeyService) { this._unitConversion = _unitConversion; this._unitKeyService = _unitKeyService; } UnitSystemUnitPipe.prototype.transform = function (naturalkey) { var _this = this; if (this._cachedUnitSystem !== this._unitConversion.selectedUnitSystem || this._cachedNaturalKey !== naturalkey) { this._cachedUnitSystem = this._unitConversion.selectedUnitSystem; this._cachedNaturalKey = naturalkey; this._unitConversion.initialized .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["filter"])(function (x) { return x; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["first"])()) .subscribe(function () { var unitkey = _this._unitKeyService.keys.Get(naturalkey); if (unitkey) { var unitConfig = _this._unitConversion.getUnitConfig(unitkey); var displayName = _this._cachedUnitSystem === types_config__WEBPACK_IMPORTED_MODULE_2__["UnitSystem"].Metric ? unitConfig.metricDisplayName : unitConfig.imperialDisplayName; var unitName = void 0; if (displayName) { unitName = displayName; } else { unitName = _this._cachedUnitSystem === types_config__WEBPACK_IMPORTED_MODULE_2__["UnitSystem"].Metric ? unitConfig.metricUnit : unitConfig.imperialUnit; } _this._cachedUnit = unitName; } else { _this._cachedUnit = ''; } }); } return this._cachedUnit; }; UnitSystemUnitPipe = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Pipe"])({ name: 'unitsystemunit', pure: false }), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_3__["UnitConversionService"], _services_unitkey_service__WEBPACK_IMPORTED_MODULE_4__["UnitKeyService"]]) ], UnitSystemUnitPipe); return UnitSystemUnitPipe; }()); /***/ }), /***/ "./src/app/services/app-init.service.ts": /*!**********************************************!*\ !*** ./src/app/services/app-init.service.ts ***! \**********************************************/ /*! exports provided: AppInitService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppInitService", function() { return AppInitService; }); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var app_services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/user-data/user-data.service */ "./src/app/services/user-data/user-data.service.ts"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); /* harmony import */ var _datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var AppInitService = /** @class */ (function () { function AppInitService(_injector, _userDataService, _unitKeyService, _unitConversionService, _dataPointRangeService, _viewService) { this._injector = _injector; this._userDataService = _userDataService; this._unitKeyService = _unitKeyService; this._unitConversionService = _unitConversionService; this._dataPointRangeService = _dataPointRangeService; this._viewService = _viewService; } AppInitService.prototype.init = function () { return __awaiter(this, void 0, void 0, function () { var _this = this; var promises; return __generator(this, function (_a) { switch (_a.label) { case 0: promises = []; promises.push(new Promise(function (resolve, reject) { var locationInitialized = _this._injector.get(_angular_common__WEBPACK_IMPORTED_MODULE_0__["LOCATION_INITIALIZED"], Promise.resolve(null)); locationInitialized.then(function () { var userDataPromise = _this._userDataService.loadUserData().toPromise(); userDataPromise.then(function (_) { return resolve(undefined); }); userDataPromise.catch(function (err) { console.error(err); reject("User data promise failed. " + JSON.stringify(err)); }); }); })); promises.push(this._viewService.initialize()); promises.push(this._unitKeyService.initialize()); promises.push(this._dataPointRangeService.initialize()); promises.push(this._unitConversionService.initialize()); return [4 /*yield*/, Promise.all(promises)]; case 1: _a.sent(); return [2 /*return*/, true]; } }); }); }; AppInitService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"], app_services_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_4__["UserDataService"], app_services_unitkey_service__WEBPACK_IMPORTED_MODULE_3__["UnitKeyService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__["UnitConversionService"], _datapoint_range_service__WEBPACK_IMPORTED_MODULE_6__["DataPointRangeService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_5__["ViewService"]]) ], AppInitService); return AppInitService; }()); /***/ }), /***/ "./src/app/services/auth.service.ts": /*!******************************************!*\ !*** ./src/app/services/auth.service.ts ***! \******************************************/ /*! exports provided: LoginResult, LoginResponse, LoginLocationKey, TokenStorageKey, DefaultLocaleStorageKey, AuthService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginResult", function() { return LoginResult; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginResponse", function() { return LoginResponse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginLocationKey", function() { return LoginLocationKey; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TokenStorageKey", function() { return TokenStorageKey; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultLocaleStorageKey", function() { return DefaultLocaleStorageKey; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthService", function() { return AuthService; }); /* harmony import */ var _cmstranslation_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _metrics_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./metrics.service */ "./src/app/services/metrics.service.ts"); /* harmony import */ var _storage_local_storage_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./storage/local-storage.service */ "./src/app/services/storage/local-storage.service.ts"); /* harmony import */ var _time_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./time-utils.service */ "./src/app/services/time-utils.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LoginResult; (function (LoginResult) { LoginResult[LoginResult["Success"] = 0] = "Success"; LoginResult[LoginResult["Failure"] = 1] = "Failure"; LoginResult[LoginResult["ChangePassword"] = 2] = "ChangePassword"; })(LoginResult || (LoginResult = {})); var LoginResponse = /** @class */ (function () { function LoginResponse(state, message) { this.state = state; this.message = message; } return LoginResponse; }()); var LoginLocationKey = 'loginLocation'; var TokenStorageKey = 'user-token'; var DefaultLocaleStorageKey = 'defaultLocale'; var AuthService = /** @class */ (function () { function AuthService(_storageService, _httpClient, _metricsService, _router, _configService, _timeUtilsService, _cmsTranslate) { var _this = this; this._storageService = _storageService; this._httpClient = _httpClient; this._metricsService = _metricsService; this._router = _router; this._configService = _configService; this._timeUtilsService = _timeUtilsService; this._cmsTranslate = _cmsTranslate; this._tokenString = ''; this._loginStateChangedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_5__["ReplaySubject"](1); this._lastUsedUsername = ''; this._lastUsedPassword = ''; this.loginStateChanged = this._loginStateChangedSubject.asObservable(); if (this._routerMetricsSubscription != null) { this._routerMetricsSubscription.unsubscribe(); } this._routerMetricsSubscription = this._router.events.subscribe(function (e) { return _this.handleRouterEvents(e); }); } AuthService_1 = AuthService; AuthService.prototype.handleRouterEvents = function (e) { if (e instanceof _angular_router__WEBPACK_IMPORTED_MODULE_3__["NavigationEnd"]) { var username = this.getClaimIdentityName(); this._metricsService.Log(username, e.urlAfterRedirects, "REDIRECT: " + e.id + " - " + e.url); } }; AuthService.prototype.onTokenReceived = function (token, persist) { this._tokenString = token; var jwtDecode = __webpack_require__(/*! jwt-decode */ "./node_modules/jwt-decode/lib/index.js"); try { // decode and validate token var tokenObject = jwtDecode(token); if (this.isValidToken(tokenObject)) { this._tokenObject = tokenObject; if (persist) { this._storageService.setItem(TokenStorageKey, token); } this.updateLoginState(); } else { this.logout(); } } catch (err) { console.error('INVALID TOKEN RECEIVED', err, token); this.logout(); } }; AuthService.prototype.isValidToken = function (token) { if (!token) { return false; } var issuer = token['iss']; if (issuer !== 'KUENZ') { console.error('WRONG TOKEN ISSUER'); return false; } var audience = token['aud']; if (audience !== 'KUENZ_AUDIENCE') { console.error('TOKEN WAS ISSUED FOR DIFFERENT AUDIENCE - please clear browser cache (ctrl + shift + r or f12 + right click on reload button in ui -> clear cache)'); return false; } // Take crane time to prevent time misconfiguration on client var now = this._timeUtilsService.utcDateTime.getTime() / 1000; // add 5 minute skew time to token validation (exp/nbf) var skewTimeSeconds = 5 * 60; var expirationTimestamp = token['exp'] + skewTimeSeconds; if (expirationTimestamp < now) { console.error('TOKEN EXPIRED - please clear browser cache (ctrl + shift + r or f12 + right click on reload button in ui -> clear cache)'); return false; } var notBeforeTimestamp = token['nbf'] - skewTimeSeconds; if (notBeforeTimestamp > now) { console.error('TOKEN NOT VALID YET - please check server time so it is behind client time'); return false; } return true; }; AuthService.prototype.updateLoginState = function () { this._loginStateChangedSubject.next(this.isLoggedIn); }; AuthService.prototype.getRequestParameterValue = function (key) { return decodeURIComponent(window.location.search.replace(new RegExp('^(?:.*[&\\?]' + encodeURIComponent(key).replace(/[\.\+\*]/g, '\\$&') + '(?:\\=([^&]*))?)?.*$', 'i'), '$1')); }; AuthService.prototype.setValidLanguage = function (language) { if (!!language) { var available = this._cmsTranslate.availableLanguages.indexOf(language) >= 0; if (available) { this._cmsTranslate.use(language); return true; } } return false; }; AuthService.prototype.tryLogin = function () { var _this = this; // store redirect-url if available var redirectUrl = window.location.pathname; var excludeUrls = [app_app_constants__WEBPACK_IMPORTED_MODULE_4__["LOGIN_PAGE_URL"], app_app_constants__WEBPACK_IMPORTED_MODULE_4__["CHANGE_PASSWORD_PAGE_URL"], app_app_constants__WEBPACK_IMPORTED_MODULE_4__["NOT_FOUND_URL"]]; if (redirectUrl != null && !excludeUrls.some(function (url) { return redirectUrl.indexOf(url) >= 0; })) { this.redirectUrl = redirectUrl; } // check if url-parameter contains a token // get from localstorage as fallback var tokenParameterValue = this.getRequestParameterValue('token'); this.automaticLogin = !!tokenParameterValue; var username = this.getRequestParameterValue('username'); var password = this.getRequestParameterValue('password'); if (!this.automaticLogin) { if (!!username && !!password) { this.login(username, password).subscribe(function (response) { switch (response.state) { case LoginResult.Failure: { return; } case LoginResult.Success: { _this.automaticLogin = true; } case LoginResult.ChangePassword: { } } }); } } // get location from the parameters, we hardcode ?location=cabin in the kioware kiosk // so we know if potentially dangerous commands origin from the operator cabine // or some other online browser var loginLocation = this.getRequestParameterValue('location'); if (loginLocation != null) { var loginLocationTrimmed = loginLocation.trim(); if (loginLocationTrimmed.length > 0) { this._storageService.setItem(LoginLocationKey, loginLocationTrimmed); } } var token = tokenParameterValue || this._storageService.getItem(TokenStorageKey); if (token && token.length > 0) { this.onTokenReceived(token, false); } else { this.updateLoginState(); } var language = this.getClaimIdentityLanguage(); if (!this.setValidLanguage(language)) { language = this.getRequestParameterValue('language'); if (!this.setValidLanguage(language)) { this.setValidLanguage(navigator.language.substr(0, 2)); } } var claimUsername = this.getClaimIdentityName(); this._metricsService.Log(claimUsername, redirectUrl, 'Has tried to login using token.'); }; AuthService.prototype.changePasswordAndLogin = function (userName, oldPassword, password, confirmPassword) { var _this = this; var loginSubject = new rxjs__WEBPACK_IMPORTED_MODULE_5__["Subject"](); var loginLocation = this._storageService.getItem(LoginLocationKey); var dto = { username: userName, password: oldPassword, newPassword: password, ConfirmPassword: confirmPassword, location: loginLocation }; this._httpClient.post('api/login/changePassword', dto, { responseType: 'text' }).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["take"])(1)).subscribe(function (token) { _this.onTokenReceived(token, true); if (_this.isLoggedIn) { loginSubject.next(new LoginResponse(LoginResult.Success)); _this._metricsService.Log(userName, undefined, 'Has logged in.'); } else { loginSubject.next(new LoginResponse(LoginResult.Failure, 'Received invalid token.')); _this._metricsService.Log(userName, undefined, 'Has failed to log in: wrong token.'); } }, function (response) { loginSubject.next(new LoginResponse(LoginResult.Failure, response.error)); _this._metricsService.Log(userName, undefined, "Has failed to log in: " + response.error); }); return loginSubject.asObservable(); }; AuthService.prototype.login = function (userName, password) { var _this = this; var loginSubject = new rxjs__WEBPACK_IMPORTED_MODULE_5__["Subject"](); if (this.isLoggedIn) { this.logout(); } var loginLocation = this._storageService.getItem(LoginLocationKey); var dto = { username: userName, password: password, location: loginLocation }; this._lastUsedPassword = password; this._lastUsedUsername = userName; this._httpClient.post('api/login', dto, { responseType: 'text' }).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["take"])(1)).subscribe(function (token) { _this.onTokenReceived(token, true); if (_this.isLoggedIn) { loginSubject.next(new LoginResponse(LoginResult.Success)); _this._metricsService.Log(userName, undefined, 'Has logged in.'); } else { loginSubject.next(new LoginResponse(LoginResult.Failure, 'Received invalid token.')); _this._metricsService.Log(userName, undefined, 'Has failed to log in: wrong token.'); } }, function (response) { if (response.error === 'changePassword') { loginSubject.next(new LoginResponse(LoginResult.ChangePassword)); _this._router.navigate(["/" + app_app_constants__WEBPACK_IMPORTED_MODULE_4__["CHANGE_PASSWORD_PAGE_URL"]]); _this._metricsService.Log(userName, undefined, "Has failed to log in: " + response.error); } else { loginSubject.next(new LoginResponse(LoginResult.Failure, response.error)); _this._metricsService.Log(userName, undefined, "Has failed to log in: " + response.error); } }); return loginSubject.asObservable(); }; Object.defineProperty(AuthService.prototype, "isReadOnlyAuthSystem", { get: function () { switch (this._configService.craneConfig.authentification.strategy) { case types_config__WEBPACK_IMPORTED_MODULE_7__["LoginStrategyType"].ActiveDirectory: return true; default: return false; } }, enumerable: true, configurable: true }); Object.defineProperty(AuthService.prototype, "canManuallyLogout", { get: function () { switch (this.loginLocation) { case types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"].Ros: return false; default: return true; } }, enumerable: true, configurable: true }); AuthService.prototype.logout = function () { var username = this.getClaimIdentityName(); this.automaticLogin = false; this.redirectUrl = undefined; this._tokenObject = undefined; this._storageService.removeItem(TokenStorageKey); this.updateLoginState(); this._metricsService.Log(username, undefined, 'Has logged out.'); }; Object.defineProperty(AuthService.prototype, "isLoggedIn", { get: function () { return this._tokenObject != null; }, enumerable: true, configurable: true }); Object.defineProperty(AuthService.prototype, "tokenString", { get: function () { return this._tokenString; }, enumerable: true, configurable: true }); Object.defineProperty(AuthService.prototype, "loginLocation", { get: function () { var loginLocation = this._storageService.getItem(LoginLocationKey); if (loginLocation != null) { switch (loginLocation.toLowerCase()) { case types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"][types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"].Cabin].toLowerCase(): return types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"].Cabin; case types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"][types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"].Ros].toLowerCase(): return types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"].Ros; } } return types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"].Unknown; }, enumerable: true, configurable: true }); Object.defineProperty(AuthService.prototype, "lastUsedCredentials", { get: function () { var userDto = {}; userDto.userName = this._lastUsedUsername; userDto.password = this._lastUsedPassword; return userDto; }, enumerable: true, configurable: true }); AuthService.prototype.getTokenObject = function () { return this._tokenObject; }; AuthService.prototype.getClaimIdentityName = function () { return this.getClaimValue(AuthService_1.claimName); }; AuthService.prototype.getClaimValue = function (claim) { if (this._tokenObject != null && this._tokenObject[claim] != null) { return this._tokenObject[claim]; } else { return ''; } }; AuthService.prototype.getPermissionWithClaim = function (claim) { if (this._tokenObject != null && this._tokenObject[claim] != null) { return this._tokenObject[claim] === '1'; } else { if (claim === AuthService_1.permissionViewModalPdfKey) { var loginLocation = this.loginLocation; switch (loginLocation) { case types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"].Cabin: case types_config__WEBPACK_IMPORTED_MODULE_7__["LoginLocation"].Ros: return true; } } return false; } }; AuthService.prototype.getClaimIdentityLanguage = function () { if (this._tokenObject != null && this._tokenObject.Language != null) { return this._tokenObject.Language; } else { return undefined; } }; AuthService.prototype.getRole = function () { return this.getClaimValue(AuthService_1.claimRole); }; AuthService.plcAccessLevelKey = 'PlcAccessLevel'; AuthService.permissionManageUsersKey = 'PermissionManageUsers'; AuthService.permissionViewNotificationsKey = 'PermissionViewNotifications'; AuthService.permissionViewSettingsKey = 'PermissionViewSettings'; AuthService.permissionViewCockpitKey = 'PermissionViewCockpit'; AuthService.permissionViewStatisticKey = 'PermissionViewStatistic'; AuthService.permissionViewCountersKey = 'PermissionViewCounters'; AuthService.permissionWriteCountersKey = 'PermissionWriteCounters'; AuthService.permissionViewMaintenanceKey = 'PermissionViewMaintenance'; AuthService.permissionWriteMaintenanceKey = 'PermissionWriteMaintenance'; AuthService.permissionViewModalPdfKey = 'PermissionViewModalPdf'; AuthService.permissionViewConnectionModalKey = 'PermissionViewConnectionModal'; AuthService.claimRole = 'Role'; AuthService.claimName = 'Name'; AuthService.claimLoginLocation = 'LoginLocation'; AuthService.claimInitialRoute = 'InitialRoute'; AuthService = AuthService_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_10__["LocalStorageService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"], _metrics_service__WEBPACK_IMPORTED_MODULE_9__["MetricsService"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"], _config_service__WEBPACK_IMPORTED_MODULE_8__["ConfigService"], _time_utils_service__WEBPACK_IMPORTED_MODULE_11__["TimeUtilsService"], _cmstranslation_service__WEBPACK_IMPORTED_MODULE_0__["CmsTranslationService"]]) ], AuthService); return AuthService; var AuthService_1; }()); /***/ }), /***/ "./src/app/services/auxiliary.service.ts": /*!***********************************************!*\ !*** ./src/app/services/auxiliary.service.ts ***! \***********************************************/ /*! exports provided: AuxiliaryService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuxiliaryService", function() { return AuxiliaryService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @microsoft/signalr */ "./node_modules/@microsoft/signalr/dist/esm/index.js"); /* harmony import */ var app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/signalr-configuration */ "./src/app/signalr-configuration.ts"); /* harmony import */ var app_utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/utils/SignalRRetryPolicy */ "./src/app/utils/SignalRRetryPolicy.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var AuxiliaryService = /** @class */ (function () { function AuxiliaryService(_ref, configuration, configService, retryPolicy) { var _this = this; this._ref = _ref; this._heartbeatHubClientSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); this._currentLocationSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](_app_constants__WEBPACK_IMPORTED_MODULE_6__["Const"].NoValuePlaceholder); this.currentLocationSubject = this._currentLocationSubject.asObservable(); this._currentCoordinateSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](_app_constants__WEBPACK_IMPORTED_MODULE_6__["Const"].NoValuePlaceholder); this.currentCoordinateSubject = this._currentCoordinateSubject.asObservable(); this._sourceLocationSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](_app_constants__WEBPACK_IMPORTED_MODULE_6__["Const"].NoValuePlaceholder); this.sourceLocationSubject = this._sourceLocationSubject.asObservable(); this._targetLocationSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](_app_constants__WEBPACK_IMPORTED_MODULE_6__["Const"].NoValuePlaceholder); this.targetLocationSubject = this._targetLocationSubject.asObservable(); this.skipValueChangeProcessing = false; this.onCurrentLocationAliasChange = function (currentLocationAlias) { if (!_this.skipValueChangeProcessing) { _this._currentLocationSubject.next(currentLocationAlias); _this._ref.tick(); } }; this.onCurrentCoordinateAliasChange = function (currentCoordinateAlias) { if (!_this.skipValueChangeProcessing) { _this._currentCoordinateSubject.next(currentCoordinateAlias); _this._ref.tick(); } }; this.onSourceLocationAliasChange = function (sourceLocationAlias) { if (!_this.skipValueChangeProcessing) { _this._sourceLocationSubject.next(sourceLocationAlias); _this._ref.tick(); } }; this.onTargetLocationAliasChange = function (targetLocationAlias) { if (!_this.skipValueChangeProcessing) { _this._targetLocationSubject.next(targetLocationAlias); _this._ref.tick(); } }; this.getLocationAlias = function (locationDto, locationField) { console.debug("AuxiliaryService> Requesting location alias for: " + JSON.stringify(locationDto) + " as field: " + locationField + "."); if (_this._hubConnection.state === _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionState"].Connected) { _this._hubConnection.send("getLocationAlias", locationDto, locationField); } return _app_constants__WEBPACK_IMPORTED_MODULE_6__["NOT_AVAILABLE"]; }; this.requestAllLocationAliases = function () { console.debug('AuxiliaryService> Requesting all location aliases.'); if (_this._hubConnection.state === _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionState"].Connected) { _this._hubConnection.send("requestAllLocationAliases"); } }; this.requestCurrentLocationAlias = function () { console.debug('AuxiliaryService> Requesting "current" location alias.'); if (_this._hubConnection.state === _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionState"].Connected) { _this._hubConnection.send("requestCurrentLocationAlias"); } }; this.requestSourceLocationAlias = function () { console.debug('AuxiliaryService> Requesting "source" location alias.'); if (_this._hubConnection.state === _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionState"].Connected) { _this._hubConnection.send("requestSourceLocationAlias"); } }; this.requestTargetLocationAlias = function () { console.debug('AuxiliaryService> Requesting "target" location alias.'); if (_this._hubConnection.state === _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionState"].Connected) { _this._hubConnection.send("requestTargetLocationAlias"); } }; var timeoutInterval = configService.craneConfig.heartbeatTimeout; var isConnectionAliveNotMapped = this.mapAsBeatObservable(this._heartbeatHubClientSubject.asObservable(), timeoutInterval, 'NotificationService', this.boolSummary); this.isConnectionAlive = isConnectionAliveNotMapped.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function (x) { return x.isAlive; })); this._initSignalrConnection(configuration, retryPolicy); } AuxiliaryService.prototype._initSignalrConnection = function (configuration, retryPolicy) { var _this = this; this._hubConnection = new _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionBuilder"]() .withUrl(configuration.serverWithApiUrl + "/auxiliaryHub") .withAutomaticReconnect(retryPolicy) .build(); this._hubConnection.onclose(function () { return _this._startSignalrConnection(configuration, retryPolicy); }); this._hubConnection.on("onCurrentLocationAliasChange", function (alias) { return _this.onCurrentLocationAliasChange(alias); }); this._hubConnection.on("onCurrentCoordinateAliasChange", function (alias) { return _this.onCurrentCoordinateAliasChange(alias); }); this._hubConnection.on("onSourceLocationAliasChange", function (alias) { return _this.onSourceLocationAliasChange(alias); }); this._hubConnection.on("onTargetLocationAliasChange", function (alias) { return _this.onTargetLocationAliasChange(alias); }); this._hubConnection.on("onHeartbeat", function (isAlive) { return _this._heartbeatHubClientSubject.next(isAlive); }); this._startSignalrConnection(configuration, retryPolicy); }; AuxiliaryService.prototype._startSignalrConnection = function (configuration, retryPolicy) { var _this = this; this._hubConnection .start() .then(function () { return _this._onConnectionChanged(true); }) .catch(function (error) { console.log('SignalRService> Startup failed.\n ' + error); setTimeout(function () { return _this._startSignalrConnection(configuration, retryPolicy); }, 5000); }); }; AuxiliaryService.prototype._onConnectionChanged = function (isConnected) { if (isConnected) { this.requestAllLocationAliases(); } }; AuxiliaryService.prototype.mapAsBeatObservable = function (observable, interval, fullName, summaryFunction) { // Make sure we got at least one beat in every period return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["bufferTime"])(interval), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(summaryFunction), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (summary) { if (!summary.isAlive) { console.error("SignalRService> " + fullName + " fell down."); } })); }; AuxiliaryService.prototype.boolSummary = function (beats) { var lastBeat = beats.pop(); var isAlive = lastBeat != null && lastBeat === true; return new app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__["SubjectSummary"](isAlive, lastBeat); }; AuxiliaryService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"], app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__["SignalRConfiguration"], _config_service__WEBPACK_IMPORTED_MODULE_7__["ConfigService"], app_utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_3__["SignalRRetryPolicy"]]) ], AuxiliaryService); return AuxiliaryService; }()); /***/ }), /***/ "./src/app/services/browser-visibility.service.ts": /*!********************************************************!*\ !*** ./src/app/services/browser-visibility.service.ts ***! \********************************************************/ /*! exports provided: BrowserVisibilityService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserVisibilityService", function() { return BrowserVisibilityService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var BrowserVisibilityService = /** @class */ (function () { function BrowserVisibilityService(configService) { this._isBrowserTabVisibleSubject = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](true); this.isBrowserTabVisible = this._isBrowserTabVisibleSubject.asObservable(); if (configService.craneConfig.useBrowserVisibilityService) this.watchBrowserTabVisibility(); } BrowserVisibilityService.prototype.watchBrowserTabVisibility = function () { var _this = this; var documentHiddenPropertyName = ''; var documenVisibilityChangedEventName = ''; var UNDEFINED = 'undefined'; if (typeof document.hidden !== UNDEFINED) { documentHiddenPropertyName = 'hidden'; documenVisibilityChangedEventName = 'visibilitychange'; } else if (typeof document.msHidden !== UNDEFINED) { documentHiddenPropertyName = 'msHidden'; documenVisibilityChangedEventName = 'msvisibilitychange'; } else if (typeof document.webkitHidden !== UNDEFINED) { documentHiddenPropertyName = 'webkitHidden'; documenVisibilityChangedEventName = 'webkitvisibilitychange'; } if (typeof document.addEventListener === UNDEFINED || typeof document[documentHiddenPropertyName] === UNDEFINED) { console.log("No visibility change detection in browser " + navigator.userAgent); } else { document.addEventListener(documenVisibilityChangedEventName, function () { return _this.broadcastVisibilityChange(document[documentHiddenPropertyName]); }, false); } }; BrowserVisibilityService.prototype.broadcastVisibilityChange = function (hidden) { this._isBrowserTabVisibleSubject.next(!hidden); console.log("BROWSER/TAB - visibility changed to " + (hidden ? 'HIDDEN' : 'VISIBLE')); }; BrowserVisibilityService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"]]) ], BrowserVisibilityService); return BrowserVisibilityService; }()); /***/ }), /***/ "./src/app/services/cmstranslation.service.ts": /*!****************************************************!*\ !*** ./src/app/services/cmstranslation.service.ts ***! \****************************************************/ /*! exports provided: CmsTranslationService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CmsTranslationService", function() { return CmsTranslationService; }); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var ngx_cookie__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-cookie */ "./node_modules/ngx-cookie/fesm5/ngx-cookie.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CmsTranslationService = /** @class */ (function () { function CmsTranslationService(locale, translation, _cookieService, _configService) { this.locale = locale; this.translation = translation; this._cookieService = _cookieService; this._configService = _configService; // exposes the translationChanged event and logs it. this.languageChangedEvent = this.locale.languageCodeChanged; } Object.defineProperty(CmsTranslationService.prototype, "availableLanguages", { get: function () { return this._configService.craneConfig.availableLanguages; }, enumerable: true, configurable: true }); CmsTranslationService.prototype.translateToCurrentLanguage = function (key) { return this.translation.translate(key, this.currentLanguage); }; Object.defineProperty(CmsTranslationService.prototype, "currentLanguage", { get: function () { return this.locale.getCurrentLanguage(); }, enumerable: true, configurable: true }); CmsTranslationService.prototype.use = function (language) { if (language !== this.currentLanguage) { this.changeLanguageTo(language); } }; CmsTranslationService.prototype.changeLanguageTo = function (language) { console.log("Modifying language.. (old value: " + this.currentLanguage + ")."); // set it for angular to use this.locale.setCurrentLanguage(language); // set as cookie - it is evaluated in the middleware this._cookieService.put(app_app_constants__WEBPACK_IMPORTED_MODULE_5__["Const"].CurrentLanguageCookieKey, language); this.languageChangedEvent.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["take"])(1)).subscribe(function (newLang) { return console.log("Language modified (new value: " + newLang + ")."); }); }; CmsTranslationService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])(), __metadata("design:paramtypes", [angular_l10n__WEBPACK_IMPORTED_MODULE_3__["LocaleService"], angular_l10n__WEBPACK_IMPORTED_MODULE_3__["TranslationService"], ngx_cookie__WEBPACK_IMPORTED_MODULE_1__["CookieService"], _config_service__WEBPACK_IMPORTED_MODULE_0__["ConfigService"]]) ], CmsTranslationService); return CmsTranslationService; }()); /***/ }), /***/ "./src/app/services/color.service.ts": /*!*******************************************!*\ !*** ./src/app/services/color.service.ts ***! \*******************************************/ /*! exports provided: ColorService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorService", function() { return ColorService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configuration */ "./src/app/configuration.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ColorService = /** @class */ (function () { function ColorService(_http, configuration, _configService) { this._http = _http; this._configService = _configService; this._styleSuffix = 'styles/'; this._defaultTheme = 'default-theme'; this._contentBackgroundClass = 'content-background'; this._chartSeriesPalettePrefix = 'chart-series-'; this._colorPaletteSuffix = '-color-palette'; this._colorThemeSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["ReplaySubject"](1); this.colorTheme = this._colorThemeSubject.asObservable(); this._colors = {}; this._chartPalettes = {}; this._styleUrl = configuration.server + this._styleSuffix; this._headers = this.createHeaders(); } ColorService.prototype.createHeaders = function () { var headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]() .set('content-type', 'text/css') .append('Accept', 'text/css'); return headers; }; ColorService.prototype.initialize = function () { var _this = this; this.applyColorTheme(this._defaultTheme); var scssColorsUrl = this._styleUrl + "_variables.scss"; // Called from APP_INITIALIZER return new Promise(function (resolve) { _this._http .get(scssColorsUrl, { headers: _this._headers, responseType: 'text' }) .subscribe(function (fileContent) { _this.parseColorFileContent(fileContent); resolve(); }, function (error) { return resolve(); }); }); }; ColorService.prototype.applyColorTheme = function (theme) { this.addClassToHTMLBody(theme); this._currentColortheme = theme; this._colorThemeSubject.next(theme); }; ColorService.prototype.updateColorTheme = function (theme) { if (this._currentColortheme !== theme) { if (this._currentColortheme && this._currentColortheme !== '') { this.removeClassFromHTMLBody(this._currentColortheme); } this.applyColorTheme(theme); } }; ColorService.prototype.parseColorFileContent = function (content) { var _this = this; var themeName = ''; var lines = content.split('\r\n'); // skip comments lines.filter(function (line) { return line.indexOf('/') < 0; }) .forEach(function (text) { if (text.indexOf(_this._colorPaletteSuffix) > 0) { // starting-marker for color-palette found var palettePrefix = text.substring(text.indexOf('$') + 1, text.indexOf(_this._colorPaletteSuffix)); themeName = palettePrefix + "-theme"; } else if (text.startsWith(')')) { // closing-marker for color-palette found themeName = ''; } else if (!!themeName) { var colorKey = text.substring(1, text.indexOf(':')).trim(); var value = text.substring(text.indexOf(':') + 1).trim(); // remove ending commas var lastCommaPos = value.lastIndexOf(','); if (lastCommaPos > 0) { value = value.substring(0, lastCommaPos); } // remove '!important' var exclMarkPos = value.lastIndexOf('!'); if (exclMarkPos > 0) { value = value.substring(0, exclMarkPos); } _this._colors[_this.getColorKey(themeName, colorKey)] = value; // fill chart series palette if (colorKey.indexOf(_this._chartSeriesPalettePrefix) > -1) { _this.addToChartSeriesPalette(themeName, value); } } }); }; ColorService.prototype.addToChartSeriesPalette = function (themeName, color) { if (!this._chartPalettes[themeName]) { this._chartPalettes[themeName] = []; } this._chartPalettes[themeName].push(color); }; ColorService.prototype.getColor = function (color) { var colorKey = this.getColorKey(this._currentColortheme, color); var resolvedColor = this._colors[colorKey]; if (!(resolvedColor != null)) { console.log('ColorService', "Color <" + color + "> was not found in theme <" + this._currentColortheme + ">"); } return resolvedColor; }; ColorService.prototype.resolveColors = function (naturalKey, dataPointMetadata) { var activeColor = this.getColor('sensor-color-on'); // light green var inactiveColor = this.getColor('sensor-color-off'); // light gray // set custom colors specified by user, or keep the default gray and green if (naturalKey != null && dataPointMetadata != null && dataPointMetadata.colorConfig != null) { var colorConfig = dataPointMetadata.colorConfig; if (colorConfig.activeColor != null) { activeColor = colorConfig.activeColor; } if (colorConfig.inactiveColor != null) { inactiveColor = colorConfig.inactiveColor; } } return [activeColor, inactiveColor]; }; ColorService.prototype.resolveSvgColor = function (naturalKey, dataPointMetadata) { var activeSvgColor = this.getColor('contrast-4'); // inactive svg color if (naturalKey != null && dataPointMetadata != null && dataPointMetadata.colorConfig != null) { var colorConfig = dataPointMetadata.colorConfig; if (colorConfig.svgActiveColor != null) { activeSvgColor = colorConfig.svgActiveColor; } } return activeSvgColor; }; ColorService.prototype.getActiveSvgColor = function (naturalKey) { var activeSvgColor = this.getColor('contrast-4'); // inactive svg color if (naturalKey != undefined) { var metadata = this._configService.craneConfig.datapointMetadata[naturalKey]; activeSvgColor = this.resolveSvgColor(naturalKey, metadata); } return activeSvgColor; }; ColorService.prototype.getUnusedColor = function (palette, usedColors, defaultColor) { if (palette != null && palette.length > 0) { if (usedColors != null) { var usedColorSet_1 = Array.isArray(usedColors) ? new Set(usedColors) : usedColors; var unusedColor = palette.find(function (color) { return !usedColorSet_1.has(color); }); if (unusedColor != null) { return unusedColor; } } } return defaultColor != null ? defaultColor : this.getMainColor(); }; ColorService.prototype.getMainColor = function () { return this.getColor('accent-color'); }; Object.defineProperty(ColorService.prototype, "chartSeriesPalette", { get: function () { return Object.assign([], this._chartPalettes[this._currentColortheme]); }, enumerable: true, configurable: true }); ColorService.prototype.getColorKey = function (theme, color) { return theme + "|" + color; }; Object.defineProperty(ColorService.prototype, "contentBackground", { set: function (value) { if (this._contentBackground !== value) { if (value) { this.addClassToHTMLBody(this._contentBackgroundClass); } else { this.removeClassFromHTMLBody(this._contentBackgroundClass); } this._contentBackground = value; } }, enumerable: true, configurable: true }); ColorService.prototype.addClassToHTMLBody = function (className) { var body = document.querySelector('body'); if (body != null) { body.classList.add(className); } }; ColorService.prototype.removeClassFromHTMLBody = function (className) { var body = document.querySelector('body'); if (body != null) { body.classList.remove(className); } }; ColorService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"], _configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"], _config_service__WEBPACK_IMPORTED_MODULE_4__["ConfigService"]]) ], ColorService); return ColorService; }()); /***/ }), /***/ "./src/app/services/config.service.ts": /*!********************************************!*\ !*** ./src/app/services/config.service.ts ***! \********************************************/ /*! exports provided: ConfigService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigService", function() { return ConfigService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ConfigService = /** @class */ (function () { function ConfigService(_http) { this._http = _http; this._configUrl = './api/config'; this._quickviewConfigFlatmap = {}; this.counter = 0; } ConfigService.prototype.initialize = function () { var _this = this; // Called from APP_INITIALIZER this.counter++; return new Promise(function (resolve) { _this._http.get(_this._configUrl) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["take"])(1)) .subscribe(function (config) { _this.craneConfig = config; _this.inspectDeviceConfigurations(); console.log('Crane-Config', _this.craneConfig); resolve(); }, function (error) { return resolve(); }); }); }; ConfigService.prototype.inspectDeviceConfigurations = function () { var _this = this; var deviceConfigs = []; var members = Object.getOwnPropertyNames(this.craneConfig.deviceConfigs); // getting all IDeviceConfigs from CraneConfig.deviceConfigs members.forEach(function (member) { var memberValue = _this.craneConfig.deviceConfigs[member]; if (memberValue != null) { deviceConfigs.push(memberValue); } }); deviceConfigs.filter(function (deviceConfig) { return deviceConfig != null && deviceConfig.components != null && deviceConfig.components.length > 0; }); deviceConfigs.forEach(function (dc) { return _this.inspectComponents(dc.components); }); }; ConfigService.prototype.inspectComponents = function (components) { var _this = this; components.filter(function (c) { return c.quickviewDatapoints !== undefined && c.quickviewDatapoints.length > 0; }) .forEach(function (c) { return _this.inspectQuickViewDatapointConfigs(c.quickviewDatapoints); }); components .filter(function (c) { return c.components != null && c.components.length > 0; }) .forEach(function (c) { return _this.inspectComponents(c.components); }); }; ConfigService.prototype.inspectQuickViewDatapointConfigs = function (quickViewConfigs) { var _this = this; quickViewConfigs.forEach(function (cfg) { return _this.addQuickviewFlatmapEntry(cfg); }); }; ConfigService.prototype.addQuickviewFlatmapEntry = function (entry) { this._quickviewConfigFlatmap[entry.naturalKey] = entry; }; ConfigService.prototype.getQuickviewConfig = function (nk) { return this._quickviewConfigFlatmap[nk]; }; ConfigService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]]) ], ConfigService); return ConfigService; }()); /***/ }), /***/ "./src/app/services/csv-conversion.service.ts": /*!****************************************************!*\ !*** ./src/app/services/csv-conversion.service.ts ***! \****************************************************/ /*! exports provided: CSVConversionService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CSVConversionService", function() { return CSVConversionService; }); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CSVConversionService = /** @class */ (function () { function CSVConversionService(_cmsTranslationService, _translationService) { this._cmsTranslationService = _cmsTranslationService; this._translationService = _translationService; this._newline = '\r\n'; this._delimiter = ';'; this._placeholder = ''; this._smartTranslate = new _pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_1__["SmartTranslatePipe"](_translationService); } Object.defineProperty(CSVConversionService.prototype, "lang", { get: function () { return this._cmsTranslationService.currentLanguage; }, enumerable: true, configurable: true }); CSVConversionService.prototype.saveAsCSV = function (title, columns, data) { var csv = this.prepareCSV(columns, data); this.doDownload(this.getExportFileName(title), csv); }; CSVConversionService.prototype.getExportFileName = function (title, autoAppendExtension, dateTime) { if (autoAppendExtension === void 0) { autoAppendExtension = true; } var translatedTitle = new _pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_1__["SmartTranslatePipe"](this._cmsTranslationService.translation) .transform(title, this._cmsTranslationService.currentLanguage); var formattedBase = Object(app_app_constants__WEBPACK_IMPORTED_MODULE_0__["getExportFileName"])(translatedTitle, dateTime != null ? dateTime : new Date()); return autoAppendExtension ? formattedBase.concat('.csv') : formattedBase; }; CSVConversionService.prototype.prepareCSV = function (columns, data) { var preparedHeader = this.prepareHeader(columns.map(function (x) { return x.headerName; })); var preparedData = this.prepareData(columns, data); var csv = [preparedHeader]; return csv.concat(preparedData).join(this._newline); }; CSVConversionService.prototype.prepareHeader = function (headers) { var _this = this; if (headers != null) { return headers.map(function (x) { return _this._smartTranslate.transform(x, _this.lang); }).join(this._delimiter); } return this._placeholder; }; CSVConversionService.prototype.prepareData = function (columns, data) { var _this = this; if (data != null) { return data.filter(function (entry) { return entry != null; }).map(function (entry) { return _this.prepareLine(columns, entry); }); } return []; }; CSVConversionService.prototype.prepareLine = function (columns, entry) { var _this = this; return columns.map(function (x) { return _this.prepareValue(x, entry); }).join(this._delimiter); }; CSVConversionService.prototype.prepareValue = function (column, entry) { if (column != null) { if (column.stringValueExtractor != null) { return column.stringValueExtractor(entry, this._cmsTranslationService); } return this.extractString(entry[column.propertyName]); } return this._placeholder; }; CSVConversionService.prototype.extractString = function (val) { // Default extractor impl return val != null ? (val + '').replace(/\n|\r/g, '') : this._placeholder; }; CSVConversionService.prototype.doDownload = function (filename, csv) { if (!csv.match(/^data:text\/csv/i)) { // Not simply UTF-8 but UTF-8 with BOM, because otherwise excel // will not display all chars correctly csv = 'data:text/csv;charset=utf-8,%EF%BB%BF' + encodeURI(csv); } var link = document.createElement('a'); link.setAttribute('href', csv); link.setAttribute('download', filename); link.click(); }; CSVConversionService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])(), __metadata("design:paramtypes", [_cmstranslation_service__WEBPACK_IMPORTED_MODULE_3__["CmsTranslationService"], angular_l10n__WEBPACK_IMPORTED_MODULE_4__["TranslationService"]]) ], CSVConversionService); return CSVConversionService; }()); /***/ }), /***/ "./src/app/services/dashboard.service.ts": /*!***********************************************!*\ !*** ./src/app/services/dashboard.service.ts ***! \***********************************************/ /*! exports provided: DashboardService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardService", function() { return DashboardService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var app_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DashboardService = /** @class */ (function () { function DashboardService(_configService, _authService) { this._configService = _configService; this._authService = _authService; } DashboardService_1 = DashboardService; Object.defineProperty(DashboardService.prototype, "dashboardItems", { get: function () { var craneConfig = this._configService.craneConfig; if (craneConfig != null) { var dashboardConfig = craneConfig.dashboard; if (dashboardConfig != null && dashboardConfig.layouts != null) { var role = this._authService.getRole(); var preferredLayout = DashboardService_1.resolveLayout(dashboardConfig.layouts, role); if (preferredLayout != null) { var dashboardItems = []; if (preferredLayout.items != null) dashboardItems.push.apply(dashboardItems, preferredLayout.items.filter(function (x) { return x != null && x.enabled; })); if (preferredLayout.configurableHoistCards != null) dashboardItems.push.apply(dashboardItems, preferredLayout.configurableHoistCards.filter(function (x) { return x != null && x.enabled; })); if (preferredLayout.configurableSvgCards != null) dashboardItems.push.apply(dashboardItems, preferredLayout.configurableSvgCards.filter(function (x) { return x != null && x.enabled; })); if (preferredLayout.configurableGrappleCards != null) dashboardItems.push.apply(dashboardItems, preferredLayout.configurableGrappleCards.filter(function (x) { return x != null && x.enabled; })); return dashboardItems; } } } console.warn('No dashboard items were resolved.'); return []; }, enumerable: true, configurable: true }); DashboardService.resolveLayout = function (layouts, role) { var defaultLayout = undefined; if (role != null) { for (var _i = 0, layouts_1 = layouts; _i < layouts_1.length; _i++) { var layout = layouts_1[_i]; if (layout != null && layout.enabled && layout.authorizedRoles != null) { var layoutRole = layout.authorizedRoles.toLowerCase(); if (layoutRole === role.toLowerCase()) { return layout; } else if (layoutRole === '*') { defaultLayout = layout; } } } } return defaultLayout; }; DashboardService = DashboardService_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({ providedIn: 'root' }), __metadata("design:paramtypes", [app_services_config_service__WEBPACK_IMPORTED_MODULE_2__["ConfigService"], app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]]) ], DashboardService); return DashboardService; var DashboardService_1; }()); /***/ }), /***/ "./src/app/services/data-cache.service.ts": /*!************************************************!*\ !*** ./src/app/services/data-cache.service.ts ***! \************************************************/ /*! exports provided: DataCacheService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataCacheService", function() { return DataCacheService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var DataCacheService = /** @class */ (function () { function DataCacheService() { // Static so data is preserved through reinstantiation of the service // To identify whether the service is getting reinstantiated during debugging this.id = Math.random(); } DataCacheService_1 = DataCacheService; DataCacheService.prototype.getData = function (name) { return DataCacheService_1.pagesData[name]; }; DataCacheService.prototype.saveData = function (name, data) { DataCacheService_1.pagesData[name] = data; }; DataCacheService.pagesData = {}; DataCacheService = DataCacheService_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])() ], DataCacheService); return DataCacheService; var DataCacheService_1; }()); /***/ }), /***/ "./src/app/services/datapoint-range.service.ts": /*!*****************************************************!*\ !*** ./src/app/services/datapoint-range.service.ts ***! \*****************************************************/ /*! exports provided: DataPointRangeService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataPointRangeService", function() { return DataPointRangeService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _types_keyed_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../types/keyed-collection */ "./src/types/keyed-collection.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var DataPointRangeService = /** @class */ (function () { function DataPointRangeService(_http) { this._http = _http; this.ranges = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_2__["KeyedCollection"](); } Object.defineProperty(DataPointRangeService.prototype, "url", { get: function () { return './api/datapointrange'; }, enumerable: true, configurable: true }); DataPointRangeService.prototype.initialize = function () { var _this = this; // Called from APP_INITIALIZER return new Promise(function (resolve) { _this._http.get(_this.url).subscribe(function (keyPairDictionary) { for (var _i = 0, keyPairDictionary_1 = keyPairDictionary; _i < keyPairDictionary_1.length; _i++) { var item = keyPairDictionary_1[_i]; var min = item.min; var max = item.max; var alarmMin = item.alarmMin; var alarmMax = item.alarmMax; _this.ranges.AddOrUpdate(item.naturalkey, { min: min, max: max, alarmMin: alarmMin, alarmMax: alarmMax }); } console.log("DataPointRange service initialized with " + keyPairDictionary.length + " items"); resolve(); }); }); }; DataPointRangeService.prototype.getRange = function (naturalKey) { if (naturalKey != null) { var range = this.ranges.Get(naturalKey); if (range != null) { return range; } console.log('No Range for key:', naturalKey); } return undefined; }; DataPointRangeService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]]) ], DataPointRangeService); return DataPointRangeService; }()); /***/ }), /***/ "./src/app/services/datapoint.service.ts": /*!***********************************************!*\ !*** ./src/app/services/datapoint.service.ts ***! \***********************************************/ /*! exports provided: DataPointService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataPointService", function() { return DataPointService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @microsoft/signalr */ "./node_modules/@microsoft/signalr/dist/esm/index.js"); /* harmony import */ var app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/signalr-configuration */ "./src/app/signalr-configuration.ts"); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _types_keyed_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../types/keyed-collection */ "./src/types/keyed-collection.ts"); /* harmony import */ var _models_data_point__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/data-point */ "./src/app/models/data-point.ts"); /* harmony import */ var _utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../utils/SignalRRetryPolicy */ "./src/app/utils/SignalRRetryPolicy.ts"); /* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _browser_visibility_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./browser-visibility.service */ "./src/app/services/browser-visibility.service.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _time_utils_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var _unitconversion_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./unitconversion.service */ "./src/app/services/unitconversion.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var DataPointService = /** @class */ (function () { function DataPointService(_ref, _authService, _unitConversionService, _timeUtilsService, browserVisibilityService, configuration, configService, retryPolicy) { var _this = this; this._ref = _ref; this._authService = _authService; this._unitConversionService = _unitConversionService; this._timeUtilsService = _timeUtilsService; this.skipValueChangeProcessing = false; this._heartbeatHubClientSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); this.handle = function (dps) { if (!_this.skipValueChangeProcessing) { var updatedDataPoints = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_6__["KeyedCollection"](); for (var _i = 0, dps_1 = dps; _i < dps_1.length; _i++) { var dp = dps_1[_i]; var timeStamp = undefined; if (dp.timeStamp != undefined) { var resolvedTimeStamp = moment__WEBPACK_IMPORTED_MODULE_3__(dp.timeStamp); timeStamp = resolvedTimeStamp.utc().toDate(); var dataPointTime = resolvedTimeStamp.toDate(); if (dataPointTime != null) { _this._timeUtilsService.craneDateTime = dataPointTime; } } var dataPoint = new _models_data_point__WEBPACK_IMPORTED_MODULE_7__["DataPoint"](dp.naturalKey, dp.measurement, timeStamp); updatedDataPoints.AddOrUpdate(dataPoint.naturalKey, dataPoint); } _this._dataPointsSubject.next(updatedDataPoints); _this._ref.tick(); } }; this.writeDataPoint = function (dataPoint, humanReadableValue) { if (humanReadableValue === void 0) { humanReadableValue = false; } var location = _this._authService.getClaimValue(_auth_service__WEBPACK_IMPORTED_MODULE_9__["AuthService"].claimLoginLocation); console.debug("DataPointHubService> Writing <" + dataPoint.data + "> to <" + dataPoint.naturalKey + "> from location <" + location + ">."); var humanReadableValueUnitSystem = undefined; if (humanReadableValue) { humanReadableValueUnitSystem = _this._unitConversionService.selectedUnitSystem; } return _this._hubConnection.send("writeDataPoint", location, dataPoint.naturalKey, dataPoint.data, humanReadableValue, humanReadableValueUnitSystem); }; this.requestDataPoints = function (keys) { if (keys != null && keys.length > 0 && _this._hubConnection.state === _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionState"].Connected) { console.debug("DataPointHubService> Requesting " + keys.length + " data points."); return _this._hubConnection.send("requestDataPoints", keys); } return Promise.resolve(); }; var timeoutInterval = configService.craneConfig.heartbeatTimeout; this._dataPointsSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); this.dataPoints = this._dataPointsSubject; var isConnectionAliveNotMapped = this.mapAsBeatObservable(this._heartbeatHubClientSubject.asObservable(), timeoutInterval, 'DataPointService', this.boolSummary); this.isConnectionAlive = isConnectionAliveNotMapped.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function (x) { return x.isAlive; })); this.shouldRequestDatapoints = Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["merge"])(this.isConnectionAlive, browserVisibilityService.isBrowserTabVisible); this._initSignalrConnection(configuration, retryPolicy); } DataPointService.prototype._initSignalrConnection = function (configuration, retryPolicy) { var _this = this; this._hubConnection = new _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionBuilder"]() .withUrl(configuration.serverWithApiUrl + "/dataPointHub") .withAutomaticReconnect(retryPolicy) .build(); this._hubConnection.on("onUpdateDataPoints", function (dps) { return _this.handle(dps); }); this._hubConnection.on("onHeartbeat", function (isAlive) { return _this._heartbeatHubClientSubject.next(isAlive); }); this._startSignalrConnection(configuration, retryPolicy); }; DataPointService.prototype._startSignalrConnection = function (configuration, retryPolicy) { var _this = this; this._hubConnection .start() .catch(function (error) { console.log('SignalRService> Startup failed.\n ' + error); setTimeout(function () { return _this._startSignalrConnection(configuration, retryPolicy); }, 5000); }); }; DataPointService.prototype.mapAsBeatObservable = function (observable, interval, fullName, summaryFunction) { // Make sure we got at least one beat in every period return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["bufferTime"])(interval), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(summaryFunction), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (summary) { if (!summary.isAlive) { console.error("SignalRService> " + fullName + " fell down."); } })); }; DataPointService.prototype.boolSummary = function (beats) { var lastBeat = beats.pop(); var isAlive = lastBeat != null && lastBeat === true; return new app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__["SubjectSummary"](isAlive, lastBeat); }; DataPointService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"], _auth_service__WEBPACK_IMPORTED_MODULE_9__["AuthService"], _unitconversion_service__WEBPACK_IMPORTED_MODULE_13__["UnitConversionService"], _time_utils_service__WEBPACK_IMPORTED_MODULE_12__["TimeUtilsService"], _browser_visibility_service__WEBPACK_IMPORTED_MODULE_10__["BrowserVisibilityService"], app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__["SignalRConfiguration"], _config_service__WEBPACK_IMPORTED_MODULE_11__["ConfigService"], _utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_8__["SignalRRetryPolicy"]]) ], DataPointService); return DataPointService; }()); /***/ }), /***/ "./src/app/services/inactivity-detector.ts": /*!*************************************************!*\ !*** ./src/app/services/inactivity-detector.ts ***! \*************************************************/ /*! exports provided: InactivityDetectorService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InactivityDetectorService", function() { return InactivityDetectorService; }); /* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var app_services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/services/view.service */ "./src/app/services/view.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var InactivityDetectorService = /** @class */ (function () { function InactivityDetectorService(_configService, _authService, _viewService, _ngZone) { this._configService = _configService; this._authService = _authService; this._viewService = _viewService; this._ngZone = _ngZone; this._inactivityCheckCycleTime = 5000; this._documentActivityListener = this.onActivityDetected.bind(this); } InactivityDetectorService.prototype.start = function () { if (this._authService.automaticLogin) { return; } console.log("Auto-Logout after " + this._configService.craneConfig.authentification.autoLogoutTimeout + "s of inactivity"); this.updateActivityTimestamp(); if (!this._started) { this.subscribeActivityListeners(); this.subscribeActivityTimer(); this._started = true; } }; InactivityDetectorService.prototype.stop = function () { if (!this._started) { return; } console.log("Stopping auto-logout detection"); this.unsubscribeActivityTimer(); this.unsubscribeActivityListeners(); this._started = false; }; InactivityDetectorService.prototype.onActivityDetected = function () { this._activityDetected = true; }; InactivityDetectorService.prototype.subscribeActivityListeners = function () { document.body.addEventListener('click', this._documentActivityListener, true); document.body.addEventListener('mousemove', this._documentActivityListener, true); document.body.addEventListener('keydown', this._documentActivityListener, true); }; InactivityDetectorService.prototype.unsubscribeActivityListeners = function () { document.body.removeEventListener('click', this._documentActivityListener, true); document.body.removeEventListener('mousemove', this._documentActivityListener, true); document.body.removeEventListener('keydown', this._documentActivityListener, true); }; Object.defineProperty(InactivityDetectorService.prototype, "now", { get: function () { return new Date().getTime(); }, enumerable: true, configurable: true }); InactivityDetectorService.prototype.updateActivityTimestamp = function () { this._lastActivityTimestamp = this.now; }; InactivityDetectorService.prototype.subscribeActivityTimer = function () { var _this = this; // avoid change-detection cycle on every timer-tick this._ngZone.runOutsideAngular(function () { _this._timerSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["timer"])(_this._inactivityCheckCycleTime, _this._inactivityCheckCycleTime).subscribe(function () { if (_this._activityDetected) { _this._activityDetected = false; _this.updateActivityTimestamp(); } else { var diff = _this.now - _this._lastActivityTimestamp; if (diff > _this._configService.craneConfig.authentification.autoLogoutTimeout * 1000) { console.warn("Inactivity timeout exceeded - Logging out..."); _this._viewService.closeQuickview(); _this._authService.logout(); } else { console.debug("Inactive for " + Math.floor(diff / 1000) + "s now"); } } }); }); }; InactivityDetectorService.prototype.unsubscribeActivityTimer = function () { if (this._timerSubscription) { this._timerSubscription.unsubscribe(); } }; InactivityDetectorService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])(), __metadata("design:paramtypes", [_config_service__WEBPACK_IMPORTED_MODULE_1__["ConfigService"], _auth_service__WEBPACK_IMPORTED_MODULE_0__["AuthService"], app_services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]]) ], InactivityDetectorService); return InactivityDetectorService; }()); /***/ }), /***/ "./src/app/services/keyboard.service.ts": /*!**********************************************!*\ !*** ./src/app/services/keyboard.service.ts ***! \**********************************************/ /*! exports provided: KeyboardService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyboardService", function() { return KeyboardService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/unitconversion.service */ "./src/app/services/unitconversion.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./datapoint-range.service */ "./src/app/services/datapoint-range.service.ts"); /* harmony import */ var _unitkey_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./unitkey.service */ "./src/app/services/unitkey.service.ts"); /* harmony import */ var app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pipes/unit-system-base-convert.pipe */ "./src/app/pipes/unit-system-base-convert.pipe.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var KeyboardService = /** @class */ (function () { function KeyboardService(_dataPointRangeService, _unitConversionService, _unitKeyService) { this._dataPointRangeService = _dataPointRangeService; this._unitConversionService = _unitConversionService; this._unitKeyService = _unitKeyService; this._numpadRequestSubject = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"](); this.numpadRequest = this._numpadRequestSubject.asObservable(); } KeyboardService.prototype.requestUserInput = function (params, naturalKey) { // if the naturalkey is defined we can set some of the undefined params for the modal if (naturalKey) { var valueRange = this._dataPointRangeService.getRange(naturalKey); var unitConfig = this.getUnitConfig(naturalKey); if (!(params.minValue != null) && valueRange != null) { params.minValue = this.convertToCurrentUnit(valueRange.min, naturalKey); } if (!(params.maxValue != null) && valueRange != null) { params.maxValue = this.convertToCurrentUnit(valueRange.max, naturalKey); } if (!(params.unit != null)) { params.unit = this.currentUnitSystem === types_config__WEBPACK_IMPORTED_MODULE_7__["UnitSystem"].Metric ? unitConfig.metricDisplayName || unitConfig.metricUnit : unitConfig.imperialDisplayName || unitConfig.imperialUnit; } if (!(params.displayDecimals != null)) { var decimalPlaces = this.currentUnitSystem === types_config__WEBPACK_IMPORTED_MODULE_7__["UnitSystem"].Metric ? unitConfig.metricDecimalPlaces : unitConfig.imperialDecimalPlaces; params.displayDecimals = decimalPlaces > 0; } } console.log('Requesting numeric user-input with params: ', params); this._numpadRequestSubject.next(params); }; KeyboardService.prototype.convertToCurrentUnit = function (value, naturalKey) { if (value != null) { var unitConversionService = this._unitConversionService; var unitKeyService = this._unitKeyService; var unitSystemBaseConvertPipe = new app_pipes_unit_system_base_convert_pipe__WEBPACK_IMPORTED_MODULE_6__["UnitSystemBaseConvertPipe"](unitConversionService); var unitSystemNumericConvertPipe = new app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_1__["UnitSystemNumericConvertPipe"](unitConversionService, unitKeyService, unitSystemBaseConvertPipe); var convertedValue = unitSystemNumericConvertPipe.transform(value, naturalKey); if (convertedValue != null) { return convertedValue; } } return value; }; KeyboardService.prototype.getUnitConfig = function (naturalKey) { var unitKey = this._unitKeyService.keys.UncheckedGet(naturalKey); return this._unitConversionService.getUnitConfig(unitKey); }; Object.defineProperty(KeyboardService.prototype, "currentUnitSystem", { get: function () { return this._unitConversionService.selectedUnitSystem != null ? this._unitConversionService.selectedUnitSystem : types_config__WEBPACK_IMPORTED_MODULE_7__["UnitSystem"].Metric; }, enumerable: true, configurable: true }); KeyboardService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_datapoint_range_service__WEBPACK_IMPORTED_MODULE_4__["DataPointRangeService"], app_services_unitconversion_service__WEBPACK_IMPORTED_MODULE_2__["UnitConversionService"], _unitkey_service__WEBPACK_IMPORTED_MODULE_5__["UnitKeyService"]]) ], KeyboardService); return KeyboardService; }()); /***/ }), /***/ "./src/app/services/location.service.ts": /*!**********************************************!*\ !*** ./src/app/services/location.service.ts ***! \**********************************************/ /*! exports provided: LocationService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocationService", function() { return LocationService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _auxiliary_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auxiliary.service */ "./src/app/services/auxiliary.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var LocationService = /** @class */ (function () { function LocationService(_auxiliaryService) { this._auxiliaryService = _auxiliaryService; this._aliasCache = new Map(); } LocationService.prototype.ngOnDestroy = function () { this._aliasCache.clear(); }; LocationService.prototype.getTerminalMappingAliasAsync = function (location, locationField) { return __awaiter(this, void 0, void 0, function () { var query, locationAliasPromise, promise, _a; return __generator(this, function (_b) { switch (_b.label) { case 0: query = JSON.stringify(location) + "|" + locationField; if (!!this._aliasCache.has(query)) return [3 /*break*/, 2]; locationAliasPromise = Promise.resolve(this._auxiliaryService.getLocationAlias(location, locationField)); this._aliasCache.set(query, locationAliasPromise); return [4 /*yield*/, locationAliasPromise]; case 1: return [2 /*return*/, _b.sent()]; case 2: promise = this._aliasCache.get(query); if (!(promise != null)) return [3 /*break*/, 4]; return [4 /*yield*/, promise]; case 3: _a = _b.sent(); return [3 /*break*/, 5]; case 4: _a = app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"]; _b.label = 5; case 5: return [2 /*return*/, _a]; } }); }); }; LocationService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [_auxiliary_service__WEBPACK_IMPORTED_MODULE_2__["AuxiliaryService"]]) ], LocationService); return LocationService; }()); /***/ }), /***/ "./src/app/services/maintenance/maintenance-point.service.ts": /*!*******************************************************************!*\ !*** ./src/app/services/maintenance/maintenance-point.service.ts ***! \*******************************************************************/ /*! exports provided: MaintenancePointService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaintenancePointService", function() { return MaintenancePointService; }); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/services/time-utils.service */ "./src/app/services/time-utils.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var MaintenancePointService = /** @class */ (function () { function MaintenancePointService(_http, _timeUtils) { this._http = _http; this._timeUtils = _timeUtils; this._urlMaintenancePoints = '/api/maintenancePoints'; this._urlMaintenancePointsHistory = '/api/maintenancePointsHistory'; this._urlMaintenancePointsUpdate = this._urlMaintenancePoints; this._urlMaintenancePointsCustomerNew = this._urlMaintenancePoints + '/customer'; this._urlMaintenancePointsCustomerUpdate = this._urlMaintenancePoints + '/customer'; this._urlMaintenancePointGroups = this._urlMaintenancePoints + '/groups'; this._urlMaintenancePointTags = this._urlMaintenancePoints + '/tags'; this._urlMaintenancePointImportedTags = this._urlMaintenancePoints + '/tagsFromMaintenancePlan'; this._urlMaintenancePointCounters = this._urlMaintenancePoints + '/counters'; this._urlMaintenancePointsScheduler = this._urlMaintenancePoints + '/done'; this._urlMaintenancePointsManuals = this._urlMaintenancePoints + '/manuals'; } MaintenancePointService.prototype.getMaintenancePoints = function (filteredByGroups, filteredByTag, untilDate, filteredByText) { var params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"](); if (filteredByGroups != null) { filteredByGroups.forEach(function (group) { return params = params.append('group', group); }); } if (untilDate != null) { var untilDateWithoutTimezone = this._timeUtils.toDateTime('23:59', untilDate); params = params.append('dueBefore', untilDateWithoutTimezone.toJSON()); } if (filteredByTag != null) { filteredByTag.forEach(function (tag) { return params = params.append('tag', tag); }); } if (filteredByText != null) { params = params.append('filterText', filteredByText); } var requestOptions = { params: params }; return this._http .get(this._urlMaintenancePoints, requestOptions); }; MaintenancePointService.prototype.getMaintenancePointsHistory = function (startDate, startTime, endDate, endTime, filteredByGroups, filteredByText) { var start = this._timeUtils.transformEffectiveLocalTimeToBackendUtc(this._timeUtils.toDateTime(startTime, startDate)); var end = this._timeUtils.transformEffectiveLocalTimeToBackendUtc(this._timeUtils.toDateTime(endTime, endDate)); var request = { startDate: start, endDate: end, filteredByGroups: filteredByGroups, filteredByText: filteredByText }; return this._http .post(this._urlMaintenancePointsHistory, request); }; MaintenancePointService.prototype.getMaintenancePointDetail = function (id) { return this._http .get(this._urlMaintenancePoints + "/" + id); }; MaintenancePointService.prototype.markMaintenancePointsAsDone = function (maintenancePoints) { var ids = maintenancePoints.map(function (mp) { return mp.id; }); return this._http.post(this._urlMaintenancePointsScheduler, ids); }; MaintenancePointService.prototype.getGroups = function () { return this._http .get(this._urlMaintenancePointGroups) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["map"])(function (groups) { return Array.isArray(groups) ? groups.sort() : []; })); }; MaintenancePointService.prototype.getTags = function (includeDeleted) { if (includeDeleted === void 0) { includeDeleted = false; } // Create HttpParams with the includeDeleted parameter var params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]().set('includeDeleted', includeDeleted.toString()); return this._http .get(this._urlMaintenancePointTags, { params: params }) // Include params in the request .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["map"])(function (tags) { return Array.isArray(tags) ? tags.sort() : []; })); }; // Delete a tag MaintenancePointService.prototype.deleteTags = function (tag) { return this._http.delete(this._urlMaintenancePointTags + "/" + tag); }; // Update a tag MaintenancePointService.prototype.updateTags = function (oldTag, newTag) { return this._http.put(this._urlMaintenancePointTags + "/" + oldTag + "/" + newTag, {}); }; MaintenancePointService.prototype.getImportedTags = function (includeDeleted) { if (includeDeleted === void 0) { includeDeleted = false; } // Create HttpParams with the includeDeleted parameter var params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]().set('includeDeleted', includeDeleted.toString()); return this._http .get(this._urlMaintenancePointImportedTags, { params: params }) // Include params in the request .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["map"])(function (tags) { return Array.isArray(tags) ? tags.sort() : []; })); }; MaintenancePointService.prototype.getCounters = function () { return this._http .get(this._urlMaintenancePointCounters); }; MaintenancePointService.prototype.getManuals = function () { return this._http .get(this._urlMaintenancePointsManuals); }; MaintenancePointService.prototype.createCustomerMaintenancePoint = function (customerMaintenancePointUpdate) { return this._http.post(this._urlMaintenancePointsCustomerNew, customerMaintenancePointUpdate); }; MaintenancePointService.prototype.updateCustomerMaintenancePoint = function (id, customerMaintenancePointUpdate) { return this._http.put(this._urlMaintenancePointsCustomerUpdate + '/' + id, customerMaintenancePointUpdate); }; MaintenancePointService.prototype.update = function (id, maintenancePointUpdate) { return this._http.put(this._urlMaintenancePointsUpdate + '/' + id, maintenancePointUpdate); }; MaintenancePointService.prototype.delete = function (id) { return this._http.delete(this._urlMaintenancePoints + '/' + id); }; MaintenancePointService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"], app_services_time_utils_service__WEBPACK_IMPORTED_MODULE_3__["TimeUtilsService"]]) ], MaintenancePointService); return MaintenancePointService; }()); /***/ }), /***/ "./src/app/services/metrics.service.ts": /*!*********************************************!*\ !*** ./src/app/services/metrics.service.ts ***! \*********************************************/ /*! exports provided: MetricsService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MetricsService", function() { return MetricsService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var MetricsService = /** @class */ (function () { function MetricsService(_httpClient) { this._httpClient = _httpClient; this._url = 'api/metrics/logging'; } MetricsService.prototype.Log = function (user, url, message) { var metricDto = { user: user, url: url != null ? url : window.location.pathname, message: message }; if (metricDto != null) { this._httpClient.post(this._url, metricDto).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["first"])()).subscribe(function () { return console.trace('Metric sent.'); }, function (e) { return console.error(e); }); } }; MetricsService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]]) ], MetricsService); return MetricsService; }()); /***/ }), /***/ "./src/app/services/monitoring.service.ts": /*!************************************************!*\ !*** ./src/app/services/monitoring.service.ts ***! \************************************************/ /*! exports provided: MonitoringService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitoringService", function() { return MonitoringService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var MonitoringService = /** @class */ (function () { function MonitoringService(_router) { this._router = _router; this._memoryAlertLevel = 150 * 1024 * 1024; this._memoryCheckInterval = 10 * 1000; } MonitoringService.prototype.run = function () { console.log('MONITORING SERVICE STARTED'); this.watchMemoryConsumption(); }; MonitoringService.prototype.watchMemoryConsumption = function () { var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); if (!isChrome) { console.log('Memory profiling only in Google Chrome!'); return; } console.log('Watching JS memory consumption...'); // report current memory consumption in browser console this.startMemoryLoggingToConsole(this._memoryCheckInterval); }; MonitoringService.prototype.startMemoryLoggingToConsole = function (interval) { var _this = this; var subscriptions = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["timer"])(interval, interval).subscribe(function () { var currentMemInfo = _this.currentMemoryInfo; if (!_this.isValidMemoryInfo(currentMemInfo)) { subscriptions.unsubscribe(); console.log('Chrome needs to be started with --enable-precise-memory-info to get correct memory information!'); console.log('JS memory profiling stopped'); return; } _this._memoryInfo = currentMemInfo; if (_this._memoryInfo.usedJSHeapSize > _this._memoryAlertLevel) { alert(["MEMORY ALERT LEVEL EXCEEDED!! " + _this.formattedHeapSize + "MB (used heap size)"]); } else { console.log('MEMORY CONSUMPTION', _this.formattedHeapSize + "MB"); } }); }; MonitoringService.prototype.isValidMemoryInfo = function (memoryInfo) { // check if values change - if not: Chrome start-argument "--enable-precise-memory-info" not set! if (!memoryInfo) { return false; } if (!this._memoryInfo) { return true; } return this._memoryInfo.usedJSHeapSize !== memoryInfo.usedJSHeapSize; }; Object.defineProperty(MonitoringService.prototype, "currentMemoryInfo", { get: function () { return (window.performance).memory; }, enumerable: true, configurable: true }); Object.defineProperty(MonitoringService.prototype, "formattedHeapSize", { get: function () { if (!this._memoryInfo) { return ''; } var heapSize = this._memoryInfo.usedJSHeapSize / (1024 * 1024); return heapSize.toFixed(2); }, enumerable: true, configurable: true }); MonitoringService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]]) ], MonitoringService); return MonitoringService; }()); /***/ }), /***/ "./src/app/services/notification-statistics.service.ts": /*!*************************************************************!*\ !*** ./src/app/services/notification-statistics.service.ts ***! \*************************************************************/ /*! exports provided: NotificationStatisticsService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationStatisticsService", function() { return NotificationStatisticsService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _time_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./time-utils.service */ "./src/app/services/time-utils.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NotificationStatisticsService = /** @class */ (function () { function NotificationStatisticsService(_http, _timeUtils) { this._http = _http; this._timeUtils = _timeUtils; this._urlNotificationSummary = '/api/notificationsummary'; } NotificationStatisticsService.prototype.getAlarmStatistics = function (startDate, startTime, endDate, endTime, lang, alarmGroups, alarmTypes, filteredByText) { var request = { startDate: this._timeUtils.toDateTime(startTime, startDate), endDate: this._timeUtils.toDateTime(endTime, endDate), lang: lang, alarmGroups: alarmGroups, alarmTypes: alarmTypes, filteredByText: filteredByText }; return this._http.post(this._urlNotificationSummary, request); }; NotificationStatisticsService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"], _time_utils_service__WEBPACK_IMPORTED_MODULE_2__["TimeUtilsService"]]) ], NotificationStatisticsService); return NotificationStatisticsService; }()); /***/ }), /***/ "./src/app/services/notification.service.ts": /*!**************************************************!*\ !*** ./src/app/services/notification.service.ts ***! \**************************************************/ /*! exports provided: NotificationService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationService", function() { return NotificationService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @microsoft/signalr */ "./node_modules/@microsoft/signalr/dist/esm/index.js"); /* harmony import */ var app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/signalr-configuration */ "./src/app/signalr-configuration.ts"); /* harmony import */ var app_utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/utils/SignalRRetryPolicy */ "./src/app/utils/SignalRRetryPolicy.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _types_keyed_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../types/keyed-collection */ "./src/types/keyed-collection.ts"); /* harmony import */ var _models_notification__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/notification */ "./src/app/models/notification.ts"); /* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _cmstranslation_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./cmstranslation.service */ "./src/app/services/cmstranslation.service.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _time_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./time-utils.service */ "./src/app/services/time-utils.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var NotificationService = /** @class */ (function () { function NotificationService(_ref, _authService, _cmsTranslation, _timeUtils, configuration, configService, retryPolicy) { var _this = this; this._ref = _ref; this._authService = _authService; this._cmsTranslation = _cmsTranslation; this._timeUtils = _timeUtils; this._heartbeatHubClientSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); this._notificationsSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_6__["KeyedCollection"]()); this.skipValueChangeProcessing = false; this.notifications = this._notificationsSubject.asObservable(); this.notify = function (notifications) { if (!_this.skipValueChangeProcessing) { var changedNotifications = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_6__["KeyedCollection"](); for (var _i = 0, notifications_1 = notifications; _i < notifications_1.length; _i++) { var notificationDto = notifications_1[_i]; var notification = new _models_notification__WEBPACK_IMPORTED_MODULE_7__["Notification"](undefined, // we can not specify real occurrence id because we do not have any at this state yet. notificationDto.notificationType, notificationDto.notificationId, notificationDto.notificationGroups, notificationDto.equipmentIdentifier, notificationDto.texts, notificationDto.helpTexts, notificationDto.timestamp, notificationDto.isActive, notificationDto.faultValues, notificationDto.manuals); notification.translateSelf(_this._cmsTranslation.currentLanguage, _this._timeUtils); changedNotifications.AddOrUpdate(notification.notificationId, notification); } _this._notificationsSubject.next(changedNotifications); _this._ref.tick(); } }; this.quit = function () { var level = _this._authService.getClaimValue(_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"].plcAccessLevelKey); if (_this._hubConnection.state === _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionState"].Connected) { _this._hubConnection.send("Quit", _this._authService.getClaimIdentityName(), parseInt(level)); } }; var timeoutInterval = configService.craneConfig.heartbeatTimeout; this._languageChangeSubscription = this._cmsTranslation.languageChangedEvent .subscribe(function () { return _this.requestNotifications(); }); var isConnectionAliveNotMapped = this.mapAsBeatObservable(this._heartbeatHubClientSubject.asObservable(), timeoutInterval, 'NotificationService', this.boolSummary); this.isConnectionAlive = isConnectionAliveNotMapped.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function (x) { return x.isAlive; })); this._initSignalrConnection(configuration, retryPolicy); } NotificationService.prototype.ngOnDestroy = function () { if (this._languageChangeSubscription != null) { this._languageChangeSubscription.unsubscribe(); } }; NotificationService.prototype._initSignalrConnection = function (configuration, retryPolicy) { var _this = this; this._hubConnection = new _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionBuilder"]() .withUrl(configuration.serverWithApiUrl + "/notificationHub") .withAutomaticReconnect(retryPolicy) .build(); this._hubConnection.onreconnected(function () { return _this._onConnectionChanged(true); }); this._hubConnection.onreconnecting(function () { return _this._onConnectionChanged(false); }); this._hubConnection.onclose(function () { return _this._startSignalrConnection(configuration, retryPolicy); }); this._hubConnection.on("OnNotificationEvent", function (dps) { return _this.notify(dps); }); this._hubConnection.on("onHeartbeat", function (isAlive) { return _this._heartbeatHubClientSubject.next(isAlive); }); this._startSignalrConnection(configuration, retryPolicy); }; NotificationService.prototype._startSignalrConnection = function (configuration, retryPolicy) { var _this = this; this._hubConnection .start() .then(function () { return _this._onConnectionChanged(true); }) .catch(function (error) { console.log('SignalRService> Startup failed.\n ' + error); setTimeout(function () { return _this._startSignalrConnection(configuration, retryPolicy); }, 5000); }); }; NotificationService.prototype._onConnectionChanged = function (isConnected) { if (isConnected) { this.requestNotifications(); } }; NotificationService.prototype.requestNotifications = function () { if (this._hubConnection.state === _microsoft_signalr__WEBPACK_IMPORTED_MODULE_1__["HubConnectionState"].Connected) { this._hubConnection.send("RequestNotifications"); } }; NotificationService.prototype.mapAsBeatObservable = function (observable, interval, fullName, summaryFunction) { // Make sure we got at least one beat in every period return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["bufferTime"])(interval), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(summaryFunction), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (summary) { if (!summary.isAlive) { console.error("SignalRService> " + fullName + " fell down."); } })); }; NotificationService.prototype.boolSummary = function (beats) { var lastBeat = beats.pop(); var isAlive = lastBeat != null && lastBeat === true; return new app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__["SubjectSummary"](isAlive, lastBeat); }; NotificationService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"], _auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"], _cmstranslation_service__WEBPACK_IMPORTED_MODULE_9__["CmsTranslationService"], _time_utils_service__WEBPACK_IMPORTED_MODULE_11__["TimeUtilsService"], app_signalr_configuration__WEBPACK_IMPORTED_MODULE_2__["SignalRConfiguration"], _config_service__WEBPACK_IMPORTED_MODULE_10__["ConfigService"], app_utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_3__["SignalRRetryPolicy"]]) ], NotificationService); return NotificationService; }()); /***/ }), /***/ "./src/app/services/orientation.service.ts": /*!*************************************************!*\ !*** ./src/app/services/orientation.service.ts ***! \*************************************************/ /*! exports provided: OrientationService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrientationService", function() { return OrientationService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _types_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../types/config */ "./src/types/config.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var OrientationService = /** @class */ (function () { function OrientationService(_configService, _dataPointService) { var _this = this; this._configService = _configService; this._dataPointService = _dataPointService; this._orientationChangedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_3__["ReplaySubject"](1); // Default values below are set based on standard configuration for ctk / rtg. this._isGantryForwardRight = true; this._isCableReelLeft = false; this._isTrolleyForwardTop = false; this._isTrolleyPodestForward = true; this._isAscentSideForward = true; this._isHingedPostForward = false; this._isSpreaderFrontTop = true; this._isElectricalSideForward = true; this._isSpreaderLongshiftForwardRight = true; this._flipGantryVertical = null; this._flipGantryHorizontal = null; this._flipTrolleyVertical = null; this._flipTrolleyHorizontal = null; var craneOrientation = this._configService.craneConfig.deviceConfigs[app_app_constants__WEBPACK_IMPORTED_MODULE_1__["Const"].AliasCraneOrientation]; if (craneOrientation != null && craneOrientation.enabled) { this._gantryForwardRightNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_GANTRY_FORWARD_RIGHT); this._cableReelLeftNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_CABLE_REEL_LEFT); this._trolleyForwardTopNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_TROLLEY_FORWARD_TOP); this._trolleyPodestForwardNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_TROLLEY_PODEST_FORWARD); this._spreaderFrontTopNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_SPREADER_FRONT_TOP); this._ascentSideForwardNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_ASCEND_SIDE_FORWARD); this._hingedPostForwardNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_HINGED_POST_FORWARD); this._electricalSideForwardNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_ELECTRICAL_SIDE_FORWARD); this._spreaderLongshiftForwardRightNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_SPREADER_LONGHSIFT_FORWARD_RIGHT); this._flipGantryVerticalNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_FLIP_GANTRY_VERTICAL); this._flipGantryHorizontalNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_FLIP_GANTRY_HORIZONTAL); this._flipTrolleyVerticalNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_FLIP_TROLLEY_VERTICAL); this._flipTrolleyHorizontalNk = OrientationService_1.getNaturalKey(craneOrientation.components, OrientationService_1.COMPONENT_ID_FLIP_TROLLEY_HORIZONTAL); } this._orientationNaturalKeys = [ this._gantryForwardRightNk, this._cableReelLeftNk, this._trolleyForwardTopNk, this._trolleyPodestForwardNk, this._spreaderFrontTopNk, this._ascentSideForwardNk, this._hingedPostForwardNk, this._electricalSideForwardNk, this._spreaderLongshiftForwardRightNk, this._flipGantryVerticalNk, this._flipGantryHorizontalNk, this._flipTrolleyVerticalNk, this._flipTrolleyHorizontalNk ].filter(function (x) { return x != null; }); this._connectionChangedSubscription = this._dataPointService.isConnectionAlive.subscribe(function (isConnected) { if (isConnected) { _this.requestOrientationDataPoints(); } }); this._dataPointChangedSubscription = this._dataPointService.dataPoints.subscribe(function (dataPointUpdates) { return _this.updateCraneOrientation(dataPointUpdates); }, function (error) { return console.error(error); }); } OrientationService_1 = OrientationService; OrientationService.getNaturalKey = function (components, componentId) { if (components != null) { var component = components.find(function (x) { return x != null && x.enabled && x.id === componentId; }); if (component != null) { var requireDataPoints = component.requiredDatapoints; if (requireDataPoints != null && Array.isArray(requireDataPoints) && requireDataPoints.length > 0) { var dataPointConfig = requireDataPoints[0]; if (dataPointConfig != null) { return dataPointConfig.naturalKey; } } } } return undefined; }; OrientationService.prototype.ngOnDestroy = function () { if (this._connectionChangedSubscription != null) { this._connectionChangedSubscription.unsubscribe(); } if (this._dataPointChangedSubscription != null) { this._dataPointChangedSubscription.unsubscribe(); } }; OrientationService.prototype.requestOrientationDataPoints = function () { if (this._orientationNaturalKeys != null && this._orientationNaturalKeys.length > 0) { this._dataPointService.requestDataPoints(this._orientationNaturalKeys); } }; OrientationService.prototype.updateCraneOrientation = function (dataPointUpdates) { if (dataPointUpdates != null) { var dataPointUpdateValues = dataPointUpdates.Values(); for (var _i = 0, dataPointUpdateValues_1 = dataPointUpdateValues; _i < dataPointUpdateValues_1.length; _i++) { var dataPoint = dataPointUpdateValues_1[_i]; if (dataPoint != null && dataPoint.naturalKey != null) { switch (dataPoint.naturalKey) { case undefined: break; case this._gantryForwardRightNk: { this.isGantryForwardRight = dataPoint.data; break; } case this._cableReelLeftNk: { this.isCableReelLeft = dataPoint.data; break; } case this._trolleyForwardTopNk: { this.isTrolleyForwardTop = dataPoint.data; break; } case this._trolleyPodestForwardNk: { this.isTrolleyPodestForward = dataPoint.data; break; } case this._spreaderFrontTopNk: { this.isSpreaderFrontTop = dataPoint.data; break; } case this._ascentSideForwardNk: { this.isAscentSideForward = dataPoint.data; break; } case this._hingedPostForwardNk: { this.isHingedPostForward = dataPoint.data; break; } case this._electricalSideForwardNk: { this.isElectricalSideForward = dataPoint.data; break; } case this._spreaderLongshiftForwardRightNk: { this.isSpreaderLongshiftForwardRight = dataPoint.data; break; } case this._flipGantryVerticalNk: { this.flipGantryVertical = dataPoint.data; break; } case this._flipGantryHorizontalNk: { this.flipGantryHorizontal = dataPoint.data; break; } case this._flipTrolleyVerticalNk: { this.flipTrolleyVertical = dataPoint.data; break; } case this._flipTrolleyHorizontalNk: { this.flipTrolleyHorizontal = dataPoint.data; break; } default: break; } } } } }; OrientationService.prototype.getOrientationLabels = function (ascentSideText, freeSideText, electricalSideText, emptySideText, hingedPostText, fixedPostText, cabinSidetext) { var titles = [app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"], app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"], app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"], app_app_constants__WEBPACK_IMPORTED_MODULE_1__["NOT_AVAILABLE"]]; var ascentSideRight = this.isAscentSideForward === this.isGantryForwardRight; switch (this._configService.craneConfig.craneType) { case _types_config__WEBPACK_IMPORTED_MODULE_5__["CraneType"].RTG: var electricalSideTop = this.isElectricalSideForward === this.isTrolleyForwardTop; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Top] = electricalSideTop ? electricalSideText : emptySideText; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Bottom] = electricalSideTop ? emptySideText : electricalSideText; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Right] = ascentSideRight ? ascentSideText : freeSideText; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Left] = ascentSideRight ? freeSideText : ascentSideText; break; case _types_config__WEBPACK_IMPORTED_MODULE_5__["CraneType"].KC: titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Top] = emptySideText; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Bottom] = cabinSidetext; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Right] = freeSideText; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Left] = ascentSideText; break; default: var hingedPostTop = this.isHingedPostForward === this.isTrolleyForwardTop; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Top] = hingedPostTop ? hingedPostText : fixedPostText; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Bottom] = hingedPostTop ? fixedPostText : hingedPostText; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Right] = ascentSideRight ? ascentSideText : freeSideText; titles[_types_config__WEBPACK_IMPORTED_MODULE_5__["ScreenPosition"].Left] = ascentSideRight ? freeSideText : ascentSideText; } return titles; }; OrientationService.prototype.orientationChangedSubject = function () { // auditTime is used here to prevent spamming all subscribers with not necessary updates. // Reason: Orientation is not expected to change multiple times within a short time. return this._orientationChangedSubject.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["auditTime"])(500)); }; Object.defineProperty(OrientationService.prototype, "isGantryForwardRight", { get: function () { return this._isGantryForwardRight; }, set: function (value) { this._isGantryForwardRight = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "isCableReelLeft", { get: function () { return this._isCableReelLeft; }, set: function (value) { this._isCableReelLeft = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "isTrolleyForwardTop", { get: function () { return this._isTrolleyForwardTop; }, set: function (value) { this._isTrolleyForwardTop = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "isTrolleyPodestForward", { get: function () { return this._isTrolleyPodestForward; }, set: function (value) { this._isTrolleyPodestForward = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "isAscentSideForward", { get: function () { return this._isAscentSideForward; }, set: function (value) { this._isAscentSideForward = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "isHingedPostForward", { get: function () { return this._isHingedPostForward; }, set: function (value) { this._isHingedPostForward = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "isSpreaderFrontTop", { get: function () { return this._isSpreaderFrontTop; }, set: function (value) { this._isSpreaderFrontTop = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "isElectricalSideForward", { get: function () { return this._isElectricalSideForward; }, set: function (value) { this._isElectricalSideForward = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "isSpreaderLongshiftForwardRight", { get: function () { return this._isSpreaderLongshiftForwardRight; }, set: function (value) { this._isSpreaderLongshiftForwardRight = value; this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "flipGantryVertical", { get: function () { return this._flipGantryVertical; }, set: function (value) { this._flipGantryVertical = value; if (value !== null) this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "flipGantryHorizontal", { get: function () { return this._flipGantryHorizontal; }, set: function (value) { this._flipGantryHorizontal = value; if (value !== null) this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "flipTrolleyVertical", { get: function () { return this._flipTrolleyVertical; }, set: function (value) { this._flipTrolleyVertical = value; if (value !== null) this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); Object.defineProperty(OrientationService.prototype, "flipTrolleyHorizontal", { get: function () { return this._flipTrolleyHorizontal; }, set: function (value) { this._flipTrolleyHorizontal = value; if (value !== null) this._orientationChangedSubject.next(value); }, enumerable: true, configurable: true }); OrientationService.COMPONENT_ID_GANTRY_FORWARD_RIGHT = 'gantryForwardRight'; OrientationService.COMPONENT_ID_CABLE_REEL_LEFT = 'cableReelLeft'; OrientationService.COMPONENT_ID_TROLLEY_FORWARD_TOP = 'trolleyForwardTop'; OrientationService.COMPONENT_ID_TROLLEY_PODEST_FORWARD = 'trolleyPodestForward'; OrientationService.COMPONENT_ID_SPREADER_FRONT_TOP = 'spreaderFrontTop'; OrientationService.COMPONENT_ID_ASCEND_SIDE_FORWARD = 'ascentSideForward'; OrientationService.COMPONENT_ID_HINGED_POST_FORWARD = 'hingedPostForward'; OrientationService.COMPONENT_ID_ELECTRICAL_SIDE_FORWARD = 'electricalSideForward'; OrientationService.COMPONENT_ID_SPREADER_LONGHSIFT_FORWARD_RIGHT = 'spreaderLongshiftForwardRight'; OrientationService.COMPONENT_ID_FLIP_GANTRY_VERTICAL = 'flipGantryVertical'; OrientationService.COMPONENT_ID_FLIP_GANTRY_HORIZONTAL = 'flipGantryHorizontal'; OrientationService.COMPONENT_ID_FLIP_TROLLEY_VERTICAL = 'flipTrolleyVertical'; OrientationService.COMPONENT_ID_FLIP_TROLLEY_HORIZONTAL = 'flipTrolleyHorizontal'; OrientationService = OrientationService_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({ providedIn: 'root' }), __metadata("design:paramtypes", [_config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"], app_services_datapoint_service__WEBPACK_IMPORTED_MODULE_2__["DataPointService"]]) ], OrientationService); return OrientationService; var OrientationService_1; }()); /***/ }), /***/ "./src/app/services/quickview/quickview.service.ts": /*!*********************************************************!*\ !*** ./src/app/services/quickview/quickview.service.ts ***! \*********************************************************/ /*! exports provided: DataSample, DataSampleState, DataSampleChangedEvent, MAX_TREND_ITEMS, QuickviewDataSamplingInterval, QuickviewDataSamplingMaxAmount, QUICKWATCH_ITEMS_STORAGE_KEY, QuickviewService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataSample", function() { return DataSample; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataSampleState", function() { return DataSampleState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataSampleChangedEvent", function() { return DataSampleChangedEvent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_TREND_ITEMS", function() { return MAX_TREND_ITEMS; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewDataSamplingInterval", function() { return QuickviewDataSamplingInterval; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewDataSamplingMaxAmount", function() { return QuickviewDataSamplingMaxAmount; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QUICKWATCH_ITEMS_STORAGE_KEY", function() { return QUICKWATCH_ITEMS_STORAGE_KEY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickviewService", function() { return QuickviewService; }); /* harmony import */ var _models_column_definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../models/column-definition */ "./src/app/models/column-definition.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/models/datapoint-collection.viewmodel */ "./src/app/models/datapoint-collection.viewmodel.ts"); /* harmony import */ var _storage_local_storage_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../storage/local-storage.service */ "./src/app/services/storage/local-storage.service.ts"); /* harmony import */ var _toast_sevice__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../toast.sevice */ "./src/app/services/toast.sevice.ts"); /* harmony import */ var app_components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/components/toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var _csv_conversion_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../csv-conversion.service */ "./src/app/services/csv-conversion.service.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _color_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var DataSample = /** @class */ (function () { function DataSample(t, y) { this.t = t; this.y = y; } return DataSample; }()); var DataSampleState; (function (DataSampleState) { DataSampleState[DataSampleState["Init"] = -1] = "Init"; DataSampleState[DataSampleState["Added"] = 0] = "Added"; DataSampleState[DataSampleState["Updated"] = 1] = "Updated"; DataSampleState[DataSampleState["Deleted"] = 2] = "Deleted"; })(DataSampleState || (DataSampleState = {})); var DataSampleChangedEvent = /** @class */ (function () { function DataSampleChangedEvent(state, nks) { this.state = state; this.nks = nks; } return DataSampleChangedEvent; }()); var MAX_TREND_ITEMS = 10; var QuickviewDataSamplingInterval = 100; var QuickviewDataSamplingMaxAmount = (1000 / QuickviewDataSamplingInterval) * 60 * 5; // samples pro sec * 60s * 5min var QUICKWATCH_ITEMS_STORAGE_KEY = 'quickwatch_items'; var QuickviewService = /** @class */ (function () { function QuickviewService(_localStorageService, _toastService, _csvConversionService, _configService, _colorService, _unitSystemNumericConvertPipe) { var _this = this; this._localStorageService = _localStorageService; this._toastService = _toastService; this._csvConversionService = _csvConversionService; this._configService = _configService; this._colorService = _colorService; this._unitSystemNumericConvertPipe = _unitSystemNumericConvertPipe; this._dataStore = new Map(); this._watchDataStore = new app_models_datapoint_collection_viewmodel__WEBPACK_IMPORTED_MODULE_3__["DataPointCollection"](); this._allocatedColors = new Set(); this._watchItemsUpdatedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](this._watchDataStore); this._dataSamplesChangedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](new DataSampleChangedEvent(DataSampleState.Init)); this.watchedItems = this._watchItemsUpdatedSubject.asObservable(); this.dataSamples = this._dataSamplesChangedSubject.asObservable(); this.restoreQuickwatchItems(); this._timelineSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["interval"])(QuickviewDataSamplingInterval).subscribe(function (_) { return _this.recordDataSamples(); }); } Object.defineProperty(QuickviewService.prototype, "watchedItemsCount", { get: function () { if (this._watchDataStore.items != null) { return this._watchDataStore.items.length; } return 0; }, enumerable: true, configurable: true }); Object.defineProperty(QuickviewService.prototype, "trendItemsCount", { get: function () { var trendedItems = this._trendedQuickwatchItems; if (trendedItems != null) { return trendedItems.length; } return 0; }, enumerable: true, configurable: true }); QuickviewService.prototype.isWatched = function (naturalKey) { if (this.watchedItemsCount > 0) { return this._watchDataStore.items.some(function (dp) { return dp.naturalKey === naturalKey; }); } return false; }; QuickviewService.prototype.isTrended = function (naturalKey) { var quickwatchItem = this.getQuickwatchItem(naturalKey); if (quickwatchItem != null) { return quickwatchItem.isTrendEnabled === true; } return false; }; QuickviewService.prototype.getQuickwatchItem = function (naturalKey) { if (this.watchedItemsCount > 0) { return this._watchDataStore.items.find(function (dp) { return dp.naturalKey === naturalKey; }); } return undefined; }; QuickviewService.prototype.addQuickwatchItem = function (item) { if (item != null && !this.isWatched(item.naturalKey)) { var quickwatchItem = { title: item.title, groupTitle: item.groupTitle, groupColorStyle: item.groupColorStyle, naturalKey: item.naturalKey }; this._watchDataStore.items.push(quickwatchItem); this.notifyQuickwatchItemsChanged(); this.persistQuickwatchItems(); return true; } return false; }; QuickviewService.prototype.trendQuickwatchItem = function (naturalKey) { if (this.trendItemsCount < MAX_TREND_ITEMS) { var quickwatchItem = this.getQuickwatchItem(naturalKey); if (quickwatchItem != null && !quickwatchItem.isTrendEnabled) { this.addDataSamples(naturalKey); var currentColor = quickwatchItem.trendColor; var unusedColor = this.getUnusedColor(); quickwatchItem.trendColor = this.replaceColor(currentColor, unusedColor); quickwatchItem.isTrendEnabled = true; this.notifyDataSamplesChanged(DataSampleState.Added, [naturalKey]); this.persistQuickwatchItems(); return true; } } else { this._toastService.showToastAsync('datapoint_trending_limit_reached', _toast_sevice__WEBPACK_IMPORTED_MODULE_5__["TimeSpan"].Default, app_components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_6__["NotificationToastType"].Error); } return false; }; QuickviewService.prototype.untrendQuickwatchItem = function (naturalKey) { if (this.trendItemsCount > 0) { var quickwatchItem = this.getQuickwatchItem(naturalKey); if (quickwatchItem != null) { var currentColor = quickwatchItem.trendColor; quickwatchItem.trendColor = this.replaceColor(currentColor, undefined); quickwatchItem.isTrendEnabled = false; this.removeDataSamples(naturalKey); this.notifyDataSamplesChanged(DataSampleState.Deleted, [naturalKey]); this.persistQuickwatchItems(); return true; } } return false; }; QuickviewService.prototype.trendAll = function () { if (this.watchedItemsCount > 0 && this.trendItemsCount < this.watchedItemsCount && this.trendItemsCount < MAX_TREND_ITEMS) { for (var _i = 0, _a = this._watchDataStore.items; _i < _a.length; _i++) { var item = _a[_i]; var nk = item.naturalKey; if (nk != null && this.trendItemsCount < MAX_TREND_ITEMS) { if (!this.isTrended(nk)) { this.trendQuickwatchItem(nk); } } else { return; } } } }; QuickviewService.prototype.removeQuickwatchItem = function (naturalKey) { var index = this._watchDataStore.items.findIndex(function (dataPoint) { return dataPoint.naturalKey === naturalKey; }); if (index >= 0) { this._watchDataStore.items.splice(index, 1); this.removeDataSamples(naturalKey); this.notifyQuickwatchItemsChanged(); this.persistQuickwatchItems(); return true; } return false; }; Object.defineProperty(QuickviewService.prototype, "sampledNaturalKeys", { get: function () { if (this._dataStore != null) { var keys = Array.from(this._dataStore.keys()); return keys; } return []; }, enumerable: true, configurable: true }); QuickviewService.prototype.getSampledData = function (naturalKey) { if (this._dataStore != null) { var dataArray = this._dataStore.get(naturalKey); if (dataArray != null) { var convertedDataArray = []; for (var _i = 0, dataArray_1 = dataArray; _i < dataArray_1.length; _i++) { var data = dataArray_1[_i]; var convertedDataSample = new DataSample(data.t, this._unitSystemNumericConvertPipe.transform(data.y, naturalKey)); convertedDataArray.push(convertedDataSample); } return convertedDataArray; } } return undefined; }; QuickviewService.prototype.exportCSV = function (title) { return __awaiter(this, void 0, void 0, function () { var data, columnPromise, groupedByDate, _i, data_1, entry, key, values, _a, values_1, value, shortenedNumber, convertedValue, sample, samples, groupedArray, columnData, requiredColumns; return __generator(this, function (_b) { switch (_b.label) { case 0: data = Array.from(this._dataStore.entries()); columnPromise = this.getRequiredCSVColumns(data.map(function (x) { return x[0]; })); console.time('export'); groupedByDate = new Map(); for (_i = 0, data_1 = data; _i < data_1.length; _i++) { entry = data_1[_i]; key = entry[0]; values = entry[1]; if (values != null && values.length > 0) { for (_a = 0, values_1 = values; _a < values_1.length; _a++) { value = values_1[_a]; shortenedNumber = value.y; convertedValue = Number(this._unitSystemNumericConvertPipe.transform(value.y, key)); if (!isNaN(convertedValue)) { shortenedNumber = parseFloat(convertedValue.toFixed(2)); } sample = { value: shortenedNumber, timestamp: value.t, naturalKey: key }; if (!groupedByDate.has(sample.timestamp)) { groupedByDate.set(sample.timestamp, [sample]); } else { samples = groupedByDate.get(sample.timestamp); if (samples != null) { samples.push(sample); } } } } } groupedArray = Array.from(groupedByDate.entries()).sort(function (x) { return x[0]; }); columnData = groupedArray.reduce(function (analysisDTOs, entry) { var timestamp = entry[0]; var nkValues = entry[1]; var dto = { timestamp: new Date(timestamp) }; for (var _i = 0, nkValues_1 = nkValues; _i < nkValues_1.length; _i++) { var nkValue = nkValues_1[_i]; dto[nkValue.naturalKey] = nkValue.value; } analysisDTOs.push(dto); return analysisDTOs; }, []); return [4 /*yield*/, columnPromise]; case 1: requiredColumns = _b.sent(); this._csvConversionService.saveAsCSV(title, requiredColumns, columnData); console.timeEnd('export'); return [2 /*return*/]; } }); }); }; QuickviewService.prototype.getRequiredCSVColumns = function (keys) { return __awaiter(this, void 0, void 0, function () { var requiredColumns, i, length_1, nk, columnTitle; return __generator(this, function (_a) { requiredColumns = [ new _models_column_definition__WEBPACK_IMPORTED_MODULE_0__["ColumnDefinition"]('datetime', 'timestamp', function (x, t) { var val = new angular_l10n__WEBPACK_IMPORTED_MODULE_7__["L10nDatePipe"]().transform(x.timestamp, t.currentLanguage, 'medium'); return val != null ? val : ''; }) ]; for (i = 0, length_1 = keys.length; i < length_1; ++i) { nk = keys[i]; columnTitle = this.getNaturalKeyTitle(nk) + " (" + nk + ")"; requiredColumns.push(new _models_column_definition__WEBPACK_IMPORTED_MODULE_0__["ColumnDefinition"](columnTitle, nk)); } return [2 /*return*/, requiredColumns]; }); }); }; QuickviewService.prototype.notifyQuickwatchItemsChanged = function () { this._watchItemsUpdatedSubject.next(this._watchDataStore); }; QuickviewService.prototype.notifyDataSamplesChanged = function (value, nks) { this._dataSamplesChangedSubject.next(new DataSampleChangedEvent(value, nks)); }; QuickviewService.prototype.recordDataSamples = function () { var trendedItems = this._trendedQuickwatchItems; if (trendedItems != null && trendedItems.length > 0) { var dateTime = Date.now(); var nks = []; for (var _i = 0, trendedItems_1 = trendedItems; _i < trendedItems_1.length; _i++) { var item = trendedItems_1[_i]; if (item != null) { var dataSample = new DataSample(dateTime, item.value); // prepare storage and store var storedSamples = this._dataStore.get(item.naturalKey); if (storedSamples != null) { storedSamples.push(dataSample); // cleanup var newStartIndex = Math.floor(storedSamples.length - QuickviewDataSamplingMaxAmount); while (newStartIndex > 0) { storedSamples.shift(); --newStartIndex; } this._dataStore.set(item.naturalKey, storedSamples); } nks.push(item.naturalKey); } } this.notifyDataSamplesChanged(DataSampleState.Updated, nks); } else { this._dataStore.clear(); } }; QuickviewService.prototype.addDataSamples = function (naturalKey) { if (this._dataStore != null && !this._dataStore.has(naturalKey)) { this._dataStore.set(naturalKey, []); } }; QuickviewService.prototype.removeDataSamples = function (naturalKey) { if (this._dataStore != null) { this._dataStore.delete(naturalKey); } }; QuickviewService.prototype.persistQuickwatchItems = function () { if (this.watchedItemsCount > 0) { var watchedItems = JSON.stringify(this._watchDataStore.items); this._localStorageService.setItem(QUICKWATCH_ITEMS_STORAGE_KEY, watchedItems); } else { this._localStorageService.removeItem(QUICKWATCH_ITEMS_STORAGE_KEY); } }; QuickviewService.prototype.restoreQuickwatchItems = function () { var storageContent = this._localStorageService.getItem(QUICKWATCH_ITEMS_STORAGE_KEY); if (storageContent != null) { var watchDataStore = JSON.parse(storageContent); if (watchDataStore != null && Array.isArray(watchDataStore) && watchDataStore.length > 0) { for (var _i = 0, watchDataStore_1 = watchDataStore; _i < watchDataStore_1.length; _i++) { var item = watchDataStore_1[_i]; if (item.isTrendEnabled) { this.addDataSamples(item.naturalKey); } if (item.trendColor != null) { this._allocatedColors.add(item.trendColor); } this._watchDataStore.items.push(item); } } } }; QuickviewService.prototype.getNaturalKeyTitle = function (nk) { var metadata = this._configService.craneConfig.datapointMetadata[nk]; return metadata != null ? metadata.label : ''; }; QuickviewService.prototype.replaceColor = function (currentColor, newColor) { if (this._allocatedColors != null) { if (currentColor != null) { this._allocatedColors.delete(currentColor); } if (newColor != null) { this._allocatedColors.add(newColor); } } return newColor; }; QuickviewService.prototype.getUnusedColor = function () { return this._colorService.getUnusedColor(this._colorService.chartSeriesPalette, this._allocatedColors); }; Object.defineProperty(QuickviewService.prototype, "_trendedQuickwatchItems", { get: function () { if (this.watchedItemsCount > 0) { return this._watchDataStore.items.filter(function (dataPoint) { return dataPoint.isTrendEnabled; }); } return []; }, enumerable: true, configurable: true }); QuickviewService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])({ providedIn: 'root' }), __metadata("design:paramtypes", [_storage_local_storage_service__WEBPACK_IMPORTED_MODULE_4__["LocalStorageService"], _toast_sevice__WEBPACK_IMPORTED_MODULE_5__["ToastService"], _csv_conversion_service__WEBPACK_IMPORTED_MODULE_8__["CSVConversionService"], _config_service__WEBPACK_IMPORTED_MODULE_9__["ConfigService"], _color_service__WEBPACK_IMPORTED_MODULE_10__["ColorService"], app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_11__["UnitSystemNumericConvertPipe"]]) ], QuickviewService); return QuickviewService; }()); /***/ }), /***/ "./src/app/services/signalr.service.ts": /*!*********************************************!*\ !*** ./src/app/services/signalr.service.ts ***! \*********************************************/ /*! exports provided: ServiceStatus, SignalRService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceStatus", function() { return ServiceStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignalRService", function() { return SignalRService; }); /* harmony import */ var _utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils/SignalRRetryPolicy */ "./src/app/utils/SignalRRetryPolicy.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _signalr_configuration__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../signalr-configuration */ "./src/app/signalr-configuration.ts"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _microsoft_signalr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @microsoft/signalr */ "./node_modules/@microsoft/signalr/dist/esm/index.js"); /* harmony import */ var _auxiliary_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./auxiliary.service */ "./src/app/services/auxiliary.service.ts"); /* harmony import */ var _datapoint_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./datapoint.service */ "./src/app/services/datapoint.service.ts"); /* harmony import */ var _notification_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./notification.service */ "./src/app/services/notification.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ServiceStatus; (function (ServiceStatus) { ServiceStatus[ServiceStatus["Created"] = 0] = "Created"; ServiceStatus[ServiceStatus["Assigning"] = 1] = "Assigning"; ServiceStatus[ServiceStatus["Assigned"] = 2] = "Assigned"; ServiceStatus[ServiceStatus["Initialized"] = 3] = "Initialized"; ServiceStatus[ServiceStatus["Connecting"] = 4] = "Connecting"; ServiceStatus[ServiceStatus["Disconnected"] = 5] = "Disconnected"; ServiceStatus[ServiceStatus["Connected"] = 6] = "Connected"; })(ServiceStatus || (ServiceStatus = {})); // tslint:disable:variable-name var SignalRService = /** @class */ (function () { function SignalRService(configuration, configService, retryPolicy, _auxiliarySignalRService, _dataPointSignalrService, _notificationSignalrService) { this._auxiliarySignalRService = _auxiliarySignalRService; this._dataPointSignalrService = _dataPointSignalrService; this._notificationSignalrService = _notificationSignalrService; // Internal client Subjects and Observables this._plcStateClientSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"](); this._externalServicesStateClientSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"](); this._heartbeatHubClientSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"](); this._statusChangedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](ServiceStatus.Created); this.currentState = undefined; this.statusChanged = this._statusChangedSubject.asObservable() .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])()); var timeoutInterval = configService.craneConfig.heartbeatTimeout; // Initializing proactive SignalR check. var plcAliveNotMapped = this.mapAsBeatObservable(this._plcStateClientSubject.asObservable(), timeoutInterval, 'PLC', this.plcStateSummary); this.isPlcAlive = plcAliveNotMapped.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (x) { return x.lastBeat; })); var externalServiceNotMapped = this.mapAsBeatObservable(this._externalServicesStateClientSubject.asObservable(), timeoutInterval, 'External service', this.externalServiceStateSummary); this.areExternalServicesAlive = externalServiceNotMapped.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (x) { return x.lastBeat; })); var isConnectionAliveNotMapped = this.mapAsBeatObservable(this._heartbeatHubClientSubject.asObservable(), timeoutInterval, 'SignalR', this.boolSummary); this.isConnectionAlive = isConnectionAliveNotMapped.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (x) { return x.isAlive; })); var coreHeartbeatObservables = []; coreHeartbeatObservables.push(plcAliveNotMapped.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (x) { return x.isAlive; }))); coreHeartbeatObservables.push(this.isConnectionAlive); coreHeartbeatObservables.push(this._auxiliarySignalRService.isConnectionAlive); coreHeartbeatObservables.push(this._dataPointSignalrService.isConnectionAlive); coreHeartbeatObservables.push(this._notificationSignalrService.isConnectionAlive); var extendedHeartbeatObservables = coreHeartbeatObservables.slice(); extendedHeartbeatObservables.push(this.areExternalServicesAlive); // Preparing "aggregator" subjects. this.isCoreFunctionalityAlive = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["combineLatest"])(coreHeartbeatObservables).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (combination) { return combination.every(function (x) { return x == true; }); })); this.isExtendedFunctionalityAlive = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["combineLatest"])(extendedHeartbeatObservables).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (combination) { return combination.every(function (x) { return x == true; }); })); this._initSignalrConnection(configuration, retryPolicy); } SignalRService.prototype._initSignalrConnection = function (configuration, retryPolicy) { var _this = this; this._hubConnection = new _microsoft_signalr__WEBPACK_IMPORTED_MODULE_7__["HubConnectionBuilder"]() .withUrl(configuration.serverWithApiUrl + "/heartbeatHub") .withAutomaticReconnect(retryPolicy) .build(); this._hubConnection.on("onHeartbeat", function (isAlive) { return _this._heartbeatHubClientSubject.next(isAlive); }); this._hubConnection.on("onPlcHeartbeat", function (plcState) { return _this._plcStateClientSubject.next(plcState); }); this._hubConnection.on("onExternalServicesHeartbeat", function (externalServiceStatus) { return _this._externalServicesStateClientSubject.next(externalServiceStatus); }); this._hubConnection.onclose(function () { return _this._startSignalrConnection(configuration, retryPolicy); }); this._startSignalrConnection(configuration, retryPolicy); }; SignalRService.prototype._startSignalrConnection = function (configuration, retryPolicy) { var _this = this; this._hubConnection .start() .catch(function (error) { console.log('SignalRService> Startup failed.\n ' + error); setTimeout(function () { return _this._startSignalrConnection(configuration, retryPolicy); }, 5000); }); }; SignalRService.prototype.mapAsBeatObservable = function (observable, interval, fullName, summaryFunction) { // Make sure we got at least one beat in every period return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["bufferTime"])(interval), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(summaryFunction), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (summary) { if (!summary.isAlive) { console.error("SignalRService> " + fullName + " fell down."); } })); }; SignalRService.prototype.boolSummary = function (beats) { var lastBeat = beats.pop(); var isAlive = lastBeat != null && lastBeat === true; return new _signalr_configuration__WEBPACK_IMPORTED_MODULE_5__["SubjectSummary"](isAlive, lastBeat); }; SignalRService.prototype.plcStateSummary = function (beats) { var lastBeat = beats.pop(); var isAlive = lastBeat != null && Object(_app_constants__WEBPACK_IMPORTED_MODULE_4__["isAliveHeartbeatStatus"])(lastBeat.plcStatus) && Object(_app_constants__WEBPACK_IMPORTED_MODULE_4__["isAliveHeartbeatStatus"])(lastBeat.plcCycleStatus); return new _signalr_configuration__WEBPACK_IMPORTED_MODULE_5__["SubjectSummary"](isAlive, lastBeat); }; SignalRService.prototype.externalServiceStateSummary = function (beats) { var lastBeat = beats.pop(); var status = true; if (lastBeat != null) { for (var _i = 0, _a = lastBeat.services; _i < _a.length; _i++) { var service = _a[_i]; if (!service.isAlive) { status = false; break; } } } return new _signalr_configuration__WEBPACK_IMPORTED_MODULE_5__["SubjectSummary"](status, lastBeat); }; SignalRService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [_signalr_configuration__WEBPACK_IMPORTED_MODULE_5__["SignalRConfiguration"], _config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"], _utils_SignalRRetryPolicy__WEBPACK_IMPORTED_MODULE_0__["SignalRRetryPolicy"], _auxiliary_service__WEBPACK_IMPORTED_MODULE_8__["AuxiliaryService"], _datapoint_service__WEBPACK_IMPORTED_MODULE_9__["DataPointService"], _notification_service__WEBPACK_IMPORTED_MODULE_10__["NotificationService"]]) ], SignalRService); return SignalRService; }()); /***/ }), /***/ "./src/app/services/statistics/statistics.service.ts": /*!***********************************************************!*\ !*** ./src/app/services/statistics/statistics.service.ts ***! \***********************************************************/ /*! exports provided: StatisticsService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticsService", function() { return StatisticsService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pipes/unit-system-numeric-convert.pipe */ "./src/app/pipes/unit-system-numeric-convert.pipe.ts"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_project__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! types/project */ "./src/types/project.ts"); /* harmony import */ var _components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var _time_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../time-utils.service */ "./src/app/services/time-utils.service.ts"); /* harmony import */ var _toast_sevice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../toast.sevice */ "./src/app/services/toast.sevice.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var StatisticsService = /** @class */ (function () { function StatisticsService(_httpClient, _toastService, _timeUtils, _unitSystemNumericConvertPipe) { this._httpClient = _httpClient; this._toastService = _toastService; this._timeUtils = _timeUtils; this._unitSystemNumericConvertPipe = _unitSystemNumericConvertPipe; this._urlCounterStatisticPoints = '/api/counterstatistics'; } StatisticsService_1 = StatisticsService; StatisticsService.ConvertStatisticsDataToCurrentUnitSystem = function (statisticData, unitSystemNumericConvert) { if (statisticData != null) { var series = statisticData.series; if (series != null) { for (var _i = 0, series_1 = series; _i < series_1.length; _i++) { var serie = series_1[_i]; var items = serie.items; if (items != null) { for (var _a = 0, items_1 = items; _a < items_1.length; _a++) { var item = items_1[_a]; if (item.value != null) { item.value = unitSystemNumericConvert.transform(item.value, serie.naturalKey); } } } } } } return statisticData; }; StatisticsService.prototype.handleStatisticRequestError = function (error) { if (error.error instanceof ErrorEvent) { this._toastService.showToastAsync(error.error.message.toString(), _toast_sevice__WEBPACK_IMPORTED_MODULE_8__["TimeSpan"].Long, _components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_6__["NotificationToastType"].Error); console.error('An error occurred:', error.error.message); } else { this._toastService.showToastAsync(error.error != null ? error.error.toString() : 'Unknown error', _toast_sevice__WEBPACK_IMPORTED_MODULE_8__["TimeSpan"].Long, _components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_6__["NotificationToastType"].Error); console.error("Backend returned code " + error.status + ", " + ("body was: " + error.error)); } return Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["throwError"])('Error on requesting statistics data'); }; StatisticsService.prototype.getChartData = function (granularity, chartType, startDate, endDate, locale, naturalKeys, pageIndex) { var _this = this; var request = { granularity: granularity, chartType: chartType, startDate: startDate, endDate: endDate, locale: locale, naturalKeys: naturalKeys, pageIndex: pageIndex, maxNumberOfPageItems: this.getNumberOfPageItems(granularity) }; return this._httpClient .post(this._urlCounterStatisticPoints, request) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])(function (x) { return StatisticsService_1.ConvertStatisticsDataToCurrentUnitSystem(x, _this._unitSystemNumericConvertPipe); }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(function (error) { return _this.handleStatisticRequestError(error); })); }; StatisticsService.prototype.getNumberOfPageItems = function (granularity) { // on a single page we will show this many items switch (Number(types_project__WEBPACK_IMPORTED_MODULE_5__["StatisticGranularity"][granularity])) { case types_project__WEBPACK_IMPORTED_MODULE_5__["StatisticGranularity"].Hour: return 12; case types_project__WEBPACK_IMPORTED_MODULE_5__["StatisticGranularity"].Day: return 7; case types_project__WEBPACK_IMPORTED_MODULE_5__["StatisticGranularity"].Week: return 12; case types_project__WEBPACK_IMPORTED_MODULE_5__["StatisticGranularity"].Month: return 12; case types_project__WEBPACK_IMPORTED_MODULE_5__["StatisticGranularity"].Year: return 12; default: return 12; } }; StatisticsService = StatisticsService_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"], _toast_sevice__WEBPACK_IMPORTED_MODULE_8__["ToastService"], _time_utils_service__WEBPACK_IMPORTED_MODULE_7__["TimeUtilsService"], app_pipes_unit_system_numeric_convert_pipe__WEBPACK_IMPORTED_MODULE_2__["UnitSystemNumericConvertPipe"]]) ], StatisticsService); return StatisticsService; var StatisticsService_1; }()); /***/ }), /***/ "./src/app/services/storage/local-storage.service.ts": /*!***********************************************************!*\ !*** ./src/app/services/storage/local-storage.service.ts ***! \***********************************************************/ /*! exports provided: LocalStorageService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocalStorageService", function() { return LocalStorageService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var LocalStorageService = /** @class */ (function () { function LocalStorageService() { } Object.defineProperty(LocalStorageService.prototype, "length", { get: function () { return localStorage.length; }, enumerable: true, configurable: true }); LocalStorageService.prototype.getItem = function (key) { return localStorage.getItem(key); }; LocalStorageService.prototype.getNumericItem = function (key) { return Number(this.getItem(key)); }; LocalStorageService.prototype.setItem = function (key, value) { localStorage.setItem(key, value); }; LocalStorageService.prototype.removeItem = function (key) { localStorage.removeItem(key); }; LocalStorageService.prototype.clear = function () { localStorage.clear(); }; LocalStorageService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])() ], LocalStorageService); return LocalStorageService; }()); /***/ }), /***/ "./src/app/services/storage/session-storage.service.ts": /*!*************************************************************!*\ !*** ./src/app/services/storage/session-storage.service.ts ***! \*************************************************************/ /*! exports provided: SessionStorageService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SessionStorageService", function() { return SessionStorageService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var SessionStorageService = /** @class */ (function () { function SessionStorageService() { } Object.defineProperty(SessionStorageService.prototype, "length", { get: function () { return sessionStorage.length; }, enumerable: true, configurable: true }); SessionStorageService.prototype.getItem = function (key) { return sessionStorage.getItem(key); }; SessionStorageService.prototype.setItem = function (key, value) { sessionStorage.setItem(key, value); }; SessionStorageService.prototype.removeItem = function (key) { sessionStorage.removeItem(key); }; SessionStorageService.prototype.clear = function () { sessionStorage.clear(); }; SessionStorageService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])() ], SessionStorageService); return SessionStorageService; }()); /***/ }), /***/ "./src/app/services/terminal-mapping.service.ts": /*!******************************************************!*\ !*** ./src/app/services/terminal-mapping.service.ts ***! \******************************************************/ /*! exports provided: TerminalMappingService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TerminalMappingService", function() { return TerminalMappingService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _auxiliary_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./auxiliary.service */ "./src/app/services/auxiliary.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TerminalMappingService = /** @class */ (function () { function TerminalMappingService(auxiliaryService) { this.auxiliaryService = auxiliaryService; this.currentLocationSubject = auxiliaryService.currentLocationSubject; this.currentCoordinateSubject = auxiliaryService.currentCoordinateSubject; this.sourceLocationSubject = auxiliaryService.sourceLocationSubject; this.targetLocationSubject = auxiliaryService.targetLocationSubject; } TerminalMappingService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [_auxiliary_service__WEBPACK_IMPORTED_MODULE_1__["AuxiliaryService"]]) ], TerminalMappingService); return TerminalMappingService; }()); /***/ }), /***/ "./src/app/services/time-utils.service.ts": /*!************************************************!*\ !*** ./src/app/services/time-utils.service.ts ***! \************************************************/ /*! exports provided: TimeUtilsService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeUtilsService", function() { return TimeUtilsService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TimeUtilsService = /** @class */ (function () { function TimeUtilsService(_http, _configService) { var _this = this; this._http = _http; this._configService = _configService; // the server is polled every 5 minutes this._timer = 1000 * 60 * 5; this._craneTimeOverride = undefined; this._clientLocalTimeOffsetInMilliseconds = 0; this._backendLocalTimeOffsetInMilliseconds = 0; this._backendToClientUtcTimeOffset = 0; /** * Converts a time string (12H format) to a time string (24H format) * @param time the time formated as 12H i.e. '01:23AM' (without space between minutes and AM/PM) */ this.transform12hTo24h = function (time) { if (!time) { return ''; } var hours = _this.matchHours(time); var minutes = _this.matchMinutes(time); var AMPM = _this.matchAMPM(time); if (AMPM == 'PM' && hours < 12) { hours = hours + 12; } if (AMPM == 'AM' && hours == 12) { hours = hours - 12; } var sHours = hours.toString(); var sMinutes = minutes.toString(); if (hours < 10) { sHours = '0' + sHours; } if (minutes < 10) { sMinutes = '0' + sMinutes; } return (sHours + ':' + sMinutes); }; /** * Converts a time string (24H format) to a time string (12H format) * @param time the time formated as 24H i.e. '23:45' or '01:23' */ this.transform24hTo12h = function (time) { if (!time) { return ''; } var hours = _this.matchHours(time); var minutes = _this.matchMinutes(time); var AMPM = (hours < 12) ? 'AM' : 'PM'; hours = (hours < 12) ? hours : hours - 12; var sMinutes = (minutes < 10) ? '0' + minutes : '' + minutes; var sHours = (hours < 10) ? '0' + hours : '' + hours; return (sHours + ':' + sMinutes + AMPM); }; this._periodicTimeSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["timer"])(0, this._timer) .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["mergeMap"])(function () { return _this.getServerTime(); }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (serverTimeUtc) { return console.log("TimeUtilsService> current server utc date time is: " + serverTimeUtc.now + ", Utc offset: " + serverTimeUtc.timeZoneOffsetInMilliseconds / 1000 / 60 / 60 + "h"); })).subscribe(function (serverTimeUtc) { _this._clientLocalTimeOffsetInMilliseconds = -(new Date().getTimezoneOffset() * 60 * 1000); _this._backendLocalTimeOffsetInMilliseconds = serverTimeUtc.timeZoneOffsetInMilliseconds; _this._backendToClientUtcTimeOffset = Date.now() - Object(moment__WEBPACK_IMPORTED_MODULE_3__["utc"])(serverTimeUtc.now).toDate().getTime(); }); } TimeUtilsService.prototype.toDateTime = function (time, date) { var splittime = time.split(':'); var hour = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["toNumber"])(splittime[0]); var min = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["toNumber"])(splittime[1]); var newDate = new Date(date.getTime() + (1000 * 60 * 60 * hour) + (1000 * 60 * min)); return newDate; }; TimeUtilsService.prototype.transformBackendUtcToEffectiveLocalTime = function (dateData) { var date = Object(moment__WEBPACK_IMPORTED_MODULE_3__["utc"])(dateData).toDate(); return this.convertToBackendTime(date.getTime(), 0); }; Object.defineProperty(TimeUtilsService.prototype, "utcDateTime", { get: function () { return Object(moment__WEBPACK_IMPORTED_MODULE_3__["utc"])(Date.now()).toDate(); }, enumerable: true, configurable: true }); TimeUtilsService.prototype.transformEffectiveLocalTimeToBackendUtc = function (date) { return new Date(date.getTime() - this._clientLocalTimeOffsetInMilliseconds); }; TimeUtilsService.prototype.transformToLocalBackendTime = function (dateData) { var date = Object(moment__WEBPACK_IMPORTED_MODULE_3__["utc"])(dateData).toDate(); return this.convertToBackendTime(date.getTime(), this._backendToClientUtcTimeOffset); }; TimeUtilsService.prototype.transformFromLocalBackendTimeToUtc = function (date) { var backendTimeInMilliseconds = date.getTime() + this._clientLocalTimeOffsetInMilliseconds - this._backendLocalTimeOffsetInMilliseconds + this._backendToClientUtcTimeOffset; return new Date(backendTimeInMilliseconds); }; TimeUtilsService.prototype.transformToUtcTime = function (date) { return Object(moment__WEBPACK_IMPORTED_MODULE_3__["utc"])(date).toDate(); }; Object.defineProperty(TimeUtilsService.prototype, "backendDateTime", { /** * This method returns backend time with now influence from other logic. */ get: function () { return this.convertToBackendTime(Date.now(), this._backendToClientUtcTimeOffset); }, enumerable: true, configurable: true }); Object.defineProperty(TimeUtilsService.prototype, "craneDateTime", { /** * This method returns either backend or replay time depending on the running configuration. */ get: function () { if (this._configService.craneConfig.mode === types_config__WEBPACK_IMPORTED_MODULE_7__["CraneMode"].Replay && this._craneTimeOverride != null) { return this._craneTimeOverride; } return this.backendDateTime; }, set: function (date) { this._craneTimeOverride = date; }, enumerable: true, configurable: true }); TimeUtilsService.prototype.convertToBackendTime = function (convertibleTimeInMilliseconds, correctionOffset) { if (correctionOffset === void 0) { correctionOffset = 0; } var backendTimeInMilliseconds = convertibleTimeInMilliseconds - this._clientLocalTimeOffsetInMilliseconds + this._backendLocalTimeOffsetInMilliseconds - correctionOffset; return new Date(backendTimeInMilliseconds); }; TimeUtilsService.prototype.getServerTime = function () { return this._http .get('/api/time') .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(function (_) { return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["empty"])(); })); }; TimeUtilsService.prototype.ngOnDestroy = function () { if (this._periodicTimeSubscription != null) { this._periodicTimeSubscription.unsubscribe(); } }; TimeUtilsService.prototype.matchAMPM = function (time) { var matchedValues = time.toUpperCase().match(/([AP]M)$/); if (!matchedValues) { throw new Error("time " + time + " has wrong format"); } return matchedValues[1]; }; TimeUtilsService.prototype.matchHours = function (time) { var matchedValues = time.match(/^(\d+)/); if (!matchedValues) { throw new Error("time " + time + " has wrong format"); } return +(matchedValues[1]); }; TimeUtilsService.prototype.matchMinutes = function (time) { var matchedValues = time.match(/:(\d+)/); if (!matchedValues) { throw new Error("time " + time + " has wrong format"); } return +(matchedValues[1]); }; TimeUtilsService.prototype.getMillisecondsSinceMidnight = function (time) { var hours = time != null ? Number(time.substring(0, 2)) : 0; var minutes = time != null ? Number(time.substring(3)) : 0; return (hours * 60 + minutes) * 60 * 1000; }; TimeUtilsService.prototype.guessIf12HTimeFormat = function (language) { var date = new Date(Date.UTC(2012, 11, 12, 3, 0, 0)); var dateString = date.toLocaleTimeString(language); return (dateString.match(/am|pm/i) != null || date.toString().match(/am|pm/i) != null); }; TimeUtilsService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"], _config_service__WEBPACK_IMPORTED_MODULE_6__["ConfigService"]]) ], TimeUtilsService); return TimeUtilsService; }()); /***/ }), /***/ "./src/app/services/toast.sevice.ts": /*!******************************************!*\ !*** ./src/app/services/toast.sevice.ts ***! \******************************************/ /*! exports provided: TimeSpan, ToastService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeSpan", function() { return TimeSpan; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToastService", function() { return ToastService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-toastr */ "./node_modules/ngx-toastr/fesm5/ngx-toastr.js"); /* harmony import */ var app_components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/components/toast/notification-toast.component */ "./src/app/components/toast/notification-toast.component.ts"); /* harmony import */ var app_app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pipes/smart-translate.pipe */ "./src/app/pipes/smart-translate.pipe.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __generator = (undefined && undefined.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [0, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; var TimeSpan; (function (TimeSpan) { TimeSpan[TimeSpan["Short"] = 1000] = "Short"; TimeSpan[TimeSpan["Default"] = 4000] = "Default"; TimeSpan[TimeSpan["Long"] = 5000] = "Long"; TimeSpan[TimeSpan["Longer"] = 7500] = "Longer"; })(TimeSpan || (TimeSpan = {})); var ToastService = /** @class */ (function () { function ToastService(_toastr, _locale, translationService) { this._toastr = _toastr; this._locale = _locale; this._translationPipe = new app_pipes_smart_translate_pipe__WEBPACK_IMPORTED_MODULE_5__["SmartTranslatePipe"](translationService); } ToastService.prototype.showToastAsync = function (message, duration, type) { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.showCustomToastAsync('', message, duration, type, false)]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; ToastService.prototype.showHtmlToastAsync = function (message, duration, type) { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, this.showCustomToastAsync('', message, duration, type, true)]; case 1: return [2 /*return*/, _a.sent()]; } }); }); }; // setting details for ngx-toastr : https://github.com/scttcper/ngx-toastr ToastService.prototype.showCustomToastAsync = function (title, message, duration, type, enableHtml, toastIdToBeClosed) { return __awaiter(this, void 0, void 0, function () { var _this = this; var localizedMessage, options, notificationToastOptions; return __generator(this, function (_a) { switch (_a.label) { case 0: localizedMessage = this.getTranslation(message); options = { enableHtml: enableHtml != null ? enableHtml : false, closeButton: true, tapToDismiss: true, timeOut: duration, toastClass: 'notyf confirm', positionClass: 'notyf-container', titleClass: 'notyf-title', messageClass: 'notyf-message', toastComponent: app_components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_2__["NotificationToastComponent"] }; notificationToastOptions = options; notificationToastOptions.notificationType = type || app_components_toast_notification_toast_component__WEBPACK_IMPORTED_MODULE_2__["NotificationToastType"].Default; if (toastIdToBeClosed != null) { this._toastr.clear(toastIdToBeClosed); } return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(function () { var toastTitle = Object(app_app_constants__WEBPACK_IMPORTED_MODULE_3__["isStringEmpty"])(title) ? undefined : title; resolve(_this._toastr.show(localizedMessage, toastTitle, options)); }); })]; case 1: // setTimeout is needed for correct event chaining in angular otherwise we get "dirty update" error. return [2 /*return*/, _a.sent()]; } }); }); }; ToastService.prototype.getTranslation = function (text) { var currentLanguage = this._locale.getCurrentLanguage(); return this._translationPipe.transform(text, currentLanguage); }; ToastService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({ providedIn: 'root', }), __metadata("design:paramtypes", [ngx_toastr__WEBPACK_IMPORTED_MODULE_1__["ToastrService"], angular_l10n__WEBPACK_IMPORTED_MODULE_4__["LocaleService"], angular_l10n__WEBPACK_IMPORTED_MODULE_4__["TranslationService"]]) ], ToastService); return ToastService; }()); /***/ }), /***/ "./src/app/services/unitconversion.service.ts": /*!****************************************************!*\ !*** ./src/app/services/unitconversion.service.ts ***! \****************************************************/ /*! exports provided: UnitConversionService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnitConversionService", function() { return UnitConversionService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var types_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! types/config */ "./src/types/config.ts"); /* harmony import */ var _user_data_user_data_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./user-data/user-data.service */ "./src/app/services/user-data/user-data.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; // tslint:disable:variable-name var qty = __webpack_require__(/*! js-quantities */ "./node_modules/js-quantities/build/quantities.js"); var UnitConversionService = /** @class */ (function () { function UnitConversionService(_userDataService, _http) { this._userDataService = _userDataService; this._http = _http; this._unitConfigurations = new Map(); this._initialized = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](false); this.initialized = this._initialized.asObservable(); this._unitSystemChangedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](types_config__WEBPACK_IMPORTED_MODULE_4__["UnitSystem"].Metric); this.unitSystemChanged = this._unitSystemChangedSubject.asObservable(); this.setUserUnitSystem(); } Object.defineProperty(UnitConversionService.prototype, "unitsUrl", { get: function () { return './api/unitconfig'; }, enumerable: true, configurable: true }); UnitConversionService.prototype.initialize = function () { var _this = this; // Called from APP_INITIALIZER return new Promise(function (resolve) { _this._http.get(_this.unitsUrl).subscribe(function (unitConfigs) { if (unitConfigs != null) { for (var _i = 0, unitConfigs_1 = unitConfigs; _i < unitConfigs_1.length; _i++) { var unitConfig = unitConfigs_1[_i]; if (unitConfig.key != null) { _this._unitConfigurations.set(unitConfig.key, unitConfig); } } } _this._initialized.next(true); console.log("UnitConversionService service initialized with " + _this._unitConfigurations.size + " unit-configurations"); resolve(); }); }); }; UnitConversionService.prototype.setUserUnitSystem = function () { var _this = this; this._userDataService.initialized .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (e) { return e === true; })) .subscribe(function () { var userUnitSystem = _this._userDataService.userData.userUnitSystem; if (typeof (userUnitSystem) === 'undefined') { _this.use(types_config__WEBPACK_IMPORTED_MODULE_4__["UnitSystem"].Metric); } else { _this.use(userUnitSystem); } }); }; UnitConversionService.prototype.use = function (unitsystem) { if (this.selectedUnitSystem !== unitsystem) { this.selectedUnitSystem = unitsystem; this._unitSystemChangedSubject.next(unitsystem); } console.log("the selected unit system is " + this.selectedUnitSystem); }; UnitConversionService.prototype.getUnitConfig = function (unitKey) { return this._unitConfigurations.get(unitKey); }; UnitConversionService.prototype.getFractionSize = function (unitKey) { var fractionSize = 0; if (this._unitConfigurations.size <= 0) { return fractionSize; } var unitConfig = this.getUnitConfig(unitKey); if (unitConfig != null) { fractionSize = this.selectedUnitSystem === types_config__WEBPACK_IMPORTED_MODULE_4__["UnitSystem"].Metric ? unitConfig.metricDecimalPlaces : unitConfig.imperialDecimalPlaces; if (fractionSize < 0) { return 0; } if (fractionSize > 9) { return 9; } } return fractionSize; }; UnitConversionService.prototype.getPrecision = function (unitKey) { var fractionSize = this.getFractionSize(unitKey); return '0.' + new Array(fractionSize).join('0') + '1'; }; UnitConversionService.prototype.convertValue = function (value, sourceUnit, targetUnit) { var converter; try { if (sourceUnit !== targetUnit) { converter = qty.swiftConverter(sourceUnit, targetUnit); } } catch (e) { var message = "Cannot create converter to convert from " + sourceUnit + " to " + targetUnit + ": " + e.message; console.error(message); throw new Error(message); } return qty(converter ? converter(value) : value).scalar; }; UnitConversionService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_user_data_user_data_service__WEBPACK_IMPORTED_MODULE_5__["UserDataService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]]) ], UnitConversionService); return UnitConversionService; }()); /***/ }), /***/ "./src/app/services/unitkey.service.ts": /*!*********************************************!*\ !*** ./src/app/services/unitkey.service.ts ***! \*********************************************/ /*! exports provided: UnitKeyService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnitKeyService", function() { return UnitKeyService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _types_keyed_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../types/keyed-collection */ "./src/types/keyed-collection.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UnitKeyService = /** @class */ (function () { function UnitKeyService(_http) { this._http = _http; this.keys = new _types_keyed_collection__WEBPACK_IMPORTED_MODULE_2__["KeyedCollection"](); } Object.defineProperty(UnitKeyService.prototype, "url", { get: function () { return './api/unitkey'; }, enumerable: true, configurable: true }); UnitKeyService.prototype.initialize = function () { var _this = this; // Called from APP_INITIALIZER return new Promise(function (resolve) { _this._http.get(_this.url) .subscribe(function (entries) { for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) { var entry = entries_1[_i]; _this.keys.AddOrUpdate(entry.naturalkey, entry.unitkey); } console.log("UnitKey service initialized with " + _this.keys.Values().length + " keys"); resolve(); }); }); }; UnitKeyService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]]) ], UnitKeyService); return UnitKeyService; }()); /***/ }), /***/ "./src/app/services/user-data/user-data.service.ts": /*!*********************************************************!*\ !*** ./src/app/services/user-data/user-data.service.ts ***! \*********************************************************/ /*! exports provided: UserDataService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserDataService", function() { return UserDataService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UserDataService = /** @class */ (function () { function UserDataService(_http) { this._http = _http; this.initializedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](false); this.initialized = this.initializedSubject.asObservable(); } Object.defineProperty(UserDataService.prototype, "userData", { get: function () { return this._userData; }, set: function (value) { this._userData = value; }, enumerable: true, configurable: true }); UserDataService.prototype.loadUserData = function () { var _this = this; return this._http .get('api/account/user-settings') .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (userData) { _this._userData = userData; _this.initializedSubject.next(true); })); }; UserDataService.prototype.setLanguage = function (lang) { this._userData.userLanguage = lang; this.updateUserData(this._userData).subscribe(function (successMsg) { console.log("Language updated to " + lang); }, function (error) { console.log("Failed to update language: " + error); }); }; UserDataService.prototype.setUnitSystem = function (unitSystem) { this._userData.userUnitSystem = unitSystem; this.updateUserData(this._userData).subscribe(function (successMsg) { console.log("UnitSystem updated to " + unitSystem); }, function (error) { console.log("Failed to update UnitSystem: " + error); }); }; UserDataService.prototype.updateUserData = function (data) { var headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]().set('content-type', 'application/json'); var messageBody = JSON.stringify(data); return this._http.post('api/account/user-settings', messageBody, { headers: headers, responseType: 'text' }); }; UserDataService.prototype.changePassword = function (passwordChangeDto) { var headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]().set('content-type', 'application/json'); return this._http.post("api/passwords", passwordChangeDto, { headers: headers }); }; UserDataService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]]) ], UserDataService); return UserDataService; }()); /***/ }), /***/ "./src/app/services/user-management.service.ts": /*!*****************************************************!*\ !*** ./src/app/services/user-management.service.ts ***! \*****************************************************/ /*! exports provided: UserManagementService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserManagementService", function() { return UserManagementService; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configuration */ "./src/app/configuration.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var UserManagementService = /** @class */ (function () { function UserManagementService(_http, _configuration, _authService) { this._http = _http; this._configuration = _configuration; this._authService = _authService; this._userEndpointSuffix = 'users'; this._rolesEndpointSuffix = 'roles/'; } UserManagementService.prototype.getUsers = function () { return this._http.get("" + this._configuration.serverWithApiUrl + this._userEndpointSuffix); }; UserManagementService.prototype.getUser = function (id) { return this._http.get("" + this._configuration.serverWithApiUrl + this._userEndpointSuffix + "/" + id); }; UserManagementService.prototype.createUser = function (user) { var headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]().set('content-type', 'application/json'); return this._http.post("" + this._configuration.serverWithApiUrl + this._userEndpointSuffix, user, { headers: headers }); }; UserManagementService.prototype.updateUser = function (user) { var headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]().set('content-type', 'application/json'); return this._http.put("" + this._configuration.serverWithApiUrl + this._userEndpointSuffix, user, { headers: headers }); }; UserManagementService.prototype.deleteUser = function (user) { return this._http.delete("" + this._configuration.serverWithApiUrl + this._userEndpointSuffix + "/" + user.id); }; UserManagementService.prototype.getManageableRoles = function () { var role = this._authService.getRole(); return this._http.get("" + this._configuration.serverWithApiUrl + this._rolesEndpointSuffix + role); }; UserManagementService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"], _configuration__WEBPACK_IMPORTED_MODULE_3__["Configuration"], app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"]]) ], UserManagementService); return UserManagementService; }()); /***/ }), /***/ "./src/app/services/view.service.ts": /*!******************************************!*\ !*** ./src/app/services/view.service.ts ***! \******************************************/ /*! exports provided: RESIZE_TRIGGER_TIMEOUT, DASHBOARD_ROUTE, FULLSCREEN_MODAL_OVERLAY, ViewService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RESIZE_TRIGGER_TIMEOUT", function() { return RESIZE_TRIGGER_TIMEOUT; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DASHBOARD_ROUTE", function() { return DASHBOARD_ROUTE; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FULLSCREEN_MODAL_OVERLAY", function() { return FULLSCREEN_MODAL_OVERLAY; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewService", function() { return ViewService; }); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../app.constants */ "./src/app/app.constants.ts"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js"); /* harmony import */ var _models_quickview_info_viewmodel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/quickview-info.viewmodel */ "./src/app/models/quickview-info.viewmodel.ts"); /* harmony import */ var _color_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./color.service */ "./src/app/services/color.service.ts"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var RESIZE_TRIGGER_TIMEOUT = 300; var DASHBOARD_ROUTE = "/" + _app_constants__WEBPACK_IMPORTED_MODULE_0__["HOME_PAGE_URL"]; var FULLSCREEN_MODAL_OVERLAY = 'total-overlay'; var ViewService = /** @class */ (function () { function ViewService(_router, _location, _colorService, _http) { this._router = _router; this._location = _location; this._colorService = _colorService; this._http = _http; this._showQuickviewTriggerSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); this.showQuickviewTrigger = this._showQuickviewTriggerSubject.asObservable(); this._isQuickviewPinnedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](false); this.isQuickviewPinned = this._isQuickviewPinnedSubject.asObservable(); this._isQuickviewOpenedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](false); this.isQuickviewOpened = this._isQuickviewOpenedSubject.asObservable(); this._progressIndicatorVisibilitySubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](false); this.progressIndicatorVisibility = this._progressIndicatorVisibilitySubject.asObservable(); this._quickviewTriggerElementSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](''); this.quickviewTriggerElement = this._quickviewTriggerElementSubject.asObservable(); this._toolbarTitleChangedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["ReplaySubject"](1); this.toolbarTitleChanged = this._toolbarTitleChangedSubject.asObservable(); this._isToolbarFullscreenSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](false); this.isToolbarFullscreen = this._isToolbarFullscreenSubject.asObservable(); this._fullscreenContentSubject = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"](); this.fullscreenContent = this._fullscreenContentSubject.asObservable(); this.attachRouteListeners(); } ViewService.prototype.initialize = function () { var _this = this; return new Promise(function (resolve) { _this.closeQuickview(); _this.removeModalOverlay(); resolve(); }); }; ViewService.prototype.setToolbarTitle = function (title) { this._toolbarTitleChangedSubject.next(title); }; ViewService.prototype.setFooterMargin = function (hasMargin) { if (hasMargin) { this.addClassToHTMLBody('footer-page'); } else { this.removeClassFromHTMLBody('footer-page'); } }; Object.defineProperty(ViewService.prototype, "quickviewOpened", { get: function () { return this._isQuickviewOpenedSubject.value; }, set: function (opened) { this._isQuickviewOpenedSubject.next(opened); if (opened) { this.addClassToHTMLBody('quickview-opened'); } else { this.removeClassFromHTMLBody('quickview-opened'); } }, enumerable: true, configurable: true }); Object.defineProperty(ViewService.prototype, "quickviewPinned", { get: function () { return this._isQuickviewPinnedSubject.value; }, set: function (pinned) { this._isQuickviewPinnedSubject.next(pinned); if (pinned) { this.addClassToHTMLBody('quickview-pinned'); } else { this.removeClassFromHTMLBody('quickview-pinned'); } setTimeout(function () { window.dispatchEvent(new Event('resize')); }, RESIZE_TRIGGER_TIMEOUT); }, enumerable: true, configurable: true }); Object.defineProperty(ViewService.prototype, "quickviewTriggerElementId", { set: function (elementId) { this._quickviewTriggerElementSubject.next(elementId); }, enumerable: true, configurable: true }); Object.defineProperty(ViewService.prototype, "activateFullModalOverlay", { set: function (value) { if (value) { this.addClassToHTMLBody(FULLSCREEN_MODAL_OVERLAY); } else { this.removeClassFromHTMLBody(FULLSCREEN_MODAL_OVERLAY); } }, enumerable: true, configurable: true }); ViewService.prototype.goBack = function () { this._location.back(); }; ViewService.prototype.showQuickview = function (title, datapointCollection, triggerElementId, viewTemplate, displayAsIs) { var quickViewInfo = new _models_quickview_info_viewmodel__WEBPACK_IMPORTED_MODULE_5__["QuickviewInfo"](); quickViewInfo.title = title; quickViewInfo.triggerElementId = triggerElementId; quickViewInfo.viewTemplate = viewTemplate; quickViewInfo.show = true; quickViewInfo.displayAsIs = displayAsIs; if (datapointCollection != null) { quickViewInfo.datapoints = datapointCollection; } this._showQuickviewTriggerSubject.next(quickViewInfo); this.quickviewOpened = true; }; ViewService.prototype.closeQuickview = function () { var qvInfo = new _models_quickview_info_viewmodel__WEBPACK_IMPORTED_MODULE_5__["QuickviewInfo"](); qvInfo.show = false; this._showQuickviewTriggerSubject.next(qvInfo); this.quickviewPinned = false; this.quickviewOpened = false; }; ViewService.prototype.openInFullscreen = function (config) { this._fullscreenContentSubject.next(config); }; ViewService.prototype.openPdfInNewTab = function (url) { return window.open(url, "_blank"); }; ViewService.prototype.showLoadingIndicator = function () { this._progressIndicatorVisibilitySubject.next(true); }; ViewService.prototype.hideLoadingIndicator = function () { this._progressIndicatorVisibilitySubject.next(false); }; ViewService.prototype.removeModalOverlay = function () { var overlayElements = document.getElementsByClassName('modal-overlay'); if (overlayElements) { for (var i = 0; i < overlayElements.length; i++) { var overlay = overlayElements[i]; var parentNode = overlay.parentNode; if (parentNode) { parentNode.removeChild(overlay); } } } }; ViewService.prototype.attachRouteListeners = function () { var _this = this; this._router.events.subscribe(function (val) { if (val instanceof _angular_router__WEBPACK_IMPORTED_MODULE_3__["NavigationStart"]) { _this.updateBackgroundColor(val.url); if (!_this.quickviewPinned) { _this.closeQuickview(); } } }); }; ViewService.prototype.updateBackgroundColor = function (currentUrl) { this._colorService.contentBackground = currentUrl !== DASHBOARD_ROUTE; }; ViewService.prototype.addClassToHTMLBody = function (className) { var body = document.querySelector('body'); if (body != null) { body.classList.add(className); } }; ViewService.prototype.removeClassFromHTMLBody = function (className) { var body = document.querySelector('body'); if (body != null) { body.classList.remove(className); } }; ViewService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])(), __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["Location"], _color_service__WEBPACK_IMPORTED_MODULE_6__["ColorService"], _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"]]) ], ViewService); return ViewService; }()); /***/ }), /***/ "./src/app/signalr-configuration.ts": /*!******************************************!*\ !*** ./src/app/signalr-configuration.ts ***! \******************************************/ /*! exports provided: SignalRConfiguration, SubjectSummary */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignalRConfiguration", function() { return SignalRConfiguration; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubjectSummary", function() { return SubjectSummary; }); /* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./services/config.service */ "./src/app/services/config.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SignalRConfiguration = /** @class */ (function () { function SignalRConfiguration(craneConfigService) { this._serverWithApiUrl = craneConfigService.craneConfig.plcAgentAddress; } Object.defineProperty(SignalRConfiguration.prototype, "serverWithApiUrl", { get: function () { return window.location.origin; }, enumerable: true, configurable: true }); SignalRConfiguration = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_services_config_service__WEBPACK_IMPORTED_MODULE_0__["ConfigService"]]) ], SignalRConfiguration); return SignalRConfiguration; }()); var SubjectSummary = /** @class */ (function () { function SubjectSummary(isAlive, lastBeat) { this.isAlive = isAlive; this.lastBeat = lastBeat; } return SubjectSummary; }()); /***/ }), /***/ "./src/app/utils/SignalRRetryPolicy.ts": /*!*********************************************!*\ !*** ./src/app/utils/SignalRRetryPolicy.ts ***! \*********************************************/ /*! exports provided: SignalRRetryPolicy */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignalRRetryPolicy", function() { return SignalRRetryPolicy; }); var SignalRRetryPolicy = /** @class */ (function () { function SignalRRetryPolicy() { } SignalRRetryPolicy.prototype.nextRetryDelayInMilliseconds = function (retryContext) { return 5000; }; return SignalRRetryPolicy; }()); /***/ }), /***/ "./src/app/utils/array.utils.ts": /*!**************************************!*\ !*** ./src/app/utils/array.utils.ts ***! \**************************************/ /*! exports provided: rangeFrom */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rangeFrom", function() { return rangeFrom; }); function rangeFrom(count, startValue) { if (startValue === void 0) { startValue = 1; } return Array.from(new Array(count), function (val, index) { return (index + startValue).toString(); }); } /***/ }), /***/ "./src/app/utils/floor-util.ts": /*!*************************************!*\ !*** ./src/app/utils/floor-util.ts ***! \*************************************/ /*! exports provided: FloorUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloorUtils", function() { return FloorUtils; }); /* harmony import */ var _app_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../app.constants */ "./src/app/app.constants.ts"); var FloorUtils; (function (FloorUtils) { function calcFloorNumber(liftHeight, maxFloorNumber, minPosition) { if (minPosition === void 0) { minPosition = 0; } return Math.min(maxFloorNumber, Math.max(0, Math.floor(((liftHeight + Math.abs(minPosition) - _app_constants__WEBPACK_IMPORTED_MODULE_0__["Const"].HeightTolerance) / _app_constants__WEBPACK_IMPORTED_MODULE_0__["Const"].HighCubeContainerHeight) - 1))); } FloorUtils.calcFloorNumber = calcFloorNumber; })(FloorUtils || (FloorUtils = {})); /***/ }), /***/ "./src/app/utils/general-http-error-handler.ts": /*!*****************************************************!*\ !*** ./src/app/utils/general-http-error-handler.ts ***! \*****************************************************/ /*! exports provided: GeneralErrorHandlerService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeneralErrorHandlerService", function() { return GeneralErrorHandlerService; }); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GeneralErrorHandlerService = /** @class */ (function () { function GeneralErrorHandlerService(injector) { this._translation = injector.get(angular_l10n__WEBPACK_IMPORTED_MODULE_0__["TranslationService"]); } GeneralErrorHandlerService_1 = GeneralErrorHandlerService; GeneralErrorHandlerService.prototype.getDefaultGeneralErrorHandlerFunction = function () { return this.getGeneralErrorHandlerFunction(function (errorMessage) { return alert(errorMessage); }); }; GeneralErrorHandlerService.prototype.getGeneralErrorHandlerFunction = function (callback) { var _this = this; return function (error) { var errorMessage = error; if (!!error.status) { switch (error.status) { case 400: case 409: case 500: errorMessage = errorMessage + " " + error._body; break; case 401: errorMessage = _this._translation.translate(GeneralErrorHandlerService_1.insufficientRightsMessageKey); default: break; } } callback(errorMessage); }; }; GeneralErrorHandlerService.insufficientRightsMessageKey = 'InsufficientRights'; GeneralErrorHandlerService = GeneralErrorHandlerService_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]]) ], GeneralErrorHandlerService); return GeneralErrorHandlerService; var GeneralErrorHandlerService_1; }()); /***/ }), /***/ "./src/app/utils/http-client.interceptor.ts": /*!**************************************************!*\ !*** ./src/app/utils/http-client.interceptor.ts ***! \**************************************************/ /*! exports provided: HttpClientInterceptor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpClientInterceptor", function() { return HttpClientInterceptor; }); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_view_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../services/view.service */ "./src/app/services/view.service.ts"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var HttpClientInterceptor = /** @class */ (function () { function HttpClientInterceptor(_viewService, _authService) { this._viewService = _viewService; this._authService = _authService; this._statusCodeUnauthorized = 401; } HttpClientInterceptor.prototype.intercept = function (req, next) { var _this = this; // start our loader here this._viewService.showLoadingIndicator(); if (this._authService.isLoggedIn) { req = req.clone({ headers: req.headers.set('Authorization', "Bearer " + this._authService.tokenString) }); } return next.handle(req).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["tap"])(function (event) { // if the event is for http response if (event instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpResponse"]) { _this._viewService.hideLoadingIndicator(); } }, function (errorResponse) { // if any error (not for just HttpResponse) we stop our loader bar _this._viewService.hideLoadingIndicator(); // logout the current user if any request is answered with an 401 - unauthorized response if (_this._authService.isLoggedIn && errorResponse.status === _this._statusCodeUnauthorized) { _this._authService.logout(); } })); }; HttpClientInterceptor = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_services_view_service__WEBPACK_IMPORTED_MODULE_4__["ViewService"], _services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"]]) ], HttpClientInterceptor); return HttpClientInterceptor; }()); /***/ }), /***/ "./src/app/utils/http.factory.ts": /*!***************************************!*\ !*** ./src/app/utils/http.factory.ts ***! \***************************************/ /*! exports provided: httpFactory */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "httpFactory", function() { return httpFactory; }); /* harmony import */ var _http_interceptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.interceptor */ "./src/app/utils/http.interceptor.ts"); function httpFactory(xhrBackend, requestOptions, generalErrorHandlerService, localeService, authService) { return new _http_interceptor__WEBPACK_IMPORTED_MODULE_0__["InterceptedHttp"](xhrBackend, requestOptions, generalErrorHandlerService, localeService, authService); } /***/ }), /***/ "./src/app/utils/http.interceptor.ts": /*!*******************************************!*\ !*** ./src/app/utils/http.interceptor.ts ***! \*******************************************/ /*! exports provided: InterceptedHttp */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InterceptedHttp", function() { return InterceptedHttp; }); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/http */ "./node_modules/@angular/http/fesm5/http.js"); /* harmony import */ var angular_l10n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! angular-l10n */ "./node_modules/angular-l10n/fesm5/angular-l10n.js"); /* harmony import */ var app_utils_general_http_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/utils/general-http-error-handler */ "./src/app/utils/general-http-error-handler.ts"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var getWrappedSubscribeFunction = function (generalErrorHandlerFunc) { return function (fn) { return function () { if (typeof arguments[0] === 'function') { // attach general error handling function only // if the subscriber didn't specify its own if (arguments.length == 1) { // no error handler defined [].push.call(arguments, generalErrorHandlerFunc); } } else { // search last subscriber in subscribers chain var previousSubscriber = null; var currentSubscriber = arguments[0]; while (!!currentSubscriber.destination) { previousSubscriber = currentSubscriber; currentSubscriber = currentSubscriber.destination; } // attach general error handling function only // if the subscriber didn't specify its own if (!!previousSubscriber && !previousSubscriber._error) { // no error handler defined previousSubscriber._error = generalErrorHandlerFunc; } } fn.apply(this, arguments); }; }; }; var InterceptedHttp = /** @class */ (function (_super) { __extends(InterceptedHttp, _super); function InterceptedHttp(backend, defaultOptions, _generalErrorHandlerService, _localeService, _authService) { var _this = _super.call(this, backend, defaultOptions) || this; _this._generalErrorHandlerService = _generalErrorHandlerService; _this._localeService = _localeService; _this._authService = _authService; return _this; } InterceptedHttp.prototype.request = function (url, options) { if (typeof url != 'string') { this.setCorrectAcceptLanguageHeader(url.headers); this.setAuthorizationHeader(url.headers); } else { if (!options) { options = new _angular_http__WEBPACK_IMPORTED_MODULE_2__["RequestOptions"](); } if (!options.headers) { options.headers = new _angular_http__WEBPACK_IMPORTED_MODULE_2__["Headers"](); } this.setCorrectAcceptLanguageHeader(options.headers); this.setAuthorizationHeader(options.headers); } var observable = _super.prototype.request.call(this, url, options); this.attachDefaultErrorHandlerIfNecessary(observable); return observable; }; // get(url: string, options?: RequestOptionsArgs): Observable { // url = this.updateUrl(url); // return super.get(url, this.getRequestOptionArgs(options)); // } // post(url: string, body: string, options?: RequestOptionsArgs): Observable { // url = this.updateUrl(url); // return super.post(url, body, this.getRequestOptionArgs(options)); // } // put(url: string, body: string, options?: RequestOptionsArgs): Observable { // url = this.updateUrl(url); // return super.put(url, body, this.getRequestOptionArgs(options)); // } // delete(url: string, options?: RequestOptionsArgs): Observable { // url = this.updateUrl(url); // return super.delete(url, this.getRequestOptionArgs(options)); // } // private updateUrl(req: string) { // return environment.origin + req; // } InterceptedHttp.prototype.setCorrectAcceptLanguageHeader = function (headers) { headers.append('Accept-Language', this._localeService.getCurrentLanguage()); }; InterceptedHttp.prototype.attachDefaultErrorHandlerIfNecessary = function (observable) { var wrappedSubscriptionFunction = getWrappedSubscribeFunction(this._generalErrorHandlerService.getDefaultGeneralErrorHandlerFunction()); observable.subscribe = wrappedSubscriptionFunction(observable.subscribe); }; InterceptedHttp.prototype.setAuthorizationHeader = function (headers) { if (!this._authService.isLoggedIn) { return; } var auth = 'Authorization'; if (headers.has(auth)) { headers.delete(auth); } var token = "Bearer " + this._authService.tokenString; headers.append(auth, token); }; InterceptedHttp.prototype.getRequestOptionArgs = function (options) { if (options == null) { options = new _angular_http__WEBPACK_IMPORTED_MODULE_2__["RequestOptions"](); } if (options.headers == null) { options.headers = new _angular_http__WEBPACK_IMPORTED_MODULE_2__["Headers"](); } options.headers.append('Content-Type', 'application/json'); return options; }; InterceptedHttp = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])(), __metadata("design:paramtypes", [_angular_http__WEBPACK_IMPORTED_MODULE_2__["ConnectionBackend"], _angular_http__WEBPACK_IMPORTED_MODULE_2__["RequestOptions"], app_utils_general_http_error_handler__WEBPACK_IMPORTED_MODULE_4__["GeneralErrorHandlerService"], angular_l10n__WEBPACK_IMPORTED_MODULE_3__["LocaleService"], _services_auth_service__WEBPACK_IMPORTED_MODULE_0__["AuthService"]]) ], InterceptedHttp); return InterceptedHttp; }(_angular_http__WEBPACK_IMPORTED_MODULE_2__["Http"])); /***/ }), /***/ "./src/app/utils/math.utils.ts": /*!*************************************!*\ !*** ./src/app/utils/math.utils.ts ***! \*************************************/ /*! exports provided: MathUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MathUtils", function() { return MathUtils; }); var MathUtils = /** @class */ (function () { function MathUtils() { } MathUtils.polarToCartesian = function (centerX, centerY, radius, angleRadians, rotationAngleRadiants) { if (rotationAngleRadiants === void 0) { rotationAngleRadiants = 0; } return { x: centerX + (radius * Math.cos(angleRadians)), y: centerY + (radius * Math.sin(angleRadians)), rotation: MathUtils.radianToDegree(rotationAngleRadiants) - 90 }; }; MathUtils.degreeToRadian = function (degree) { return degree * Math.PI / 180; }; MathUtils.radianToDegree = function (radian) { return radian * 180 / Math.PI; }; return MathUtils; }()); /***/ }), /***/ "./src/app/utils/svg.utils.ts": /*!************************************!*\ !*** ./src/app/utils/svg.utils.ts ***! \************************************/ /*! exports provided: SvgUtils */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgUtils", function() { return SvgUtils; }); /* harmony import */ var _math_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.utils */ "./src/app/utils/math.utils.ts"); var SvgUtils = /** @class */ (function () { function SvgUtils() { } SvgUtils.describeArc = function (centerX, centerY, radius, startAngleRadians, endAngleRadians) { var start = _math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].polarToCartesian(centerX, centerY, radius, endAngleRadians); var end = _math_utils__WEBPACK_IMPORTED_MODULE_0__["MathUtils"].polarToCartesian(centerX, centerY, radius, startAngleRadians); var largeArcFlag = endAngleRadians - startAngleRadians <= Math.PI ? '0' : '1'; var d = [ 'M', start.x, start.y, 'A', radius, radius, 0, largeArcFlag, 0, end.x, end.y ].join(' '); return d; }; return SvgUtils; }()); /***/ }), /***/ "./src/environments/environment.ts": /*!*****************************************!*\ !*** ./src/environments/environment.ts ***! \*****************************************/ /*! exports provided: environment */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; }); // The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angular-cli.json`. var environment = { production: false, monitoring: { enabled: false } }; /***/ }), /***/ "./src/main.ts": /*!*********************!*\ !*** ./src/main.ts ***! \*********************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @swimlane/ngx-datatable */ "./node_modules/@swimlane/ngx-datatable/release/index.js"); /* harmony import */ var _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts"); /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts"); if (_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].production) { Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])(); } _swimlane_ngx_datatable__WEBPACK_IMPORTED_MODULE_2__["DataTableBodyComponent"].prototype.getRowExpanded = function (row) { var expandAll = this.groupExpansionDefault; if (expandAll) { this.rowExpansions.set(row, 1); this.recalcLayout(); return true; } return this.rowExpansions.get(row) === 1; }; Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_3__["AppModule"]); /***/ }), /***/ "./src/types/config.ts": /*!*****************************!*\ !*** ./src/types/config.ts ***! \*****************************/ /*! exports provided: CraneType, HoistType, DatapointViewTemplate, ScreenPosition, DashboardItemType, NavigationItemType, PageType, TabContentType, TabType, OperatorControlType, DisplayValue, ValueContainerType, SvgShapeType, ModelStates, StateIndication, ExternalServiceStatusSnapshot, CraneMode, PlcHeartbeatStatus, PlcHeartbeatCycleStatus, LoginLocation, LoginStrategyType, NotificationType, CounterType, MaintenanceType, TimeUnit, IServiceHealthState, UnitSystem, DataType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CraneType", function() { return CraneType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoistType", function() { return HoistType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatapointViewTemplate", function() { return DatapointViewTemplate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScreenPosition", function() { return ScreenPosition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardItemType", function() { return DashboardItemType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationItemType", function() { return NavigationItemType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageType", function() { return PageType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabContentType", function() { return TabContentType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabType", function() { return TabType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperatorControlType", function() { return OperatorControlType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisplayValue", function() { return DisplayValue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueContainerType", function() { return ValueContainerType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgShapeType", function() { return SvgShapeType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModelStates", function() { return ModelStates; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StateIndication", function() { return StateIndication; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExternalServiceStatusSnapshot", function() { return ExternalServiceStatusSnapshot; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CraneMode", function() { return CraneMode; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlcHeartbeatStatus", function() { return PlcHeartbeatStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlcHeartbeatCycleStatus", function() { return PlcHeartbeatCycleStatus; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginLocation", function() { return LoginLocation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginStrategyType", function() { return LoginStrategyType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationType", function() { return NotificationType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CounterType", function() { return CounterType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaintenanceType", function() { return MaintenanceType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeUnit", function() { return TimeUnit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IServiceHealthState", function() { return IServiceHealthState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnitSystem", function() { return UnitSystem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataType", function() { return DataType; }); // This code was generated by a Reinforced.Typings tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. var CraneType; (function (CraneType) { CraneType[CraneType["RTG"] = 0] = "RTG"; CraneType[CraneType["CTK"] = 1] = "CTK"; CraneType[CraneType["KC"] = 2] = "KC"; })(CraneType || (CraneType = {})); var HoistType; (function (HoistType) { HoistType[HoistType["Ctk"] = 0] = "Ctk"; HoistType[HoistType["Spider"] = 1] = "Spider"; HoistType[HoistType["M2W4"] = 2] = "M2W4"; })(HoistType || (HoistType = {})); var DatapointViewTemplate; (function (DatapointViewTemplate) { DatapointViewTemplate[DatapointViewTemplate["Default"] = 0] = "Default"; DatapointViewTemplate[DatapointViewTemplate["TextOnly"] = 1] = "TextOnly"; })(DatapointViewTemplate || (DatapointViewTemplate = {})); var ScreenPosition; (function (ScreenPosition) { ScreenPosition[ScreenPosition["Top"] = 0] = "Top"; ScreenPosition[ScreenPosition["Right"] = 1] = "Right"; ScreenPosition[ScreenPosition["Bottom"] = 2] = "Bottom"; ScreenPosition[ScreenPosition["Left"] = 3] = "Left"; })(ScreenPosition || (ScreenPosition = {})); var DashboardItemType; (function (DashboardItemType) { DashboardItemType[DashboardItemType["SpreaderCard"] = 0] = "SpreaderCard"; DashboardItemType[DashboardItemType["TrolleyCard"] = 1] = "TrolleyCard"; DashboardItemType[DashboardItemType["RailGantryCard"] = 2] = "RailGantryCard"; DashboardItemType[DashboardItemType["RubberTireGantryCard"] = 3] = "RubberTireGantryCard"; DashboardItemType[DashboardItemType["HoistCard"] = 4] = "HoistCard"; DashboardItemType[DashboardItemType["SlewingGearCard"] = 5] = "SlewingGearCard"; DashboardItemType[DashboardItemType["TraverseCard"] = 6] = "TraverseCard"; DashboardItemType[DashboardItemType["ConfigurableHoistCard"] = 7] = "ConfigurableHoistCard"; DashboardItemType[DashboardItemType["ConfigurableSvgCard"] = 8] = "ConfigurableSvgCard"; DashboardItemType[DashboardItemType["ChargerTrolleyCard"] = 9] = "ChargerTrolleyCard"; DashboardItemType[DashboardItemType["ConfigurableGrappleCard"] = 10] = "ConfigurableGrappleCard"; })(DashboardItemType || (DashboardItemType = {})); var NavigationItemType; (function (NavigationItemType) { NavigationItemType[NavigationItemType["Separator"] = 0] = "Separator"; NavigationItemType[NavigationItemType["Link"] = 1] = "Link"; })(NavigationItemType || (NavigationItemType = {})); var PageType; (function (PageType) { PageType[PageType["Dynamic"] = 0] = "Dynamic"; PageType[PageType["Hoist"] = 1] = "Hoist"; PageType[PageType["Spreader"] = 2] = "Spreader"; })(PageType || (PageType = {})); var TabContentType; (function (TabContentType) { TabContentType[TabContentType["HTML"] = 0] = "HTML"; TabContentType[TabContentType["SVG"] = 1] = "SVG"; })(TabContentType || (TabContentType = {})); var TabType; (function (TabType) { TabType[TabType["Dynamic"] = 0] = "Dynamic"; TabType[TabType["MechanicalSchema"] = 1] = "MechanicalSchema"; TabType[TabType["ElectricalSchema"] = 2] = "ElectricalSchema"; TabType[TabType["Diagnostics"] = 3] = "Diagnostics"; })(TabType || (TabType = {})); var OperatorControlType; (function (OperatorControlType) { OperatorControlType[OperatorControlType["None"] = 0] = "None"; OperatorControlType[OperatorControlType["TipButton"] = 1] = "TipButton"; OperatorControlType[OperatorControlType["ToggleButton"] = 2] = "ToggleButton"; OperatorControlType[OperatorControlType["Offset"] = 3] = "Offset"; OperatorControlType[OperatorControlType["TimeRange"] = 4] = "TimeRange"; OperatorControlType[OperatorControlType["RadioGroup"] = 5] = "RadioGroup"; OperatorControlType[OperatorControlType["RadioGroupMulti"] = 6] = "RadioGroupMulti"; OperatorControlType[OperatorControlType["DatapointCollection"] = 7] = "DatapointCollection"; OperatorControlType[OperatorControlType["Chart"] = 8] = "Chart"; OperatorControlType[OperatorControlType["Label"] = 9] = "Label"; OperatorControlType[OperatorControlType["Image"] = 10] = "Image"; OperatorControlType[OperatorControlType["Shape"] = 11] = "Shape"; OperatorControlType[OperatorControlType["Line"] = 12] = "Line"; OperatorControlType[OperatorControlType["LabelSVG"] = 13] = "LabelSVG"; OperatorControlType[OperatorControlType["ValueContainer"] = 14] = "ValueContainer"; OperatorControlType[OperatorControlType["DisplayModeButton"] = 15] = "DisplayModeButton"; OperatorControlType[OperatorControlType["SpeedLimitation"] = 16] = "SpeedLimitation"; OperatorControlType[OperatorControlType["GearBox"] = 17] = "GearBox"; OperatorControlType[OperatorControlType["WireDrum"] = 18] = "WireDrum"; OperatorControlType[OperatorControlType["Motor"] = 19] = "Motor"; OperatorControlType[OperatorControlType["Brake"] = 20] = "Brake"; OperatorControlType[OperatorControlType["FrequencyConverter"] = 21] = "FrequencyConverter"; OperatorControlType[OperatorControlType["ControlUnit"] = 22] = "ControlUnit"; OperatorControlType[OperatorControlType["DCBus"] = 23] = "DCBus"; OperatorControlType[OperatorControlType["Position"] = 24] = "Position"; OperatorControlType[OperatorControlType["StateTextValueContainer"] = 26] = "StateTextValueContainer"; OperatorControlType[OperatorControlType["PositionIndicator"] = 27] = "PositionIndicator"; OperatorControlType[OperatorControlType["LevelIndicator"] = 28] = "LevelIndicator"; OperatorControlType[OperatorControlType["ProgressBar"] = 29] = "ProgressBar"; })(OperatorControlType || (OperatorControlType = {})); var DisplayValue; (function (DisplayValue) { DisplayValue[DisplayValue["None"] = 0] = "None"; DisplayValue[DisplayValue["GearTemp"] = 1] = "GearTemp"; DisplayValue[DisplayValue["MotTemp"] = 2] = "MotTemp"; DisplayValue[DisplayValue["Position"] = 3] = "Position"; DisplayValue[DisplayValue["OutputVoltage"] = 4] = "OutputVoltage"; DisplayValue[DisplayValue["ActCurrent"] = 5] = "ActCurrent"; DisplayValue[DisplayValue["OutputFrequency"] = 6] = "OutputFrequency"; DisplayValue[DisplayValue["ActTorque"] = 7] = "ActTorque"; DisplayValue[DisplayValue["ActSpeed"] = 8] = "ActSpeed"; DisplayValue[DisplayValue["Load"] = 9] = "Load"; DisplayValue[DisplayValue["Velocity"] = 10] = "Velocity"; DisplayValue[DisplayValue["Static"] = 9999] = "Static"; })(DisplayValue || (DisplayValue = {})); var ValueContainerType; (function (ValueContainerType) { ValueContainerType[ValueContainerType["Simple"] = 0] = "Simple"; ValueContainerType[ValueContainerType["Switching"] = 1] = "Switching"; })(ValueContainerType || (ValueContainerType = {})); var SvgShapeType; (function (SvgShapeType) { SvgShapeType[SvgShapeType["None"] = 0] = "None"; SvgShapeType[SvgShapeType["Complex"] = 1] = "Complex"; SvgShapeType[SvgShapeType["Circle"] = 2] = "Circle"; SvgShapeType[SvgShapeType["Rectangle"] = 3] = "Rectangle"; SvgShapeType[SvgShapeType["Diamond"] = 4] = "Diamond"; })(SvgShapeType || (SvgShapeType = {})); var ModelStates; (function (ModelStates) { ModelStates[ModelStates["Initializing"] = 0] = "Initializing"; ModelStates[ModelStates["Initialized"] = 1] = "Initialized"; ModelStates[ModelStates["InitializationFailed"] = 2] = "InitializationFailed"; })(ModelStates || (ModelStates = {})); var StateIndication; (function (StateIndication) { StateIndication[StateIndication["Ok"] = 0] = "Ok"; StateIndication[StateIndication["Warning"] = 1] = "Warning"; StateIndication[StateIndication["Error"] = 2] = "Error"; StateIndication[StateIndication["Speedlimit"] = 3] = "Speedlimit"; StateIndication[StateIndication["Interlock"] = 4] = "Interlock"; StateIndication[StateIndication["SpeedLimitPositive"] = 5] = "SpeedLimitPositive"; StateIndication[StateIndication["SpeedLimitNegative"] = 6] = "SpeedLimitNegative"; StateIndication[StateIndication["InterlockPositive"] = 7] = "InterlockPositive"; StateIndication[StateIndication["InterlockNegative"] = 8] = "InterlockNegative"; StateIndication[StateIndication["MovingForwards"] = 9] = "MovingForwards"; StateIndication[StateIndication["MovingBackwards"] = 10] = "MovingBackwards"; StateIndication[StateIndication["WindLocksActivated"] = 11] = "WindLocksActivated"; StateIndication[StateIndication["AllTwistlocksLocked"] = 12] = "AllTwistlocksLocked"; StateIndication[StateIndication["AllTwistlocksSeatedAndLocked"] = 13] = "AllTwistlocksSeatedAndLocked"; StateIndication[StateIndication["AllTwistlocksUnlocked"] = 14] = "AllTwistlocksUnlocked"; StateIndication[StateIndication["AllTwistlocksSeatedAndUnlocked"] = 15] = "AllTwistlocksSeatedAndUnlocked"; StateIndication[StateIndication["AllTwistlocksSeated"] = 16] = "AllTwistlocksSeated"; StateIndication[StateIndication["Idle"] = -1] = "Idle"; })(StateIndication || (StateIndication = {})); var ExternalServiceStatusSnapshot = /** @class */ (function () { function ExternalServiceStatusSnapshot() { } return ExternalServiceStatusSnapshot; }()); var CraneMode; (function (CraneMode) { CraneMode[CraneMode["Normal"] = 0] = "Normal"; CraneMode[CraneMode["Replay"] = 1] = "Replay"; CraneMode[CraneMode["Testing"] = 2] = "Testing"; CraneMode[CraneMode["Staging"] = 3] = "Staging"; })(CraneMode || (CraneMode = {})); var PlcHeartbeatStatus; (function (PlcHeartbeatStatus) { PlcHeartbeatStatus[PlcHeartbeatStatus["CONNECTION_OK"] = 0] = "CONNECTION_OK"; PlcHeartbeatStatus[PlcHeartbeatStatus["CONNECTION_LOST"] = 1] = "CONNECTION_LOST"; })(PlcHeartbeatStatus || (PlcHeartbeatStatus = {})); var PlcHeartbeatCycleStatus; (function (PlcHeartbeatCycleStatus) { PlcHeartbeatCycleStatus[PlcHeartbeatCycleStatus["COPY_CYCLE_OK"] = 0] = "COPY_CYCLE_OK"; PlcHeartbeatCycleStatus[PlcHeartbeatCycleStatus["COPY_CYCLE_ERROR"] = 1] = "COPY_CYCLE_ERROR"; PlcHeartbeatCycleStatus[PlcHeartbeatCycleStatus["COPY_CYCLE_SLOW"] = 2] = "COPY_CYCLE_SLOW"; })(PlcHeartbeatCycleStatus || (PlcHeartbeatCycleStatus = {})); var LoginLocation; (function (LoginLocation) { LoginLocation[LoginLocation["Unknown"] = 0] = "Unknown"; LoginLocation[LoginLocation["Ros"] = 1] = "Ros"; LoginLocation[LoginLocation["Cabin"] = 2] = "Cabin"; })(LoginLocation || (LoginLocation = {})); var LoginStrategyType; (function (LoginStrategyType) { LoginStrategyType[LoginStrategyType["Userlogin"] = 0] = "Userlogin"; LoginStrategyType[LoginStrategyType["ActiveDirectory"] = 1] = "ActiveDirectory"; })(LoginStrategyType || (LoginStrategyType = {})); var NotificationType; (function (NotificationType) { NotificationType[NotificationType["Info"] = 0] = "Info"; NotificationType[NotificationType["Warning"] = 1] = "Warning"; NotificationType[NotificationType["Error"] = 2] = "Error"; })(NotificationType || (NotificationType = {})); var CounterType; (function (CounterType) { CounterType[CounterType["OperatingHour"] = 0] = "OperatingHour"; CounterType[CounterType["Count"] = 1] = "Count"; CounterType[CounterType["Energy"] = 2] = "Energy"; CounterType[CounterType["Unknown"] = -1] = "Unknown"; })(CounterType || (CounterType = {})); var MaintenanceType; (function (MaintenanceType) { MaintenanceType[MaintenanceType["Regular"] = 0] = "Regular"; MaintenanceType[MaintenanceType["SecurityRelevant"] = 1] = "SecurityRelevant"; MaintenanceType[MaintenanceType["OneTime"] = 2] = "OneTime"; })(MaintenanceType || (MaintenanceType = {})); var TimeUnit; (function (TimeUnit) { TimeUnit[TimeUnit["Month"] = 0] = "Month"; TimeUnit[TimeUnit["Day"] = 1] = "Day"; TimeUnit[TimeUnit["Week"] = 2] = "Week"; })(TimeUnit || (TimeUnit = {})); var IServiceHealthState = /** @class */ (function () { function IServiceHealthState() { } return IServiceHealthState; }()); var UnitSystem; (function (UnitSystem) { UnitSystem[UnitSystem["Metric"] = 0] = "Metric"; UnitSystem[UnitSystem["Imperial"] = 1] = "Imperial"; UnitSystem[UnitSystem["Si"] = 2] = "Si"; })(UnitSystem || (UnitSystem = {})); var DataType; (function (DataType) { DataType[DataType["Short"] = 0] = "Short"; DataType[DataType["UShort"] = 1] = "UShort"; DataType[DataType["Int"] = 2] = "Int"; DataType[DataType["UInt"] = 3] = "UInt"; DataType[DataType["Float"] = 4] = "Float"; DataType[DataType["Byte"] = 5] = "Byte"; DataType[DataType["String"] = 6] = "String"; DataType[DataType["Bool"] = 2147483647] = "Bool"; })(DataType || (DataType = {})); /***/ }), /***/ "./src/types/keyed-collection.ts": /*!***************************************!*\ !*** ./src/types/keyed-collection.ts ***! \***************************************/ /*! exports provided: KeyedCollection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyedCollection", function() { return KeyedCollection; }); var KeyedCollection = /** @class */ (function () { function KeyedCollection() { this._map = new Map(); } KeyedCollection.prototype.ContainsKey = function (key) { return this._map.has(key); }; Object.defineProperty(KeyedCollection.prototype, "count", { get: function () { return this._map.size; }, enumerable: true, configurable: true }); Object.defineProperty(KeyedCollection.prototype, "isEmpty", { get: function () { return this.count <= 0; }, enumerable: true, configurable: true }); KeyedCollection.prototype.AddOrUpdate = function (key, value) { this._map.set(key, value); }; KeyedCollection.prototype.Remove = function (key) { if (this.ContainsKey(key)) { var value = this._map.get(key); this._map.delete(key); return value; } return undefined; }; /** * @deprecated since version 1.1 * Use strongly typed 'Get' or 'GetOrDefault' instead. */ KeyedCollection.prototype.UncheckedGet = function (key) { // This method just hides a type check hint about undefined. // Use strongly typed 'Get' or 'GetOrDefault' instead. return this.Get(key); }; KeyedCollection.prototype.Get = function (key) { return this._map.get(key); }; KeyedCollection.prototype.GetOrDefault = function (key, defaultValue) { if (this.ContainsKey(key)) { return this.Get(key); } return defaultValue; }; KeyedCollection.prototype.Keys = function () { return this.isEmpty ? [] : Array.from(this._map.keys()); }; KeyedCollection.prototype.KeysIterator = function () { return this._map.keys(); }; KeyedCollection.prototype.Values = function () { return this.isEmpty ? [] : Array.from(this._map.values()); }; KeyedCollection.prototype.ValuesIterator = function () { return this._map.values(); }; KeyedCollection.prototype.Entries = function () { return this.isEmpty ? [] : Array.from(this._map.entries()); }; KeyedCollection.prototype.EntriesIterator = function () { return this._map.entries(); }; return KeyedCollection; }()); /***/ }), /***/ "./src/types/project.ts": /*!******************************!*\ !*** ./src/types/project.ts ***! \******************************/ /*! exports provided: StatisticGranularity, StatisticValueType, StatisticChartType, LocationField */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticGranularity", function() { return StatisticGranularity; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticValueType", function() { return StatisticValueType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticChartType", function() { return StatisticChartType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocationField", function() { return LocationField; }); // This code was generated by a Reinforced.Typings tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. var StatisticGranularity; (function (StatisticGranularity) { StatisticGranularity[StatisticGranularity["Hour"] = 0] = "Hour"; StatisticGranularity[StatisticGranularity["Day"] = 1] = "Day"; StatisticGranularity[StatisticGranularity["Week"] = 2] = "Week"; StatisticGranularity[StatisticGranularity["Month"] = 3] = "Month"; StatisticGranularity[StatisticGranularity["Year"] = 4] = "Year"; })(StatisticGranularity || (StatisticGranularity = {})); var StatisticValueType; (function (StatisticValueType) { StatisticValueType[StatisticValueType["Default"] = 0] = "Default"; StatisticValueType[StatisticValueType["NoData"] = 1] = "NoData"; StatisticValueType[StatisticValueType["Approx"] = 2] = "Approx"; })(StatisticValueType || (StatisticValueType = {})); var StatisticChartType; (function (StatisticChartType) { StatisticChartType[StatisticChartType["Bar"] = 0] = "Bar"; StatisticChartType[StatisticChartType["Line"] = 1] = "Line"; })(StatisticChartType || (StatisticChartType = {})); var LocationField; (function (LocationField) { LocationField[LocationField["All"] = 0] = "All"; LocationField[LocationField["MasterBlock"] = 1] = "MasterBlock"; LocationField[LocationField["SlaveBlock"] = 2] = "SlaveBlock"; LocationField[LocationField["X"] = 3] = "X"; LocationField[LocationField["Y"] = 4] = "Y"; LocationField[LocationField["Z"] = 5] = "Z"; })(LocationField || (LocationField = {})); /***/ }), /***/ 0: /*!***************************!*\ !*** multi ./src/main.ts ***! \***************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! /usr/src/app/src/main.ts */"./src/main.ts"); /***/ }), /***/ 1: /*!**********************!*\ !*** util (ignored) ***! \**********************/ /*! no static exports found */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ 2: /*!**********************!*\ !*** util (ignored) ***! \**********************/ /*! no static exports found */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ 3: /*!********************!*\ !*** fs (ignored) ***! \********************/ /*! no static exports found */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ 4: /*!**********************!*\ !*** http (ignored) ***! \**********************/ /*! no static exports found */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ 5: /*!***********************!*\ !*** https (ignored) ***! \***********************/ /*! no static exports found */ /***/ (function(module, exports) { /* (ignored) */ /***/ }) },[[0,"runtime","vendor"]]]); //# sourceMappingURL=main.js.map