monkey-front-core 0.0.302 → 0.0.304
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/services/storage/monkeyecx-token-storage.service.mjs +59 -13
- package/esm2020/lib/store/actions/monkeyecx-storage.actions.mjs +3 -3
- package/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +6 -6
- package/fesm2015/monkey-front-core.mjs +184 -149
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +211 -167
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +4 -2
- package/lib/store/actions/monkeyecx-storage.actions.d.ts +6 -6
- package/monkey-front-core-0.0.304.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.302.tgz +0 -0
|
@@ -19,14 +19,14 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
|
19
19
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
20
20
|
import * as i1$4 from '@angular/cdk/overlay';
|
|
21
21
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
22
|
+
import * as i2$3 from '@ngrx/store';
|
|
23
|
+
import { createAction, props, INIT, UPDATE, createReducer, on, createFeatureSelector, createSelector, StoreModule } from '@ngrx/store';
|
|
24
|
+
import { createEntityAdapter } from '@ngrx/entity';
|
|
22
25
|
import { __awaiter, __decorate } from 'tslib';
|
|
23
26
|
import { datadogRum } from '@datadog/browser-rum';
|
|
24
27
|
import * as i1$5 from '@angular/service-worker';
|
|
25
28
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
26
29
|
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
27
|
-
import * as i6 from '@ngrx/store';
|
|
28
|
-
import { createAction, props, INIT, UPDATE, createReducer, on, createFeatureSelector, createSelector, StoreModule } from '@ngrx/store';
|
|
29
|
-
import { createEntityAdapter } from '@ngrx/entity';
|
|
30
30
|
|
|
31
31
|
class AlertsComponent {
|
|
32
32
|
constructor(modalService) {
|
|
@@ -2453,6 +2453,142 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2453
2453
|
args: ['monkeyecxPopoverHeight']
|
|
2454
2454
|
}] } });
|
|
2455
2455
|
|
|
2456
|
+
const clear = createAction('[MECX Core Storage] Clear All');
|
|
2457
|
+
const create = createAction('[MECX Core Storage] Create', props());
|
|
2458
|
+
const deleteOne = createAction('[MECX Core Storage] Delete One', props());
|
|
2459
|
+
const updateControl = createAction('[MECX Core Storage] Update Control', props());
|
|
2460
|
+
const updateOne = createAction('[MECX Core Storage] Update One', props());
|
|
2461
|
+
|
|
2462
|
+
var monkeyecxStorage_actions = /*#__PURE__*/Object.freeze({
|
|
2463
|
+
__proto__: null,
|
|
2464
|
+
clear: clear,
|
|
2465
|
+
create: create,
|
|
2466
|
+
deleteOne: deleteOne,
|
|
2467
|
+
updateControl: updateControl,
|
|
2468
|
+
updateOne: updateOne
|
|
2469
|
+
});
|
|
2470
|
+
|
|
2471
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
2472
|
+
__proto__: null,
|
|
2473
|
+
monkeyecxStorage: monkeyecxStorage_actions
|
|
2474
|
+
});
|
|
2475
|
+
|
|
2476
|
+
const seederReducer = (keys) => {
|
|
2477
|
+
return (reducer) => {
|
|
2478
|
+
return (state, action) => {
|
|
2479
|
+
const handledState = reducer(state, action);
|
|
2480
|
+
if (action.type === INIT || action.type === UPDATE) {
|
|
2481
|
+
const storageValue = localStorage.getItem('mecx-store');
|
|
2482
|
+
if (storageValue) {
|
|
2483
|
+
try {
|
|
2484
|
+
const handled = Object.assign(Object.assign({}, handledState), JSON.parse(atob(storageValue)));
|
|
2485
|
+
return handled;
|
|
2486
|
+
}
|
|
2487
|
+
catch (_a) {
|
|
2488
|
+
localStorage.removeItem('mecx-store');
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
let data = handledState;
|
|
2493
|
+
try {
|
|
2494
|
+
keys.forEach((key) => {
|
|
2495
|
+
data = Object.assign(Object.assign({}, data), { [key]: handledState[key] });
|
|
2496
|
+
});
|
|
2497
|
+
localStorage.setItem('mecx-store', btoa(JSON.stringify(data)));
|
|
2498
|
+
}
|
|
2499
|
+
catch (e) {
|
|
2500
|
+
localStorage.removeItem('mecx-store');
|
|
2501
|
+
}
|
|
2502
|
+
return data || handledState;
|
|
2503
|
+
};
|
|
2504
|
+
};
|
|
2505
|
+
};
|
|
2506
|
+
|
|
2507
|
+
var monkeyecxSeeder_reducer = /*#__PURE__*/Object.freeze({
|
|
2508
|
+
__proto__: null,
|
|
2509
|
+
seederReducer: seederReducer
|
|
2510
|
+
});
|
|
2511
|
+
|
|
2512
|
+
const featureKey = 'mecx-core-storage';
|
|
2513
|
+
const adapter = createEntityAdapter({
|
|
2514
|
+
selectId: (item) => {
|
|
2515
|
+
return item.username;
|
|
2516
|
+
}
|
|
2517
|
+
});
|
|
2518
|
+
const initialState = adapter.getInitialState({
|
|
2519
|
+
control: {
|
|
2520
|
+
isLoading: false
|
|
2521
|
+
},
|
|
2522
|
+
error: null
|
|
2523
|
+
});
|
|
2524
|
+
const reducer = createReducer(initialState, on(clear, (state) => {
|
|
2525
|
+
return adapter.removeAll(state);
|
|
2526
|
+
}), on(create, (state, action) => {
|
|
2527
|
+
return adapter.upsertMany(action.data, Object.assign({}, state));
|
|
2528
|
+
}), on(updateControl, (state, action) => {
|
|
2529
|
+
return Object.assign(Object.assign({}, state), { control: Object.assign(Object.assign({}, state.control), action.data) });
|
|
2530
|
+
}), on(updateOne, (state, action) => {
|
|
2531
|
+
const { username } = action.data;
|
|
2532
|
+
return adapter.upsertOne(Object.assign(Object.assign({}, action.data), { username }), Object.assign({}, state));
|
|
2533
|
+
}), on(deleteOne, (state, action) => {
|
|
2534
|
+
const { username } = action.data;
|
|
2535
|
+
return adapter.removeOne(username, state);
|
|
2536
|
+
}));
|
|
2537
|
+
const { selectAll: selectAll$1, selectEntities, selectIds, selectTotal } = adapter.getSelectors();
|
|
2538
|
+
|
|
2539
|
+
var monkeyecxStorage_reducer = /*#__PURE__*/Object.freeze({
|
|
2540
|
+
__proto__: null,
|
|
2541
|
+
featureKey: featureKey,
|
|
2542
|
+
adapter: adapter,
|
|
2543
|
+
initialState: initialState,
|
|
2544
|
+
reducer: reducer,
|
|
2545
|
+
selectAll: selectAll$1,
|
|
2546
|
+
selectEntities: selectEntities,
|
|
2547
|
+
selectIds: selectIds,
|
|
2548
|
+
selectTotal: selectTotal
|
|
2549
|
+
});
|
|
2550
|
+
|
|
2551
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
2552
|
+
__proto__: null,
|
|
2553
|
+
fromMonkeyecxSeeder: monkeyecxSeeder_reducer,
|
|
2554
|
+
fromMonkeyecxStorage: monkeyecxStorage_reducer
|
|
2555
|
+
});
|
|
2556
|
+
|
|
2557
|
+
const selectState = createFeatureSelector(featureKey);
|
|
2558
|
+
const selectAll = createSelector(selectState, selectAll$1);
|
|
2559
|
+
const select = (props) => {
|
|
2560
|
+
return createSelector(selectAll, (entities) => {
|
|
2561
|
+
return entities.filter((_) => {
|
|
2562
|
+
return _.username === props.username;
|
|
2563
|
+
});
|
|
2564
|
+
});
|
|
2565
|
+
};
|
|
2566
|
+
const selectControl = () => {
|
|
2567
|
+
return createSelector(selectState, (state) => {
|
|
2568
|
+
return state.control;
|
|
2569
|
+
});
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2572
|
+
var monkeyecxStorage_selector = /*#__PURE__*/Object.freeze({
|
|
2573
|
+
__proto__: null,
|
|
2574
|
+
selectState: selectState,
|
|
2575
|
+
selectAll: selectAll,
|
|
2576
|
+
select: select,
|
|
2577
|
+
selectControl: selectControl
|
|
2578
|
+
});
|
|
2579
|
+
|
|
2580
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
2581
|
+
__proto__: null,
|
|
2582
|
+
monkeyecxStorage: monkeyecxStorage_selector
|
|
2583
|
+
});
|
|
2584
|
+
|
|
2585
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
2586
|
+
__proto__: null,
|
|
2587
|
+
actions: index$3,
|
|
2588
|
+
reducers: index$2,
|
|
2589
|
+
selectors: index$1
|
|
2590
|
+
});
|
|
2591
|
+
|
|
2456
2592
|
class MonkeyEcxRequestPagedHandling {
|
|
2457
2593
|
constructor(url, pagedParams, links, samePage = false) {
|
|
2458
2594
|
this.samePage = false;
|
|
@@ -3462,8 +3598,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3462
3598
|
}], 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: [] } });
|
|
3463
3599
|
|
|
3464
3600
|
class MonkeyEcxTokenStorageService {
|
|
3465
|
-
constructor(monkeyecxConfigService) {
|
|
3601
|
+
constructor(monkeyecxConfigService, store) {
|
|
3466
3602
|
this.monkeyecxConfigService = monkeyecxConfigService;
|
|
3603
|
+
this.store = store;
|
|
3467
3604
|
this.config = null;
|
|
3468
3605
|
this.token = {
|
|
3469
3606
|
username: '',
|
|
@@ -3480,8 +3617,8 @@ class MonkeyEcxTokenStorageService {
|
|
|
3480
3617
|
role: '',
|
|
3481
3618
|
ownerGovernmentId: '',
|
|
3482
3619
|
_clearIgnore: {
|
|
3483
|
-
ignore: ['username', 'program', 'accessType']
|
|
3484
|
-
}
|
|
3620
|
+
ignore: ['username', 'program', 'accessType']
|
|
3621
|
+
}
|
|
3485
3622
|
};
|
|
3486
3623
|
this.token$ = new BehaviorSubject(null);
|
|
3487
3624
|
this.me$ = new BehaviorSubject(null);
|
|
@@ -3490,12 +3627,20 @@ class MonkeyEcxTokenStorageService {
|
|
|
3490
3627
|
});
|
|
3491
3628
|
}
|
|
3492
3629
|
setAllTokens(token) {
|
|
3493
|
-
const { token
|
|
3630
|
+
const { token$, store } = this;
|
|
3494
3631
|
Object.entries(token).forEach(([key, value]) => {
|
|
3495
3632
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
|
|
3496
3633
|
localStorage.setItem(key, value);
|
|
3497
3634
|
}
|
|
3498
3635
|
});
|
|
3636
|
+
const username = token.username || localStorage.getItem('username');
|
|
3637
|
+
if (username) {
|
|
3638
|
+
store.dispatch(create({
|
|
3639
|
+
data: [
|
|
3640
|
+
Object.assign({ username }, token)
|
|
3641
|
+
]
|
|
3642
|
+
}));
|
|
3643
|
+
}
|
|
3499
3644
|
token$.next(token);
|
|
3500
3645
|
}
|
|
3501
3646
|
getAllTokens() {
|
|
@@ -3511,13 +3656,24 @@ class MonkeyEcxTokenStorageService {
|
|
|
3511
3656
|
return handledToken;
|
|
3512
3657
|
}
|
|
3513
3658
|
setAllMe(me) {
|
|
3514
|
-
const { me
|
|
3659
|
+
const { me$, store } = this;
|
|
3515
3660
|
let previousMe = JSON.parse((localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem('me')) || '{}');
|
|
3516
3661
|
Object.entries(me).forEach(([key, value]) => {
|
|
3517
3662
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
|
|
3518
3663
|
previousMe = Object.assign(Object.assign({}, previousMe), { [key]: value });
|
|
3519
3664
|
}
|
|
3520
3665
|
});
|
|
3666
|
+
const username = me.username || localStorage.getItem('username');
|
|
3667
|
+
if (username) {
|
|
3668
|
+
store.dispatch(create({
|
|
3669
|
+
data: [
|
|
3670
|
+
{
|
|
3671
|
+
username,
|
|
3672
|
+
me
|
|
3673
|
+
}
|
|
3674
|
+
]
|
|
3675
|
+
}));
|
|
3676
|
+
}
|
|
3521
3677
|
localStorage.setItem('me', JSON.stringify(previousMe));
|
|
3522
3678
|
me$.next(previousMe);
|
|
3523
3679
|
}
|
|
@@ -3544,7 +3700,7 @@ class MonkeyEcxTokenStorageService {
|
|
|
3544
3700
|
this.setAllMe(me);
|
|
3545
3701
|
}
|
|
3546
3702
|
clear(force) {
|
|
3547
|
-
const { token } = this;
|
|
3703
|
+
const { token, store } = this;
|
|
3548
3704
|
try {
|
|
3549
3705
|
Object.entries(token || {}).forEach(([key, value]) => {
|
|
3550
3706
|
var _a;
|
|
@@ -3556,6 +3712,10 @@ class MonkeyEcxTokenStorageService {
|
|
|
3556
3712
|
}
|
|
3557
3713
|
});
|
|
3558
3714
|
localStorage.removeItem('me');
|
|
3715
|
+
const username = localStorage.getItem('username');
|
|
3716
|
+
if (username) {
|
|
3717
|
+
store.dispatch(deleteOne({ data: { username } }));
|
|
3718
|
+
}
|
|
3559
3719
|
}
|
|
3560
3720
|
catch (error) {
|
|
3561
3721
|
return of(false);
|
|
@@ -3566,19 +3726,30 @@ class MonkeyEcxTokenStorageService {
|
|
|
3566
3726
|
* @param fields (the name of fields you want to clear. ie: ['companyId', 'role', ...])
|
|
3567
3727
|
*/
|
|
3568
3728
|
clearCredentials(fields = ['companyId', 'governmentId', 'companyType', 'programAdmin', 'role']) {
|
|
3729
|
+
const { store } = this;
|
|
3730
|
+
let obj = null;
|
|
3569
3731
|
fields === null || fields === void 0 ? void 0 : fields.forEach((key) => {
|
|
3732
|
+
obj = Object.assign(Object.assign({}, obj), { [key]: null });
|
|
3570
3733
|
localStorage.removeItem(key);
|
|
3571
3734
|
});
|
|
3735
|
+
const username = localStorage.getItem('username');
|
|
3736
|
+
if (username) {
|
|
3737
|
+
store.dispatch(create({
|
|
3738
|
+
data: [
|
|
3739
|
+
Object.assign({ username }, obj)
|
|
3740
|
+
]
|
|
3741
|
+
}));
|
|
3742
|
+
}
|
|
3572
3743
|
}
|
|
3573
3744
|
}
|
|
3574
|
-
MonkeyEcxTokenStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, deps: [{ token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3745
|
+
MonkeyEcxTokenStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, deps: [{ token: MonkeyEcxConfigService }, { token: i2$3.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3575
3746
|
MonkeyEcxTokenStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, providedIn: 'root' });
|
|
3576
3747
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, decorators: [{
|
|
3577
3748
|
type: Injectable,
|
|
3578
3749
|
args: [{
|
|
3579
|
-
providedIn: 'root'
|
|
3750
|
+
providedIn: 'root'
|
|
3580
3751
|
}]
|
|
3581
|
-
}], ctorParameters: function () { return [{ type: MonkeyEcxConfigService }]; } });
|
|
3752
|
+
}], ctorParameters: function () { return [{ type: MonkeyEcxConfigService }, { type: i2$3.Store }]; } });
|
|
3582
3753
|
|
|
3583
3754
|
class MonkeyEcxSecurityDirective {
|
|
3584
3755
|
constructor(elementRef, tokenStorageService, cdr) {
|
|
@@ -5319,147 +5490,11 @@ class MonkeyEcxSpecificationSearch {
|
|
|
5319
5490
|
}
|
|
5320
5491
|
}
|
|
5321
5492
|
|
|
5322
|
-
const clear = createAction('[MECX Core Storage] Clear All');
|
|
5323
|
-
const create = createAction('[MECX Core Storage] Create', props());
|
|
5324
|
-
const updateControl = createAction('[MECX Core Storage] Update Control', props());
|
|
5325
|
-
const updateOne = createAction('[MECX Core Storage] Update One', props());
|
|
5326
|
-
const deleteOne = createAction('[MECX Core Storage] Delete One', props());
|
|
5327
|
-
|
|
5328
|
-
var monkeyecxStorage_actions = /*#__PURE__*/Object.freeze({
|
|
5329
|
-
__proto__: null,
|
|
5330
|
-
clear: clear,
|
|
5331
|
-
create: create,
|
|
5332
|
-
updateControl: updateControl,
|
|
5333
|
-
updateOne: updateOne,
|
|
5334
|
-
deleteOne: deleteOne
|
|
5335
|
-
});
|
|
5336
|
-
|
|
5337
|
-
var index$3 = /*#__PURE__*/Object.freeze({
|
|
5338
|
-
__proto__: null,
|
|
5339
|
-
monkeyecxStorage: monkeyecxStorage_actions
|
|
5340
|
-
});
|
|
5341
|
-
|
|
5342
|
-
const seederReducer = (keys) => {
|
|
5343
|
-
return (reducer) => {
|
|
5344
|
-
return (state, action) => {
|
|
5345
|
-
const handledState = reducer(state, action);
|
|
5346
|
-
if (action.type === INIT || action.type === UPDATE) {
|
|
5347
|
-
const storageValue = localStorage.getItem('state');
|
|
5348
|
-
if (storageValue) {
|
|
5349
|
-
try {
|
|
5350
|
-
const handled = Object.assign(Object.assign({}, handledState), JSON.parse(atob(storageValue)));
|
|
5351
|
-
return handled;
|
|
5352
|
-
}
|
|
5353
|
-
catch (_a) {
|
|
5354
|
-
localStorage.removeItem('state');
|
|
5355
|
-
}
|
|
5356
|
-
}
|
|
5357
|
-
}
|
|
5358
|
-
let data = null;
|
|
5359
|
-
try {
|
|
5360
|
-
keys.forEach((key) => {
|
|
5361
|
-
data = Object.assign(Object.assign({}, data), { [key]: handledState[key] });
|
|
5362
|
-
});
|
|
5363
|
-
localStorage.setItem('state', btoa(JSON.stringify(data)));
|
|
5364
|
-
}
|
|
5365
|
-
catch (e) {
|
|
5366
|
-
localStorage.removeItem('state');
|
|
5367
|
-
}
|
|
5368
|
-
return data || handledState;
|
|
5369
|
-
};
|
|
5370
|
-
};
|
|
5371
|
-
};
|
|
5372
|
-
|
|
5373
|
-
var monkeyecxSeeder_reducer = /*#__PURE__*/Object.freeze({
|
|
5374
|
-
__proto__: null,
|
|
5375
|
-
seederReducer: seederReducer
|
|
5376
|
-
});
|
|
5377
|
-
|
|
5378
|
-
const featureKey = 'mecx-core-storage';
|
|
5379
|
-
const adapter = createEntityAdapter({
|
|
5380
|
-
selectId: (item) => {
|
|
5381
|
-
return item.username;
|
|
5382
|
-
}
|
|
5383
|
-
});
|
|
5384
|
-
const initialState = adapter.getInitialState({
|
|
5385
|
-
control: {
|
|
5386
|
-
isLoading: false
|
|
5387
|
-
},
|
|
5388
|
-
error: null
|
|
5389
|
-
});
|
|
5390
|
-
const reducer = createReducer(initialState, on(clear, (state) => {
|
|
5391
|
-
return adapter.removeAll(state);
|
|
5392
|
-
}), on(create, (state, action) => {
|
|
5393
|
-
return adapter.upsertMany(action.data, Object.assign({}, state));
|
|
5394
|
-
}), on(updateControl, (state, action) => {
|
|
5395
|
-
return Object.assign(Object.assign({}, state), { control: Object.assign(Object.assign({}, state.control), action.data) });
|
|
5396
|
-
}), on(updateOne, (state, action) => {
|
|
5397
|
-
const { username } = action.data;
|
|
5398
|
-
return adapter.upsertOne(Object.assign(Object.assign({}, action.data), { username }), Object.assign({}, state));
|
|
5399
|
-
}), on(deleteOne, (state, action) => {
|
|
5400
|
-
const { username } = action.data;
|
|
5401
|
-
return adapter.removeOne(username, state);
|
|
5402
|
-
}));
|
|
5403
|
-
const { selectAll: selectAll$1, selectEntities, selectIds, selectTotal } = adapter.getSelectors();
|
|
5404
|
-
|
|
5405
|
-
var monkeyecxStorage_reducer = /*#__PURE__*/Object.freeze({
|
|
5406
|
-
__proto__: null,
|
|
5407
|
-
featureKey: featureKey,
|
|
5408
|
-
adapter: adapter,
|
|
5409
|
-
initialState: initialState,
|
|
5410
|
-
reducer: reducer,
|
|
5411
|
-
selectAll: selectAll$1,
|
|
5412
|
-
selectEntities: selectEntities,
|
|
5413
|
-
selectIds: selectIds,
|
|
5414
|
-
selectTotal: selectTotal
|
|
5415
|
-
});
|
|
5416
|
-
|
|
5417
|
-
var index$2 = /*#__PURE__*/Object.freeze({
|
|
5418
|
-
__proto__: null,
|
|
5419
|
-
fromMonkeyecxSeeder: monkeyecxSeeder_reducer,
|
|
5420
|
-
fromMonkeyecxStorage: monkeyecxStorage_reducer
|
|
5421
|
-
});
|
|
5422
|
-
|
|
5423
|
-
const selectState = createFeatureSelector(featureKey);
|
|
5424
|
-
const selectAll = createSelector(selectState, selectAll$1);
|
|
5425
|
-
const select = (props) => {
|
|
5426
|
-
return createSelector(selectAll, (entities) => {
|
|
5427
|
-
return entities.filter((_) => {
|
|
5428
|
-
return _.username === props.username;
|
|
5429
|
-
});
|
|
5430
|
-
});
|
|
5431
|
-
};
|
|
5432
|
-
const selectControl = () => {
|
|
5433
|
-
return createSelector(selectState, (state) => {
|
|
5434
|
-
return state.control;
|
|
5435
|
-
});
|
|
5436
|
-
};
|
|
5437
|
-
|
|
5438
|
-
var monkeyecxStorage_selector = /*#__PURE__*/Object.freeze({
|
|
5439
|
-
__proto__: null,
|
|
5440
|
-
selectState: selectState,
|
|
5441
|
-
selectAll: selectAll,
|
|
5442
|
-
select: select,
|
|
5443
|
-
selectControl: selectControl
|
|
5444
|
-
});
|
|
5445
|
-
|
|
5446
|
-
var index$1 = /*#__PURE__*/Object.freeze({
|
|
5447
|
-
__proto__: null,
|
|
5448
|
-
monkeyecxStorage: monkeyecxStorage_selector
|
|
5449
|
-
});
|
|
5450
|
-
|
|
5451
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
5452
|
-
__proto__: null,
|
|
5453
|
-
actions: index$3,
|
|
5454
|
-
reducers: index$2,
|
|
5455
|
-
selectors: index$1
|
|
5456
|
-
});
|
|
5457
|
-
|
|
5458
5493
|
class MonkeyFrontCoreModule {
|
|
5459
5494
|
}
|
|
5460
5495
|
MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5461
5496
|
MonkeyFrontCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, imports: [CommonModule,
|
|
5462
|
-
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$5.ServiceWorkerModule, ClosedToMaintenanceModule,
|
|
5497
|
+
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$5.ServiceWorkerModule, ClosedToMaintenanceModule, i2$3.StoreFeatureModule, VersionChangedModule,
|
|
5463
5498
|
AlertsModule,
|
|
5464
5499
|
CurrencyConfigModule] });
|
|
5465
5500
|
MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, providers: [
|