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,24 +35,26 @@ 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() {
41
- var _a, _b, _c;
42
+ var _a, _b, _c, _d;
42
43
  const { config } = this;
43
44
  this._img = (_a = config === null || config === void 0 ? void 0 : config.data) === null || _a === void 0 ? void 0 : _a.img;
44
45
  this._title = (_b = config === null || config === void 0 ? void 0 : config.data) === null || _b === void 0 ? void 0 : _b.title;
45
46
  this._message = (_c = config === null || config === void 0 ? void 0 : config.data) === null || _c === void 0 ? void 0 : _c.message;
47
+ this._action = (_d = config === null || config === void 0 ? void 0 : config.data) === null || _d === void 0 ? void 0 : _d.action;
46
48
  }
47
49
  onClose() {
48
50
  this.modalService.close(this.modalRef);
49
51
  }
50
52
  }
51
53
  AlertsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Component });
52
- 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 } });
54
+ 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 } });
53
55
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, decorators: [{
54
56
  type: Component,
55
- 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"] }]
57
+ 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"] }]
56
58
  }], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }]; }, propDecorators: { config: [{
57
59
  type: Input
58
60
  }], modalRef: [{
@@ -62,13 +64,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
62
64
  class AlertsModule {
63
65
  }
64
66
  AlertsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
65
- 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] });
66
- AlertsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, imports: [[CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()]] });
67
+ AlertsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, declarations: [AlertsComponent], imports: [CommonModule,
68
+ RouterModule,
69
+ MonkeyButtonModule,
70
+ MonkeyModalModule, i1$1.TranslateModule], exports: [AlertsComponent] });
71
+ AlertsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, imports: [[
72
+ CommonModule,
73
+ RouterModule,
74
+ MonkeyButtonModule,
75
+ MonkeyModalModule,
76
+ TranslateModule.forChild()
77
+ ]] });
67
78
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, decorators: [{
68
79
  type: NgModule,
69
80
  args: [{
70
81
  declarations: [AlertsComponent],
71
- imports: [CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()],
82
+ imports: [
83
+ CommonModule,
84
+ RouterModule,
85
+ MonkeyButtonModule,
86
+ MonkeyModalModule,
87
+ TranslateModule.forChild()
88
+ ],
72
89
  exports: [AlertsComponent]
73
90
  }]
74
91
  }] });
@@ -373,14 +390,14 @@ class MonkeyEcxUtils {
373
390
  }
374
391
  }
375
392
 
376
- const moment$5 = moment_;
393
+ const moment$6 = moment_;
377
394
  class MonkeyEcxFormatDateTimelapsePipe {
378
395
  transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
379
396
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
380
397
  return '';
381
- let stillUtc = moment$5.default.utc(date).toDate();
398
+ let stillUtc = moment$6.default.utc(date).toDate();
382
399
  if (!useUtc)
383
- stillUtc = moment$5.default(date).toDate();
400
+ stillUtc = moment$6.default(date).toDate();
384
401
  if (date.toString().indexOf(':') <= -1) {
385
402
  if (typeof date === 'string') {
386
403
  stillUtc = date;
@@ -389,7 +406,7 @@ class MonkeyEcxFormatDateTimelapsePipe {
389
406
  }
390
407
  const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
391
408
  const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
392
- return `${moment$5.default(stillUtc, formatFrom).format(formatTo)}`;
409
+ return `${moment$6.default(stillUtc, formatFrom).format(formatTo)}`;
393
410
  }
394
411
  }
395
412
  MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
@@ -425,6 +442,171 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
425
442
  type: Input
426
443
  }] } });
427
444
 
445
+ /* eslint-disable max-len */
446
+ class MonkeyEcxHandlingService {
447
+ constructor() {
448
+ this.monkeyecxServiceCredentials = null;
449
+ this.monkeyecxRequestQueue = null;
450
+ this.monkeyecxRequestDownload = null;
451
+ this.monkeyecxRequestUpload = null;
452
+ }
453
+ clearAll() {
454
+ this.monkeyecxServiceCredentials = null;
455
+ this.monkeyecxRequestQueue = null;
456
+ this.monkeyecxRequestDownload = null;
457
+ this.monkeyecxRequestUpload = null;
458
+ }
459
+ setMonkeyEcxServiceCredentials(param) {
460
+ this.monkeyecxServiceCredentials = param;
461
+ }
462
+ getMonkeyEcxServiceCredentials() {
463
+ return this.monkeyecxServiceCredentials;
464
+ }
465
+ setMonkeyEcxRequestQueue(queue) {
466
+ this.monkeyecxRequestQueue = queue;
467
+ }
468
+ getMonkeyEcxRequestQueue() {
469
+ return this.monkeyecxRequestQueue;
470
+ }
471
+ setMonkeyEcxRequestDownload(download) {
472
+ this.monkeyecxRequestDownload = download;
473
+ }
474
+ getMonkeyEcxRequestDownload() {
475
+ return this.monkeyecxRequestDownload;
476
+ }
477
+ setMonkeyEcxRequestUpload(upload) {
478
+ this.monkeyecxRequestUpload = upload;
479
+ }
480
+ getMonkeyEcxRequestUpload() {
481
+ return this.monkeyecxRequestUpload;
482
+ }
483
+ }
484
+ MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
485
+ MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
486
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
487
+ type: Injectable,
488
+ args: [{
489
+ providedIn: 'root'
490
+ }]
491
+ }] });
492
+
493
+ class MonkeyEcxService {
494
+ constructor(http, monkeyecxHandlingService) {
495
+ this.http = http;
496
+ this.monkeyecxHandlingService = monkeyecxHandlingService;
497
+ // not to do
498
+ }
499
+ handlelize(params) {
500
+ if (!params) {
501
+ return params;
502
+ }
503
+ // eslint-disable-next-line no-restricted-syntax
504
+ for (const field of [
505
+ 'createdAt',
506
+ 'createUserId',
507
+ 'updatedAt',
508
+ 'lastUserId',
509
+ '_links',
510
+ 'governmentIdType',
511
+ 'governmentIdMask',
512
+ 'screenType',
513
+ 'screenTab',
514
+ ]) {
515
+ delete params[field];
516
+ }
517
+ return params;
518
+ }
519
+ get(url, options) {
520
+ return this.http.get(url, options);
521
+ }
522
+ post(url, params, options) {
523
+ return this.http.post(url, params, options);
524
+ }
525
+ put(url, params) {
526
+ return this.http.put(url, this.handlelize(Object.assign({}, params)));
527
+ }
528
+ delete(url, params) {
529
+ return this.http.delete(url, params);
530
+ }
531
+ download(url, options, filename) {
532
+ this.http.get(url, options).subscribe((resp) => {
533
+ const { headers, body } = resp;
534
+ const contentType = headers.get('Content-Type');
535
+ const contentDisposition = headers.get('Content-Disposition');
536
+ if (contentDisposition) {
537
+ filename = contentDisposition
538
+ .split(';')[1]
539
+ .split('filename')[1]
540
+ .split('=')[1]
541
+ .trim()
542
+ .replace(new RegExp(/"/g), '');
543
+ }
544
+ const blob = new Blob([body], {
545
+ type: `${contentType}`,
546
+ });
547
+ return {
548
+ filename,
549
+ blob,
550
+ };
551
+ }, (err) => {
552
+ throwError(err);
553
+ });
554
+ }
555
+ downloadOb(url, options, filename) {
556
+ return this.http.get(url, options).pipe(map((resp) => {
557
+ const { headers, body } = resp;
558
+ const contentType = headers.get('Content-Type');
559
+ const contentDisposition = headers.get('Content-Disposition');
560
+ if (contentDisposition) {
561
+ filename = contentDisposition
562
+ .split(';')[1]
563
+ .split('filename')[1]
564
+ .split('=')[1]
565
+ .trim()
566
+ .replace(new RegExp(/"/g), '');
567
+ }
568
+ const blob = new Blob([body], {
569
+ type: `${contentType}`,
570
+ });
571
+ return {
572
+ filename,
573
+ blob,
574
+ };
575
+ }), catchError((err) => {
576
+ return throwError(err);
577
+ }));
578
+ }
579
+ }
580
+ 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 });
581
+ MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
582
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, decorators: [{
583
+ type: Injectable,
584
+ args: [{
585
+ providedIn: 'root',
586
+ }]
587
+ }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: MonkeyEcxHandlingService }]; } });
588
+
589
+ class MonkeyEcxBlobSecurePipe {
590
+ constructor(monkeyecxService, sanitizer) {
591
+ this.monkeyecxService = monkeyecxService;
592
+ this.sanitizer = sanitizer;
593
+ // not to do
594
+ }
595
+ transform(url) {
596
+ return this.monkeyecxService.get(url, { responseType: 'blob' }).pipe(map((val) => {
597
+ return this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(val));
598
+ }));
599
+ }
600
+ }
601
+ 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 });
602
+ MonkeyEcxBlobSecurePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, name: "monkeyecxBlobSecure" });
603
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, decorators: [{
604
+ type: Pipe,
605
+ args: [{
606
+ name: 'monkeyecxBlobSecure'
607
+ }]
608
+ }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: i2$2.DomSanitizer }]; } });
609
+
428
610
  class MonkeyEcxDisplayFirstNamePipe {
429
611
  transform(name) {
430
612
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
@@ -459,6 +641,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
459
641
  }]
460
642
  }] });
461
643
 
644
+ const moment$5 = moment_;
645
+ class MonkeyEcxDisplaySupportPhone {
646
+ constructor() {
647
+ // not to do
648
+ }
649
+ transform(phones) {
650
+ return phones.map((phone) => {
651
+ const isOnline = this.isPhoneOnline(phone);
652
+ return Object.assign(Object.assign({}, phone), { isOnline, color: isOnline ? '#00875A' : '#FA3838' });
653
+ });
654
+ }
655
+ isPhoneOnline(phone) {
656
+ const start = moment$5.default().startOf('day').add(phone === null || phone === void 0 ? void 0 : phone.startHour, 'hours').format('YYYY-MM-DD HH:mm');
657
+ const end = moment$5.default().startOf('day').add(phone === null || phone === void 0 ? void 0 : phone.endHour, 'hours').format('YYYY-MM-DD HH:mm');
658
+ return moment$5.default().isSameOrAfter(start) && moment$5.default().isSameOrBefore(end);
659
+ }
660
+ }
661
+ MonkeyEcxDisplaySupportPhone.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplaySupportPhone, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
662
+ MonkeyEcxDisplaySupportPhone.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplaySupportPhone, name: "monkeyecxDisplaySupportPhone" });
663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplaySupportPhone, decorators: [{
664
+ type: Pipe,
665
+ args: [{
666
+ name: 'monkeyecxDisplaySupportPhone'
667
+ }]
668
+ }], ctorParameters: function () { return []; } });
669
+
462
670
  class MonkeyEcxFormatAddressPipe {
463
671
  transform({ zipCode, address, neighborhood, city, state, }) {
464
672
  return [address, neighborhood, zipCode, city, state]
@@ -533,14 +741,14 @@ class MonkeyEcxCookieStorageService {
533
741
  this.cookieService.delete(name, '/', handledDomain, true, 'None');
534
742
  }
535
743
  }
536
- 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 });
744
+ 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 });
537
745
  MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
538
746
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
539
747
  type: Injectable,
540
748
  args: [{
541
749
  providedIn: 'root'
542
750
  }]
543
- }], ctorParameters: function () { return [{ type: i1$2.CookieService }]; } });
751
+ }], ctorParameters: function () { return [{ type: i1$3.CookieService }]; } });
544
752
 
545
753
  class MonkeyEcxFormatCurrencyPipe {
546
754
  constructor(injector, currencyPipe) {
@@ -1138,22 +1346,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1138
1346
  }]
1139
1347
  }] });
1140
1348
 
1141
- class MonkeyEcxFormatDocumentTypePipe {
1142
- transform(document, country) {
1143
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
1144
- return '';
1145
- return MonkeyEcxUtils.getDocumentType(document, country);
1146
- }
1147
- }
1148
- MonkeyEcxFormatDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1149
- MonkeyEcxFormatDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, name: "monkeyecxFormatDocumentType" });
1150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, decorators: [{
1151
- type: Pipe,
1152
- args: [{
1153
- name: 'monkeyecxFormatDocumentType'
1154
- }]
1155
- }] });
1156
-
1157
1349
  class MonkeyEcxFormatNumberPipe {
1158
1350
  transform(number) {
1159
1351
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
@@ -1247,6 +1439,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1247
1439
  }]
1248
1440
  }] });
1249
1441
 
1442
+ class MonkeyEcxFormatDocumentTypePipe {
1443
+ transform(document, country) {
1444
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
1445
+ return '';
1446
+ return MonkeyEcxUtils.getDocumentType(document, country);
1447
+ }
1448
+ }
1449
+ MonkeyEcxFormatDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1450
+ MonkeyEcxFormatDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, name: "monkeyecxFormatDocumentType" });
1451
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, decorators: [{
1452
+ type: Pipe,
1453
+ args: [{
1454
+ name: 'monkeyecxFormatDocumentType'
1455
+ }]
1456
+ }] });
1457
+
1250
1458
  class MonkeyEcxFormatValue {
1251
1459
  transform(number) {
1252
1460
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
@@ -1314,176 +1522,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1314
1522
  }]
1315
1523
  }] });
1316
1524
 
1317
- /* eslint-disable max-len */
1318
- class MonkeyEcxHandlingService {
1319
- constructor() {
1320
- this.monkeyecxServiceCredentials = null;
1321
- this.monkeyecxRequestQueue = null;
1322
- this.monkeyecxRequestDownload = null;
1323
- this.monkeyecxRequestUpload = null;
1324
- }
1325
- clearAll() {
1326
- this.monkeyecxServiceCredentials = null;
1327
- this.monkeyecxRequestQueue = null;
1328
- this.monkeyecxRequestDownload = null;
1329
- this.monkeyecxRequestUpload = null;
1330
- }
1331
- setMonkeyEcxServiceCredentials(param) {
1332
- this.monkeyecxServiceCredentials = param;
1333
- }
1334
- getMonkeyEcxServiceCredentials() {
1335
- return this.monkeyecxServiceCredentials;
1336
- }
1337
- setMonkeyEcxRequestQueue(queue) {
1338
- this.monkeyecxRequestQueue = queue;
1339
- }
1340
- getMonkeyEcxRequestQueue() {
1341
- return this.monkeyecxRequestQueue;
1342
- }
1343
- setMonkeyEcxRequestDownload(download) {
1344
- this.monkeyecxRequestDownload = download;
1345
- }
1346
- getMonkeyEcxRequestDownload() {
1347
- return this.monkeyecxRequestDownload;
1348
- }
1349
- setMonkeyEcxRequestUpload(upload) {
1350
- this.monkeyecxRequestUpload = upload;
1351
- }
1352
- getMonkeyEcxRequestUpload() {
1353
- return this.monkeyecxRequestUpload;
1354
- }
1355
- }
1356
- MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1357
- MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
1358
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
1359
- type: Injectable,
1360
- args: [{
1361
- providedIn: 'root'
1362
- }]
1363
- }] });
1364
-
1365
- class MonkeyEcxService {
1366
- constructor(http, monkeyecxHandlingService) {
1367
- this.http = http;
1368
- this.monkeyecxHandlingService = monkeyecxHandlingService;
1369
- // not to do
1370
- }
1371
- handlelize(params) {
1372
- if (!params) {
1373
- return params;
1374
- }
1375
- // eslint-disable-next-line no-restricted-syntax
1376
- for (const field of [
1377
- 'createdAt',
1378
- 'createUserId',
1379
- 'updatedAt',
1380
- 'lastUserId',
1381
- '_links',
1382
- 'governmentIdType',
1383
- 'governmentIdMask',
1384
- 'screenType',
1385
- 'screenTab',
1386
- ]) {
1387
- delete params[field];
1388
- }
1389
- return params;
1390
- }
1391
- get(url, options) {
1392
- return this.http.get(url, options);
1393
- }
1394
- post(url, params, options) {
1395
- return this.http.post(url, params, options);
1396
- }
1397
- put(url, params) {
1398
- return this.http.put(url, this.handlelize(Object.assign({}, params)));
1399
- }
1400
- delete(url, params) {
1401
- return this.http.delete(url, params);
1402
- }
1403
- download(url, options, filename) {
1404
- this.http.get(url, options).subscribe((resp) => {
1405
- const { headers, body } = resp;
1406
- const contentType = headers.get('Content-Type');
1407
- const contentDisposition = headers.get('Content-Disposition');
1408
- if (contentDisposition) {
1409
- filename = contentDisposition
1410
- .split(';')[1]
1411
- .split('filename')[1]
1412
- .split('=')[1]
1413
- .trim()
1414
- .replace(new RegExp(/"/g), '');
1415
- }
1416
- const blob = new Blob([body], {
1417
- type: `${contentType}`,
1418
- });
1419
- return {
1420
- filename,
1421
- blob,
1422
- };
1423
- }, (err) => {
1424
- throwError(err);
1425
- });
1426
- }
1427
- downloadOb(url, options, filename) {
1428
- return this.http.get(url, options).pipe(map((resp) => {
1429
- const { headers, body } = resp;
1430
- const contentType = headers.get('Content-Type');
1431
- const contentDisposition = headers.get('Content-Disposition');
1432
- if (contentDisposition) {
1433
- filename = contentDisposition
1434
- .split(';')[1]
1435
- .split('filename')[1]
1436
- .split('=')[1]
1437
- .trim()
1438
- .replace(new RegExp(/"/g), '');
1439
- }
1440
- const blob = new Blob([body], {
1441
- type: `${contentType}`,
1442
- });
1443
- return {
1444
- filename,
1445
- blob,
1446
- };
1447
- }), catchError((err) => {
1448
- return throwError(err);
1449
- }));
1450
- }
1451
- }
1452
- 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 });
1453
- MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
1454
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, decorators: [{
1455
- type: Injectable,
1456
- args: [{
1457
- providedIn: 'root',
1458
- }]
1459
- }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: MonkeyEcxHandlingService }]; } });
1460
-
1461
- class MonkeyEcxBlobSecurePipe {
1462
- constructor(monkeyecxService, sanitizer) {
1463
- this.monkeyecxService = monkeyecxService;
1464
- this.sanitizer = sanitizer;
1465
- // not to do
1466
- }
1467
- transform(url) {
1468
- return this.monkeyecxService.get(url, { responseType: 'blob' }).pipe(map((val) => {
1469
- return this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(val));
1470
- }));
1471
- }
1472
- }
1473
- 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 });
1474
- MonkeyEcxBlobSecurePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, name: "monkeyecxBlobSecure" });
1475
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxBlobSecurePipe, decorators: [{
1476
- type: Pipe,
1477
- args: [{
1478
- name: 'monkeyecxBlobSecure'
1479
- }]
1480
- }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: i2$1.DomSanitizer }]; } });
1481
-
1482
1525
  class MonkeyEcxPipesModule {
1483
1526
  }
1484
1527
  MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1485
- MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxDisplayFirstNamePipe,
1528
+ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxBlobSecurePipe,
1529
+ MonkeyEcxDisplayFirstNamePipe,
1486
1530
  MonkeyEcxDisplayInitialsPipe,
1531
+ MonkeyEcxDisplaySupportPhone,
1487
1532
  MonkeyEcxFormatAddressPipe,
1488
1533
  MonkeyEcxFormatBeaufityJSONPipe,
1489
1534
  MonkeyEcxFormatCurrencyPipe,
@@ -1499,9 +1544,10 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
1499
1544
  MonkeyEcxFormatValue,
1500
1545
  MonkeyEcxFormatZipCodePipe,
1501
1546
  MonkeyEcxTextTruncatePipe,
1502
- MonkeyEcxTruncateQtdPipe,
1503
- MonkeyEcxBlobSecurePipe], exports: [MonkeyEcxDisplayFirstNamePipe,
1547
+ MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxBlobSecurePipe,
1548
+ MonkeyEcxDisplayFirstNamePipe,
1504
1549
  MonkeyEcxDisplayInitialsPipe,
1550
+ MonkeyEcxDisplaySupportPhone,
1505
1551
  MonkeyEcxFormatAddressPipe,
1506
1552
  MonkeyEcxFormatBeaufityJSONPipe,
1507
1553
  MonkeyEcxFormatCurrencyPipe,
@@ -1517,15 +1563,16 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
1517
1563
  MonkeyEcxFormatValue,
1518
1564
  MonkeyEcxFormatZipCodePipe,
1519
1565
  MonkeyEcxTextTruncatePipe,
1520
- MonkeyEcxTruncateQtdPipe,
1521
- MonkeyEcxBlobSecurePipe] });
1566
+ MonkeyEcxTruncateQtdPipe] });
1522
1567
  MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
1523
1568
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
1524
1569
  type: NgModule,
1525
1570
  args: [{
1526
1571
  declarations: [
1572
+ MonkeyEcxBlobSecurePipe,
1527
1573
  MonkeyEcxDisplayFirstNamePipe,
1528
1574
  MonkeyEcxDisplayInitialsPipe,
1575
+ MonkeyEcxDisplaySupportPhone,
1529
1576
  MonkeyEcxFormatAddressPipe,
1530
1577
  MonkeyEcxFormatBeaufityJSONPipe,
1531
1578
  MonkeyEcxFormatCurrencyPipe,
@@ -1541,12 +1588,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1541
1588
  MonkeyEcxFormatValue,
1542
1589
  MonkeyEcxFormatZipCodePipe,
1543
1590
  MonkeyEcxTextTruncatePipe,
1544
- MonkeyEcxTruncateQtdPipe,
1545
- MonkeyEcxBlobSecurePipe
1591
+ MonkeyEcxTruncateQtdPipe
1546
1592
  ],
1547
1593
  exports: [
1594
+ MonkeyEcxBlobSecurePipe,
1548
1595
  MonkeyEcxDisplayFirstNamePipe,
1549
1596
  MonkeyEcxDisplayInitialsPipe,
1597
+ MonkeyEcxDisplaySupportPhone,
1550
1598
  MonkeyEcxFormatAddressPipe,
1551
1599
  MonkeyEcxFormatBeaufityJSONPipe,
1552
1600
  MonkeyEcxFormatCurrencyPipe,
@@ -1562,8 +1610,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1562
1610
  MonkeyEcxFormatValue,
1563
1611
  MonkeyEcxFormatZipCodePipe,
1564
1612
  MonkeyEcxTextTruncatePipe,
1565
- MonkeyEcxTruncateQtdPipe,
1566
- MonkeyEcxBlobSecurePipe
1613
+ MonkeyEcxTruncateQtdPipe
1567
1614
  ],
1568
1615
  providers: [CurrencyPipe]
1569
1616
  }]
@@ -1642,14 +1689,14 @@ class MonkeyEcxProgressBarService {
1642
1689
  return ((_a = this.visible) === null || _a === void 0 ? void 0 : _a.asObservable()) || null;
1643
1690
  }
1644
1691
  }
1645
- 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 });
1692
+ 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 });
1646
1693
  MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
1647
1694
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, decorators: [{
1648
1695
  type: Injectable,
1649
1696
  args: [{
1650
1697
  providedIn: 'root'
1651
1698
  }]
1652
- }], ctorParameters: function () { return [{ type: i2$2.Router }]; } });
1699
+ }], ctorParameters: function () { return [{ type: i2$1.Router }]; } });
1653
1700
 
1654
1701
  class MonkeyEcxProgressBarComponent {
1655
1702
  constructor(progressBarService) {
@@ -2410,7 +2457,7 @@ class MonkeyEcxPopoverDirective {
2410
2457
  this.eventsSubs.unsubscribe();
2411
2458
  }
2412
2459
  }
2413
- 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 });
2460
+ 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 });
2414
2461
  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 });
2415
2462
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, decorators: [{
2416
2463
  type: Directive,
@@ -2418,7 +2465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
2418
2465
  selector: '[monkeyecxPopover]'
2419
2466
  }]
2420
2467
  }], ctorParameters: function () {
2421
- 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: [{
2468
+ 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: [{
2422
2469
  type: Inject,
2423
2470
  args: [POPOVER_OPTIONS]
2424
2471
  }, {
@@ -3306,14 +3353,14 @@ class MonkeyEcxMaintenanceConfigService {
3306
3353
  this.handleValidation(config);
3307
3354
  }
3308
3355
  }
3309
- 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 });
3356
+ 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 });
3310
3357
  MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
3311
3358
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
3312
3359
  type: Injectable,
3313
3360
  args: [{
3314
3361
  providedIn: 'root'
3315
3362
  }]
3316
- }], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2$2.Router }]; } });
3363
+ }], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2$1.Router }]; } });
3317
3364
 
3318
3365
  class MonkeyEcxFeatureToggleService {
3319
3366
  constructor() {
@@ -3446,7 +3493,7 @@ class MonkeyEcxAlertsConfigService {
3446
3493
  }
3447
3494
  handleValidation(config) {
3448
3495
  if (config.alert) {
3449
- const { img, title, message, endDate, noEndDate } = config.alert;
3496
+ const { img, title, message, endDate, noEndDate, action } = config.alert;
3450
3497
  if (moment.default().isSameOrBefore(moment.default(endDate)) || noEndDate) {
3451
3498
  this.modalService.open(AlertsComponent, {
3452
3499
  color: 'theme',
@@ -3454,7 +3501,8 @@ class MonkeyEcxAlertsConfigService {
3454
3501
  data: {
3455
3502
  img,
3456
3503
  title,
3457
- message
3504
+ message,
3505
+ action
3458
3506
  }
3459
3507
  });
3460
3508
  }
@@ -4212,14 +4260,14 @@ class MonkeyEcxAuthGuardByRole {
4212
4260
  });
4213
4261
  }
4214
4262
  }
4215
- 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 });
4263
+ 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 });
4216
4264
  MonkeyEcxAuthGuardByRole.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardByRole, providedIn: 'root' });
4217
4265
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardByRole, decorators: [{
4218
4266
  type: Injectable,
4219
4267
  args: [{
4220
4268
  providedIn: 'root'
4221
4269
  }]
4222
- }], ctorParameters: function () { return [{ type: MonkeyEcxTokenStorageService }, { type: i2$2.Router }]; } });
4270
+ }], ctorParameters: function () { return [{ type: MonkeyEcxTokenStorageService }, { type: i2$1.Router }]; } });
4223
4271
 
4224
4272
  class MonkeyEcxAuthGuard {
4225
4273
  constructor(monkeyecxAuthenticationService) {
@@ -4473,14 +4521,14 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
4473
4521
  }
4474
4522
  }
4475
4523
  }
4476
- 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 });
4524
+ 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 });
4477
4525
  MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, providedIn: 'root' });
4478
4526
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, decorators: [{
4479
4527
  type: Injectable,
4480
4528
  args: [{
4481
4529
  providedIn: 'root'
4482
4530
  }]
4483
- }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxTokenStorageService }, { type: MonkeyEcxAuthenticationService }, { type: i2$2.Router }, { type: i1.MonkeyStyleGuideSnackbarService }, { type: i1$1.TranslateService }]; } });
4531
+ }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxTokenStorageService }, { type: MonkeyEcxAuthenticationService }, { type: i2$1.Router }, { type: i1.MonkeyStyleGuideSnackbarService }, { type: i1$1.TranslateService }]; } });
4484
4532
 
4485
4533
  class MonkeyEcxOthersErrorsHandlingService {
4486
4534
  constructor(modalService) {
@@ -4987,14 +5035,14 @@ class MonkeyEcxDiscoveryParamsService {
4987
5035
  return found;
4988
5036
  }
4989
5037
  }
4990
- 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 });
5038
+ 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 });
4991
5039
  MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
4992
5040
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
4993
5041
  type: Injectable,
4994
5042
  args: [{
4995
5043
  providedIn: 'root'
4996
5044
  }]
4997
- }], ctorParameters: function () { return [{ type: i2$2.Router }]; } });
5045
+ }], ctorParameters: function () { return [{ type: i2$1.Router }]; } });
4998
5046
 
4999
5047
  class MonkeyEcxRequestScheduleService {
5000
5048
  constructor(monkeyecxService, monkeyLoggedHandlingService) {
@@ -5694,5 +5742,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
5694
5742
  * Generated bundle index. Do not edit.
5695
5743
  */
5696
5744
 
5697
- 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 };
5745
+ 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 };
5698
5746
  //# sourceMappingURL=monkey-front-core.mjs.map