cloud-ide-layout 1.0.58 → 1.0.59
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-IrJI7hqv.mjs → cloud-ide-layout-cloud-ide-layout-MI4vdHsC.mjs} +35 -13
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-MI4vdHsC.mjs.map +1 -0
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-CXgoCS5N.mjs → cloud-ide-layout-drawer-theme.component-rOYqhLFu.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-CXgoCS5N.mjs.map → cloud-ide-layout-drawer-theme.component-rOYqhLFu.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-floating-entity-selection.component-uW3aoXcx.mjs → cloud-ide-layout-floating-entity-selection.component-Ckw9qRL-.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-floating-entity-selection.component-uW3aoXcx.mjs.map → cloud-ide-layout-floating-entity-selection.component-Ckw9qRL-.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-CWXG35tj.mjs → cloud-ide-layout-home-wrapper.component-BBR8urqQ.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-CWXG35tj.mjs.map → cloud-ide-layout-home-wrapper.component-BBR8urqQ.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-C05Vry8k.mjs → cloud-ide-layout-sidedrawer-notes.component-Dyc932g3.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-C05Vry8k.mjs.map → cloud-ide-layout-sidedrawer-notes.component-Dyc932g3.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-IrJI7hqv.mjs.map +0 -1
|
@@ -1266,7 +1266,7 @@ class CideLytFloatingEntitySelectionService {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
try {
|
|
1268
1268
|
// Use relative import to avoid circular dependency
|
|
1269
|
-
const module = await import('./cloud-ide-layout-floating-entity-selection.component-
|
|
1269
|
+
const module = await import('./cloud-ide-layout-floating-entity-selection.component-Ckw9qRL-.mjs');
|
|
1270
1270
|
if (module.CideLytFloatingEntitySelectionComponent) {
|
|
1271
1271
|
this.containerService.registerComponent('entity-selection-header', module.CideLytFloatingEntitySelectionComponent);
|
|
1272
1272
|
console.log('✅ Entity selection component registered successfully');
|
|
@@ -1592,17 +1592,39 @@ class CideLytHeaderWrapperComponent {
|
|
|
1592
1592
|
*/
|
|
1593
1593
|
updateFinancialYearDropdown() {
|
|
1594
1594
|
const years = this.financialYears();
|
|
1595
|
-
this.financialYearItems = years.map(year =>
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1595
|
+
this.financialYearItems = years.map(year => {
|
|
1596
|
+
// Use correct field names: accyr_name, accyr_from_date, accyr_to_date
|
|
1597
|
+
const name = year.accyr_name;
|
|
1598
|
+
const fromDate = year.accyr_from_date;
|
|
1599
|
+
const toDate = year.accyr_to_date;
|
|
1600
|
+
// Build label with proper fallback
|
|
1601
|
+
let label = name;
|
|
1602
|
+
if (!label && fromDate && toDate) {
|
|
1603
|
+
// Format dates if they're Date objects
|
|
1604
|
+
const from = fromDate instanceof Date ? fromDate.toISOString().split('T')[0] : fromDate;
|
|
1605
|
+
const to = toDate instanceof Date ? toDate.toISOString().split('T')[0] : toDate;
|
|
1606
|
+
label = `${from} - ${to}`;
|
|
1607
|
+
}
|
|
1608
|
+
else if (!label && (fromDate || toDate)) {
|
|
1609
|
+
const date = fromDate || toDate;
|
|
1610
|
+
label = date instanceof Date ? date.toISOString().split('T')[0] : date || 'Financial Year';
|
|
1611
|
+
}
|
|
1612
|
+
else if (!label) {
|
|
1613
|
+
label = 'Financial Year';
|
|
1614
|
+
}
|
|
1615
|
+
return {
|
|
1616
|
+
id: year._id,
|
|
1617
|
+
label: label,
|
|
1618
|
+
icon: 'calendar_today',
|
|
1619
|
+
iconColor: 'tw-text-blue-500'
|
|
1620
|
+
};
|
|
1621
|
+
});
|
|
1601
1622
|
// Set current financial year (first active one or first in list)
|
|
1602
|
-
|
|
1623
|
+
// Use correct field name: accyr_isactive
|
|
1624
|
+
const currentFY = years.find(year => year.accyr_isactive) || years[0];
|
|
1603
1625
|
if (currentFY) {
|
|
1604
1626
|
this.currentFinancialYear.set(currentFY);
|
|
1605
|
-
this.currentFinancialYearName.set(currentFY.
|
|
1627
|
+
this.currentFinancialYearName.set(currentFY.accyr_name || 'FY');
|
|
1606
1628
|
}
|
|
1607
1629
|
}
|
|
1608
1630
|
/**
|
|
@@ -2964,8 +2986,8 @@ class CideLytSidedrawerWrapperComponent {
|
|
|
2964
2986
|
}
|
|
2965
2987
|
ngOnInit() {
|
|
2966
2988
|
// Initialize the component map (You'd likely populate this from a config or service)
|
|
2967
|
-
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-
|
|
2968
|
-
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-
|
|
2989
|
+
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-Dyc932g3.mjs').then(m => m.CideLytSidedrawerNotesComponent);
|
|
2990
|
+
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-rOYqhLFu.mjs').then(m => m.CideLytDrawerThemeComponent);
|
|
2969
2991
|
}
|
|
2970
2992
|
async loadComponent(configFor) {
|
|
2971
2993
|
console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
|
|
@@ -3488,7 +3510,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
3488
3510
|
},
|
|
3489
3511
|
{
|
|
3490
3512
|
path: "home",
|
|
3491
|
-
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-
|
|
3513
|
+
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-BBR8urqQ.mjs').then(c => c.CideLytHomeWrapperComponent),
|
|
3492
3514
|
canActivate: [authGuard],
|
|
3493
3515
|
data: {
|
|
3494
3516
|
reuseTab: true, // For CustomRouteReuseStrategy
|
|
@@ -5056,4 +5078,4 @@ var floatingEntityRightsSharing_component = /*#__PURE__*/Object.freeze({
|
|
|
5056
5078
|
*/
|
|
5057
5079
|
|
|
5058
5080
|
export { AppStateHelperService as A, CideLytSharedWrapperComponent as C, ENVIRONMENT_CONFIG as E, CideLytSidebarService as a, CideLytRequestService as b, CideLytSidedrawerService as c, CideLytThemeService as d, AppStateService as e, CloudIdeLayoutService as f, CloudIdeLayoutComponent as g, CideLytSharedService 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 };
|
|
5059
|
-
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-
|
|
5081
|
+
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-MI4vdHsC.mjs.map
|