monkey-front-core 0.0.361 → 0.0.363
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/commons/monkeyecx-commons.service.mjs +1 -7
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +1 -11
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +8 -1
- package/fesm2015/monkey-front-core.mjs +4 -16
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +7 -16
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +1 -36
- package/monkey-front-core-0.0.363.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.361.tgz +0 -0
|
@@ -2772,13 +2772,9 @@ class MonkeyEcxCommonsService {
|
|
|
2772
2772
|
return arg.country === arg.envCountry;
|
|
2773
2773
|
}
|
|
2774
2774
|
handlePaginationOptions() {
|
|
2775
|
-
console.log('core ==> handlePaginationOptions');
|
|
2776
2775
|
const { __paginationOptions } = this;
|
|
2777
2776
|
if (__paginationOptions) {
|
|
2778
|
-
console.log('__paginationOptions');
|
|
2779
|
-
console.log(__paginationOptions);
|
|
2780
2777
|
const { service, callback, name } = __paginationOptions;
|
|
2781
|
-
console.log(service, callback, name);
|
|
2782
2778
|
service?.setCallback((type) => {
|
|
2783
2779
|
this.doPaginationv2(type, callback);
|
|
2784
2780
|
}, name || 'main');
|
|
@@ -2872,9 +2868,7 @@ class MonkeyEcxCommonsService {
|
|
|
2872
2868
|
this.__callbackPagination = otherArgs.callbackPagination;
|
|
2873
2869
|
}
|
|
2874
2870
|
if (otherArgs?.paginationOptions) {
|
|
2875
|
-
console.log('core => veio pagination options');
|
|
2876
2871
|
this.__paginationOptions = otherArgs?.paginationOptions;
|
|
2877
|
-
console.log(this.__paginationOptions);
|
|
2878
2872
|
this.handlePaginationOptions();
|
|
2879
2873
|
}
|
|
2880
2874
|
if (otherArgs?.feature) {
|
|
@@ -3637,6 +3631,13 @@ class MonkeyEcxTokenStorageService {
|
|
|
3637
3631
|
};
|
|
3638
3632
|
if (username) {
|
|
3639
3633
|
data = await store.select(select({ username })).pipe(take(1)).toPromise();
|
|
3634
|
+
if (!data?.program) {
|
|
3635
|
+
const program = localStorage.getItem('program');
|
|
3636
|
+
data = {
|
|
3637
|
+
...data,
|
|
3638
|
+
program
|
|
3639
|
+
};
|
|
3640
|
+
}
|
|
3640
3641
|
}
|
|
3641
3642
|
const config = await monkeyecxConfigService.config()
|
|
3642
3643
|
.pipe(take(1)).toPromise();
|
|
@@ -4570,24 +4571,14 @@ class MonkeyEcxPaginationService {
|
|
|
4570
4571
|
// not to do
|
|
4571
4572
|
}
|
|
4572
4573
|
setCallback(callback, name = 'main') {
|
|
4573
|
-
console.log('this.callbacks');
|
|
4574
|
-
console.log(this.callbacks);
|
|
4575
|
-
console.log('name');
|
|
4576
|
-
console.log(name);
|
|
4577
|
-
console.log('callback');
|
|
4578
|
-
console.log(callback);
|
|
4579
4574
|
this.callbacks = {
|
|
4580
4575
|
...this.callbacks,
|
|
4581
4576
|
[name]: callback
|
|
4582
4577
|
};
|
|
4583
4578
|
}
|
|
4584
4579
|
execute(type, name = 'main') {
|
|
4585
|
-
console.log('core => execute pagination');
|
|
4586
4580
|
const { callbacks } = this;
|
|
4587
|
-
console.log(callbacks);
|
|
4588
|
-
console.log(type, name);
|
|
4589
4581
|
const callback = callbacks?.[name];
|
|
4590
|
-
console.log(callback);
|
|
4591
4582
|
if (callback)
|
|
4592
4583
|
callback(type);
|
|
4593
4584
|
}
|