(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{ /***/ "./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/app-routing.module.ts": /*!***************************************!*\ !*** ./src/app/app-routing.module.ts ***! \***************************************/ /*! exports provided: AppRoutingModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function() { return AppRoutingModule; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.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 _sankey_sankey_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sankey/sankey.component */ "./src/app/sankey/sankey.component.ts"); var routes = [ { path: '', pathMatch: 'full', component: _sankey_sankey_component__WEBPACK_IMPORTED_MODULE_3__["SankeyComponent"] }, { path: 'sankey/:id', pathMatch: 'full', component: _sankey_sankey_component__WEBPACK_IMPORTED_MODULE_3__["SankeyComponent"] } ]; var AppRoutingModule = /** @class */ (function () { function AppRoutingModule() { } AppRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({ imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forRoot(routes)], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]] }) ], AppRoutingModule); return AppRoutingModule; }()); /***/ }), /***/ "./src/app/app.component.html": /*!************************************!*\ !*** ./src/app/app.component.html ***! \************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n
\n
\n {{ hs.header.name }}\n \n
\n
{{ hs.header.subtitle }}
\n
\n\n
\n \n
\n\n
\n
\n \n
\n IMPRESSUM\n
\n
\n \n {{item.label}}\n \n
\n
\n \n
\n\n
\n
i
\n
\n\n\n \n \n
\n
\n
\n\n \n
\n" /***/ }), /***/ "./src/app/app.component.scss": /*!************************************!*\ !*** ./src/app/app.component.scss ***! \************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".header .title {\n padding: 16px 0 16px 42px;\n font-size: 35px;\n font-style: normal;\n font-weight: bold;\n font-family: 'WienerMelange', serif; }\n\n.header .subtitle {\n padding: 16px 0 16px 42px;\n background: #acb1be;\n color: #FEFEFE; }\n\n.content {\n background-color: #f3f5fa;\n padding: 10px; }\n\n.info-button {\n position: fixed;\n bottom: 20px;\n left: 43px;\n cursor: pointer; }\n\n.info-button .circle {\n width: 56px;\n height: 56px;\n border-radius: 28px;\n font-size: 28px;\n color: #fff;\n line-height: 56px;\n text-align: center;\n background: #000;\n display: inline-block;\n font-family: WienerMelange;\n font-weight: 700; }\n\n.footer {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n position: fixed;\n bottom: 0px;\n left: 0;\n right: 0;\n color: #000;\n background: #fff;\n font-size: 13px; }\n\n.footer .buttons {\n display: flex;\n flex-direction: row;\n justify-content: center;\n font-family: WienerMelange, sans-serif; }\n\n.footer .buttons div {\n padding: .5em 0;\n cursor: pointer; }\n\n.footer .buttons div span {\n padding: 0 2em;\n border-right: 1px solid #000; }\n\n.footer .buttons .impressum span {\n border: 0px; }\n\n.footer .buttons .attribution {\n background: #000;\n border-right: 1px solid #fff; }\n\n.footer .buttons .attribution span > a {\n text-transform: uppercase;\n color: #fff !important;\n text-decoration: none !important; }\n\n.footer .buttons .attribution:last-child {\n border: 0px; }\n\n.tooltip-content {\n padding: 12px; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3R3ZW50eXRocmVlL21hMjAtc2Fua2V5LWdlbmVyYXRvci9zZy1mcm9udGVuZC9zcmMvYXBwL2FwcC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQTtFQUVJLHlCQUF5QjtFQUN6QixlQUFlO0VBQ2Ysa0JBQWtCO0VBQ2xCLGlCQUFpQjtFQUNqQixtQ0FBbUMsRUFBQTs7QUFOdkM7RUFTSSx5QkFBeUI7RUFFekIsbUJBQW1CO0VBQ25CLGNBQWMsRUFBQTs7QUFJbEI7RUFDRSx5QkFBeUI7RUFDekIsYUFBYSxFQUFBOztBQUdmO0VBQ0UsZUFBZTtFQUNmLFlBQVk7RUFDWixVQUFVO0VBQ1YsZUFBZSxFQUFBOztBQUpqQjtJQU1JLFdBQVc7SUFDWCxZQUFZO0lBQ1osbUJBQW1CO0lBQ25CLGVBQWU7SUFDZixXQUFXO0lBQ1gsaUJBQWlCO0lBQ2pCLGtCQUFrQjtJQUNsQixnQkFBZ0I7SUFDaEIscUJBQXFCO0lBQ3JCLDBCQUEwQjtJQUMxQixnQkFBZ0IsRUFBQTs7QUFJcEI7RUFDRSxhQUFhO0VBQ2IsbUJBQW1CO0VBQ25CLHlCQUF5QjtFQUV6QixlQUFlO0VBQ2YsV0FBVztFQUFFLE9BQU87RUFBRSxRQUFRO0VBQzlCLFdBQVc7RUFDWCxnQkFBZ0I7RU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wO1xuICAgICAgfVxuICAgIH1cbiAgICAuaW1wcmVzc3VtIHtcbiAgICAgIHNwYW4ge1xuICAgICAgICBib3JkZXI6IDBweDtcbiAgICAgIH1cbiAgICB9XG4gICAgLmF0dHJpYnV0aW9uIHtcbiAgICAgIGJhY2tncm91bmQ6ICMwMDA7XG4gICAgICBib3JkZXItcmlnaHQ6IDFweCBzb2xpZCAjZmZmO1xuICAgICAgc3BhbiA+IGEge1xuICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICAgICAgICBjb2xvcjogI2ZmZiFpbXBvcnRhbnQ7XG4gICAgICAgIHRleHQtZGVjb3JhdGlvbjogbm9uZSFpbXBvcnRhbnQ7XG4gICAgICB9XG4gICAgICAmOmxhc3QtY2hpbGQge1xuICAgICAgICBib3JkZXI6IDBweDtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuXG59XG5cbi50b29sdGlwLWNvbnRlbnQge1xuICBwYWRkaW5nOiAkcGQqMjtcbn1cbiJdfQ== */" /***/ }), /***/ "./src/app/app.component.ts": /*!**********************************!*\ !*** ./src/app/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 tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.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_header_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./services/header.service */ "./src/app/services/header.service.ts"); var AppComponent = /** @class */ (function () { function AppComponent(hs) { var _this = this; this.hs = hs; this.tooltipOpen = false; this.tooltipTitle = ''; this.tooltipContent = ''; this.tooltipValue = ''; this.openInfoText = function () { _this.tooltipTitle = _this.hs.header.infotitle || 'Info'; _this.tooltipContent = _this.hs.header.infotext; console.log('InfoText', _this.hs.header.infotext); if (_this.tooltipContent) { _this.tooltipOpen = true; } }; this.openImpressum = function () { _this.tooltipTitle = 'Impressum'; _this.tooltipContent = _this.hs.header.impressum; console.log('Impressum', _this.hs.header.impressum); if (_this.tooltipContent) { _this.tooltipOpen = true; } }; this.hasHeaderItem = function (item) { return _this.hs.header[item] ? true : false; }; } AppComponent.prototype.ngOnInit = function () { }; AppComponent.prototype.ngOnChanges = function () { }; AppComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'app-root', template: __webpack_require__(/*! ./app.component.html */ "./src/app/app.component.html"), styles: [__webpack_require__(/*! ./app.component.scss */ "./src/app/app.component.scss")] }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_header_service__WEBPACK_IMPORTED_MODULE_2__["HeaderService"]]) ], AppComponent); return AppComponent; }()); /***/ }), /***/ "./src/app/app.module.ts": /*!*******************************!*\ !*** ./src/app/app.module.ts ***! \*******************************/ /*! exports provided: AppModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.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 _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/platform-browser/animations */ "./node_modules/@angular/platform-browser/fesm5/animations.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-routing.module */ "./src/app/app-routing.module.ts"); /* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts"); /* harmony import */ var _tooltip_tooltip_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tooltip/tooltip.module */ "./src/app/tooltip/tooltip.module.ts"); /* harmony import */ var _sankey_sankey_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./sankey/sankey.component */ "./src/app/sankey/sankey.component.ts"); /* harmony import */ var _ui_modal_ui_modal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ui-modal/ui-modal */ "./src/app/ui-modal/ui-modal.ts"); /* harmony import */ var _sankey_popup_sankey_popup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sankey-popup/sankey-popup */ "./src/app/sankey-popup/sankey-popup.ts"); var AppModule = /** @class */ (function () { function AppModule() { } AppModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"])({ declarations: [ _app_component__WEBPACK_IMPORTED_MODULE_6__["AppComponent"], _sankey_sankey_component__WEBPACK_IMPORTED_MODULE_8__["SankeyComponent"] ], imports: [ _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_2__["BrowserAnimationsModule"], _app_routing_module__WEBPACK_IMPORTED_MODULE_5__["AppRoutingModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClientModule"], _tooltip_tooltip_module__WEBPACK_IMPORTED_MODULE_7__["TooltipModule"], _ui_modal_ui_modal__WEBPACK_IMPORTED_MODULE_9__["UiModalModule"], _sankey_popup_sankey_popup__WEBPACK_IMPORTED_MODULE_10__["SankeyPopupModule"] ], providers: [], bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_6__["AppComponent"]] }) ], AppModule); return AppModule; }()); /***/ }), /***/ "./src/app/sankey-popup/sankey-popup.module.ts": /*!*****************************************************!*\ !*** ./src/app/sankey-popup/sankey-popup.module.ts ***! \*****************************************************/ /*! exports provided: SankeyPopupModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SankeyPopupModule", function() { return SankeyPopupModule; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* 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 _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-kit/core */ "./node_modules/@ngx-kit/core/fesm5/ngx-kit-core.js"); /* harmony import */ var _sankey_popup_sankey_popup_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sankey-popup/sankey-popup.component */ "./src/app/sankey-popup/sankey-popup/sankey-popup.component.ts"); var SankeyPopupModule = /** @class */ (function () { function SankeyPopupModule() { } SankeyPopupModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({ imports: [ _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitClassModule"], _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitPositionModule"], ], declarations: [ _sankey_popup_sankey_popup_component__WEBPACK_IMPORTED_MODULE_4__["SankeyPopupComponent"], ], exports: [ _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitOverlayModule"], _sankey_popup_sankey_popup_component__WEBPACK_IMPORTED_MODULE_4__["SankeyPopupComponent"], ], }) ], SankeyPopupModule); return SankeyPopupModule; }()); /***/ }), /***/ "./src/app/sankey-popup/sankey-popup.ts": /*!**********************************************!*\ !*** ./src/app/sankey-popup/sankey-popup.ts ***! \**********************************************/ /*! exports provided: SankeyPopupModule, SankeyPopupComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _sankey_popup_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sankey-popup.module */ "./src/app/sankey-popup/sankey-popup.module.ts"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SankeyPopupModule", function() { return _sankey_popup_module__WEBPACK_IMPORTED_MODULE_0__["SankeyPopupModule"]; }); /* harmony import */ var _sankey_popup_sankey_popup_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sankey-popup/sankey-popup.component */ "./src/app/sankey-popup/sankey-popup/sankey-popup.component.ts"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SankeyPopupComponent", function() { return _sankey_popup_sankey_popup_component__WEBPACK_IMPORTED_MODULE_1__["SankeyPopupComponent"]; }); /***/ }), /***/ "./src/app/sankey-popup/sankey-popup/sankey-popup.component.html": /*!***********************************************************************!*\ !*** ./src/app/sankey-popup/sankey-popup/sankey-popup.component.html ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\r\n
\r\n \r\n
\r\n
\r\n" /***/ }), /***/ "./src/app/sankey-popup/sankey-popup/sankey-popup.component.scss": /*!***********************************************************************!*\ !*** ./src/app/sankey-popup/sankey-popup/sankey-popup.component.scss ***! \***********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".popup {\n background: #ffffff;\n border-radius: 4px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); }\n .popup.position-top-center {\n margin-bottom: 8px;\n -webkit-transform-origin: bottom;\n transform-origin: bottom; }\n .popup.position-top-right {\n margin-bottom: 8px;\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right; }\n .popup.position-top-left {\n margin-bottom: 8px;\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left; }\n .popup.position-right-center {\n margin-left: 8px;\n -webkit-transform-origin: left;\n transform-origin: left; }\n .popup.position-right-top {\n margin-left: 8px;\n -webkit-transform-origin: left top;\n transform-origin: left top; }\n .popup.position-right-bottom {\n margin-left: 8px;\n -webkit-transform-origin: left bottom;\n transform-origin: left bottom; }\n .popup.position-bottom-center {\n margin-top: 8px;\n -webkit-transform-origin: top;\n transform-origin: top; }\n .popup.position-bottom-right {\n margin-top: 8px;\n -webkit-transform-origin: top right;\n transform-origin: top right; }\n .popup.position-bottom-left {\n margin-top: 8px;\n -webkit-transform-origin: top left;\n transform-origin: top left; }\n .popup.position-left-center {\n margin-right: 8px;\n -webkit-transform-origin: right;\n transform-origin: right; }\n .popup.position-left-top {\n margin-right: 8px;\n -webkit-transform-origin: right top;\n transform-origin: right top; }\n .popup.position-left-bottom {\n margin-right: 8px;\n -webkit-transform-origin: right bottom;\n transform-origin: right bottom; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3R3ZW50eXRocmVlL21hMjAtc2Fua2V5LWdlbmVyYXRvci9zZy1mcm9udGVuZC9zcmMvYXBwL3NhbmtleS1wb3B1cC9zYW5rZXktcG9wdXAvc2Fua2V5LXBvcHVwLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBO0VBQ0UsbUJBQW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Q7XHJcbiAgICAgIHRyYW5zZm9ybS1vcmlnaW46IHRvcCByaWdodDtcclxuICAgIH1cclxuICAgICYtYm90dG9tLWxlZnQge1xyXG4gICAgICBtYXJnaW4tdG9wOiAkb2Zmc2V0O1xyXG4gICAgICB0cmFuc2Zvcm0tb3JpZ2luOiB0b3AgbGVmdDtcclxuICAgIH1cclxuICAgICYtbGVmdC1jZW50ZXIge1xyXG4gICAgICBtYXJnaW4tcmlnaHQ6ICRvZmZzZXQ7XHJcbiAgICAgIHRyYW5zZm9ybS1vcmlnaW46IHJpZ2h0O1xyXG4gICAgfVxyXG4gICAgJi1sZWZ0LXRvcCB7XHJcbiAgICAgIG1hcmdpbi1yaWdodDogJG9mZnNldDtcclxuICAgICAgdHJhbnNmb3JtLW9yaWdpbjogcmlnaHQgdG9wO1xyXG4gICAgfVxyXG4gICAgJi1sZWZ0LWJvdHRvbSB7XHJcbiAgICAgIG1hcmdpbi1yaWdodDogJG9mZnNldDtcclxuICAgICAgdHJhbnNmb3JtLW9yaWdpbjogcmlnaHQgYm90dG9tO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= */" /***/ }), /***/ "./src/app/sankey-popup/sankey-popup/sankey-popup.component.ts": /*!*********************************************************************!*\ !*** ./src/app/sankey-popup/sankey-popup/sankey-popup.component.ts ***! \*********************************************************************/ /*! exports provided: SankeyPopupComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SankeyPopupComponent", function() { return SankeyPopupComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm5/animations.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-kit/core */ "./node_modules/@ngx-kit/core/fesm5/ngx-kit-core.js"); var SankeyPopupComponent = /** @class */ (function () { function SankeyPopupComponent(outsideClick) { this.outsideClick = outsideClick; this.position = 'top-center'; this.ariaLabel = 'Popup description'; this.ariaModal = true; this.hostTrigger = true; } SankeyPopupComponent.prototype.ngOnChanges = function () { this.outsideClick.skip = [this.toggle.nativeEl]; }; SankeyPopupComponent.prototype.ngOnInit = function () { var _this = this; this.outsideClick.outsideClick.subscribe(function (e) { _this.toggle.close(); }); }; tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitOverlayToggleDirective"]) ], SankeyPopupComponent.prototype, "toggle", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", String) ], SankeyPopupComponent.prototype, "position", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["HostBinding"])('attr.aria-label'), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Object) ], SankeyPopupComponent.prototype, "ariaLabel", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["HostBinding"])('attr.aria-modal'), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Object) ], SankeyPopupComponent.prototype, "ariaModal", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["HostBinding"])('@host'), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Object) ], SankeyPopupComponent.prototype, "hostTrigger", void 0); SankeyPopupComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ selector: 'sankey-popup', template: __webpack_require__(/*! ./sankey-popup.component.html */ "./src/app/sankey-popup/sankey-popup/sankey-popup.component.html"), changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectionStrategy"].OnPush, providers: [ _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitOutsideClickService"], ], animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('host', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter, :leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["query"])('@*', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animateChild"])()), ]), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('fade', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0.5)', }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('150ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, transform: 'scale(1)', })), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('150ms ease-in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0.5)', })), ]), ]), ], styles: [__webpack_require__(/*! ./sankey-popup.component.scss */ "./src/app/sankey-popup/sankey-popup/sankey-popup.component.scss")] }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitOutsideClickService"]]) ], SankeyPopupComponent); return SankeyPopupComponent; }()); /***/ }), /***/ "./src/app/sankey/sankey.component.html": /*!**********************************************!*\ !*** ./src/app/sankey/sankey.component.html ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "\n \n
\n \n \n \n
\n
\n \n
\n
\n
{{ tooltipTitle }}
\n
{{ tooltipValue }}
\n
\n
\n
\n
{{ tooltipPercent }}
\n
\n
\n
0\">{{ tooltipSubtitle }}
\n
{{ tooltipContent }}
\n 0\">\n
{{ meta.title }}: {{ meta.value }}
\n
\n
\n
\n
\n\n\n\n\n
\n \n
\n\n\n \n \n
\n
0\">{{ tooltipSubtitle }}
\n
{{ tooltipContent }}
\n
{{ tooltipValue }}
\n 0\">\n
{{ meta.title }}: {{ meta.value }}
\n
\n
\n\n \n \n \n \n
\n" /***/ }), /***/ "./src/app/sankey/sankey.component.scss": /*!**********************************************!*\ !*** ./src/app/sankey/sankey.component.scss ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".sankey {\n display: block;\n width: 100%;\n height: 80vh; }\n\n.content {\n font-weight: 500; }\n\n.popup {\n background: #fff;\n border-radius: 5px;\n box-shadow: 1px 1px 3px #888;\n cursor: pointer;\n display: block;\n font-family: 'WienerMelange', sans-serif;\n font-size: 1vmax;\n height: auto;\n width: 300px;\n min-height: 100px;\n position: fixed;\n padding: 10px;\n word-break: break-all; }\n\n.link-info {\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 13px;\n display: flex;\n flex-direction: column;\n justify-content: space-between; }\n\n.link-source, .link-target, .link-value {\n width: 100%; }\n\n.link-source, .link-target {\n font-size: 0.9vmax !important; }\n\n.link-value {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n font-weight: 700; }\n\n.link-value div {\n display: flex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}), /***/ "./src/app/sankey/sankey.component.ts": /*!********************************************!*\ !*** ./src/app/sankey/sankey.component.ts ***! \********************************************/ /*! exports provided: SankeyComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SankeyComponent", function() { return SankeyComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var d3_sankey_diagram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-sankey-diagram */ "./node_modules/d3-sankey-diagram/build/d3-sankey-diagram.umd.js"); /* harmony import */ var d3_sankey_diagram__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3_sankey_diagram__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js"); /* harmony import */ var _services_header_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../services/header.service */ "./src/app/services/header.service.ts"); // import { format } from 'd3-format'; // import { scaleOrdinal } from 'd3-scale'; // import { schemeCategory10 } from 'd3-scale-chromatic'; var SankeyComponent = /** @class */ (function () { function SankeyComponent(http, route, headerService) { var _this = this; this.http = http; this.route = route; this.headerService = headerService; // ***************************************************** // * MOCKDATA * // ***************************************************** this.style = "\n .source {\n margin: 0.5em;\n font-size: small;\n position: absolute;\n bottom: 0;\n right: 0;\n color: #555;\n }\n\n .source a {\n color: #558;\n }\n\n .link {\n opacity: 0.75;\n fill: steelblue;\n cursor: pointer;\n }\n\n .link:hover {\n opacity: 1;\n }\n\n .sankey {\n font-size: 12pt;\n }\n // .node line {\n // stroke-width: 1px;\n // stroke: #000;\n // }\n .node-type-process line {\n stroke-width: 4px;\n stroke: #888;\n }\n\n .group {\n cursor: pointer;\n font-family: 'WienerMelange', serif;\n }\n\n .group rect {\n fill: #fff;\n stroke: #bbb;\n stroke-width: 0px;\n width: 4px;\n x: -2;\n }\n\n .group text {\n fill: #999;\n }\n\n .node-title {\n cursor: pointer;\n font-family: 'WienerMelange', sans-serif;\n font-size: 14px;\n }\n\n .node-body {\n width: 12px;\n min-height: 8px;\n x: -6;\n // fill: red;\n }\n\n .node-title:hover {\n // font-weight: bold;\n }\n\n .node-click-target {\n cursor: pointer;\n }\n\n .node-click-target:hover {\n cursor: pointer;\n // fill: rgba(0,0,0,.4)!important;\n // visibility: visible!important;\n }\n "; this.title = 'sg-frontend'; this.loaded = false; this.tooltipOpen = false; this.tooltipTitle = ''; this.tooltipContent = ''; this.tooltipValue = ''; this.tooltipSubtitle = ''; this.tooltipPercent = undefined; this.metaValues = []; this.popupTop = 0; this.popupLeft = 0; this.popupVisible = false; this.paintSankey = function (width, height) { var layout = Object(d3_sankey_diagram__WEBPACK_IMPORTED_MODULE_2__["sankey"])() .extent([[100, 10], [width, height]]) .ordering(_this.data.order); // console.log(Object.getOwnPropertyNames(layout).filter(function (p) { // return typeof layout[p] === 'function'; // })); // console.log(layout.verticalLayout); var diagram = Object(d3_sankey_diagram__WEBPACK_IMPORTED_MODULE_2__["sankeyDiagram"])() .linkTitle(function (d) { return d.title + " " + _this.data.unit; }) .linkColor(function (d) { return d.color || '#DD0044'; }); diagram.on('selectLink', _this.clickOnLink); diagram.on('selectNode', _this.clickOnNode); diagram.on('selectGroup', _this.clickOnGroup); // diagram.on('mouseclick', d => console.log('click')); Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])('#sankey svg') .datum(layout(_this.data)) .call(diagram.groups(_this.data.groups)) .append('style') .text(_this.style); // layout.verticalLayout(sankeyPositionJustified); Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["selectAll"])('.group').on('click', _this.clickOnGroup); Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])('#sankey svg .sankey .nodes') .selectAll('.node') .each(function (datum, idx, nodes) { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])(nodes[idx]); node .append('text') .attr('class', 'rendered_node_name') .text(function (d) { // console.log(d); return "" + d.title; }) .style('font-size', '.75vmax') .style('font-family', 'WienerMelange ,Helvetica Neue,Arial,sans-serif') .style('font-weight', '300') .style('fill', 'rgb(74,74,74)') .style('cursor', 'pointer') .attr('x', 8) .attr('y', function (d) { return d.dy / 2 - (d.percent ? 11 : 3); }) .call(_this.wrap, _this.wrapWidth, parseInt(datum.value, 10).toLocaleString('de-DE') + " " + _this.data.unit, datum.percent); }); Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])('#sankey svg .sankey .nodes') .selectAll('.node') .select('.node-body') .style('fill', function (d) { return d.color || '#ff00ff'; }); Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])('#sankey svg .sankey .nodes') .selectAll('.node') .select('.node-title') .style('visibility', 'hidden'); Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])('#sankey svg .sankey .groups') .selectAll('.group') .each(function (d, idx, nodes) { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])(nodes[idx]); var textWidth = node.node().getBBox().width; var moveBy = -1 * (textWidth / 2); node .select('text') .style('font-size', '.85vmax') .style('font-family', 'WienerMelange, serif') .style('color', '#636363') .style('fill', '#636363') .attr('x', moveBy) .call(_this.wordWrap, _this.wrapWidth, moveBy); }); }; this.renderSankey = function () { // Set Size where sankey should be rendered var _a = _this.sankeyContainer.nativeElement, offsetWidth = _a.offsetWidth, offsetHeight = _a.offsetHeight; var padding = offsetWidth * 0.1; _this.removeRenderedNodes(); // TODO implement this, so labels are removed on repaint _this.paintSankey(offsetWidth - padding, offsetHeight); }; this.clickOnLink = function (data) { // console.log('Link clicked', { data }); var requiredProps = [ 'content', 'dy', 'points', 'source', 'sourcePort', 'target', 'targetPort', 'title', 'unit', 'value', 'color', 'subtitle' ]; if (data) { _this.popupStyle = 'link'; _this.tooltipTitle = data.title + ": " + data.source.title + " > " + data.target.title; _this.tooltipSubtitle = data.subtitle || ''; _this.tooltipContent = "" + data.content; _this.tooltipValue = _this.linkValue = parseInt(data.value, 10).toLocaleString('de-DE') + " " + _this.data.unit; // console.log(data.value.toLocaleString('de-DE')); _this.linkSource = "" + data.source.title; _this.linkTarget = "" + data.target.title; // this.tooltipOpen = true; var allProps = Object.keys(data); var extraProps = allProps.filter(function (prop) { return requiredProps.indexOf(prop) === -1; }); var percent = void 0; _this.metaValues = []; for (var _i = 0, extraProps_1 = extraProps; _i < extraProps_1.length; _i++) { var prop = extraProps_1[_i]; _this.metaValues.push({ value: data[prop], title: prop }); if (prop === 'percent') { percent = parseFloat(data['percent']).toLocaleString('de-DE') + "%"; console.log('[clickOnLink]', 'Found percent'); } } _this.tooltipPercent = percent ? percent : undefined; console.log(d3__WEBPACK_IMPORTED_MODULE_5__["event"], { metaValues: _this.metaValues }); var offsetX = d3__WEBPACK_IMPORTED_MODULE_5__["event"].x + 300 > _this.innerWidth ? (d3__WEBPACK_IMPORTED_MODULE_5__["event"].x + 350) - _this.innerWidth : 0; _this.popupLeft = d3__WEBPACK_IMPORTED_MODULE_5__["event"].x - offsetX; var offsetY = d3__WEBPACK_IMPORTED_MODULE_5__["event"].y + 160 > window.innerHeight ? (d3__WEBPACK_IMPORTED_MODULE_5__["event"].y + 160) - window.innerHeight : 0; _this.popupTop = d3__WEBPACK_IMPORTED_MODULE_5__["event"].y - offsetY; _this.popupVisible = true; } else { _this.popupVisible = false; } }; this.clickOnNode = function (data) { console.log('Node clicked', { data: data }); var requiredProps = [ 'content', 'dy', 'points', 'source', 'sourcePort', 'target', 'targetPort', 'title', 'unit', 'value', 'color', 'subtitle', 'id', 'cat', 'incoming', 'outgoing', 'ports', 'x0', 'x1', 'y0', 'y1', 'rank', 'band', 'depth', 'spaceAbove', 'spaceBelow', 'percent' ]; if (data) { _this.popupStyle = 'node'; _this.tooltipTitle = "" + data.title; _this.tooltipSubtitle = data.subtitle || ''; _this.tooltipContent = "" + (data.content || ''); _this.tooltipValue = parseInt(data.value, 10).toLocaleString('de-DE') + " " + _this.data.unit; _this.tooltipPercent = data.percent ? parseFloat(data.percent).toLocaleString('de-DE') + "%" : undefined; // this.tooltipOpen = true; var allProps = Object.keys(data); var extraProps = allProps.filter(function (prop) { return requiredProps.indexOf(prop) === -1; }); _this.metaValues = []; for (var _i = 0, extraProps_2 = extraProps; _i < extraProps_2.length; _i++) { var prop = extraProps_2[_i]; _this.metaValues.push({ value: data[prop], title: prop }); } var offsetX = d3__WEBPACK_IMPORTED_MODULE_5__["event"].x + 300 > _this.innerWidth ? (d3__WEBPACK_IMPORTED_MODULE_5__["event"].x + 350) - _this.innerWidth : 0; _this.popupLeft = d3__WEBPACK_IMPORTED_MODULE_5__["event"].x - offsetX; var offsetY = d3__WEBPACK_IMPORTED_MODULE_5__["event"].y + 160 > window.innerHeight ? (d3__WEBPACK_IMPORTED_MODULE_5__["event"].y + 160) - window.innerHeight : 0; _this.popupTop = d3__WEBPACK_IMPORTED_MODULE_5__["event"].y - offsetY; _this.popupVisible = true; // console.log({ top: this.popupTop, left: this.popupLeft }); } else { _this.popupVisible = false; } // if (data) { // } }; this.clickOnGroup = function (data) { // console.log('Group clicked', data); // console.log('<>', this.data); }; this.calculateWrapWidth = function () { return ((((_this.innerWidth / 100) * .9) * 100) / _this.data.groups.length) * 0.75; }; route.params.subscribe(function (p) { return (_this.id = p.id); }); } SankeyComponent.prototype.ngOnInit = function () { return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () { var _a, _b, name, subtitle, attribution, impressum, infotext, infotitle, header; return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_c) { switch (_c.label) { case 0: // this.data = await this.http.get(`/api/v1/data/csv`).toPromise(); _a = this; return [4 /*yield*/, this.http .get("/api/v1/sankey/slug/" + this.id) .toPromise()]; case 1: // this.data = await this.http.get(`/api/v1/data/csv`).toPromise(); _a.data = _c.sent(); this.innerWidth = window.innerWidth; this.wrapWidth = this.calculateWrapWidth(); _b = this.data, name = _b.name, subtitle = _b.subtitle, attribution = _b.attribution, impressum = _b.impressum, infotext = _b.infotext, infotitle = _b.infotitle; header = { name: name, subtitle: subtitle, attribution: attribution, impressum: impressum, infotext: infotext, infotitle: infotitle }; this.headerService.header = header; // console.log(this.data); // let catCounter = 0; // let lastCat = ''; // for (const datum of this.data.nodes) { // if (datum.cat !== lastCat) { // lastCat = datum.cat; // catCounter = 0; // } else { // catCounter++; // } // } // console.log({catCounter, lastCat}); // if (catCounter < 1) { // this.data.nodes.push({id: '', title: '', cat: lastCat, subtitle: '', percent: '', content: ''}); // } else { // this.data.nodes.push({id: '', title: '', cat: lastCat, subtitle: '', percent: '', content: ''}); // } this.renderSankey(); return [2 /*return*/]; } }); }); }; SankeyComponent.prototype.onResize = function ($event) { this.renderSankey(); this.innerWidth = window.innerWidth; this.wrapWidth = this.calculateWrapWidth(); // console.log('Resize event'); }; SankeyComponent.prototype.wrap = function (word2wrap, width, value, percent) { word2wrap.each(function () { var text = Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])(this), lineHeight = 1.1, // ems x = text.attr('x'), y = text.attr('y'), dy = 0; // parseFloat(text.attr('dy')), var word, words = text .text() .split(/\s+/) .reverse(), line = [], lineNumber = 0, tspan = text .text(null) .append('tspan') .attr('x', x) .attr('y', y) .attr('dy', dy + 'em'); words = words.filter(function (current) { return current.length > 0; }); var first = true; var wordsLength = words.length; do { word = words.pop(); line.push(word); tspan.text(line.join(' ')); if (tspan.node().getComputedTextLength() > width && !first) { line.pop(); tspan.text(line.join(' ')); line = [word]; tspan = text .append('tspan') .attr('x', x) .attr('y', y) .attr('dy', ++lineNumber * lineHeight + (dy + .05) + 'em') .text(word); } first = false; } while (words.length > 0); tspan = text .append('tspan') .attr('x', x) .attr('y', y) .style('font-weight', '700') .style('font-size', '.9vmax') .style('fill', 'rgb(0,0,0)') .attr('dy', ++lineNumber * lineHeight + (dy - .125) + 'em') .text(value); if (percent) { tspan = text .append('tspan') .attr('x', x) .attr('y', y) .style('font-weight', '400') .style('font-size', '.75vmax') .style('fill', 'rgb(74,74,74)') .attr('dy', ++lineNumber * lineHeight + (dy + .125 + (wordsLength > 1 ? .05 : 0)) + 'em') .text(parseFloat(percent).toLocaleString('de-DE') + "%"); } }); }; SankeyComponent.prototype.wordWrap = function (word2wrap, width, moveby) { if (moveby === void 0) { moveby = 0; } word2wrap.each(function () { var text = Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["select"])(this), lineHeight = 1.1, // ems y = text.attr('y'), dy = 0; // parseFloat(text.attr('dy')), var word, words = text .text() .split(/\s+/) .reverse(), x = moveby, line = [], lineNumber = 0; words = words.filter(function (current) { return current.length > 0; }); x = words.length > 1 ? moveby / 2 : moveby; var tspan = text .text(null) .append('tspan') .attr('x', x) .attr('y', y) .attr('dy', dy + 'em'); var first = true; do { word = words.shift(); line.unshift(word); tspan.text(line.join(' ')); if (tspan.node().getComputedTextLength() > width && !first) { // console.log('Wrapping word', word); line.shift(); tspan.text(line.join(' ')); line = [word]; tspan = text .append('tspan') .attr('x', x) .attr('y', y) .attr('dy', --lineNumber * lineHeight - dy + 'em') .text(word); } first = false; } while (words.length > 0); }); }; SankeyComponent.prototype.removeRenderedNodes = function () { // console.log('Remove rendered'); Object(d3_selection__WEBPACK_IMPORTED_MODULE_4__["selectAll"])('.rendered_node_name').remove(); }; tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('container'), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]) ], SankeyComponent.prototype, "sankeyContainer", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"])('window:resize', ['$event']), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Function), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [Object]), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:returntype", void 0) ], SankeyComponent.prototype, "onResize", null); SankeyComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'app-sankey', template: __webpack_require__(/*! ./sankey.component.html */ "./src/app/sankey/sankey.component.html"), styles: [__webpack_require__(/*! ./sankey.component.scss */ "./src/app/sankey/sankey.component.scss")] }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"], _angular_router__WEBPACK_IMPORTED_MODULE_6__["ActivatedRoute"], _services_header_service__WEBPACK_IMPORTED_MODULE_7__["HeaderService"]]) ], SankeyComponent); return SankeyComponent; }()); /***/ }), /***/ "./src/app/services/header.service.ts": /*!********************************************!*\ !*** ./src/app/services/header.service.ts ***! \********************************************/ /*! exports provided: HeaderService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderService", function() { return HeaderService; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var HeaderService = /** @class */ (function () { function HeaderService() { this._header = { name: 'MA20 Generator', subtitle: 'Willkommen im MA20 Generator' }; } Object.defineProperty(HeaderService.prototype, "header", { get: function () { return this._header; }, set: function (value) { this._header = value; }, enumerable: true, configurable: true }); HeaderService = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({ providedIn: 'root' }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", []) ], HeaderService); return HeaderService; }()); /***/ }), /***/ "./src/app/tooltip/tooltip.module.ts": /*!*******************************************!*\ !*** ./src/app/tooltip/tooltip.module.ts ***! \*******************************************/ /*! exports provided: TooltipModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipModule", function() { return TooltipModule; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* 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 _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-kit/core */ "./node_modules/@ngx-kit/core/fesm5/ngx-kit-core.js"); /* harmony import */ var _tooltip_tooltip_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tooltip/tooltip.component */ "./src/app/tooltip/tooltip/tooltip.component.ts"); var TooltipModule = /** @class */ (function () { function TooltipModule() { } TooltipModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({ imports: [ _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitClassModule"], ], declarations: [ _tooltip_tooltip_component__WEBPACK_IMPORTED_MODULE_4__["TooltipComponent"], ], exports: [ _tooltip_tooltip_component__WEBPACK_IMPORTED_MODULE_4__["TooltipComponent"], _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitOverlayModule"], _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitModalModule"], ], }) ], TooltipModule); return TooltipModule; }()); /***/ }), /***/ "./src/app/tooltip/tooltip/tooltip.component.html": /*!********************************************************!*\ !*** ./src/app/tooltip/tooltip/tooltip.component.html ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\r\n
\r\n \r\n
\r\n
\r\n" /***/ }), /***/ "./src/app/tooltip/tooltip/tooltip.component.scss": /*!********************************************************!*\ !*** ./src/app/tooltip/tooltip/tooltip.component.scss ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ".drawer {\n background: #ffffff;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n position: fixed; }\n .drawer.position-top {\n left: 0;\n right: 0;\n top: 0; }\n .drawer.position-right {\n bottom: 0;\n right: 0;\n top: 0; }\n .drawer.position-bottom {\n bottom: 0;\n left: 0;\n right: 0; }\n .drawer.position-left {\n bottom: 0;\n left: 0;\n top: 0; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3R3ZW50eXRocmVlL21hMjAtc2Fua2V5LWdlbmVyYXRvci9zZy1mcm9udGVuZC9zcmMvYXBwL3Rvb2x0aXAvdG9vbHRpcC90b29sdGlwLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsbUJBQW1CO0VBQ25CLHVDQUFzQztFQUN0QyxlQUFlLEVBQUE7RUFIakI7SUFNTSxPQUFPO0lBQ1AsUUFBUTtJQUNSLE1BQU0sRUFBQTtFQVJaO0lBV00sU0FBUztJQUNULFFBQVE7SUFDUixNQUFNLEVBQUE7RUFiWjtJQWdCTSxTQUFTO0lBQ1QsT0FBTztJQUNQLFFBQVEsRUFBQTtFQWxCZDtJQXFCTSxTQUFTO0lBQ1QsT0FBTztJQUNQLE1BQU0sRUFBQSIsImZpbGUiOiJzcmMvYXBwL3Rvb2x0aXAvdG9vbHRpcC90b29sdGlwLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmRyYXdlciB7XHJcbiAgYmFja2dyb3VuZDogI2ZmZmZmZjtcclxuICBib3gtc2hhZG93OiAwIDAgMjBweCByZ2JhKDAsIDAsIDAsIC4zKTtcclxuICBwb3NpdGlvbjogZml4ZWQ7XHJcbiAgJi5wb3NpdGlvbiB7XHJcbiAgICAmLXRvcCB7XHJcbiAgICAgIGxlZnQ6IDA7XHJcbiAgICAgIHJpZ2h0OiAwO1xyXG4gICAgICB0b3A6IDA7XHJcbiAgICB9XHJcbiAgICAmLXJpZ2h0IHtcclxuICAgICAgYm90dG9tOiAwO1xyXG4gICAgICByaWdodDogMDtcclxuICAgICAgdG9wOiAwO1xyXG4gICAgfVxyXG4gICAgJi1ib3R0b20ge1xyXG4gICAgICBib3R0b206IDA7XHJcbiAgICAgIGxlZnQ6IDA7XHJcbiAgICAgIHJpZ2h0OiAwO1xyXG4gICAgfVxyXG4gICAgJi1sZWZ0IHtcclxuICAgICAgYm90dG9tOiAwO1xyXG4gICAgICBsZWZ0OiAwO1xyXG4gICAgICB0b3A6IDA7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== */" /***/ }), /***/ "./src/app/tooltip/tooltip/tooltip.component.ts": /*!******************************************************!*\ !*** ./src/app/tooltip/tooltip/tooltip.component.ts ***! \******************************************************/ /*! exports provided: TooltipComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipComponent", function() { return TooltipComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm5/animations.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var TooltipComponent = /** @class */ (function () { function TooltipComponent() { this.position = 'right'; this.hostTrigger = true; } TooltipComponent.prototype.ngOnInit = function () { }; tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", String) ], TooltipComponent.prototype, "position", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["HostBinding"])('@host'), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Object) ], TooltipComponent.prototype, "hostTrigger", void 0); TooltipComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ selector: 'tooltip', template: __webpack_require__(/*! ./tooltip.component.html */ "./src/app/tooltip/tooltip/tooltip.component.html"), changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('host', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter, :leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["query"])('@*', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animateChild"])()), ]), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('slide', [ // top position Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('* => top', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateY(-100%)', opacity: 0.5, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateY(0)', opacity: 1, })), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('top => *', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateY(-100%)', opacity: 0.5, })), ]), // right position Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('* => right', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateX(100%)', opacity: 0.5, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateX(0)', opacity: 1, })), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('right => *', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateX(100%)', opacity: 0.5, })), ]), // bottom position Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('* => bottom', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateY(100%)', opacity: 0.5, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateY(0)', opacity: 1, })), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('bottom => *', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateY(100%)', opacity: 0.5, })), ]), // left position Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('* => left', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateX(-100%)', opacity: 0.5, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateX(0)', opacity: 1, })), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('left => *', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ transform: 'translateX(-100%)', opacity: 0.5, })), ]), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('fade', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('450ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, })), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('50ms ease-in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, })), ]), ]), ], styles: [__webpack_require__(/*! ./tooltip.component.scss */ "./src/app/tooltip/tooltip/tooltip.component.scss")] }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", []) ], TooltipComponent); return TooltipComponent; }()); /***/ }), /***/ "./src/app/ui-modal/ui-modal-footer/ui-modal-footer.component.scss": /*!*************************************************************************!*\ !*** ./src/app/ui-modal/ui-modal-footer/ui-modal-footer.component.scss ***! \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n border-top: 1px solid #eeeeee;\n background: #fff;\n display: block;\n flex-shrink: 0;\n padding: 16px; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3R3ZW50eXRocmVlL21hMjAtc2Fua2V5LWdlbmVyYXRvci9zZy1mcm9udGVuZC9zcmMvYXBwL3VpLW1vZGFsL3VpLW1vZGFsLWZvb3Rlci91aS1tb2RhbC1mb290ZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSw2QkFBNkI7RUFDN0IsZ0JBQWdCO0VBQ2hCLGNBQWM7RUFDZCxjQUFjO0VBQ2QsYUFBYSxFQUFBIiwiZmlsZSI6InNyYy9hcHAvdWktbW9kYWwvdWktbW9kYWwtZm9vdGVyL3VpLW1vZGFsLWZvb3Rlci5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIjpob3N0IHtcclxuICBib3JkZXItdG9wOiAxcHggc29saWQgI2VlZWVlZTtcclxuICBiYWNrZ3JvdW5kOiAjZmZmO1xyXG4gIGRpc3BsYXk6IGJsb2NrO1xyXG4gIGZsZXgtc2hyaW5rOiAwO1xyXG4gIHBhZGRpbmc6IDE2cHg7XHJcbn1cclxuIl19 */" /***/ }), /***/ "./src/app/ui-modal/ui-modal-footer/ui-modal-footer.component.ts": /*!***********************************************************************!*\ !*** ./src/app/ui-modal/ui-modal-footer/ui-modal-footer.component.ts ***! \***********************************************************************/ /*! exports provided: UiModalFooterComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UiModalFooterComponent", function() { return UiModalFooterComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); var UiModalFooterComponent = /** @class */ (function () { function UiModalFooterComponent() { } UiModalFooterComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({ selector: 'ui-modal-footer', template: '', changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush, styles: [__webpack_require__(/*! ./ui-modal-footer.component.scss */ "./src/app/ui-modal/ui-modal-footer/ui-modal-footer.component.scss")] }) ], UiModalFooterComponent); return UiModalFooterComponent; }()); /***/ }), /***/ "./src/app/ui-modal/ui-modal.module.ts": /*!*********************************************!*\ !*** ./src/app/ui-modal/ui-modal.module.ts ***! \*********************************************/ /*! exports provided: UiModalModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UiModalModule", function() { return UiModalModule; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* 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 _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-kit/core */ "./node_modules/@ngx-kit/core/fesm5/ngx-kit-core.js"); /* harmony import */ var _ui_modal_footer_ui_modal_footer_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ui-modal-footer/ui-modal-footer.component */ "./src/app/ui-modal/ui-modal-footer/ui-modal-footer.component.ts"); /* harmony import */ var _ui_modal_ui_modal_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ui-modal/ui-modal.component */ "./src/app/ui-modal/ui-modal/ui-modal.component.ts"); var UiModalModule = /** @class */ (function () { function UiModalModule() { } UiModalModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({ imports: [ _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitClassModule"], ], declarations: [ _ui_modal_ui_modal_component__WEBPACK_IMPORTED_MODULE_5__["UiModalComponent"], _ui_modal_footer_ui_modal_footer_component__WEBPACK_IMPORTED_MODULE_4__["UiModalFooterComponent"], ], exports: [ _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitModalModule"], _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitOverlayModule"], _ui_modal_ui_modal_component__WEBPACK_IMPORTED_MODULE_5__["UiModalComponent"], _ui_modal_footer_ui_modal_footer_component__WEBPACK_IMPORTED_MODULE_4__["UiModalFooterComponent"], ], }) ], UiModalModule); return UiModalModule; }()); /***/ }), /***/ "./src/app/ui-modal/ui-modal.ts": /*!**************************************!*\ !*** ./src/app/ui-modal/ui-modal.ts ***! \**************************************/ /*! exports provided: UiModalModule, UiModalComponent, UiModalFooterComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ui_modal_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ui-modal.module */ "./src/app/ui-modal/ui-modal.module.ts"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UiModalModule", function() { return _ui_modal_module__WEBPACK_IMPORTED_MODULE_0__["UiModalModule"]; }); /* harmony import */ var _ui_modal_ui_modal_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ui-modal/ui-modal.component */ "./src/app/ui-modal/ui-modal/ui-modal.component.ts"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UiModalComponent", function() { return _ui_modal_ui_modal_component__WEBPACK_IMPORTED_MODULE_1__["UiModalComponent"]; }); /* harmony import */ var _ui_modal_footer_ui_modal_footer_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ui-modal-footer/ui-modal-footer.component */ "./src/app/ui-modal/ui-modal-footer/ui-modal-footer.component.ts"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UiModalFooterComponent", function() { return _ui_modal_footer_ui_modal_footer_component__WEBPACK_IMPORTED_MODULE_2__["UiModalFooterComponent"]; }); /***/ }), /***/ "./src/app/ui-modal/ui-modal/ui-modal.component.html": /*!***********************************************************!*\ !*** ./src/app/ui-modal/ui-modal/ui-modal.component.html ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "
\r\n
\r\n
{{ header }}
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n" /***/ }), /***/ "./src/app/ui-modal/ui-modal/ui-modal.component.scss": /*!***********************************************************!*\ !*** ./src/app/ui-modal/ui-modal/ui-modal.component.scss ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = ":host {\n align-items: center;\n background: #d5d9e4;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: fixed;\n right: 0;\n top: 0; }\n\n.modal {\n display: flex;\n flex-direction: column;\n max-height: 90%;\n max-width: 90%; }\n\n.modal.size-s {\n width: 250px; }\n\n.modal.size-m {\n width: 500px; }\n\n.modal.size-l {\n width: 800px; }\n\n.header {\n align-items: center;\n display: flex;\n flex-direction: row;\n padding: 70px 0; }\n\n.header .title {\n flex-grow: 1;\n font-family: 'WienerMelange', serif;\n font-size: 40px; }\n\n.close {\n position: fixed;\n top: 40px;\n right: 40px;\n background: transparent;\n border: none;\n color: #000;\n cursor: pointer;\n margin: 0;\n padding: 0; }\n\n.body {\n flex-grow: 1;\n overflow: auto;\n font-family: 'WienerMelange', serif;\n font-size: 18px;\n padding: 16px;\n background: #ffffff; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3R3ZW50eXRocmVlL21hMjAtc2Fua2V5LWdlbmVyYXRvci9zZy1mcm9udGVuZC9zcmMvYXBwL3VpLW1vZGFsL3VpLW1vZGFsL3VpLW1vZGFsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsbUJBQW1CO0VBQ25CLG1CQUFtQjtFQUNuQixTQUFTO0VBQ1QsYUFBYTtFQUNiLHVCQUF1QjtFQUN2QixPQUFPO0VBQ1AsZUFBZTtFQUNmLFFBQVE7RUFDUixNQUFNLEVBQUE7O0FBR1I7RUFHRSxhQUFhO0VBQ2Isc0JBQXNCO0VBQ3RCLGVBQWU7RUFDZixjQUFjLEVBQUE7O0FBTmhCO0lBUUksWUFBWSxFQUFBOztBQVJoQjtJQVdJLFlBQVksRUFBQTs7QUFYaEI7SUFjSSxZQUFZLEVBQUE7O0FBSWhCO0VBQ0UsbUJBQW1CO0VBRW5CLGFBQWE7RUFDYixtQkFBbUI7RUFDbkIsZUFBZSxFQUFBOztBQUxqQjtJQU9JLFlBQVk7SUFDWixtQ0FBbUM7SUFDbkMsZUFBZSxFQUFBOztBQUluQjtFQUNFLGVBQWU7RUFDZixTQUFTO0VBQ1QsV0FBVztFQUNYLHVCQUF1QjtFQUN2QixZQUFZO0VBQ1osV0FBV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mVjdGlvbjogcm93O1xyXG4gIHBhZGRpbmc6IDcwcHggMDtcclxuICAudGl0bGUge1xyXG4gICAgZmxleC1ncm93OiAxO1xyXG4gICAgZm9udC1mYW1pbHk6ICdXaWVuZXJNZWxhbmdlJywgc2VyaWY7XHJcbiAgICBmb250LXNpemU6IDQwcHg7XHJcbiAgfVxyXG59XHJcblxyXG4uY2xvc2Uge1xyXG4gIHBvc2l0aW9uOiBmaXhlZDtcclxuICB0b3A6IDQwcHg7XHJcbiAgcmlnaHQ6IDQwcHg7XHJcbiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XHJcbiAgYm9yZGVyOiBub25lO1xyXG4gIGNvbG9yOiAjMDAwO1xyXG4gIGN1cnNvcjogcG9pbnRlcjtcclxuICBtYXJnaW46IDA7XHJcbiAgcGFkZGluZzogMDtcclxufVxyXG5cclxuLmJvZHkge1xyXG4gIGZsZXgtZ3JvdzogMTtcclxuICBvdmVyZmxvdzogYXV0bztcclxuICBmb250LWZhbWlseTogJ1dpZW5lck1lbGFuZ2UnLCBzZXJpZjtcclxuICBmb250LXNpemU6IDE4cHg7XHJcbiAgcGFkZGluZzogMTZweDtcclxuICBiYWNrZ3JvdW5kOiAjZmZmZmZmO1xyXG59XHJcbiJdfQ== */" /***/ }), /***/ "./src/app/ui-modal/ui-modal/ui-modal.component.ts": /*!*********************************************************!*\ !*** ./src/app/ui-modal/ui-modal/ui-modal.component.ts ***! \*********************************************************/ /*! exports provided: UiModalComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UiModalComponent", function() { return UiModalComponent; }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm5/animations.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js"); /* harmony import */ var _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-kit/core */ "./node_modules/@ngx-kit/core/fesm5/ngx-kit-core.js"); var UiModalComponent = /** @class */ (function () { function UiModalComponent(ref, fm) { this.ref = ref; this.fm = fm; this.size = 'm'; } UiModalComponent.prototype.ngOnInit = function () { this.fm.autoCapture = true; this.fm.init(); }; UiModalComponent.prototype.clickHandler = function (event) { if (event.target === event.currentTarget) { this.ref.close(); } }; UiModalComponent.prototype.close = function () { this.ref.close(); }; tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", String) ], UiModalComponent.prototype, "header", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", String) ], UiModalComponent.prototype, "size", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["HostBinding"])('@modalHost'), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", void 0) ], UiModalComponent.prototype, "hostTrigger", void 0); tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["HostListener"])('click', ['$event']), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Function), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [Object]), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:returntype", void 0) ], UiModalComponent.prototype, "clickHandler", null); UiModalComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({ selector: 'ui-modal', template: __webpack_require__(/*! ./ui-modal.component.html */ "./src/app/ui-modal/ui-modal/ui-modal.component.html"), providers: [ _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitFocusManagerService"], ], changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('modalHost', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter, :leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["query"])('@*', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animateChild"])(), { optional: true }), ]), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('fade', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-out', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, })), ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('250ms ease-in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, })), ]), ]), ], styles: [__webpack_require__(/*! ./ui-modal.component.scss */ "./src/app/ui-modal/ui-modal/ui-modal.component.scss")] }), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitModalRef"], _ngx_kit_core__WEBPACK_IMPORTED_MODULE_3__["KitFocusManagerService"]]) ], UiModalComponent); return UiModalComponent; }()); /***/ }), /***/ "./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; }); // This file can be replaced during build by using the `fileReplacements` array. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. var environment = { production: false }; /* * For easier debugging in development mode, you can import the following file * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. * * This import should be commented out in production mode because it will have a negative impact * on performance if an error is thrown. */ // import 'zone.js/dist/zone-error'; // Included with Angular CLI. /***/ }), /***/ "./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 _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts"); /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts"); if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) { Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])(); } Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"]) .catch(function (err) { return console.error(err); }); /***/ }), /***/ 0: /*!***************************!*\ !*** multi ./src/main.ts ***! \***************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! /home/twentythree/ma20-sankey-generator/sg-frontend/src/main.ts */"./src/main.ts"); /***/ }) },[[0,"runtime","vendor"]]]); //# sourceMappingURL=main.js.map