monkey-front-core 0.0.388 → 0.0.390

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.
@@ -4,17 +4,17 @@ import * as i1 from 'monkey-style-guide';
4
4
  import { MonkeyButtonModule, MonkeyModalModule, MonkeyIconModule, MonkeyInputModule, MonkeyRadioButtonModule, MonkeyOptionModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
5
5
  import * as i2 from '@angular/common';
6
6
  import { CommonModule, formatNumber, CurrencyPipe } from '@angular/common';
7
+ import * as i2$1 from '@angular/router';
8
+ import { RouterModule, NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
7
9
  import * as i1$1 from '@ngx-translate/core';
8
10
  import { TranslateModule, TranslateService } from '@ngx-translate/core';
9
11
  import * as moment_ from 'moment';
10
- import * as i1$2 from 'ngx-cookie-service';
11
12
  import { map, catchError, filter, take, takeWhile, first, takeUntil, mergeMap, finalize } from 'rxjs/operators';
12
13
  import { throwError, BehaviorSubject, Subscription, interval, concat, of, Subject, from } from 'rxjs';
13
- import * as i1$3 from '@angular/common/http';
14
+ import * as i1$2 from '@angular/common/http';
14
15
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
15
- import * as i2$1 from '@angular/platform-browser';
16
- import * as i2$2 from '@angular/router';
17
- import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
16
+ import * as i2$2 from '@angular/platform-browser';
17
+ import * as i1$3 from 'ngx-cookie-service';
18
18
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
19
19
  import { TemplatePortal } from '@angular/cdk/portal';
20
20
  import * as i1$4 from '@angular/cdk/overlay';
@@ -35,6 +35,7 @@ class AlertsComponent {
35
35
  this._img = '';
36
36
  this._title = '';
37
37
  this._message = '';
38
+ this._action = null;
38
39
  // not to do
39
40
  }
40
41
  ngOnInit() {
@@ -42,16 +43,17 @@ class AlertsComponent {
42
43
  this._img = config?.data?.img;
43
44
  this._title = config?.data?.title;
44
45
  this._message = config?.data?.message;
46
+ this._action = config?.data?.action;
45
47
  }
46
48
  onClose() {
47
49
  this.modalService.close(this.modalRef);
48
50
  }
49
51
  }
50
52
  AlertsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Component });
51
- AlertsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AlertsComponent, selector: "monkeyecx-alerts", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\r\n <div class=\"alert-header\">\r\n <img [src]=\"_img\">\r\n </div>\r\n <div class=\"alert-body\">\r\n <span class=\"title\">\r\n {{ _title | translate }}\r\n </span>\r\n <span class=\"message\">\r\n {{ _message | translate }}\r\n </span>\r\n </div>\r\n <div class=\"alert-footer\">\r\n <monkey-button type=\"tertiary\" color=\"theme\" (click)=\"onClose()\">\r\n {{ 'BUTTONS.CLOSE' | translate }}\r\n </monkey-button>\r\n </div>\r\n</monkey-modal>", styles: [":host ::ng-deep monkey-modal mecx-monkey-modal{padding:0}:host ::ng-deep monkey-modal mecx-monkey-modal .body{margin-bottom:0}:host ::ng-deep monkey-modal .mecx-monkey-modal__size-md{max-width:448px}:host .alert-header{height:100%}@media screen and (max-width: 959px){:host .alert-header{min-height:212px}}:host .alert-header img{border-radius:12px 12px 0 0;-o-object-fit:cover;object-fit:cover;width:100%;max-height:280px}@media screen and (max-width: 959px){:host .alert-header img{height:200px}}:host .alert-body{display:flex;flex-direction:column;gap:16px;padding:24px;margin:auto}:host .alert-body .title{font-style:normal;font-weight:700;font-size:32px;line-height:40px;text-align:center;color:#1f2024}:host .alert-body .message{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;letter-spacing:.03em;color:#545a63}:host .alert-footer{display:flex;justify-content:flex-end;padding:0 24px 24px;position:sticky;bottom:0;background:#fafafa}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe } });
53
+ AlertsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AlertsComponent, selector: "monkeyecx-alerts", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\r\n <div class=\"alert-header\">\r\n <img [src]=\"_img\">\r\n </div>\r\n <div class=\"alert-body\">\r\n <span class=\"title\">\r\n {{ _title | translate }}\r\n </span>\r\n <span class=\"message\">\r\n {{ _message | translate }}\r\n </span>\r\n </div>\r\n <div class=\"alert-footer\">\r\n <monkey-button type=\"tertiary\" color=\"theme\" (click)=\"onClose()\">\r\n {{ 'BUTTONS.CLOSE' | translate }}\r\n </monkey-button>\r\n <ng-container *ngIf=\"_action\">\r\n <monkey-button type=\"primary\" color=\"theme\" \r\n [routerLink]=\"_action.href\">\r\n {{ _action.label | translate }}\r\n </monkey-button>\r\n </ng-container>\r\n </div>\r\n</monkey-modal>", styles: [":host ::ng-deep monkey-modal mecx-monkey-modal{padding:0}:host ::ng-deep monkey-modal mecx-monkey-modal .body{margin-bottom:0}:host ::ng-deep monkey-modal .mecx-monkey-modal__size-md{max-width:448px}:host .alert-header{height:100%}@media screen and (max-width: 959px){:host .alert-header{min-height:212px}}:host .alert-header img{border-radius:12px 12px 0 0;-o-object-fit:cover;object-fit:cover;width:100%;max-height:280px}@media screen and (max-width: 959px){:host .alert-header img{height:200px}}:host .alert-body{display:flex;flex-direction:column;gap:16px;padding:24px;margin:auto}:host .alert-body .title{font-style:normal;font-weight:700;font-size:32px;line-height:40px;text-align:center;color:#1f2024}:host .alert-body .message{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;letter-spacing:.03em;color:#545a63}:host .alert-footer{display:flex;justify-content:flex-end;padding:0 24px 24px;position:sticky;bottom:0;background:#fafafa}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "translate": i1$1.TranslatePipe } });
52
54
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, decorators: [{
53
55
  type: Component,
54
- args: [{ selector: 'monkeyecx-alerts', template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\r\n <div class=\"alert-header\">\r\n <img [src]=\"_img\">\r\n </div>\r\n <div class=\"alert-body\">\r\n <span class=\"title\">\r\n {{ _title | translate }}\r\n </span>\r\n <span class=\"message\">\r\n {{ _message | translate }}\r\n </span>\r\n </div>\r\n <div class=\"alert-footer\">\r\n <monkey-button type=\"tertiary\" color=\"theme\" (click)=\"onClose()\">\r\n {{ 'BUTTONS.CLOSE' | translate }}\r\n </monkey-button>\r\n </div>\r\n</monkey-modal>", styles: [":host ::ng-deep monkey-modal mecx-monkey-modal{padding:0}:host ::ng-deep monkey-modal mecx-monkey-modal .body{margin-bottom:0}:host ::ng-deep monkey-modal .mecx-monkey-modal__size-md{max-width:448px}:host .alert-header{height:100%}@media screen and (max-width: 959px){:host .alert-header{min-height:212px}}:host .alert-header img{border-radius:12px 12px 0 0;-o-object-fit:cover;object-fit:cover;width:100%;max-height:280px}@media screen and (max-width: 959px){:host .alert-header img{height:200px}}:host .alert-body{display:flex;flex-direction:column;gap:16px;padding:24px;margin:auto}:host .alert-body .title{font-style:normal;font-weight:700;font-size:32px;line-height:40px;text-align:center;color:#1f2024}:host .alert-body .message{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;letter-spacing:.03em;color:#545a63}:host .alert-footer{display:flex;justify-content:flex-end;padding:0 24px 24px;position:sticky;bottom:0;background:#fafafa}\n"] }]
56
+ args: [{ selector: 'monkeyecx-alerts', template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\r\n <div class=\"alert-header\">\r\n <img [src]=\"_img\">\r\n </div>\r\n <div class=\"alert-body\">\r\n <span class=\"title\">\r\n {{ _title | translate }}\r\n </span>\r\n <span class=\"message\">\r\n {{ _message | translate }}\r\n </span>\r\n </div>\r\n <div class=\"alert-footer\">\r\n <monkey-button type=\"tertiary\" color=\"theme\" (click)=\"onClose()\">\r\n {{ 'BUTTONS.CLOSE' | translate }}\r\n </monkey-button>\r\n <ng-container *ngIf=\"_action\">\r\n <monkey-button type=\"primary\" color=\"theme\" \r\n [routerLink]=\"_action.href\">\r\n {{ _action.label | translate }}\r\n </monkey-button>\r\n </ng-container>\r\n </div>\r\n</monkey-modal>", styles: [":host ::ng-deep monkey-modal mecx-monkey-modal{padding:0}:host ::ng-deep monkey-modal mecx-monkey-modal .body{margin-bottom:0}:host ::ng-deep monkey-modal .mecx-monkey-modal__size-md{max-width:448px}:host .alert-header{height:100%}@media screen and (max-width: 959px){:host .alert-header{min-height:212px}}:host .alert-header img{border-radius:12px 12px 0 0;-o-object-fit:cover;object-fit:cover;width:100%;max-height:280px}@media screen and (max-width: 959px){:host .alert-header img{height:200px}}:host .alert-body{display:flex;flex-direction:column;gap:16px;padding:24px;margin:auto}:host .alert-body .title{font-style:normal;font-weight:700;font-size:32px;line-height:40px;text-align:center;color:#1f2024}:host .alert-body .message{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;letter-spacing:.03em;color:#545a63}:host .alert-footer{display:flex;justify-content:flex-end;padding:0 24px 24px;position:sticky;bottom:0;background:#fafafa}\n"] }]
55
57
  }], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }]; }, propDecorators: { config: [{
56
58
  type: Input
57
59
  }], modalRef: [{
@@ -61,13 +63,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
61
63
  class AlertsModule {
62
64
  }
63
65
  AlertsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
64
- AlertsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, declarations: [AlertsComponent], imports: [CommonModule, MonkeyButtonModule, MonkeyModalModule, i1$1.TranslateModule], exports: [AlertsComponent] });
65
- AlertsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, imports: [[CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()]] });
66
+ AlertsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, declarations: [AlertsComponent], imports: [CommonModule,
67
+ RouterModule,
68
+ MonkeyButtonModule,
69
+ MonkeyModalModule, i1$1.TranslateModule], exports: [AlertsComponent] });
70
+ AlertsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, imports: [[
71
+ CommonModule,
72
+ RouterModule,
73
+ MonkeyButtonModule,
74
+ MonkeyModalModule,
75
+ TranslateModule.forChild()
76
+ ]] });
66
77
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, decorators: [{
67
78
  type: NgModule,
68
79
  args: [{
69
80
  declarations: [AlertsComponent],
70
- imports: [CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()],
81
+ imports: [
82
+ CommonModule,
83
+ RouterModule,
84
+ MonkeyButtonModule,
85
+ MonkeyModalModule,
86
+ TranslateModule.forChild()
87
+ ],
71
88
  exports: [AlertsComponent]
72
89
  }]
73
90
  }] });
@@ -369,14 +386,14 @@ class MonkeyEcxUtils {
369
386
  }
370
387
  }
371
388
 
372
- const moment$5 = moment_;
389
+ const moment$6 = moment_;
373
390
  class MonkeyEcxFormatDateTimelapsePipe {
374
391
  transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
375
392
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
376
393
  return '';
377
- let stillUtc = moment$5.default.utc(date).toDate();
394
+ let stillUtc = moment$6.default.utc(date).toDate();
378
395
  if (!useUtc)
379
- stillUtc = moment$5.default(date).toDate();
396
+ stillUtc = moment$6.default(date).toDate();
380
397
  if (date.toString().indexOf(':') <= -1) {
381
398
  if (typeof date === 'string') {
382
399
  stillUtc = date;
@@ -385,7 +402,7 @@ class MonkeyEcxFormatDateTimelapsePipe {
385
402
  }
386
403
  const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
387
404
  const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
388
- return `${moment$5.default(stillUtc, formatFrom).format(formatTo)}`;
405
+ return `${moment$6.default(stillUtc, formatFrom).format(formatTo)}`;
389
406
  }
390
407
  }
391
408
  MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
@@ -420,6 +437,173 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
420
437
  type: Input
421
438
  }] } });
422
439
 
440
+ /* eslint-disable max-len */
441
+ class MonkeyEcxHandlingService {
442
+ constructor() {
443
+ this.monkeyecxServiceCredentials = null;
444
+ this.monkeyecxRequestQueue = null;
445
+ this.monkeyecxRequestDownload = null;
446
+ this.monkeyecxRequestUpload = null;
447
+ }
448
+ clearAll() {
449
+ this.monkeyecxServiceCredentials = null;
450
+ this.monkeyecxRequestQueue = null;
451
+ this.monkeyecxRequestDownload = null;
452
+ this.monkeyecxRequestUpload = null;
453
+ }
454
+ setMonkeyEcxServiceCredentials(param) {
455
+ this.monkeyecxServiceCredentials = param;
456
+ }
457
+ getMonkeyEcxServiceCredentials() {
458
+ return this.monkeyecxServiceCredentials;
459
+ }
460
+ setMonkeyEcxRequestQueue(queue) {
461
+ this.monkeyecxRequestQueue = queue;
462
+ }
463
+ getMonkeyEcxRequestQueue() {
464
+ return this.monkeyecxRequestQueue;
465
+ }
466
+ setMonkeyEcxRequestDownload(download) {
467
+ this.monkeyecxRequestDownload = download;
468
+ }
469
+ getMonkeyEcxRequestDownload() {
470
+ return this.monkeyecxRequestDownload;
471
+ }
472
+ setMonkeyEcxRequestUpload(upload) {
473
+ this.monkeyecxRequestUpload = upload;
474
+ }
475
+ getMonkeyEcxRequestUpload() {
476
+ return this.monkeyecxRequestUpload;
477
+ }
478
+ }
479
+ MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
480
+ MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
481
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
482
+ type: Injectable,
483
+ args: [{
484
+ providedIn: 'root'
485
+ }]
486
+ }] });
487
+
488
+ class MonkeyEcxService {
489
+ constructor(http, monkeyecxHandlingService) {
490
+ this.http = http;
491
+ this.monkeyecxHandlingService = monkeyecxHandlingService;
492
+ // not to do
493
+ }
494
+ handlelize(params) {
495
+ if (!params) {
496
+ return params;
497
+ }
498
+ // eslint-disable-next-line no-restricted-syntax
499
+ for (const field of [
500
+ 'createdAt',
501
+ 'createUserId',
502
+ 'updatedAt',
503
+ 'lastUserId',
504
+ '_links',
505
+ 'governmentIdType',
506
+ 'governmentIdMask',
507
+ 'screenType',
508
+ 'screenTab',
509
+ ]) {
510
+ delete params[field];
511
+ }
512
+ return params;
513
+ }
514
+ get(url, options) {
515
+ return this.http.get(url, options);
516
+ }
517
+ post(url, params, options) {
518
+ return this.http.post(url, params, options);
519
+ }
520
+ put(url, params) {
521
+ return this.http.put(url, this.handlelize({
522
+ ...params,
523
+ }));
524
+ }
525
+ delete(url, params) {
526
+ return this.http.delete(url, params);
527
+ }
528
+ download(url, options, filename) {
529
+ this.http.get(url, options).subscribe((resp) => {
530
+ const { headers, body } = resp;
531
+ const contentType = headers.get('Content-Type');
532
+ const contentDisposition = headers.get('Content-Disposition');
533
+ if (contentDisposition) {
534
+ filename = contentDisposition
535
+ .split(';')[1]
536
+ .split('filename')[1]
537
+ .split('=')[1]
538
+ .trim()
539
+ .replace(new RegExp(/"/g), '');
540
+ }
541
+ const blob = new Blob([body], {
542
+ type: `${contentType}`,
543
+ });
544
+ return {
545
+ filename,
546
+ blob,
547
+ };
548
+ }, (err) => {
549
+ throwError(err);
550
+ });
551
+ }
552
+ downloadOb(url, options, filename) {
553
+ return this.http.get(url, options).pipe(map((resp) => {
554
+ const { headers, body } = resp;
555
+ const contentType = headers.get('Content-Type');
556
+ const contentDisposition = headers.get('Content-Disposition');
557
+ if (contentDisposition) {
558
+ filename = contentDisposition
559
+ .split(';')[1]
560
+ .split('filename')[1]
561
+ .split('=')[1]
562
+ .trim()
563
+ .replace(new RegExp(/"/g), '');
564
+ }
565
+ const blob = new Blob([body], {
566
+ type: `${contentType}`,
567
+ });
568
+ return {
569
+ filename,
570
+ blob,
571
+ };
572
+ }), catchError((err) => {
573
+ return throwError(err);
574
+ }));
575
+ }
576
+ }
577
+ MonkeyEcxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, deps: [{ token: i1$2.HttpClient }, { token: MonkeyEcxHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
578
+ MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, decorators: [{
580
+ type: Injectable,
581
+ args: [{
582
+ providedIn: 'root',
583
+ }]
584
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: MonkeyEcxHandlingService }]; } });
585
+
586
+ class MonkeyEcxBlobSecurePipe {
587
+ constructor(monkeyecxService, sanitizer) {
588
+ this.monkeyecxService = monkeyecxService;
589
+ this.sanitizer = sanitizer;
590
+ // not to do
591
+ }
592
+ transform(url) {
593
+ return this.monkeyecxService.get(url, { responseType: 'blob' }).pipe(map((val) => {
594
+ return this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(val));
595
+ }));
596
+ }
597
+ }
598
+ MonkeyEcxBlobSecurePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, deps: [{ token: MonkeyEcxService }, { token: i2$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
599
+ MonkeyEcxBlobSecurePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, name: "monkeyecxBlobSecure" });
600
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, decorators: [{
601
+ type: Pipe,
602
+ args: [{
603
+ name: 'monkeyecxBlobSecure'
604
+ }]
605
+ }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: i2$2.DomSanitizer }]; } });
606
+
423
607
  class MonkeyEcxDisplayFirstNamePipe {
424
608
  transform(name) {
425
609
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
@@ -454,6 +638,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
454
638
  }]
455
639
  }] });
456
640
 
641
+ const moment$5 = moment_;
642
+ class MonkeyEcxDisplaySupportPhone {
643
+ constructor() {
644
+ // not to do
645
+ }
646
+ transform(phones) {
647
+ return phones.map((phone) => {
648
+ const isOnline = this.isPhoneOnline(phone);
649
+ return {
650
+ ...phone,
651
+ isOnline,
652
+ color: isOnline ? '#00875A' : '#FA3838'
653
+ };
654
+ });
655
+ }
656
+ isPhoneOnline(phone) {
657
+ const start = moment$5.default().startOf('day').add(phone?.startHour, 'hours').format('YYYY-MM-DD HH:mm');
658
+ const end = moment$5.default().startOf('day').add(phone?.endHour, 'hours').format('YYYY-MM-DD HH:mm');
659
+ return moment$5.default().isSameOrAfter(start) && moment$5.default().isSameOrBefore(end);
660
+ }
661
+ }
662
+ MonkeyEcxDisplaySupportPhone.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplaySupportPhone, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
663
+ MonkeyEcxDisplaySupportPhone.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplaySupportPhone, name: "monkeyecxDisplaySupportPhone" });
664
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplaySupportPhone, decorators: [{
665
+ type: Pipe,
666
+ args: [{
667
+ name: 'monkeyecxDisplaySupportPhone'
668
+ }]
669
+ }], ctorParameters: function () { return []; } });
670
+
457
671
  class MonkeyEcxFormatAddressPipe {
458
672
  transform({ zipCode, address, neighborhood, city, state, }) {
459
673
  return [address, neighborhood, zipCode, city, state]
@@ -528,14 +742,14 @@ class MonkeyEcxCookieStorageService {
528
742
  this.cookieService.delete(name, '/', handledDomain, true, 'None');
529
743
  }
530
744
  }
531
- MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$2.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
745
+ MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$3.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
532
746
  MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
533
747
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
534
748
  type: Injectable,
535
749
  args: [{
536
750
  providedIn: 'root'
537
751
  }]
538
- }], ctorParameters: function () { return [{ type: i1$2.CookieService }]; } });
752
+ }], ctorParameters: function () { return [{ type: i1$3.CookieService }]; } });
539
753
 
540
754
  class MonkeyEcxFormatCurrencyPipe {
541
755
  constructor(injector, currencyPipe) {
@@ -1128,22 +1342,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1128
1342
  }]
1129
1343
  }] });
1130
1344
 
1131
- class MonkeyEcxFormatDocumentTypePipe {
1132
- transform(document, country) {
1133
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
1134
- return '';
1135
- return MonkeyEcxUtils.getDocumentType(document, country);
1136
- }
1137
- }
1138
- MonkeyEcxFormatDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1139
- MonkeyEcxFormatDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, name: "monkeyecxFormatDocumentType" });
1140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, decorators: [{
1141
- type: Pipe,
1142
- args: [{
1143
- name: 'monkeyecxFormatDocumentType'
1144
- }]
1145
- }] });
1146
-
1147
1345
  class MonkeyEcxFormatNumberPipe {
1148
1346
  transform(number) {
1149
1347
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
@@ -1237,6 +1435,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1237
1435
  }]
1238
1436
  }] });
1239
1437
 
1438
+ class MonkeyEcxFormatDocumentTypePipe {
1439
+ transform(document, country) {
1440
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
1441
+ return '';
1442
+ return MonkeyEcxUtils.getDocumentType(document, country);
1443
+ }
1444
+ }
1445
+ MonkeyEcxFormatDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1446
+ MonkeyEcxFormatDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, name: "monkeyecxFormatDocumentType" });
1447
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, decorators: [{
1448
+ type: Pipe,
1449
+ args: [{
1450
+ name: 'monkeyecxFormatDocumentType'
1451
+ }]
1452
+ }] });
1453
+
1240
1454
  class MonkeyEcxFormatValue {
1241
1455
  transform(number) {
1242
1456
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
@@ -1304,178 +1518,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1304
1518
  }]
1305
1519
  }] });
1306
1520
 
1307
- /* eslint-disable max-len */
1308
- class MonkeyEcxHandlingService {
1309
- constructor() {
1310
- this.monkeyecxServiceCredentials = null;
1311
- this.monkeyecxRequestQueue = null;
1312
- this.monkeyecxRequestDownload = null;
1313
- this.monkeyecxRequestUpload = null;
1314
- }
1315
- clearAll() {
1316
- this.monkeyecxServiceCredentials = null;
1317
- this.monkeyecxRequestQueue = null;
1318
- this.monkeyecxRequestDownload = null;
1319
- this.monkeyecxRequestUpload = null;
1320
- }
1321
- setMonkeyEcxServiceCredentials(param) {
1322
- this.monkeyecxServiceCredentials = param;
1323
- }
1324
- getMonkeyEcxServiceCredentials() {
1325
- return this.monkeyecxServiceCredentials;
1326
- }
1327
- setMonkeyEcxRequestQueue(queue) {
1328
- this.monkeyecxRequestQueue = queue;
1329
- }
1330
- getMonkeyEcxRequestQueue() {
1331
- return this.monkeyecxRequestQueue;
1332
- }
1333
- setMonkeyEcxRequestDownload(download) {
1334
- this.monkeyecxRequestDownload = download;
1335
- }
1336
- getMonkeyEcxRequestDownload() {
1337
- return this.monkeyecxRequestDownload;
1338
- }
1339
- setMonkeyEcxRequestUpload(upload) {
1340
- this.monkeyecxRequestUpload = upload;
1341
- }
1342
- getMonkeyEcxRequestUpload() {
1343
- return this.monkeyecxRequestUpload;
1344
- }
1345
- }
1346
- MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1347
- MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
1348
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
1349
- type: Injectable,
1350
- args: [{
1351
- providedIn: 'root'
1352
- }]
1353
- }] });
1354
-
1355
- class MonkeyEcxService {
1356
- constructor(http, monkeyecxHandlingService) {
1357
- this.http = http;
1358
- this.monkeyecxHandlingService = monkeyecxHandlingService;
1359
- // not to do
1360
- }
1361
- handlelize(params) {
1362
- if (!params) {
1363
- return params;
1364
- }
1365
- // eslint-disable-next-line no-restricted-syntax
1366
- for (const field of [
1367
- 'createdAt',
1368
- 'createUserId',
1369
- 'updatedAt',
1370
- 'lastUserId',
1371
- '_links',
1372
- 'governmentIdType',
1373
- 'governmentIdMask',
1374
- 'screenType',
1375
- 'screenTab',
1376
- ]) {
1377
- delete params[field];
1378
- }
1379
- return params;
1380
- }
1381
- get(url, options) {
1382
- return this.http.get(url, options);
1383
- }
1384
- post(url, params, options) {
1385
- return this.http.post(url, params, options);
1386
- }
1387
- put(url, params) {
1388
- return this.http.put(url, this.handlelize({
1389
- ...params,
1390
- }));
1391
- }
1392
- delete(url, params) {
1393
- return this.http.delete(url, params);
1394
- }
1395
- download(url, options, filename) {
1396
- this.http.get(url, options).subscribe((resp) => {
1397
- const { headers, body } = resp;
1398
- const contentType = headers.get('Content-Type');
1399
- const contentDisposition = headers.get('Content-Disposition');
1400
- if (contentDisposition) {
1401
- filename = contentDisposition
1402
- .split(';')[1]
1403
- .split('filename')[1]
1404
- .split('=')[1]
1405
- .trim()
1406
- .replace(new RegExp(/"/g), '');
1407
- }
1408
- const blob = new Blob([body], {
1409
- type: `${contentType}`,
1410
- });
1411
- return {
1412
- filename,
1413
- blob,
1414
- };
1415
- }, (err) => {
1416
- throwError(err);
1417
- });
1418
- }
1419
- downloadOb(url, options, filename) {
1420
- return this.http.get(url, options).pipe(map((resp) => {
1421
- const { headers, body } = resp;
1422
- const contentType = headers.get('Content-Type');
1423
- const contentDisposition = headers.get('Content-Disposition');
1424
- if (contentDisposition) {
1425
- filename = contentDisposition
1426
- .split(';')[1]
1427
- .split('filename')[1]
1428
- .split('=')[1]
1429
- .trim()
1430
- .replace(new RegExp(/"/g), '');
1431
- }
1432
- const blob = new Blob([body], {
1433
- type: `${contentType}`,
1434
- });
1435
- return {
1436
- filename,
1437
- blob,
1438
- };
1439
- }), catchError((err) => {
1440
- return throwError(err);
1441
- }));
1442
- }
1443
- }
1444
- MonkeyEcxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, deps: [{ token: i1$3.HttpClient }, { token: MonkeyEcxHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
1445
- MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
1446
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, decorators: [{
1447
- type: Injectable,
1448
- args: [{
1449
- providedIn: 'root',
1450
- }]
1451
- }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: MonkeyEcxHandlingService }]; } });
1452
-
1453
- class MonkeyEcxBlobSecurePipe {
1454
- constructor(monkeyecxService, sanitizer) {
1455
- this.monkeyecxService = monkeyecxService;
1456
- this.sanitizer = sanitizer;
1457
- // not to do
1458
- }
1459
- transform(url) {
1460
- return this.monkeyecxService.get(url, { responseType: 'blob' }).pipe(map((val) => {
1461
- return this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(val));
1462
- }));
1463
- }
1464
- }
1465
- MonkeyEcxBlobSecurePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, deps: [{ token: MonkeyEcxService }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1466
- MonkeyEcxBlobSecurePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, name: "monkeyecxBlobSecure" });
1467
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, decorators: [{
1468
- type: Pipe,
1469
- args: [{
1470
- name: 'monkeyecxBlobSecure'
1471
- }]
1472
- }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: i2$1.DomSanitizer }]; } });
1473
-
1474
1521
  class MonkeyEcxPipesModule {
1475
1522
  }
1476
1523
  MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1477
- MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxDisplayFirstNamePipe,
1524
+ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxBlobSecurePipe,
1525
+ MonkeyEcxDisplayFirstNamePipe,
1478
1526
  MonkeyEcxDisplayInitialsPipe,
1527
+ MonkeyEcxDisplaySupportPhone,
1479
1528
  MonkeyEcxFormatAddressPipe,
1480
1529
  MonkeyEcxFormatBeaufityJSONPipe,
1481
1530
  MonkeyEcxFormatCurrencyPipe,
@@ -1491,9 +1540,10 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
1491
1540
  MonkeyEcxFormatValue,
1492
1541
  MonkeyEcxFormatZipCodePipe,
1493
1542
  MonkeyEcxTextTruncatePipe,
1494
- MonkeyEcxTruncateQtdPipe,
1495
- MonkeyEcxBlobSecurePipe], exports: [MonkeyEcxDisplayFirstNamePipe,
1543
+ MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxBlobSecurePipe,
1544
+ MonkeyEcxDisplayFirstNamePipe,
1496
1545
  MonkeyEcxDisplayInitialsPipe,
1546
+ MonkeyEcxDisplaySupportPhone,
1497
1547
  MonkeyEcxFormatAddressPipe,
1498
1548
  MonkeyEcxFormatBeaufityJSONPipe,
1499
1549
  MonkeyEcxFormatCurrencyPipe,
@@ -1509,15 +1559,16 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
1509
1559
  MonkeyEcxFormatValue,
1510
1560
  MonkeyEcxFormatZipCodePipe,
1511
1561
  MonkeyEcxTextTruncatePipe,
1512
- MonkeyEcxTruncateQtdPipe,
1513
- MonkeyEcxBlobSecurePipe] });
1562
+ MonkeyEcxTruncateQtdPipe] });
1514
1563
  MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
1515
1564
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
1516
1565
  type: NgModule,
1517
1566
  args: [{
1518
1567
  declarations: [
1568
+ MonkeyEcxBlobSecurePipe,
1519
1569
  MonkeyEcxDisplayFirstNamePipe,
1520
1570
  MonkeyEcxDisplayInitialsPipe,
1571
+ MonkeyEcxDisplaySupportPhone,
1521
1572
  MonkeyEcxFormatAddressPipe,
1522
1573
  MonkeyEcxFormatBeaufityJSONPipe,
1523
1574
  MonkeyEcxFormatCurrencyPipe,
@@ -1533,12 +1584,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1533
1584
  MonkeyEcxFormatValue,
1534
1585
  MonkeyEcxFormatZipCodePipe,
1535
1586
  MonkeyEcxTextTruncatePipe,
1536
- MonkeyEcxTruncateQtdPipe,
1537
- MonkeyEcxBlobSecurePipe
1587
+ MonkeyEcxTruncateQtdPipe
1538
1588
  ],
1539
1589
  exports: [
1590
+ MonkeyEcxBlobSecurePipe,
1540
1591
  MonkeyEcxDisplayFirstNamePipe,
1541
1592
  MonkeyEcxDisplayInitialsPipe,
1593
+ MonkeyEcxDisplaySupportPhone,
1542
1594
  MonkeyEcxFormatAddressPipe,
1543
1595
  MonkeyEcxFormatBeaufityJSONPipe,
1544
1596
  MonkeyEcxFormatCurrencyPipe,
@@ -1554,8 +1606,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1554
1606
  MonkeyEcxFormatValue,
1555
1607
  MonkeyEcxFormatZipCodePipe,
1556
1608
  MonkeyEcxTextTruncatePipe,
1557
- MonkeyEcxTruncateQtdPipe,
1558
- MonkeyEcxBlobSecurePipe
1609
+ MonkeyEcxTruncateQtdPipe
1559
1610
  ],
1560
1611
  providers: [CurrencyPipe]
1561
1612
  }]
@@ -1631,14 +1682,14 @@ class MonkeyEcxProgressBarService {
1631
1682
  return this.visible?.asObservable() || null;
1632
1683
  }
1633
1684
  }
1634
- MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i2$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
1685
+ MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
1635
1686
  MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
1636
1687
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, decorators: [{
1637
1688
  type: Injectable,
1638
1689
  args: [{
1639
1690
  providedIn: 'root'
1640
1691
  }]
1641
- }], ctorParameters: function () { return [{ type: i2$2.Router }]; } });
1692
+ }], ctorParameters: function () { return [{ type: i2$1.Router }]; } });
1642
1693
 
1643
1694
  class MonkeyEcxProgressBarComponent {
1644
1695
  constructor(progressBarService) {
@@ -2390,14 +2441,14 @@ class MonkeyEcxPopoverDirective {
2390
2441
  this.eventsSubs.unsubscribe();
2391
2442
  }
2392
2443
  }
2393
- MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.Overlay }, { token: i1$4.OverlayPositionBuilder }, { token: i2$2.Router }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2444
+ MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.Overlay }, { token: i1$4.OverlayPositionBuilder }, { token: i2$1.Router }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2394
2445
  MonkeyEcxPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxPopoverDirective, selector: "[monkeyecxPopover]", inputs: { popover: ["monkeyecxPopover", "popover"], closed: ["monkeyecxPopoverClosed", "closed"], target: ["monkeyecxPopoverTarget", "target"], minwidth: ["monkeyecxPopoverMinwidth", "minwidth"], backdrop: ["monkeyecxPopoverBackdrop", "backdrop"], watch: ["monkeyecxPopoverWatch", "watch"], dir: ["monkeyecxPopoverDir", "dir"], contextmenu: ["monkeyecxPopoverContextmenu", "contextmenu"], height: ["monkeyecxPopoverHeight", "height"] }, ngImport: i0 });
2395
2446
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, decorators: [{
2396
2447
  type: Directive,
2397
2448
  args: [{
2398
2449
  selector: '[monkeyecxPopover]'
2399
2450
  }]
2400
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.Overlay }, { type: i1$4.OverlayPositionBuilder }, { type: i2$2.Router }, { type: undefined, decorators: [{
2451
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.Overlay }, { type: i1$4.OverlayPositionBuilder }, { type: i2$1.Router }, { type: undefined, decorators: [{
2401
2452
  type: Inject,
2402
2453
  args: [POPOVER_OPTIONS]
2403
2454
  }, {
@@ -3313,14 +3364,14 @@ class MonkeyEcxMaintenanceConfigService {
3313
3364
  this.handleValidation(config);
3314
3365
  }
3315
3366
  }
3316
- MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i2$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
3367
+ MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
3317
3368
  MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
3318
3369
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
3319
3370
  type: Injectable,
3320
3371
  args: [{
3321
3372
  providedIn: 'root'
3322
3373
  }]
3323
- }], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2$2.Router }]; } });
3374
+ }], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2$1.Router }]; } });
3324
3375
 
3325
3376
  class MonkeyEcxFeatureToggleService {
3326
3377
  constructor() {
@@ -3450,7 +3501,7 @@ class MonkeyEcxAlertsConfigService {
3450
3501
  }
3451
3502
  handleValidation(config) {
3452
3503
  if (config.alert) {
3453
- const { img, title, message, endDate, noEndDate } = config.alert;
3504
+ const { img, title, message, endDate, noEndDate, action } = config.alert;
3454
3505
  if (moment.default().isSameOrBefore(moment.default(endDate)) || noEndDate) {
3455
3506
  this.modalService.open(AlertsComponent, {
3456
3507
  color: 'theme',
@@ -3458,7 +3509,8 @@ class MonkeyEcxAlertsConfigService {
3458
3509
  data: {
3459
3510
  img,
3460
3511
  title,
3461
- message
3512
+ message,
3513
+ action
3462
3514
  }
3463
3515
  });
3464
3516
  }
@@ -4221,14 +4273,14 @@ class MonkeyEcxAuthGuardByRole {
4221
4273
  return true;
4222
4274
  }
4223
4275
  }
4224
- MonkeyEcxAuthGuardByRole.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardByRole, deps: [{ token: MonkeyEcxTokenStorageService }, { token: i2$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
4276
+ MonkeyEcxAuthGuardByRole.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardByRole, deps: [{ token: MonkeyEcxTokenStorageService }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
4225
4277
  MonkeyEcxAuthGuardByRole.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardByRole, providedIn: 'root' });
4226
4278
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardByRole, decorators: [{
4227
4279
  type: Injectable,
4228
4280
  args: [{
4229
4281
  providedIn: 'root'
4230
4282
  }]
4231
- }], ctorParameters: function () { return [{ type: MonkeyEcxTokenStorageService }, { type: i2$2.Router }]; } });
4283
+ }], ctorParameters: function () { return [{ type: MonkeyEcxTokenStorageService }, { type: i2$1.Router }]; } });
4232
4284
 
4233
4285
  class MonkeyEcxAuthGuard {
4234
4286
  constructor(monkeyecxAuthenticationService) {
@@ -4474,14 +4526,14 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
4474
4526
  }
4475
4527
  }
4476
4528
  }
4477
- MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxTokenStorageService }, { token: MonkeyEcxAuthenticationService }, { token: i2$2.Router }, { token: i1.MonkeyStyleGuideSnackbarService }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
4529
+ MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxTokenStorageService }, { token: MonkeyEcxAuthenticationService }, { token: i2$1.Router }, { token: i1.MonkeyStyleGuideSnackbarService }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
4478
4530
  MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, providedIn: 'root' });
4479
4531
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, decorators: [{
4480
4532
  type: Injectable,
4481
4533
  args: [{
4482
4534
  providedIn: 'root'
4483
4535
  }]
4484
- }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxTokenStorageService }, { type: MonkeyEcxAuthenticationService }, { type: i2$2.Router }, { type: i1.MonkeyStyleGuideSnackbarService }, { type: i1$1.TranslateService }]; } });
4536
+ }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxTokenStorageService }, { type: MonkeyEcxAuthenticationService }, { type: i2$1.Router }, { type: i1.MonkeyStyleGuideSnackbarService }, { type: i1$1.TranslateService }]; } });
4485
4537
 
4486
4538
  class MonkeyEcxOthersErrorsHandlingService {
4487
4539
  constructor(modalService) {
@@ -5034,14 +5086,14 @@ class MonkeyEcxDiscoveryParamsService {
5034
5086
  return found;
5035
5087
  }
5036
5088
  }
5037
- MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i2$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
5089
+ MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
5038
5090
  MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
5039
5091
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
5040
5092
  type: Injectable,
5041
5093
  args: [{
5042
5094
  providedIn: 'root'
5043
5095
  }]
5044
- }], ctorParameters: function () { return [{ type: i2$2.Router }]; } });
5096
+ }], ctorParameters: function () { return [{ type: i2$1.Router }]; } });
5045
5097
 
5046
5098
  class MonkeyEcxRequestScheduleService {
5047
5099
  constructor(monkeyecxService, monkeyLoggedHandlingService) {
@@ -5763,5 +5815,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
5763
5815
  * Generated bundle index. Do not edit.
5764
5816
  */
5765
5817
 
5766
- export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAlertsService, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardByRole, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxCurrencyConfigService, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, 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, index as store, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
5818
+ export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAlertsService, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardByRole, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxCurrencyConfigService, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, MonkeyEcxDisplaySupportPhone, 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, index as store, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
5767
5819
  //# sourceMappingURL=monkey-front-core.mjs.map