monkey-front-core 21.0.5 → 21.0.7
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import { HttpContextToken, HttpErrorResponse, HttpClient, HttpParams, HttpContext, HttpHeaders, provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, InjectionToken, Injectable, LOCALE_ID, DestroyRef, DOCUMENT, Inject, Injector, EventEmitter, Input, Directive, ElementRef, ChangeDetectorRef, ErrorHandler, provideAppInitializer, NgModule, Pipe, DEFAULT_CURRENCY_CODE } from '@angular/core';
|
|
4
|
+
import { inject, InjectionToken, Injectable, LOCALE_ID, DestroyRef, DOCUMENT, Inject, Injector, EventEmitter, Input, Directive, ElementRef, ChangeDetectorRef, ErrorHandler, provideAppInitializer, NgModule, Pipe, DEFAULT_CURRENCY_CODE, signal } from '@angular/core';
|
|
5
5
|
import * as i2 from '@angular/router';
|
|
6
6
|
import { Router, NavigationStart } from '@angular/router';
|
|
7
7
|
import queryString from 'query-string';
|
|
@@ -1994,7 +1994,7 @@ class MonkeyEcxNewVersionService {
|
|
|
1994
1994
|
if (this._showed)
|
|
1995
1995
|
return;
|
|
1996
1996
|
const id = 'mecx-new-version-banner';
|
|
1997
|
-
const bootstrap = this._configsService
|
|
1997
|
+
const { bootstrap } = this._configsService;
|
|
1998
1998
|
if (!bootstrap || !bootstrap.showNewVersion)
|
|
1999
1999
|
return;
|
|
2000
2000
|
const i18n = await firstValueFrom(this._dictionary);
|
|
@@ -2026,12 +2026,10 @@ class MonkeyEcxNewVersionService {
|
|
|
2026
2026
|
});
|
|
2027
2027
|
banner.textContent = i18n;
|
|
2028
2028
|
banner.addEventListener('click', () => {
|
|
2029
|
-
document.body.style.marginTop = '0px';
|
|
2030
2029
|
banner.remove();
|
|
2031
2030
|
window.location.reload();
|
|
2032
2031
|
});
|
|
2033
2032
|
document.body.insertBefore(banner, document.body.firstChild);
|
|
2034
|
-
document.body.style.marginTop = `${banner.offsetHeight}px`;
|
|
2035
2033
|
this._showed = true;
|
|
2036
2034
|
}
|
|
2037
2035
|
apply() {
|
|
@@ -5509,11 +5507,19 @@ function provideDomainServiceWorker(workerUrl) {
|
|
|
5509
5507
|
});
|
|
5510
5508
|
}
|
|
5511
5509
|
|
|
5510
|
+
const initialControl = {
|
|
5511
|
+
isLoading: false,
|
|
5512
|
+
isExporting: false,
|
|
5513
|
+
isDeleting: false,
|
|
5514
|
+
isDownloading: false,
|
|
5515
|
+
isSubmiting: false
|
|
5516
|
+
};
|
|
5512
5517
|
class MonkeyEcxBaseResolver {
|
|
5513
5518
|
constructor() {
|
|
5514
5519
|
this.router = inject(Router);
|
|
5515
5520
|
this.paramsSubject = new BehaviorSubject({});
|
|
5516
5521
|
this.params$ = this.paramsSubject.asObservable();
|
|
5522
|
+
this.control = signal(initialControl, ...(ngDevMode ? [{ debugName: "control" }] : []));
|
|
5517
5523
|
}
|
|
5518
5524
|
get pathParams() {
|
|
5519
5525
|
return this.paramsSubject.value.pathParams;
|