cloud-ide-layout 1.0.146 → 1.0.148

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 (15) hide show
  1. package/fesm2022/{cloud-ide-layout-cloud-ide-layout-JYQBTRrb.mjs → cloud-ide-layout-cloud-ide-layout-DN4JMNV5.mjs} +41 -11
  2. package/fesm2022/cloud-ide-layout-cloud-ide-layout-DN4JMNV5.mjs.map +1 -0
  3. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-CpjdIeuX.mjs → cloud-ide-layout-dashboard-manager.component-CD0o2PzJ.mjs} +2 -2
  4. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-CpjdIeuX.mjs.map → cloud-ide-layout-dashboard-manager.component-CD0o2PzJ.mjs.map} +1 -1
  5. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BavBnxPb.mjs → cloud-ide-layout-drawer-theme.component-BgZS9dxX.mjs} +2 -2
  6. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BavBnxPb.mjs.map → cloud-ide-layout-drawer-theme.component-BgZS9dxX.mjs.map} +1 -1
  7. package/fesm2022/{cloud-ide-layout-floating-entity-selection.component-D9xDFZ2U.mjs → cloud-ide-layout-floating-entity-selection.component-CikoMYde.mjs} +2 -2
  8. package/fesm2022/{cloud-ide-layout-floating-entity-selection.component-D9xDFZ2U.mjs.map → cloud-ide-layout-floating-entity-selection.component-CikoMYde.mjs.map} +1 -1
  9. package/fesm2022/{cloud-ide-layout-home-wrapper.component-CcZAQSRK.mjs → cloud-ide-layout-home-wrapper.component-B0i4ajj-.mjs} +2 -2
  10. package/fesm2022/{cloud-ide-layout-home-wrapper.component-CcZAQSRK.mjs.map → cloud-ide-layout-home-wrapper.component-B0i4ajj-.mjs.map} +1 -1
  11. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CfMjTTs9.mjs → cloud-ide-layout-sidedrawer-notes.component-CwDgPmve.mjs} +2 -2
  12. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CfMjTTs9.mjs.map → cloud-ide-layout-sidedrawer-notes.component-CwDgPmve.mjs.map} +1 -1
  13. package/fesm2022/cloud-ide-layout.mjs +1 -1
  14. package/package.json +1 -1
  15. package/fesm2022/cloud-ide-layout-cloud-ide-layout-JYQBTRrb.mjs.map +0 -1
@@ -1379,7 +1379,7 @@ class CideLytFloatingEntitySelectionService {
1379
1379
  }
1380
1380
  try {
1381
1381
  // Use relative import to avoid circular dependency
1382
- const module = await import('./cloud-ide-layout-floating-entity-selection.component-D9xDFZ2U.mjs');
1382
+ const module = await import('./cloud-ide-layout-floating-entity-selection.component-CikoMYde.mjs');
1383
1383
  if (module.CideLytFloatingEntitySelectionComponent) {
1384
1384
  this.containerService.registerComponent('entity-selection-header', module.CideLytFloatingEntitySelectionComponent);
1385
1385
  console.log('✅ Entity selection component registered successfully');
@@ -3390,7 +3390,9 @@ class CideLytHeaderWrapperComponent {
3390
3390
  console.error('Cannot navigate to profile: User ID not found');
3391
3391
  return;
3392
3392
  }
3393
- this.router.navigate(['/user-master/edit', currentUserId]);
3393
+ // Encode user ID using generateStringFromObject (same pattern as user-list component)
3394
+ const queryData = generateStringFromObject({ user_id: currentUserId });
3395
+ this.router.navigate(['/control-panel/user-master/edit', queryData]);
3394
3396
  }
3395
3397
  /**
3396
3398
  * Handle more options dropdown item clicks (DEPRECATED)
@@ -3828,6 +3830,8 @@ class CideLytSidebarWrapperComponent {
3828
3830
  router = inject(Router);
3829
3831
  userStatusService = inject(CideLytUserStatusService);
3830
3832
  themeService = inject(CideThemeService);
3833
+ // Track previous entity ID to detect changes
3834
+ previousEntityId = null;
3831
3835
  constructor() {
3832
3836
  // React to active module changes using signal effects
3833
3837
  effect(() => {
@@ -3846,6 +3850,24 @@ class CideLytSidebarWrapperComponent {
3846
3850
  }
3847
3851
  }
3848
3852
  });
3853
+ // React to entity changes and reload sidebar menus
3854
+ effect(() => {
3855
+ const activeEntity = this.appState.activeEntity();
3856
+ const currentEntityId = activeEntity?._id || null;
3857
+ // Skip on initial load (when previousEntityId is null)
3858
+ if (this.previousEntityId === null) {
3859
+ this.previousEntityId = currentEntityId;
3860
+ console.log('🏢 SIDEBAR: Entity change handler initialized with initial entity:', currentEntityId);
3861
+ return;
3862
+ }
3863
+ // Only reload if entity actually changed and no load is in progress
3864
+ if (this.previousEntityId !== currentEntityId && currentEntityId !== null) {
3865
+ console.log('🔄 SIDEBAR: Entity changed from', this.previousEntityId, 'to', currentEntityId, '- reloading sidebar menus');
3866
+ this.previousEntityId = currentEntityId;
3867
+ // Reload sidebar menus for the new entity
3868
+ this.loadSidebarMenus();
3869
+ }
3870
+ });
3849
3871
  // Subscribe to router events to prevent unwanted module changes on navigation
3850
3872
  // Only listen to NavigationEnd events to avoid triggering on every navigation event
3851
3873
  this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe((event) => {
@@ -3876,6 +3898,18 @@ class CideLytSidebarWrapperComponent {
3876
3898
  this.animateSections.set([true, true, true, true, true]);
3877
3899
  };
3878
3900
  initializeAnimations();
3901
+ // Load sidebar menus on initialization
3902
+ this.loadSidebarMenus();
3903
+ // collecte the width of the sidebar by using the style property
3904
+ const cide_lyt_stack_wrapper_width = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue('--cide-lyt-stack-wrapper-width'));
3905
+ const cide_lyt_sidebar_menu_width = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue('--cide-lyt-sidebar-menu-width'));
3906
+ this.sidebarSetupData.cide_lyt_sidebar_width = (cide_lyt_stack_wrapper_width + cide_lyt_sidebar_menu_width);
3907
+ }
3908
+ /**
3909
+ * Load sidebar menu data
3910
+ * This method is called on initialization and when entity changes
3911
+ */
3912
+ loadSidebarMenus() {
3879
3913
  // Get sidebar menu data with loading state tracking
3880
3914
  // Include entity ID to get menus/rights as per logged in entity
3881
3915
  const activeEntity = this.appState.activeEntity();
@@ -3924,10 +3958,6 @@ class CideLytSidebarWrapperComponent {
3924
3958
  this.moduleLoadComplete.set(true); // Set to true even on error to ensure UI is responsive
3925
3959
  }
3926
3960
  });
3927
- // collecte the width of the sidebar by using the style property
3928
- const cide_lyt_stack_wrapper_width = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue('--cide-lyt-stack-wrapper-width'));
3929
- const cide_lyt_sidebar_menu_width = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue('--cide-lyt-sidebar-menu-width'));
3930
- this.sidebarSetupData.cide_lyt_sidebar_width = (cide_lyt_stack_wrapper_width + cide_lyt_sidebar_menu_width);
3931
3961
  }
3932
3962
  /**
3933
3963
  * Load menus for a specific module
@@ -5001,8 +5031,8 @@ class CideLytSidedrawerWrapperComponent {
5001
5031
  }
5002
5032
  ngOnInit() {
5003
5033
  // Initialize the component map (You'd likely populate this from a config or service)
5004
- this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-CfMjTTs9.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5005
- this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-BavBnxPb.mjs').then(m => m.CideLytDrawerThemeComponent);
5034
+ this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-CwDgPmve.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5035
+ this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-BgZS9dxX.mjs').then(m => m.CideLytDrawerThemeComponent);
5006
5036
  }
5007
5037
  async loadComponent(configFor) {
5008
5038
  console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
@@ -6694,7 +6724,7 @@ const layoutControlPannelChildRoutes = [{
6694
6724
  },
6695
6725
  {
6696
6726
  path: "home",
6697
- loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-CcZAQSRK.mjs').then(c => c.CideLytHomeWrapperComponent),
6727
+ loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-B0i4ajj-.mjs').then(c => c.CideLytHomeWrapperComponent),
6698
6728
  canActivate: [authGuard],
6699
6729
  data: {
6700
6730
  sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
@@ -6702,7 +6732,7 @@ const layoutControlPannelChildRoutes = [{
6702
6732
  },
6703
6733
  {
6704
6734
  path: "dashboard-manager",
6705
- loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-CpjdIeuX.mjs').then(c => c.DashboardManagerComponent),
6735
+ loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-CD0o2PzJ.mjs').then(c => c.DashboardManagerComponent),
6706
6736
  canActivate: [authGuard],
6707
6737
  data: {
6708
6738
  sypg_page_code: "cide_lyt_dashboard_manager"
@@ -8269,4 +8299,4 @@ var floatingEntityRightsSharing_component = /*#__PURE__*/Object.freeze({
8269
8299
  */
8270
8300
 
8271
8301
  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, AppStateService as d, CloudIdeLayoutService as e, CloudIdeLayoutComponent as f, CideLytSharedService as g, ComponentContextService as h, layoutControlPannelChildRoutes as i, CustomRouteReuseStrategy as j, CideLytUserStatusService as k, layoutRoutes as l, CacheManagerService as m, CideLytFileManagerService as n, CideLytFloatingEntityRightsSharingComponent as o, processThemeVariable as p, CideLytFloatingEntityRightsSharingService as q, setCSSVariable as s, themeFactory as t };
8272
- //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-JYQBTRrb.mjs.map
8302
+ //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-DN4JMNV5.mjs.map