monkey-front-core 0.0.230 → 0.0.234
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/alerts/alerts.component.mjs +35 -0
- package/esm2020/lib/components/alerts/alerts.module.mjs +21 -0
- package/esm2020/lib/components/alerts/index.mjs +3 -0
- package/esm2020/lib/components/index.mjs +2 -1
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +40 -0
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +8 -5
- package/esm2020/lib/monkey-front-core.module.mjs +8 -6
- package/fesm2015/monkey-front-core.mjs +115 -30
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +114 -30
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/components/alerts/alerts.component.d.ts +16 -0
- package/lib/components/alerts/alerts.module.d.ts +10 -0
- package/lib/components/alerts/index.d.ts +2 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/core/interfaces/monkeyecx-config.d.ts +7 -0
- package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +11 -0
- package/lib/core/services/config/monkeyecx-config.service.d.ts +3 -1
- package/lib/monkey-front-core.module.d.ts +2 -1
- package/monkey-front-core-0.0.234.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.230.tgz +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, InjectionToken, Inject, Optional, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
|
|
3
3
|
import * as i1 from 'monkey-style-guide';
|
|
4
|
-
import { MonkeyButtonModule, MonkeyIconModule, MonkeyInputModule,
|
|
4
|
+
import { MonkeyButtonModule, MonkeyModalModule, MonkeyIconModule, MonkeyInputModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
|
-
import { formatNumber, CurrencyPipe
|
|
6
|
+
import { CommonModule, formatNumber, CurrencyPipe } from '@angular/common';
|
|
7
7
|
import * as i1$1 from '@ngx-translate/core';
|
|
8
|
-
import {
|
|
8
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
9
9
|
import * as moment_ from 'moment';
|
|
10
10
|
import * as i1$2 from 'ngx-cookie-service';
|
|
11
11
|
import * as i1$3 from '@angular/router';
|
|
@@ -24,6 +24,50 @@ import * as i1$6 from '@angular/service-worker';
|
|
|
24
24
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
25
25
|
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
26
26
|
|
|
27
|
+
class AlertsComponent {
|
|
28
|
+
constructor(modalService) {
|
|
29
|
+
this.modalService = modalService;
|
|
30
|
+
this.config = null;
|
|
31
|
+
this._img = '';
|
|
32
|
+
this._title = '';
|
|
33
|
+
this._message = '';
|
|
34
|
+
// not to do
|
|
35
|
+
}
|
|
36
|
+
ngOnInit() {
|
|
37
|
+
const { config } = this;
|
|
38
|
+
this._img = config?.data?.img;
|
|
39
|
+
this._title = config?.data?.title;
|
|
40
|
+
this._message = config?.data?.message;
|
|
41
|
+
}
|
|
42
|
+
onClose() {
|
|
43
|
+
this.modalService.close(this.modalRef);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
AlertsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
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\">\n <div class=\"alert-header\">\n <img [src]=\"_img\">\n </div>\n <div class=\"alert-body\">\n <span class=\"title\">\n {{ _title | translate }}\n </span>\n <span class=\"message\">\n {{ _message | translate }}\n </span>\n </div>\n <div class=\"alert-footer\">\n <monkey-button type=\"tertiary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'BUTTONS.CLOSE' | translate }}\n </monkey-button>\n </div>\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{min-height:312px}@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;height:200px;width:100%}:host .alert-body{display:flex;flex-direction:column;gap:16px;max-width:368px;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:24px;position:-webkit-sticky;position:sticky;bottom:0}\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 } });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{ selector: 'monkeyecx-alerts', template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"alert-header\">\n <img [src]=\"_img\">\n </div>\n <div class=\"alert-body\">\n <span class=\"title\">\n {{ _title | translate }}\n </span>\n <span class=\"message\">\n {{ _message | translate }}\n </span>\n </div>\n <div class=\"alert-footer\">\n <monkey-button type=\"tertiary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'BUTTONS.CLOSE' | translate }}\n </monkey-button>\n </div>\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{min-height:312px}@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;height:200px;width:100%}:host .alert-body{display:flex;flex-direction:column;gap:16px;max-width:368px;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:24px;position:-webkit-sticky;position:sticky;bottom:0}\n"] }]
|
|
51
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }]; }, propDecorators: { config: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], modalRef: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}] } });
|
|
56
|
+
|
|
57
|
+
class AlertsModule {
|
|
58
|
+
}
|
|
59
|
+
AlertsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
60
|
+
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] });
|
|
61
|
+
AlertsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, imports: [[CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()]] });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, decorators: [{
|
|
63
|
+
type: NgModule,
|
|
64
|
+
args: [{
|
|
65
|
+
declarations: [AlertsComponent],
|
|
66
|
+
imports: [CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()],
|
|
67
|
+
exports: [AlertsComponent]
|
|
68
|
+
}]
|
|
69
|
+
}] });
|
|
70
|
+
|
|
27
71
|
/* eslint-disable comma-dangle */
|
|
28
72
|
/* eslint-disable max-len */
|
|
29
73
|
/* eslint-disable no-useless-escape */
|
|
@@ -245,14 +289,14 @@ class MonkeyEcxUtils {
|
|
|
245
289
|
}
|
|
246
290
|
}
|
|
247
291
|
|
|
248
|
-
const moment$
|
|
292
|
+
const moment$5 = moment_;
|
|
249
293
|
class MonkeyEcxFormatDateTimelapsePipe {
|
|
250
294
|
transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
|
|
251
295
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
252
296
|
return '';
|
|
253
|
-
let stillUtc = moment$
|
|
297
|
+
let stillUtc = moment$5.default.utc(date).toDate();
|
|
254
298
|
if (!useUtc)
|
|
255
|
-
stillUtc = moment$
|
|
299
|
+
stillUtc = moment$5.default(date).toDate();
|
|
256
300
|
if (date.toString().indexOf(':') <= -1) {
|
|
257
301
|
if (typeof date === 'string') {
|
|
258
302
|
stillUtc = date;
|
|
@@ -261,7 +305,7 @@ class MonkeyEcxFormatDateTimelapsePipe {
|
|
|
261
305
|
}
|
|
262
306
|
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
263
307
|
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
264
|
-
return `${moment$
|
|
308
|
+
return `${moment$5.default(stillUtc, formatFrom).format(formatTo)}`;
|
|
265
309
|
}
|
|
266
310
|
}
|
|
267
311
|
MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
@@ -436,7 +480,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
436
480
|
}]
|
|
437
481
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
|
|
438
482
|
|
|
439
|
-
const moment$
|
|
483
|
+
const moment$4 = moment_;
|
|
440
484
|
class MonkeyEcxFormatDateGroupPipe {
|
|
441
485
|
constructor(injector) {
|
|
442
486
|
this.injector = injector;
|
|
@@ -447,12 +491,12 @@ class MonkeyEcxFormatDateGroupPipe {
|
|
|
447
491
|
format(date) {
|
|
448
492
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
449
493
|
return '';
|
|
450
|
-
let stillUtc = moment$
|
|
494
|
+
let stillUtc = moment$4.default.utc(date).toDate();
|
|
451
495
|
if (date.toString()?.indexOf(':') <= -1) {
|
|
452
496
|
stillUtc = date;
|
|
453
497
|
}
|
|
454
498
|
const formatFrom = 'YYYY/MM/DD';
|
|
455
|
-
const fmt = moment$
|
|
499
|
+
const fmt = moment$4.default(stillUtc, formatFrom).locale(this.lang);
|
|
456
500
|
const dayFormated = fmt.format('DD/');
|
|
457
501
|
const monthFormated = MonkeyEcxUtils.capitalize(fmt.format('MMMM'));
|
|
458
502
|
const yearFormated = fmt.format('YYYY');
|
|
@@ -477,15 +521,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
477
521
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
478
522
|
|
|
479
523
|
/* eslint-disable max-classes-per-file */
|
|
480
|
-
const moment$
|
|
524
|
+
const moment$3 = moment_;
|
|
481
525
|
class DateValidator {
|
|
482
526
|
static do(control) {
|
|
483
527
|
if (!control.parent || !control)
|
|
484
528
|
return null;
|
|
485
529
|
if (control && control.value) {
|
|
486
530
|
const dateFormat = 'MM-DD-YYYY';
|
|
487
|
-
if (!moment$
|
|
488
|
-
.default(moment$
|
|
531
|
+
if (!moment$3
|
|
532
|
+
.default(moment$3.default(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true)
|
|
489
533
|
.isValid()) {
|
|
490
534
|
return {
|
|
491
535
|
invalidDate: true,
|
|
@@ -790,7 +834,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
|
|
|
790
834
|
hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
|
|
791
835
|
});
|
|
792
836
|
|
|
793
|
-
const moment$
|
|
837
|
+
const moment$2 = moment_;
|
|
794
838
|
const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
|
|
795
839
|
function isEmptyInputValue(value) {
|
|
796
840
|
return value == null || value.length === 0;
|
|
@@ -932,8 +976,8 @@ function dateValidator(control) {
|
|
|
932
976
|
if (!control.parent || !control || isEmptyInputValue(control.value))
|
|
933
977
|
return null;
|
|
934
978
|
const dateFormat = 'MM-DD-YYYY';
|
|
935
|
-
if (!moment$
|
|
936
|
-
.default(moment$
|
|
979
|
+
if (!moment$2
|
|
980
|
+
.default(moment$2.default(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true)
|
|
937
981
|
.isValid()) {
|
|
938
982
|
return {
|
|
939
983
|
invalidDate: true,
|
|
@@ -998,15 +1042,15 @@ class Validators {
|
|
|
998
1042
|
|
|
999
1043
|
/* eslint-disable object-curly-newline */
|
|
1000
1044
|
|
|
1001
|
-
const moment = moment_;
|
|
1045
|
+
const moment$1 = moment_;
|
|
1002
1046
|
class MonkeyEcxFormatDateUnixTimelapsePipe {
|
|
1003
1047
|
transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
|
|
1004
1048
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
1005
1049
|
return '';
|
|
1006
|
-
let stillUtc = moment.default.utc(date).toDate();
|
|
1050
|
+
let stillUtc = moment$1.default.utc(date).toDate();
|
|
1007
1051
|
if (!useUtc)
|
|
1008
|
-
stillUtc = moment.default(date).toDate();
|
|
1009
|
-
if (moment.default
|
|
1052
|
+
stillUtc = moment$1.default(date).toDate();
|
|
1053
|
+
if (moment$1.default
|
|
1010
1054
|
.utc(date)
|
|
1011
1055
|
.toDate()
|
|
1012
1056
|
.toLocaleString()
|
|
@@ -1018,7 +1062,7 @@ class MonkeyEcxFormatDateUnixTimelapsePipe {
|
|
|
1018
1062
|
}
|
|
1019
1063
|
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
1020
1064
|
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
1021
|
-
return `${moment.default(stillUtc, formatFrom).format(formatTo)}`;
|
|
1065
|
+
return `${moment$1.default(stillUtc, formatFrom).format(formatTo)}`;
|
|
1022
1066
|
}
|
|
1023
1067
|
}
|
|
1024
1068
|
MonkeyEcxFormatDateUnixTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateUnixTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
@@ -3145,8 +3189,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3145
3189
|
}]
|
|
3146
3190
|
}], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
|
|
3147
3191
|
|
|
3192
|
+
const moment = moment_;
|
|
3193
|
+
class MonkeyEcxAlertsConfigService {
|
|
3194
|
+
constructor(modalService) {
|
|
3195
|
+
this.modalService = modalService;
|
|
3196
|
+
// not to do
|
|
3197
|
+
}
|
|
3198
|
+
handleValidation(config) {
|
|
3199
|
+
if (config.alert) {
|
|
3200
|
+
const { img, title, message, endDate } = config.alert;
|
|
3201
|
+
if (moment.default().isSameOrBefore(moment.default(endDate))) {
|
|
3202
|
+
this.modalService.open(AlertsComponent, {
|
|
3203
|
+
color: 'theme',
|
|
3204
|
+
size: 'md',
|
|
3205
|
+
data: {
|
|
3206
|
+
img,
|
|
3207
|
+
title,
|
|
3208
|
+
message
|
|
3209
|
+
}
|
|
3210
|
+
});
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
apply(config) {
|
|
3215
|
+
this.handleValidation(config);
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
MonkeyEcxAlertsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAlertsConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3219
|
+
MonkeyEcxAlertsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAlertsConfigService, providedIn: 'root' });
|
|
3220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAlertsConfigService, decorators: [{
|
|
3221
|
+
type: Injectable,
|
|
3222
|
+
args: [{
|
|
3223
|
+
providedIn: 'root'
|
|
3224
|
+
}]
|
|
3225
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }]; } });
|
|
3226
|
+
|
|
3148
3227
|
class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
3149
|
-
constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService) {
|
|
3228
|
+
constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, monkeyEcxAlertsConfigService) {
|
|
3150
3229
|
super(monkeyecxService);
|
|
3151
3230
|
this.monkeyecxi18nConfigService = monkeyecxi18nConfigService;
|
|
3152
3231
|
this.monkeyecxLogsConfigService = monkeyecxLogsConfigService;
|
|
@@ -3157,6 +3236,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3157
3236
|
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
3158
3237
|
this.monkeyEcxFeatureToggleService = monkeyEcxFeatureToggleService;
|
|
3159
3238
|
this.monkeyGAConfigService = monkeyGAConfigService;
|
|
3239
|
+
this.monkeyEcxAlertsConfigService = monkeyEcxAlertsConfigService;
|
|
3160
3240
|
this.configSubject$ = new BehaviorSubject({});
|
|
3161
3241
|
this.configBoostrapSubject$ = new BehaviorSubject({});
|
|
3162
3242
|
}
|
|
@@ -3170,7 +3250,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3170
3250
|
callback(configBoostrap);
|
|
3171
3251
|
}
|
|
3172
3252
|
getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
|
|
3173
|
-
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, internalValidations } = this;
|
|
3253
|
+
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, monkeyEcxAlertsConfigService, internalValidations } = this;
|
|
3174
3254
|
const url = `${environment.urlAssets}/${monkeyecxCode.toLowerCase()}`;
|
|
3175
3255
|
monkeyecxService
|
|
3176
3256
|
?.get(`${url}/white-label.json`)
|
|
@@ -3179,6 +3259,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3179
3259
|
monkeyecxLogsConfigService.apply(config, configBoostrap, environment, identifyCode);
|
|
3180
3260
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
3181
3261
|
monkeyGAConfigService.apply(config, environment);
|
|
3262
|
+
monkeyEcxAlertsConfigService.apply(config);
|
|
3182
3263
|
monkeyStyleGuideSettingsService.boostrap(`${url}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBoostrap, callback, environment));
|
|
3183
3264
|
configSubject$.next(config);
|
|
3184
3265
|
}, (err) => {
|
|
@@ -3217,7 +3298,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3217
3298
|
return this.configBoostrapSubject$.asObservable();
|
|
3218
3299
|
}
|
|
3219
3300
|
}
|
|
3220
|
-
MonkeyEcxConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxi18nConfigService }, { token: MonkeyEcxLogsConfigService }, { token: i1.MonkeyStyleGuideSettingsService }, { token: MonkeyEcxServiceWorkerConfigService }, { token: MonkeyEcxSecurityConsoleConfigService }, { token: MonkeyEcxMaintenanceConfigService }, { token: MonkeyEcxErrorConfigService }, { token: MonkeyEcxFeatureToggleService }, { token: MonkeyEcxGAConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3301
|
+
MonkeyEcxConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxi18nConfigService }, { token: MonkeyEcxLogsConfigService }, { token: i1.MonkeyStyleGuideSettingsService }, { token: MonkeyEcxServiceWorkerConfigService }, { token: MonkeyEcxSecurityConsoleConfigService }, { token: MonkeyEcxMaintenanceConfigService }, { token: MonkeyEcxErrorConfigService }, { token: MonkeyEcxFeatureToggleService }, { token: MonkeyEcxGAConfigService }, { token: MonkeyEcxAlertsConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3221
3302
|
MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
|
|
3222
3303
|
__decorate([
|
|
3223
3304
|
MonkeyEcxCoreService({
|
|
@@ -3234,7 +3315,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3234
3315
|
args: [{
|
|
3235
3316
|
providedIn: 'root'
|
|
3236
3317
|
}]
|
|
3237
|
-
}], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxi18nConfigService }, { type: MonkeyEcxLogsConfigService }, { type: i1.MonkeyStyleGuideSettingsService }, { type: MonkeyEcxServiceWorkerConfigService }, { type: MonkeyEcxSecurityConsoleConfigService }, { type: MonkeyEcxMaintenanceConfigService }, { type: MonkeyEcxErrorConfigService }, { type: MonkeyEcxFeatureToggleService }, { type: MonkeyEcxGAConfigService }]; }, propDecorators: { init: [] } });
|
|
3318
|
+
}], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxi18nConfigService }, { type: MonkeyEcxLogsConfigService }, { type: i1.MonkeyStyleGuideSettingsService }, { type: MonkeyEcxServiceWorkerConfigService }, { type: MonkeyEcxSecurityConsoleConfigService }, { type: MonkeyEcxMaintenanceConfigService }, { type: MonkeyEcxErrorConfigService }, { type: MonkeyEcxFeatureToggleService }, { type: MonkeyEcxGAConfigService }, { type: MonkeyEcxAlertsConfigService }]; }, propDecorators: { init: [] } });
|
|
3238
3319
|
|
|
3239
3320
|
class MonkeyEcxTokenStorageService {
|
|
3240
3321
|
constructor(monkeyecxConfigService) {
|
|
@@ -5046,7 +5127,8 @@ class MonkeyFrontCoreModule {
|
|
|
5046
5127
|
MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5047
5128
|
MonkeyFrontCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, imports: [CommonModule,
|
|
5048
5129
|
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$6.ServiceWorkerModule, ClosedToMaintenanceModule,
|
|
5049
|
-
VersionChangedModule
|
|
5130
|
+
VersionChangedModule,
|
|
5131
|
+
AlertsModule] });
|
|
5050
5132
|
MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, providers: [
|
|
5051
5133
|
MonkeyStyleGuideModalService,
|
|
5052
5134
|
MonkeyStyleGuideSettingsService,
|
|
@@ -5061,7 +5143,8 @@ MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
5061
5143
|
MonkeyStyleGuideModule,
|
|
5062
5144
|
ServiceWorkerModule.register('ngsw-worker.js'),
|
|
5063
5145
|
ClosedToMaintenanceModule,
|
|
5064
|
-
VersionChangedModule
|
|
5146
|
+
VersionChangedModule,
|
|
5147
|
+
AlertsModule
|
|
5065
5148
|
]] });
|
|
5066
5149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, decorators: [{
|
|
5067
5150
|
type: NgModule,
|
|
@@ -5076,7 +5159,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5076
5159
|
MonkeyStyleGuideModule,
|
|
5077
5160
|
ServiceWorkerModule.register('ngsw-worker.js'),
|
|
5078
5161
|
ClosedToMaintenanceModule,
|
|
5079
|
-
VersionChangedModule
|
|
5162
|
+
VersionChangedModule,
|
|
5163
|
+
AlertsModule
|
|
5080
5164
|
],
|
|
5081
5165
|
providers: [
|
|
5082
5166
|
MonkeyStyleGuideModalService,
|
|
@@ -5094,5 +5178,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5094
5178
|
* Generated bundle index. Do not edit.
|
|
5095
5179
|
*/
|
|
5096
5180
|
|
|
5097
|
-
export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, 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, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
5181
|
+
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, 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, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
5098
5182
|
//# sourceMappingURL=monkey-front-core.mjs.map
|