new-front-common-library 0.0.17 → 0.0.21
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.
- package/assets/css/_dark-theme.scss +44 -41
- package/assets/css/_global.scss +111 -0
- package/assets/css/_light-theme.scss +43 -18
- package/assets/i18n/front-common/de.json +17 -0
- package/assets/i18n/front-common/en.json +17 -0
- package/assets/i18n/front-common/fr.json +17 -0
- package/bundles/new-front-common-library.umd.js +239 -29
- package/bundles/new-front-common-library.umd.js.map +1 -1
- package/esm2015/lib/util/component/header/header.component.js +18 -8
- package/esm2015/lib/util/component/popup/popup-login/popup-login.component.js +2 -2
- package/esm2015/lib/util/i18n/de.js +42 -0
- package/esm2015/lib/util/i18n/en.js +42 -0
- package/esm2015/lib/util/i18n/fr.js +42 -0
- package/esm2015/lib/util/pipes/common-translate.pipe.js +38 -0
- package/esm2015/lib/util/services/history/history.service.js +39 -0
- package/esm2015/lib/util/util.module.js +11 -7
- package/esm2015/public-api.js +3 -1
- package/fesm2015/new-front-common-library.js +221 -16
- package/fesm2015/new-front-common-library.js.map +1 -1
- package/lib/util/component/header/header.component.d.ts +4 -2
- package/lib/util/i18n/de.d.ts +34 -0
- package/lib/util/i18n/en.d.ts +34 -0
- package/lib/util/i18n/fr.d.ts +34 -0
- package/lib/util/pipes/common-translate.pipe.d.ts +12 -0
- package/lib/util/services/history/history.service.d.ts +10 -0
- package/lib/util/util.module.d.ts +25 -24
- package/package.json +2 -1
- package/public-api.d.ts +2 -0
|
@@ -4,7 +4,7 @@ import * as i2$1 from '@ngx-translate/core';
|
|
|
4
4
|
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import * as i2 from '@angular/common/http';
|
|
6
6
|
import { HttpHeaders, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i15 from '@angular/common';
|
|
8
8
|
import { DatePipe, DOCUMENT, CommonModule } from '@angular/common';
|
|
9
9
|
import { throwError, BehaviorSubject } from 'rxjs';
|
|
10
10
|
import { catchError, map, filter, take, switchMap } from 'rxjs/operators';
|
|
@@ -20,7 +20,7 @@ import * as i5 from '@angular/material/progress-spinner';
|
|
|
20
20
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
21
21
|
import * as i1$3 from '@angular/router';
|
|
22
22
|
import { RouterModule } from '@angular/router';
|
|
23
|
-
import * as
|
|
23
|
+
import * as i14 from '@angular/flex-layout/flex';
|
|
24
24
|
import { isNotNullOrUndefined } from 'codelyzer/util/isNotNullOrUndefined';
|
|
25
25
|
import * as i9 from '@angular/cdk/overlay';
|
|
26
26
|
import * as i11 from '@angular/material/toolbar';
|
|
@@ -29,9 +29,7 @@ import * as i12 from '@angular/material/menu';
|
|
|
29
29
|
import { MatMenuModule } from '@angular/material/menu';
|
|
30
30
|
import * as i13 from '@angular/material/button';
|
|
31
31
|
import { MatButtonModule } from '@angular/material/button';
|
|
32
|
-
import * as
|
|
33
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
34
|
-
import * as i17 from '@angular/flex-layout/extended';
|
|
32
|
+
import * as i16 from '@angular/flex-layout/extended';
|
|
35
33
|
import * as i10 from '@angular/forms';
|
|
36
34
|
import { FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
37
35
|
import * as i1$4 from '@angular/material/dialog';
|
|
@@ -42,6 +40,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
42
40
|
import * as i12$1 from '@angular/material/input';
|
|
43
41
|
import { MatInputModule } from '@angular/material/input';
|
|
44
42
|
import { MatIconModule } from '@angular/material/icon';
|
|
43
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
45
44
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
46
45
|
import { MatTableModule } from '@angular/material/table';
|
|
47
46
|
import { MatSelectModule } from '@angular/material/select';
|
|
@@ -662,7 +661,7 @@ class OverlayComponent {
|
|
|
662
661
|
}
|
|
663
662
|
}
|
|
664
663
|
OverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayComponent, deps: [{ token: i1$3.Router }, { token: i2$1.TranslateService }, { token: OverlayService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
665
|
-
OverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: OverlayComponent, selector: "sc-overlay", ngImport: i0, 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.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type:
|
|
664
|
+
OverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: OverlayComponent, selector: "sc-overlay", ngImport: i0, 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.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14.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.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i14.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$1.TranslatePipe } });
|
|
666
665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: OverlayComponent, decorators: [{
|
|
667
666
|
type: Component,
|
|
668
667
|
args: [{
|
|
@@ -724,6 +723,164 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImpor
|
|
|
724
723
|
type: Injectable
|
|
725
724
|
}], ctorParameters: function () { return []; } });
|
|
726
725
|
|
|
726
|
+
const en = {
|
|
727
|
+
//HEADER MENU COMMERCIAL
|
|
728
|
+
'COMMON.HEADER.MENU.DASHBOARD': 'Dashboard',
|
|
729
|
+
'COMMON.HEADER.MENU.COMMERCIAL.DEAL': 'Deal',
|
|
730
|
+
'COMMON.HEADER.MENU.COMMERCIAL.WORK_RECORD': 'Title Record',
|
|
731
|
+
'COMMON.HEADER.MENU.COMMERCIAL.VOD_SEARCH': 'VOD Search',
|
|
732
|
+
'COMMON.HEADER.MENU.COMMERCIAL.ACCOUNTING_CLOSING': 'Accounting Closing',
|
|
733
|
+
'COMMON.HEADER.MENU.COMMERCIAL.INVOICE': 'Invoice',
|
|
734
|
+
'COMMON.HEADER.MENU.COMMERCIAL.TURNOVER': 'Turnover',
|
|
735
|
+
//HEADER MENU USER
|
|
736
|
+
'COMMON.HEADER.MENU.USER.SECTION_TITLE': 'Users management',
|
|
737
|
+
'COMMON.HEADER.MENU.USER.SETTINGS': 'Settings',
|
|
738
|
+
//HEADER MENU REFERENTIAL
|
|
739
|
+
'COMMON.HEADER.MENU.REFERENTIAL.SUPPORT': 'Support',
|
|
740
|
+
'COMMON.HEADER.MENU.REFERENTIAL.BATCH': 'Batch',
|
|
741
|
+
'COMMON.HEADER.MENU.TV-DATA': 'TV Data',
|
|
742
|
+
'COMMON.HEADER.MENU.EXPENDITURE_COMMITMENT': 'Expenditure Commitment',
|
|
743
|
+
'COMMON.HEADER.MENU.BI.SEARCH': 'Sales Support',
|
|
744
|
+
'COMMON.HEADER.MENU.LEGAL': 'Legal',
|
|
745
|
+
// HEADER GOLBAL SEARCH
|
|
746
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ADVANCED': 'advanced',
|
|
747
|
+
'COMMON.HEADER.GLOBAL_SEARCH.PLACEHOLDER': 'Search ...',
|
|
748
|
+
// HEADER HISTORY
|
|
749
|
+
'COMMON.HEADER.HISTORY.PRODUCT': 'Product',
|
|
750
|
+
'COMMON.HEADER.HISTORY.PO': 'PO',
|
|
751
|
+
'COMMON.HEADER.HISTORY.WORK': 'Work',
|
|
752
|
+
'COMMON.HEADER.HISTORY.DEAL': 'Deal',
|
|
753
|
+
'COMMON.HEADER.HISTORY.CONTRACT_ACQ': 'Contract',
|
|
754
|
+
'COMMON.HEADER.HISTORY.CONTRACT_CESS': 'Contract',
|
|
755
|
+
'COMMON.HEADER.HISTORY.BUDGET': 'Budget',
|
|
756
|
+
'COMMON.HEADER.HISTORY.NO_HISTORY_AVAILABLE': 'No history available',
|
|
757
|
+
// HEADER CREATION
|
|
758
|
+
'COMMON.HEADER.CREATION.PRODUCT': 'create a product',
|
|
759
|
+
'COMMON.HEADER.CREATION.PO': 'create a purchase order',
|
|
760
|
+
'COMMON.HEADER.CREATION.DEAL': 'create a deal',
|
|
761
|
+
'COMMON.HEADER.CREATION.CREATION_ACQ': 'create an acquisition contract',
|
|
762
|
+
'COMMON.HEADER.CREATION.CREATION_CESS': 'create a cession contract',
|
|
763
|
+
// HEADER CONNECTED AS
|
|
764
|
+
'COMMON.HEADER.CONNECTED_AS': 'Connected as',
|
|
765
|
+
'COMMON.HEADER.STOP': 'Stop'
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
const fr = {
|
|
769
|
+
//HEADER MENU COMMERCIAL
|
|
770
|
+
'COMMON.HEADER.MENU.DASHBOARD': 'Tableau de bord',
|
|
771
|
+
'COMMON.HEADER.MENU.COMMERCIAL.DEAL': 'Deal',
|
|
772
|
+
'COMMON.HEADER.MENU.COMMERCIAL.WORK_RECORD': 'Fiche commerciale',
|
|
773
|
+
'COMMON.HEADER.MENU.COMMERCIAL.VOD_SEARCH': 'Recherche d\'Avails',
|
|
774
|
+
'COMMON.HEADER.MENU.COMMERCIAL.ACCOUNTING_CLOSING': 'Clôture Comptable',
|
|
775
|
+
'COMMON.HEADER.MENU.COMMERCIAL.INVOICE': 'Facture',
|
|
776
|
+
'COMMON.HEADER.MENU.COMMERCIAL.TURNOVER': 'Chiffre d\'affaire',
|
|
777
|
+
//HEADER MENU USER
|
|
778
|
+
'COMMON.HEADER.MENU.USER.SECTION_TITLE': 'Utilisateurs',
|
|
779
|
+
'COMMON.HEADER.MENU.USER.SETTINGS': 'Mes préférences',
|
|
780
|
+
//HEADER MENU REFERENTIAL
|
|
781
|
+
'COMMON.HEADER.MENU.REFERENTIAL.SUPPORT': 'Référentiels',
|
|
782
|
+
'COMMON.HEADER.MENU.REFERENTIAL.BATCH': 'Administration des Batches',
|
|
783
|
+
'COMMON.HEADER.MENU.TV-DATA': 'TV Data',
|
|
784
|
+
'COMMON.HEADER.MENU.EXPENDITURE_COMMITMENT': 'Engagement de dépenses',
|
|
785
|
+
'COMMON.HEADER.MENU.BI.SEARCH': 'Aide à la vente',
|
|
786
|
+
'COMMON.HEADER.MENU.LEGAL': 'Juridique',
|
|
787
|
+
// HEADER GOLBAL SEARCH
|
|
788
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ADVANCED': 'avancée',
|
|
789
|
+
'COMMON.HEADER.GLOBAL_SEARCH.PLACEHOLDER': 'Recherche ...',
|
|
790
|
+
// HEADER HISTORY
|
|
791
|
+
'COMMON.HEADER.HISTORY.PRODUCT': 'Produit',
|
|
792
|
+
'COMMON.HEADER.HISTORY.PO': 'Commande',
|
|
793
|
+
'COMMON.HEADER.HISTORY.WORK': 'Fiche',
|
|
794
|
+
'COMMON.HEADER.HISTORY.DEAL': 'Deal',
|
|
795
|
+
'COMMON.HEADER.HISTORY.CONTRACT_ACQ': 'Contrat',
|
|
796
|
+
'COMMON.HEADER.HISTORY.CONTRACT_CESS': 'Contrat',
|
|
797
|
+
'COMMON.HEADER.HISTORY.BUDGET': 'Budget',
|
|
798
|
+
'COMMON.HEADER.HISTORY.NO_HISTORY_AVAILABLE': 'Pas d\'historique disponible',
|
|
799
|
+
// HEADER CREATION
|
|
800
|
+
'COMMON.HEADER.CREATION.PRODUCT': 'créer un produit',
|
|
801
|
+
'COMMON.HEADER.CREATION.PO': 'créer une commande',
|
|
802
|
+
'COMMON.HEADER.CREATION.DEAL': 'créer un deal',
|
|
803
|
+
'COMMON.HEADER.CREATION.CREATION_ACQ': 'créer un contrat d\'acquisition',
|
|
804
|
+
'COMMON.HEADER.CREATION.CREATION_CESS': 'créer un contrat de cession',
|
|
805
|
+
// HEADER CONNECTED AS
|
|
806
|
+
'COMMON.HEADER.CONNECTED_AS': 'Connectée en tant que',
|
|
807
|
+
'COMMON.HEADER.STOP': 'Arrêter'
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
const de = {
|
|
811
|
+
//HEADER MENU COMMERCIAL
|
|
812
|
+
'COMMON.HEADER.MENU.DASHBOARD': 'Dashboard',
|
|
813
|
+
'COMMON.HEADER.MENU.COMMERCIAL.DEAL': 'Deal',
|
|
814
|
+
'COMMON.HEADER.MENU.COMMERCIAL.WORK_RECORD': 'Title Record',
|
|
815
|
+
'COMMON.HEADER.MENU.COMMERCIAL.VOD_SEARCH': 'VOD Search',
|
|
816
|
+
'COMMON.HEADER.MENU.COMMERCIAL.ACCOUNTING_CLOSING': 'Accounting Closing',
|
|
817
|
+
'COMMON.HEADER.MENU.COMMERCIAL.INVOICE': 'Invoice',
|
|
818
|
+
'COMMON.HEADER.MENU.COMMERCIAL.TURNOVER': 'Turnover',
|
|
819
|
+
//HEADER MENU USER
|
|
820
|
+
'COMMON.HEADER.MENU.USER.SECTION_TITLE': 'Users management',
|
|
821
|
+
'COMMON.HEADER.MENU.USER.SETTINGS': 'Settings',
|
|
822
|
+
//HEADER MENU REFERENTIAL
|
|
823
|
+
'COMMON.HEADER.MENU.REFERENTIAL.SUPPORT': 'Support',
|
|
824
|
+
'COMMON.HEADER.MENU.REFERENTIAL.BATCH': 'Batch',
|
|
825
|
+
'COMMON.HEADER.MENU.TV-DATA': 'TV Data',
|
|
826
|
+
'COMMON.HEADER.MENU.EXPENDITURE_COMMITMENT': 'Expenditure Commitment',
|
|
827
|
+
'COMMON.HEADER.MENU.BI.SEARCH': 'Sales Support',
|
|
828
|
+
'COMMON.HEADER.MENU.LEGAL': 'Legal',
|
|
829
|
+
// HEADER GOLBAL SEARCH
|
|
830
|
+
'COMMON.HEADER.GLOBAL_SEARCH.ADVANCED': 'advanced',
|
|
831
|
+
'COMMON.HEADER.GLOBAL_SEARCH.PLACEHOLDER': 'Search ...',
|
|
832
|
+
// HEADER HISTORY
|
|
833
|
+
'COMMON.HEADER.HISTORY.PRODUCT': 'Product',
|
|
834
|
+
'COMMON.HEADER.HISTORY.PO': 'PO',
|
|
835
|
+
'COMMON.HEADER.HISTORY.WORK': 'Work',
|
|
836
|
+
'COMMON.HEADER.HISTORY.DEAL': 'Deal',
|
|
837
|
+
'COMMON.HEADER.HISTORY.CONTRACT_ACQ': 'Contract',
|
|
838
|
+
'COMMON.HEADER.HISTORY.CONTRACT_CESS': 'Contract',
|
|
839
|
+
'COMMON.HEADER.HISTORY.BUDGET': 'Budget',
|
|
840
|
+
'COMMON.HEADER.HISTORY.NO_HISTORY_AVAILABLE': 'No history available',
|
|
841
|
+
// HEADER CREATION
|
|
842
|
+
'COMMON.HEADER.CREATION.PRODUCT': 'create a product',
|
|
843
|
+
'COMMON.HEADER.CREATION.PO': 'create a purchase order',
|
|
844
|
+
'COMMON.HEADER.CREATION.DEAL': 'create a deal',
|
|
845
|
+
'COMMON.HEADER.CREATION.CREATION_ACQ': 'create an acquisition contract',
|
|
846
|
+
'COMMON.HEADER.CREATION.CREATION_CESS': 'create a cession contract',
|
|
847
|
+
// HEADER CONNECTED AS
|
|
848
|
+
'COMMON.HEADER.CONNECTED_AS': 'Connected as',
|
|
849
|
+
'COMMON.HEADER.STOP': 'Stop'
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
class CommonTranslatePipe {
|
|
853
|
+
constructor(localStorageService) {
|
|
854
|
+
this.localStorageService = localStorageService;
|
|
855
|
+
this.availableTranslations = { en, fr, de };
|
|
856
|
+
}
|
|
857
|
+
transform(value, lang) {
|
|
858
|
+
let currentLang = lang;
|
|
859
|
+
if (!lang) {
|
|
860
|
+
currentLang = this.localStorageService.get('lang');
|
|
861
|
+
}
|
|
862
|
+
if (this.isValidLang(currentLang)) {
|
|
863
|
+
const currentTranslation = this.availableTranslations[currentLang];
|
|
864
|
+
return currentTranslation[value];
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
isValidLang(lang) {
|
|
868
|
+
if (lang) {
|
|
869
|
+
const languages = ['en', 'fr', 'de'];
|
|
870
|
+
if (languages.indexOf(lang) !== -1) {
|
|
871
|
+
return true;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
return false;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
CommonTranslatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: CommonTranslatePipe, deps: [{ token: LocalStorageService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
878
|
+
CommonTranslatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: CommonTranslatePipe, name: "commonTranslate" });
|
|
879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: CommonTranslatePipe, decorators: [{
|
|
880
|
+
type: Pipe,
|
|
881
|
+
args: [{ name: 'commonTranslate' }]
|
|
882
|
+
}], ctorParameters: function () { return [{ type: LocalStorageService }]; } });
|
|
883
|
+
|
|
727
884
|
class HeaderComponent {
|
|
728
885
|
constructor(router, localStorageEvents, localStorage, toasterService, translate, commonApiService, sessionStorageService, permissionsService, overlayContainer, cookieService, config) {
|
|
729
886
|
this.router = router;
|
|
@@ -741,6 +898,7 @@ class HeaderComponent {
|
|
|
741
898
|
this.isHide = false;
|
|
742
899
|
this.currentScroll = 0;
|
|
743
900
|
this.inputText = '';
|
|
901
|
+
this.historyList = [];
|
|
744
902
|
this.apiUrl = this.config.api_url;
|
|
745
903
|
}
|
|
746
904
|
ngOnInit() {
|
|
@@ -830,9 +988,18 @@ class HeaderComponent {
|
|
|
830
988
|
window.location.href = url;
|
|
831
989
|
}
|
|
832
990
|
}
|
|
991
|
+
getHistory() {
|
|
992
|
+
this.historyList = [];
|
|
993
|
+
if (this.localStorage.exist('history')) {
|
|
994
|
+
this.historyList = this.localStorage.get('history');
|
|
995
|
+
}
|
|
996
|
+
if (this.historyList.length === 0) {
|
|
997
|
+
this.historyList.push({ type: 'NO_HISTORY_AVAILABLE', id: null, ref: null });
|
|
998
|
+
}
|
|
999
|
+
}
|
|
833
1000
|
}
|
|
834
1001
|
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: HeaderComponent, deps: [{ token: i1$3.Router }, { token: LocalStorageEventsService }, { token: LocalStorageService }, { token: ToasterEventsService }, { token: i2$1.TranslateService }, { token: CommonApiService }, { token: SessionStorageService }, { token: PermissionsService }, { token: i9.OverlayContainer }, { token: i1.CookieService }, { token: WEB_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
835
|
-
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: HeaderComponent, selector: "sc-header", outputs: { toogleMenuEvent: "toogleMenuEvent" }, host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0, template: "<mat-toolbar fxFlex=\"row\" fxLayoutAlign=\"space-between center\" class=\"sc-header\" [ngClass]=\"{ 'light-header': theme !== 'dark' }\">\r\n <span>\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\">history</span>\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>{{ 'CORE.MENU.DASHBOARD' | translate }}</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>{{ 'CORE.MENU.COMMERCIAL.DEAL' | translate }}</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>{{ 'CORE.MENU.COMMERCIAL.WORK_RECORD' | translate }}</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>{{ 'CORE.MENU.COMMERCIAL.VOD_SEARCH' | translate }}</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>{{ 'CORE.MENU.COMMERCIAL.ACCOUNTING_CLOSING' | translate }}</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>{{ 'CORE.MENU.COMMERCIAL.INVOICE' | translate }}</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>{{ 'CORE.MENU.COMMERCIAL.TURNOVER' | translate }}</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>{{ 'CORE.MENU.USER.SECTION_TITLE' | translate }}</span>\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('user', '/account/settings')\">\r\n <span class=\"material-icons-outlined\">settings</span>\r\n <span>{{ 'CORE.MENU.USER.SETTINGS.LABEL' | translate }}</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>{{ 'CORE.MENU.REFERENTIAL.SUPPORT' | translate }}</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>{{ 'CORE.MENU.REFERENTIAL.BATCH' | translate }}</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>{{ 'CORE.MENU.TV-DATA' | translate }}</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>{{ 'CORE.MENU.EXPENDITURE_COMMITMENT' | translate }}</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>{{ 'CORE.MENU.BI.SEARCH' | translate }}</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>{{ 'CORE.MENU.LEGAL.LEGAL' | translate }}</span>\r\n </button>\r\n </mat-menu>\r\n\r\n <div fxFlex=\"60\" class=\"global-search\" *ngxPermissionsOnly=\"['VIDEO_CONSULT']\">\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=\"{{ 'CORE.GLOBAL_SEARCH.PLACEHOLDER' | translate }}\"\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 {{ 'CORE.GLOBAL_SEARCH.LINK_ADVANCED_SEARCH' | translate }}\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\">add_box</span>\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 {{ 'CORE.CONNECTED_AS' | translate: {userName: 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' | translate}}\r\n </button>\r\n </div>\r\n <span fxFlex=\"1\" class=\"header-separator\"></span>\r\n <span fxFlex=\"5\" class=\"material-icons-outlined header-icon\" [matMenuTriggerFor]=\"menu\">settings</span>\r\n <mat-menu #menu=\"matMenu\" class=\"action-menu\">\r\n <button mat-menu-item (click)=\"switchTheme()\">\r\n <span class=\"material-icons-outlined\">toggle_on</span>\r\n {{ 'CORE.SWITCH_THEME' | translate }}\r\n </button>\r\n <button mat-menu-item (click)=\"navigate('user', '/account/settings')\">\r\n <span class=\"material-icons-outlined\">person</span>\r\n {{ 'CORE.MY_ACCOUNT' | translate }}\r\n </button>\r\n\r\n <mat-divider color=\"accent\"></mat-divider>\r\n <button mat-menu-item (click)=\"logout()\">\r\n <span class=\"material-icons-outlined\">power_settings_new</span>\r\n {{ 'CORE.LOG_OUT' | translate }}\r\n </button>\r\n </mat-menu>\r\n </mat-toolbar>\r\n\r\n", styles: [".sc-header{height:64px}.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:1px 4px}.center{text-align:center}.mr-10{margin-right:10px}.mr-20{margin-right:20px}.mr-30{margin-right:30px}\n"], components: [{ type: i11.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i12.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i12.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i13.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: i14.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i15.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: i15.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: i16.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i17.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: i16.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i12.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i1$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.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i15.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.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: { "translate": i2$1.TranslatePipe } });
|
|
1002
|
+
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: HeaderComponent, selector: "sc-header", outputs: { toogleMenuEvent: "toogleMenuEvent" }, host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0, 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.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i12.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i12.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i13.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.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.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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i16.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.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i12.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i15.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i15.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i15.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1$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.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i14.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 } });
|
|
836
1003
|
__decorate([
|
|
837
1004
|
Theme()
|
|
838
1005
|
], HeaderComponent.prototype, "theme", void 0);
|
|
@@ -876,7 +1043,7 @@ class SubHeaderComponent {
|
|
|
876
1043
|
}
|
|
877
1044
|
}
|
|
878
1045
|
SubHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: SubHeaderComponent, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
879
|
-
SubHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: SubHeaderComponent, selector: "sc-sub-header", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0, 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:
|
|
1046
|
+
SubHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: SubHeaderComponent, selector: "sc-sub-header", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0, 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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i16.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"] }] });
|
|
880
1047
|
__decorate([
|
|
881
1048
|
Theme()
|
|
882
1049
|
], SubHeaderComponent.prototype, "theme", void 0);
|
|
@@ -981,7 +1148,7 @@ class MyDialogPopupLoginComponent {
|
|
|
981
1148
|
}
|
|
982
1149
|
}
|
|
983
1150
|
MyDialogPopupLoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: MyDialogPopupLoginComponent, deps: [{ token: i1$4.MatDialogRef }, { token: AesService }, { token: WEB_CONFIG }, { token: i2.HttpClient }, { token: i2$1.TranslateService }, { token: i1.CookieService }, { token: MAT_DIALOG_DATA }, { token: CommonApiService }], target: i0.ɵɵFactoryTarget.Component });
|
|
984
|
-
MyDialogPopupLoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: MyDialogPopupLoginComponent, selector: "sc-popup-login", ngImport: i0, 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 <
|
|
1151
|
+
MyDialogPopupLoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.2", type: MyDialogPopupLoginComponent, selector: "sc-popup-login", ngImport: i0, 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.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i13.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.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i10.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i10.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i14.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.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.MatLabel, selector: "mat-label" }, { type: i12$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.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i14.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2$1.TranslatePipe } });
|
|
985
1152
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: MyDialogPopupLoginComponent, decorators: [{
|
|
986
1153
|
type: Component,
|
|
987
1154
|
args: [{
|
|
@@ -1016,6 +1183,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImpor
|
|
|
1016
1183
|
type: Injectable
|
|
1017
1184
|
}], ctorParameters: function () { return []; } });
|
|
1018
1185
|
|
|
1186
|
+
class HistoryService {
|
|
1187
|
+
constructor(localStorage) {
|
|
1188
|
+
this.localStorage = localStorage;
|
|
1189
|
+
}
|
|
1190
|
+
add(type, id, ref) {
|
|
1191
|
+
let history = [];
|
|
1192
|
+
if (this.localStorage.exist('history')) {
|
|
1193
|
+
history = this.localStorage.get('history');
|
|
1194
|
+
}
|
|
1195
|
+
// DELETE EXISTING SCREEN
|
|
1196
|
+
history.forEach((element, index) => {
|
|
1197
|
+
if (this.exist(type, id, ref, element))
|
|
1198
|
+
history.splice(index, 1);
|
|
1199
|
+
});
|
|
1200
|
+
// ADD THE LAST CONSULTED SCREEN TO THE BEGINNING
|
|
1201
|
+
history.unshift({ type: type, id: id, ref: ref });
|
|
1202
|
+
// SHOW ONLY THE 10 LAST CONSULTED SCREENS
|
|
1203
|
+
if (history.length >= 10) {
|
|
1204
|
+
history = history.slice(0, 10);
|
|
1205
|
+
}
|
|
1206
|
+
// POST TO LOCAL STORAGE
|
|
1207
|
+
this.localStorage.post('history', history);
|
|
1208
|
+
}
|
|
1209
|
+
exist(type, id, ref, history) {
|
|
1210
|
+
if (type == history.type && id == history.id && ref == history.ref) {
|
|
1211
|
+
return true;
|
|
1212
|
+
}
|
|
1213
|
+
return false;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
HistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: HistoryService, deps: [{ token: LocalStorageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1217
|
+
HistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: HistoryService });
|
|
1218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImport: i0, type: HistoryService, decorators: [{
|
|
1219
|
+
type: Injectable
|
|
1220
|
+
}], ctorParameters: function () { return [{ type: LocalStorageService }]; } });
|
|
1221
|
+
|
|
1019
1222
|
class UtilModule {
|
|
1020
1223
|
constructor(translate, localStorage) {
|
|
1021
1224
|
this.translate = translate;
|
|
@@ -1055,11 +1258,11 @@ UtilModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12
|
|
|
1055
1258
|
LocalDatePipe,
|
|
1056
1259
|
MyNumberPipe,
|
|
1057
1260
|
TrimStringPipe,
|
|
1261
|
+
CommonTranslatePipe,
|
|
1058
1262
|
MyDialogPopupLoginComponent,
|
|
1059
1263
|
OverlayComponent,
|
|
1060
1264
|
HeaderComponent,
|
|
1061
|
-
SubHeaderComponent,
|
|
1062
|
-
HeaderComponent], imports: [MatInputModule,
|
|
1265
|
+
SubHeaderComponent], imports: [MatInputModule,
|
|
1063
1266
|
MatSelectModule,
|
|
1064
1267
|
MatTableModule,
|
|
1065
1268
|
MatTooltipModule,
|
|
@@ -1111,7 +1314,8 @@ UtilModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12
|
|
|
1111
1314
|
AesService,
|
|
1112
1315
|
CookieService,
|
|
1113
1316
|
ToasterEventsService,
|
|
1114
|
-
HeaderEventsService
|
|
1317
|
+
HeaderEventsService,
|
|
1318
|
+
HistoryService
|
|
1115
1319
|
], imports: [[
|
|
1116
1320
|
MatInputModule,
|
|
1117
1321
|
MatSelectModule,
|
|
@@ -1173,11 +1377,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImpor
|
|
|
1173
1377
|
LocalDatePipe,
|
|
1174
1378
|
MyNumberPipe,
|
|
1175
1379
|
TrimStringPipe,
|
|
1380
|
+
CommonTranslatePipe,
|
|
1176
1381
|
MyDialogPopupLoginComponent,
|
|
1177
1382
|
OverlayComponent,
|
|
1178
1383
|
HeaderComponent,
|
|
1179
|
-
SubHeaderComponent
|
|
1180
|
-
HeaderComponent
|
|
1384
|
+
SubHeaderComponent
|
|
1181
1385
|
],
|
|
1182
1386
|
providers: [
|
|
1183
1387
|
{
|
|
@@ -1198,7 +1402,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImpor
|
|
|
1198
1402
|
AesService,
|
|
1199
1403
|
CookieService,
|
|
1200
1404
|
ToasterEventsService,
|
|
1201
|
-
HeaderEventsService
|
|
1405
|
+
HeaderEventsService,
|
|
1406
|
+
HistoryService
|
|
1202
1407
|
],
|
|
1203
1408
|
exports: [
|
|
1204
1409
|
MyNumberFormatterDirective,
|
|
@@ -3822,5 +4027,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.2", ngImpor
|
|
|
3822
4027
|
* Generated bundle index. Do not edit.
|
|
3823
4028
|
*/
|
|
3824
4029
|
|
|
3825
|
-
export { AdressModel, AdressTypeModel, AesService, AnyLineModel, ArrayService, AttachedFileModel, AudioContentModel, AuthGuard, AuthInterceptor, AuthUserModel, BankAccountModel, BasicHierarchyModel, BasicModel, BroadcastListItem, CUSTOM_DATE_FORMATS, CapitalizefirstPipe, ColorModel, CommonApiService, CompanyModel, ContentModel, ContentTypeModel, ContractWork2Model, ContractWorkModel, CostCenterCriteriaModel, CostCenterCriteriaValueModel, CostCenterModel, CountryModel, CurrencyModel, CustomDateAdapter, DEFAULT_WEB_CONFIG, DateUtil, DiscDetailModel, DiscModel, DiscProgramModel, DisplayNullPipe, EditorialContentModel, EventTypeModel, FSKIndexModel, FSKModel, FixingModel, FlatMediaModel, FormActionsEventsService, FormatImageModel, FormatModel, FormatNumberInput, FormatTypeModel, FunctionModel, GenreModel, HeaderComponent, HeaderEventsService, InvoiceBankAccountModel, InvoiceProductTypeModel, JwtHelper, LangLineModel, LanguageModel, LocalDatePipe, LocalStorageEventsService, LocalStorageService, LoginGuard, MediaFilterModel, MediaLineModel, MediaModel, MenuLanguageModel, ModuleModel, MyDialogPopupLoginComponent, MyNumberFormatterDirective, MyNumberPipe, NumberValidator, OptionHtmlModel, OverlayComponent, OverlayService, ParticipantModel, PeriodModel, PermissionModel, PermissionsService, PersonModel, ProductBoxSetModel, ProductDiscModel, ProductModel, ProgramModel, ProjectStatusModel, PurchaseOrderModel, QuotaModel, ReferentialEntityStateModel, ReferentialValueModel, ReferentielModel, RegexService, SanitizeHtml, SapOrderModel, SearchResponseModel, SectionModel, SelectHtmlModel, ServiceErrorModel, SessionStorageEventsService, SessionStorageService, SortBy, SoundModel, SpacesNumberPipe, SubHeaderComponent, SubtitleContentModel, TerritoriesLanguagesModel, TerritoryFilterModel, TerritoryModel, Theme, ThemeEventsService, ThemeModel, ThirdPartyCreationRequestModel, ThirdPartyModel, ThirdPartyModuleModel, ToasterEventsService, TranslatedValueModel, TrimStringPipe, TvaModel, TypeExportModel, TypeTvaCompanyTerritoryModel, TypeTvaModel, User, UserModel, UtilModule, VideoContentModel, WEB_CONFIG, WorkAddonsModel, WorkAppartenanceModel, WorkGenreModel, WorkLanguageModel, WorkMiloModel, WorkModel, WorkRestrictionModel, WorkThemeModel, WorkTitleModel, WorkVersionArticleModel, WorkVersionModel, WorkVersionOriginModel, WorkVersionUsedModel, WorkYearProductionModel, ZoneModel };
|
|
4030
|
+
export { AdressModel, AdressTypeModel, AesService, AnyLineModel, ArrayService, AttachedFileModel, AudioContentModel, AuthGuard, AuthInterceptor, AuthUserModel, BankAccountModel, BasicHierarchyModel, BasicModel, BroadcastListItem, CUSTOM_DATE_FORMATS, CapitalizefirstPipe, ColorModel, CommonApiService, CommonTranslatePipe, CompanyModel, ContentModel, ContentTypeModel, ContractWork2Model, ContractWorkModel, CostCenterCriteriaModel, CostCenterCriteriaValueModel, CostCenterModel, CountryModel, CurrencyModel, CustomDateAdapter, DEFAULT_WEB_CONFIG, DateUtil, DiscDetailModel, DiscModel, DiscProgramModel, DisplayNullPipe, EditorialContentModel, EventTypeModel, FSKIndexModel, FSKModel, FixingModel, FlatMediaModel, FormActionsEventsService, FormatImageModel, FormatModel, FormatNumberInput, FormatTypeModel, FunctionModel, GenreModel, HeaderComponent, HeaderEventsService, HistoryService, InvoiceBankAccountModel, InvoiceProductTypeModel, JwtHelper, LangLineModel, LanguageModel, LocalDatePipe, LocalStorageEventsService, LocalStorageService, LoginGuard, MediaFilterModel, MediaLineModel, MediaModel, MenuLanguageModel, ModuleModel, MyDialogPopupLoginComponent, MyNumberFormatterDirective, MyNumberPipe, NumberValidator, OptionHtmlModel, OverlayComponent, OverlayService, ParticipantModel, PeriodModel, PermissionModel, PermissionsService, PersonModel, ProductBoxSetModel, ProductDiscModel, ProductModel, ProgramModel, ProjectStatusModel, PurchaseOrderModel, QuotaModel, ReferentialEntityStateModel, ReferentialValueModel, ReferentielModel, RegexService, SanitizeHtml, SapOrderModel, SearchResponseModel, SectionModel, SelectHtmlModel, ServiceErrorModel, SessionStorageEventsService, SessionStorageService, SortBy, SoundModel, SpacesNumberPipe, SubHeaderComponent, SubtitleContentModel, TerritoriesLanguagesModel, TerritoryFilterModel, TerritoryModel, Theme, ThemeEventsService, ThemeModel, ThirdPartyCreationRequestModel, ThirdPartyModel, ThirdPartyModuleModel, ToasterEventsService, TranslatedValueModel, TrimStringPipe, TvaModel, TypeExportModel, TypeTvaCompanyTerritoryModel, TypeTvaModel, User, UserModel, UtilModule, VideoContentModel, WEB_CONFIG, WorkAddonsModel, WorkAppartenanceModel, WorkGenreModel, WorkLanguageModel, WorkMiloModel, WorkModel, WorkRestrictionModel, WorkThemeModel, WorkTitleModel, WorkVersionArticleModel, WorkVersionModel, WorkVersionOriginModel, WorkVersionUsedModel, WorkYearProductionModel, ZoneModel };
|
|
3826
4031
|
//# sourceMappingURL=new-front-common-library.js.map
|