cloud-ide-layout 1.0.187 → 1.0.188
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-CSA4WioJ.mjs → cloud-ide-layout-cloud-ide-layout-uA8lWEih.mjs} +18 -12
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-uA8lWEih.mjs.map +1 -0
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-DM2Mo6P7.mjs → cloud-ide-layout-dashboard-manager.component-DRi08LTz.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-DM2Mo6P7.mjs.map → cloud-ide-layout-dashboard-manager.component-DRi08LTz.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-BtIN5K29.mjs → cloud-ide-layout-drawer-theme.component-BfbYAsrL.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-BtIN5K29.mjs.map → cloud-ide-layout-drawer-theme.component-BfbYAsrL.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-uqBqyF6Z.mjs → cloud-ide-layout-home-wrapper.component-35VCCHPu.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-uqBqyF6Z.mjs.map → cloud-ide-layout-home-wrapper.component-35VCCHPu.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-D_LnurNk.mjs → cloud-ide-layout-sidedrawer-notes.component-fmRM4jbS.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-D_LnurNk.mjs.map → cloud-ide-layout-sidedrawer-notes.component-fmRM4jbS.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-CSA4WioJ.mjs.map +0 -1
|
@@ -4676,16 +4676,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
4676
4676
|
class CustomRouteReuseStrategy {
|
|
4677
4677
|
storedRoutes = {};
|
|
4678
4678
|
// Generates a unique key for a route.
|
|
4679
|
-
//
|
|
4680
|
-
// to ensure distinct states for tabs differing by query params.
|
|
4679
|
+
// This key includes sorted query parameters to ensure distinct states for tabs differing by query params.
|
|
4681
4680
|
getPathKey(route) {
|
|
4682
4681
|
let path = route.pathFromRoot
|
|
4683
4682
|
.map(r => r.url.map(segment => segment.path).join('/'))
|
|
4684
4683
|
.filter(p => p.length > 0)
|
|
4685
4684
|
.join('/');
|
|
4686
|
-
//
|
|
4687
|
-
//
|
|
4688
|
-
if (route.
|
|
4685
|
+
// Always append query parameters to the key for tab-based navigation
|
|
4686
|
+
// This ensures each unique route + params combination gets its own stored component
|
|
4687
|
+
if (route.queryParamMap.keys.length > 0) {
|
|
4689
4688
|
const queryParams = route.queryParamMap.keys
|
|
4690
4689
|
.sort() // Ensure consistent order of query parameters
|
|
4691
4690
|
.map(key => `${key}=${route.queryParamMap.get(key)}`)
|
|
@@ -4695,14 +4694,21 @@ class CustomRouteReuseStrategy {
|
|
|
4695
4694
|
return path;
|
|
4696
4695
|
}
|
|
4697
4696
|
// Determines if this route (and its subtree) should be detached to be reused later.
|
|
4697
|
+
// IMPORTANT: We ALWAYS detach routes to support tab-based navigation
|
|
4698
|
+
// This ensures components are preserved when switching between tabs
|
|
4698
4699
|
shouldDetach(route) {
|
|
4699
|
-
|
|
4700
|
+
// Always detach routes to preserve component state for tab navigation
|
|
4701
|
+
// Previously this only detached routes with reuseTab: true flag,
|
|
4702
|
+
// but dynamic tab routes don't have this flag set
|
|
4703
|
+
return true;
|
|
4700
4704
|
}
|
|
4701
4705
|
// Stores the detached route.
|
|
4706
|
+
// IMPORTANT: We ALWAYS store routes to support tab-based navigation
|
|
4702
4707
|
store(route, handle) {
|
|
4703
4708
|
const pathKey = this.getPathKey(route);
|
|
4704
|
-
if (handle &&
|
|
4709
|
+
if (handle && pathKey) {
|
|
4705
4710
|
this.storedRoutes[pathKey] = handle;
|
|
4711
|
+
console.log(`📦 [RouteReuseStrategy] Stored route: ${pathKey}`);
|
|
4706
4712
|
}
|
|
4707
4713
|
}
|
|
4708
4714
|
// Determines if this route (and its subtree) should be reattached.
|
|
@@ -5384,8 +5390,8 @@ class CideLytSidedrawerWrapperComponent {
|
|
|
5384
5390
|
}
|
|
5385
5391
|
ngOnInit() {
|
|
5386
5392
|
// Initialize the component map (You'd likely populate this from a config or service)
|
|
5387
|
-
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-
|
|
5388
|
-
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-
|
|
5393
|
+
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-fmRM4jbS.mjs').then(m => m.CideLytSidedrawerNotesComponent);
|
|
5394
|
+
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-BfbYAsrL.mjs').then(m => m.CideLytDrawerThemeComponent);
|
|
5389
5395
|
}
|
|
5390
5396
|
async loadComponent(configFor) {
|
|
5391
5397
|
console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
|
|
@@ -7077,7 +7083,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
7077
7083
|
},
|
|
7078
7084
|
{
|
|
7079
7085
|
path: "home",
|
|
7080
|
-
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-
|
|
7086
|
+
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-35VCCHPu.mjs').then(c => c.CideLytHomeWrapperComponent),
|
|
7081
7087
|
canActivate: [authGuard],
|
|
7082
7088
|
data: {
|
|
7083
7089
|
sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
|
|
@@ -7085,7 +7091,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
7085
7091
|
},
|
|
7086
7092
|
{
|
|
7087
7093
|
path: "dashboard-manager",
|
|
7088
|
-
loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-
|
|
7094
|
+
loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-DRi08LTz.mjs').then(c => c.DashboardManagerComponent),
|
|
7089
7095
|
canActivate: [authGuard],
|
|
7090
7096
|
data: {
|
|
7091
7097
|
sypg_page_code: "cide_lyt_dashboard_manager"
|
|
@@ -8909,4 +8915,4 @@ var floatingEntitySelection_component = /*#__PURE__*/Object.freeze({
|
|
|
8909
8915
|
*/
|
|
8910
8916
|
|
|
8911
8917
|
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 };
|
|
8912
|
-
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-
|
|
8918
|
+
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-uA8lWEih.mjs.map
|