monkey-front-core 21.0.34 → 21.0.36
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.
|
@@ -4046,7 +4046,8 @@ function mapErrorKey(key) {
|
|
|
4046
4046
|
invalidValueGreaterThanZero: 'invalid-greater-than-zero',
|
|
4047
4047
|
phone: 'invalid-phone',
|
|
4048
4048
|
maxFileSize: 'max-file-size',
|
|
4049
|
-
invalidUnlockRegister: 'invalid-unlock-register'
|
|
4049
|
+
invalidUnlockRegister: 'invalid-unlock-register',
|
|
4050
|
+
passwordsNotMatching: 'password-not-matching'
|
|
4050
4051
|
};
|
|
4051
4052
|
return (map[key] ?? key).toUpperCase();
|
|
4052
4053
|
}
|
|
@@ -5576,7 +5577,9 @@ class MonkeyEcxBaseResolver {
|
|
|
5576
5577
|
constructor() {
|
|
5577
5578
|
this.router = inject(Router);
|
|
5578
5579
|
this.paramsSubject = new BehaviorSubject({});
|
|
5580
|
+
this.dataSubject = new BehaviorSubject({});
|
|
5579
5581
|
this.params$ = this.paramsSubject.asObservable();
|
|
5582
|
+
this.data$ = this.dataSubject.asObservable();
|
|
5580
5583
|
this.control = signal(initialControl, ...(ngDevMode ? [{ debugName: "control" }] : []));
|
|
5581
5584
|
}
|
|
5582
5585
|
get pathParams() {
|
|
@@ -5588,6 +5591,12 @@ class MonkeyEcxBaseResolver {
|
|
|
5588
5591
|
get stateData() {
|
|
5589
5592
|
return this.paramsSubject.value.stateData;
|
|
5590
5593
|
}
|
|
5594
|
+
get data() {
|
|
5595
|
+
return this.dataSubject?.value || {};
|
|
5596
|
+
}
|
|
5597
|
+
set data(value) {
|
|
5598
|
+
this.dataSubject.next(value);
|
|
5599
|
+
}
|
|
5591
5600
|
resolve(route) {
|
|
5592
5601
|
try {
|
|
5593
5602
|
const pathParams = route.params;
|