new-front-common-library 0.0.21 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ngx-translate/core'), require('@angular/common/http'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('ngx-cookie-service'), require('@angular/platform-browser'), require('@angular/material/card'), require('ngx-permissions'), require('@angular/material/progress-spinner'), require('@angular/router'), require('@angular/flex-layout/flex'), require('codelyzer/util/isNotNullOrUndefined'), require('@angular/cdk/overlay'), require('@angular/material/toolbar'), require('@angular/material/menu'), require('@angular/material/button'), require('@angular/flex-layout/extended'), require('@angular/forms'), require('@angular/material/dialog'), require('crypto-js'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/icon'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/table'), require('@angular/material/select'), require('@angular/flex-layout'), require('@angular/material/core')) :
3
- typeof define === 'function' && define.amd ? define('new-front-common-library', ['exports', '@angular/core', '@ngx-translate/core', '@angular/common/http', '@angular/common', 'rxjs', 'rxjs/operators', 'ngx-cookie-service', '@angular/platform-browser', '@angular/material/card', 'ngx-permissions', '@angular/material/progress-spinner', '@angular/router', '@angular/flex-layout/flex', 'codelyzer/util/isNotNullOrUndefined', '@angular/cdk/overlay', '@angular/material/toolbar', '@angular/material/menu', '@angular/material/button', '@angular/flex-layout/extended', '@angular/forms', '@angular/material/dialog', 'crypto-js', '@angular/material/form-field', '@angular/material/input', '@angular/material/icon', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/table', '@angular/material/select', '@angular/flex-layout', '@angular/material/core'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['new-front-common-library'] = {}, global.ng.core, global.i2$1, global.ng.common.http, global.ng.common, global.rxjs, global.rxjs.operators, global.i1, global.ng.platformBrowser, global.ng.material.card, global.i1$2, global.ng.material.progressSpinner, global.ng.router, global.ng.flexLayout.flex, global.isNotNullOrUndefined, global.ng.cdk.overlay, global.ng.material.toolbar, global.ng.material.menu, global.ng.material.button, global.ng.flexLayout.extended, global.ng.forms, global.ng.material.dialog, global.CryptoJS, global.ng.material.formField, global.ng.material.input, global.ng.material.icon, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.table, global.ng.material.select, global.ng.flexLayout, global.ng.material.core));
5
- }(this, (function (exports, i0, i2$1, i2, i15, rxjs, operators, i1, i1$1, i4, i1$2, i5, i1$3, i14, isNotNullOrUndefined, i9, i11, i12, i13, i16, i10, i1$4, CryptoJS, i7, i12$1, icon, divider, tooltip, table, select, flexLayout, core) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ngx-translate/core'), require('@angular/common/http'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('ngx-cookie-service'), require('@angular/platform-browser'), require('@angular/material/card'), require('ngx-permissions'), require('@angular/material/progress-spinner'), require('@angular/router'), require('@angular/flex-layout/flex'), require('codelyzer/util/isNotNullOrUndefined'), require('@angular/cdk/overlay'), require('elasticsearch-browser'), require('@angular/material/toolbar'), require('@angular/material/menu'), require('@angular/material/form-field'), require('@angular/material/button'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/icon'), require('@angular/flex-layout/extended'), require('@angular/material/input'), require('@angular/forms'), require('@angular/material/dialog'), require('crypto-js'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/table'), require('@angular/material/select'), require('@angular/flex-layout')) :
3
+ typeof define === 'function' && define.amd ? define('new-front-common-library', ['exports', '@angular/core', '@ngx-translate/core', '@angular/common/http', '@angular/common', 'rxjs', 'rxjs/operators', 'ngx-cookie-service', '@angular/platform-browser', '@angular/material/card', 'ngx-permissions', '@angular/material/progress-spinner', '@angular/router', '@angular/flex-layout/flex', 'codelyzer/util/isNotNullOrUndefined', '@angular/cdk/overlay', 'elasticsearch-browser', '@angular/material/toolbar', '@angular/material/menu', '@angular/material/form-field', '@angular/material/button', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/icon', '@angular/flex-layout/extended', '@angular/material/input', '@angular/forms', '@angular/material/dialog', 'crypto-js', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/table', '@angular/material/select', '@angular/flex-layout'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['new-front-common-library'] = {}, global.ng.core, global.i2$1, global.ng.common.http, global.ng.common, global.rxjs, global.rxjs.operators, global.i1, global.ng.platformBrowser, global.ng.material.card, global.i1$2, global.ng.material.progressSpinner, global.ng.router, global.ng.flexLayout.flex, global.isNotNullOrUndefined, global.ng.cdk.overlay, global.elasticsearchBrowser, global.ng.material.toolbar, global.ng.material.menu, global.ng.material.formField, global.ng.material.button, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.icon, global.ng.flexLayout.extended, global.ng.material.input, global.ng.forms, global.ng.material.dialog, global.CryptoJS, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.table, global.ng.material.select, global.ng.flexLayout));
5
+ }(this, (function (exports, i0, i2$1, i2, i21, rxjs, operators, i1, i1$1, i4, i1$2, i5, i1$3, i20, isNotNullOrUndefined, i9, elasticsearchBrowser, i13, i14, i7, i16, i17, i18, i19, i22, i24, i10, i1$4, CryptoJS, divider, tooltip, table, select, flexLayout) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -27,24 +27,27 @@
27
27
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
28
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
29
29
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
30
+ var i21__namespace = /*#__PURE__*/_interopNamespace(i21);
31
31
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
32
32
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
33
33
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
34
34
  var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
35
35
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
36
36
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
37
- var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
37
+ var i20__namespace = /*#__PURE__*/_interopNamespace(i20);
38
38
  var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
39
- var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
40
- var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
41
39
  var i13__namespace = /*#__PURE__*/_interopNamespace(i13);
40
+ var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
41
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
42
42
  var i16__namespace = /*#__PURE__*/_interopNamespace(i16);
43
+ var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
44
+ var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
45
+ var i19__namespace = /*#__PURE__*/_interopNamespace(i19);
46
+ var i22__namespace = /*#__PURE__*/_interopNamespace(i22);
47
+ var i24__namespace = /*#__PURE__*/_interopNamespace(i24);
43
48
  var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
44
49
  var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
45
50
  var CryptoJS__namespace = /*#__PURE__*/_interopNamespace(CryptoJS);
46
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
47
- var i12__namespace$1 = /*#__PURE__*/_interopNamespace(i12$1);
48
51
 
49
52
  var WEB_CONFIG = new i0.InjectionToken('WEB_CONFIG');
50
53
  var DEFAULT_WEB_CONFIG = {
@@ -779,7 +782,7 @@
779
782
  if (value === '-' || value === this.perpetuityLabel) {
780
783
  return this.perpetuityLabel;
781
784
  }
782
- return new i15.DatePipe(currentLanguage).transform(value, format);
785
+ return new i21.DatePipe(currentLanguage).transform(value, format);
783
786
  };
784
787
  return LocalDatePipe;
785
788
  }());
@@ -1017,7 +1020,7 @@
1017
1020
  return OverlayComponent;
1018
1021
  }());
1019
1022
  OverlayComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: OverlayComponent, deps: [{ token: i1__namespace$3.Router }, { token: i2__namespace$1.TranslateService }, { token: OverlayService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1020
- OverlayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: OverlayComponent, selector: "sc-overlay", ngImport: i0__namespace, template: "<div class=\"blackshield\" *ngIf=\"show\"></div>\r\n\r\n<div fxLayoutAlign=\"center center\" *ngIf=\"show\">\r\n <mat-card class=\"overshield\" fxLayoutAlign=\"center center\">\r\n <mat-card-content fxLayout=\"row\" fxLayoutAlign=\"space-between center\" style=\"width: 100%\">\r\n <span>{{ message || 'CORE.OVERLAY.LOADING' | translate}}</span>\r\n <mat-spinner diameter=\"40\"></mat-spinner>\r\n </mat-card-content>\r\n </mat-card>\r\n</div>\r\n", styles: [".blackshield{position:fixed;display:block!important;top:0;left:0;width:100%;background:black;opacity:.8;height:100vh;z-index:2000000;padding-top:150px}.overshield{position:fixed;width:30%;min-height:6vh;margin-top:250px;z-index:20000000}\n"], components: [{ type: i4__namespace.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i5__namespace.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i15__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i4__namespace.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i14__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }], pipes: { "translate": i2__namespace$1.TranslatePipe } });
1023
+ OverlayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: OverlayComponent, selector: "sc-overlay", ngImport: i0__namespace, template: "<div class=\"blackshield\" *ngIf=\"show\"></div>\r\n\r\n<div fxLayoutAlign=\"center center\" *ngIf=\"show\">\r\n <mat-card class=\"overshield\" fxLayoutAlign=\"center center\">\r\n <mat-card-content fxLayout=\"row\" fxLayoutAlign=\"space-between center\" style=\"width: 100%\">\r\n <span>{{ message || 'CORE.OVERLAY.LOADING' | translate}}</span>\r\n <mat-spinner diameter=\"40\"></mat-spinner>\r\n </mat-card-content>\r\n </mat-card>\r\n</div>\r\n", styles: [".blackshield{position:fixed;display:block!important;top:0;left:0;width:100%;background:black;opacity:.8;height:100vh;z-index:2000000;padding-top:150px}.overshield{position:fixed;width:30%;min-height:6vh;margin-top:250px;z-index:20000000}\n"], components: [{ type: i4__namespace.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i5__namespace.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i21__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i20__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i4__namespace.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i20__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }], pipes: { "translate": i2__namespace$1.TranslatePipe } });
1021
1024
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: OverlayComponent, decorators: [{
1022
1025
  type: i0.Component,
1023
1026
  args: [{
@@ -1080,6 +1083,85 @@
1080
1083
  type: i0.Injectable
1081
1084
  }], ctorParameters: function () { return []; } });
1082
1085
 
1086
+ var LangService = /** @class */ (function () {
1087
+ function LangService(translate, localStorage) {
1088
+ this.translate = translate;
1089
+ this.localStorage = localStorage;
1090
+ this.switchLangEmitter = new i0.EventEmitter();
1091
+ }
1092
+ LangService.prototype.translateLanguage = function () {
1093
+ this.translate.addLangs(['en', 'fr', 'de']);
1094
+ if (this.localStorage.exist('lang')) {
1095
+ this.translate.use(this.localStorage.get('lang'));
1096
+ }
1097
+ else {
1098
+ this.translate.use(this.translate.getLangs().indexOf(this.translate.getBrowserLang()) === -1 ? this.translate.getBrowserLang() : 'en');
1099
+ }
1100
+ this.localStorage.post('lang', this.translate.currentLang);
1101
+ };
1102
+ // emit an event when local storage change
1103
+ LangService.prototype.switchLang = function () {
1104
+ this.switchLangEmitter.emit();
1105
+ };
1106
+ return LangService;
1107
+ }());
1108
+ LangService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: LangService, deps: [{ token: i2__namespace$1.TranslateService }, { token: LocalStorageService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1109
+ LangService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: LangService });
1110
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: LangService, decorators: [{
1111
+ type: i0.Injectable
1112
+ }], ctorParameters: function () { return [{ type: i2__namespace$1.TranslateService }, { type: LocalStorageService }]; } });
1113
+
1114
+ var ElasticsearchService = /** @class */ (function () {
1115
+ function ElasticsearchService(translateService, http) {
1116
+ this.translateService = translateService;
1117
+ this.http = http;
1118
+ this.elasticAPI = 'https://vpc-unity-search-dev-nm5ydumospctjfaatstfjvoqey.eu-west-1.es.amazonaws.com';
1119
+ // super();
1120
+ }
1121
+ ElasticsearchService.prototype.getElasticsearchClient = function () {
1122
+ if (!this.client) {
1123
+ this.client = new elasticsearchBrowser.Client({
1124
+ host: this.elasticAPI
1125
+ });
1126
+ }
1127
+ return this.client;
1128
+ };
1129
+ ElasticsearchService.prototype.getDocuments = function (text, documentIndex) {
1130
+ // @ts-ignore
1131
+ return rxjs.from(this.getElasticsearchClient().search({
1132
+ index: documentIndex,
1133
+ body: {
1134
+ query: {
1135
+ query_string: {
1136
+ query: text + '*',
1137
+ fields: ['poNumber', 'ean', 'title', 'basketNumber', 'works.miloCode', 'works.title']
1138
+ }
1139
+ }
1140
+ }
1141
+ }));
1142
+ };
1143
+ ElasticsearchService.prototype.getDocumentsContent = function (searchResponse) {
1144
+ return searchResponse.hits.hits ? searchResponse.hits.hits.map(function (v) { return v._source; }) : [];
1145
+ };
1146
+ ElasticsearchService.prototype.rapidSearch = function (text) {
1147
+ return this.http.post(this.elasticAPI + 'unity*/_search', {
1148
+ query: {
1149
+ query_string: {
1150
+ query: text
1151
+ }
1152
+ }
1153
+ })
1154
+ // .pipe(catchError(this.handleError));
1155
+ .pipe(operators.map(function (object) { return object.hints.hints; }));
1156
+ };
1157
+ return ElasticsearchService;
1158
+ }());
1159
+ ElasticsearchService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: ElasticsearchService, deps: [{ token: i2__namespace$1.TranslateService }, { token: i2__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1160
+ ElasticsearchService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: ElasticsearchService });
1161
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: ElasticsearchService, decorators: [{
1162
+ type: i0.Injectable
1163
+ }], ctorParameters: function () { return [{ type: i2__namespace$1.TranslateService }, { type: i2__namespace.HttpClient }]; } });
1164
+
1083
1165
  var en = {
1084
1166
  //HEADER MENU COMMERCIAL
1085
1167
  'COMMON.HEADER.MENU.DASHBOARD': 'Dashboard',
@@ -1119,7 +1201,13 @@
1119
1201
  'COMMON.HEADER.CREATION.CREATION_CESS': 'create a cession contract',
1120
1202
  // HEADER CONNECTED AS
1121
1203
  'COMMON.HEADER.CONNECTED_AS': 'Connected as',
1122
- 'COMMON.HEADER.STOP': 'Stop'
1204
+ 'COMMON.HEADER.STOP': 'Stop',
1205
+ // HEADER PARAMETERS
1206
+ 'COMMON.HEADER.PARAMETERS.THEME': 'switch theme',
1207
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES': 'change language',
1208
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.FRENCH': 'fr',
1209
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.ENGLISH': 'en',
1210
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.DEUTCH': 'de'
1123
1211
  };
1124
1212
 
1125
1213
  var fr = {
@@ -1161,7 +1249,13 @@
1161
1249
  'COMMON.HEADER.CREATION.CREATION_CESS': 'créer un contrat de cession',
1162
1250
  // HEADER CONNECTED AS
1163
1251
  'COMMON.HEADER.CONNECTED_AS': 'Connectée en tant que',
1164
- 'COMMON.HEADER.STOP': 'Arrêter'
1252
+ 'COMMON.HEADER.STOP': 'Arrêter',
1253
+ // HEADER PARAMETERS
1254
+ 'COMMON.HEADER.PARAMETERS.THEME': 'changer le theme',
1255
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES': 'changer de langue',
1256
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.FRENCH': 'fr',
1257
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.ENGLISH': 'en',
1258
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.DEUTCH': 'de'
1165
1259
  };
1166
1260
 
1167
1261
  var de = {
@@ -1203,7 +1297,13 @@
1203
1297
  'COMMON.HEADER.CREATION.CREATION_CESS': 'create a cession contract',
1204
1298
  // HEADER CONNECTED AS
1205
1299
  'COMMON.HEADER.CONNECTED_AS': 'Connected as',
1206
- 'COMMON.HEADER.STOP': 'Stop'
1300
+ 'COMMON.HEADER.STOP': 'Stop',
1301
+ // HEADER PARAMETERS
1302
+ 'COMMON.HEADER.PARAMETERS.THEME': 'switch theme',
1303
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES': 'change language',
1304
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.FRENCH': 'fr',
1305
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.ENGLISH': 'en',
1306
+ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.DEUTCH': 'de'
1207
1307
  };
1208
1308
 
1209
1309
  var CommonTranslatePipe = /** @class */ (function () {
@@ -1240,7 +1340,7 @@
1240
1340
  }], ctorParameters: function () { return [{ type: LocalStorageService }]; } });
1241
1341
 
1242
1342
  var HeaderComponent = /** @class */ (function () {
1243
- function HeaderComponent(router, localStorageEvents, localStorage, toasterService, translate, commonApiService, sessionStorageService, permissionsService, overlayContainer, cookieService, config) {
1343
+ function HeaderComponent(router, localStorageEvents, localStorage, toasterService, translate, commonApiService, sessionStorageService, permissionsService, overlayContainer, cookieService, langService, elasticsearchService, config) {
1244
1344
  this.router = router;
1245
1345
  this.localStorageEvents = localStorageEvents;
1246
1346
  this.localStorage = localStorage;
@@ -1251,6 +1351,8 @@
1251
1351
  this.permissionsService = permissionsService;
1252
1352
  this.overlayContainer = overlayContainer;
1253
1353
  this.cookieService = cookieService;
1354
+ this.langService = langService;
1355
+ this.elasticsearchService = elasticsearchService;
1254
1356
  this.config = config;
1255
1357
  this.toogleMenuEvent = new i0.EventEmitter();
1256
1358
  this.isHide = false;
@@ -1358,10 +1460,24 @@
1358
1460
  this.historyList.push({ type: 'NO_HISTORY_AVAILABLE', id: null, ref: null });
1359
1461
  }
1360
1462
  };
1463
+ HeaderComponent.prototype.switchLang = function (lang) {
1464
+ this.localStorage.post('lang', lang);
1465
+ this.translate.use(lang);
1466
+ this.langService.switchLang();
1467
+ };
1468
+ HeaderComponent.prototype.rapidSearch = function (event) {
1469
+ var _this = this;
1470
+ if (event && event.target && event.target.value && event.target.value.length >= 2) {
1471
+ this.elasticsearchService.getDocuments(event.target.value, 'unity*').subscribe(function (searchResponse) {
1472
+ // @ts-ignore
1473
+ _this.documents = _this.elasticsearchService.getDocumentsContent(searchResponse);
1474
+ });
1475
+ }
1476
+ };
1361
1477
  return HeaderComponent;
1362
1478
  }());
1363
- HeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: HeaderComponent, deps: [{ token: i1__namespace$3.Router }, { token: LocalStorageEventsService }, { token: LocalStorageService }, { token: ToasterEventsService }, { token: i2__namespace$1.TranslateService }, { token: CommonApiService }, { token: SessionStorageService }, { token: PermissionsService }, { token: i9__namespace.OverlayContainer }, { token: i1__namespace.CookieService }, { token: WEB_CONFIG }], target: i0__namespace.ɵɵFactoryTarget.Component });
1364
- HeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: HeaderComponent, selector: "sc-header", outputs: { toogleMenuEvent: "toogleMenuEvent" }, host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<mat-toolbar fxFlex=\"row\" fxLayoutAlign=\"space-between center\" class=\"sc-header\" [ngClass]=\"{ 'light-header': theme !== 'dark' }\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center end\">\r\n <img class=\"logo-unity\" src=\"./assets/img/unity_logo_48x48.png\">\r\n <span [attr.id]=\"'env-' + env\" class=\"env\" *ngIf=\"env != 'prod'\">{{env}}</span>\r\n </span>\r\n <span fxFlex=\"1\" class=\"header-separator\"></span>\r\n <span fxFlex=\"5\" class=\"material-icons header-icon\" (click)=\"getHistory()\" [matMenuTriggerFor]=\"menuHistory\">history</span>\r\n <mat-menu #menuHistory=\"matMenu\" class=\"action-menu\">\r\n <ng-container *ngFor=\"let history of historyList\" [ngSwitch]=\"history.type\">\r\n <button mat-menu-item *ngSwitchCase=\"'PRODUCT'\" (click)=\"navigate('expenditure-commitment', '/purchase-orders/' + history.id)\">\r\n <span class=\"material-icons-outlined\">theaters</span>\r\n {{ 'COMMON.HEADER.HISTORY.PRODUCT' | commonTranslate : lang }}{{history.type}} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'PO'\" (click)=\"navigate('expenditure-commitment', '/purchase-orders/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >receipt_long</span>\r\n {{ 'COMMON.HEADER.HISTORY.PO' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'DEAL'\" (click)=\"navigate('commercial', '/deal/consult/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >local_offer</span>\r\n {{ 'COMMON.HEADER.HISTORY.DEAL' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'WORK'\" (click)=\"navigate('commercial', '/work-record/consult/'+ history.id +'/general')\">\r\n <span class=\"material-icons-outlined\" >theaters</span>\r\n {{ 'COMMON.HEADER.HISTORY.WORK' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'CONTRACT_ACQ'\" (click)=\"navigate('legal', '/contracts/contract-acq/consult/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >assignment</span>\r\n {{ 'COMMON.HEADER.HISTORY.CONTRACT-ACQ' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'CONTRACT_CESS'\" (click)=\"navigate('legal', '/contracts/contract-cess/consult/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >article</span>\r\n {{ 'COMMON.HEADER.HISTORY.CONTRACT-CESS' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'BUDGET'\" (click)=\"navigate('expenditure-commitment', '/budget/form/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >payments</span>\r\n {{ 'COMMON.HEADER.HISTORY.BUDGET' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'NO_HISTORY_AVAILABLE'\">\r\n <span class=\"material-icons-outlined\" >not_interested</span>\r\n {{ 'COMMON.HEADER.HISTORY.NO_HISTORY_AVAILABLE' | commonTranslate : lang }}\r\n </button>\r\n </ng-container>\r\n </mat-menu>\r\n <span fxFlex=\"5\" [matMenuTriggerFor]=\"menu_global\" class=\"material-icons header-icon\">grid_view</span>\r\n <mat-menu #menu_global=\"matMenu\" class=\"action-menu\">\r\n <!--DASHBOARD-->\r\n <button mat-menu-item (click)=\"navigate(null, '/dashboard')\">\r\n <span class=\"material-icons-outlined\">apps</span>\r\n <span>{{ 'COMMON.HEADER.MENU.DASHBOARD' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--COMMERCIAL-->\r\n <span *ngxPermissionsOnly=\"['COMMERCIAL']\">\r\n <button mat-menu-item (click)=\"navigate('commercial', '/deal/search')\">\r\n <span class=\"material-icons-outlined\">local_offer</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.DEAL' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('commercial', '/work-record/search')\">\r\n <span class=\"material-icons-outlined\">theaters</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.WORK_RECORD' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('commercial', '/work-record/vod-search')\">\r\n <span class=\"material-icons-outlined\">manage_search</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.VOD_SEARCH' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item *ngxPermissionsOnly=\"['ACCOUNTANT', 'ADMINISTRATIVE_CONTROLLER']\"\r\n (click)=\"navigate('commercial', '/accounting-closing/consult')\">\r\n <span class=\"material-icons-outlined\">account_balance_wallet</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.ACCOUNTING_CLOSING' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('commercial', '/invoice/search')\">\r\n <span class=\"material-icons-outlined\">receipt</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.INVOICE' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item *ngxPermissionsOnly=\"['ACCOUNTANT', 'ADMINISTRATIVE_CONTROLLER']\"\r\n (click)=\"navigate('commercial', '/turnover/search')\">\r\n <span class=\"material-icons-outlined\">request_quote</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.TURNOVER' | commonTranslate: lang }}</span>\r\n </button>\r\n </span>\r\n <!--USER-->\r\n <button mat-menu-item *ngIf=\"user && user.admin\" (click)=\"navigate('user', '/account/authorization/search')\">\r\n <span class=\"material-icons-outlined\">manage_accounts</span>\r\n <span>{{ 'COMMON.HEADER.MENU.USER.SECTION_TITLE' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--REFERENTIAL-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['MODULE REF']\" (click)=\"navigate('referential', '/support/list')\">\r\n <span class=\"material-icons-outlined\">support</span>\r\n <span>{{ 'COMMON.HEADER.MENU.REFERENTIAL.SUPPORT' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--BATCH-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['MODULE REF']\" (click)=\"navigate('batch', '/jobs/referential')\">\r\n <span class=\"material-icons-outlined\">autorenew</span>\r\n <span>{{ 'COMMON.HEADER.MENU.REFERENTIAL.BATCH' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--TV DATA-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['TVDATA']\" (click)=\"navigate('tvdata', '/infos-center')\">\r\n <span class=\"material-icons-outlined\">source</span>\r\n <span>{{ 'COMMON.HEADER.MENU.TV-DATA' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--EXPENDITURE COMMITMENT-->\r\n <button mat-menu-item *ngxPermissionsExcept=\"['UNIVERSAL_ROLE']\" (click)=\"navigate('expenditure-commitment', '/home/commands')\">\r\n <span class=\"material-icons-outlined\">receipt_long</span>\r\n <span>{{ 'COMMON.HEADER.MENU.EXPENDITURE_COMMITMENT' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--BI-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['MODULE BI']\" (click)=\"navigate('bi', '/simple-search/form')\">\r\n <span class=\"material-icons-outlined\">travel_explore</span>\r\n <span>{{ 'COMMON.HEADER.MENU.BI.SEARCH' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--LEGAL-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['LEGAL']\" (click)=\"navigate('legal', '/contracts/menu/legals-det')\">\r\n <span class=\"material-icons-outlined\">gavel</span>\r\n <span>{{ 'COMMON.HEADER.MENU.LEGAL' | commonTranslate: lang }}</span>\r\n </button>\r\n </mat-menu>\r\n\r\n <div fxFlex=\"60\" class=\"global-search\">\r\n <i class=\"material-icons global-search-icon header-icon\" (click)=\"search()\">search</i>\r\n <span class=\"global-search-separator\"></span>\r\n\r\n <input fxFlex=\"80\" class=\"global-search-input\" (keyup.enter)=\"search()\" placeholder=\"{{ 'COMMON.HEADER.GLOBAL_SEARCH.PLACEHOLDER' | commonTranslate: lang }}\"\r\n [(ngModel)]=\"inputText\"/>\r\n <button mat-raised-button class=\"btn advanced-button\" (click)=\"search()\">\r\n <span class=\"material-icons icon\" >flash_on</span>\r\n {{ 'COMMON.HEADER.GLOBAL_SEARCH.ADVANCED' | commonTranslate: lang }}\r\n </button>\r\n </div>\r\n\r\n <span fxFlex=\"10\"></span>\r\n <span fxFlex=\"5\" class=\"material-icons-outlined header-icon\" [matMenuTriggerFor]=\"menu\">add_box</span>\r\n <mat-menu #menu=\"matMenu\" class=\"action-menu\">\r\n <button mat-menu-item (click)=\"navigate('video', '/product/form')\">\r\n <span class=\"material-icons-outlined\">theaters</span>\r\n {{ 'COMMON.HEADER.CREATION.PRODUCT' | commonTranslate: lang }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('expenditure-commitment', '/purchase-orders/form')\">\r\n <span class=\"material-icons-outlined\">receipt_long</span>\r\n {{ 'COMMON.HEADER.CREATION.PO' | commonTranslate: lang }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('commercial', '/deal/form')\">\r\n <span class=\"material-icons-outlined\">local_offer</span>\r\n {{ 'COMMON.HEADER.CREATION.DEAL' | commonTranslate: lang }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('legal', '/contracts/menu/contracts-acq')\">\r\n <span class=\"material-icons-outlined\">assignment</span>\r\n {{ 'COMMON.HEADER.CREATION.CREATION_ACQ' | commonTranslate: lang }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('legal', '/contracts/menu/contracts-cess')\">\r\n <span class=\"material-icons-outlined\">article</span>\r\n {{ 'COMMON.HEADER.CREATION.CREATION_CESS' | commonTranslate: lang }}\r\n </button>\r\n </mat-menu>\r\n\r\n <div *ngIf=\"user && user.secondary\" class=\"connected-as\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"10px\">\r\n <span>\r\n {{ 'COMMON.HEADER.CONNECTED_AS' | commonTranslate: lang }} {{user.login + ' - ' + user.firstName + ' ' + user.name }}\r\n </span>\r\n\r\n <button *ngIf=\"user.secondary\" color=\"warn\" mat-raised-button (click)=\"stopIdentityTheft()\">\r\n {{ 'CORE.STOP' | commonTranslate: lang }}\r\n </button>\r\n </div>\r\n <span fxFlex=\"1\" class=\"header-separator\"></span>\r\n <span fxFlex=\"5\" (click)=\"navigate('user', '/account/settings')\" class=\"material-icons-outlined header-icon\">settings</span>\r\n </mat-toolbar>\r\n\r\n", styles: [".sc-header{height:64px;position:fixed;z-index:999}.logo-unity{height:48px;width:48px}.header-icon{width:22px;height:20px}.global-search{height:40px;background:#EFF3F6;padding:0;margin-left:30px;border-radius:8px}.global-search-icon{width:18px;height:18px;margin:10px 12px 10px 10px}.global-search-input{background:#EFF3F6;border:none;margin-left:10px;font-size:14px!important}.global-search-input:focus{outline:none}.global-search-separator{display:inline-block;height:70%;border-right:2px solid #D3DFEC;margin-top:6px}.advanced-button{width:90px!important;min-width:90px!important;height:24px;background:#7C87FF;border:none;box-shadow:0 2px 6px #445d7b29,inset 0 2px 6px #ffffff14,inset 0 -2px 4px #445d7b0f;border-radius:4px;line-height:12px;color:#fff;margin:auto 5px auto auto;cursor:pointer;padding:0!important}.advanced-button .icon{font-size:12px;vertical-align:middle}.sc-header .header-icon{color:#809ec1;cursor:pointer;text-align:center}.header-separator{display:inline-block;height:25%;margin-top:6px}.connected-as{font-size:12px}.user-thumb{margin-right:16px;width:40px;height:40px}#env-uat{background-color:#809ec1;color:#fff}#env-dev{background-color:#809ec1;color:#fff}#env-sbx{background-color:#809ec1;color:#fff}.env{color:#fff;font-size:10px;border-radius:1px;padding:0 5px;line-height:16px;height:16px}.center{text-align:center}.mr-10{margin-right:10px}.mr-20{margin-right:20px}.mr-30{margin-right:30px}.mb-2{margin-bottom:2px}\n"], components: [{ type: i11__namespace.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i12__namespace.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i12__namespace.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i13__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i14__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i14__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i15__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i16__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i14__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i15__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i12__namespace.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i15__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i15__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i15__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace$2.NgxPermissionsDirective, selector: "[ngxPermissionsOnly],[ngxPermissionsExcept]", inputs: ["ngxPermissionsOnly", "ngxPermissionsOnlyThen", "ngxPermissionsOnlyElse", "ngxPermissionsExcept", "ngxPermissionsExceptElse", "ngxPermissionsExceptThen", "ngxPermissionsThen", "ngxPermissionsElse", "ngxPermissionsOnlyAuthorisedStrategy", "ngxPermissionsOnlyUnauthorisedStrategy", "ngxPermissionsExceptUnauthorisedStrategy", "ngxPermissionsExceptAuthorisedStrategy", "ngxPermissionsUnauthorisedStrategy", "ngxPermissionsAuthorisedStrategy"], outputs: ["permissionsAuthorized", "permissionsUnauthorized"] }, { type: i10__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i14__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }], pipes: { "commonTranslate": CommonTranslatePipe } });
1479
+ HeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: HeaderComponent, deps: [{ token: i1__namespace$3.Router }, { token: LocalStorageEventsService }, { token: LocalStorageService }, { token: ToasterEventsService }, { token: i2__namespace$1.TranslateService }, { token: CommonApiService }, { token: SessionStorageService }, { token: PermissionsService }, { token: i9__namespace.OverlayContainer }, { token: i1__namespace.CookieService }, { token: LangService }, { token: ElasticsearchService }, { token: WEB_CONFIG }], target: i0__namespace.ɵɵFactoryTarget.Component });
1480
+ HeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: HeaderComponent, selector: "sc-header", outputs: { toogleMenuEvent: "toogleMenuEvent" }, host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<mat-toolbar fxFlex=\"row\" fxLayoutAlign=\"space-between center\" class=\"sc-header\" [ngClass]=\"{ 'light-header': theme !== 'dark' }\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center end\">\r\n <img class=\"logo-unity\" src=\"./assets/img/unity_logo_48x48.png\">\r\n <span [attr.id]=\"'env-' + env\" class=\"env\" *ngIf=\"env != 'prod'\">{{env}}</span>\r\n </span>\r\n <span fxFlex=\"1\" class=\"header-separator\"></span>\r\n <span fxFlex=\"5\" class=\"material-icons header-icon\" (click)=\"getHistory()\" [matMenuTriggerFor]=\"menuHistory\">history</span>\r\n <mat-menu #menuHistory=\"matMenu\" class=\"action-menu\">\r\n <ng-container *ngFor=\"let history of historyList\" [ngSwitch]=\"history.type\">\r\n <button mat-menu-item *ngSwitchCase=\"'PRODUCT'\" (click)=\"navigate('expenditure-commitment', '/purchase-orders/' + history.id)\">\r\n <span class=\"material-icons-outlined\">theaters</span>\r\n {{ 'COMMON.HEADER.HISTORY.PRODUCT' | commonTranslate : lang }}{{history.type}} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'PO'\" (click)=\"navigate('expenditure-commitment', '/purchase-orders/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >receipt_long</span>\r\n {{ 'COMMON.HEADER.HISTORY.PO' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'DEAL'\" (click)=\"navigate('commercial', '/deal/consult/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >local_offer</span>\r\n {{ 'COMMON.HEADER.HISTORY.DEAL' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'WORK'\" (click)=\"navigate('commercial', '/work-record/consult/'+ history.id +'/general')\">\r\n <span class=\"material-icons-outlined\" >theaters</span>\r\n {{ 'COMMON.HEADER.HISTORY.WORK' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'CONTRACT_ACQ'\" (click)=\"navigate('legal', '/contracts/contract-acq/consult/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >assignment</span>\r\n {{ 'COMMON.HEADER.HISTORY.CONTRACT-ACQ' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'CONTRACT_CESS'\" (click)=\"navigate('legal', '/contracts/contract-cess/consult/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >article</span>\r\n {{ 'COMMON.HEADER.HISTORY.CONTRACT-CESS' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'BUDGET'\" (click)=\"navigate('expenditure-commitment', '/budget/form/' + history.id)\">\r\n <span class=\"material-icons-outlined\" >payments</span>\r\n {{ 'COMMON.HEADER.HISTORY.BUDGET' | commonTranslate : lang }} {{history.ref}}\r\n </button>\r\n <button mat-menu-item *ngSwitchCase=\"'NO_HISTORY_AVAILABLE'\">\r\n <span class=\"material-icons-outlined\" >not_interested</span>\r\n {{ 'COMMON.HEADER.HISTORY.NO_HISTORY_AVAILABLE' | commonTranslate : lang }}\r\n </button>\r\n </ng-container>\r\n </mat-menu>\r\n <span fxFlex=\"5\" [matMenuTriggerFor]=\"menu_global\" class=\"material-icons header-icon\">grid_view</span>\r\n <mat-menu #menu_global=\"matMenu\" class=\"action-menu\">\r\n <!--DASHBOARD-->\r\n <button mat-menu-item (click)=\"navigate(null, '/dashboard')\">\r\n <span class=\"material-icons-outlined\">apps</span>\r\n <span>{{ 'COMMON.HEADER.MENU.DASHBOARD' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--COMMERCIAL-->\r\n <span *ngxPermissionsOnly=\"['COMMERCIAL']\">\r\n <button mat-menu-item (click)=\"navigate('commercial', '/deal/search')\">\r\n <span class=\"material-icons-outlined\">local_offer</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.DEAL' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('commercial', '/work-record/search')\">\r\n <span class=\"material-icons-outlined\">theaters</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.WORK_RECORD' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('commercial', '/work-record/vod-search')\">\r\n <span class=\"material-icons-outlined\">manage_search</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.VOD_SEARCH' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item *ngxPermissionsOnly=\"['ACCOUNTANT', 'ADMINISTRATIVE_CONTROLLER']\"\r\n (click)=\"navigate('commercial', '/accounting-closing/consult')\">\r\n <span class=\"material-icons-outlined\">account_balance_wallet</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.ACCOUNTING_CLOSING' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('commercial', '/invoice/search')\">\r\n <span class=\"material-icons-outlined\">receipt</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.INVOICE' | commonTranslate: lang }}</span>\r\n </button>\r\n <button mat-menu-item *ngxPermissionsOnly=\"['ACCOUNTANT', 'ADMINISTRATIVE_CONTROLLER']\"\r\n (click)=\"navigate('commercial', '/turnover/search')\">\r\n <span class=\"material-icons-outlined\">request_quote</span>\r\n <span>{{ 'COMMON.HEADER.MENU.COMMERCIAL.TURNOVER' | commonTranslate: lang }}</span>\r\n </button>\r\n </span>\r\n <!--USER-->\r\n <button mat-menu-item *ngIf=\"user && user.admin\" (click)=\"navigate('user', '/account/authorization/search')\">\r\n <span class=\"material-icons-outlined\">manage_accounts</span>\r\n <span>{{ 'COMMON.HEADER.MENU.USER.SECTION_TITLE' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--REFERENTIAL-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['MODULE REF']\" (click)=\"navigate('referential', '/support/list')\">\r\n <span class=\"material-icons-outlined\">support</span>\r\n <span>{{ 'COMMON.HEADER.MENU.REFERENTIAL.SUPPORT' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--BATCH-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['MODULE REF']\" (click)=\"navigate('batch', '/jobs/referential')\">\r\n <span class=\"material-icons-outlined\">autorenew</span>\r\n <span>{{ 'COMMON.HEADER.MENU.REFERENTIAL.BATCH' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--TV DATA-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['TVDATA']\" (click)=\"navigate('tvdata', '/infos-center')\">\r\n <span class=\"material-icons-outlined\">source</span>\r\n <span>{{ 'COMMON.HEADER.MENU.TV-DATA' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--EXPENDITURE COMMITMENT-->\r\n <button mat-menu-item *ngxPermissionsExcept=\"['UNIVERSAL_ROLE']\" (click)=\"navigate('expenditure-commitment', '/home/commands')\">\r\n <span class=\"material-icons-outlined\">receipt_long</span>\r\n <span>{{ 'COMMON.HEADER.MENU.EXPENDITURE_COMMITMENT' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--BI-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['MODULE BI']\" (click)=\"navigate('bi', '/simple-search/form')\">\r\n <span class=\"material-icons-outlined\">travel_explore</span>\r\n <span>{{ 'COMMON.HEADER.MENU.BI.SEARCH' | commonTranslate: lang }}</span>\r\n </button>\r\n <!--LEGAL-->\r\n <button mat-menu-item *ngxPermissionsOnly=\"['LEGAL']\" (click)=\"navigate('legal', '/contracts/menu/legals-det')\">\r\n <span class=\"material-icons-outlined\">gavel</span>\r\n <span>{{ 'COMMON.HEADER.MENU.LEGAL' | commonTranslate: lang }}</span>\r\n </button>\r\n </mat-menu>\r\n\r\n\r\n <div fxFlex=\"60\" class=\"global-search\">\r\n <i class=\"material-icons global-search-icon header-icon\" (click)=\"search()\">search</i>\r\n <span class=\"global-search-separator\"></span>\r\n <mat-form-field fxFlex=\"100\" floatLabel=\"never\">\r\n <input fxFlex=\"85\" class=\"global-search-input\" placeholder=\"search ...\"\r\n [matAutocomplete]=\"autoSearch\"\r\n [formControlName]=\"'global-search'\"\r\n (keyup)=\"rapidSearch($event)\"\r\n matInput />\r\n <button mat-raised-button class=\"btn advanced-button\" (click)=\"search()\">\r\n <span class=\"material-icons icon\" >flash_on</span>\r\n advanced\r\n </button>\r\n\r\n <mat-autocomplete #autoSearch=\"matAutocomplete\" panelWidth=\"50vw\">\r\n <mat-option\r\n *ngFor=\"let doc of documents\">\r\n <!--PRODUCT-->\r\n <div *ngIf=\"doc.docType === 'PO'\" (click)=\"navigate('expenditure-commitment', '/purchase-orders/' + doc.technicalId)\">\r\n <span class=\"material-icons-outlined rapid-search-type-icon\">receipt_long</span>\r\n <span>{{ doc.poNumber }} - {{ doc.totalAmount | currency: doc.currencyCode:'symbol':undefined:'fr-FR'}}</span>\r\n </div>\r\n <!--PRODUCT-->\r\n <div *ngIf=\"doc.docType === 'PRODUCT'\">\r\n <span class=\"material-icons-outlined rapid-search-type-icon\">movie</span>\r\n <span>{{ doc.title }} ( {{ doc.ean }} ) - {{doc.support}}</span>\r\n </div>\r\n </mat-option>\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n </div>\r\n\r\n <span fxFlex=\"10\"></span>\r\n <span fxFlex=\"5\" class=\"material-icons-outlined header-icon\" [matMenuTriggerFor]=\"menu\">add_box</span>\r\n <mat-menu #menu=\"matMenu\" class=\"action-menu\">\r\n <button mat-menu-item (click)=\"navigate('video', '/product/form')\">\r\n <span class=\"material-icons-outlined\">theaters</span>\r\n {{ 'COMMON.HEADER.CREATION.PRODUCT' | commonTranslate: lang }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('expenditure-commitment', '/purchase-orders/form')\">\r\n <span class=\"material-icons-outlined\">receipt_long</span>\r\n {{ 'COMMON.HEADER.CREATION.PO' | commonTranslate: lang }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('commercial', '/deal/form')\">\r\n <span class=\"material-icons-outlined\">local_offer</span>\r\n {{ 'COMMON.HEADER.CREATION.DEAL' | commonTranslate: lang }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('legal', '/contracts/menu/contracts-acq')\">\r\n <span class=\"material-icons-outlined\">assignment</span>\r\n {{ 'COMMON.HEADER.CREATION.CREATION_ACQ' | commonTranslate: lang }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('legal', '/contracts/menu/contracts-cess')\">\r\n <span class=\"material-icons-outlined\">article</span>\r\n {{ 'COMMON.HEADER.CREATION.CREATION_CESS' | commonTranslate: lang }}\r\n </button>\r\n </mat-menu>\r\n\r\n <div *ngIf=\"user && user.secondary\" class=\"connected-as\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"center center\"\r\n fxLayoutGap=\"10px\">\r\n <span>\r\n {{ 'COMMON.HEADER.CONNECTED_AS' | commonTranslate: lang }} {{user.login + ' - ' + user.firstName + ' ' + user.name }}\r\n </span>\r\n\r\n <button *ngIf=\"user.secondary\" color=\"warn\" mat-raised-button (click)=\"stopIdentityTheft()\">\r\n {{ 'CORE.STOP' | commonTranslate: lang }}\r\n </button>\r\n </div>\r\n <span fxFlex=\"1\" class=\"header-separator\"></span>\r\n\r\n <span [matMenuTriggerFor]='settings' class='material-icons-outlined header-icon' fxFlex='5'>settings</span>\r\n\r\n <!-- #enddocregion mat-menu-trigger-for -->\r\n <mat-menu #settings='matMenu' class='action-menu'>\r\n <button (click)='switchTheme()' mat-menu-item>\r\n <mat-icon class='menu-icon mat-icon'>toggle_on</mat-icon>\r\n <span>{{'COMMON.HEADER.PARAMETERS.THEME' | commonTranslate: lang}}</span>\r\n </button>\r\n <button (click)='switchLang(\"en\")' *ngIf='lang !== \"en\"' mat-menu-item>\r\n <img src='assets/img/flag/en-flag.png'>\r\n {{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.ENGLISH' | commonTranslate: lang }}\r\n </button>\r\n <button (click)='switchLang(\"fr\")' *ngIf='lang !== \"fr\"' mat-menu-item>\r\n <img src='assets/img/flag/fr-flag.png'>\r\n {{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.FRENCH' | commonTranslate: lang }}\r\n </button>\r\n <button (click)='switchLang(\"de\")' *ngIf='lang !== \"de\" ' mat-menu-item>\r\n <img src='assets/img/flag/de-flag.png'>\r\n {{ 'COMMON.HEADER.PARAMETERS.TITLE.LANGUAGES.DEUTCH' | commonTranslate: lang }}\r\n </button>\r\n </mat-menu>\r\n </mat-toolbar>\r\n\r\n", styles: [".sc-header{height:64px;position:fixed;z-index:999}.logo-unity{height:48px;width:48px}.header-icon{width:22px;height:20px}.global-search{height:40px;background:#EFF3F6;padding:0;margin-left:30px;border-radius:8px}:host ::ng-deep .global-search .mat-form-field-appearance-legacy .mat-form-field-label{top:2.1em!important;margin-left:10px;font-family:Sofia Pro;font-style:italic;font-weight:bold;font-size:14px;line-height:14px}.global-search-icon{width:18px;height:18px;margin:10px 12px 10px 10px}.global-search-input{background:#EFF3F6;border:none;margin-left:10px;font-size:14px!important}.global-search-input:focus{outline:none}.global-search-separator{display:inline-block;height:70%;border-right:2px solid #D3DFEC;margin-top:6px}.rapid-search-type-icon{font-size:15px;margin-right:10px;margin-bottom:4px;line-height:15px;vertical-align:middle}.advanced-button{width:90px!important;min-width:90px!important;height:24px!important;background:#7C87FF;border:none;box-shadow:0 2px 6px #445d7b29,inset 0 2px 6px #ffffff14,inset 0 -2px 4px #445d7b0f;border-radius:4px;line-height:12px;color:#fff;margin:auto 5px auto auto;cursor:pointer;padding:0!important}.advanced-button .icon{font-size:12px;vertical-align:middle}.sc-header .header-icon{color:#809ec1;cursor:pointer;text-align:center}.header-separator{display:inline-block;height:25%;margin-top:6px}.connected-as{font-size:12px}.user-thumb{margin-right:16px;width:40px;height:40px}#env-uat{background-color:#809ec1;color:#fff}#env-dev{background-color:#809ec1;color:#fff}#env-sbx{background-color:#809ec1;color:#fff}.env{color:#fff;font-size:10px;border-radius:1px;padding:0 5px;line-height:16px;height:16px}.center{text-align:center}.mr-10{margin-right:10px}.mr-20{margin-right:20px}.mr-30{margin-right:30px}.mb-2{margin-bottom:2px}.mat-menu-item img{height:12px!important;margin-right:13px;margin-bottom:-2px;margin-left:3px}\n"], components: [{ type: i13__namespace.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i14__namespace.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i14__namespace.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i7__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i16__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i17__namespace.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i18__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i19__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i20__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i20__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i21__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i22__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i20__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i21__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14__namespace.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i21__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i21__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i21__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace$2.NgxPermissionsDirective, selector: "[ngxPermissionsOnly],[ngxPermissionsExcept]", inputs: ["ngxPermissionsOnly", "ngxPermissionsOnlyThen", "ngxPermissionsOnlyElse", "ngxPermissionsExcept", "ngxPermissionsExceptElse", "ngxPermissionsExceptThen", "ngxPermissionsThen", "ngxPermissionsElse", "ngxPermissionsOnlyAuthorisedStrategy", "ngxPermissionsOnlyUnauthorisedStrategy", "ngxPermissionsExceptUnauthorisedStrategy", "ngxPermissionsExceptAuthorisedStrategy", "ngxPermissionsUnauthorisedStrategy", "ngxPermissionsAuthorisedStrategy"], outputs: ["permissionsAuthorized", "permissionsUnauthorized"] }, { type: i24__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i17__namespace.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i20__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }], pipes: { "commonTranslate": CommonTranslatePipe, "currency": i21__namespace.CurrencyPipe } });
1365
1481
  __decorate([
1366
1482
  Theme()
1367
1483
  ], HeaderComponent.prototype, "theme", void 0);
@@ -1376,7 +1492,7 @@
1376
1492
  templateUrl: './header.component.html'
1377
1493
  }]
1378
1494
  }], ctorParameters: function () {
1379
- return [{ type: i1__namespace$3.Router }, { type: LocalStorageEventsService }, { type: LocalStorageService }, { type: ToasterEventsService }, { type: i2__namespace$1.TranslateService }, { type: CommonApiService }, { type: SessionStorageService }, { type: PermissionsService }, { type: i9__namespace.OverlayContainer }, { type: i1__namespace.CookieService }, { type: undefined, decorators: [{
1495
+ return [{ type: i1__namespace$3.Router }, { type: LocalStorageEventsService }, { type: LocalStorageService }, { type: ToasterEventsService }, { type: i2__namespace$1.TranslateService }, { type: CommonApiService }, { type: SessionStorageService }, { type: PermissionsService }, { type: i9__namespace.OverlayContainer }, { type: i1__namespace.CookieService }, { type: LangService }, { type: ElasticsearchService }, { type: undefined, decorators: [{
1380
1496
  type: i0.Inject,
1381
1497
  args: [WEB_CONFIG]
1382
1498
  }] }];
@@ -1407,8 +1523,8 @@
1407
1523
  };
1408
1524
  return SubHeaderComponent;
1409
1525
  }());
1410
- SubHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: SubHeaderComponent, deps: [{ token: i15.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Component });
1411
- SubHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: SubHeaderComponent, selector: "sc-sub-header", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<div id=\"template-header-container\">\r\n <div id=\"template-header\" [ngClass]=\"{'header-hide':isHide}\">\r\n\r\n <!-- What you want -->\r\n <div id=\"left-part\">\r\n <ng-content select=[left]></ng-content>\r\n </div>\r\n\r\n <!-- What you want -->\r\n <div id=\"middle-part\">\r\n <ng-content select=[middle]></ng-content>\r\n </div>\r\n\r\n <!-- What you want -->\r\n <div id=\"right-part\">\r\n <ng-content select=[right]></ng-content>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n", styles: ["#template-header-container{position:relative;background:#3F3F3F}#template-header{position:fixed;z-index:300;top:20px;width:100%;padding-top:30px!important;background:#3F3F3F;color:#fff;transition:.3s}#left-part{float:left;margin-left:15px}#right-part{float:right;margin-right:230px;height:100%}a{vertical-align:middle;text-align:center;color:#afafaf}.header-hide{top:-25px!important;transition:.3s}.title{color:#fff!important;font-weight:bold!important}.subtitle{color:#b3b3b3!important;cursor:pointer}@media only screen and (min-width: 64.063em){.title{font-size:23px}.subtitle{font-size:16px}.status{color:#65d39b;margin-left:10px;font-size:12px}.codeMilo{color:#b3b3b3;font-size:15px}.dealNumber{color:#b3b3b3;font-weight:bold;font-size:19px}}@media only screen and (min-width: 40.063em) and (max-width: 64em){.title{font-size:15px}.subtitle{font-size:10px}.status{color:#65d39b;margin-left:10px;font-size:10px}#template-header{padding:45px 0 5px 55px}}@media only screen and (max-width: 40em){.title{font-size:10px}.subtitle{font-size:8px}.status{color:#65d39b;margin-left:10px;font-size:8px}#template-header{padding:45px 0 5px}}\n"], directives: [{ type: i15__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i16__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }] });
1526
+ SubHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: SubHeaderComponent, deps: [{ token: i21.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Component });
1527
+ SubHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: SubHeaderComponent, selector: "sc-sub-header", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<div id=\"template-header-container\">\r\n <div id=\"template-header\" [ngClass]=\"{'header-hide':isHide}\">\r\n\r\n <!-- What you want -->\r\n <div id=\"left-part\">\r\n <ng-content select=[left]></ng-content>\r\n </div>\r\n\r\n <!-- What you want -->\r\n <div id=\"middle-part\">\r\n <ng-content select=[middle]></ng-content>\r\n </div>\r\n\r\n <!-- What you want -->\r\n <div id=\"right-part\">\r\n <ng-content select=[right]></ng-content>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n", styles: ["#template-header-container{position:relative;background:#3F3F3F}#template-header{position:fixed;z-index:300;top:20px;width:100%;padding-top:30px!important;background:#3F3F3F;color:#fff;transition:.3s}#left-part{float:left;margin-left:15px}#right-part{float:right;margin-right:230px;height:100%}a{vertical-align:middle;text-align:center;color:#afafaf}.header-hide{top:-25px!important;transition:.3s}.title{color:#fff!important;font-weight:bold!important}.subtitle{color:#b3b3b3!important;cursor:pointer}@media only screen and (min-width: 64.063em){.title{font-size:23px}.subtitle{font-size:16px}.status{color:#65d39b;margin-left:10px;font-size:12px}.codeMilo{color:#b3b3b3;font-size:15px}.dealNumber{color:#b3b3b3;font-weight:bold;font-size:19px}}@media only screen and (min-width: 40.063em) and (max-width: 64em){.title{font-size:15px}.subtitle{font-size:10px}.status{color:#65d39b;margin-left:10px;font-size:10px}#template-header{padding:45px 0 5px 55px}}@media only screen and (max-width: 40em){.title{font-size:10px}.subtitle{font-size:8px}.status{color:#65d39b;margin-left:10px;font-size:8px}#template-header{padding:45px 0 5px}}\n"], directives: [{ type: i21__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i22__namespace.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }] });
1412
1528
  __decorate([
1413
1529
  Theme()
1414
1530
  ], SubHeaderComponent.prototype, "theme", void 0);
@@ -1422,7 +1538,7 @@
1422
1538
  }], ctorParameters: function () {
1423
1539
  return [{ type: undefined, decorators: [{
1424
1540
  type: i0.Inject,
1425
- args: [i15.DOCUMENT]
1541
+ args: [i21.DOCUMENT]
1426
1542
  }] }];
1427
1543
  }, propDecorators: { theme: [], onWindowScroll: [{
1428
1544
  type: i0.HostListener,
@@ -1518,7 +1634,7 @@
1518
1634
  return MyDialogPopupLoginComponent;
1519
1635
  }());
1520
1636
  MyDialogPopupLoginComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: MyDialogPopupLoginComponent, deps: [{ token: i1__namespace$4.MatDialogRef }, { token: AesService }, { token: WEB_CONFIG }, { token: i2__namespace.HttpClient }, { token: i2__namespace$1.TranslateService }, { token: i1__namespace.CookieService }, { token: i1$4.MAT_DIALOG_DATA }, { token: CommonApiService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1521
- MyDialogPopupLoginComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: MyDialogPopupLoginComponent, selector: "sc-popup-login", ngImport: i0__namespace, template: "<h3 mat-dialog-title>Log in</h3>\r\n\r\n<mat-dialog-content>\r\n <form [formGroup]=\"userForm\" fxLayout=\"column\" (keyup.enter)=\"onLogin()\">\r\n <div class=\"form-group\">\r\n <mat-label>{{'CORE.LOGIN.USERNAME' | translate }} <span style=\"color:#ef5350; font-weight: bold\">*</span></mat-label>\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput [(ngModel)]=\"username\" formControlName=\"username\"/>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"form-group\">\r\n <mat-label>{{'CORE.LOGIN.PASSWORD' | translate }} <span style=\"color:#ef5350; font-weight: bold\">*</span></mat-label>\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput [(ngModel)]=\"password\" formControlName=\"password\" type=\"password\"/>\r\n </mat-form-field>\r\n </div>\r\n </form>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions fxLayout=\"column\" fxLayoutAlign=\"center center\">\r\n <button class=\"primary w-100\" mat-raised-button type=\"submit\" (click)=\"onLogin()\" [disabled]=\"loading\">{{ 'CORE.LOGIN.SIGN_IN' | translate }}</button>\r\n <mat-spinner *ngIf=\"loading\" class=\"not-so-close-from-button login-spinner\" [diameter]=\"30\"></mat-spinner>\r\n <div *ngIf=\"(errorMessage !== null || errorMessage !== '')\" class=\"errorMessage not-so-close-from-button\">\r\n {{errorMessage}} </div>\r\n</mat-dialog-actions>\r\n\r\n", styles: [".w-100{width:100%}\n"], components: [{ type: i7__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i13__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i1__namespace$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i10__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i10__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i14__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i10__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7__namespace.MatLabel, selector: "mat-label" }, { type: i12__namespace$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1__namespace$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i14__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i15__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2__namespace$1.TranslatePipe } });
1637
+ MyDialogPopupLoginComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: MyDialogPopupLoginComponent, selector: "sc-popup-login", ngImport: i0__namespace, template: "<h3 mat-dialog-title>Log in</h3>\r\n\r\n<mat-dialog-content>\r\n <form [formGroup]=\"userForm\" fxLayout=\"column\" (keyup.enter)=\"onLogin()\">\r\n <div class=\"form-group\">\r\n <mat-label>{{'CORE.LOGIN.USERNAME' | translate }} <span style=\"color:#ef5350; font-weight: bold\">*</span></mat-label>\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput [(ngModel)]=\"username\" formControlName=\"username\"/>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"form-group\">\r\n <mat-label>{{'CORE.LOGIN.PASSWORD' | translate }} <span style=\"color:#ef5350; font-weight: bold\">*</span></mat-label>\r\n <mat-form-field appearance=\"outline\">\r\n <input matInput [(ngModel)]=\"password\" formControlName=\"password\" type=\"password\"/>\r\n </mat-form-field>\r\n </div>\r\n </form>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions fxLayout=\"column\" fxLayoutAlign=\"center center\">\r\n <button class=\"primary w-100\" mat-raised-button type=\"submit\" (click)=\"onLogin()\" [disabled]=\"loading\">{{ 'CORE.LOGIN.SIGN_IN' | translate }}</button>\r\n <mat-spinner *ngIf=\"loading\" class=\"not-so-close-from-button login-spinner\" [diameter]=\"30\"></mat-spinner>\r\n <div *ngIf=\"(errorMessage !== null || errorMessage !== '')\" class=\"errorMessage not-so-close-from-button\">\r\n {{errorMessage}} </div>\r\n</mat-dialog-actions>\r\n\r\n", styles: [".w-100{width:100%}\n"], components: [{ type: i7__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i16__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i1__namespace$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i10__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i10__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i20__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i10__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7__namespace.MatLabel, selector: "mat-label" }, { type: i24__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1__namespace$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i20__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i21__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2__namespace$1.TranslatePipe } });
1522
1638
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: MyDialogPopupLoginComponent, decorators: [{
1523
1639
  type: i0.Component,
1524
1640
  args: [{
@@ -1595,20 +1711,9 @@
1595
1711
  }], ctorParameters: function () { return [{ type: LocalStorageService }]; } });
1596
1712
 
1597
1713
  var UtilModule = /** @class */ (function () {
1598
- function UtilModule(translate, localStorage) {
1599
- this.translate = translate;
1600
- this.localStorage = localStorage;
1601
- this.translate.addLangs(['en', 'fr', 'de']);
1602
- if (this.localStorage.exist('lang')) {
1603
- this.translate.use(this.localStorage.get('lang'));
1604
- }
1605
- else {
1606
- this.translate.use(this.translate.getLangs().indexOf(this.translate.getBrowserLang()) ===
1607
- -1
1608
- ? this.translate.getBrowserLang()
1609
- : 'en');
1610
- }
1611
- this.localStorage.post('lang', this.translate.currentLang);
1714
+ function UtilModule(langService) {
1715
+ this.langService = langService;
1716
+ this.langService.translateLanguage();
1612
1717
  }
1613
1718
  UtilModule.forRoot = function (config) {
1614
1719
  if (config === void 0) { config = DEFAULT_WEB_CONFIG; }
@@ -1626,7 +1731,7 @@
1626
1731
  };
1627
1732
  return UtilModule;
1628
1733
  }());
1629
- UtilModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: UtilModule, deps: [{ token: i2__namespace$1.TranslateService }, { token: LocalStorageService }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1734
+ UtilModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: UtilModule, deps: [{ token: LangService }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1630
1735
  UtilModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: UtilModule, declarations: [MyNumberFormatterDirective,
1631
1736
  CapitalizefirstPipe,
1632
1737
  SpacesNumberPipe,
@@ -1640,14 +1745,14 @@
1640
1745
  MyDialogPopupLoginComponent,
1641
1746
  OverlayComponent,
1642
1747
  HeaderComponent,
1643
- SubHeaderComponent], imports: [i12$1.MatInputModule,
1748
+ SubHeaderComponent], imports: [i24.MatInputModule,
1644
1749
  select.MatSelectModule,
1645
1750
  table.MatTableModule,
1646
1751
  tooltip.MatTooltipModule,
1647
- i13.MatButtonModule,
1648
- i11.MatToolbarModule,
1752
+ i16.MatButtonModule,
1753
+ i13.MatToolbarModule,
1649
1754
  i7.MatFormFieldModule,
1650
- i15.CommonModule,
1755
+ i21.CommonModule,
1651
1756
  i2$1.TranslateModule,
1652
1757
  i4.MatCardModule,
1653
1758
  i1$4.MatDialogModule,
@@ -1655,13 +1760,14 @@
1655
1760
  i5.MatProgressSpinnerModule,
1656
1761
  i1$3.RouterModule,
1657
1762
  i10.ReactiveFormsModule,
1658
- i13.MatButtonModule,
1763
+ i16.MatButtonModule,
1659
1764
  i10.FormsModule,
1660
- icon.MatIconModule,
1661
- i12.MatMenuModule,
1662
- i11.MatToolbarModule,
1765
+ i19.MatIconModule,
1766
+ i14.MatMenuModule,
1767
+ i13.MatToolbarModule,
1663
1768
  divider.MatDividerModule,
1664
- flexLayout.FlexLayoutModule], exports: [MyNumberFormatterDirective,
1769
+ flexLayout.FlexLayoutModule,
1770
+ i17.MatAutocompleteModule], exports: [MyNumberFormatterDirective,
1665
1771
  CapitalizefirstPipe,
1666
1772
  SpacesNumberPipe,
1667
1773
  SanitizeHtml,
@@ -1686,23 +1792,25 @@
1686
1792
  PermissionsService,
1687
1793
  ArrayService,
1688
1794
  CommonApiService,
1689
- i15.DatePipe,
1795
+ i21.DatePipe,
1690
1796
  LocalDatePipe,
1691
1797
  MyNumberPipe,
1692
1798
  AesService,
1693
1799
  i1.CookieService,
1694
1800
  ToasterEventsService,
1695
1801
  HeaderEventsService,
1696
- HistoryService
1802
+ HistoryService,
1803
+ LangService,
1804
+ ElasticsearchService
1697
1805
  ], imports: [[
1698
- i12$1.MatInputModule,
1806
+ i24.MatInputModule,
1699
1807
  select.MatSelectModule,
1700
1808
  table.MatTableModule,
1701
1809
  tooltip.MatTooltipModule,
1702
- i13.MatButtonModule,
1703
- i11.MatToolbarModule,
1810
+ i16.MatButtonModule,
1811
+ i13.MatToolbarModule,
1704
1812
  i7.MatFormFieldModule,
1705
- i15.CommonModule,
1813
+ i21.CommonModule,
1706
1814
  i2$1.TranslateModule,
1707
1815
  i4.MatCardModule,
1708
1816
  i1$4.MatDialogModule,
@@ -1710,26 +1818,27 @@
1710
1818
  i5.MatProgressSpinnerModule,
1711
1819
  i1$3.RouterModule,
1712
1820
  i10.ReactiveFormsModule,
1713
- i13.MatButtonModule,
1821
+ i16.MatButtonModule,
1714
1822
  i10.FormsModule,
1715
- icon.MatIconModule,
1716
- i12.MatMenuModule,
1717
- i11.MatToolbarModule,
1823
+ i19.MatIconModule,
1824
+ i14.MatMenuModule,
1825
+ i13.MatToolbarModule,
1718
1826
  divider.MatDividerModule,
1719
- flexLayout.FlexLayoutModule
1827
+ flexLayout.FlexLayoutModule,
1828
+ i17.MatAutocompleteModule
1720
1829
  ]] });
1721
1830
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: UtilModule, decorators: [{
1722
1831
  type: i0.NgModule,
1723
1832
  args: [{
1724
1833
  imports: [
1725
- i12$1.MatInputModule,
1834
+ i24.MatInputModule,
1726
1835
  select.MatSelectModule,
1727
1836
  table.MatTableModule,
1728
1837
  tooltip.MatTooltipModule,
1729
- i13.MatButtonModule,
1730
- i11.MatToolbarModule,
1838
+ i16.MatButtonModule,
1839
+ i13.MatToolbarModule,
1731
1840
  i7.MatFormFieldModule,
1732
- i15.CommonModule,
1841
+ i21.CommonModule,
1733
1842
  i2$1.TranslateModule,
1734
1843
  i4.MatCardModule,
1735
1844
  i1$4.MatDialogModule,
@@ -1737,13 +1846,14 @@
1737
1846
  i5.MatProgressSpinnerModule,
1738
1847
  i1$3.RouterModule,
1739
1848
  i10.ReactiveFormsModule,
1740
- i13.MatButtonModule,
1849
+ i16.MatButtonModule,
1741
1850
  i10.FormsModule,
1742
- icon.MatIconModule,
1743
- i12.MatMenuModule,
1744
- i11.MatToolbarModule,
1851
+ i19.MatIconModule,
1852
+ i14.MatMenuModule,
1853
+ i13.MatToolbarModule,
1745
1854
  divider.MatDividerModule,
1746
- flexLayout.FlexLayoutModule
1855
+ flexLayout.FlexLayoutModule,
1856
+ i17.MatAutocompleteModule
1747
1857
  ],
1748
1858
  declarations: [
1749
1859
  MyNumberFormatterDirective,
@@ -1774,14 +1884,16 @@
1774
1884
  PermissionsService,
1775
1885
  ArrayService,
1776
1886
  CommonApiService,
1777
- i15.DatePipe,
1887
+ i21.DatePipe,
1778
1888
  LocalDatePipe,
1779
1889
  MyNumberPipe,
1780
1890
  AesService,
1781
1891
  i1.CookieService,
1782
1892
  ToasterEventsService,
1783
1893
  HeaderEventsService,
1784
- HistoryService
1894
+ HistoryService,
1895
+ LangService,
1896
+ ElasticsearchService
1785
1897
  ],
1786
1898
  exports: [
1787
1899
  MyNumberFormatterDirective,
@@ -1801,7 +1913,7 @@
1801
1913
  MyDialogPopupLoginComponent
1802
1914
  ]
1803
1915
  }]
1804
- }], ctorParameters: function () { return [{ type: i2__namespace$1.TranslateService }, { type: LocalStorageService }]; } });
1916
+ }], ctorParameters: function () { return [{ type: LangService }]; } });
1805
1917
 
1806
1918
  var RegexService = /** @class */ (function () {
1807
1919
  function RegexService() {
@@ -2180,7 +2292,7 @@
2180
2292
  return null;
2181
2293
  };
2182
2294
  return CustomDateAdapter;
2183
- }(core.NativeDateAdapter));
2295
+ }(i18.NativeDateAdapter));
2184
2296
  CustomDateAdapter.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: CustomDateAdapter, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
2185
2297
  CustomDateAdapter.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: CustomDateAdapter });
2186
2298
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0__namespace, type: CustomDateAdapter, decorators: [{
@@ -4750,6 +4862,7 @@
4750
4862
  exports.InvoiceProductTypeModel = InvoiceProductTypeModel;
4751
4863
  exports.JwtHelper = JwtHelper;
4752
4864
  exports.LangLineModel = LangLineModel;
4865
+ exports.LangService = LangService;
4753
4866
  exports.LanguageModel = LanguageModel;
4754
4867
  exports.LocalDatePipe = LocalDatePipe;
4755
4868
  exports.LocalStorageEventsService = LocalStorageEventsService;