cloud-ide-layout 1.0.147 → 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-C5PGNAll.mjs → cloud-ide-layout-cloud-ide-layout-DN4JMNV5.mjs} +38 -10
  2. package/fesm2022/cloud-ide-layout-cloud-ide-layout-DN4JMNV5.mjs.map +1 -0
  3. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-C07O86cW.mjs → cloud-ide-layout-dashboard-manager.component-CD0o2PzJ.mjs} +2 -2
  4. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-C07O86cW.mjs.map → cloud-ide-layout-dashboard-manager.component-CD0o2PzJ.mjs.map} +1 -1
  5. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BFk0pHD9.mjs → cloud-ide-layout-drawer-theme.component-BgZS9dxX.mjs} +2 -2
  6. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BFk0pHD9.mjs.map → cloud-ide-layout-drawer-theme.component-BgZS9dxX.mjs.map} +1 -1
  7. package/fesm2022/{cloud-ide-layout-floating-entity-selection.component-DJhoaSJ7.mjs → cloud-ide-layout-floating-entity-selection.component-CikoMYde.mjs} +2 -2
  8. package/fesm2022/{cloud-ide-layout-floating-entity-selection.component-DJhoaSJ7.mjs.map → cloud-ide-layout-floating-entity-selection.component-CikoMYde.mjs.map} +1 -1
  9. package/fesm2022/{cloud-ide-layout-home-wrapper.component-DslMllBv.mjs → cloud-ide-layout-home-wrapper.component-B0i4ajj-.mjs} +2 -2
  10. package/fesm2022/{cloud-ide-layout-home-wrapper.component-DslMllBv.mjs.map → cloud-ide-layout-home-wrapper.component-B0i4ajj-.mjs.map} +1 -1
  11. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-DaSO2tlP.mjs → cloud-ide-layout-sidedrawer-notes.component-CwDgPmve.mjs} +2 -2
  12. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-DaSO2tlP.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-C5PGNAll.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-DJhoaSJ7.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');
@@ -3830,6 +3830,8 @@ class CideLytSidebarWrapperComponent {
3830
3830
  router = inject(Router);
3831
3831
  userStatusService = inject(CideLytUserStatusService);
3832
3832
  themeService = inject(CideThemeService);
3833
+ // Track previous entity ID to detect changes
3834
+ previousEntityId = null;
3833
3835
  constructor() {
3834
3836
  // React to active module changes using signal effects
3835
3837
  effect(() => {
@@ -3848,6 +3850,24 @@ class CideLytSidebarWrapperComponent {
3848
3850
  }
3849
3851
  }
3850
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
+ });
3851
3871
  // Subscribe to router events to prevent unwanted module changes on navigation
3852
3872
  // Only listen to NavigationEnd events to avoid triggering on every navigation event
3853
3873
  this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe((event) => {
@@ -3878,6 +3898,18 @@ class CideLytSidebarWrapperComponent {
3878
3898
  this.animateSections.set([true, true, true, true, true]);
3879
3899
  };
3880
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() {
3881
3913
  // Get sidebar menu data with loading state tracking
3882
3914
  // Include entity ID to get menus/rights as per logged in entity
3883
3915
  const activeEntity = this.appState.activeEntity();
@@ -3926,10 +3958,6 @@ class CideLytSidebarWrapperComponent {
3926
3958
  this.moduleLoadComplete.set(true); // Set to true even on error to ensure UI is responsive
3927
3959
  }
3928
3960
  });
3929
- // collecte the width of the sidebar by using the style property
3930
- const cide_lyt_stack_wrapper_width = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue('--cide-lyt-stack-wrapper-width'));
3931
- const cide_lyt_sidebar_menu_width = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue('--cide-lyt-sidebar-menu-width'));
3932
- this.sidebarSetupData.cide_lyt_sidebar_width = (cide_lyt_stack_wrapper_width + cide_lyt_sidebar_menu_width);
3933
3961
  }
3934
3962
  /**
3935
3963
  * Load menus for a specific module
@@ -5003,8 +5031,8 @@ class CideLytSidedrawerWrapperComponent {
5003
5031
  }
5004
5032
  ngOnInit() {
5005
5033
  // Initialize the component map (You'd likely populate this from a config or service)
5006
- this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-DaSO2tlP.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5007
- this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-BFk0pHD9.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);
5008
5036
  }
5009
5037
  async loadComponent(configFor) {
5010
5038
  console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
@@ -6696,7 +6724,7 @@ const layoutControlPannelChildRoutes = [{
6696
6724
  },
6697
6725
  {
6698
6726
  path: "home",
6699
- loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-DslMllBv.mjs').then(c => c.CideLytHomeWrapperComponent),
6727
+ loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-B0i4ajj-.mjs').then(c => c.CideLytHomeWrapperComponent),
6700
6728
  canActivate: [authGuard],
6701
6729
  data: {
6702
6730
  sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
@@ -6704,7 +6732,7 @@ const layoutControlPannelChildRoutes = [{
6704
6732
  },
6705
6733
  {
6706
6734
  path: "dashboard-manager",
6707
- loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-C07O86cW.mjs').then(c => c.DashboardManagerComponent),
6735
+ loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-CD0o2PzJ.mjs').then(c => c.DashboardManagerComponent),
6708
6736
  canActivate: [authGuard],
6709
6737
  data: {
6710
6738
  sypg_page_code: "cide_lyt_dashboard_manager"
@@ -8271,4 +8299,4 @@ var floatingEntityRightsSharing_component = /*#__PURE__*/Object.freeze({
8271
8299
  */
8272
8300
 
8273
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 };
8274
- //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-C5PGNAll.mjs.map
8302
+ //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-DN4JMNV5.mjs.map