monkey-front-core 0.0.228 → 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/pipes/index.mjs +2 -1
- package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +21 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +3 -3
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +32 -27
- 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 +386 -279
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +385 -279
- 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/pipes/index.d.ts +1 -0
- package/lib/core/pipes/monkeyecx-display-initials.d.ts +7 -0
- package/lib/core/pipes/monkeyecx-format-type-document.d.ts +1 -1
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +18 -17
- 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.228.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 });
|
|
@@ -312,6 +356,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
312
356
|
}]
|
|
313
357
|
}] });
|
|
314
358
|
|
|
359
|
+
class MonkeyEcxDisplayInitialsPipe {
|
|
360
|
+
transform(name) {
|
|
361
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
|
|
362
|
+
return '';
|
|
363
|
+
const first = MonkeyEcxUtils.cutFirstLastName(name, 'first');
|
|
364
|
+
const second = MonkeyEcxUtils.cutFirstLastName(name, 'last');
|
|
365
|
+
return `${first?.charAt(0)} ${second?.charAt(0)}`;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
MonkeyEcxDisplayInitialsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayInitialsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
369
|
+
MonkeyEcxDisplayInitialsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayInitialsPipe, name: "monkeyecxDisplayInitials" });
|
|
370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayInitialsPipe, decorators: [{
|
|
371
|
+
type: Pipe,
|
|
372
|
+
args: [{
|
|
373
|
+
name: 'monkeyecxDisplayInitials'
|
|
374
|
+
}]
|
|
375
|
+
}] });
|
|
376
|
+
|
|
315
377
|
class MonkeyEcxFormatAddressPipe {
|
|
316
378
|
transform({ zipCode, address, neighborhood, city, state, }) {
|
|
317
379
|
return [address, neighborhood, zipCode, city, state]
|
|
@@ -330,6 +392,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
330
392
|
}]
|
|
331
393
|
}] });
|
|
332
394
|
|
|
395
|
+
class MonkeyEcxFormatBeaufityJSONPipe {
|
|
396
|
+
constructor() {
|
|
397
|
+
// not to do
|
|
398
|
+
}
|
|
399
|
+
transform(value) {
|
|
400
|
+
const jsonLine = /^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm;
|
|
401
|
+
const replacer = (match, pIndent, pKey, pVal, pEnd) => {
|
|
402
|
+
const key = '<span class="json-key" style="color: brown">';
|
|
403
|
+
const val = '<span class="json-value" style="color: navy">';
|
|
404
|
+
const str = '<span class="json-string" style="color: olive">';
|
|
405
|
+
let r = pIndent || '';
|
|
406
|
+
if (pKey) {
|
|
407
|
+
r = `${r + key + pKey.replace(/[": ]/g, '')}</span>: `;
|
|
408
|
+
}
|
|
409
|
+
if (pVal) {
|
|
410
|
+
r = `${r + (pVal[0] === '"' ? str : val) + pVal}</span>`;
|
|
411
|
+
}
|
|
412
|
+
return r + (pEnd || '');
|
|
413
|
+
};
|
|
414
|
+
return JSON.stringify(value, null, 3)
|
|
415
|
+
.replace(/&/g, '&')
|
|
416
|
+
.replace(/\\"/g, '"')
|
|
417
|
+
.replace(/</g, '<')
|
|
418
|
+
.replace(/>/g, '>')
|
|
419
|
+
.replace(jsonLine, replacer);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
MonkeyEcxFormatBeaufityJSONPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatBeaufityJSONPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
423
|
+
MonkeyEcxFormatBeaufityJSONPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatBeaufityJSONPipe, name: "monkeyecxFormatBeautifyJSON" });
|
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatBeaufityJSONPipe, decorators: [{
|
|
425
|
+
type: Pipe,
|
|
426
|
+
args: [{
|
|
427
|
+
name: 'monkeyecxFormatBeautifyJSON'
|
|
428
|
+
}]
|
|
429
|
+
}], ctorParameters: function () { return []; } });
|
|
430
|
+
|
|
333
431
|
class MonkeyEcxCookieStorageService {
|
|
334
432
|
constructor(cookieService) {
|
|
335
433
|
this.cookieService = cookieService;
|
|
@@ -382,179 +480,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
382
480
|
}]
|
|
383
481
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
|
|
384
482
|
|
|
385
|
-
|
|
386
|
-
transform(document, withType) {
|
|
387
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
388
|
-
return '';
|
|
389
|
-
return MonkeyEcxUtils.formatDocumentWithMask(document, withType);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
MonkeyEcxFormatDocumentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
393
|
-
MonkeyEcxFormatDocumentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, name: "monkeyecxFormatDocument" });
|
|
394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, decorators: [{
|
|
395
|
-
type: Pipe,
|
|
396
|
-
args: [{
|
|
397
|
-
name: 'monkeyecxFormatDocument'
|
|
398
|
-
}]
|
|
399
|
-
}] });
|
|
400
|
-
|
|
401
|
-
class MonkeyEcxFormatNumberPipe {
|
|
402
|
-
transform(number) {
|
|
403
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
|
|
404
|
-
return '';
|
|
405
|
-
return formatNumber(Number(number), 'ptbr');
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
MonkeyEcxFormatNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
409
|
-
MonkeyEcxFormatNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, name: "monkeyecxFormatNumber" });
|
|
410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, decorators: [{
|
|
411
|
-
type: Pipe,
|
|
412
|
-
args: [{
|
|
413
|
-
name: 'monkeyecxFormatNumber'
|
|
414
|
-
}]
|
|
415
|
-
}] });
|
|
416
|
-
|
|
417
|
-
class MonkeyEcxFormatPhonePipe {
|
|
418
|
-
transform(phone) {
|
|
419
|
-
if (phone) {
|
|
420
|
-
const value = `${phone || ''}`.replace(/\D/g, '');
|
|
421
|
-
let formated = '';
|
|
422
|
-
if (value.length > 12) {
|
|
423
|
-
formated = value.replace(/(\d{2})?(\d{2})?(\d{5})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
424
|
-
}
|
|
425
|
-
else if (value.length > 11) {
|
|
426
|
-
formated = value.replace(/(\d{2})?(\d{2})?(\d{4})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
427
|
-
}
|
|
428
|
-
else if (value.length > 10) {
|
|
429
|
-
formated = value.replace(/(\d{2})?(\d{5})?(\d{4})/, '($1) $2-$3');
|
|
430
|
-
}
|
|
431
|
-
else if (value.length > 9) {
|
|
432
|
-
formated = value.replace(/(\d{2})?(\d{4})?(\d{4})/, '($1) $2-$3');
|
|
433
|
-
}
|
|
434
|
-
else if (value.length > 5) {
|
|
435
|
-
formated = value.replace(/^(\d{2})?(\d{4})?(\d{0,4})/, '($1) $2-$3');
|
|
436
|
-
}
|
|
437
|
-
else if (value.length > 1) {
|
|
438
|
-
formated = value.replace(/^(\d{2})?(\d{0,5})/, '($1) $2');
|
|
439
|
-
}
|
|
440
|
-
else if (phone !== '') {
|
|
441
|
-
formated = value.replace(/^(\d*)/, '($1');
|
|
442
|
-
}
|
|
443
|
-
return formated;
|
|
444
|
-
}
|
|
445
|
-
return '';
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
MonkeyEcxFormatPhonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
449
|
-
MonkeyEcxFormatPhonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, name: "monkeyecxFormatPhone" });
|
|
450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, decorators: [{
|
|
451
|
-
type: Pipe,
|
|
452
|
-
args: [{
|
|
453
|
-
name: 'monkeyecxFormatPhone'
|
|
454
|
-
}]
|
|
455
|
-
}] });
|
|
456
|
-
|
|
457
|
-
class MonkeyEcxFormatSizePipe {
|
|
458
|
-
transform(size) {
|
|
459
|
-
if (!size)
|
|
460
|
-
return '0 B';
|
|
461
|
-
const sizeNum = Number(size);
|
|
462
|
-
return MonkeyEcxUtils.formatFileSize(sizeNum);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
MonkeyEcxFormatSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
466
|
-
MonkeyEcxFormatSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, name: "monkeyecxFormatSize" });
|
|
467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, decorators: [{
|
|
468
|
-
type: Pipe,
|
|
469
|
-
args: [{
|
|
470
|
-
name: 'monkeyecxFormatSize'
|
|
471
|
-
}]
|
|
472
|
-
}] });
|
|
473
|
-
|
|
474
|
-
class MonkeyEcxFormatDocumentTypePipe {
|
|
475
|
-
transform(document) {
|
|
476
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
477
|
-
return '';
|
|
478
|
-
return MonkeyEcxUtils.getDocumentType(document);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
MonkeyEcxFormatDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
482
|
-
MonkeyEcxFormatDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, name: "monkeyecxFormatDocumentType" });
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, decorators: [{
|
|
484
|
-
type: Pipe,
|
|
485
|
-
args: [{
|
|
486
|
-
name: 'monkeyecxFormatDocumentType'
|
|
487
|
-
}]
|
|
488
|
-
}] });
|
|
489
|
-
|
|
490
|
-
class MonkeyEcxFormatValue {
|
|
491
|
-
transform(number) {
|
|
492
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
|
|
493
|
-
return '';
|
|
494
|
-
return number;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
MonkeyEcxFormatValue.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
498
|
-
MonkeyEcxFormatValue.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, name: "monkeyecxFormatValue" });
|
|
499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, decorators: [{
|
|
500
|
-
type: Pipe,
|
|
501
|
-
args: [{
|
|
502
|
-
name: 'monkeyecxFormatValue'
|
|
503
|
-
}]
|
|
504
|
-
}] });
|
|
505
|
-
|
|
506
|
-
class MonkeyEcxFormatZipCodePipe {
|
|
507
|
-
transform(zipCode) {
|
|
508
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(zipCode))
|
|
509
|
-
return '';
|
|
510
|
-
return MonkeyEcxUtils.formatZipCode(zipCode);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
MonkeyEcxFormatZipCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
514
|
-
MonkeyEcxFormatZipCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, name: "monkeyecxFormatZipCode" });
|
|
515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, decorators: [{
|
|
516
|
-
type: Pipe,
|
|
517
|
-
args: [{
|
|
518
|
-
name: 'monkeyecxFormatZipCode'
|
|
519
|
-
}]
|
|
520
|
-
}] });
|
|
521
|
-
|
|
522
|
-
class MonkeyEcxTextTruncatePipe {
|
|
523
|
-
transform(text, maxLength = 25) {
|
|
524
|
-
const midChar = '...';
|
|
525
|
-
if (!text)
|
|
526
|
-
return midChar;
|
|
527
|
-
if (text && text.length <= maxLength)
|
|
528
|
-
return text;
|
|
529
|
-
const left = Math.ceil(maxLength / 2);
|
|
530
|
-
const right = text.length - left + 1;
|
|
531
|
-
return `${text.substr(0, left)} ${midChar} ${text.substring(right)}`;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
MonkeyEcxTextTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
535
|
-
MonkeyEcxTextTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, name: "monkeyecxTextTruncate" });
|
|
536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, decorators: [{
|
|
537
|
-
type: Pipe,
|
|
538
|
-
args: [{
|
|
539
|
-
name: 'monkeyecxTextTruncate'
|
|
540
|
-
}]
|
|
541
|
-
}] });
|
|
542
|
-
|
|
543
|
-
class MonkeyEcxTruncateQtdPipe {
|
|
544
|
-
transform(number, threshold) {
|
|
545
|
-
return `${number > threshold ? `${threshold}+` : number}`;
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
MonkeyEcxTruncateQtdPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
549
|
-
MonkeyEcxTruncateQtdPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, name: "monkeyecxTruncateQtd" });
|
|
550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, decorators: [{
|
|
551
|
-
type: Pipe,
|
|
552
|
-
args: [{
|
|
553
|
-
name: 'monkeyecxTruncateQtd'
|
|
554
|
-
}]
|
|
555
|
-
}] });
|
|
556
|
-
|
|
557
|
-
const moment$3 = moment_;
|
|
483
|
+
const moment$4 = moment_;
|
|
558
484
|
class MonkeyEcxFormatDateGroupPipe {
|
|
559
485
|
constructor(injector) {
|
|
560
486
|
this.injector = injector;
|
|
@@ -565,12 +491,12 @@ class MonkeyEcxFormatDateGroupPipe {
|
|
|
565
491
|
format(date) {
|
|
566
492
|
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
567
493
|
return '';
|
|
568
|
-
let stillUtc = moment$
|
|
494
|
+
let stillUtc = moment$4.default.utc(date).toDate();
|
|
569
495
|
if (date.toString()?.indexOf(':') <= -1) {
|
|
570
496
|
stillUtc = date;
|
|
571
497
|
}
|
|
572
498
|
const formatFrom = 'YYYY/MM/DD';
|
|
573
|
-
const fmt = moment$
|
|
499
|
+
const fmt = moment$4.default(stillUtc, formatFrom).locale(this.lang);
|
|
574
500
|
const dayFormated = fmt.format('DD/');
|
|
575
501
|
const monthFormated = MonkeyEcxUtils.capitalize(fmt.format('MMMM'));
|
|
576
502
|
const yearFormated = fmt.format('YYYY');
|
|
@@ -595,15 +521,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
595
521
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
596
522
|
|
|
597
523
|
/* eslint-disable max-classes-per-file */
|
|
598
|
-
const moment$
|
|
524
|
+
const moment$3 = moment_;
|
|
599
525
|
class DateValidator {
|
|
600
526
|
static do(control) {
|
|
601
527
|
if (!control.parent || !control)
|
|
602
528
|
return null;
|
|
603
529
|
if (control && control.value) {
|
|
604
530
|
const dateFormat = 'MM-DD-YYYY';
|
|
605
|
-
if (!moment$
|
|
606
|
-
.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)
|
|
607
533
|
.isValid()) {
|
|
608
534
|
return {
|
|
609
535
|
invalidDate: true,
|
|
@@ -908,7 +834,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
|
|
|
908
834
|
hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
|
|
909
835
|
});
|
|
910
836
|
|
|
911
|
-
const moment$
|
|
837
|
+
const moment$2 = moment_;
|
|
912
838
|
const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
|
|
913
839
|
function isEmptyInputValue(value) {
|
|
914
840
|
return value == null || value.length === 0;
|
|
@@ -1050,8 +976,8 @@ function dateValidator(control) {
|
|
|
1050
976
|
if (!control.parent || !control || isEmptyInputValue(control.value))
|
|
1051
977
|
return null;
|
|
1052
978
|
const dateFormat = 'MM-DD-YYYY';
|
|
1053
|
-
if (!moment$
|
|
1054
|
-
.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)
|
|
1055
981
|
.isValid()) {
|
|
1056
982
|
return {
|
|
1057
983
|
invalidDate: true,
|
|
@@ -1103,18 +1029,155 @@ class Validators {
|
|
|
1103
1029
|
static documentBR(control) {
|
|
1104
1030
|
return documentValidator(control, 'BR');
|
|
1105
1031
|
}
|
|
1106
|
-
static documentCL(control) {
|
|
1107
|
-
return documentValidator(control, 'CL');
|
|
1032
|
+
static documentCL(control) {
|
|
1033
|
+
return documentValidator(control, 'CL');
|
|
1034
|
+
}
|
|
1035
|
+
static date(control) {
|
|
1036
|
+
return dateValidator(control);
|
|
1037
|
+
}
|
|
1038
|
+
static greaterThanZero(control) {
|
|
1039
|
+
return valueGreaterThanZero(control);
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/* eslint-disable object-curly-newline */
|
|
1044
|
+
|
|
1045
|
+
const moment$1 = moment_;
|
|
1046
|
+
class MonkeyEcxFormatDateUnixTimelapsePipe {
|
|
1047
|
+
transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
|
|
1048
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
1049
|
+
return '';
|
|
1050
|
+
let stillUtc = moment$1.default.utc(date).toDate();
|
|
1051
|
+
if (!useUtc)
|
|
1052
|
+
stillUtc = moment$1.default(date).toDate();
|
|
1053
|
+
if (moment$1.default
|
|
1054
|
+
.utc(date)
|
|
1055
|
+
.toDate()
|
|
1056
|
+
.toLocaleString()
|
|
1057
|
+
.indexOf(':') <= -1) {
|
|
1058
|
+
if (typeof date === 'string') {
|
|
1059
|
+
stillUtc = date;
|
|
1060
|
+
showTime = false;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
1064
|
+
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
1065
|
+
return `${moment$1.default(stillUtc, formatFrom).format(formatTo)}`;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
MonkeyEcxFormatDateUnixTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateUnixTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1069
|
+
MonkeyEcxFormatDateUnixTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateUnixTimelapsePipe, name: "monkeyecxFormatDateUnixTimelapse" });
|
|
1070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateUnixTimelapsePipe, decorators: [{
|
|
1071
|
+
type: Pipe,
|
|
1072
|
+
args: [{
|
|
1073
|
+
name: 'monkeyecxFormatDateUnixTimelapse'
|
|
1074
|
+
}]
|
|
1075
|
+
}] });
|
|
1076
|
+
|
|
1077
|
+
class MonkeyEcxFormatDocumentPipe {
|
|
1078
|
+
transform(document, withType) {
|
|
1079
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
1080
|
+
return '';
|
|
1081
|
+
return MonkeyEcxUtils.formatDocumentWithMask(document, withType);
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
MonkeyEcxFormatDocumentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1085
|
+
MonkeyEcxFormatDocumentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, name: "monkeyecxFormatDocument" });
|
|
1086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, decorators: [{
|
|
1087
|
+
type: Pipe,
|
|
1088
|
+
args: [{
|
|
1089
|
+
name: 'monkeyecxFormatDocument'
|
|
1090
|
+
}]
|
|
1091
|
+
}] });
|
|
1092
|
+
|
|
1093
|
+
class MonkeyEcxFormatDocumentTypePipe {
|
|
1094
|
+
transform(document, country) {
|
|
1095
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
1096
|
+
return '';
|
|
1097
|
+
return MonkeyEcxUtils.getDocumentType(document, country);
|
|
1108
1098
|
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1099
|
+
}
|
|
1100
|
+
MonkeyEcxFormatDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1101
|
+
MonkeyEcxFormatDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, name: "monkeyecxFormatDocumentType" });
|
|
1102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, decorators: [{
|
|
1103
|
+
type: Pipe,
|
|
1104
|
+
args: [{
|
|
1105
|
+
name: 'monkeyecxFormatDocumentType'
|
|
1106
|
+
}]
|
|
1107
|
+
}] });
|
|
1108
|
+
|
|
1109
|
+
class MonkeyEcxFormatNumberPipe {
|
|
1110
|
+
transform(number) {
|
|
1111
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
|
|
1112
|
+
return '';
|
|
1113
|
+
return formatNumber(Number(number), 'ptbr');
|
|
1111
1114
|
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1115
|
+
}
|
|
1116
|
+
MonkeyEcxFormatNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1117
|
+
MonkeyEcxFormatNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, name: "monkeyecxFormatNumber" });
|
|
1118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, decorators: [{
|
|
1119
|
+
type: Pipe,
|
|
1120
|
+
args: [{
|
|
1121
|
+
name: 'monkeyecxFormatNumber'
|
|
1122
|
+
}]
|
|
1123
|
+
}] });
|
|
1124
|
+
|
|
1125
|
+
class MonkeyEcxFormatPhonePipe {
|
|
1126
|
+
transform(phone) {
|
|
1127
|
+
if (phone) {
|
|
1128
|
+
const value = `${phone || ''}`.replace(/\D/g, '');
|
|
1129
|
+
let formated = '';
|
|
1130
|
+
if (value.length > 12) {
|
|
1131
|
+
formated = value.replace(/(\d{2})?(\d{2})?(\d{5})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
1132
|
+
}
|
|
1133
|
+
else if (value.length > 11) {
|
|
1134
|
+
formated = value.replace(/(\d{2})?(\d{2})?(\d{4})?(\d{4})/, '+$1 ($2) $3-$4');
|
|
1135
|
+
}
|
|
1136
|
+
else if (value.length > 10) {
|
|
1137
|
+
formated = value.replace(/(\d{2})?(\d{5})?(\d{4})/, '($1) $2-$3');
|
|
1138
|
+
}
|
|
1139
|
+
else if (value.length > 9) {
|
|
1140
|
+
formated = value.replace(/(\d{2})?(\d{4})?(\d{4})/, '($1) $2-$3');
|
|
1141
|
+
}
|
|
1142
|
+
else if (value.length > 5) {
|
|
1143
|
+
formated = value.replace(/^(\d{2})?(\d{4})?(\d{0,4})/, '($1) $2-$3');
|
|
1144
|
+
}
|
|
1145
|
+
else if (value.length > 1) {
|
|
1146
|
+
formated = value.replace(/^(\d{2})?(\d{0,5})/, '($1) $2');
|
|
1147
|
+
}
|
|
1148
|
+
else if (phone !== '') {
|
|
1149
|
+
formated = value.replace(/^(\d*)/, '($1');
|
|
1150
|
+
}
|
|
1151
|
+
return formated;
|
|
1152
|
+
}
|
|
1153
|
+
return '';
|
|
1114
1154
|
}
|
|
1115
|
-
}
|
|
1155
|
+
}
|
|
1156
|
+
MonkeyEcxFormatPhonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1157
|
+
MonkeyEcxFormatPhonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, name: "monkeyecxFormatPhone" });
|
|
1158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, decorators: [{
|
|
1159
|
+
type: Pipe,
|
|
1160
|
+
args: [{
|
|
1161
|
+
name: 'monkeyecxFormatPhone'
|
|
1162
|
+
}]
|
|
1163
|
+
}] });
|
|
1116
1164
|
|
|
1117
|
-
|
|
1165
|
+
class MonkeyEcxFormatSizePipe {
|
|
1166
|
+
transform(size) {
|
|
1167
|
+
if (!size)
|
|
1168
|
+
return '0 B';
|
|
1169
|
+
const sizeNum = Number(size);
|
|
1170
|
+
return MonkeyEcxUtils.formatFileSize(sizeNum);
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
MonkeyEcxFormatSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1174
|
+
MonkeyEcxFormatSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, name: "monkeyecxFormatSize" });
|
|
1175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, decorators: [{
|
|
1176
|
+
type: Pipe,
|
|
1177
|
+
args: [{
|
|
1178
|
+
name: 'monkeyecxFormatSize'
|
|
1179
|
+
}]
|
|
1180
|
+
}] });
|
|
1118
1181
|
|
|
1119
1182
|
class MonkeyEcxFormatTaxPipe {
|
|
1120
1183
|
transform(tax, decimalDigits = 7) {
|
|
@@ -1136,71 +1199,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1136
1199
|
}]
|
|
1137
1200
|
}] });
|
|
1138
1201
|
|
|
1139
|
-
class
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
const jsonLine = /^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/gm;
|
|
1145
|
-
const replacer = (match, pIndent, pKey, pVal, pEnd) => {
|
|
1146
|
-
const key = '<span class="json-key" style="color: brown">';
|
|
1147
|
-
const val = '<span class="json-value" style="color: navy">';
|
|
1148
|
-
const str = '<span class="json-string" style="color: olive">';
|
|
1149
|
-
let r = pIndent || '';
|
|
1150
|
-
if (pKey) {
|
|
1151
|
-
r = `${r + key + pKey.replace(/[": ]/g, '')}</span>: `;
|
|
1152
|
-
}
|
|
1153
|
-
if (pVal) {
|
|
1154
|
-
r = `${r + (pVal[0] === '"' ? str : val) + pVal}</span>`;
|
|
1155
|
-
}
|
|
1156
|
-
return r + (pEnd || '');
|
|
1157
|
-
};
|
|
1158
|
-
return JSON.stringify(value, null, 3)
|
|
1159
|
-
.replace(/&/g, '&')
|
|
1160
|
-
.replace(/\\"/g, '"')
|
|
1161
|
-
.replace(/</g, '<')
|
|
1162
|
-
.replace(/>/g, '>')
|
|
1163
|
-
.replace(jsonLine, replacer);
|
|
1202
|
+
class MonkeyEcxFormatValue {
|
|
1203
|
+
transform(number) {
|
|
1204
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
|
|
1205
|
+
return '';
|
|
1206
|
+
return number;
|
|
1164
1207
|
}
|
|
1165
1208
|
}
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
1209
|
+
MonkeyEcxFormatValue.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1210
|
+
MonkeyEcxFormatValue.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, name: "monkeyecxFormatValue" });
|
|
1211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, decorators: [{
|
|
1169
1212
|
type: Pipe,
|
|
1170
1213
|
args: [{
|
|
1171
|
-
name: '
|
|
1214
|
+
name: 'monkeyecxFormatValue'
|
|
1172
1215
|
}]
|
|
1173
|
-
}]
|
|
1216
|
+
}] });
|
|
1174
1217
|
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
1218
|
+
class MonkeyEcxFormatZipCodePipe {
|
|
1219
|
+
transform(zipCode) {
|
|
1220
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(zipCode))
|
|
1179
1221
|
return '';
|
|
1180
|
-
|
|
1181
|
-
if (!useUtc)
|
|
1182
|
-
stillUtc = moment.default(date).toDate();
|
|
1183
|
-
if (moment.default
|
|
1184
|
-
.utc(date)
|
|
1185
|
-
.toDate()
|
|
1186
|
-
.toLocaleString()
|
|
1187
|
-
.indexOf(':') <= -1) {
|
|
1188
|
-
if (typeof date === 'string') {
|
|
1189
|
-
stillUtc = date;
|
|
1190
|
-
showTime = false;
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
1194
|
-
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
1195
|
-
return `${moment.default(stillUtc, formatFrom).format(formatTo)}`;
|
|
1222
|
+
return MonkeyEcxUtils.formatZipCode(zipCode);
|
|
1196
1223
|
}
|
|
1197
1224
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
1225
|
+
MonkeyEcxFormatZipCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1226
|
+
MonkeyEcxFormatZipCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, name: "monkeyecxFormatZipCode" });
|
|
1227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, decorators: [{
|
|
1201
1228
|
type: Pipe,
|
|
1202
1229
|
args: [{
|
|
1203
|
-
name: '
|
|
1230
|
+
name: 'monkeyecxFormatZipCode'
|
|
1231
|
+
}]
|
|
1232
|
+
}] });
|
|
1233
|
+
|
|
1234
|
+
class MonkeyEcxTextTruncatePipe {
|
|
1235
|
+
transform(text, maxLength = 25) {
|
|
1236
|
+
const midChar = '...';
|
|
1237
|
+
if (!text)
|
|
1238
|
+
return midChar;
|
|
1239
|
+
if (text && text.length <= maxLength)
|
|
1240
|
+
return text;
|
|
1241
|
+
const left = Math.ceil(maxLength / 2);
|
|
1242
|
+
const right = text.length - left + 1;
|
|
1243
|
+
return `${text.substr(0, left)} ${midChar} ${text.substring(right)}`;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
MonkeyEcxTextTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1247
|
+
MonkeyEcxTextTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, name: "monkeyecxTextTruncate" });
|
|
1248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, decorators: [{
|
|
1249
|
+
type: Pipe,
|
|
1250
|
+
args: [{
|
|
1251
|
+
name: 'monkeyecxTextTruncate'
|
|
1252
|
+
}]
|
|
1253
|
+
}] });
|
|
1254
|
+
|
|
1255
|
+
class MonkeyEcxTruncateQtdPipe {
|
|
1256
|
+
transform(number, threshold) {
|
|
1257
|
+
return `${number > threshold ? `${threshold}+` : number}`;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
MonkeyEcxTruncateQtdPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1261
|
+
MonkeyEcxTruncateQtdPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, name: "monkeyecxTruncateQtd" });
|
|
1262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, decorators: [{
|
|
1263
|
+
type: Pipe,
|
|
1264
|
+
args: [{
|
|
1265
|
+
name: 'monkeyecxTruncateQtd'
|
|
1204
1266
|
}]
|
|
1205
1267
|
}] });
|
|
1206
1268
|
|
|
@@ -1208,79 +1270,83 @@ class MonkeyEcxPipesModule {
|
|
|
1208
1270
|
}
|
|
1209
1271
|
MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1210
1272
|
MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxDisplayFirstNamePipe,
|
|
1273
|
+
MonkeyEcxDisplayInitialsPipe,
|
|
1211
1274
|
MonkeyEcxFormatAddressPipe,
|
|
1275
|
+
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1212
1276
|
MonkeyEcxFormatCurrencyPipe,
|
|
1213
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
1214
1277
|
MonkeyEcxFormatDateGroupPipe,
|
|
1278
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
1279
|
+
MonkeyEcxFormatDateUnixTimelapsePipe,
|
|
1215
1280
|
MonkeyEcxFormatDocumentPipe,
|
|
1281
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
1216
1282
|
MonkeyEcxFormatNumberPipe,
|
|
1217
1283
|
MonkeyEcxFormatPhonePipe,
|
|
1218
1284
|
MonkeyEcxFormatSizePipe,
|
|
1219
1285
|
MonkeyEcxFormatTaxPipe,
|
|
1220
|
-
MonkeyEcxFormatDocumentTypePipe,
|
|
1221
1286
|
MonkeyEcxFormatValue,
|
|
1222
1287
|
MonkeyEcxFormatZipCodePipe,
|
|
1223
1288
|
MonkeyEcxTextTruncatePipe,
|
|
1224
|
-
MonkeyEcxTruncateQtdPipe,
|
|
1225
|
-
|
|
1226
|
-
MonkeyEcxFormatDateUnixTimelapsePipe], exports: [MonkeyEcxDisplayFirstNamePipe,
|
|
1289
|
+
MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxDisplayFirstNamePipe,
|
|
1290
|
+
MonkeyEcxDisplayInitialsPipe,
|
|
1227
1291
|
MonkeyEcxFormatAddressPipe,
|
|
1292
|
+
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1228
1293
|
MonkeyEcxFormatCurrencyPipe,
|
|
1229
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
1230
1294
|
MonkeyEcxFormatDateGroupPipe,
|
|
1295
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
1296
|
+
MonkeyEcxFormatDateUnixTimelapsePipe,
|
|
1231
1297
|
MonkeyEcxFormatDocumentPipe,
|
|
1298
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
1232
1299
|
MonkeyEcxFormatNumberPipe,
|
|
1233
1300
|
MonkeyEcxFormatPhonePipe,
|
|
1234
1301
|
MonkeyEcxFormatSizePipe,
|
|
1235
1302
|
MonkeyEcxFormatTaxPipe,
|
|
1236
|
-
MonkeyEcxFormatDocumentTypePipe,
|
|
1237
1303
|
MonkeyEcxFormatValue,
|
|
1238
1304
|
MonkeyEcxFormatZipCodePipe,
|
|
1239
1305
|
MonkeyEcxTextTruncatePipe,
|
|
1240
|
-
MonkeyEcxTruncateQtdPipe
|
|
1241
|
-
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1242
|
-
MonkeyEcxFormatDateUnixTimelapsePipe] });
|
|
1306
|
+
MonkeyEcxTruncateQtdPipe] });
|
|
1243
1307
|
MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
|
|
1244
1308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
|
|
1245
1309
|
type: NgModule,
|
|
1246
1310
|
args: [{
|
|
1247
1311
|
declarations: [
|
|
1248
1312
|
MonkeyEcxDisplayFirstNamePipe,
|
|
1313
|
+
MonkeyEcxDisplayInitialsPipe,
|
|
1249
1314
|
MonkeyEcxFormatAddressPipe,
|
|
1315
|
+
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1250
1316
|
MonkeyEcxFormatCurrencyPipe,
|
|
1251
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
1252
1317
|
MonkeyEcxFormatDateGroupPipe,
|
|
1318
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
1319
|
+
MonkeyEcxFormatDateUnixTimelapsePipe,
|
|
1253
1320
|
MonkeyEcxFormatDocumentPipe,
|
|
1321
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
1254
1322
|
MonkeyEcxFormatNumberPipe,
|
|
1255
1323
|
MonkeyEcxFormatPhonePipe,
|
|
1256
1324
|
MonkeyEcxFormatSizePipe,
|
|
1257
1325
|
MonkeyEcxFormatTaxPipe,
|
|
1258
|
-
MonkeyEcxFormatDocumentTypePipe,
|
|
1259
1326
|
MonkeyEcxFormatValue,
|
|
1260
1327
|
MonkeyEcxFormatZipCodePipe,
|
|
1261
1328
|
MonkeyEcxTextTruncatePipe,
|
|
1262
|
-
MonkeyEcxTruncateQtdPipe
|
|
1263
|
-
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1264
|
-
MonkeyEcxFormatDateUnixTimelapsePipe
|
|
1329
|
+
MonkeyEcxTruncateQtdPipe
|
|
1265
1330
|
],
|
|
1266
1331
|
exports: [
|
|
1267
1332
|
MonkeyEcxDisplayFirstNamePipe,
|
|
1333
|
+
MonkeyEcxDisplayInitialsPipe,
|
|
1268
1334
|
MonkeyEcxFormatAddressPipe,
|
|
1335
|
+
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1269
1336
|
MonkeyEcxFormatCurrencyPipe,
|
|
1270
|
-
MonkeyEcxFormatDateTimelapsePipe,
|
|
1271
1337
|
MonkeyEcxFormatDateGroupPipe,
|
|
1338
|
+
MonkeyEcxFormatDateTimelapsePipe,
|
|
1339
|
+
MonkeyEcxFormatDateUnixTimelapsePipe,
|
|
1272
1340
|
MonkeyEcxFormatDocumentPipe,
|
|
1341
|
+
MonkeyEcxFormatDocumentTypePipe,
|
|
1273
1342
|
MonkeyEcxFormatNumberPipe,
|
|
1274
1343
|
MonkeyEcxFormatPhonePipe,
|
|
1275
1344
|
MonkeyEcxFormatSizePipe,
|
|
1276
1345
|
MonkeyEcxFormatTaxPipe,
|
|
1277
|
-
MonkeyEcxFormatDocumentTypePipe,
|
|
1278
1346
|
MonkeyEcxFormatValue,
|
|
1279
1347
|
MonkeyEcxFormatZipCodePipe,
|
|
1280
1348
|
MonkeyEcxTextTruncatePipe,
|
|
1281
|
-
MonkeyEcxTruncateQtdPipe
|
|
1282
|
-
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1283
|
-
MonkeyEcxFormatDateUnixTimelapsePipe
|
|
1349
|
+
MonkeyEcxTruncateQtdPipe
|
|
1284
1350
|
],
|
|
1285
1351
|
providers: [CurrencyPipe]
|
|
1286
1352
|
}]
|
|
@@ -3123,8 +3189,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3123
3189
|
}]
|
|
3124
3190
|
}], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
|
|
3125
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().isSameOrBefore(moment(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
|
+
|
|
3126
3227
|
class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
3127
|
-
constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService) {
|
|
3228
|
+
constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, monkeyEcxAlertsConfigService) {
|
|
3128
3229
|
super(monkeyecxService);
|
|
3129
3230
|
this.monkeyecxi18nConfigService = monkeyecxi18nConfigService;
|
|
3130
3231
|
this.monkeyecxLogsConfigService = monkeyecxLogsConfigService;
|
|
@@ -3135,6 +3236,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3135
3236
|
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
3136
3237
|
this.monkeyEcxFeatureToggleService = monkeyEcxFeatureToggleService;
|
|
3137
3238
|
this.monkeyGAConfigService = monkeyGAConfigService;
|
|
3239
|
+
this.monkeyEcxAlertsConfigService = monkeyEcxAlertsConfigService;
|
|
3138
3240
|
this.configSubject$ = new BehaviorSubject({});
|
|
3139
3241
|
this.configBoostrapSubject$ = new BehaviorSubject({});
|
|
3140
3242
|
}
|
|
@@ -3148,7 +3250,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3148
3250
|
callback(configBoostrap);
|
|
3149
3251
|
}
|
|
3150
3252
|
getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
|
|
3151
|
-
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, internalValidations } = this;
|
|
3253
|
+
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGAConfigService, monkeyEcxAlertsConfigService, internalValidations } = this;
|
|
3152
3254
|
const url = `${environment.urlAssets}/${monkeyecxCode.toLowerCase()}`;
|
|
3153
3255
|
monkeyecxService
|
|
3154
3256
|
?.get(`${url}/white-label.json`)
|
|
@@ -3157,6 +3259,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3157
3259
|
monkeyecxLogsConfigService.apply(config, configBoostrap, environment, identifyCode);
|
|
3158
3260
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
3159
3261
|
monkeyGAConfigService.apply(config, environment);
|
|
3262
|
+
monkeyEcxAlertsConfigService.apply(config);
|
|
3160
3263
|
monkeyStyleGuideSettingsService.boostrap(`${url}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBoostrap, callback, environment));
|
|
3161
3264
|
configSubject$.next(config);
|
|
3162
3265
|
}, (err) => {
|
|
@@ -3195,7 +3298,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3195
3298
|
return this.configBoostrapSubject$.asObservable();
|
|
3196
3299
|
}
|
|
3197
3300
|
}
|
|
3198
|
-
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 });
|
|
3199
3302
|
MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
|
|
3200
3303
|
__decorate([
|
|
3201
3304
|
MonkeyEcxCoreService({
|
|
@@ -3212,7 +3315,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3212
3315
|
args: [{
|
|
3213
3316
|
providedIn: 'root'
|
|
3214
3317
|
}]
|
|
3215
|
-
}], 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: [] } });
|
|
3216
3319
|
|
|
3217
3320
|
class MonkeyEcxTokenStorageService {
|
|
3218
3321
|
constructor(monkeyecxConfigService) {
|
|
@@ -5024,7 +5127,8 @@ class MonkeyFrontCoreModule {
|
|
|
5024
5127
|
MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5025
5128
|
MonkeyFrontCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, imports: [CommonModule,
|
|
5026
5129
|
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$6.ServiceWorkerModule, ClosedToMaintenanceModule,
|
|
5027
|
-
VersionChangedModule
|
|
5130
|
+
VersionChangedModule,
|
|
5131
|
+
AlertsModule] });
|
|
5028
5132
|
MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, providers: [
|
|
5029
5133
|
MonkeyStyleGuideModalService,
|
|
5030
5134
|
MonkeyStyleGuideSettingsService,
|
|
@@ -5039,7 +5143,8 @@ MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
5039
5143
|
MonkeyStyleGuideModule,
|
|
5040
5144
|
ServiceWorkerModule.register('ngsw-worker.js'),
|
|
5041
5145
|
ClosedToMaintenanceModule,
|
|
5042
|
-
VersionChangedModule
|
|
5146
|
+
VersionChangedModule,
|
|
5147
|
+
AlertsModule
|
|
5043
5148
|
]] });
|
|
5044
5149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, decorators: [{
|
|
5045
5150
|
type: NgModule,
|
|
@@ -5054,7 +5159,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5054
5159
|
MonkeyStyleGuideModule,
|
|
5055
5160
|
ServiceWorkerModule.register('ngsw-worker.js'),
|
|
5056
5161
|
ClosedToMaintenanceModule,
|
|
5057
|
-
VersionChangedModule
|
|
5162
|
+
VersionChangedModule,
|
|
5163
|
+
AlertsModule
|
|
5058
5164
|
],
|
|
5059
5165
|
providers: [
|
|
5060
5166
|
MonkeyStyleGuideModalService,
|
|
@@ -5072,5 +5178,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5072
5178
|
* Generated bundle index. Do not edit.
|
|
5073
5179
|
*/
|
|
5074
5180
|
|
|
5075
|
-
export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
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 };
|
|
5076
5182
|
//# sourceMappingURL=monkey-front-core.mjs.map
|