cloud-ide-layout 1.0.173 → 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.
- package/fesm2022/{cloud-ide-layout-cloud-ide-layout-xHO4_ZWL.mjs → cloud-ide-layout-cloud-ide-layout-D3YcbGu3.mjs} +38 -6
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-D3YcbGu3.mjs.map +1 -0
- package/fesm2022/cloud-ide-layout-dashboard-cards.service-BGaKcq7H.mjs.map +1 -1
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-BQCW_9Ev.mjs → cloud-ide-layout-dashboard-manager.component-DFXCIHTu.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-dashboard-manager.component-BQCW_9Ev.mjs.map → cloud-ide-layout-dashboard-manager.component-DFXCIHTu.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-Df-z-sDP.mjs → cloud-ide-layout-drawer-theme.component-DbTeiI4z.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-Df-z-sDP.mjs.map → cloud-ide-layout-drawer-theme.component-DbTeiI4z.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-home-wrapper.component--eH9Nakh.mjs → cloud-ide-layout-home-wrapper.component-BOua4yeS.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-home-wrapper.component--eH9Nakh.mjs.map → cloud-ide-layout-home-wrapper.component-BOua4yeS.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-DMfEJ1w0.mjs → cloud-ide-layout-sidedrawer-notes.component-DehzWBL4.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-DMfEJ1w0.mjs.map → cloud-ide-layout-sidedrawer-notes.component-DehzWBL4.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-xHO4_ZWL.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-
|
|
5251
|
-
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-
|
|
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);
|
|
@@ -6655,7 +6687,7 @@ class CideLytSharedWrapperComponent {
|
|
|
6655
6687
|
}
|
|
6656
6688
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CideLytSharedWrapperComponent, decorators: [{
|
|
6657
6689
|
type: Component,
|
|
6658
|
-
args: [{ selector: 'cide-lyt-shared-wrapper', imports: [CideEleBreadcrumbComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tw-w-full tw-h-full tw-flex tw-flex-col tw-max-w-full tw-overflow-hidden\">\n <div\n class=\"tw-sticky tw-w-full tw-max-w-full tw-top-0 tw-z-10 tw-bg-white tw-border-b tw-border-gray-200 tw-shadow-sm\">\n <div\n class=\"tw-flex tw-items-start sm:tw-items-center tw-justify-between tw-gap-2 tw-px-0 tw-py-0 tw-min-w-0 tw-overflow-hidden tw-flex-col sm:tw-flex-row\">\n <!-- Breadcrumb - Full width on mobile/tablet, flex-1 on desktop -->\n <div class=\"tw-w-full sm:tw-flex-1 tw-min-w-0 tw-overflow-hidden tw-order-1\">\n <cide-ele-breadcrumb [style]=\"'modern'\" [compact]=\"true\"\n (homeClick)=\"onBreadcrumbHomeClick()\"></cide-ele-breadcrumb>\n </div>\n <!-- Breadcrumb Actions - Full width on mobile, auto on tablet/desktop -->\n <div class=\"tw-w-full sm:tw-w-auto tw-flex-shrink-0 sm:tw-ml-2 md:tw-ml-4 tw-order-2\">\n <ng-content select=\"[breadcrumb-actions]\"></ng-content>\n </div>\n </div>\n </div>\n\n <div class=\"tw-flex-1 tw-w-full tw-max-w-full tw-overflow-y-auto tw-overflow-x-hidden tw-min-h-0\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [":host{display:block;height:100%;width:100%}:host>div{display:flex;flex-direction:column;height:100%;width:100%}::ng-deep cide-lyt-shared-wrapper{height:100%!important;display:block!important;width:100%!important}@media (max-width: 479px){::ng-deep [breadcrumb-actions]{flex-shrink:0;width:100%;display:flex;justify-content:flex-end;margin-top:.5rem}::ng-deep cide-ele-breadcrumb{font-size:.5625rem;width:100%}::ng-deep cide-ele-breadcrumb nav ol{flex-wrap:wrap;align-items:center;gap:.125rem}::ng-deep cide-ele-breadcrumb .breadcrumb-container{width:100%;overflow:visible}}@media (min-width: 480px) and (max-width: 640px){::ng-deep [breadcrumb-actions]{flex-shrink:0;width:100%;display:flex;justify-content:flex-end;margin-top:.5rem}::ng-deep cide-ele-breadcrumb{font-size:.625rem;width:100%}::ng-deep cide-ele-breadcrumb nav ol{flex-wrap:wrap;align-items:center}::ng-deep cide-ele-breadcrumb .breadcrumb-container{width:100%;overflow:visible}}@media (min-width: 641px) and (max-width: 1024px){::ng-deep [breadcrumb-actions]{flex-shrink:0;margin-left:1rem}::ng-deep cide-ele-breadcrumb{font-size:.6875rem;width:100%}::ng-deep cide-ele-breadcrumb nav ol{flex-wrap:wrap;align-items:center}::ng-deep cide-ele-breadcrumb .breadcrumb-container{width:100%;overflow:visible}}@media (min-width: 1025px){::ng-deep [breadcrumb-actions]{flex-shrink:0;width:auto;margin-top:0;margin-left:1rem}::ng-deep cide-ele-breadcrumb{font-size:.75rem;width:auto}::ng-deep cide-ele-breadcrumb nav ol{flex-wrap:nowrap;align-items:center;gap:.25rem}::ng-deep cide-ele-breadcrumb .breadcrumb-container{width:auto;overflow:visible}}\n"] }]
|
|
6690
|
+
args: [{ selector: 'cide-lyt-shared-wrapper', standalone: true, imports: [CideEleBreadcrumbComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tw-w-full tw-h-full tw-flex tw-flex-col tw-max-w-full tw-overflow-hidden\">\n <div\n class=\"tw-sticky tw-w-full tw-max-w-full tw-top-0 tw-z-10 tw-bg-white tw-border-b tw-border-gray-200 tw-shadow-sm\">\n <div\n class=\"tw-flex tw-items-start sm:tw-items-center tw-justify-between tw-gap-2 tw-px-0 tw-py-0 tw-min-w-0 tw-overflow-hidden tw-flex-col sm:tw-flex-row\">\n <!-- Breadcrumb - Full width on mobile/tablet, flex-1 on desktop -->\n <div class=\"tw-w-full sm:tw-flex-1 tw-min-w-0 tw-overflow-hidden tw-order-1\">\n <cide-ele-breadcrumb [style]=\"'modern'\" [compact]=\"true\"\n (homeClick)=\"onBreadcrumbHomeClick()\"></cide-ele-breadcrumb>\n </div>\n <!-- Breadcrumb Actions - Full width on mobile, auto on tablet/desktop -->\n <div class=\"tw-w-full sm:tw-w-auto tw-flex-shrink-0 sm:tw-ml-2 md:tw-ml-4 tw-order-2\">\n <ng-content select=\"[breadcrumb-actions]\"></ng-content>\n </div>\n </div>\n </div>\n\n <div class=\"tw-flex-1 tw-w-full tw-max-w-full tw-overflow-y-auto tw-overflow-x-hidden tw-min-h-0\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [":host{display:block;height:100%;width:100%}:host>div{display:flex;flex-direction:column;height:100%;width:100%}::ng-deep cide-lyt-shared-wrapper{height:100%!important;display:block!important;width:100%!important}@media (max-width: 479px){::ng-deep [breadcrumb-actions]{flex-shrink:0;width:100%;display:flex;justify-content:flex-end;margin-top:.5rem}::ng-deep cide-ele-breadcrumb{font-size:.5625rem;width:100%}::ng-deep cide-ele-breadcrumb nav ol{flex-wrap:wrap;align-items:center;gap:.125rem}::ng-deep cide-ele-breadcrumb .breadcrumb-container{width:100%;overflow:visible}}@media (min-width: 480px) and (max-width: 640px){::ng-deep [breadcrumb-actions]{flex-shrink:0;width:100%;display:flex;justify-content:flex-end;margin-top:.5rem}::ng-deep cide-ele-breadcrumb{font-size:.625rem;width:100%}::ng-deep cide-ele-breadcrumb nav ol{flex-wrap:wrap;align-items:center}::ng-deep cide-ele-breadcrumb .breadcrumb-container{width:100%;overflow:visible}}@media (min-width: 641px) and (max-width: 1024px){::ng-deep [breadcrumb-actions]{flex-shrink:0;margin-left:1rem}::ng-deep cide-ele-breadcrumb{font-size:.6875rem;width:100%}::ng-deep cide-ele-breadcrumb nav ol{flex-wrap:wrap;align-items:center}::ng-deep cide-ele-breadcrumb .breadcrumb-container{width:100%;overflow:visible}}@media (min-width: 1025px){::ng-deep [breadcrumb-actions]{flex-shrink:0;width:auto;margin-top:0;margin-left:1rem}::ng-deep cide-ele-breadcrumb{font-size:.75rem;width:auto}::ng-deep cide-ele-breadcrumb nav ol{flex-wrap:nowrap;align-items:center;gap:.25rem}::ng-deep cide-ele-breadcrumb .breadcrumb-container{width:auto;overflow:visible}}\n"] }]
|
|
6659
6691
|
}], ctorParameters: () => [], propDecorators: { breadcrumb: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CideEleBreadcrumbComponent), { isSignal: true }] }], shared_wrapper_setup_param: [{ type: i0.Input, args: [{ isSignal: true, alias: "shared_wrapper_setup_param", required: false }] }], breadcrumb_data: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumb_data", required: false }] }] } });
|
|
6660
6692
|
|
|
6661
6693
|
/**
|
|
@@ -6940,7 +6972,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
6940
6972
|
},
|
|
6941
6973
|
{
|
|
6942
6974
|
path: "home",
|
|
6943
|
-
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component
|
|
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-
|
|
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-
|
|
8807
|
+
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-D3YcbGu3.mjs.map
|