monkey-front-core 0.0.187 → 0.0.190

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Pipe, Component, ViewEncapsulation, Input, Injectable, NgModule, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, InjectionToken, Inject, Optional, NgZone, ErrorHandler, SkipSelf } from '@angular/core';
2
+ import { Pipe, Component, ViewEncapsulation, Input, Injectable, NgModule, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, InjectionToken, Inject, Optional, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
3
3
  import * as i1 from 'monkey-style-guide';
4
4
  import { MonkeyButtonModule, MonkeyIconModule, MonkeyInputModule, MonkeyModalModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
5
5
  import * as i2 from '@angular/common';
@@ -2234,6 +2234,24 @@ class MonkeyEcxCommonsService {
2234
2234
  const { service, type } = args;
2235
2235
  return service.hasPendencies(type);
2236
2236
  }
2237
+ allowedSecurityAccessByFeature(args) {
2238
+ var _a, _b;
2239
+ if (!args) {
2240
+ return true;
2241
+ }
2242
+ const { config, feature } = args;
2243
+ try {
2244
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(feature) ||
2245
+ !MonkeyEcxUtils.persistNullEmptyUndefined((_a = config === null || config === void 0 ? void 0 : config.program) === null || _a === void 0 ? void 0 : _a.settings[feature])) {
2246
+ return false;
2247
+ }
2248
+ return !((_b = config === null || config === void 0 ? void 0 : config.program) === null || _b === void 0 ? void 0 : _b.settings[feature]);
2249
+ }
2250
+ catch (e) {
2251
+ // not to do
2252
+ }
2253
+ return true;
2254
+ }
2237
2255
  allowedSecurityAccessByCountry(arg) {
2238
2256
  if (!arg)
2239
2257
  return true;
@@ -2348,9 +2366,11 @@ class MonkeyEcxCommonsService {
2348
2366
  this.__tokenCredentials = this.tokenStorage.getToken();
2349
2367
  }
2350
2368
  const pend = this.allowedSecurityAccessByPendency(otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.pendency);
2369
+ const allowedByProgram = this.allowedSecurityAccessByFeature(otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.featureByProgram);
2351
2370
  if (this.allowedSecurityAccess(otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.security) &&
2352
2371
  this.allowedSecurityAccessByCountry(otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.countrySecurity) &&
2353
- !pend.hasPendencies) {
2372
+ !pend.hasPendencies &&
2373
+ allowedByProgram) {
2354
2374
  if (this.__schedule) {
2355
2375
  (_c = (_b = (_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.schedule) === null || _b === void 0 ? void 0 : _b.service) === null || _c === void 0 ? void 0 : _c.removeSchedule(this.__schedule);
2356
2376
  this.__schedule = null;
@@ -2398,6 +2418,9 @@ class MonkeyEcxCommonsService {
2398
2418
  otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.callbackMain();
2399
2419
  }
2400
2420
  }
2421
+ else if (allowedByProgram) {
2422
+ this.navigateToErrorPage(404, otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.router);
2423
+ }
2401
2424
  else if (pend.hasPendencies) {
2402
2425
  this.navigateToPendencyPage(pend, otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.router);
2403
2426
  }
@@ -3424,122 +3447,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
3424
3447
  args: ['click']
3425
3448
  }] } });
3426
3449
 
3427
- class MonkeyEcxFeatureDirective {
3428
- constructor(cdr, elementRef, monkeyecxFeatureToggleService) {
3429
- this.cdr = cdr;
3430
- this.elementRef = elementRef;
3431
- this.monkeyecxFeatureToggleService = monkeyecxFeatureToggleService;
3432
- this.unsubscribeAll = new Subject();
3433
- // not to do
3434
- }
3435
- getFeature(feature) {
3436
- const { monkeyecxFeatureToggleService } = this;
3437
- if (!monkeyecxFeatureToggleService) {
3438
- return false;
3439
- }
3440
- return (monkeyecxFeatureToggleService === null || monkeyecxFeatureToggleService === void 0 ? void 0 : monkeyecxFeatureToggleService.getFlag(feature)) || false;
3441
- }
3442
- handleDisplay() {
3443
- if (!this.feature)
3444
- return;
3445
- const flag = this.getFeature(this.feature);
3446
- let display = 'none';
3447
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(flag)) {
3448
- return;
3449
- }
3450
- if (flag) {
3451
- display = 'block';
3452
- }
3453
- if (display === 'none') {
3454
- this.elementRef.nativeElement.remove();
3455
- }
3456
- this.elementRef.nativeElement.style.display = display;
3457
- this.cdr.detectChanges();
3458
- }
3459
- ngOnDestroy() {
3460
- this.unsubscribeAll.next();
3461
- this.unsubscribeAll.complete();
3462
- }
3463
- ngOnInit() {
3464
- if (!this.feature)
3465
- return;
3466
- this.elementRef.nativeElement.style.display = 'none';
3467
- this.cdr.detectChanges();
3468
- this.monkeyecxFeatureToggleService.onFlags
3469
- .pipe(takeUntil(this.unsubscribeAll))
3470
- .subscribe((val) => {
3471
- if (val) {
3472
- this.handleDisplay();
3473
- }
3474
- });
3475
- }
3476
- }
3477
- MonkeyEcxFeatureDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MonkeyEcxFeatureToggleService }], target: i0.ɵɵFactoryTarget.Directive });
3478
- MonkeyEcxFeatureDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFeatureDirective, selector: "[monkeyecxFeature]", inputs: { feature: ["featureName", "feature"] }, ngImport: i0 });
3479
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, decorators: [{
3480
- type: Directive,
3481
- args: [{
3482
- selector: '[monkeyecxFeature]',
3483
- }]
3484
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: MonkeyEcxFeatureToggleService }]; }, propDecorators: { feature: [{
3485
- type: Input,
3486
- args: ['featureName']
3487
- }] } });
3488
-
3489
- class MonkeyEcxDirectivesModule {
3490
- }
3491
- MonkeyEcxDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3492
- MonkeyEcxDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, declarations: [MonkeyEcxDragDropDirective,
3493
- MonkeyEcxFormatCurrency,
3494
- MonkeyEcxFeatureDirective,
3495
- MonkeyEcxFormatUpper,
3496
- MonkeyEcxOnlyAlphaNumericDirective,
3497
- MonkeyEcxOnlyNumbersDirective,
3498
- MonkeyEcxSecurityDirective,
3499
- MonkeyEcxTooltipDirective,
3500
- MonkeyEcxPopoverDirective,
3501
- MonkeyEcxPopoverOptionsDirective], imports: [CommonModule, OverlayModule], exports: [MonkeyEcxDragDropDirective,
3502
- MonkeyEcxFormatCurrency,
3503
- MonkeyEcxFeatureDirective,
3504
- MonkeyEcxFormatUpper,
3505
- MonkeyEcxOnlyAlphaNumericDirective,
3506
- MonkeyEcxOnlyNumbersDirective,
3507
- MonkeyEcxSecurityDirective,
3508
- MonkeyEcxTooltipDirective,
3509
- MonkeyEcxPopoverDirective,
3510
- MonkeyEcxPopoverOptionsDirective] });
3511
- MonkeyEcxDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, imports: [[CommonModule, OverlayModule]] });
3512
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, decorators: [{
3513
- type: NgModule,
3514
- args: [{
3515
- declarations: [
3516
- MonkeyEcxDragDropDirective,
3517
- MonkeyEcxFormatCurrency,
3518
- MonkeyEcxFeatureDirective,
3519
- MonkeyEcxFormatUpper,
3520
- MonkeyEcxOnlyAlphaNumericDirective,
3521
- MonkeyEcxOnlyNumbersDirective,
3522
- MonkeyEcxSecurityDirective,
3523
- MonkeyEcxTooltipDirective,
3524
- MonkeyEcxPopoverDirective,
3525
- MonkeyEcxPopoverOptionsDirective
3526
- ],
3527
- imports: [CommonModule, OverlayModule],
3528
- exports: [
3529
- MonkeyEcxDragDropDirective,
3530
- MonkeyEcxFormatCurrency,
3531
- MonkeyEcxFeatureDirective,
3532
- MonkeyEcxFormatUpper,
3533
- MonkeyEcxOnlyAlphaNumericDirective,
3534
- MonkeyEcxOnlyNumbersDirective,
3535
- MonkeyEcxSecurityDirective,
3536
- MonkeyEcxTooltipDirective,
3537
- MonkeyEcxPopoverDirective,
3538
- MonkeyEcxPopoverOptionsDirective
3539
- ]
3540
- }]
3541
- }] });
3542
-
3543
3450
  /* eslint-disable no-console */
3544
3451
  class MonkeyEcxAuthenticationService {
3545
3452
  constructor() {
@@ -3674,6 +3581,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
3674
3581
  }]
3675
3582
  }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }]; } });
3676
3583
 
3584
+ /* eslint-disable indent */
3585
+ class MonkeyEcxConfigModule {
3586
+ constructor(parentModule) {
3587
+ if (parentModule) {
3588
+ throw new Error('MonkeyEcxConfigModule is already loaded. Import it in the AppModule only!');
3589
+ }
3590
+ }
3591
+ static forRoot() {
3592
+ return {
3593
+ ngModule: MonkeyEcxConfigModule,
3594
+ providers: [MonkeyEcxConfigService]
3595
+ };
3596
+ }
3597
+ }
3598
+ MonkeyEcxConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, deps: [{ token: MonkeyEcxConfigModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
3599
+ MonkeyEcxConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
3600
+ MonkeyEcxConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
3601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, decorators: [{
3602
+ type: NgModule
3603
+ }], ctorParameters: function () {
3604
+ return [{ type: MonkeyEcxConfigModule, decorators: [{
3605
+ type: Optional
3606
+ }, {
3607
+ type: SkipSelf
3608
+ }] }];
3609
+ } });
3610
+
3677
3611
  class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
3678
3612
  constructor(monkeyecxService, tokenStorage, monkeyecxAuthenticationService, router, snackbarService, translateService) {
3679
3613
  super(monkeyecxService, tokenStorage);
@@ -3882,79 +3816,206 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
3882
3816
  }]
3883
3817
  }] });
3884
3818
 
3885
- class MonkeyEcxHttpConfigErrorInterceptor {
3886
- constructor(monkeyecxAuthenticationService, monkeyecxErrorHandlingService) {
3887
- this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
3888
- this.monkeyecxErrorHandlingService = monkeyecxErrorHandlingService;
3889
- // no to do
3819
+ class MonkeyEcxLoggedHandlingService {
3820
+ constructor() {
3821
+ this.schedules = [];
3822
+ this.genericSchedules = [];
3823
+ // not to do
3890
3824
  }
3891
- intercept(request, next) {
3892
- return next.handle(request).pipe(map((event) => {
3893
- return event;
3894
- }), catchError((error) => {
3895
- var _a, _b;
3896
- if (this.monkeyecxAuthenticationService.refreshShouldHappen(error)) {
3897
- return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.refreshToken()) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map(() => {
3898
- return this.monkeyecxAuthenticationService.getRequestWithHeaders(request);
3899
- }), mergeMap((resp) => {
3900
- return next.handle(resp).pipe(catchError((error) => {
3901
- this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
3902
- return throwError(null);
3903
- }));
3904
- }), catchError((error) => {
3905
- this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
3906
- return throwError(null);
3907
- }))) || throwError(error);
3908
- }
3909
- return throwError(error);
3910
- }));
3825
+ destroySchedule() {
3826
+ this.schedules.forEach((sch) => {
3827
+ clearInterval(sch.interval);
3828
+ });
3829
+ this.schedules = [];
3911
3830
  }
3912
- }
3913
- MonkeyEcxHttpConfigErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3914
- MonkeyEcxHttpConfigErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor });
3915
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, decorators: [{
3916
- type: Injectable
3917
- }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
3918
-
3919
- class MonkeyEcxHttpConfigHeaderInterceptor {
3920
- constructor(monkeyecxAuthenticationService, monkeyecxErrorHandlingService) {
3921
- this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
3922
- this.monkeyecxErrorHandlingService = monkeyecxErrorHandlingService;
3923
- // not to do
3831
+ destroyGenericSchedule() {
3832
+ this.genericSchedules.forEach((sch) => {
3833
+ clearInterval(sch.interval);
3834
+ });
3835
+ this.genericSchedules = [];
3924
3836
  }
3925
- intercept(request, next) {
3926
- var _a, _b;
3927
- return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.getRequestWithHeadersOb(request)) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map((event) => {
3928
- return event;
3929
- }), mergeMap((resp) => {
3930
- request = request.clone({
3931
- setHeaders: resp
3932
- });
3933
- return next.handle(request);
3934
- }), catchError((error) => {
3935
- this.monkeyecxErrorHandlingService.handleError(error);
3936
- return throwError(error);
3937
- }))) || throwError('getRequestWithHeadersOb undefined');
3837
+ addSchedule(sch) {
3838
+ this.schedules = sch;
3839
+ }
3840
+ addGenericSchedule(sch) {
3841
+ this.genericSchedules = sch;
3842
+ }
3843
+ destroy() {
3844
+ this.destroySchedule();
3845
+ this.destroyGenericSchedule();
3938
3846
  }
3939
3847
  }
3940
- MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3941
- MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor });
3942
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, decorators: [{
3943
- type: Injectable
3944
- }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
3848
+ MonkeyEcxLoggedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3849
+ MonkeyEcxLoggedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, providedIn: 'root' });
3850
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, decorators: [{
3851
+ type: Injectable,
3852
+ args: [{
3853
+ providedIn: 'root'
3854
+ }]
3855
+ }], ctorParameters: function () { return []; } });
3945
3856
 
3946
- class MonkeyEcxRequestQueueHandlingService {
3857
+ class MonkeyEcxPaginationService {
3947
3858
  constructor() {
3948
- this.queue = [];
3949
- this.newQueue = new BehaviorSubject(false);
3950
- this.queues$ = new BehaviorSubject([]);
3859
+ this.callbacks = {};
3860
+ // not to do
3951
3861
  }
3952
- addToQueue(q) {
3953
- this.queue.push(q);
3954
- this.queues$.next(this.queue);
3955
- this.newQueue.next(true);
3862
+ setCallback(callback, name = 'main') {
3863
+ this.callbacks = Object.assign(Object.assign({}, this.callbacks), { [name]: callback });
3956
3864
  }
3957
- markQueueItemAsFinish(q, status, action) {
3865
+ execute(type, name = 'main') {
3866
+ const { callbacks } = this;
3867
+ const callback = callbacks === null || callbacks === void 0 ? void 0 : callbacks[name];
3868
+ if (callback)
3869
+ callback(type);
3870
+ }
3871
+ }
3872
+ MonkeyEcxPaginationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3873
+ MonkeyEcxPaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, providedIn: 'root' });
3874
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, decorators: [{
3875
+ type: Injectable,
3876
+ args: [{
3877
+ providedIn: 'root'
3878
+ }]
3879
+ }], ctorParameters: function () { return []; } });
3880
+
3881
+ class MonkeyEcxRequestDownloadHandlingService {
3882
+ constructor() {
3883
+ this.download = [];
3884
+ this.download$ = new BehaviorSubject([]);
3885
+ }
3886
+ addTo(q) {
3887
+ this.download.push(q);
3888
+ this.download$.next(this.download);
3889
+ }
3890
+ markItemAsFinish(q, status) {
3891
+ const saved = [...this.download];
3892
+ this.download = [
3893
+ ...saved
3894
+ .map((val) => {
3895
+ if (val.status === MonkeyEcxDownloadEvents.OnGoing) {
3896
+ const valSaved = Object.assign({}, val);
3897
+ if (valSaved.item.id === q.item.id) {
3898
+ return Object.assign(Object.assign({}, valSaved), { status: status || MonkeyEcxDownloadEvents.Finished });
3899
+ }
3900
+ return valSaved;
3901
+ }
3902
+ return null;
3903
+ })
3904
+ .filter((_) => {
3905
+ return _;
3906
+ })
3907
+ ];
3908
+ this.download = this.download.filter((_) => {
3909
+ return _.status === MonkeyEcxDownloadEvents.OnGoing;
3910
+ });
3911
+ this.download$.next(this.download);
3912
+ }
3913
+ updateItem(q, loaded, total) {
3914
+ const saved = [...this.download];
3915
+ this.download = [
3916
+ ...saved.map((val) => {
3917
+ const valSaved = Object.assign({}, val);
3918
+ const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
3919
+ const totalPercentage = 100;
3920
+ if (valSaved.item.id === q.item.id) {
3921
+ return Object.assign(Object.assign({}, valSaved), { loaded,
3922
+ total, currentPercentage: currentPecentage, totalPercentage });
3923
+ }
3924
+ return valSaved;
3925
+ })
3926
+ ];
3927
+ this.download$.next(this.download);
3928
+ }
3929
+ set(q) {
3930
+ this.addTo(q);
3931
+ }
3932
+ get() {
3933
+ return this.download$.asObservable();
3934
+ }
3935
+ update(q, loaded, total) {
3936
+ this.updateItem(q, loaded, total);
3937
+ }
3938
+ finishItem(q, status) {
3939
+ this.markItemAsFinish(q, status);
3940
+ }
3941
+ hasDownloadOnGoing() {
3942
+ const found = this.download.find((_) => {
3943
+ return _.status === MonkeyEcxDownloadEvents.OnGoing;
3944
+ });
3945
+ return MonkeyEcxUtils.persistNullEmptyUndefined(found);
3946
+ }
3947
+ }
3948
+ MonkeyEcxRequestDownloadHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3949
+ MonkeyEcxRequestDownloadHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, providedIn: 'root' });
3950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, decorators: [{
3951
+ type: Injectable,
3952
+ args: [{
3953
+ providedIn: 'root'
3954
+ }]
3955
+ }], ctorParameters: function () { return []; } });
3956
+
3957
+ class MonkeyEcxRequestDownloadedHandlingService {
3958
+ constructor() {
3959
+ this.downloaded = [];
3960
+ this.downloaded$ = new BehaviorSubject([]);
3961
+ }
3962
+ addTo(q) {
3963
+ this.downloaded.push(q);
3964
+ this.downloaded$.next(this.downloaded);
3965
+ }
3966
+ markItemAsFinish(q, status) {
3967
+ const saved = [...this.downloaded];
3968
+ this.downloaded = [
3969
+ ...saved.map((val) => {
3970
+ if (val.status === MonkeyEcxDownloadEvents.OnGoing) {
3971
+ const valSaved = Object.assign({}, val);
3972
+ if (valSaved.item.id === q.item.id) {
3973
+ return Object.assign(Object.assign({}, valSaved), { status: status || MonkeyEcxDownloadEvents.Finished, action: q.action });
3974
+ }
3975
+ return valSaved;
3976
+ }
3977
+ return val;
3978
+ })
3979
+ ];
3980
+ this.downloaded$.next(this.downloaded);
3981
+ }
3982
+ set(q) {
3983
+ this.addTo(q);
3984
+ }
3985
+ get() {
3986
+ return this.downloaded$.asObservable();
3987
+ }
3988
+ finishItem(q, status) {
3989
+ this.markItemAsFinish(q, status);
3990
+ }
3991
+ hasDownloadOnGoing() {
3992
+ const found = this.downloaded.find((_) => {
3993
+ return _.status === MonkeyEcxDownloadEvents.OnGoing;
3994
+ });
3995
+ return MonkeyEcxUtils.persistNullEmptyUndefined(found);
3996
+ }
3997
+ }
3998
+ MonkeyEcxRequestDownloadedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3999
+ MonkeyEcxRequestDownloadedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, providedIn: 'root' });
4000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, decorators: [{
4001
+ type: Injectable,
4002
+ args: [{
4003
+ providedIn: 'root'
4004
+ }]
4005
+ }], ctorParameters: function () { return []; } });
4006
+
4007
+ class MonkeyEcxRequestQueueHandlingService {
4008
+ constructor() {
4009
+ this.queue = [];
4010
+ this.newQueue = new BehaviorSubject(false);
4011
+ this.queues$ = new BehaviorSubject([]);
4012
+ }
4013
+ addToQueue(q) {
4014
+ this.queue.push(q);
4015
+ this.queues$.next(this.queue);
4016
+ this.newQueue.next(true);
4017
+ }
4018
+ markQueueItemAsFinish(q, status, action) {
3958
4019
  const saved = [...this.queue];
3959
4020
  this.queue = [
3960
4021
  ...saved.map((val) => {
@@ -4140,551 +4201,565 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4140
4201
  }]
4141
4202
  }], ctorParameters: function () { return []; } });
4142
4203
 
4143
- /* eslint-disable max-len */
4144
- class MonkeyEcxHttpConfigQueueInterceptor {
4145
- constructor(injector, monkeyecxRequestQueueHandlingService) {
4146
- this.injector = injector;
4147
- this.monkeyecxRequestQueueHandlingService = monkeyecxRequestQueueHandlingService;
4204
+ class MonkeyEcxDiscoveryParamsService {
4205
+ constructor(router) {
4206
+ this.router = router;
4148
4207
  // not to do
4149
4208
  }
4150
- intercept(request, next) {
4151
- const { injector, isQueueProperty } = this;
4152
- const monkeyecxHandlingService = injector.get(MonkeyEcxHandlingService);
4153
- const monkeyecxRequestQueue = monkeyecxHandlingService === null || monkeyecxHandlingService === void 0 ? void 0 : monkeyecxHandlingService.getMonkeyEcxRequestQueue();
4154
- if (isQueueProperty(monkeyecxRequestQueue)) {
4155
- this.monkeyecxRequestQueueHandlingService.setQueue(monkeyecxRequestQueue);
4209
+ getLastChild(route) {
4210
+ if (route.firstChild) {
4211
+ return this.getLastChild(route.firstChild);
4156
4212
  }
4157
- return next.handle(request).pipe(finalize(() => {
4158
- if (isQueueProperty(monkeyecxRequestQueue)) {
4159
- this.monkeyecxRequestQueueHandlingService.finishQueueItem(monkeyecxRequestQueue);
4160
- }
4161
- }));
4213
+ return route;
4162
4214
  }
4163
- isQueueProperty(mrq) {
4164
- var _a;
4165
- return (MonkeyEcxUtils.persistNullEmptyUndefined(mrq) &&
4166
- MonkeyEcxUtils.persistNullEmptyUndefined((_a = mrq === null || mrq === void 0 ? void 0 : mrq.item) === null || _a === void 0 ? void 0 : _a.name));
4215
+ setData(field, value) {
4216
+ const { root } = this.router.routerState.snapshot;
4217
+ const route = this.getLastChild(root);
4218
+ route.data[field] = value;
4167
4219
  }
4168
- }
4169
- MonkeyEcxHttpConfigQueueInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, deps: [{ token: i0.Injector }, { token: MonkeyEcxRequestQueueHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
4170
- MonkeyEcxHttpConfigQueueInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor });
4171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, decorators: [{
4172
- type: Injectable
4173
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: MonkeyEcxRequestQueueHandlingService }]; } });
4174
-
4175
- /* eslint-disable max-len */
4176
- class MonkeyEcxHttpConfigLoadingInProgressInterceptor {
4177
- constructor(injector) {
4178
- this.injector = injector;
4179
- // no to do
4220
+ getData(field) {
4221
+ const { root } = this.router.routerState.snapshot;
4222
+ const route = this.getLastChild(root);
4223
+ const found = MonkeyEcxUtils.persistNullEmptyUndefined(route) ? route.data[field] : null;
4224
+ return found;
4180
4225
  }
4181
- intercept(request, next) {
4182
- var _a;
4183
- const { injector, isLoadingInProgressProperty } = this;
4184
- const handlingService = injector.get(MonkeyEcxHandlingService);
4185
- const progressBarService = injector.get(MonkeyEcxProgressBarService);
4186
- const inProgress = (handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials())
4187
- ? ((_a = handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials()) === null || _a === void 0 ? void 0 : _a.requestInProgress) || null
4188
- : null;
4189
- if (isLoadingInProgressProperty(inProgress)) {
4190
- progressBarService.show();
4226
+ getDataFromCurrentNavigation(field) {
4227
+ const navigation = this.router.getCurrentNavigation();
4228
+ let state = null;
4229
+ if (MonkeyEcxUtils.persistNullEmptyUndefined(navigation)) {
4230
+ state = navigation === null || navigation === void 0 ? void 0 : navigation.extras.state;
4191
4231
  }
4192
- return next.handle(request).pipe(finalize(() => {
4193
- if (isLoadingInProgressProperty(inProgress)) {
4194
- progressBarService.hide();
4195
- }
4196
- }));
4232
+ return state ? state[field] : null;
4197
4233
  }
4198
- isLoadingInProgressProperty(mlp) {
4199
- if (!mlp)
4200
- return false;
4201
- return MonkeyEcxUtils.persistNullEmptyUndefined(mlp) &&
4202
- MonkeyEcxUtils.persistNullEmptyUndefined(mlp.showProgress)
4203
- ? mlp.showProgress
4204
- : true;
4234
+ getParam(param) {
4235
+ var _a;
4236
+ const { root } = this.router.routerState.snapshot;
4237
+ const route = this.getLastChild(root);
4238
+ let found = MonkeyEcxUtils.persistNullEmptyUndefined(route)
4239
+ ? ((_a = route === null || route === void 0 ? void 0 : route.paramMap) === null || _a === void 0 ? void 0 : _a.get(param)) || ''
4240
+ : '';
4241
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(found))
4242
+ found = this.getData(param);
4243
+ return found;
4205
4244
  }
4206
4245
  }
4207
- MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
4208
- MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor });
4209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, decorators: [{
4210
- type: Injectable
4211
- }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
4246
+ MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
4247
+ MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
4248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
4249
+ type: Injectable,
4250
+ args: [{
4251
+ providedIn: 'root'
4252
+ }]
4253
+ }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
4212
4254
 
4213
- class MonkeyEcxHttpConfigInterceptorModule {
4214
- static forRoot() {
4215
- return {
4216
- ngModule: MonkeyEcxHttpConfigInterceptorModule,
4217
- providers: [
4218
- {
4219
- provide: HTTP_INTERCEPTORS,
4220
- useClass: MonkeyEcxHttpConfigHeaderInterceptor,
4221
- multi: true,
4222
- },
4223
- {
4224
- provide: HTTP_INTERCEPTORS,
4225
- useClass: MonkeyEcxHttpConfigErrorInterceptor,
4226
- multi: true,
4227
- },
4228
- {
4229
- provide: HTTP_INTERCEPTORS,
4230
- useClass: MonkeyEcxHttpConfigQueueInterceptor,
4231
- multi: true,
4232
- },
4233
- {
4234
- provide: HTTP_INTERCEPTORS,
4235
- useClass: MonkeyEcxHttpConfigLoadingInProgressInterceptor,
4236
- multi: true,
4237
- },
4238
- ],
4239
- };
4255
+ class MonkeyEcxRequestScheduleService {
4256
+ constructor(monkeyecxService, monkeyLoggedHandlingService) {
4257
+ this.monkeyecxService = monkeyecxService;
4258
+ this.monkeyLoggedHandlingService = monkeyLoggedHandlingService;
4259
+ this.schedule = [];
4260
+ this.genericSchedule = [];
4261
+ // not to do
4240
4262
  }
4241
- }
4242
- MonkeyEcxHttpConfigInterceptorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4243
- MonkeyEcxHttpConfigInterceptorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [CommonModule] });
4244
- MonkeyEcxHttpConfigInterceptorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [[CommonModule]] });
4245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, decorators: [{
4246
- type: NgModule,
4247
- args: [{
4248
- imports: [CommonModule],
4249
- }]
4250
- }] });
4251
-
4252
- class Link {
4253
- constructor(data) {
4254
- this.href = data === null || data === void 0 ? void 0 : data.href;
4255
- this.type = data === null || data === void 0 ? void 0 : data.type;
4256
- this.templated = data === null || data === void 0 ? void 0 : data.templated;
4263
+ addToSchedule(q) {
4264
+ this.schedule.push(q);
4265
+ this.monkeyLoggedHandlingService.addSchedule(this.schedule);
4257
4266
  }
4258
- }
4259
- class MonkeyEcxModel {
4260
- getAction(type, replaceOptions) {
4261
- const { _links } = this;
4262
- if (!_links)
4263
- return null;
4264
- let link = _links[type.toLowerCase()];
4265
- link = new Link(link);
4266
- if (link && replaceOptions && (link === null || link === void 0 ? void 0 : link.templated)) {
4267
- const { from, to } = replaceOptions;
4268
- link = new Link(Object.assign(Object.assign({}, link), { href: `${link.href}`.replace(from, to) }));
4269
- }
4270
- return link;
4267
+ addToGenericSchedule(q) {
4268
+ this.genericSchedule.push(q);
4269
+ this.monkeyLoggedHandlingService.addGenericSchedule(this.genericSchedule);
4271
4270
  }
4272
- }
4273
-
4274
- /* eslint-disable indent */
4275
- class MonkeyEcxConfigModule {
4276
- constructor(parentModule) {
4277
- if (parentModule) {
4278
- throw new Error('MonkeyEcxConfigModule is already loaded. Import it in the AppModule only!');
4279
- }
4271
+ removeFromSchedule(q) {
4272
+ clearInterval(q.interval);
4273
+ const saved = [...this.schedule];
4274
+ this.schedule = [
4275
+ ...saved.map((sch) => {
4276
+ const savedLocal = Object.assign({}, sch);
4277
+ if (sch.id === q.id) {
4278
+ return null;
4279
+ }
4280
+ return savedLocal;
4281
+ })
4282
+ ].filter((_) => {
4283
+ return _;
4284
+ });
4285
+ this.monkeyLoggedHandlingService.addSchedule(this.schedule);
4280
4286
  }
4281
- static forRoot() {
4282
- return {
4283
- ngModule: MonkeyEcxConfigModule,
4284
- providers: [MonkeyEcxConfigService]
4285
- };
4287
+ removeFromGenericSchedule(q) {
4288
+ clearInterval(q.interval);
4289
+ const saved = [...this.genericSchedule];
4290
+ this.genericSchedule = [
4291
+ ...saved.map((sch) => {
4292
+ const savedLocal = Object.assign({}, sch);
4293
+ if (sch.id === q.id) {
4294
+ return null;
4295
+ }
4296
+ return savedLocal;
4297
+ })
4298
+ ].filter((_) => {
4299
+ return _;
4300
+ });
4301
+ this.monkeyLoggedHandlingService.addGenericSchedule(this.genericSchedule);
4286
4302
  }
4287
- }
4288
- MonkeyEcxConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, deps: [{ token: MonkeyEcxConfigModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
4289
- MonkeyEcxConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
4290
- MonkeyEcxConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
4291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, decorators: [{
4292
- type: NgModule
4293
- }], ctorParameters: function () {
4294
- return [{ type: MonkeyEcxConfigModule, decorators: [{
4295
- type: Optional
4296
- }, {
4297
- type: SkipSelf
4298
- }] }];
4299
- } });
4300
-
4301
- class MonkeyEcxLoggedHandlingService {
4302
- constructor() {
4303
- this.schedules = [];
4304
- this.genericSchedules = [];
4305
- // not to do
4303
+ removeFromScheduleById(id) {
4304
+ const q = this.getScheduleById(id);
4305
+ clearInterval(q === null || q === void 0 ? void 0 : q.interval);
4306
+ const saved = [...this.schedule];
4307
+ this.schedule = [
4308
+ ...saved.map((sch) => {
4309
+ const savedLocal = Object.assign({}, sch);
4310
+ if (sch.id === (q === null || q === void 0 ? void 0 : q.id)) {
4311
+ return null;
4312
+ }
4313
+ return savedLocal;
4314
+ })
4315
+ ].filter((_) => {
4316
+ return _;
4317
+ });
4318
+ this.monkeyLoggedHandlingService.addSchedule(this.schedule);
4306
4319
  }
4307
- destroySchedule() {
4308
- this.schedules.forEach((sch) => {
4309
- clearInterval(sch.interval);
4320
+ doCall(sch) {
4321
+ const { url, method, params, data, action, errorAction } = sch;
4322
+ const errAction = errorAction || ((...args) => { });
4323
+ this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
4324
+ action(Object.assign(Object.assign({}, data), resp), sch);
4325
+ }, (err) => {
4326
+ this.removeFromSchedule(sch);
4327
+ errAction(Object.assign({}, data), sch, err);
4310
4328
  });
4311
- this.schedules = [];
4312
4329
  }
4313
- destroyGenericSchedule() {
4314
- this.genericSchedules.forEach((sch) => {
4315
- clearInterval(sch.interval);
4330
+ doGenericCall(sch) {
4331
+ const { url, method, params, data, action, errorAction } = sch;
4332
+ const errAction = errorAction || ((...args) => { });
4333
+ this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
4334
+ action(Object.assign(Object.assign({}, data), resp), sch);
4335
+ }, (err) => {
4336
+ this.removeFromGenericSchedule(sch);
4337
+ errAction(Object.assign({}, data), sch, err);
4316
4338
  });
4317
- this.genericSchedules = [];
4318
4339
  }
4319
- addSchedule(sch) {
4320
- this.schedules = sch;
4340
+ setSchedule(q, delay = 3000) {
4341
+ const id = (q === null || q === void 0 ? void 0 : q.id) || `${MonkeyEcxUtils.getRandomString(40)}`;
4342
+ const obj = Object.assign(Object.assign({}, q), { id });
4343
+ const interval = setInterval(() => {
4344
+ this.doCall(Object.assign(Object.assign({}, obj), { interval }));
4345
+ }, delay);
4346
+ const sch = Object.assign(Object.assign({}, obj), { interval });
4347
+ this.addToSchedule(sch);
4348
+ return sch;
4321
4349
  }
4322
- addGenericSchedule(sch) {
4323
- this.genericSchedules = sch;
4350
+ setGenericSchedule(q, delay = 3000) {
4351
+ const interval = setInterval(() => {
4352
+ this.doGenericCall(Object.assign(Object.assign({}, q), { interval }));
4353
+ }, delay);
4354
+ const sch = Object.assign(Object.assign({}, q), { id: `${MonkeyEcxUtils.getRandomString(40)}`, interval });
4355
+ this.addToGenericSchedule(sch);
4356
+ return sch;
4324
4357
  }
4325
- destroy() {
4326
- this.destroySchedule();
4327
- this.destroyGenericSchedule();
4358
+ removeSchedule(q) {
4359
+ this.removeFromSchedule(q);
4328
4360
  }
4329
- }
4330
- MonkeyEcxLoggedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4331
- MonkeyEcxLoggedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, providedIn: 'root' });
4332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, decorators: [{
4333
- type: Injectable,
4334
- args: [{
4335
- providedIn: 'root'
4336
- }]
4337
- }], ctorParameters: function () { return []; } });
4338
-
4339
- class MonkeyEcxPaginationService {
4340
- constructor() {
4341
- this.callbacks = {};
4342
- // not to do
4361
+ removeGenericSchedule(q) {
4362
+ this.removeFromGenericSchedule(q);
4343
4363
  }
4344
- setCallback(callback, name = 'main') {
4345
- this.callbacks = Object.assign(Object.assign({}, this.callbacks), { [name]: callback });
4364
+ removeScheduleById(id) {
4365
+ this.removeFromScheduleById(id);
4346
4366
  }
4347
- execute(type, name = 'main') {
4348
- const { callbacks } = this;
4349
- const callback = callbacks === null || callbacks === void 0 ? void 0 : callbacks[name];
4350
- if (callback)
4351
- callback(type);
4367
+ getScheduleById(id) {
4368
+ const q = this.schedule.find((sch) => {
4369
+ return sch.id === id;
4370
+ });
4371
+ return q;
4352
4372
  }
4353
4373
  }
4354
- MonkeyEcxPaginationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4355
- MonkeyEcxPaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, providedIn: 'root' });
4356
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, decorators: [{
4374
+ MonkeyEcxRequestScheduleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxLoggedHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
4375
+ MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, providedIn: 'root' });
4376
+ __decorate([
4377
+ MonkeyEcxCoreService({
4378
+ httpResponse: {
4379
+ httpCodeIgnore: [400, 403, 404, 500, 503]
4380
+ },
4381
+ requestInProgress: {
4382
+ showProgress: false
4383
+ }
4384
+ })
4385
+ ], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
4386
+ __decorate([
4387
+ MonkeyEcxCoreService({
4388
+ httpResponse: {
4389
+ httpCodeIgnore: [400, 401, 403, 404, 500, 503],
4390
+ httpCodeIgnoreRedirect: [503]
4391
+ },
4392
+ requestInProgress: {
4393
+ showProgress: false
4394
+ }
4395
+ })
4396
+ ], MonkeyEcxRequestScheduleService.prototype, "doGenericCall", null);
4397
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
4357
4398
  type: Injectable,
4358
4399
  args: [{
4359
4400
  providedIn: 'root'
4360
4401
  }]
4361
- }], ctorParameters: function () { return []; } });
4402
+ }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxLoggedHandlingService }]; }, propDecorators: { doCall: [], doGenericCall: [] } });
4362
4403
 
4363
- class MonkeyEcxRequestDownloadHandlingService {
4364
- constructor() {
4365
- this.download = [];
4366
- this.download$ = new BehaviorSubject([]);
4367
- }
4368
- addTo(q) {
4369
- this.download.push(q);
4370
- this.download$.next(this.download);
4371
- }
4372
- markItemAsFinish(q, status) {
4373
- const saved = [...this.download];
4374
- this.download = [
4375
- ...saved
4376
- .map((val) => {
4377
- if (val.status === MonkeyEcxDownloadEvents.OnGoing) {
4378
- const valSaved = Object.assign({}, val);
4379
- if (valSaved.item.id === q.item.id) {
4380
- return Object.assign(Object.assign({}, valSaved), { status: status || MonkeyEcxDownloadEvents.Finished });
4381
- }
4382
- return valSaved;
4383
- }
4384
- return null;
4385
- })
4386
- .filter((_) => {
4387
- return _;
4388
- })
4389
- ];
4390
- this.download = this.download.filter((_) => {
4391
- return _.status === MonkeyEcxDownloadEvents.OnGoing;
4404
+ class MonkeyEcxFeatureByProgramDirective {
4405
+ constructor(cdr, elementRef, monkeyConfigService) {
4406
+ this.cdr = cdr;
4407
+ this.elementRef = elementRef;
4408
+ this.monkeyConfigService = monkeyConfigService;
4409
+ this.feature = '';
4410
+ this.monkeyConfigService.config().subscribe((_) => {
4411
+ this.config = _;
4392
4412
  });
4393
- this.download$.next(this.download);
4394
- }
4395
- updateItem(q, loaded, total) {
4396
- const saved = [...this.download];
4397
- this.download = [
4398
- ...saved.map((val) => {
4399
- const valSaved = Object.assign({}, val);
4400
- const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
4401
- const totalPercentage = 100;
4402
- if (valSaved.item.id === q.item.id) {
4403
- return Object.assign(Object.assign({}, valSaved), { loaded,
4404
- total, currentPercentage: currentPecentage, totalPercentage });
4405
- }
4406
- return valSaved;
4407
- })
4408
- ];
4409
- this.download$.next(this.download);
4410
- }
4411
- set(q) {
4412
- this.addTo(q);
4413
4413
  }
4414
- get() {
4415
- return this.download$.asObservable();
4416
- }
4417
- update(q, loaded, total) {
4418
- this.updateItem(q, loaded, total);
4419
- }
4420
- finishItem(q, status) {
4421
- this.markItemAsFinish(q, status);
4414
+ handleDisplay() {
4415
+ var _a, _b;
4416
+ const { feature, config } = this;
4417
+ let display = 'none';
4418
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(feature) ||
4419
+ !MonkeyEcxUtils.persistNullEmptyUndefined((_a = config === null || config === void 0 ? void 0 : config.program) === null || _a === void 0 ? void 0 : _a.settings[feature])) {
4420
+ return;
4421
+ }
4422
+ const disabled = (_b = config === null || config === void 0 ? void 0 : config.program) === null || _b === void 0 ? void 0 : _b.settings[feature];
4423
+ if (!disabled) {
4424
+ display = 'block';
4425
+ }
4426
+ this.elementRef.nativeElement.style.display = display;
4427
+ if (display === 'none') {
4428
+ this.elementRef.nativeElement.remove();
4429
+ }
4430
+ this.cdr.detectChanges();
4422
4431
  }
4423
- hasDownloadOnGoing() {
4424
- const found = this.download.find((_) => {
4425
- return _.status === MonkeyEcxDownloadEvents.OnGoing;
4426
- });
4427
- return MonkeyEcxUtils.persistNullEmptyUndefined(found);
4432
+ ngOnInit() {
4433
+ if (!this.feature)
4434
+ return;
4435
+ this.elementRef.nativeElement.style.display = 'none';
4436
+ this.cdr.detectChanges();
4437
+ this.handleDisplay();
4428
4438
  }
4429
4439
  }
4430
- MonkeyEcxRequestDownloadHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4431
- MonkeyEcxRequestDownloadHandlingServiceprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, providedIn: 'root' });
4432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, decorators: [{
4433
- type: Injectable,
4440
+ MonkeyEcxFeatureByProgramDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureByProgramDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Directive });
4441
+ MonkeyEcxFeatureByProgramDirectivedir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFeatureByProgramDirective, selector: "[monkeyecxFeatureByProgram]", inputs: { feature: "feature" }, ngImport: i0 });
4442
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureByProgramDirective, decorators: [{
4443
+ type: Directive,
4434
4444
  args: [{
4435
- providedIn: 'root'
4445
+ selector: '[monkeyecxFeatureByProgram]'
4436
4446
  }]
4437
- }], ctorParameters: function () { return []; } });
4447
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: MonkeyEcxConfigService }]; }, propDecorators: { feature: [{
4448
+ type: Input,
4449
+ args: ['feature']
4450
+ }] } });
4438
4451
 
4439
- class MonkeyEcxRequestDownloadedHandlingService {
4440
- constructor() {
4441
- this.downloaded = [];
4442
- this.downloaded$ = new BehaviorSubject([]);
4443
- }
4444
- addTo(q) {
4445
- this.downloaded.push(q);
4446
- this.downloaded$.next(this.downloaded);
4447
- }
4448
- markItemAsFinish(q, status) {
4449
- const saved = [...this.downloaded];
4450
- this.downloaded = [
4451
- ...saved.map((val) => {
4452
- if (val.status === MonkeyEcxDownloadEvents.OnGoing) {
4453
- const valSaved = Object.assign({}, val);
4454
- if (valSaved.item.id === q.item.id) {
4455
- return Object.assign(Object.assign({}, valSaved), { status: status || MonkeyEcxDownloadEvents.Finished, action: q.action });
4456
- }
4457
- return valSaved;
4458
- }
4459
- return val;
4460
- })
4461
- ];
4462
- this.downloaded$.next(this.downloaded);
4452
+ class MonkeyEcxFeatureDirective {
4453
+ constructor(cdr, elementRef, monkeyecxFeatureToggleService) {
4454
+ this.cdr = cdr;
4455
+ this.elementRef = elementRef;
4456
+ this.monkeyecxFeatureToggleService = monkeyecxFeatureToggleService;
4457
+ this.unsubscribeAll = new Subject();
4458
+ // not to do
4463
4459
  }
4464
- set(q) {
4465
- this.addTo(q);
4460
+ getFeature(feature) {
4461
+ const { monkeyecxFeatureToggleService } = this;
4462
+ if (!monkeyecxFeatureToggleService) {
4463
+ return false;
4464
+ }
4465
+ return (monkeyecxFeatureToggleService === null || monkeyecxFeatureToggleService === void 0 ? void 0 : monkeyecxFeatureToggleService.getFlag(feature)) || false;
4466
4466
  }
4467
- get() {
4468
- return this.downloaded$.asObservable();
4467
+ handleDisplay() {
4468
+ if (!this.feature)
4469
+ return;
4470
+ const flag = this.getFeature(this.feature);
4471
+ let display = 'none';
4472
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(flag)) {
4473
+ return;
4474
+ }
4475
+ if (flag) {
4476
+ display = 'block';
4477
+ }
4478
+ if (display === 'none') {
4479
+ this.elementRef.nativeElement.remove();
4480
+ }
4481
+ this.elementRef.nativeElement.style.display = display;
4482
+ this.cdr.detectChanges();
4469
4483
  }
4470
- finishItem(q, status) {
4471
- this.markItemAsFinish(q, status);
4484
+ ngOnDestroy() {
4485
+ this.unsubscribeAll.next();
4486
+ this.unsubscribeAll.complete();
4472
4487
  }
4473
- hasDownloadOnGoing() {
4474
- const found = this.downloaded.find((_) => {
4475
- return _.status === MonkeyEcxDownloadEvents.OnGoing;
4488
+ ngOnInit() {
4489
+ if (!this.feature)
4490
+ return;
4491
+ this.elementRef.nativeElement.style.display = 'none';
4492
+ this.cdr.detectChanges();
4493
+ this.monkeyecxFeatureToggleService.onFlags
4494
+ .pipe(takeUntil(this.unsubscribeAll))
4495
+ .subscribe((val) => {
4496
+ if (val) {
4497
+ this.handleDisplay();
4498
+ }
4476
4499
  });
4477
- return MonkeyEcxUtils.persistNullEmptyUndefined(found);
4478
4500
  }
4479
4501
  }
4480
- MonkeyEcxRequestDownloadedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4481
- MonkeyEcxRequestDownloadedHandlingServiceprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, providedIn: 'root' });
4482
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, decorators: [{
4483
- type: Injectable,
4502
+ MonkeyEcxFeatureDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MonkeyEcxFeatureToggleService }], target: i0.ɵɵFactoryTarget.Directive });
4503
+ MonkeyEcxFeatureDirectivedir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFeatureDirective, selector: "[monkeyecxFeature]", inputs: { feature: ["featureName", "feature"] }, ngImport: i0 });
4504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, decorators: [{
4505
+ type: Directive,
4484
4506
  args: [{
4485
- providedIn: 'root'
4507
+ selector: '[monkeyecxFeature]'
4486
4508
  }]
4487
- }], ctorParameters: function () { return []; } });
4509
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: MonkeyEcxFeatureToggleService }]; }, propDecorators: { feature: [{
4510
+ type: Input,
4511
+ args: ['featureName']
4512
+ }] } });
4488
4513
 
4489
- class MonkeyEcxDiscoveryParamsService {
4490
- constructor(router) {
4491
- this.router = router;
4492
- // not to do
4493
- }
4494
- getLastChild(route) {
4495
- if (route.firstChild) {
4496
- return this.getLastChild(route.firstChild);
4497
- }
4498
- return route;
4499
- }
4500
- setData(field, value) {
4501
- const { root } = this.router.routerState.snapshot;
4502
- const route = this.getLastChild(root);
4503
- route.data[field] = value;
4504
- }
4505
- getData(field) {
4506
- const { root } = this.router.routerState.snapshot;
4507
- const route = this.getLastChild(root);
4508
- const found = MonkeyEcxUtils.persistNullEmptyUndefined(route) ? route.data[field] : null;
4509
- return found;
4510
- }
4511
- getDataFromCurrentNavigation(field) {
4512
- const navigation = this.router.getCurrentNavigation();
4513
- let state = null;
4514
- if (MonkeyEcxUtils.persistNullEmptyUndefined(navigation)) {
4515
- state = navigation === null || navigation === void 0 ? void 0 : navigation.extras.state;
4516
- }
4517
- return state ? state[field] : null;
4518
- }
4519
- getParam(param) {
4520
- var _a;
4521
- const { root } = this.router.routerState.snapshot;
4522
- const route = this.getLastChild(root);
4523
- let found = MonkeyEcxUtils.persistNullEmptyUndefined(route)
4524
- ? ((_a = route === null || route === void 0 ? void 0 : route.paramMap) === null || _a === void 0 ? void 0 : _a.get(param)) || ''
4525
- : '';
4526
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(found))
4527
- found = this.getData(param);
4528
- return found;
4529
- }
4514
+ class MonkeyEcxDirectivesModule {
4530
4515
  }
4531
- MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
4532
- MonkeyEcxDiscoveryParamsServiceprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
4533
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
4534
- type: Injectable,
4516
+ MonkeyEcxDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4517
+ MonkeyEcxDirectivesModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, declarations: [MonkeyEcxDragDropDirective,
4518
+ MonkeyEcxFormatCurrency,
4519
+ MonkeyEcxFeatureDirective,
4520
+ MonkeyEcxFeatureByProgramDirective,
4521
+ MonkeyEcxFormatUpper,
4522
+ MonkeyEcxOnlyAlphaNumericDirective,
4523
+ MonkeyEcxOnlyNumbersDirective,
4524
+ MonkeyEcxSecurityDirective,
4525
+ MonkeyEcxTooltipDirective,
4526
+ MonkeyEcxPopoverDirective,
4527
+ MonkeyEcxPopoverOptionsDirective], imports: [CommonModule, OverlayModule], exports: [MonkeyEcxDragDropDirective,
4528
+ MonkeyEcxFormatCurrency,
4529
+ MonkeyEcxFeatureDirective,
4530
+ MonkeyEcxFeatureByProgramDirective,
4531
+ MonkeyEcxFormatUpper,
4532
+ MonkeyEcxOnlyAlphaNumericDirective,
4533
+ MonkeyEcxOnlyNumbersDirective,
4534
+ MonkeyEcxSecurityDirective,
4535
+ MonkeyEcxTooltipDirective,
4536
+ MonkeyEcxPopoverDirective,
4537
+ MonkeyEcxPopoverOptionsDirective] });
4538
+ MonkeyEcxDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, imports: [[CommonModule, OverlayModule]] });
4539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, decorators: [{
4540
+ type: NgModule,
4535
4541
  args: [{
4536
- providedIn: 'root'
4537
- }]
4538
- }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
4539
-
4540
- class MonkeyEcxRequestScheduleService {
4541
- constructor(monkeyecxService, monkeyLoggedHandlingService) {
4542
- this.monkeyecxService = monkeyecxService;
4543
- this.monkeyLoggedHandlingService = monkeyLoggedHandlingService;
4544
- this.schedule = [];
4545
- this.genericSchedule = [];
4546
- // not to do
4547
- }
4548
- addToSchedule(q) {
4549
- this.schedule.push(q);
4550
- this.monkeyLoggedHandlingService.addSchedule(this.schedule);
4551
- }
4552
- addToGenericSchedule(q) {
4553
- this.genericSchedule.push(q);
4554
- this.monkeyLoggedHandlingService.addGenericSchedule(this.genericSchedule);
4555
- }
4556
- removeFromSchedule(q) {
4557
- clearInterval(q.interval);
4558
- const saved = [...this.schedule];
4559
- this.schedule = [
4560
- ...saved.map((sch) => {
4561
- const savedLocal = Object.assign({}, sch);
4562
- if (sch.id === q.id) {
4563
- return null;
4564
- }
4565
- return savedLocal;
4566
- })
4567
- ].filter((_) => {
4568
- return _;
4569
- });
4570
- this.monkeyLoggedHandlingService.addSchedule(this.schedule);
4542
+ declarations: [
4543
+ MonkeyEcxDragDropDirective,
4544
+ MonkeyEcxFormatCurrency,
4545
+ MonkeyEcxFeatureDirective,
4546
+ MonkeyEcxFeatureByProgramDirective,
4547
+ MonkeyEcxFormatUpper,
4548
+ MonkeyEcxOnlyAlphaNumericDirective,
4549
+ MonkeyEcxOnlyNumbersDirective,
4550
+ MonkeyEcxSecurityDirective,
4551
+ MonkeyEcxTooltipDirective,
4552
+ MonkeyEcxPopoverDirective,
4553
+ MonkeyEcxPopoverOptionsDirective
4554
+ ],
4555
+ imports: [CommonModule, OverlayModule],
4556
+ exports: [
4557
+ MonkeyEcxDragDropDirective,
4558
+ MonkeyEcxFormatCurrency,
4559
+ MonkeyEcxFeatureDirective,
4560
+ MonkeyEcxFeatureByProgramDirective,
4561
+ MonkeyEcxFormatUpper,
4562
+ MonkeyEcxOnlyAlphaNumericDirective,
4563
+ MonkeyEcxOnlyNumbersDirective,
4564
+ MonkeyEcxSecurityDirective,
4565
+ MonkeyEcxTooltipDirective,
4566
+ MonkeyEcxPopoverDirective,
4567
+ MonkeyEcxPopoverOptionsDirective
4568
+ ]
4569
+ }]
4570
+ }] });
4571
+
4572
+ class MonkeyEcxHttpConfigErrorInterceptor {
4573
+ constructor(monkeyecxAuthenticationService, monkeyecxErrorHandlingService) {
4574
+ this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
4575
+ this.monkeyecxErrorHandlingService = monkeyecxErrorHandlingService;
4576
+ // no to do
4571
4577
  }
4572
- removeFromGenericSchedule(q) {
4573
- clearInterval(q.interval);
4574
- const saved = [...this.genericSchedule];
4575
- this.genericSchedule = [
4576
- ...saved.map((sch) => {
4577
- const savedLocal = Object.assign({}, sch);
4578
- if (sch.id === q.id) {
4579
- return null;
4580
- }
4581
- return savedLocal;
4582
- })
4583
- ].filter((_) => {
4584
- return _;
4585
- });
4586
- this.monkeyLoggedHandlingService.addGenericSchedule(this.genericSchedule);
4578
+ intercept(request, next) {
4579
+ return next.handle(request).pipe(map((event) => {
4580
+ return event;
4581
+ }), catchError((error) => {
4582
+ var _a, _b;
4583
+ if (this.monkeyecxAuthenticationService.refreshShouldHappen(error)) {
4584
+ return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.refreshToken()) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map(() => {
4585
+ return this.monkeyecxAuthenticationService.getRequestWithHeaders(request);
4586
+ }), mergeMap((resp) => {
4587
+ return next.handle(resp).pipe(catchError((error) => {
4588
+ this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
4589
+ return throwError(null);
4590
+ }));
4591
+ }), catchError((error) => {
4592
+ this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
4593
+ return throwError(null);
4594
+ }))) || throwError(error);
4595
+ }
4596
+ return throwError(error);
4597
+ }));
4587
4598
  }
4588
- removeFromScheduleById(id) {
4589
- const q = this.getScheduleById(id);
4590
- clearInterval(q === null || q === void 0 ? void 0 : q.interval);
4591
- const saved = [...this.schedule];
4592
- this.schedule = [
4593
- ...saved.map((sch) => {
4594
- const savedLocal = Object.assign({}, sch);
4595
- if (sch.id === (q === null || q === void 0 ? void 0 : q.id)) {
4596
- return null;
4597
- }
4598
- return savedLocal;
4599
- })
4600
- ].filter((_) => {
4601
- return _;
4602
- });
4603
- this.monkeyLoggedHandlingService.addSchedule(this.schedule);
4599
+ }
4600
+ MonkeyEcxHttpConfigErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
4601
+ MonkeyEcxHttpConfigErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor });
4602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, decorators: [{
4603
+ type: Injectable
4604
+ }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
4605
+
4606
+ class MonkeyEcxHttpConfigHeaderInterceptor {
4607
+ constructor(monkeyecxAuthenticationService, monkeyecxErrorHandlingService) {
4608
+ this.monkeyecxAuthenticationService = monkeyecxAuthenticationService;
4609
+ this.monkeyecxErrorHandlingService = monkeyecxErrorHandlingService;
4610
+ // not to do
4604
4611
  }
4605
- doCall(sch) {
4606
- const { url, method, params, data, action, errorAction } = sch;
4607
- const errAction = errorAction || ((...args) => { });
4608
- this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
4609
- action(Object.assign(Object.assign({}, data), resp), sch);
4610
- }, (err) => {
4611
- this.removeFromSchedule(sch);
4612
- errAction(Object.assign({}, data), sch, err);
4613
- });
4612
+ intercept(request, next) {
4613
+ var _a, _b;
4614
+ return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.getRequestWithHeadersOb(request)) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map((event) => {
4615
+ return event;
4616
+ }), mergeMap((resp) => {
4617
+ request = request.clone({
4618
+ setHeaders: resp
4619
+ });
4620
+ return next.handle(request);
4621
+ }), catchError((error) => {
4622
+ this.monkeyecxErrorHandlingService.handleError(error);
4623
+ return throwError(error);
4624
+ }))) || throwError('getRequestWithHeadersOb undefined');
4614
4625
  }
4615
- doGenericCall(sch) {
4616
- const { url, method, params, data, action, errorAction } = sch;
4617
- const errAction = errorAction || ((...args) => { });
4618
- this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
4619
- action(Object.assign(Object.assign({}, data), resp), sch);
4620
- }, (err) => {
4621
- this.removeFromGenericSchedule(sch);
4622
- errAction(Object.assign({}, data), sch, err);
4623
- });
4626
+ }
4627
+ MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
4628
+ MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor });
4629
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, decorators: [{
4630
+ type: Injectable
4631
+ }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
4632
+
4633
+ /* eslint-disable max-len */
4634
+ class MonkeyEcxHttpConfigQueueInterceptor {
4635
+ constructor(injector, monkeyecxRequestQueueHandlingService) {
4636
+ this.injector = injector;
4637
+ this.monkeyecxRequestQueueHandlingService = monkeyecxRequestQueueHandlingService;
4638
+ // not to do
4624
4639
  }
4625
- setSchedule(q, delay = 3000) {
4626
- const id = (q === null || q === void 0 ? void 0 : q.id) || `${MonkeyEcxUtils.getRandomString(40)}`;
4627
- const obj = Object.assign(Object.assign({}, q), { id });
4628
- const interval = setInterval(() => {
4629
- this.doCall(Object.assign(Object.assign({}, obj), { interval }));
4630
- }, delay);
4631
- const sch = Object.assign(Object.assign({}, obj), { interval });
4632
- this.addToSchedule(sch);
4633
- return sch;
4640
+ intercept(request, next) {
4641
+ const { injector, isQueueProperty } = this;
4642
+ const monkeyecxHandlingService = injector.get(MonkeyEcxHandlingService);
4643
+ const monkeyecxRequestQueue = monkeyecxHandlingService === null || monkeyecxHandlingService === void 0 ? void 0 : monkeyecxHandlingService.getMonkeyEcxRequestQueue();
4644
+ if (isQueueProperty(monkeyecxRequestQueue)) {
4645
+ this.monkeyecxRequestQueueHandlingService.setQueue(monkeyecxRequestQueue);
4646
+ }
4647
+ return next.handle(request).pipe(finalize(() => {
4648
+ if (isQueueProperty(monkeyecxRequestQueue)) {
4649
+ this.monkeyecxRequestQueueHandlingService.finishQueueItem(monkeyecxRequestQueue);
4650
+ }
4651
+ }));
4634
4652
  }
4635
- setGenericSchedule(q, delay = 3000) {
4636
- const interval = setInterval(() => {
4637
- this.doGenericCall(Object.assign(Object.assign({}, q), { interval }));
4638
- }, delay);
4639
- const sch = Object.assign(Object.assign({}, q), { id: `${MonkeyEcxUtils.getRandomString(40)}`, interval });
4640
- this.addToGenericSchedule(sch);
4641
- return sch;
4653
+ isQueueProperty(mrq) {
4654
+ var _a;
4655
+ return (MonkeyEcxUtils.persistNullEmptyUndefined(mrq) &&
4656
+ MonkeyEcxUtils.persistNullEmptyUndefined((_a = mrq === null || mrq === void 0 ? void 0 : mrq.item) === null || _a === void 0 ? void 0 : _a.name));
4642
4657
  }
4643
- removeSchedule(q) {
4644
- this.removeFromSchedule(q);
4658
+ }
4659
+ MonkeyEcxHttpConfigQueueInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, deps: [{ token: i0.Injector }, { token: MonkeyEcxRequestQueueHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
4660
+ MonkeyEcxHttpConfigQueueInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor });
4661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, decorators: [{
4662
+ type: Injectable
4663
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: MonkeyEcxRequestQueueHandlingService }]; } });
4664
+
4665
+ /* eslint-disable max-len */
4666
+ class MonkeyEcxHttpConfigLoadingInProgressInterceptor {
4667
+ constructor(injector) {
4668
+ this.injector = injector;
4669
+ // no to do
4645
4670
  }
4646
- removeGenericSchedule(q) {
4647
- this.removeFromGenericSchedule(q);
4671
+ intercept(request, next) {
4672
+ var _a;
4673
+ const { injector, isLoadingInProgressProperty } = this;
4674
+ const handlingService = injector.get(MonkeyEcxHandlingService);
4675
+ const progressBarService = injector.get(MonkeyEcxProgressBarService);
4676
+ const inProgress = (handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials())
4677
+ ? ((_a = handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials()) === null || _a === void 0 ? void 0 : _a.requestInProgress) || null
4678
+ : null;
4679
+ if (isLoadingInProgressProperty(inProgress)) {
4680
+ progressBarService.show();
4681
+ }
4682
+ return next.handle(request).pipe(finalize(() => {
4683
+ if (isLoadingInProgressProperty(inProgress)) {
4684
+ progressBarService.hide();
4685
+ }
4686
+ }));
4648
4687
  }
4649
- removeScheduleById(id) {
4650
- this.removeFromScheduleById(id);
4688
+ isLoadingInProgressProperty(mlp) {
4689
+ if (!mlp)
4690
+ return false;
4691
+ return MonkeyEcxUtils.persistNullEmptyUndefined(mlp) &&
4692
+ MonkeyEcxUtils.persistNullEmptyUndefined(mlp.showProgress)
4693
+ ? mlp.showProgress
4694
+ : true;
4651
4695
  }
4652
- getScheduleById(id) {
4653
- const q = this.schedule.find((sch) => {
4654
- return sch.id === id;
4655
- });
4656
- return q;
4696
+ }
4697
+ MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
4698
+ MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor });
4699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, decorators: [{
4700
+ type: Injectable
4701
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
4702
+
4703
+ class MonkeyEcxHttpConfigInterceptorModule {
4704
+ static forRoot() {
4705
+ return {
4706
+ ngModule: MonkeyEcxHttpConfigInterceptorModule,
4707
+ providers: [
4708
+ {
4709
+ provide: HTTP_INTERCEPTORS,
4710
+ useClass: MonkeyEcxHttpConfigHeaderInterceptor,
4711
+ multi: true,
4712
+ },
4713
+ {
4714
+ provide: HTTP_INTERCEPTORS,
4715
+ useClass: MonkeyEcxHttpConfigErrorInterceptor,
4716
+ multi: true,
4717
+ },
4718
+ {
4719
+ provide: HTTP_INTERCEPTORS,
4720
+ useClass: MonkeyEcxHttpConfigQueueInterceptor,
4721
+ multi: true,
4722
+ },
4723
+ {
4724
+ provide: HTTP_INTERCEPTORS,
4725
+ useClass: MonkeyEcxHttpConfigLoadingInProgressInterceptor,
4726
+ multi: true,
4727
+ },
4728
+ ],
4729
+ };
4657
4730
  }
4658
4731
  }
4659
- MonkeyEcxRequestScheduleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxLoggedHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
4660
- MonkeyEcxRequestScheduleServiceprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, providedIn: 'root' });
4661
- __decorate([
4662
- MonkeyEcxCoreService({
4663
- httpResponse: {
4664
- httpCodeIgnore: [400, 403, 404, 500, 503]
4665
- },
4666
- requestInProgress: {
4667
- showProgress: false
4668
- }
4669
- })
4670
- ], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
4671
- __decorate([
4672
- MonkeyEcxCoreService({
4673
- httpResponse: {
4674
- httpCodeIgnore: [400, 401, 403, 404, 500, 503],
4675
- httpCodeIgnoreRedirect: [503]
4676
- },
4677
- requestInProgress: {
4678
- showProgress: false
4679
- }
4680
- })
4681
- ], MonkeyEcxRequestScheduleService.prototype, "doGenericCall", null);
4682
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
4683
- type: Injectable,
4732
+ MonkeyEcxHttpConfigInterceptorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4733
+ MonkeyEcxHttpConfigInterceptorModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [CommonModule] });
4734
+ MonkeyEcxHttpConfigInterceptorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [[CommonModule]] });
4735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, decorators: [{
4736
+ type: NgModule,
4684
4737
  args: [{
4685
- providedIn: 'root'
4738
+ imports: [CommonModule],
4686
4739
  }]
4687
- }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxLoggedHandlingService }]; }, propDecorators: { doCall: [], doGenericCall: [] } });
4740
+ }] });
4741
+
4742
+ class Link {
4743
+ constructor(data) {
4744
+ this.href = data === null || data === void 0 ? void 0 : data.href;
4745
+ this.type = data === null || data === void 0 ? void 0 : data.type;
4746
+ this.templated = data === null || data === void 0 ? void 0 : data.templated;
4747
+ }
4748
+ }
4749
+ class MonkeyEcxModel {
4750
+ getAction(type, replaceOptions) {
4751
+ const { _links } = this;
4752
+ if (!_links)
4753
+ return null;
4754
+ let link = _links[type.toLowerCase()];
4755
+ link = new Link(link);
4756
+ if (link && replaceOptions && (link === null || link === void 0 ? void 0 : link.templated)) {
4757
+ const { from, to } = replaceOptions;
4758
+ link = new Link(Object.assign(Object.assign({}, link), { href: `${link.href}`.replace(from, to) }));
4759
+ }
4760
+ return link;
4761
+ }
4762
+ }
4688
4763
 
4689
4764
  /* eslint-disable no-unused-vars */
4690
4765
  var OpSearch;
@@ -4848,5 +4923,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4848
4923
  * Generated bundle index. Do not edit.
4849
4924
  */
4850
4925
 
4851
- export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
4926
+ export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
4852
4927
  //# sourceMappingURL=monkey-front-core.mjs.map