cloud-ide-layout 1.0.201 → 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-DHW_nlcO.mjs → cloud-ide-layout-cloud-ide-layout-DbmOIzcp.mjs} +49 -15
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-DbmOIzcp.mjs.map +1 -0
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-LiWvRKm-.mjs → cloud-ide-layout-dashboard-manager.component-GSZtQgsb.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-LiWvRKm-.mjs.map → cloud-ide-layout-dashboard-manager.component-GSZtQgsb.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-Bbdpy9Aq.mjs → cloud-ide-layout-drawer-theme.component-CGKOAqaC.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-Bbdpy9Aq.mjs.map → cloud-ide-layout-drawer-theme.component-CGKOAqaC.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-DD0AJBQY.mjs → cloud-ide-layout-home-wrapper.component-DWW33pNY.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-DD0AJBQY.mjs.map → cloud-ide-layout-home-wrapper.component-DWW33pNY.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-C0PZLwXJ.mjs → cloud-ide-layout-sidedrawer-notes.component-BmatY1F3.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-C0PZLwXJ.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 +2 -1
- package/package.json +1 -1
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-DHW_nlcO.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);
|
|
@@ -6919,12 +6946,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
6919
6946
|
*/
|
|
6920
6947
|
class RightsService {
|
|
6921
6948
|
sharedService = inject(CideLytSharedService);
|
|
6922
|
-
|
|
6949
|
+
appStateService = inject(AppStateService);
|
|
6923
6950
|
// Current page code signal
|
|
6924
6951
|
currentPageCode = signal('', ...(ngDevMode ? [{ debugName: "currentPageCode" }] : []));
|
|
6925
6952
|
// Separate signal for rights-only data (when fetched via rights-only endpoint)
|
|
6926
6953
|
rightsOnlyCache = signal({}, ...(ngDevMode ? [{ debugName: "rightsOnlyCache" }] : []));
|
|
6927
6954
|
constructor() {
|
|
6955
|
+
// Listen for entity changes and clear rights cache
|
|
6956
|
+
this.appStateService.registerEntityChangeHandler(() => {
|
|
6957
|
+
console.log('🔄 RightsService: Entity changed, clearing rights cache');
|
|
6958
|
+
this.rightsOnlyCache.set({});
|
|
6959
|
+
// We also reset current page code to force effect to re-run if needed
|
|
6960
|
+
// this.currentPageCode.set('');
|
|
6961
|
+
});
|
|
6928
6962
|
// Auto-fetch rights when page code changes and rights are not loaded
|
|
6929
6963
|
effect(() => {
|
|
6930
6964
|
const pageCode = this.currentPageCode();
|
|
@@ -7178,7 +7212,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
7178
7212
|
},
|
|
7179
7213
|
{
|
|
7180
7214
|
path: "home",
|
|
7181
|
-
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-
|
|
7215
|
+
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-DWW33pNY.mjs').then(c => c.CideLytHomeWrapperComponent),
|
|
7182
7216
|
canActivate: [authGuard],
|
|
7183
7217
|
data: {
|
|
7184
7218
|
sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
|
|
@@ -7186,7 +7220,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
7186
7220
|
},
|
|
7187
7221
|
{
|
|
7188
7222
|
path: "dashboard-manager",
|
|
7189
|
-
loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-
|
|
7223
|
+
loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-GSZtQgsb.mjs').then(c => c.DashboardManagerComponent),
|
|
7190
7224
|
canActivate: [authGuard],
|
|
7191
7225
|
data: {
|
|
7192
7226
|
sypg_page_code: "cide_lyt_dashboard_manager"
|
|
@@ -9010,4 +9044,4 @@ var floatingEntitySelection_component = /*#__PURE__*/Object.freeze({
|
|
|
9010
9044
|
*/
|
|
9011
9045
|
|
|
9012
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 };
|
|
9013
|
-
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-
|
|
9047
|
+
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-DbmOIzcp.mjs.map
|