cloud-ide-layout 1.0.193 → 1.0.194
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-DbL2BVqF.mjs → cloud-ide-layout-cloud-ide-layout-CsY3Ygak.mjs} +15 -9
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-CsY3Ygak.mjs.map +1 -0
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-Bxvu6fzX.mjs → cloud-ide-layout-dashboard-manager.component-BYQI6-FO.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-Bxvu6fzX.mjs.map → cloud-ide-layout-dashboard-manager.component-BYQI6-FO.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-0-NtPP4b.mjs → cloud-ide-layout-drawer-theme.component-KLkC4yub.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-0-NtPP4b.mjs.map → cloud-ide-layout-drawer-theme.component-KLkC4yub.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-DbfUgVoZ.mjs → cloud-ide-layout-home-wrapper.component-71YgePtl.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-DbfUgVoZ.mjs.map → cloud-ide-layout-home-wrapper.component-71YgePtl.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-DfrKyTi7.mjs → cloud-ide-layout-sidedrawer-notes.component-DIJLes0w.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-DfrKyTi7.mjs.map → cloud-ide-layout-sidedrawer-notes.component-DIJLes0w.mjs.map} +1 -1
- package/fesm2022/cloud-ide-layout.mjs +1 -1
- package/package.json +1 -1
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-DbL2BVqF.mjs.map +0 -1
|
@@ -4702,10 +4702,16 @@ class CustomRouteReuseStrategy {
|
|
|
4702
4702
|
// IMPORTANT: We ALWAYS detach routes to support tab-based navigation
|
|
4703
4703
|
// This ensures components are preserved when switching between tabs
|
|
4704
4704
|
shouldDetach(route) {
|
|
4705
|
-
//
|
|
4706
|
-
//
|
|
4707
|
-
//
|
|
4708
|
-
|
|
4705
|
+
// CRITICAL: Only detach LEAF routes (routes with no children)
|
|
4706
|
+
// When navigating to /control-panel/teacher/view/123, Angular calls this for:
|
|
4707
|
+
// 1. /control-panel (has children) - should NOT detach
|
|
4708
|
+
// 2. /teacher (has children) - should NOT detach
|
|
4709
|
+
// 3. /view/123 (leaf route) - SHOULD detach
|
|
4710
|
+
// We only want to store the deepest/final route, not parent routes
|
|
4711
|
+
const hasChildren = route.firstChild !== null;
|
|
4712
|
+
const shouldDetach = !hasChildren; // Only detach if no children
|
|
4713
|
+
console.log(`🔍 [shouldDetach] Route: ${this.getPathKey(route)}, hasChildren: ${hasChildren}, shouldDetach: ${shouldDetach}`);
|
|
4714
|
+
return shouldDetach;
|
|
4709
4715
|
}
|
|
4710
4716
|
// Stores the detached route.
|
|
4711
4717
|
// IMPORTANT: We ALWAYS store routes to support tab-based navigation
|
|
@@ -5404,8 +5410,8 @@ class CideLytSidedrawerWrapperComponent {
|
|
|
5404
5410
|
}
|
|
5405
5411
|
ngOnInit() {
|
|
5406
5412
|
// Initialize the component map (You'd likely populate this from a config or service)
|
|
5407
|
-
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-
|
|
5408
|
-
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-
|
|
5413
|
+
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-DIJLes0w.mjs').then(m => m.CideLytSidedrawerNotesComponent);
|
|
5414
|
+
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-KLkC4yub.mjs').then(m => m.CideLytDrawerThemeComponent);
|
|
5409
5415
|
}
|
|
5410
5416
|
async loadComponent(configFor) {
|
|
5411
5417
|
console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
|
|
@@ -7097,7 +7103,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
7097
7103
|
},
|
|
7098
7104
|
{
|
|
7099
7105
|
path: "home",
|
|
7100
|
-
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-
|
|
7106
|
+
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-71YgePtl.mjs').then(c => c.CideLytHomeWrapperComponent),
|
|
7101
7107
|
canActivate: [authGuard],
|
|
7102
7108
|
data: {
|
|
7103
7109
|
sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
|
|
@@ -7105,7 +7111,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
7105
7111
|
},
|
|
7106
7112
|
{
|
|
7107
7113
|
path: "dashboard-manager",
|
|
7108
|
-
loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-
|
|
7114
|
+
loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-BYQI6-FO.mjs').then(c => c.DashboardManagerComponent),
|
|
7109
7115
|
canActivate: [authGuard],
|
|
7110
7116
|
data: {
|
|
7111
7117
|
sypg_page_code: "cide_lyt_dashboard_manager"
|
|
@@ -8929,4 +8935,4 @@ var floatingEntitySelection_component = /*#__PURE__*/Object.freeze({
|
|
|
8929
8935
|
*/
|
|
8930
8936
|
|
|
8931
8937
|
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 };
|
|
8932
|
-
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-
|
|
8938
|
+
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-CsY3Ygak.mjs.map
|