cloud-ide-layout 1.0.203 → 1.0.204
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.
- package/fesm2022/{cloud-ide-layout-cloud-ide-layout-BvFZVSjZ.mjs → cloud-ide-layout-cloud-ide-layout-DbmOIzcp.mjs} +41 -14
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-DbmOIzcp.mjs.map +1 -0
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-CYS-8fLf.mjs → cloud-ide-layout-dashboard-manager.component-GSZtQgsb.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-CYS-8fLf.mjs.map → cloud-ide-layout-dashboard-manager.component-GSZtQgsb.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-XFb3tGBD.mjs → cloud-ide-layout-drawer-theme.component-CGKOAqaC.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-XFb3tGBD.mjs.map → cloud-ide-layout-drawer-theme.component-CGKOAqaC.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-w9Okruwd.mjs → cloud-ide-layout-home-wrapper.component-DWW33pNY.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-w9Okruwd.mjs.map → cloud-ide-layout-home-wrapper.component-DWW33pNY.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CCiOXRJJ.mjs → cloud-ide-layout-sidedrawer-notes.component-BmatY1F3.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CCiOXRJJ.mjs.map → cloud-ide-layout-sidedrawer-notes.component-BmatY1F3.mjs.map} +1 -1
- package/fesm2022/cloud-ide-layout.mjs +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-BvFZVSjZ.mjs.map +0 -1
|
@@ -4786,18 +4786,45 @@ class CustomRouteReuseStrategy {
|
|
|
4786
4786
|
}
|
|
4787
4787
|
const handle = this.storedRoutes[pathKey];
|
|
4788
4788
|
// Verify the handle is still valid (not destroyed)
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
if (handleAny.destroyed === true || (handleAny.hostView && handleAny.hostView.destroyed)) {
|
|
4794
|
-
console.log(`⚠️ Stored route handle for ${pathKey} is already destroyed, removing from cache`);
|
|
4795
|
-
delete this.storedRoutes[pathKey];
|
|
4796
|
-
return null;
|
|
4797
|
-
}
|
|
4789
|
+
if (this.isHandleDestroyed(handle)) {
|
|
4790
|
+
console.warn(`⚠️ [retrieve] Stored route handle for ${pathKey} is DESTROYED. Removing from cache.`);
|
|
4791
|
+
delete this.storedRoutes[pathKey];
|
|
4792
|
+
return null;
|
|
4798
4793
|
}
|
|
4794
|
+
// console.log(`♻️ [retrieve] Reusing route: ${pathKey}`);
|
|
4799
4795
|
return handle;
|
|
4800
4796
|
}
|
|
4797
|
+
// Helper to check if a handle is destroyed
|
|
4798
|
+
isHandleDestroyed(handle) {
|
|
4799
|
+
if (!handle)
|
|
4800
|
+
return true;
|
|
4801
|
+
try {
|
|
4802
|
+
// Check standard ComponentRef
|
|
4803
|
+
if (handle.hostView && handle.hostView.destroyed)
|
|
4804
|
+
return true;
|
|
4805
|
+
if (handle.destroyed)
|
|
4806
|
+
return true;
|
|
4807
|
+
// Check wrapped ComponentRef (nested properties)
|
|
4808
|
+
const componentRef = handle.componentRef || handle.component ||
|
|
4809
|
+
handle.context || handle._componentRef;
|
|
4810
|
+
if (componentRef) {
|
|
4811
|
+
if (componentRef.hostView && componentRef.hostView.destroyed)
|
|
4812
|
+
return true;
|
|
4813
|
+
if (componentRef.destroyed)
|
|
4814
|
+
return true;
|
|
4815
|
+
}
|
|
4816
|
+
// Check ViewContainerRef
|
|
4817
|
+
if (typeof handle.length === 'number' && typeof handle.clear === 'function') {
|
|
4818
|
+
// Harder to check if specific views are destroyed, but container itself usually doesn't have 'destroyed' prop
|
|
4819
|
+
// We assume valid if it exists
|
|
4820
|
+
}
|
|
4821
|
+
}
|
|
4822
|
+
catch (e) {
|
|
4823
|
+
console.warn('Error checking handle destruction state', e);
|
|
4824
|
+
return true; // Assume destroyed on error to be safe
|
|
4825
|
+
}
|
|
4826
|
+
return false;
|
|
4827
|
+
}
|
|
4801
4828
|
// Determines if a route should be reused.
|
|
4802
4829
|
shouldReuseRoute(future, curr) {
|
|
4803
4830
|
return future.routeConfig === curr.routeConfig;
|
|
@@ -5485,8 +5512,8 @@ class CideLytSidedrawerWrapperComponent {
|
|
|
5485
5512
|
}
|
|
5486
5513
|
ngOnInit() {
|
|
5487
5514
|
// Initialize the component map (You'd likely populate this from a config or service)
|
|
5488
|
-
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-
|
|
5489
|
-
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-
|
|
5515
|
+
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-BmatY1F3.mjs').then(m => m.CideLytSidedrawerNotesComponent);
|
|
5516
|
+
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-CGKOAqaC.mjs').then(m => m.CideLytDrawerThemeComponent);
|
|
5490
5517
|
}
|
|
5491
5518
|
async loadComponent(configFor) {
|
|
5492
5519
|
console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
|
|
@@ -7185,7 +7212,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
7185
7212
|
},
|
|
7186
7213
|
{
|
|
7187
7214
|
path: "home",
|
|
7188
|
-
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-
|
|
7215
|
+
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-DWW33pNY.mjs').then(c => c.CideLytHomeWrapperComponent),
|
|
7189
7216
|
canActivate: [authGuard],
|
|
7190
7217
|
data: {
|
|
7191
7218
|
sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
|
|
@@ -7193,7 +7220,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
7193
7220
|
},
|
|
7194
7221
|
{
|
|
7195
7222
|
path: "dashboard-manager",
|
|
7196
|
-
loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-
|
|
7223
|
+
loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-GSZtQgsb.mjs').then(c => c.DashboardManagerComponent),
|
|
7197
7224
|
canActivate: [authGuard],
|
|
7198
7225
|
data: {
|
|
7199
7226
|
sypg_page_code: "cide_lyt_dashboard_manager"
|
|
@@ -9017,4 +9044,4 @@ var floatingEntitySelection_component = /*#__PURE__*/Object.freeze({
|
|
|
9017
9044
|
*/
|
|
9018
9045
|
|
|
9019
9046
|
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 };
|
|
9020
|
-
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-
|
|
9047
|
+
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-DbmOIzcp.mjs.map
|