intelica-library-project 20.0.12 → 20.0.14
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.
|
@@ -2305,7 +2305,8 @@ function dispatchQuicksightEvent(event, outputs) {
|
|
|
2305
2305
|
class DashboardQsComponent {
|
|
2306
2306
|
sharedService = inject(Shared);
|
|
2307
2307
|
alertService = inject(AlertService);
|
|
2308
|
-
|
|
2308
|
+
termPipe = inject(TermPipe);
|
|
2309
|
+
GlobalTermService = inject(GlobalTermService);
|
|
2309
2310
|
route = inject(ActivatedRoute);
|
|
2310
2311
|
sessionExpiredShown = false;
|
|
2311
2312
|
containers;
|
|
@@ -2360,15 +2361,11 @@ class DashboardQsComponent {
|
|
|
2360
2361
|
this.isLoading.set(false);
|
|
2361
2362
|
}
|
|
2362
2363
|
}
|
|
2363
|
-
t(key, fallback) {
|
|
2364
|
-
const value = this.term.transform(key);
|
|
2365
|
-
return value && value !== '-' ? value : fallback;
|
|
2366
|
-
}
|
|
2367
2364
|
async handleSessionExpired() {
|
|
2368
2365
|
if (this.sessionExpiredShown)
|
|
2369
2366
|
return;
|
|
2370
2367
|
this.sessionExpiredShown = true;
|
|
2371
|
-
const { isConfirmed } = await this.alertService.confirm(this.
|
|
2368
|
+
const { isConfirmed } = await this.alertService.confirm(this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_TITLE', this.GlobalTermService.languageCode), this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_MESSAGE', this.GlobalTermService.languageCode), this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_CONFIRM', this.GlobalTermService.languageCode), this.termPipe.transform('CANCEL', this.GlobalTermService.languageCode));
|
|
2372
2369
|
if (isConfirmed)
|
|
2373
2370
|
window.location.reload();
|
|
2374
2371
|
else
|
|
@@ -2388,7 +2385,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
|
|
|
2388
2385
|
class DashboardQsInteractiveComponent {
|
|
2389
2386
|
sharedService = inject(Shared);
|
|
2390
2387
|
alertService = inject(AlertService);
|
|
2391
|
-
|
|
2388
|
+
termPipe = inject(TermPipe);
|
|
2389
|
+
GlobalTermService = inject(GlobalTermService);
|
|
2392
2390
|
route = inject(ActivatedRoute);
|
|
2393
2391
|
sessionExpiredShown = false;
|
|
2394
2392
|
containers;
|
|
@@ -2425,10 +2423,7 @@ class DashboardQsInteractiveComponent {
|
|
|
2425
2423
|
const params = this.parameters();
|
|
2426
2424
|
if (!this.dashboardRef || !params)
|
|
2427
2425
|
return;
|
|
2428
|
-
// this.isLoading.set(true);
|
|
2429
2426
|
this.sharedService.setDashboardParameters(this.dashboardRef, params);
|
|
2430
|
-
// .finally(() => this.isLoading.set(false))
|
|
2431
|
-
// .catch(() => this.isLoading.set(false));
|
|
2432
2427
|
});
|
|
2433
2428
|
}
|
|
2434
2429
|
ngAfterViewInit() {
|
|
@@ -2456,15 +2451,11 @@ class DashboardQsInteractiveComponent {
|
|
|
2456
2451
|
this.isLoading.set(false);
|
|
2457
2452
|
}
|
|
2458
2453
|
}
|
|
2459
|
-
t(key, fallback) {
|
|
2460
|
-
const value = this.term.transform(key);
|
|
2461
|
-
return value && value !== '-' ? value : fallback;
|
|
2462
|
-
}
|
|
2463
2454
|
async handleSessionExpired() {
|
|
2464
2455
|
if (this.sessionExpiredShown)
|
|
2465
2456
|
return;
|
|
2466
2457
|
this.sessionExpiredShown = true;
|
|
2467
|
-
const { isConfirmed } = await this.alertService.confirm(this.
|
|
2458
|
+
const { isConfirmed } = await this.alertService.confirm(this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_TITLE', this.GlobalTermService.languageCode), this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_MESSAGE', this.GlobalTermService.languageCode), this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_CONFIRM', this.GlobalTermService.languageCode), this.termPipe.transform('CANCEL', this.GlobalTermService.languageCode));
|
|
2468
2459
|
if (isConfirmed)
|
|
2469
2460
|
window.location.reload();
|
|
2470
2461
|
else
|