monkey-front-core 0.0.294 → 0.0.296
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/core/interfaces/index.mjs +10 -9
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-storage.mjs +2 -0
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +9 -10
- package/esm2020/lib/core/services/config/monkeyecx-gtm-config.service.mjs +51 -0
- package/esm2020/lib/store/actions/index.mjs +2 -0
- package/esm2020/lib/store/actions/monkeyecx-storage.actions.mjs +8 -0
- package/esm2020/lib/store/index.mjs +3 -0
- package/esm2020/lib/store/reducers/index.mjs +3 -0
- package/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +18 -0
- package/esm2020/lib/store/reducers/monkeyecx-storage.reducer.mjs +40 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/monkey-front-core.mjs +148 -62
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +158 -62
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/index.d.ts +9 -8
- package/lib/core/interfaces/monkeyecx-config.d.ts +2 -2
- package/lib/core/interfaces/monkeyecx-storage.d.ts +38 -0
- package/lib/core/services/config/monkeyecx-config.service.d.ts +10 -10
- package/lib/core/services/config/monkeyecx-gtm-config.service.d.ts +9 -0
- package/lib/store/actions/index.d.ts +1 -0
- package/lib/store/actions/monkeyecx-storage.actions.d.ts +23 -0
- package/lib/store/index.d.ts +2 -0
- package/lib/store/reducers/index.d.ts +2 -0
- package/lib/store/reducers/monkeyecx-seeder.reducer.d.ts +2 -0
- package/lib/store/reducers/monkeyecx-storage.reducer.d.ts +13 -0
- package/monkey-front-core-0.0.296.tgz +0 -0
- package/package.json +7 -3
- package/public-api.d.ts +1 -0
- package/esm2020/lib/core/services/config/monkeyecx-ga-config.service.mjs +0 -57
- package/lib/core/services/config/monkeyecx-ga-config.service.d.ts +0 -10
- package/monkey-front-core-0.0.294.tgz +0 -0
|
@@ -13,17 +13,19 @@ import { throwError, BehaviorSubject, Subscription, interval, concat, of, Subjec
|
|
|
13
13
|
import * as i1$3 from '@angular/common/http';
|
|
14
14
|
import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
15
15
|
import * as i2$1 from '@angular/platform-browser';
|
|
16
|
-
import * as
|
|
16
|
+
import * as i2$2 from '@angular/router';
|
|
17
17
|
import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
|
|
18
18
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
19
19
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
20
|
-
import * as i1$
|
|
20
|
+
import * as i1$4 from '@angular/cdk/overlay';
|
|
21
21
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
22
22
|
import { __decorate } from 'tslib';
|
|
23
23
|
import { datadogRum } from '@datadog/browser-rum';
|
|
24
|
-
import * as i1$
|
|
24
|
+
import * as i1$5 from '@angular/service-worker';
|
|
25
25
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
26
26
|
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
27
|
+
import { createAction, props, createReducer, on } from '@ngrx/store';
|
|
28
|
+
import { createEntityAdapter } from '@ngrx/entity';
|
|
27
29
|
|
|
28
30
|
class AlertsComponent {
|
|
29
31
|
constructor(modalService) {
|
|
@@ -1628,14 +1630,14 @@ class MonkeyEcxProgressBarService {
|
|
|
1628
1630
|
return this.visible?.asObservable() || null;
|
|
1629
1631
|
}
|
|
1630
1632
|
}
|
|
1631
|
-
MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token:
|
|
1633
|
+
MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i2$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1632
1634
|
MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
|
|
1633
1635
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, decorators: [{
|
|
1634
1636
|
type: Injectable,
|
|
1635
1637
|
args: [{
|
|
1636
1638
|
providedIn: 'root'
|
|
1637
1639
|
}]
|
|
1638
|
-
}], ctorParameters: function () { return [{ type:
|
|
1640
|
+
}], ctorParameters: function () { return [{ type: i2$2.Router }]; } });
|
|
1639
1641
|
|
|
1640
1642
|
class MonkeyEcxProgressBarComponent {
|
|
1641
1643
|
constructor(progressBarService) {
|
|
@@ -2387,14 +2389,14 @@ class MonkeyEcxPopoverDirective {
|
|
|
2387
2389
|
this.eventsSubs.unsubscribe();
|
|
2388
2390
|
}
|
|
2389
2391
|
}
|
|
2390
|
-
MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$
|
|
2392
|
+
MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.Overlay }, { token: i1$4.OverlayPositionBuilder }, { token: i2$2.Router }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2391
2393
|
MonkeyEcxPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxPopoverDirective, selector: "[monkeyecxPopover]", inputs: { popover: ["monkeyecxPopover", "popover"], closed: ["monkeyecxPopoverClosed", "closed"], target: ["monkeyecxPopoverTarget", "target"], minwidth: ["monkeyecxPopoverMinwidth", "minwidth"], backdrop: ["monkeyecxPopoverBackdrop", "backdrop"], watch: ["monkeyecxPopoverWatch", "watch"], dir: ["monkeyecxPopoverDir", "dir"], contextmenu: ["monkeyecxPopoverContextmenu", "contextmenu"], height: ["monkeyecxPopoverHeight", "height"] }, ngImport: i0 });
|
|
2392
2394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, decorators: [{
|
|
2393
2395
|
type: Directive,
|
|
2394
2396
|
args: [{
|
|
2395
2397
|
selector: '[monkeyecxPopover]'
|
|
2396
2398
|
}]
|
|
2397
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$
|
|
2399
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.Overlay }, { type: i1$4.OverlayPositionBuilder }, { type: i2$2.Router }, { type: undefined, decorators: [{
|
|
2398
2400
|
type: Inject,
|
|
2399
2401
|
args: [POPOVER_OPTIONS]
|
|
2400
2402
|
}, {
|
|
@@ -3121,14 +3123,14 @@ class MonkeyEcxServiceWorkerConfigService {
|
|
|
3121
3123
|
this.verify();
|
|
3122
3124
|
}
|
|
3123
3125
|
}
|
|
3124
|
-
MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$
|
|
3126
|
+
MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$5.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3125
3127
|
MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
|
|
3126
3128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
|
|
3127
3129
|
type: Injectable,
|
|
3128
3130
|
args: [{
|
|
3129
3131
|
providedIn: 'root'
|
|
3130
3132
|
}]
|
|
3131
|
-
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$
|
|
3133
|
+
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$5.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
|
|
3132
3134
|
|
|
3133
3135
|
/* eslint-disable no-console */
|
|
3134
3136
|
class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
|
|
@@ -3191,14 +3193,14 @@ class MonkeyEcxMaintenanceConfigService {
|
|
|
3191
3193
|
this.handleValidation(config);
|
|
3192
3194
|
}
|
|
3193
3195
|
}
|
|
3194
|
-
MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token:
|
|
3196
|
+
MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i2$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3195
3197
|
MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
|
|
3196
3198
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
|
|
3197
3199
|
type: Injectable,
|
|
3198
3200
|
args: [{
|
|
3199
3201
|
providedIn: 'root'
|
|
3200
3202
|
}]
|
|
3201
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type:
|
|
3203
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2$2.Router }]; } });
|
|
3202
3204
|
|
|
3203
3205
|
class MonkeyEcxFeatureToggleService {
|
|
3204
3206
|
constructor() {
|
|
@@ -3271,58 +3273,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3271
3273
|
}]
|
|
3272
3274
|
}], ctorParameters: function () { return []; } });
|
|
3273
3275
|
|
|
3274
|
-
/* eslint-disable
|
|
3275
|
-
class
|
|
3276
|
-
constructor(
|
|
3277
|
-
this.rt = rt;
|
|
3276
|
+
/* eslint-disable no-console */
|
|
3277
|
+
class MonkeyEcxGTMConfigService {
|
|
3278
|
+
constructor() {
|
|
3278
3279
|
// not to do
|
|
3279
3280
|
}
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
window.gtag ||
|
|
3288
|
-
function gtag() {
|
|
3289
|
-
window.dataLayer.push(arguments);
|
|
3290
|
-
};
|
|
3291
|
-
window.gtag('js', new Date());
|
|
3292
|
-
window.gtag('config', key);
|
|
3293
|
-
};
|
|
3294
|
-
const pageChangeAction = () => {
|
|
3295
|
-
this.rt.events.subscribe((event) => {
|
|
3296
|
-
if (event instanceof NavigationEnd) {
|
|
3297
|
-
window.gtag('set', 'page_path', event.url);
|
|
3298
|
-
window.gtag('event', 'page_view');
|
|
3299
|
-
}
|
|
3300
|
-
});
|
|
3301
|
-
};
|
|
3281
|
+
handleCode(key) {
|
|
3282
|
+
try {
|
|
3283
|
+
window.dataLayer = window.dataLayer || [];
|
|
3284
|
+
window.dataLayer.push({
|
|
3285
|
+
'gtm.start': new Date().getTime(),
|
|
3286
|
+
event: 'gtm.js'
|
|
3287
|
+
});
|
|
3302
3288
|
const head = document.querySelector('head');
|
|
3303
3289
|
const script = document.createElement('script');
|
|
3304
3290
|
script.async = true;
|
|
3305
|
-
script.
|
|
3306
|
-
script.src = `//www.googletagmanager.com/gtag/js?id=${key}`;
|
|
3307
|
-
script.onload = () => {
|
|
3308
|
-
action();
|
|
3309
|
-
pageChangeAction();
|
|
3310
|
-
};
|
|
3311
|
-
script.onerror = () => {
|
|
3312
|
-
head?.removeChild(script);
|
|
3313
|
-
};
|
|
3291
|
+
script.src = `https://www.googletagmanager.com/gtm.js?id=GTM-${key}`;
|
|
3314
3292
|
head?.appendChild(script);
|
|
3293
|
+
const body = document.querySelector('body');
|
|
3294
|
+
const noscript = document.createElement('noscript');
|
|
3295
|
+
const iframe = document.createElement('iframe');
|
|
3296
|
+
iframe.src = `https://www.googletagmanager.com/ns.html?id=GTM-${key}`;
|
|
3297
|
+
iframe.height = '0';
|
|
3298
|
+
iframe.width = '0';
|
|
3299
|
+
iframe.style.display = 'none';
|
|
3300
|
+
iframe.style.visibility = 'hidden';
|
|
3301
|
+
noscript.appendChild(iframe);
|
|
3302
|
+
body?.appendChild(noscript);
|
|
3303
|
+
}
|
|
3304
|
+
catch (e) {
|
|
3305
|
+
console.error('GTM Configuration Error!');
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
apply(params, environment) {
|
|
3309
|
+
const { gtm } = params;
|
|
3310
|
+
const { enabled, key } = gtm || { enabled: false, key: '' };
|
|
3311
|
+
if (enabled && environment.environment !== 'dev') {
|
|
3312
|
+
this.handleCode(key);
|
|
3315
3313
|
}
|
|
3316
3314
|
}
|
|
3317
3315
|
}
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
3316
|
+
MonkeyEcxGTMConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3317
|
+
MonkeyEcxGTMConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, providedIn: 'root' });
|
|
3318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, decorators: [{
|
|
3321
3319
|
type: Injectable,
|
|
3322
3320
|
args: [{
|
|
3323
3321
|
providedIn: 'root'
|
|
3324
3322
|
}]
|
|
3325
|
-
}], ctorParameters: function () { return [
|
|
3323
|
+
}], ctorParameters: function () { return []; } });
|
|
3326
3324
|
|
|
3327
3325
|
const moment = moment_;
|
|
3328
3326
|
class MonkeyEcxAlertsConfigService {
|
|
@@ -3360,7 +3358,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3360
3358
|
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalFixedService }]; } });
|
|
3361
3359
|
|
|
3362
3360
|
class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
3363
|
-
constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService,
|
|
3361
|
+
constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGTMConfigService, monkeyEcxAlertsConfigService) {
|
|
3364
3362
|
super(monkeyecxService);
|
|
3365
3363
|
this.monkeyecxi18nConfigService = monkeyecxi18nConfigService;
|
|
3366
3364
|
this.monkeyecxLogsConfigService = monkeyecxLogsConfigService;
|
|
@@ -3370,7 +3368,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3370
3368
|
this.monkeyecxMaintenanceConfigService = monkeyecxMaintenanceConfigService;
|
|
3371
3369
|
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
3372
3370
|
this.monkeyEcxFeatureToggleService = monkeyEcxFeatureToggleService;
|
|
3373
|
-
this.
|
|
3371
|
+
this.monkeyGTMConfigService = monkeyGTMConfigService;
|
|
3374
3372
|
this.monkeyEcxAlertsConfigService = monkeyEcxAlertsConfigService;
|
|
3375
3373
|
this.configSubject$ = new BehaviorSubject({});
|
|
3376
3374
|
this.configBootstrapSubject$ = new BehaviorSubject({});
|
|
@@ -3385,7 +3383,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3385
3383
|
callback(configBootstrap);
|
|
3386
3384
|
}
|
|
3387
3385
|
getWhiteLabelSettings(monkeyecxCode, configBootstrap, callback, environment, identifyCode) {
|
|
3388
|
-
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService,
|
|
3386
|
+
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, monkeyGTMConfigService, monkeyEcxAlertsConfigService, internalValidations } = this;
|
|
3389
3387
|
const url = `${environment.urlAssets}/${monkeyecxCode.toLowerCase()}`;
|
|
3390
3388
|
monkeyecxService
|
|
3391
3389
|
?.get(`${url}/white-label.json`)
|
|
@@ -3393,7 +3391,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3393
3391
|
monkeyecxi18nConfigService.apply(config, environment);
|
|
3394
3392
|
monkeyecxLogsConfigService.apply(config, configBootstrap, environment, identifyCode);
|
|
3395
3393
|
monkeyEcxFeatureToggleService.apply(configSubject$, environment);
|
|
3396
|
-
|
|
3394
|
+
monkeyGTMConfigService.apply(config, environment);
|
|
3397
3395
|
monkeyEcxAlertsConfigService.apply(config);
|
|
3398
3396
|
monkeyStyleGuideSettingsService.bootstrap(`${url}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBootstrap, callback, environment));
|
|
3399
3397
|
configSubject$.next(config);
|
|
@@ -3433,7 +3431,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
3433
3431
|
return this.configBootstrapSubject$.asObservable();
|
|
3434
3432
|
}
|
|
3435
3433
|
}
|
|
3436
|
-
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:
|
|
3434
|
+
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: MonkeyEcxGTMConfigService }, { token: MonkeyEcxAlertsConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3437
3435
|
MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
|
|
3438
3436
|
__decorate([
|
|
3439
3437
|
MonkeyEcxCoreService({
|
|
@@ -3450,7 +3448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3450
3448
|
args: [{
|
|
3451
3449
|
providedIn: 'root'
|
|
3452
3450
|
}]
|
|
3453
|
-
}], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxi18nConfigService }, { type: MonkeyEcxLogsConfigService }, { type: i1.MonkeyStyleGuideSettingsService }, { type: MonkeyEcxServiceWorkerConfigService }, { type: MonkeyEcxSecurityConsoleConfigService }, { type: MonkeyEcxMaintenanceConfigService }, { type: MonkeyEcxErrorConfigService }, { type: MonkeyEcxFeatureToggleService }, { type:
|
|
3451
|
+
}], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxi18nConfigService }, { type: MonkeyEcxLogsConfigService }, { type: i1.MonkeyStyleGuideSettingsService }, { type: MonkeyEcxServiceWorkerConfigService }, { type: MonkeyEcxSecurityConsoleConfigService }, { type: MonkeyEcxMaintenanceConfigService }, { type: MonkeyEcxErrorConfigService }, { type: MonkeyEcxFeatureToggleService }, { type: MonkeyEcxGTMConfigService }, { type: MonkeyEcxAlertsConfigService }]; }, propDecorators: { init: [] } });
|
|
3454
3452
|
|
|
3455
3453
|
class MonkeyEcxTokenStorageService {
|
|
3456
3454
|
constructor(monkeyecxConfigService) {
|
|
@@ -4156,14 +4154,14 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
4156
4154
|
}
|
|
4157
4155
|
}
|
|
4158
4156
|
}
|
|
4159
|
-
MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxTokenStorageService }, { token: MonkeyEcxAuthenticationService }, { token:
|
|
4157
|
+
MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxTokenStorageService }, { token: MonkeyEcxAuthenticationService }, { token: i2$2.Router }, { token: i1.MonkeyStyleGuideSnackbarService }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4160
4158
|
MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, providedIn: 'root' });
|
|
4161
4159
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, decorators: [{
|
|
4162
4160
|
type: Injectable,
|
|
4163
4161
|
args: [{
|
|
4164
4162
|
providedIn: 'root'
|
|
4165
4163
|
}]
|
|
4166
|
-
}], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxTokenStorageService }, { type: MonkeyEcxAuthenticationService }, { type:
|
|
4164
|
+
}], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxTokenStorageService }, { type: MonkeyEcxAuthenticationService }, { type: i2$2.Router }, { type: i1.MonkeyStyleGuideSnackbarService }, { type: i1$1.TranslateService }]; } });
|
|
4167
4165
|
|
|
4168
4166
|
class MonkeyEcxOthersErrorsHandlingService {
|
|
4169
4167
|
constructor(modalService) {
|
|
@@ -4716,14 +4714,14 @@ class MonkeyEcxDiscoveryParamsService {
|
|
|
4716
4714
|
return found;
|
|
4717
4715
|
}
|
|
4718
4716
|
}
|
|
4719
|
-
MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token:
|
|
4717
|
+
MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i2$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4720
4718
|
MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
|
|
4721
4719
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
|
|
4722
4720
|
type: Injectable,
|
|
4723
4721
|
args: [{
|
|
4724
4722
|
providedIn: 'root'
|
|
4725
4723
|
}]
|
|
4726
|
-
}], ctorParameters: function () { return [{ type:
|
|
4724
|
+
}], ctorParameters: function () { return [{ type: i2$2.Router }]; } });
|
|
4727
4725
|
|
|
4728
4726
|
class MonkeyEcxRequestScheduleService {
|
|
4729
4727
|
constructor(monkeyecxService, monkeyLoggedHandlingService) {
|
|
@@ -5380,7 +5378,7 @@ class MonkeyFrontCoreModule {
|
|
|
5380
5378
|
}
|
|
5381
5379
|
MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5382
5380
|
MonkeyFrontCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, imports: [CommonModule,
|
|
5383
|
-
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$
|
|
5381
|
+
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$5.ServiceWorkerModule, ClosedToMaintenanceModule,
|
|
5384
5382
|
VersionChangedModule,
|
|
5385
5383
|
AlertsModule,
|
|
5386
5384
|
CurrencyConfigModule] });
|
|
@@ -5427,6 +5425,104 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5427
5425
|
}]
|
|
5428
5426
|
}] });
|
|
5429
5427
|
|
|
5428
|
+
const clear = createAction('[MECX Core Storage] Clear All');
|
|
5429
|
+
const create = createAction('[MECX Core Storage] Create', props());
|
|
5430
|
+
const updateControl = createAction('[MECX Core Storage] Update Control', props());
|
|
5431
|
+
const updateOne = createAction('[MECX Core Storage] Update One', props());
|
|
5432
|
+
const deleteOne = createAction('[MECX Core Storage] Delete One', props());
|
|
5433
|
+
|
|
5434
|
+
var monkeyecxStorage_actions = /*#__PURE__*/Object.freeze({
|
|
5435
|
+
__proto__: null,
|
|
5436
|
+
clear: clear,
|
|
5437
|
+
create: create,
|
|
5438
|
+
updateControl: updateControl,
|
|
5439
|
+
updateOne: updateOne,
|
|
5440
|
+
deleteOne: deleteOne
|
|
5441
|
+
});
|
|
5442
|
+
|
|
5443
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
5444
|
+
__proto__: null,
|
|
5445
|
+
monkeyecxStorage: monkeyecxStorage_actions
|
|
5446
|
+
});
|
|
5447
|
+
|
|
5448
|
+
const hydrationMetaReducer = (reducer) => {
|
|
5449
|
+
return (state, action) => {
|
|
5450
|
+
/* if (action.type === INIT || action.type === UPDATE) {
|
|
5451
|
+
const storageValue = localStorage.getItem('state');
|
|
5452
|
+
if (storageValue) {
|
|
5453
|
+
try {
|
|
5454
|
+
return JSON.parse(storageValue);
|
|
5455
|
+
} catch {
|
|
5456
|
+
localStorage.removeItem('state');
|
|
5457
|
+
}
|
|
5458
|
+
}
|
|
5459
|
+
} */
|
|
5460
|
+
const nextState = reducer(state, action);
|
|
5461
|
+
localStorage.setItem('state', JSON.stringify(nextState));
|
|
5462
|
+
return nextState;
|
|
5463
|
+
};
|
|
5464
|
+
};
|
|
5465
|
+
|
|
5466
|
+
var monkeyecxSeeder_reducer = /*#__PURE__*/Object.freeze({
|
|
5467
|
+
__proto__: null,
|
|
5468
|
+
hydrationMetaReducer: hydrationMetaReducer
|
|
5469
|
+
});
|
|
5470
|
+
|
|
5471
|
+
const featureKey = 'mecx-core-storage';
|
|
5472
|
+
const adapter = createEntityAdapter({
|
|
5473
|
+
selectId: (item) => {
|
|
5474
|
+
return item.username;
|
|
5475
|
+
}
|
|
5476
|
+
});
|
|
5477
|
+
const initialState = adapter.getInitialState({
|
|
5478
|
+
control: {
|
|
5479
|
+
isLoading: false
|
|
5480
|
+
},
|
|
5481
|
+
error: null
|
|
5482
|
+
});
|
|
5483
|
+
const reducer = createReducer(initialState, on(clear, (state) => {
|
|
5484
|
+
return adapter.removeAll(state);
|
|
5485
|
+
}), on(create, (state, action) => {
|
|
5486
|
+
return adapter.upsertMany(action.data, {
|
|
5487
|
+
...state
|
|
5488
|
+
});
|
|
5489
|
+
}), on(updateControl, (state, action) => {
|
|
5490
|
+
return {
|
|
5491
|
+
...state,
|
|
5492
|
+
control: {
|
|
5493
|
+
...state.control,
|
|
5494
|
+
...action.data
|
|
5495
|
+
}
|
|
5496
|
+
};
|
|
5497
|
+
}), on(updateOne, (state, action) => {
|
|
5498
|
+
const { username } = action.data;
|
|
5499
|
+
return adapter.upsertOne({ ...action.data, username }, {
|
|
5500
|
+
...state
|
|
5501
|
+
});
|
|
5502
|
+
}), on(deleteOne, (state, action) => {
|
|
5503
|
+
const { username } = action.data;
|
|
5504
|
+
return adapter.removeOne(username, state);
|
|
5505
|
+
}));
|
|
5506
|
+
const { selectAll, selectEntities, selectIds, selectTotal } = adapter.getSelectors();
|
|
5507
|
+
|
|
5508
|
+
var monkeyecxStorage_reducer = /*#__PURE__*/Object.freeze({
|
|
5509
|
+
__proto__: null,
|
|
5510
|
+
featureKey: featureKey,
|
|
5511
|
+
adapter: adapter,
|
|
5512
|
+
initialState: initialState,
|
|
5513
|
+
reducer: reducer,
|
|
5514
|
+
selectAll: selectAll,
|
|
5515
|
+
selectEntities: selectEntities,
|
|
5516
|
+
selectIds: selectIds,
|
|
5517
|
+
selectTotal: selectTotal
|
|
5518
|
+
});
|
|
5519
|
+
|
|
5520
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
5521
|
+
__proto__: null,
|
|
5522
|
+
fromMonkeyecxSeeder: monkeyecxSeeder_reducer,
|
|
5523
|
+
fromMonkeyecxStorage: monkeyecxStorage_reducer
|
|
5524
|
+
});
|
|
5525
|
+
|
|
5430
5526
|
/*
|
|
5431
5527
|
* Public API Surface of monkey-front-core
|
|
5432
5528
|
*/
|
|
@@ -5435,5 +5531,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5435
5531
|
* Generated bundle index. Do not edit.
|
|
5436
5532
|
*/
|
|
5437
5533
|
|
|
5438
|
-
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAlertsService, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxCurrencyConfigService, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
5534
|
+
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAlertsService, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxCurrencyConfigService, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, index$1 as actions, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, index as reducers, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
5439
5535
|
//# sourceMappingURL=monkey-front-core.mjs.map
|