cloud-ide-layout 1.0.174 → 1.0.175

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 (13) hide show
  1. package/fesm2022/{cloud-ide-layout-cloud-ide-layout-Cwim-wD5.mjs → cloud-ide-layout-cloud-ide-layout-D3YcbGu3.mjs} +37 -5
  2. package/fesm2022/cloud-ide-layout-cloud-ide-layout-D3YcbGu3.mjs.map +1 -0
  3. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-By3-I91u.mjs → cloud-ide-layout-dashboard-manager.component-DFXCIHTu.mjs} +2 -2
  4. package/fesm2022/{cloud-ide-layout-dashboard-manager.component-By3-I91u.mjs.map → cloud-ide-layout-dashboard-manager.component-DFXCIHTu.mjs.map} +1 -1
  5. package/fesm2022/{cloud-ide-layout-drawer-theme.component-DVg-dInv.mjs → cloud-ide-layout-drawer-theme.component-DbTeiI4z.mjs} +2 -2
  6. package/fesm2022/{cloud-ide-layout-drawer-theme.component-DVg-dInv.mjs.map → cloud-ide-layout-drawer-theme.component-DbTeiI4z.mjs.map} +1 -1
  7. package/fesm2022/{cloud-ide-layout-home-wrapper.component-DAPSGYLf.mjs → cloud-ide-layout-home-wrapper.component-BOua4yeS.mjs} +2 -2
  8. package/fesm2022/{cloud-ide-layout-home-wrapper.component-DAPSGYLf.mjs.map → cloud-ide-layout-home-wrapper.component-BOua4yeS.mjs.map} +1 -1
  9. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-DhnrHthy.mjs → cloud-ide-layout-sidedrawer-notes.component-DehzWBL4.mjs} +2 -2
  10. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-DhnrHthy.mjs.map → cloud-ide-layout-sidedrawer-notes.component-DehzWBL4.mjs.map} +1 -1
  11. package/fesm2022/cloud-ide-layout.mjs +1 -1
  12. package/package.json +1 -1
  13. package/fesm2022/cloud-ide-layout-cloud-ide-layout-Cwim-wD5.mjs.map +0 -1
@@ -2308,6 +2308,8 @@ class CideLytHeaderWrapperComponent {
2308
2308
  currentAcademicYear = signal(null, ...(ngDevMode ? [{ debugName: "currentAcademicYear" }] : []));
2309
2309
  currentFinancialYearName = signal('FY', ...(ngDevMode ? [{ debugName: "currentFinancialYearName" }] : []));
2310
2310
  currentAcademicYearName = signal('AY', ...(ngDevMode ? [{ debugName: "currentAcademicYearName" }] : []));
2311
+ // Track previous entity ID for change detection
2312
+ previousEntityId = null;
2311
2313
  // Signals for notifications
2312
2314
  notifications = signal([], ...(ngDevMode ? [{ debugName: "notifications" }] : []));
2313
2315
  unreadCount = computed(() => this.wsNotificationService?.unreadNotificationsCount() || 0, ...(ngDevMode ? [{ debugName: "unreadCount" }] : []));
@@ -2506,6 +2508,36 @@ class CideLytHeaderWrapperComponent {
2506
2508
  this.updateNotificationDropdown();
2507
2509
  // Then try to load notifications
2508
2510
  this.initializeNotifications();
2511
+ // React to active entity changes - reload financial and academic years when entity changes
2512
+ effect(() => {
2513
+ const activeEntity = this.appStateService.activeEntity();
2514
+ const currentEntityId = activeEntity?._id || null;
2515
+ // Skip on initial load (when previousEntityId is null)
2516
+ if (this.previousEntityId === null) {
2517
+ this.previousEntityId = currentEntityId;
2518
+ console.log('🏢 HEADER: Entity change handler initialized with initial entity:', currentEntityId);
2519
+ return;
2520
+ }
2521
+ // Only reload if entity actually changed
2522
+ if (this.previousEntityId !== currentEntityId && currentEntityId !== null) {
2523
+ console.log('🏢 HEADER: Entity changed from', this.previousEntityId, 'to', currentEntityId, '- reloading financial and academic years');
2524
+ this.previousEntityId = currentEntityId;
2525
+ // Reload financial years and academic years for the new entity
2526
+ this.loadFinancialYears();
2527
+ this.loadAcademicYears();
2528
+ }
2529
+ else if (this.previousEntityId !== null && currentEntityId === null) {
2530
+ // Entity was cleared
2531
+ console.log('🏢 HEADER: Entity cleared');
2532
+ this.previousEntityId = null;
2533
+ this.financialYears.set([]);
2534
+ this.academicYears.set([]);
2535
+ this.currentFinancialYear.set(null);
2536
+ this.currentAcademicYear.set(null);
2537
+ this.currentFinancialYearName.set('FY');
2538
+ this.currentAcademicYearName.set('AY');
2539
+ }
2540
+ });
2509
2541
  }
2510
2542
  /**
2511
2543
  * Toggle sidebar collapsed state
@@ -5247,8 +5279,8 @@ class CideLytSidedrawerWrapperComponent {
5247
5279
  }
5248
5280
  ngOnInit() {
5249
5281
  // Initialize the component map (You'd likely populate this from a config or service)
5250
- this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-DhnrHthy.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5251
- this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-DVg-dInv.mjs').then(m => m.CideLytDrawerThemeComponent);
5282
+ this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-DehzWBL4.mjs').then(m => m.CideLytSidedrawerNotesComponent);
5283
+ this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-DbTeiI4z.mjs').then(m => m.CideLytDrawerThemeComponent);
5252
5284
  }
5253
5285
  async loadComponent(configFor) {
5254
5286
  console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
@@ -6940,7 +6972,7 @@ const layoutControlPannelChildRoutes = [{
6940
6972
  },
6941
6973
  {
6942
6974
  path: "home",
6943
- loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-DAPSGYLf.mjs').then(c => c.CideLytHomeWrapperComponent),
6975
+ loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-BOua4yeS.mjs').then(c => c.CideLytHomeWrapperComponent),
6944
6976
  canActivate: [authGuard],
6945
6977
  data: {
6946
6978
  sypg_page_code: "cide_lyt_home" // Used by RequestService to fetch tab properties
@@ -6948,7 +6980,7 @@ const layoutControlPannelChildRoutes = [{
6948
6980
  },
6949
6981
  {
6950
6982
  path: "dashboard-manager",
6951
- loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-By3-I91u.mjs').then(c => c.DashboardManagerComponent),
6983
+ loadComponent: () => import('./cloud-ide-layout-dashboard-manager.component-DFXCIHTu.mjs').then(c => c.DashboardManagerComponent),
6952
6984
  canActivate: [authGuard],
6953
6985
  data: {
6954
6986
  sypg_page_code: "cide_lyt_dashboard_manager"
@@ -8772,4 +8804,4 @@ var floatingEntitySelection_component = /*#__PURE__*/Object.freeze({
8772
8804
  */
8773
8805
 
8774
8806
  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 };
8775
- //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-Cwim-wD5.mjs.map
8807
+ //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-D3YcbGu3.mjs.map