monkey-front-core 0.0.230 → 0.0.232
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.232.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,51 @@ 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
|
+
var _a, _b, _c;
|
|
38
|
+
const { config } = this;
|
|
39
|
+
this._img = (_a = config === null || config === void 0 ? void 0 : config.data) === null || _a === void 0 ? void 0 : _a.img;
|
|
40
|
+
this._title = (_b = config === null || config === void 0 ? void 0 : config.data) === null || _b === void 0 ? void 0 : _b.title;
|
|
41
|
+
this._message = (_c = config === null || config === void 0 ? void 0 : config.data) === null || _c === void 0 ? void 0 : _c.message;
|
|
42
|
+
}
|
|
43
|
+
onClose() {
|
|
44
|
+
this.modalService.close(this.modalRef);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
AlertsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
+
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 } });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsComponent, decorators: [{
|
|
50
|
+
type: Component,
|
|
51
|
+
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"] }]
|
|
52
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }]; }, propDecorators: { config: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], modalRef: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}] } });
|
|
57
|
+
|
|
58
|
+
class AlertsModule {
|
|
59
|
+
}
|
|
60
|
+
AlertsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
61
|
+
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] });
|
|
62
|
+
AlertsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, imports: [[CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()]] });
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlertsModule, decorators: [{
|
|
64
|
+
type: NgModule,
|
|
65
|
+
args: [{
|
|
66
|
+
declarations: [AlertsComponent],
|
|
67
|
+
imports: [CommonModule, MonkeyButtonModule, MonkeyModalModule, TranslateModule.forChild()],
|
|
68
|
+
exports: [AlertsComponent]
|
|
69
|
+
}]
|
|
70
|
+
}] });
|
|
71
|
+
|
|
27
72
|
/* eslint-disable comma-dangle */
|
|
28
73
|
/* eslint-disable max-len */
|
|
29
74
|
/* eslint-disable no-useless-escape */
|
|
@@ -246,14 +291,14 @@ class MonkeyEcxUtils {
|
|
|
246
291
|
}
|
|
247
292
|
}
|
|
248
293
|
|
|
249
|
-
const moment$
|
|
294
|
+
const moment$5 = moment_;
|
|
250
295
|
class MonkeyEcxFormatDateTimelapsePipe {
|
|
251
296
|
transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
|
|
252
297
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
253
298
|
return '';
|
|
254
|
-
let stillUtc = moment$
|
|
299
|
+
let stillUtc = moment$5.default.utc(date).toDate();
|
|
255
300
|
if (!useUtc)
|
|
256
|
-
stillUtc = moment$
|
|
301
|
+
stillUtc = moment$5.default(date).toDate();
|
|
257
302
|
if (date.toString().indexOf(':') <= -1) {
|
|
258
303
|
if (typeof date === 'string') {
|
|
259
304
|
stillUtc = date;
|
|
@@ -262,7 +307,7 @@ class MonkeyEcxFormatDateTimelapsePipe {
|
|
|
262
307
|
}
|
|
263
308
|
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
264
309
|
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
265
|
-
return `${moment$
|
|
310
|
+
return `${moment$5.default(stillUtc, formatFrom).format(formatTo)}`;
|
|
266
311
|
}
|
|
267
312
|
}
|
|
268
313
|
MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
@@ -438,7 +483,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
438
483
|
}]
|
|
439
484
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
|
|
440
485
|
|
|
441
|
-
const moment$
|
|
486
|
+
const moment$4 = moment_;
|
|
442
487
|
class MonkeyEcxFormatDateGroupPipe {
|
|
443
488
|
constructor(injector) {
|
|
444
489
|
this.injector = injector;
|
|
@@ -450,12 +495,12 @@ class MonkeyEcxFormatDateGroupPipe {
|
|
|
450
495
|
var _a;
|
|
451
496
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
452
497
|
return '';
|
|
453
|
-
let stillUtc = moment$
|
|
498
|
+
let stillUtc = moment$4.default.utc(date).toDate();
|
|
454
499
|
if (((_a = date.toString()) === null || _a === void 0 ? void 0 : _a.indexOf(':')) <= -1) {
|
|
455
500
|
stillUtc = date;
|
|
456
501
|
}
|
|
457
502
|
const formatFrom = 'YYYY/MM/DD';
|
|
458
|
-
const fmt = moment$
|
|
503
|
+
const fmt = moment$4.default(stillUtc, formatFrom).locale(this.lang);
|
|
459
504
|
const dayFormated = fmt.format('DD/');
|
|
460
505
|
const monthFormated = MonkeyEcxUtils.capitalize(fmt.format('MMMM'));
|
|
461
506
|
const yearFormated = fmt.format('YYYY');
|
|
@@ -480,15 +525,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
480
525
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
481
526
|
|
|
482
527
|
/* eslint-disable max-classes-per-file */
|
|
483
|
-
const moment$
|
|
528
|
+
const moment$3 = moment_;
|
|
484
529
|
class DateValidator {
|
|
485
530
|
static do(control) {
|
|
486
531
|
if (!control.parent || !control)
|
|
487
532
|
return null;
|
|
488
533
|
if (control && control.value) {
|
|
489
534
|
const dateFormat = 'MM-DD-YYYY';
|
|
490
|
-
if (!moment$
|
|
491
|
-
.default(moment$
|
|
535
|
+
if (!moment$3
|
|
536
|
+
.default(moment$3.default(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true)
|
|
492
537
|
.isValid()) {
|
|
493
538
|
return {
|
|
494
539
|
invalidDate: true,
|
|
@@ -794,7 +839,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
|
|
|
794
839
|
hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
|
|
795
840
|
});
|
|
796
841
|
|
|
797
|
-
const moment$
|
|
842
|
+
const moment$2 = moment_;
|
|
798
843
|
const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
|
|
799
844
|
function isEmptyInputValue(value) {
|
|
800
845
|
return value == null || value.length === 0;
|
|
@@ -939,8 +984,8 @@ function dateValidator(control) {
|
|
|
939
984
|
if (!control.parent || !control || isEmptyInputValue(control.value))
|
|
940
985
|
return null;
|
|
941
986
|
const dateFormat = 'MM-DD-YYYY';
|
|
942
|
-
if (!moment$
|
|
943
|
-
.default(moment$
|
|
987
|
+
if (!moment$2
|
|
988
|
+
.default(moment$2.default(control.value).format(dateFormat), ['DD/MM/YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD'], true)
|
|
944
989
|
.isValid()) {
|
|
945
990
|
return {
|
|
946
991
|
invalidDate: true,
|
|
@@ -1005,15 +1050,15 @@ class Validators {
|
|
|
1005
1050
|
|
|
1006
1051
|
/* eslint-disable object-curly-newline */
|
|
1007
1052
|
|
|
1008
|
-
const moment = moment_;
|
|
1053
|
+
const moment$1 = moment_;
|
|
1009
1054
|
class MonkeyEcxFormatDateUnixTimelapsePipe {
|
|
1010
1055
|
transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
|
|
1011
1056
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
1012
1057
|
return '';
|
|
1013
|
-
let stillUtc = moment.default.utc(date).toDate();
|
|
1058
|
+
let stillUtc = moment$1.default.utc(date).toDate();
|
|
1014
1059
|
if (!useUtc)
|
|
1015
|
-
stillUtc = moment.default(date).toDate();
|
|
1016
|
-
if (moment.default
|
|
1060
|
+
stillUtc = moment$1.default(date).toDate();
|
|
1061
|
+
if (moment$1.default
|
|
1017
1062
|
.utc(date)
|
|
1018
1063
|
.toDate()
|
|
1019
1064
|
.toLocaleString()
|
|
@@ -1025,7 +1070,7 @@ class MonkeyEcxFormatDateUnixTimelapsePipe {
|
|
|
1025
1070
|
}
|
|
1026
1071
|
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
1027
1072
|
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
1028
|
-
return `${moment.default(stillUtc, formatFrom).format(formatTo)}`;
|
|
1073
|
+
return `${moment$1.default(stillUtc, formatFrom).format(formatTo)}`;
|
|
1029
1074
|
}
|
|
1030
1075
|
}
|
|
1031
1076
|
MonkeyEcxFormatDateUnixTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateUnixTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
@@ -3152,8 +3197,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3152
3197
|
}]
|
|
3153
3198
|
}], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
|
|
3154
3199
|
|
|
3200
|
+
const moment = moment_;
|
|
3201
|
+
class MonkeyEcxAlertsConfigService {
|
|
3202
|
+
constructor(modalService) {
|
|
3203
|
+
this.modalService = modalService;
|
|
3204
|
+
// not to do
|
|
3205
|
+
}
|
|
3206
|
+
handleValidation(config) {
|
|
3207
|
+
if (config.alert) {
|
|
3208
|
+
const { img, title, message, endDate } = config.alert;
|
|
3209
|
+
if (moment().isSameOrBefore(moment(endDate))) {
|
|
3210
|
+
this.modalService.open(AlertsComponent, {
|
|
3211
|
+
color: 'theme',
|
|
3212
|
+
size: 'md',
|
|
3213
|
+
data: {
|
|
3214
|
+
img,
|
|
3215
|
+
title,
|
|
3216
|
+
message
|
|
3217
|
+
}
|
|
3218
|
+
});
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
}
|
|
3222
|
+
apply(config) {
|
|
3223
|
+
this.handleValidation(config);
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
MonkeyEcxAlertsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAlertsConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3227
|
+
MonkeyEcxAlertsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAlertsConfigService, providedIn: 'root' });
|
|
3228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAlertsConfigService, decorators: [{
|
|
3229
|
+
type: Injectable,
|
|
3230
|
+
args: [{
|
|
3231
|
+
providedIn: 'root'
|
|
3232
|
+
}]
|
|
3233
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }]; } });
|
|
3234
|
+
|
|
3155
3235
|
class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
3156
|
-
constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService) {
|
|
3236
|
+
constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, monkeyEcxAlertsConfigService) {
|
|
3157
3237
|
super(monkeyecxService);
|
|
3158
3238
|
this.monkeyecxi18nConfigService = monkeyecxi18nConfigService;
|
|
3159
3239
|
this.monkeyecxLogsConfigService = monkeyecxLogsConfigService;
|
|
@@ -3164,6 +3244,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3164
3244
|
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
3165
3245
|
this.monkeyEcxFeatureToggleService = monkeyEcxFeatureToggleService;
|
|
3166
3246
|
this.monkeyGAConfigService = monkeyGAConfigService;
|
|
3247
|
+
this.monkeyEcxAlertsConfigService = monkeyEcxAlertsConfigService;
|
|
3167
3248
|
this.configSubject$ = new BehaviorSubject({});
|
|
3168
3249
|
this.configBoostrapSubject$ = new BehaviorSubject({});
|
|
3169
3250
|
}
|
|
@@ -3178,13 +3259,14 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3178
3259
|
}
|
|
3179
3260
|
getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
|
|
3180
3261
|
var _a;
|
|
3181
|
-
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, internalValidations } = this;
|
|
3262
|
+
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, monkeyEcxAlertsConfigService, internalValidations } = this;
|
|
3182
3263
|
const url = `${environment.urlAssets}/${monkeyecxCode.toLowerCase()}`;
|
|
3183
3264
|
(_a = monkeyecxService === null || monkeyecxService === void 0 ? void 0 : monkeyecxService.get(`${url}/white-label.json`)) === null || _a === void 0 ? void 0 : _a.subscribe((config) => {
|
|
3184
3265
|
monkeyecxi18nConfigService.apply(config, environment);
|
|
3185
3266
|
monkeyecxLogsConfigService.apply(config, configBoostrap, environment, identifyCode);
|
|
3186
3267
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
3187
3268
|
monkeyGAConfigService.apply(config, environment);
|
|
3269
|
+
monkeyEcxAlertsConfigService.apply(config);
|
|
3188
3270
|
monkeyStyleGuideSettingsService.boostrap(`${url}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBoostrap, callback, environment));
|
|
3189
3271
|
configSubject$.next(config);
|
|
3190
3272
|
}, (err) => {
|
|
@@ -3222,7 +3304,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3222
3304
|
return this.configBoostrapSubject$.asObservable();
|
|
3223
3305
|
}
|
|
3224
3306
|
}
|
|
3225
|
-
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 });
|
|
3307
|
+
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 });
|
|
3226
3308
|
MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
|
|
3227
3309
|
__decorate([
|
|
3228
3310
|
MonkeyEcxCoreService({
|
|
@@ -3239,7 +3321,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3239
3321
|
args: [{
|
|
3240
3322
|
providedIn: 'root'
|
|
3241
3323
|
}]
|
|
3242
|
-
}], 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: [] } });
|
|
3324
|
+
}], 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: [] } });
|
|
3243
3325
|
|
|
3244
3326
|
class MonkeyEcxTokenStorageService {
|
|
3245
3327
|
constructor(monkeyecxConfigService) {
|
|
@@ -4986,7 +5068,8 @@ class MonkeyFrontCoreModule {
|
|
|
4986
5068
|
MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4987
5069
|
MonkeyFrontCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, imports: [CommonModule,
|
|
4988
5070
|
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$6.ServiceWorkerModule, ClosedToMaintenanceModule,
|
|
4989
|
-
VersionChangedModule
|
|
5071
|
+
VersionChangedModule,
|
|
5072
|
+
AlertsModule] });
|
|
4990
5073
|
MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, providers: [
|
|
4991
5074
|
MonkeyStyleGuideModalService,
|
|
4992
5075
|
MonkeyStyleGuideSettingsService,
|
|
@@ -5001,7 +5084,8 @@ MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
5001
5084
|
MonkeyStyleGuideModule,
|
|
5002
5085
|
ServiceWorkerModule.register('ngsw-worker.js'),
|
|
5003
5086
|
ClosedToMaintenanceModule,
|
|
5004
|
-
VersionChangedModule
|
|
5087
|
+
VersionChangedModule,
|
|
5088
|
+
AlertsModule
|
|
5005
5089
|
]] });
|
|
5006
5090
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, decorators: [{
|
|
5007
5091
|
type: NgModule,
|
|
@@ -5016,7 +5100,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5016
5100
|
MonkeyStyleGuideModule,
|
|
5017
5101
|
ServiceWorkerModule.register('ngsw-worker.js'),
|
|
5018
5102
|
ClosedToMaintenanceModule,
|
|
5019
|
-
VersionChangedModule
|
|
5103
|
+
VersionChangedModule,
|
|
5104
|
+
AlertsModule
|
|
5020
5105
|
],
|
|
5021
5106
|
providers: [
|
|
5022
5107
|
MonkeyStyleGuideModalService,
|
|
@@ -5034,5 +5119,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5034
5119
|
* Generated bundle index. Do not edit.
|
|
5035
5120
|
*/
|
|
5036
5121
|
|
|
5037
|
-
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 };
|
|
5122
|
+
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 };
|
|
5038
5123
|
//# sourceMappingURL=monkey-front-core.mjs.map
|