cloud-ide-layout 1.0.44 → 1.0.49

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-DkJCqrlp.mjs → cloud-ide-layout-cloud-ide-layout-Dp5qc3C5.mjs} +18 -13
  2. package/fesm2022/cloud-ide-layout-cloud-ide-layout-Dp5qc3C5.mjs.map +1 -0
  3. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BDULJLAW.mjs → cloud-ide-layout-drawer-theme.component-BkX1xh6A.mjs} +2 -2
  4. package/fesm2022/{cloud-ide-layout-drawer-theme.component-BDULJLAW.mjs.map → cloud-ide-layout-drawer-theme.component-BkX1xh6A.mjs.map} +1 -1
  5. package/fesm2022/{cloud-ide-layout-floating-entity-selection.component-yajHQLu2.mjs → cloud-ide-layout-floating-entity-selection.component-BwrKdQB4.mjs} +3 -5
  6. package/fesm2022/cloud-ide-layout-floating-entity-selection.component-BwrKdQB4.mjs.map +1 -0
  7. package/fesm2022/{cloud-ide-layout-home-wrapper.component-CetsHnKT.mjs → cloud-ide-layout-home-wrapper.component-DE5lpCxu.mjs} +2 -2
  8. package/fesm2022/{cloud-ide-layout-home-wrapper.component-CetsHnKT.mjs.map → cloud-ide-layout-home-wrapper.component-DE5lpCxu.mjs.map} +1 -1
  9. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CutP-7dJ.mjs → cloud-ide-layout-sidedrawer-notes.component-CDIHnAIJ.mjs} +2 -2
  10. package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CutP-7dJ.mjs.map → cloud-ide-layout-sidedrawer-notes.component-CDIHnAIJ.mjs.map} +1 -1
  11. package/fesm2022/cloud-ide-layout.mjs +1 -1
  12. package/index.d.ts +6 -1
  13. package/package.json +1 -1
  14. package/fesm2022/cloud-ide-layout-cloud-ide-layout-DkJCqrlp.mjs.map +0 -1
  15. package/fesm2022/cloud-ide-layout-floating-entity-selection.component-yajHQLu2.mjs.map +0 -1
@@ -10,9 +10,7 @@ import { Title } from '@angular/platform-browser';
10
10
  import { CideEleFileManagerService, CideElementsService, CideEleFloatingContainerService, CideInputComponent, CideIconComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleResizerDirective, TooltipDirective, CideSpinnerComponent, CideEleSkeletonLoaderComponent, CideEleFloatingContainerManagerComponent, CideEleGlobalNotificationsComponent, CideEleBreadcrumbComponent, CideEleButtonComponent } from 'cloud-ide-element';
11
11
  import * as i1 from '@angular/common';
12
12
  import { CommonModule, NgClass, NgFor, NgIf, isPlatformBrowser } from '@angular/common';
13
- import { AUTH_SERVICE_TOKEN, authGuard } from 'cloud-ide-shared';
14
- import { CideAccFinancialYearService } from 'cloud-ide-accounts';
15
- import { CideLytAcademicYearService } from 'cloud-ide-academics';
13
+ import { FINANCIAL_YEAR_SERVICE_TOKEN, ACADEMIC_YEAR_SERVICE_TOKEN, AUTH_SERVICE_TOKEN, authGuard } from 'cloud-ide-shared';
16
14
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
17
15
  import { trigger, state, transition, style, animate } from '@angular/animations';
18
16
  import { merge } from 'lodash';
@@ -1269,7 +1267,7 @@ class CideLytFloatingEntitySelectionService {
1269
1267
  }
1270
1268
  try {
1271
1269
  // Use relative import to avoid circular dependency
1272
- const module = await import('./cloud-ide-layout-floating-entity-selection.component-yajHQLu2.mjs');
1270
+ const module = await import('./cloud-ide-layout-floating-entity-selection.component-BwrKdQB4.mjs');
1273
1271
  if (module.CideLytFloatingEntitySelectionComponent) {
1274
1272
  this.containerService.registerComponent('entity-selection-header', module.CideLytFloatingEntitySelectionComponent);
1275
1273
  console.log('✅ Entity selection component registered successfully');
@@ -1354,9 +1352,9 @@ class CideLytHeaderWrapperComponent {
1354
1352
  appStateService = inject(AppStateService);
1355
1353
  // Inject floating entity selection service
1356
1354
  floatingEntitySelectionService = inject(CideLytFloatingEntitySelectionService);
1357
- // Inject year services
1358
- financialYearService = inject(CideAccFinancialYearService);
1359
- academicYearService = inject(CideLytAcademicYearService);
1355
+ // Inject year services using injection tokens
1356
+ financialYearService = inject(FINANCIAL_YEAR_SERVICE_TOKEN);
1357
+ academicYearService = inject(ACADEMIC_YEAR_SERVICE_TOKEN);
1360
1358
  destroyRef = inject(DestroyRef);
1361
1359
  // Signals for year data
1362
1360
  financialYears = signal([], ...(ngDevMode ? [{ debugName: "financialYears" }] : []));
@@ -2968,8 +2966,8 @@ class CideLytSidedrawerWrapperComponent {
2968
2966
  }
2969
2967
  ngOnInit() {
2970
2968
  // Initialize the component map (You'd likely populate this from a config or service)
2971
- this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-CutP-7dJ.mjs').then(m => m.CideLytSidedrawerNotesComponent);
2972
- this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-BDULJLAW.mjs').then(m => m.CideLytDrawerThemeComponent);
2969
+ this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-CDIHnAIJ.mjs').then(m => m.CideLytSidedrawerNotesComponent);
2970
+ this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-BkX1xh6A.mjs').then(m => m.CideLytDrawerThemeComponent);
2973
2971
  }
2974
2972
  async loadComponent(configFor) {
2975
2973
  console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
@@ -3352,6 +3350,7 @@ class CideLytSharedWrapperComponent {
3352
3350
  page_data = {};
3353
3351
  sharedService = inject(CideLytSharedService);
3354
3352
  sidedrawerService = inject(CideLytSidedrawerService);
3353
+ router = inject(Router);
3355
3354
  appState = inject(AppStateHelperService);
3356
3355
  // Signal for additional breadcrumb items that will be appended after Module > Current Page
3357
3356
  additionalBreadcrumbItems = signal([], ...(ngDevMode ? [{ debugName: "additionalBreadcrumbItems" }] : []));
@@ -3465,12 +3464,18 @@ class CideLytSharedWrapperComponent {
3465
3464
  breadcrumbRef.updateItems(fullItems);
3466
3465
  }
3467
3466
  }
3467
+ /**
3468
+ * Handle breadcrumb home button click - navigate to control panel home
3469
+ */
3470
+ onBreadcrumbHomeClick() {
3471
+ this.router.navigate(['/control-panel']);
3472
+ }
3468
3473
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CideLytSharedWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3469
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.7", type: CideLytSharedWrapperComponent, isStandalone: true, selector: "cide-lyt-shared-wrapper", inputs: { shared_wrapper_setup_param: { classPropertyName: "shared_wrapper_setup_param", publicName: "shared_wrapper_setup_param", isSignal: true, isRequired: false, transformFunction: null }, breadcrumb_data: { classPropertyName: "breadcrumb_data", publicName: "breadcrumb_data", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "breadcrumb", first: true, predicate: CideEleBreadcrumbComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"tw-w-full tw-h-full tw-table\">\n <div\n class=\"tw-sticky tw-table-row tw-w-full tw-top-0 tw-z-50 tw-bg-white tw-border-b tw-border-gray-200 tw-shadow-sm\">\n <div class=\"tw-flex tw-items-center tw-justify-between tw-px-4 tw-py-0.5\">\n <div class=\"tw-flex-1\">\n <cide-ele-breadcrumb style=\"modern\" [compact]=\"true\"></cide-ele-breadcrumb>\n </div>\n <div class=\"tw-flex-shrink-0 tw-ml-4\">\n <ng-content select=\"[breadcrumb-actions]\"></ng-content>\n </div>\n </div>\n </div>\n\n <div class=\"tw-table-row tw-h-full tw-w-full tw-overflow-y-auto\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [":host{display:block;height:100%}:host>div{display:flex;flex-direction:column}::ng-deep cide-lyt-shared-wrapper{height:100%!important;display:block!important;width:100%!important}\n"], dependencies: [{ kind: "component", type: CideEleBreadcrumbComponent, selector: "cide-ele-breadcrumb", inputs: ["items", "style", "separator", "showHomeIcon", "homeIcon", "maxItems", "showDropdownOnOverflow", "dropdownOptions", "clickableItems", "showTooltips", "responsive", "compact", "animated", "loadingInput", "disabled", "contextId", "pageCode"], outputs: ["itemClick", "dropdownOptionClick", "homeClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3474
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.7", type: CideLytSharedWrapperComponent, isStandalone: true, selector: "cide-lyt-shared-wrapper", inputs: { shared_wrapper_setup_param: { classPropertyName: "shared_wrapper_setup_param", publicName: "shared_wrapper_setup_param", isSignal: true, isRequired: false, transformFunction: null }, breadcrumb_data: { classPropertyName: "breadcrumb_data", publicName: "breadcrumb_data", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "breadcrumb", first: true, predicate: CideEleBreadcrumbComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"tw-w-full tw-h-full tw-table\">\n <div\n class=\"tw-sticky tw-table-row tw-w-full tw-top-0 tw-z-50 tw-bg-white tw-border-b tw-border-gray-200 tw-shadow-sm\">\n <div class=\"tw-flex tw-items-center tw-justify-between tw-px-4 tw-py-0.5\">\n <div class=\"tw-flex-1\">\n <cide-ele-breadcrumb style=\"modern\" [compact]=\"true\" (homeClick)=\"onBreadcrumbHomeClick()\"></cide-ele-breadcrumb>\n </div>\n <div class=\"tw-flex-shrink-0 tw-ml-4\">\n <ng-content select=\"[breadcrumb-actions]\"></ng-content>\n </div>\n </div>\n </div>\n\n <div class=\"tw-table-row tw-h-full tw-w-full tw-overflow-y-auto\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [":host{display:block;height:100%}:host>div{display:flex;flex-direction:column}::ng-deep cide-lyt-shared-wrapper{height:100%!important;display:block!important;width:100%!important}\n"], dependencies: [{ kind: "component", type: CideEleBreadcrumbComponent, selector: "cide-ele-breadcrumb", inputs: ["items", "style", "separator", "showHomeIcon", "homeIcon", "maxItems", "showDropdownOnOverflow", "dropdownOptions", "clickableItems", "showTooltips", "responsive", "compact", "animated", "loadingInput", "disabled", "contextId", "pageCode"], outputs: ["itemClick", "dropdownOptionClick", "homeClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3470
3475
  }
3471
3476
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CideLytSharedWrapperComponent, decorators: [{
3472
3477
  type: Component,
3473
- args: [{ selector: 'cide-lyt-shared-wrapper', standalone: true, imports: [CideEleBreadcrumbComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tw-w-full tw-h-full tw-table\">\n <div\n class=\"tw-sticky tw-table-row tw-w-full tw-top-0 tw-z-50 tw-bg-white tw-border-b tw-border-gray-200 tw-shadow-sm\">\n <div class=\"tw-flex tw-items-center tw-justify-between tw-px-4 tw-py-0.5\">\n <div class=\"tw-flex-1\">\n <cide-ele-breadcrumb style=\"modern\" [compact]=\"true\"></cide-ele-breadcrumb>\n </div>\n <div class=\"tw-flex-shrink-0 tw-ml-4\">\n <ng-content select=\"[breadcrumb-actions]\"></ng-content>\n </div>\n </div>\n </div>\n\n <div class=\"tw-table-row tw-h-full tw-w-full tw-overflow-y-auto\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [":host{display:block;height:100%}:host>div{display:flex;flex-direction:column}::ng-deep cide-lyt-shared-wrapper{height:100%!important;display:block!important;width:100%!important}\n"] }]
3478
+ args: [{ selector: 'cide-lyt-shared-wrapper', standalone: true, imports: [CideEleBreadcrumbComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tw-w-full tw-h-full tw-table\">\n <div\n class=\"tw-sticky tw-table-row tw-w-full tw-top-0 tw-z-50 tw-bg-white tw-border-b tw-border-gray-200 tw-shadow-sm\">\n <div class=\"tw-flex tw-items-center tw-justify-between tw-px-4 tw-py-0.5\">\n <div class=\"tw-flex-1\">\n <cide-ele-breadcrumb style=\"modern\" [compact]=\"true\" (homeClick)=\"onBreadcrumbHomeClick()\"></cide-ele-breadcrumb>\n </div>\n <div class=\"tw-flex-shrink-0 tw-ml-4\">\n <ng-content select=\"[breadcrumb-actions]\"></ng-content>\n </div>\n </div>\n </div>\n\n <div class=\"tw-table-row tw-h-full tw-w-full tw-overflow-y-auto\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [":host{display:block;height:100%}:host>div{display:flex;flex-direction:column}::ng-deep cide-lyt-shared-wrapper{height:100%!important;display:block!important;width:100%!important}\n"] }]
3474
3479
  }], ctorParameters: () => [] });
3475
3480
 
3476
3481
  const layoutRoutes = {
@@ -3485,7 +3490,7 @@ const layoutControlPannelChildRoutes = [{
3485
3490
  },
3486
3491
  {
3487
3492
  path: "home",
3488
- loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-CetsHnKT.mjs').then(c => c.CideLytHomeWrapperComponent),
3493
+ loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-DE5lpCxu.mjs').then(c => c.CideLytHomeWrapperComponent),
3489
3494
  canActivate: [authGuard],
3490
3495
  data: {
3491
3496
  reuseTab: true, // For CustomRouteReuseStrategy
@@ -5053,4 +5058,4 @@ var floatingEntityRightsSharing_component = /*#__PURE__*/Object.freeze({
5053
5058
  */
5054
5059
 
5055
5060
  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 };
5056
- //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-DkJCqrlp.mjs.map
5061
+ //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-Dp5qc3C5.mjs.map