monkey-front-core 0.0.138 → 0.0.141
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/esm2020/lib/core/pipes/monkeyecx-format-tax.mjs +4 -3
- package/esm2020/lib/core/services/auth/index.mjs +2 -1
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-company.service.mjs +27 -0
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +10 -6
- package/fesm2015/monkey-front-core.mjs +370 -342
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +366 -338
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/auth/index.d.ts +1 -0
- package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +11 -0
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +1 -0
- package/monkey-front-core-0.0.141.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.138.tgz +0 -0
|
@@ -588,307 +588,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
588
588
|
}]
|
|
589
589
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
590
590
|
|
|
591
|
-
class MonkeyEcxFormatTaxPipe {
|
|
592
|
-
transform(tax, decimalDigits = 7) {
|
|
593
|
-
if (!tax)
|
|
594
|
-
return '';
|
|
595
|
-
const stringTax = tax.toString();
|
|
596
|
-
const stringTaxLimited = stringTax.slice(0, stringTax.indexOf('.') + decimalDigits + 1);
|
|
597
|
-
return `${Number(stringTaxLimited).toLocaleString('pt-br', {
|
|
598
|
-
maximumFractionDigits: decimalDigits,
|
|
599
|
-
})} %`;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
MonkeyEcxFormatTaxPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
603
|
-
MonkeyEcxFormatTaxPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, name: "monkeyecxFormatTax" });
|
|
604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, decorators: [{
|
|
605
|
-
type: Pipe,
|
|
606
|
-
args: [{
|
|
607
|
-
name: 'monkeyecxFormatTax',
|
|
608
|
-
}]
|
|
609
|
-
}] });
|
|
610
|
-
|
|
611
|
-
class MonkeyEcxPipesModule {
|
|
612
|
-
}
|
|
613
|
-
MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
614
|
-
MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxDisplayFirstNamePipe,
|
|
615
|
-
MonkeyEcxFormatAddressPipe,
|
|
616
|
-
MonkeyEcxFormatCurrencyPipe,
|
|
617
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
618
|
-
MonkeyEcxFormatDateGroupPipe,
|
|
619
|
-
MonkeyEcxFormatDocumentPipe,
|
|
620
|
-
MonkeyEcxFormatNumberPipe,
|
|
621
|
-
MonkeyEcxFormatPhonePipe,
|
|
622
|
-
MonkeyEcxFormatSizePipe,
|
|
623
|
-
MonkeyEcxFormatTaxPipe,
|
|
624
|
-
MonkeyEcxFormatDocumentTypePipe,
|
|
625
|
-
MonkeyEcxFormatValue,
|
|
626
|
-
MonkeyEcxFormatZipCodePipe,
|
|
627
|
-
MonkeyEcxTextTruncatePipe,
|
|
628
|
-
MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxDisplayFirstNamePipe,
|
|
629
|
-
MonkeyEcxFormatAddressPipe,
|
|
630
|
-
MonkeyEcxFormatCurrencyPipe,
|
|
631
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
632
|
-
MonkeyEcxFormatDateGroupPipe,
|
|
633
|
-
MonkeyEcxFormatDocumentPipe,
|
|
634
|
-
MonkeyEcxFormatNumberPipe,
|
|
635
|
-
MonkeyEcxFormatPhonePipe,
|
|
636
|
-
MonkeyEcxFormatSizePipe,
|
|
637
|
-
MonkeyEcxFormatTaxPipe,
|
|
638
|
-
MonkeyEcxFormatDocumentTypePipe,
|
|
639
|
-
MonkeyEcxFormatValue,
|
|
640
|
-
MonkeyEcxFormatZipCodePipe,
|
|
641
|
-
MonkeyEcxTextTruncatePipe,
|
|
642
|
-
MonkeyEcxTruncateQtdPipe] });
|
|
643
|
-
MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
|
|
644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
|
|
645
|
-
type: NgModule,
|
|
646
|
-
args: [{
|
|
647
|
-
declarations: [
|
|
648
|
-
MonkeyEcxDisplayFirstNamePipe,
|
|
649
|
-
MonkeyEcxFormatAddressPipe,
|
|
650
|
-
MonkeyEcxFormatCurrencyPipe,
|
|
651
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
652
|
-
MonkeyEcxFormatDateGroupPipe,
|
|
653
|
-
MonkeyEcxFormatDocumentPipe,
|
|
654
|
-
MonkeyEcxFormatNumberPipe,
|
|
655
|
-
MonkeyEcxFormatPhonePipe,
|
|
656
|
-
MonkeyEcxFormatSizePipe,
|
|
657
|
-
MonkeyEcxFormatTaxPipe,
|
|
658
|
-
MonkeyEcxFormatDocumentTypePipe,
|
|
659
|
-
MonkeyEcxFormatValue,
|
|
660
|
-
MonkeyEcxFormatZipCodePipe,
|
|
661
|
-
MonkeyEcxTextTruncatePipe,
|
|
662
|
-
MonkeyEcxTruncateQtdPipe,
|
|
663
|
-
],
|
|
664
|
-
exports: [
|
|
665
|
-
MonkeyEcxDisplayFirstNamePipe,
|
|
666
|
-
MonkeyEcxFormatAddressPipe,
|
|
667
|
-
MonkeyEcxFormatCurrencyPipe,
|
|
668
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
669
|
-
MonkeyEcxFormatDateGroupPipe,
|
|
670
|
-
MonkeyEcxFormatDocumentPipe,
|
|
671
|
-
MonkeyEcxFormatNumberPipe,
|
|
672
|
-
MonkeyEcxFormatPhonePipe,
|
|
673
|
-
MonkeyEcxFormatSizePipe,
|
|
674
|
-
MonkeyEcxFormatTaxPipe,
|
|
675
|
-
MonkeyEcxFormatDocumentTypePipe,
|
|
676
|
-
MonkeyEcxFormatValue,
|
|
677
|
-
MonkeyEcxFormatZipCodePipe,
|
|
678
|
-
MonkeyEcxTextTruncatePipe,
|
|
679
|
-
MonkeyEcxTruncateQtdPipe,
|
|
680
|
-
],
|
|
681
|
-
providers: [CurrencyPipe],
|
|
682
|
-
}]
|
|
683
|
-
}] });
|
|
684
|
-
|
|
685
|
-
class ClosedToMaintenanceModule {
|
|
686
|
-
}
|
|
687
|
-
ClosedToMaintenanceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClosedToMaintenanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
688
|
-
ClosedToMaintenanceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClosedToMaintenanceModule, declarations: [ClosedToMaintenanceComponent], imports: [CommonModule,
|
|
689
|
-
MonkeyButtonModule,
|
|
690
|
-
MonkeyIconModule,
|
|
691
|
-
MonkeyInputModule,
|
|
692
|
-
MonkeyModalModule,
|
|
693
|
-
MonkeyEcxPipesModule, i1$1.TranslateModule], exports: [ClosedToMaintenanceComponent] });
|
|
694
|
-
ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClosedToMaintenanceModule, imports: [[
|
|
695
|
-
CommonModule,
|
|
696
|
-
MonkeyButtonModule,
|
|
697
|
-
MonkeyIconModule,
|
|
698
|
-
MonkeyInputModule,
|
|
699
|
-
MonkeyModalModule,
|
|
700
|
-
MonkeyEcxPipesModule,
|
|
701
|
-
TranslateModule.forChild()
|
|
702
|
-
]] });
|
|
703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClosedToMaintenanceModule, decorators: [{
|
|
704
|
-
type: NgModule,
|
|
705
|
-
args: [{
|
|
706
|
-
declarations: [ClosedToMaintenanceComponent],
|
|
707
|
-
imports: [
|
|
708
|
-
CommonModule,
|
|
709
|
-
MonkeyButtonModule,
|
|
710
|
-
MonkeyIconModule,
|
|
711
|
-
MonkeyInputModule,
|
|
712
|
-
MonkeyModalModule,
|
|
713
|
-
MonkeyEcxPipesModule,
|
|
714
|
-
TranslateModule.forChild()
|
|
715
|
-
],
|
|
716
|
-
exports: [ClosedToMaintenanceComponent]
|
|
717
|
-
}]
|
|
718
|
-
}] });
|
|
719
|
-
|
|
720
|
-
class MonkeyEcxProgressBarService {
|
|
721
|
-
constructor(router) {
|
|
722
|
-
this.router = router;
|
|
723
|
-
this.visible = null;
|
|
724
|
-
this.init();
|
|
725
|
-
}
|
|
726
|
-
init() {
|
|
727
|
-
this.visible = new BehaviorSubject(false);
|
|
728
|
-
this.router.events
|
|
729
|
-
.pipe(filter((event) => {
|
|
730
|
-
return event instanceof NavigationStart;
|
|
731
|
-
}))
|
|
732
|
-
.subscribe(() => {
|
|
733
|
-
this.show();
|
|
734
|
-
});
|
|
735
|
-
this.router.events
|
|
736
|
-
.pipe(filter((event) => {
|
|
737
|
-
return (event instanceof NavigationEnd ||
|
|
738
|
-
event instanceof NavigationError ||
|
|
739
|
-
event instanceof NavigationCancel);
|
|
740
|
-
}))
|
|
741
|
-
.subscribe(() => {
|
|
742
|
-
this.hide();
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
show() {
|
|
746
|
-
var _a;
|
|
747
|
-
(_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(true);
|
|
748
|
-
}
|
|
749
|
-
hide() {
|
|
750
|
-
var _a;
|
|
751
|
-
(_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(false);
|
|
752
|
-
}
|
|
753
|
-
visibleConfig() {
|
|
754
|
-
var _a;
|
|
755
|
-
return ((_a = this.visible) === null || _a === void 0 ? void 0 : _a.asObservable()) || null;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
759
|
-
MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarService, decorators: [{
|
|
761
|
-
type: Injectable,
|
|
762
|
-
args: [{
|
|
763
|
-
providedIn: 'root'
|
|
764
|
-
}]
|
|
765
|
-
}], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
|
|
766
|
-
|
|
767
|
-
class MonkeyEcxProgressBarComponent {
|
|
768
|
-
constructor(progressBarService) {
|
|
769
|
-
this.progressBarService = progressBarService;
|
|
770
|
-
this.visible = false;
|
|
771
|
-
//not to do
|
|
772
|
-
}
|
|
773
|
-
ngOnInit() {
|
|
774
|
-
var _a, _b;
|
|
775
|
-
(_b = (_a = this.progressBarService) === null || _a === void 0 ? void 0 : _a.visibleConfig()) === null || _b === void 0 ? void 0 : _b.subscribe((visible) => {
|
|
776
|
-
this.visible = visible;
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
MonkeyEcxProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarComponent, deps: [{ token: MonkeyEcxProgressBarService }], target: i0.ɵɵFactoryTarget.Component });
|
|
781
|
-
MonkeyEcxProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MonkeyEcxProgressBarComponent, selector: "monkeyecx-progress-bar", ngImport: i0, template: "<ng-container *ngIf=\"visible\">\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\n</ng-container>\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarComponent, decorators: [{
|
|
783
|
-
type: Component,
|
|
784
|
-
args: [{ selector: 'monkeyecx-progress-bar', encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"visible\">\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\n</ng-container>\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"] }]
|
|
785
|
-
}], ctorParameters: function () { return [{ type: MonkeyEcxProgressBarService }]; } });
|
|
786
|
-
|
|
787
|
-
class MonkeyEcxProgressBarModule {
|
|
788
|
-
}
|
|
789
|
-
MonkeyEcxProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
790
|
-
MonkeyEcxProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarModule, declarations: [MonkeyEcxProgressBarComponent], imports: [CommonModule], exports: [MonkeyEcxProgressBarComponent] });
|
|
791
|
-
MonkeyEcxProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarModule, imports: [[CommonModule]] });
|
|
792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarModule, decorators: [{
|
|
793
|
-
type: NgModule,
|
|
794
|
-
args: [{
|
|
795
|
-
declarations: [MonkeyEcxProgressBarComponent],
|
|
796
|
-
imports: [CommonModule],
|
|
797
|
-
exports: [MonkeyEcxProgressBarComponent]
|
|
798
|
-
}]
|
|
799
|
-
}] });
|
|
800
|
-
|
|
801
|
-
class VersionChangedComponent {
|
|
802
|
-
constructor() {
|
|
803
|
-
this.config = null;
|
|
804
|
-
}
|
|
805
|
-
onClose() {
|
|
806
|
-
document.location.reload();
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
VersionChangedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
810
|
-
VersionChangedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: VersionChangedComponent, selector: "monkeyecx-version-changed", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedComponent, decorators: [{
|
|
812
|
-
type: Component,
|
|
813
|
-
args: [{ selector: 'monkeyecx-version-changed', encapsulation: ViewEncapsulation.None, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"] }]
|
|
814
|
-
}], propDecorators: { config: [{
|
|
815
|
-
type: Input
|
|
816
|
-
}], modalRef: [{
|
|
817
|
-
type: Input
|
|
818
|
-
}] } });
|
|
819
|
-
|
|
820
|
-
class VersionChangedModule {
|
|
821
|
-
}
|
|
822
|
-
VersionChangedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
823
|
-
VersionChangedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedModule, declarations: [VersionChangedComponent], imports: [CommonModule,
|
|
824
|
-
MonkeyButtonModule,
|
|
825
|
-
MonkeyIconModule,
|
|
826
|
-
MonkeyInputModule,
|
|
827
|
-
MonkeyModalModule, i1$1.TranslateModule], exports: [VersionChangedComponent] });
|
|
828
|
-
VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedModule, imports: [[
|
|
829
|
-
CommonModule,
|
|
830
|
-
MonkeyButtonModule,
|
|
831
|
-
MonkeyIconModule,
|
|
832
|
-
MonkeyInputModule,
|
|
833
|
-
MonkeyModalModule,
|
|
834
|
-
TranslateModule.forChild()
|
|
835
|
-
]] });
|
|
836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedModule, decorators: [{
|
|
837
|
-
type: NgModule,
|
|
838
|
-
args: [{
|
|
839
|
-
declarations: [VersionChangedComponent],
|
|
840
|
-
imports: [
|
|
841
|
-
CommonModule,
|
|
842
|
-
MonkeyButtonModule,
|
|
843
|
-
MonkeyIconModule,
|
|
844
|
-
MonkeyInputModule,
|
|
845
|
-
MonkeyModalModule,
|
|
846
|
-
TranslateModule.forChild()
|
|
847
|
-
],
|
|
848
|
-
exports: [VersionChangedComponent]
|
|
849
|
-
}]
|
|
850
|
-
}] });
|
|
851
|
-
|
|
852
|
-
/* eslint-disable space-before-function-paren */
|
|
853
|
-
/* eslint-disable func-names */
|
|
854
|
-
function MonkeyEcxCoreCharts(render = true) {
|
|
855
|
-
return (target, propertyName, propertyDescriptor) => {
|
|
856
|
-
const method = propertyDescriptor.value;
|
|
857
|
-
propertyDescriptor.value = function (...args) {
|
|
858
|
-
const context = this;
|
|
859
|
-
if (render) {
|
|
860
|
-
const scriptsLoaded = Array.from(document.scripts);
|
|
861
|
-
scriptsLoaded.forEach((script) => {
|
|
862
|
-
const { src } = script;
|
|
863
|
-
if (src.search('www.gstatic.com/charts') > 0) {
|
|
864
|
-
document.getElementsByTagName('head')[0].removeChild(script);
|
|
865
|
-
}
|
|
866
|
-
});
|
|
867
|
-
const node = document.createElement('script');
|
|
868
|
-
node.src = 'https://www.gstatic.com/charts/loader.js';
|
|
869
|
-
node.type = 'text/javascript';
|
|
870
|
-
node.async = true;
|
|
871
|
-
node.id = 'monkeyecx-charts-settings';
|
|
872
|
-
node.onload = () => {
|
|
873
|
-
method.apply(context, args);
|
|
874
|
-
};
|
|
875
|
-
document.getElementsByTagName('head')[0].appendChild(node);
|
|
876
|
-
}
|
|
877
|
-
else {
|
|
878
|
-
const scriptsLoaded = Array.from(document.scripts);
|
|
879
|
-
scriptsLoaded.forEach((script) => {
|
|
880
|
-
const { src } = script;
|
|
881
|
-
if (src.search('www.gstatic.com/charts') > 0) {
|
|
882
|
-
document.getElementsByTagName('head')[0].removeChild(script);
|
|
883
|
-
}
|
|
884
|
-
});
|
|
885
|
-
method.apply(context, args);
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
return propertyDescriptor;
|
|
889
|
-
};
|
|
890
|
-
}
|
|
891
|
-
|
|
892
591
|
/* eslint-disable max-classes-per-file */
|
|
893
592
|
const moment$1 = moment_;
|
|
894
593
|
class DateValidator {
|
|
@@ -1368,52 +1067,353 @@ function valueGreaterThanZero(control) {
|
|
|
1368
1067
|
}
|
|
1369
1068
|
return null;
|
|
1370
1069
|
}
|
|
1371
|
-
class Validators {
|
|
1372
|
-
static email(control) {
|
|
1373
|
-
return emailValidator(control);
|
|
1374
|
-
}
|
|
1375
|
-
static dateRange(control) {
|
|
1376
|
-
return dateRangeValidator(control);
|
|
1377
|
-
}
|
|
1378
|
-
static unlockSponsorRegister(control) {
|
|
1379
|
-
return registerValidator(control, 'sponsor');
|
|
1380
|
-
}
|
|
1381
|
-
static unlockBuyerRegister(control) {
|
|
1382
|
-
return registerValidator(control, 'buyer');
|
|
1383
|
-
}
|
|
1384
|
-
static dateStartEnd(control) {
|
|
1385
|
-
return dateStartEndValidator(control);
|
|
1386
|
-
}
|
|
1387
|
-
static url(control) {
|
|
1388
|
-
return urlValidator(control);
|
|
1070
|
+
class Validators {
|
|
1071
|
+
static email(control) {
|
|
1072
|
+
return emailValidator(control);
|
|
1073
|
+
}
|
|
1074
|
+
static dateRange(control) {
|
|
1075
|
+
return dateRangeValidator(control);
|
|
1076
|
+
}
|
|
1077
|
+
static unlockSponsorRegister(control) {
|
|
1078
|
+
return registerValidator(control, 'sponsor');
|
|
1079
|
+
}
|
|
1080
|
+
static unlockBuyerRegister(control) {
|
|
1081
|
+
return registerValidator(control, 'buyer');
|
|
1082
|
+
}
|
|
1083
|
+
static dateStartEnd(control) {
|
|
1084
|
+
return dateStartEndValidator(control);
|
|
1085
|
+
}
|
|
1086
|
+
static url(control) {
|
|
1087
|
+
return urlValidator(control);
|
|
1088
|
+
}
|
|
1089
|
+
static passwordConfirm(control) {
|
|
1090
|
+
return passwordConfirmValidator(control);
|
|
1091
|
+
}
|
|
1092
|
+
static true(control) {
|
|
1093
|
+
return trueValidator(control);
|
|
1094
|
+
}
|
|
1095
|
+
static combo(control) {
|
|
1096
|
+
return comboValidator(control);
|
|
1097
|
+
}
|
|
1098
|
+
static zipCode(control) {
|
|
1099
|
+
return zipCodeValidator(control);
|
|
1100
|
+
}
|
|
1101
|
+
static documentBR(control) {
|
|
1102
|
+
return documentValidator(control, 'BR');
|
|
1103
|
+
}
|
|
1104
|
+
static documentCL(control) {
|
|
1105
|
+
return documentValidator(control, 'CL');
|
|
1106
|
+
}
|
|
1107
|
+
static date(control) {
|
|
1108
|
+
return dateValidator(control);
|
|
1109
|
+
}
|
|
1110
|
+
static greaterThanZero(control) {
|
|
1111
|
+
return valueGreaterThanZero(control);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/* eslint-disable object-curly-newline */
|
|
1116
|
+
|
|
1117
|
+
class MonkeyEcxFormatTaxPipe {
|
|
1118
|
+
transform(tax, decimalDigits = 7) {
|
|
1119
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(tax))
|
|
1120
|
+
return '0 %';
|
|
1121
|
+
const stringTax = tax.toString();
|
|
1122
|
+
const stringTaxLimited = stringTax.slice(0, stringTax.indexOf('.') + decimalDigits + 1);
|
|
1123
|
+
return `${Number(stringTaxLimited).toLocaleString('pt-br', {
|
|
1124
|
+
maximumFractionDigits: decimalDigits,
|
|
1125
|
+
})} %`;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
MonkeyEcxFormatTaxPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1129
|
+
MonkeyEcxFormatTaxPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, name: "monkeyecxFormatTax" });
|
|
1130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, decorators: [{
|
|
1131
|
+
type: Pipe,
|
|
1132
|
+
args: [{
|
|
1133
|
+
name: 'monkeyecxFormatTax',
|
|
1134
|
+
}]
|
|
1135
|
+
}] });
|
|
1136
|
+
|
|
1137
|
+
class MonkeyEcxPipesModule {
|
|
1138
|
+
}
|
|
1139
|
+
MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1140
|
+
MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxDisplayFirstNamePipe,
|
|
1141
|
+
MonkeyEcxFormatAddressPipe,
|
|
1142
|
+
MonkeyEcxFormatCurrencyPipe,
|
|
1143
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
1144
|
+
MonkeyEcxFormatDateGroupPipe,
|
|
1145
|
+
MonkeyEcxFormatDocumentPipe,
|
|
1146
|
+
MonkeyEcxFormatNumberPipe,
|
|
1147
|
+
MonkeyEcxFormatPhonePipe,
|
|
1148
|
+
MonkeyEcxFormatSizePipe,
|
|
1149
|
+
MonkeyEcxFormatTaxPipe,
|
|
1150
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
1151
|
+
MonkeyEcxFormatValue,
|
|
1152
|
+
MonkeyEcxFormatZipCodePipe,
|
|
1153
|
+
MonkeyEcxTextTruncatePipe,
|
|
1154
|
+
MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxDisplayFirstNamePipe,
|
|
1155
|
+
MonkeyEcxFormatAddressPipe,
|
|
1156
|
+
MonkeyEcxFormatCurrencyPipe,
|
|
1157
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
1158
|
+
MonkeyEcxFormatDateGroupPipe,
|
|
1159
|
+
MonkeyEcxFormatDocumentPipe,
|
|
1160
|
+
MonkeyEcxFormatNumberPipe,
|
|
1161
|
+
MonkeyEcxFormatPhonePipe,
|
|
1162
|
+
MonkeyEcxFormatSizePipe,
|
|
1163
|
+
MonkeyEcxFormatTaxPipe,
|
|
1164
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
1165
|
+
MonkeyEcxFormatValue,
|
|
1166
|
+
MonkeyEcxFormatZipCodePipe,
|
|
1167
|
+
MonkeyEcxTextTruncatePipe,
|
|
1168
|
+
MonkeyEcxTruncateQtdPipe] });
|
|
1169
|
+
MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
|
|
1170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
|
|
1171
|
+
type: NgModule,
|
|
1172
|
+
args: [{
|
|
1173
|
+
declarations: [
|
|
1174
|
+
MonkeyEcxDisplayFirstNamePipe,
|
|
1175
|
+
MonkeyEcxFormatAddressPipe,
|
|
1176
|
+
MonkeyEcxFormatCurrencyPipe,
|
|
1177
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
1178
|
+
MonkeyEcxFormatDateGroupPipe,
|
|
1179
|
+
MonkeyEcxFormatDocumentPipe,
|
|
1180
|
+
MonkeyEcxFormatNumberPipe,
|
|
1181
|
+
MonkeyEcxFormatPhonePipe,
|
|
1182
|
+
MonkeyEcxFormatSizePipe,
|
|
1183
|
+
MonkeyEcxFormatTaxPipe,
|
|
1184
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
1185
|
+
MonkeyEcxFormatValue,
|
|
1186
|
+
MonkeyEcxFormatZipCodePipe,
|
|
1187
|
+
MonkeyEcxTextTruncatePipe,
|
|
1188
|
+
MonkeyEcxTruncateQtdPipe,
|
|
1189
|
+
],
|
|
1190
|
+
exports: [
|
|
1191
|
+
MonkeyEcxDisplayFirstNamePipe,
|
|
1192
|
+
MonkeyEcxFormatAddressPipe,
|
|
1193
|
+
MonkeyEcxFormatCurrencyPipe,
|
|
1194
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
1195
|
+
MonkeyEcxFormatDateGroupPipe,
|
|
1196
|
+
MonkeyEcxFormatDocumentPipe,
|
|
1197
|
+
MonkeyEcxFormatNumberPipe,
|
|
1198
|
+
MonkeyEcxFormatPhonePipe,
|
|
1199
|
+
MonkeyEcxFormatSizePipe,
|
|
1200
|
+
MonkeyEcxFormatTaxPipe,
|
|
1201
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
1202
|
+
MonkeyEcxFormatValue,
|
|
1203
|
+
MonkeyEcxFormatZipCodePipe,
|
|
1204
|
+
MonkeyEcxTextTruncatePipe,
|
|
1205
|
+
MonkeyEcxTruncateQtdPipe,
|
|
1206
|
+
],
|
|
1207
|
+
providers: [CurrencyPipe],
|
|
1208
|
+
}]
|
|
1209
|
+
}] });
|
|
1210
|
+
|
|
1211
|
+
class ClosedToMaintenanceModule {
|
|
1212
|
+
}
|
|
1213
|
+
ClosedToMaintenanceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClosedToMaintenanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1214
|
+
ClosedToMaintenanceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClosedToMaintenanceModule, declarations: [ClosedToMaintenanceComponent], imports: [CommonModule,
|
|
1215
|
+
MonkeyButtonModule,
|
|
1216
|
+
MonkeyIconModule,
|
|
1217
|
+
MonkeyInputModule,
|
|
1218
|
+
MonkeyModalModule,
|
|
1219
|
+
MonkeyEcxPipesModule, i1$1.TranslateModule], exports: [ClosedToMaintenanceComponent] });
|
|
1220
|
+
ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClosedToMaintenanceModule, imports: [[
|
|
1221
|
+
CommonModule,
|
|
1222
|
+
MonkeyButtonModule,
|
|
1223
|
+
MonkeyIconModule,
|
|
1224
|
+
MonkeyInputModule,
|
|
1225
|
+
MonkeyModalModule,
|
|
1226
|
+
MonkeyEcxPipesModule,
|
|
1227
|
+
TranslateModule.forChild()
|
|
1228
|
+
]] });
|
|
1229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClosedToMaintenanceModule, decorators: [{
|
|
1230
|
+
type: NgModule,
|
|
1231
|
+
args: [{
|
|
1232
|
+
declarations: [ClosedToMaintenanceComponent],
|
|
1233
|
+
imports: [
|
|
1234
|
+
CommonModule,
|
|
1235
|
+
MonkeyButtonModule,
|
|
1236
|
+
MonkeyIconModule,
|
|
1237
|
+
MonkeyInputModule,
|
|
1238
|
+
MonkeyModalModule,
|
|
1239
|
+
MonkeyEcxPipesModule,
|
|
1240
|
+
TranslateModule.forChild()
|
|
1241
|
+
],
|
|
1242
|
+
exports: [ClosedToMaintenanceComponent]
|
|
1243
|
+
}]
|
|
1244
|
+
}] });
|
|
1245
|
+
|
|
1246
|
+
class MonkeyEcxProgressBarService {
|
|
1247
|
+
constructor(router) {
|
|
1248
|
+
this.router = router;
|
|
1249
|
+
this.visible = null;
|
|
1250
|
+
this.init();
|
|
1389
1251
|
}
|
|
1390
|
-
|
|
1391
|
-
|
|
1252
|
+
init() {
|
|
1253
|
+
this.visible = new BehaviorSubject(false);
|
|
1254
|
+
this.router.events
|
|
1255
|
+
.pipe(filter((event) => {
|
|
1256
|
+
return event instanceof NavigationStart;
|
|
1257
|
+
}))
|
|
1258
|
+
.subscribe(() => {
|
|
1259
|
+
this.show();
|
|
1260
|
+
});
|
|
1261
|
+
this.router.events
|
|
1262
|
+
.pipe(filter((event) => {
|
|
1263
|
+
return (event instanceof NavigationEnd ||
|
|
1264
|
+
event instanceof NavigationError ||
|
|
1265
|
+
event instanceof NavigationCancel);
|
|
1266
|
+
}))
|
|
1267
|
+
.subscribe(() => {
|
|
1268
|
+
this.hide();
|
|
1269
|
+
});
|
|
1392
1270
|
}
|
|
1393
|
-
|
|
1394
|
-
|
|
1271
|
+
show() {
|
|
1272
|
+
var _a;
|
|
1273
|
+
(_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(true);
|
|
1395
1274
|
}
|
|
1396
|
-
|
|
1397
|
-
|
|
1275
|
+
hide() {
|
|
1276
|
+
var _a;
|
|
1277
|
+
(_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(false);
|
|
1398
1278
|
}
|
|
1399
|
-
|
|
1400
|
-
|
|
1279
|
+
visibleConfig() {
|
|
1280
|
+
var _a;
|
|
1281
|
+
return ((_a = this.visible) === null || _a === void 0 ? void 0 : _a.asObservable()) || null;
|
|
1401
1282
|
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1283
|
+
}
|
|
1284
|
+
MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1285
|
+
MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
|
|
1286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarService, decorators: [{
|
|
1287
|
+
type: Injectable,
|
|
1288
|
+
args: [{
|
|
1289
|
+
providedIn: 'root'
|
|
1290
|
+
}]
|
|
1291
|
+
}], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
|
|
1292
|
+
|
|
1293
|
+
class MonkeyEcxProgressBarComponent {
|
|
1294
|
+
constructor(progressBarService) {
|
|
1295
|
+
this.progressBarService = progressBarService;
|
|
1296
|
+
this.visible = false;
|
|
1297
|
+
//not to do
|
|
1404
1298
|
}
|
|
1405
|
-
|
|
1406
|
-
|
|
1299
|
+
ngOnInit() {
|
|
1300
|
+
var _a, _b;
|
|
1301
|
+
(_b = (_a = this.progressBarService) === null || _a === void 0 ? void 0 : _a.visibleConfig()) === null || _b === void 0 ? void 0 : _b.subscribe((visible) => {
|
|
1302
|
+
this.visible = visible;
|
|
1303
|
+
});
|
|
1407
1304
|
}
|
|
1408
|
-
|
|
1409
|
-
|
|
1305
|
+
}
|
|
1306
|
+
MonkeyEcxProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarComponent, deps: [{ token: MonkeyEcxProgressBarService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1307
|
+
MonkeyEcxProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MonkeyEcxProgressBarComponent, selector: "monkeyecx-progress-bar", ngImport: i0, template: "<ng-container *ngIf=\"visible\">\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\n</ng-container>\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarComponent, decorators: [{
|
|
1309
|
+
type: Component,
|
|
1310
|
+
args: [{ selector: 'monkeyecx-progress-bar', encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"visible\">\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\n</ng-container>\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"] }]
|
|
1311
|
+
}], ctorParameters: function () { return [{ type: MonkeyEcxProgressBarService }]; } });
|
|
1312
|
+
|
|
1313
|
+
class MonkeyEcxProgressBarModule {
|
|
1314
|
+
}
|
|
1315
|
+
MonkeyEcxProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1316
|
+
MonkeyEcxProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarModule, declarations: [MonkeyEcxProgressBarComponent], imports: [CommonModule], exports: [MonkeyEcxProgressBarComponent] });
|
|
1317
|
+
MonkeyEcxProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarModule, imports: [[CommonModule]] });
|
|
1318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxProgressBarModule, decorators: [{
|
|
1319
|
+
type: NgModule,
|
|
1320
|
+
args: [{
|
|
1321
|
+
declarations: [MonkeyEcxProgressBarComponent],
|
|
1322
|
+
imports: [CommonModule],
|
|
1323
|
+
exports: [MonkeyEcxProgressBarComponent]
|
|
1324
|
+
}]
|
|
1325
|
+
}] });
|
|
1326
|
+
|
|
1327
|
+
class VersionChangedComponent {
|
|
1328
|
+
constructor() {
|
|
1329
|
+
this.config = null;
|
|
1410
1330
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1331
|
+
onClose() {
|
|
1332
|
+
document.location.reload();
|
|
1413
1333
|
}
|
|
1414
|
-
}
|
|
1334
|
+
}
|
|
1335
|
+
VersionChangedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1336
|
+
VersionChangedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: VersionChangedComponent, selector: "monkeyecx-version-changed", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
1337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedComponent, decorators: [{
|
|
1338
|
+
type: Component,
|
|
1339
|
+
args: [{ selector: 'monkeyecx-version-changed', encapsulation: ViewEncapsulation.None, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"] }]
|
|
1340
|
+
}], propDecorators: { config: [{
|
|
1341
|
+
type: Input
|
|
1342
|
+
}], modalRef: [{
|
|
1343
|
+
type: Input
|
|
1344
|
+
}] } });
|
|
1415
1345
|
|
|
1416
|
-
|
|
1346
|
+
class VersionChangedModule {
|
|
1347
|
+
}
|
|
1348
|
+
VersionChangedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1349
|
+
VersionChangedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedModule, declarations: [VersionChangedComponent], imports: [CommonModule,
|
|
1350
|
+
MonkeyButtonModule,
|
|
1351
|
+
MonkeyIconModule,
|
|
1352
|
+
MonkeyInputModule,
|
|
1353
|
+
MonkeyModalModule, i1$1.TranslateModule], exports: [VersionChangedComponent] });
|
|
1354
|
+
VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedModule, imports: [[
|
|
1355
|
+
CommonModule,
|
|
1356
|
+
MonkeyButtonModule,
|
|
1357
|
+
MonkeyIconModule,
|
|
1358
|
+
MonkeyInputModule,
|
|
1359
|
+
MonkeyModalModule,
|
|
1360
|
+
TranslateModule.forChild()
|
|
1361
|
+
]] });
|
|
1362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: VersionChangedModule, decorators: [{
|
|
1363
|
+
type: NgModule,
|
|
1364
|
+
args: [{
|
|
1365
|
+
declarations: [VersionChangedComponent],
|
|
1366
|
+
imports: [
|
|
1367
|
+
CommonModule,
|
|
1368
|
+
MonkeyButtonModule,
|
|
1369
|
+
MonkeyIconModule,
|
|
1370
|
+
MonkeyInputModule,
|
|
1371
|
+
MonkeyModalModule,
|
|
1372
|
+
TranslateModule.forChild()
|
|
1373
|
+
],
|
|
1374
|
+
exports: [VersionChangedComponent]
|
|
1375
|
+
}]
|
|
1376
|
+
}] });
|
|
1377
|
+
|
|
1378
|
+
/* eslint-disable space-before-function-paren */
|
|
1379
|
+
/* eslint-disable func-names */
|
|
1380
|
+
function MonkeyEcxCoreCharts(render = true) {
|
|
1381
|
+
return (target, propertyName, propertyDescriptor) => {
|
|
1382
|
+
const method = propertyDescriptor.value;
|
|
1383
|
+
propertyDescriptor.value = function (...args) {
|
|
1384
|
+
const context = this;
|
|
1385
|
+
if (render) {
|
|
1386
|
+
const scriptsLoaded = Array.from(document.scripts);
|
|
1387
|
+
scriptsLoaded.forEach((script) => {
|
|
1388
|
+
const { src } = script;
|
|
1389
|
+
if (src.search('www.gstatic.com/charts') > 0) {
|
|
1390
|
+
document.getElementsByTagName('head')[0].removeChild(script);
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
const node = document.createElement('script');
|
|
1394
|
+
node.src = 'https://www.gstatic.com/charts/loader.js';
|
|
1395
|
+
node.type = 'text/javascript';
|
|
1396
|
+
node.async = true;
|
|
1397
|
+
node.id = 'monkeyecx-charts-settings';
|
|
1398
|
+
node.onload = () => {
|
|
1399
|
+
method.apply(context, args);
|
|
1400
|
+
};
|
|
1401
|
+
document.getElementsByTagName('head')[0].appendChild(node);
|
|
1402
|
+
}
|
|
1403
|
+
else {
|
|
1404
|
+
const scriptsLoaded = Array.from(document.scripts);
|
|
1405
|
+
scriptsLoaded.forEach((script) => {
|
|
1406
|
+
const { src } = script;
|
|
1407
|
+
if (src.search('www.gstatic.com/charts') > 0) {
|
|
1408
|
+
document.getElementsByTagName('head')[0].removeChild(script);
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
method.apply(context, args);
|
|
1412
|
+
}
|
|
1413
|
+
};
|
|
1414
|
+
return propertyDescriptor;
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
1417
|
|
|
1418
1418
|
function MonkeyEcxCoreServiceConstructor() {
|
|
1419
1419
|
return (target) => {
|
|
@@ -3148,6 +3148,10 @@ class MonkeyEcxAuthenticationService {
|
|
|
3148
3148
|
console.error('isAuthorized needs to be declared!');
|
|
3149
3149
|
return false;
|
|
3150
3150
|
};
|
|
3151
|
+
this.isCompanyAuthorized = () => {
|
|
3152
|
+
console.error('isCompanyAuthorized needs to be declared!');
|
|
3153
|
+
return false;
|
|
3154
|
+
};
|
|
3151
3155
|
this.getRequestWithHeaders = (request) => {
|
|
3152
3156
|
console.error('getRequestWithHeaders needs to be declared!');
|
|
3153
3157
|
return null;
|
|
@@ -3169,11 +3173,11 @@ class MonkeyEcxAuthenticationService {
|
|
|
3169
3173
|
init(args) {
|
|
3170
3174
|
this.hadAtLeastOneLogin = (args === null || args === void 0 ? void 0 : args.hadAtLeastOneLogin) || this.hadAtLeastOneLogin.bind(this);
|
|
3171
3175
|
this.redirectApp = (args === null || args === void 0 ? void 0 : args.redirectApp) || this.redirectApp.bind(this);
|
|
3172
|
-
this.redirectLoginWelcomeBack =
|
|
3173
|
-
this.redirectLoginWelcomeBack.bind(this);
|
|
3176
|
+
this.redirectLoginWelcomeBack =
|
|
3177
|
+
(args === null || args === void 0 ? void 0 : args.redirectLoginWelcomeBack) || this.redirectLoginWelcomeBack.bind(this);
|
|
3174
3178
|
this.isAuthorized = (args === null || args === void 0 ? void 0 : args.isAuthorized) || this.isAuthorized.bind(this);
|
|
3175
|
-
this.getRequestWithHeaders =
|
|
3176
|
-
this.getRequestWithHeaders.bind(this);
|
|
3179
|
+
this.getRequestWithHeaders =
|
|
3180
|
+
(args === null || args === void 0 ? void 0 : args.getRequestWithHeaders) || this.getRequestWithHeaders.bind(this);
|
|
3177
3181
|
this.getRequestWithHeadersOb = args === null || args === void 0 ? void 0 : args.getRequestWithHeadersOb.bind(this);
|
|
3178
3182
|
this.refreshShouldHappen = (args === null || args === void 0 ? void 0 : args.refreshShouldHappen) || this.refreshShouldHappen.bind(this);
|
|
3179
3183
|
this.refreshToken = (args === null || args === void 0 ? void 0 : args.refreshToken) || this.refreshToken.bind(this);
|
|
@@ -3184,10 +3188,34 @@ MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion:
|
|
|
3184
3188
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
|
|
3185
3189
|
type: Injectable,
|
|
3186
3190
|
args: [{
|
|
3187
|
-
providedIn: 'root'
|
|
3191
|
+
providedIn: 'root',
|
|
3188
3192
|
}]
|
|
3189
3193
|
}], ctorParameters: function () { return []; } });
|
|
3190
3194
|
|
|
3195
|
+
class MonkeyEcxAuthGuardCompany {
|
|
3196
|
+
constructor(monkeyecxAuthenticationService) {
|
|
3197
|
+
this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
|
|
3198
|
+
// not to do
|
|
3199
|
+
}
|
|
3200
|
+
canActivate() {
|
|
3201
|
+
const { monkeyecxAuthenticationService } = this;
|
|
3202
|
+
if (monkeyecxAuthenticationService.isAuthorized() &&
|
|
3203
|
+
monkeyecxAuthenticationService.isCompanyAuthorized()) {
|
|
3204
|
+
return true;
|
|
3205
|
+
}
|
|
3206
|
+
monkeyecxAuthenticationService.redirectLoginWelcomeBack();
|
|
3207
|
+
return false;
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
MonkeyEcxAuthGuardCompany.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxAuthGuardCompany, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3211
|
+
MonkeyEcxAuthGuardCompany.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxAuthGuardCompany, providedIn: 'root' });
|
|
3212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxAuthGuardCompany, decorators: [{
|
|
3213
|
+
type: Injectable,
|
|
3214
|
+
args: [{
|
|
3215
|
+
providedIn: 'root',
|
|
3216
|
+
}]
|
|
3217
|
+
}], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }]; } });
|
|
3218
|
+
|
|
3191
3219
|
class MonkeyEcxAuthGuardLogin {
|
|
3192
3220
|
constructor(monkeyecxAuthenticationService) {
|
|
3193
3221
|
this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
|