cloud-ide-core 2.0.113 → 2.0.114

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.
@@ -13,7 +13,7 @@ import { coreRoutesUrl, generateStringFromObject, cidePath, hostManagerRoutesUrl
13
13
  import * as i1 from '@angular/common/http';
14
14
  import { HttpClient } from '@angular/common/http';
15
15
  import { NotificationService, CideEleDataGridComponent, CideEleButtonComponent, CideInputComponent, CideSelectComponent, CideTextareaComponent, CideIconComponent, CideEleDropdownComponent, ConfirmationService, CideEleGlobalNotificationsComponent, CideEleConfirmationModalComponent, CideEleJsonEditorComponent, CideEleFileInputComponent, CideEleFileImageDirective, CideFormFieldErrorComponent, CideEleFileManagerService, CideEleTabComponent, CideEleFloatingFeaturesService, CideEleToastNotificationComponent } from 'cloud-ide-element';
16
- import { RightsService, AppStateHelperService, CideLytSharedWrapperComponent, CideLytFloatingEntityRightsSharingService } from 'cloud-ide-layout';
16
+ import { RightsService, AppStateHelperService, CideLytSharedWrapperComponent, CideLytFloatingEntityRightsSharingService, CideLytSharedService } from 'cloud-ide-layout';
17
17
 
18
18
  const coreRoutes = [
19
19
  {
@@ -16028,6 +16028,7 @@ class CideCoreUserListComponent {
16028
16028
  route = inject(ActivatedRoute);
16029
16029
  userMasterService = inject(CideCoreUserMasterService);
16030
16030
  appState = inject(AppStateHelperService);
16031
+ sharedService = inject(CideLytSharedService);
16031
16032
  destroyRef = inject(DestroyRef);
16032
16033
  // ViewChild reference to the grid component
16033
16034
  gridComponent;
@@ -16050,6 +16051,7 @@ class CideCoreUserListComponent {
16050
16051
  // Page config (title/subtitle) from page API via route data
16051
16052
  pageTitle = signal('', ...(ngDevMode ? [{ debugName: "pageTitle" }] : []));
16052
16053
  pageSubtitle = signal('', ...(ngDevMode ? [{ debugName: "pageSubtitle" }] : []));
16054
+ pageCode = signal('auth_user_mst', ...(ngDevMode ? [{ debugName: "pageCode" }] : []));
16053
16055
  // Server-side search state
16054
16056
  searchQuery = signal('', ...(ngDevMode ? [{ debugName: "searchQuery" }] : []));
16055
16057
  // Server-side sorting state
@@ -16140,7 +16142,7 @@ class CideCoreUserListComponent {
16140
16142
  templateRenderers = {};
16141
16143
  ngOnInit() {
16142
16144
  console.log('🔧 USER MASTER LIST: Component initializing');
16143
- // Pick up user type and page config from route data (shared wrapper already loaded page API)
16145
+ // Pick up user type and page config from route data/cache (shared wrapper already loaded page API)
16144
16146
  this.route.data.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(data => {
16145
16147
  const routeUserType = data['userType'] || this.route.snapshot.queryParamMap.get('userType');
16146
16148
  const resolvedType = (routeUserType || '').toString().trim().toUpperCase();
@@ -16148,25 +16150,33 @@ class CideCoreUserListComponent {
16148
16150
  this.userType.set(resolvedType);
16149
16151
  console.log('👤 User type set to:', resolvedType);
16150
16152
  }
16151
- console.log('👤 User type from route:', data);
16152
- const page = data['page'];
16153
- const cfgString = page?.sypg_configuration;
16154
- if (cfgString) {
16155
- try {
16156
- const cfg = JSON.parse(cfgString);
16157
- this.pageTitle.set(cfg.title || '');
16158
- this.pageSubtitle.set(cfg.subTitle || '');
16153
+ const codeFromRoute = data['page']?.sypg_page_code || data['sypg_page_code'];
16154
+ const codeFromQuery = this.route.snapshot.queryParamMap.get('sypg_page_code');
16155
+ const finalCode = (codeFromRoute || codeFromQuery || this.pageCode()).toString();
16156
+ this.pageCode.set(finalCode);
16157
+ // Try to read page config from cached page data (no extra API call)
16158
+ const cachedStore = this.sharedService.pageDataStore();
16159
+ const cached = finalCode ? (this.sharedService.getCachedPageData(finalCode) || cachedStore[finalCode]) : null;
16160
+ const page = data['page'] || cached?.data?.page;
16161
+ if (page) {
16162
+ const cfgString = page?.sypg_configuration;
16163
+ if (cfgString) {
16164
+ try {
16165
+ const cfg = JSON.parse(cfgString);
16166
+ this.pageTitle.set(cfg.title || '');
16167
+ this.pageSubtitle.set(cfg.subTitle || '');
16168
+ }
16169
+ catch (e) {
16170
+ console.warn('Invalid page config JSON', e);
16171
+ this.pageTitle.set(page?.sypg_title || '');
16172
+ this.pageSubtitle.set(page?.sypg_desc || '');
16173
+ }
16159
16174
  }
16160
- catch (e) {
16161
- console.warn('Invalid page config JSON', e);
16175
+ else {
16162
16176
  this.pageTitle.set(page?.sypg_title || '');
16163
16177
  this.pageSubtitle.set(page?.sypg_desc || '');
16164
16178
  }
16165
16179
  }
16166
- else {
16167
- this.pageTitle.set(page?.sypg_title || '');
16168
- this.pageSubtitle.set(page?.sypg_desc || '');
16169
- }
16170
16180
  });
16171
16181
  this.loading.set(false);
16172
16182
  this.loadUsersFromServer(); // Use server-side loading