intelica-library-project 20.0.10 → 20.0.12

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,6 +2305,7 @@ function dispatchQuicksightEvent(event, outputs) {
2305
2305
  class DashboardQsComponent {
2306
2306
  sharedService = inject(Shared);
2307
2307
  alertService = inject(AlertService);
2308
+ term = inject(TermPipe);
2308
2309
  route = inject(ActivatedRoute);
2309
2310
  sessionExpiredShown = false;
2310
2311
  containers;
@@ -2359,11 +2360,15 @@ class DashboardQsComponent {
2359
2360
  this.isLoading.set(false);
2360
2361
  }
2361
2362
  }
2363
+ t(key, fallback) {
2364
+ const value = this.term.transform(key);
2365
+ return value && value !== '-' ? value : fallback;
2366
+ }
2362
2367
  async handleSessionExpired() {
2363
2368
  if (this.sessionExpiredShown)
2364
2369
  return;
2365
2370
  this.sessionExpiredShown = true;
2366
- const { isConfirmed } = await this.alertService.confirm('Sesión expirada', 'Tu sesión de QuickSight expiró. Actualiza la página para continuar.', 'Actualizar página', 'Cancelar');
2371
+ const { isConfirmed } = await this.alertService.confirm(this.t('SESSION_EXPIRED_TITLE', 'Sesión expirada'), this.t('SESSION_EXPIRED_MESSAGE', 'Tu sesión de QuickSight expiró. Actualiza la página para continuar.'), this.t('SESSION_EXPIRED_CONFIRM', 'Actualizar página'), this.t('CANCEL', 'Cancelar'));
2367
2372
  if (isConfirmed)
2368
2373
  window.location.reload();
2369
2374
  else
@@ -2383,6 +2388,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
2383
2388
  class DashboardQsInteractiveComponent {
2384
2389
  sharedService = inject(Shared);
2385
2390
  alertService = inject(AlertService);
2391
+ term = inject(TermPipe);
2386
2392
  route = inject(ActivatedRoute);
2387
2393
  sessionExpiredShown = false;
2388
2394
  containers;
@@ -2419,9 +2425,10 @@ class DashboardQsInteractiveComponent {
2419
2425
  const params = this.parameters();
2420
2426
  if (!this.dashboardRef || !params)
2421
2427
  return;
2422
- this.isLoading.set(true);
2423
- this.sharedService.setDashboardParameters(this.dashboardRef, params)
2424
- .catch(() => this.isLoading.set(false));
2428
+ // this.isLoading.set(true);
2429
+ this.sharedService.setDashboardParameters(this.dashboardRef, params);
2430
+ // .finally(() => this.isLoading.set(false))
2431
+ // .catch(() => this.isLoading.set(false));
2425
2432
  });
2426
2433
  }
2427
2434
  ngAfterViewInit() {
@@ -2449,11 +2456,15 @@ class DashboardQsInteractiveComponent {
2449
2456
  this.isLoading.set(false);
2450
2457
  }
2451
2458
  }
2459
+ t(key, fallback) {
2460
+ const value = this.term.transform(key);
2461
+ return value && value !== '-' ? value : fallback;
2462
+ }
2452
2463
  async handleSessionExpired() {
2453
2464
  if (this.sessionExpiredShown)
2454
2465
  return;
2455
2466
  this.sessionExpiredShown = true;
2456
- const { isConfirmed } = await this.alertService.confirm('Sesión expirada', 'Tu sesión de QuickSight expiró. Actualiza la página para continuar.', 'Actualizar página', 'Cancelar');
2467
+ const { isConfirmed } = await this.alertService.confirm(this.t('SESSION_EXPIRED_TITLE', 'Sesión expirada'), this.t('SESSION_EXPIRED_MESSAGE', 'Tu sesión de QuickSight expiró. Actualiza la página para continuar.'), this.t('SESSION_EXPIRED_CONFIRM', 'Actualizar página'), this.t('CANCEL', 'Cancelar'));
2457
2468
  if (isConfirmed)
2458
2469
  window.location.reload();
2459
2470
  else