cloud-ide-layout 1.0.197 → 1.0.198

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.
Files changed (14) hide show
  1. package/fesm2022/{cloud-ide-layout-cloud-ide-layout-BR5F10rp.mjs → cloud-ide-layout-cloud-ide-layout-IWRXJZWw.mjs} +35 -5
  2. package/fesm2022/cloud-ide-layout-cloud-ide-layout-IWRXJZWw.mjs.map +1 -0
  3. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-Z6CVGUD0.mjs → cloud-ide-layout-dashboard-manager.component-Nj16vAo6.mjs} +2 -2
  4. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-Z6CVGUD0.mjs.map → cloud-ide-layout-dashboard-manager.component-Nj16vAo6.mjs.map} +1 -1
  5. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BMtGe5Hj.mjs → cloud-ide-layout-drawer-theme.component-DzKVXMjI.mjs} +2 -2
  6. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BMtGe5Hj.mjs.map → cloud-ide-layout-drawer-theme.component-DzKVXMjI.mjs.map} +1 -1
  7. package/fesm2022/{cloud-ide-layout-home-wrapper.component-yBUZQiWN.mjs → cloud-ide-layout-home-wrapper.component-wkXPWz-K.mjs} +2 -2
  8. package/fesm2022/{cloud-ide-layout-home-wrapper.component-yBUZQiWN.mjs.map → cloud-ide-layout-home-wrapper.component-wkXPWz-K.mjs.map} +1 -1
  9. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-B6H0UYkd.mjs → cloud-ide-layout-sidedrawer-notes.component-Dz9RmJNj.mjs} +2 -2
  10. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-B6H0UYkd.mjs.map → cloud-ide-layout-sidedrawer-notes.component-Dz9RmJNj.mjs.map} +1 -1
  11. package/fesm2022/cloud-ide-layout.mjs +1 -1
  12. package/index.d.ts +3 -0
  13. package/package.json +1 -1
  14. package/fesm2022/cloud-ide-layout-cloud-ide-layout-BR5F10rp.mjs.map +0 -1
@@ -4674,6 +4674,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
4674
4674
  * to persist component state, especially for tabbed navigation.
4675
4675
  */
4676
4676
  class CustomRouteReuseStrategy {
4677
+ injector = inject(Injector);
4677
4678
  storedRoutes = {};
4678
4679
  routesToDestroy = new Set(); // Keys marked for destruction (do not store)
4679
4680
  // Generates a unique key for a route.
@@ -4707,6 +4708,27 @@ class CustomRouteReuseStrategy {
4707
4708
  const hasChildren = route.firstChild !== null;
4708
4709
  const shouldDetach = hasComponent && !hasChildren;
4709
4710
  const pathKey = this.getPathKey(route);
4711
+ // Check if this page is configured to NOT use tabs (sytm_layout_request.status === false)
4712
+ // We check cached page data from SharedService
4713
+ if (shouldDetach) {
4714
+ try {
4715
+ // Lazy inject to avoid circular dependency (Router -> Strategy -> Shared -> Router)
4716
+ const sharedService = this.injector.get(CideLytSharedService);
4717
+ const pageCode = route.data['sypg_page_code'] || route.queryParams['sypg_page_code'];
4718
+ if (pageCode) {
4719
+ // Check cache directly (synchronous)
4720
+ const cachedData = sharedService.getCachedPageData(pageCode);
4721
+ const requestStatus = cachedData?.data?.theme?.sytm_layout?.sytm_layout_request?.status;
4722
+ if (requestStatus === false) {
4723
+ console.log(`🚫 [shouldDetach] Preventing detach for ${pathKey} because request layout is disabled (e.g. Home page)`);
4724
+ return false;
4725
+ }
4726
+ }
4727
+ }
4728
+ catch (e) {
4729
+ // Ignore errors if service not ready
4730
+ }
4731
+ }
4710
4732
  console.log(`🔍 [shouldDetach] Route: ${pathKey}, hasComponent: ${hasComponent}, hasChildren: ${hasChildren}, shouldDetach: ${shouldDetach}`);
4711
4733
  return shouldDetach;
4712
4734
  }
@@ -4868,7 +4890,15 @@ class CustomRouteReuseStrategy {
4868
4890
  getAllStoredRouteKeys() {
4869
4891
  return Object.keys(this.storedRoutes);
4870
4892
  }
4893
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomRouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4894
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomRouteReuseStrategy, providedIn: 'root' });
4871
4895
  }
4896
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomRouteReuseStrategy, decorators: [{
4897
+ type: Injectable,
4898
+ args: [{
4899
+ providedIn: 'root'
4900
+ }]
4901
+ }] });
4872
4902
 
4873
4903
  /**
4874
4904
  * Creates the default state for a new tab.
@@ -5439,8 +5469,8 @@ class CideLytSidedrawerWrapperComponent {
5439
5469
  }
5440
5470
  ngOnInit() {
5441
5471
  // Initialize the component map (You'd likely populate this from a config or service)
5442
- this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-B6H0UYkd.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5443
- this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-BMtGe5Hj.mjs').then(m => m.CideLytDrawerThemeComponent);
5472
+ this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-Dz9RmJNj.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5473
+ this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-DzKVXMjI.mjs').then(m => m.CideLytDrawerThemeComponent);
5444
5474
  }
5445
5475
  async loadComponent(configFor) {
5446
5476
  console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
@@ -7132,7 +7162,7 @@ const layoutControlPannelChildRoutes = [{
7132
7162
  },
7133
7163
  {
7134
7164
  path: "home",
7135
- loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-yBUZQiWN.mjs').then(c => c.CideLytHomeWrapperComponent),
7165
+ loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-wkXPWz-K.mjs').then(c => c.CideLytHomeWrapperComponent),
7136
7166
  canActivate: [authGuard],
7137
7167
  data: {
7138
7168
  sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
@@ -7140,7 +7170,7 @@ const layoutControlPannelChildRoutes = [{
7140
7170
  },
7141
7171
  {
7142
7172
  path: "dashboard-manager",
7143
- loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-Z6CVGUD0.mjs').then(c => c.DashboardManagerComponent),
7173
+ loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-Nj16vAo6.mjs').then(c => c.DashboardManagerComponent),
7144
7174
  canActivate: [authGuard],
7145
7175
  data: {
7146
7176
  sypg_page_code: "cide_lyt_dashboard_manager"
@@ -8964,4 +8994,4 @@ var floatingEntitySelection_component = /*#__PURE__*/Object.freeze({
8964
8994
  */
8965
8995
 
8966
8996
  export { AppStateHelperService as A, CideLytSharedWrapperComponent as C, ENVIRONMENT_CONFIG as E, NotificationSettingsService as N, RightsService as R, CideLytSidebarService as a, CideLytSidedrawerService as b, CideLytThemeService as c, CloudIdeLayoutService as d, CloudIdeLayoutComponent as e, CideLytSharedService as f, ComponentContextService as g, layoutControlPannelChildRoutes as h, CustomRouteReuseStrategy as i, AppStateService as j, CideLytUserStatusService as k, layoutRoutes as l, CacheManagerService as m, CideLytFileManagerService as n, CideLytFloatingEntityRightsSharingComponent as o, processThemeVariable as p, CideLytFloatingEntityRightsSharingService as q, CideLytFloatingEntitySelectionComponent as r, setCSSVariable as s, themeFactory as t, CideLytFloatingEntitySelectionService as u };
8967
- //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-BR5F10rp.mjs.map
8997
+ //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-IWRXJZWw.mjs.map