cloud-ide-layout 1.0.200 → 1.0.203

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-CORQ4qRo.mjs → cloud-ide-layout-cloud-ide-layout-BvFZVSjZ.mjs} +22 -7
  2. package/fesm2022/cloud-ide-layout-cloud-ide-layout-BvFZVSjZ.mjs.map +1 -0
  3. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-BsvKrr3U.mjs → cloud-ide-layout-dashboard-manager.component-CYS-8fLf.mjs} +2 -2
  4. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-BsvKrr3U.mjs.map → cloud-ide-layout-dashboard-manager.component-CYS-8fLf.mjs.map} +1 -1
  5. package/fesm2022/{cloud-ide-layout-drawer-theme.component-CEZFC5lr.mjs → cloud-ide-layout-drawer-theme.component-XFb3tGBD.mjs} +2 -2
  6. package/fesm2022/{cloud-ide-layout-drawer-theme.component-CEZFC5lr.mjs.map → cloud-ide-layout-drawer-theme.component-XFb3tGBD.mjs.map} +1 -1
  7. package/fesm2022/{cloud-ide-layout-home-wrapper.component-DAy0cN4o.mjs → cloud-ide-layout-home-wrapper.component-w9Okruwd.mjs} +2 -2
  8. package/fesm2022/{cloud-ide-layout-home-wrapper.component-DAy0cN4o.mjs.map → cloud-ide-layout-home-wrapper.component-w9Okruwd.mjs.map} +1 -1
  9. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-BnZzY9LX.mjs → cloud-ide-layout-sidedrawer-notes.component-CCiOXRJJ.mjs} +2 -2
  10. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-BnZzY9LX.mjs.map → cloud-ide-layout-sidedrawer-notes.component-CCiOXRJJ.mjs.map} +1 -1
  11. package/fesm2022/cloud-ide-layout.mjs +1 -1
  12. package/index.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/fesm2022/cloud-ide-layout-cloud-ide-layout-CORQ4qRo.mjs.map +0 -1
@@ -959,6 +959,13 @@ class CideLytSharedService {
959
959
  this.appStateService.registerEntityChangeHandler((entity) => {
960
960
  console.log('🔄 SHARED SERVICE: Entity changed, clearing page data cache');
961
961
  this.clearAllCache();
962
+ // Also clear all stored routes/components to remove them from DOM/memory
963
+ // Cast to any to avoid circular dependency with CustomRouteReuseStrategy
964
+ const strategy = this.router.routeReuseStrategy;
965
+ if (strategy && typeof strategy.clearAllStoredRoutes === 'function') {
966
+ console.log('🧹 SHARED SERVICE: Clearing all stored routes via Strategy');
967
+ strategy.clearAllStoredRoutes();
968
+ }
962
969
  });
963
970
  }
964
971
  /**
@@ -4888,6 +4895,8 @@ class CustomRouteReuseStrategy {
4888
4895
  });
4889
4896
  }
4890
4897
  console.log(`✅ [RouteReuseStrategy] All stored routes cleared. Components should be removed from DOM.`);
4898
+ // Also clear the destruction set to reset state completely
4899
+ this.routesToDestroy.clear();
4891
4900
  }
4892
4901
  // Gets the count of stored routes (useful for debugging)
4893
4902
  getStoredRoutesCount() {
@@ -5476,8 +5485,8 @@ class CideLytSidedrawerWrapperComponent {
5476
5485
  }
5477
5486
  ngOnInit() {
5478
5487
  // Initialize the component map (You'd likely populate this from a config or service)
5479
- this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-BnZzY9LX.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5480
- this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-CEZFC5lr.mjs').then(m => m.CideLytDrawerThemeComponent);
5488
+ this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-CCiOXRJJ.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5489
+ this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-XFb3tGBD.mjs').then(m => m.CideLytDrawerThemeComponent);
5481
5490
  }
5482
5491
  async loadComponent(configFor) {
5483
5492
  console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
@@ -6910,12 +6919,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
6910
6919
  */
6911
6920
  class RightsService {
6912
6921
  sharedService = inject(CideLytSharedService);
6913
- appState = inject(AppStateHelperService);
6922
+ appStateService = inject(AppStateService);
6914
6923
  // Current page code signal
6915
6924
  currentPageCode = signal('', ...(ngDevMode ? [{ debugName: "currentPageCode" }] : []));
6916
6925
  // Separate signal for rights-only data (when fetched via rights-only endpoint)
6917
6926
  rightsOnlyCache = signal({}, ...(ngDevMode ? [{ debugName: "rightsOnlyCache" }] : []));
6918
6927
  constructor() {
6928
+ // Listen for entity changes and clear rights cache
6929
+ this.appStateService.registerEntityChangeHandler(() => {
6930
+ console.log('🔄 RightsService: Entity changed, clearing rights cache');
6931
+ this.rightsOnlyCache.set({});
6932
+ // We also reset current page code to force effect to re-run if needed
6933
+ // this.currentPageCode.set('');
6934
+ });
6919
6935
  // Auto-fetch rights when page code changes and rights are not loaded
6920
6936
  effect(() => {
6921
6937
  const pageCode = this.currentPageCode();
@@ -6966,7 +6982,6 @@ class RightsService {
6966
6982
  */
6967
6983
  initializeRights(pageCode, forceRefresh = false, fetchRightsOnly = 'auto') {
6968
6984
  this.currentPageCode.set(pageCode);
6969
- debugger;
6970
6985
  if (forceRefresh) {
6971
6986
  // Invalidate cache to force fresh data from API
6972
6987
  this.sharedService.invalidateCache(pageCode);
@@ -7170,7 +7185,7 @@ const layoutControlPannelChildRoutes = [{
7170
7185
  },
7171
7186
  {
7172
7187
  path: "home",
7173
- loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-DAy0cN4o.mjs').then(c => c.CideLytHomeWrapperComponent),
7188
+ loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-w9Okruwd.mjs').then(c => c.CideLytHomeWrapperComponent),
7174
7189
  canActivate: [authGuard],
7175
7190
  data: {
7176
7191
  sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
@@ -7178,7 +7193,7 @@ const layoutControlPannelChildRoutes = [{
7178
7193
  },
7179
7194
  {
7180
7195
  path: "dashboard-manager",
7181
- loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-BsvKrr3U.mjs').then(c => c.DashboardManagerComponent),
7196
+ loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-CYS-8fLf.mjs').then(c => c.DashboardManagerComponent),
7182
7197
  canActivate: [authGuard],
7183
7198
  data: {
7184
7199
  sypg_page_code: "cide_lyt_dashboard_manager"
@@ -9002,4 +9017,4 @@ var floatingEntitySelection_component = /*#__PURE__*/Object.freeze({
9002
9017
  */
9003
9018
 
9004
9019
  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 };
9005
- //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-CORQ4qRo.mjs.map
9020
+ //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-BvFZVSjZ.mjs.map