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