@acorex/platform 20.9.10 → 20.9.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.
@@ -2908,6 +2908,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
2908
2908
  args: [{ selector: 'axp-background-operation-slot', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXDecoratorModule, AXTranslationModule, AXPopoverModule, AXPBackgroundOperationPanelComponent], template: "@if (showSlot()) {\n <button type=\"button\" class=\"operation-slot__trigger\" #operationTrigger>\n <ax-icon class=\"operation-slot__icon\">\n @if (slotShowsFailureOnly()) {\n <i class=\"fa-light fa-circle-exclamation\"></i>\n } @else {\n <i class=\"fa-light fa-spinner fa-spin\"></i>\n }\n </ax-icon>\n <span class=\"operation-slot__text\">\n {{ slotLabelKey() | translate: { params: slotLabelParams() } | async }}\n </span>\n </button>\n\n <ax-popover [target]=\"operationTrigger\" [openOn]=\"'toggle'\" [closeOn]=\"'clickOut'\" [adaptivityEnabled]=\"true\">\n <div class=\"ax-bg-lightest ax-rounded-md ax-w-full\">\n <axp-background-operation-panel (onClosePopover)=\"closePopover()\"></axp-background-operation-panel>\n </div>\n </ax-popover>\n}\n", styles: ["axp-background-operation-slot{display:inline-flex}.operation-slot__trigger{display:inline-flex;cursor:pointer;align-items:center;gap:.375rem;border-width:0px;background-color:transparent;padding:0;color:rgb(var(--ax-sys-color-primary-600))}@media(hover:hover){.operation-slot__trigger:hover{color:rgb(var(--ax-sys-color-primary-700))}}.operation-slot__icon{font-size:.875rem;line-height:1.25rem}.operation-slot__text{font-size:.875rem;line-height:1.25rem;font-weight:500}\n"] }]
2909
2909
  }], propDecorators: { popover: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXPopoverComponent), { isSignal: true }] }] } });
2910
2910
 
2911
+ const ENVIRONMENT = new InjectionToken('ENVIRONMENT');
2912
+ const AXP_PLATFORM_CONFIG_TOKEN = new InjectionToken('AXP_PLATFORM_CONFIG_TOKEN', {
2913
+ providedIn: 'root',
2914
+ factory: () => {
2915
+ return AXPPlatformDefaultConfigs;
2916
+ },
2917
+ });
2918
+ const AXPPlatformDefaultConfigs = {
2919
+ copyright: 'ACoreX @ 2024',
2920
+ title: 'ACoreX Platform',
2921
+ network: {
2922
+ timeOut: 5000,
2923
+ },
2924
+ };
2925
+ function configPlatform(config = AXPPlatformDefaultConfigs) {
2926
+ return merge(AXPPlatformDefaultConfigs, config);
2927
+ }
2928
+
2911
2929
  //#endregion
2912
2930
  //#region ---- App Path Navigation ----
2913
2931
  /**
@@ -5271,6 +5289,7 @@ class AXPBrowserTitleService {
5271
5289
  this.tabNavigation = inject(AXPTabNavigationService);
5272
5290
  this.menuService = inject(AXPMenuService);
5273
5291
  this.sessionService = inject(AXPSessionService);
5292
+ this.platformConfig = inject(AXP_PLATFORM_CONFIG_TOKEN);
5274
5293
  this.router = inject(Router);
5275
5294
  this.destroyRef = inject(DestroyRef);
5276
5295
  //#endregion
@@ -5366,11 +5385,15 @@ class AXPBrowserTitleService {
5366
5385
  }
5367
5386
  async resolveApplicationTitle() {
5368
5387
  const application = this.sessionService.application;
5369
- const raw = application?.title?.trim() || application?.name?.trim() || '';
5370
- if (!raw) {
5388
+ const sessionTitle = application?.title?.trim() || application?.name?.trim() || '';
5389
+ if (sessionTitle) {
5390
+ return (await this.resolveLocalizedText(sessionTitle)) ?? sessionTitle;
5391
+ }
5392
+ const platformTitle = this.platformConfig.title?.trim() || '';
5393
+ if (!platformTitle) {
5371
5394
  return '';
5372
5395
  }
5373
- return (await this.resolveLocalizedText(raw)) ?? raw;
5396
+ return (await this.resolveLocalizedText(platformTitle)) ?? platformTitle;
5374
5397
  }
5375
5398
  async resolveLocalizedText(value) {
5376
5399
  const trimmed = value.trim();
@@ -5388,7 +5411,7 @@ class AXPBrowserTitleService {
5388
5411
  if (route && app) {
5389
5412
  return `${route} | ${app}`;
5390
5413
  }
5391
- return route || app || 'ACoreX';
5414
+ return route || app;
5392
5415
  }
5393
5416
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPBrowserTitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5394
5417
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPBrowserTitleService, providedIn: 'root' }); }
@@ -7466,24 +7489,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
7466
7489
  args: ['AXPCommonModuleFactory']
7467
7490
  }] }, { type: AXPKeyboardShortcutsHelpService }, { type: i2$1.AXFormatterRegistryService }] });
7468
7491
 
7469
- const ENVIRONMENT = new InjectionToken('ENVIRONMENT');
7470
- const AXP_PLATFORM_CONFIG_TOKEN = new InjectionToken('AXP_PLATFORM_CONFIG_TOKEN', {
7471
- providedIn: 'root',
7472
- factory: () => {
7473
- return AXPPlatformDefaultConfigs;
7474
- },
7475
- });
7476
- const AXPPlatformDefaultConfigs = {
7477
- copyright: 'ACoreX @ 2024',
7478
- title: 'ACoreX Platform',
7479
- network: {
7480
- timeOut: 5000,
7481
- },
7482
- };
7483
- function configPlatform(config = AXPPlatformDefaultConfigs) {
7484
- return merge(AXPPlatformDefaultConfigs, config);
7485
- }
7486
-
7487
7492
  /**
7488
7493
  * Resolves post-create list behavior from user settings and optional action overrides.
7489
7494
  */