cloud-ide-layout 1.0.17 → 1.0.19
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-B_8a5pSc.mjs → cloud-ide-layout-cloud-ide-layout-DwtmZlra.mjs} +45 -8
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-DwtmZlra.mjs.map +1 -0
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-C_brpWUe.mjs → cloud-ide-layout-drawer-theme.component-B7pkg0Hs.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-drawer-theme.component-C_brpWUe.mjs.map → cloud-ide-layout-drawer-theme.component-B7pkg0Hs.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-BnuVOFci.mjs → cloud-ide-layout-home-wrapper.component-C4VnGDsV.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-home-wrapper.component-BnuVOFci.mjs.map → cloud-ide-layout-home-wrapper.component-C4VnGDsV.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CaepM61i.mjs → cloud-ide-layout-sidedrawer-notes.component-Ct_ZSmhz.mjs} +2 -2
- package/fesm2022/{cloud-ide-layout-sidedrawer-notes.component-CaepM61i.mjs.map → cloud-ide-layout-sidedrawer-notes.component-Ct_ZSmhz.mjs.map} +1 -1
- package/fesm2022/cloud-ide-layout.mjs +1 -1
- package/index.d.ts +11 -2
- package/package.json +1 -1
- package/fesm2022/cloud-ide-layout-cloud-ide-layout-B_8a5pSc.mjs.map +0 -1
|
@@ -2,12 +2,12 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, inject, signal, computed, effect, Component, ElementRef, HostListener, ViewContainerRef, ViewChild, ViewChildren, InjectionToken, PLATFORM_ID } from '@angular/core';
|
|
3
3
|
import { HttpClient } from '@angular/common/http';
|
|
4
4
|
import { cidePath, hostManagerRoutesUrl, coreRoutesUrl, designConfigRoutesUrl } from 'cloud-ide-lms-model';
|
|
5
|
-
import { throwError, of, BehaviorSubject, interval, take as take$1 } from 'rxjs';
|
|
5
|
+
import { Observable, throwError, of, BehaviorSubject, interval, take as take$1 } from 'rxjs';
|
|
6
6
|
import { map, filter, tap, catchError, shareReplay, take, distinctUntilChanged } from 'rxjs/operators';
|
|
7
7
|
import * as i2 from '@angular/router';
|
|
8
8
|
import { Router, NavigationEnd, RouteReuseStrategy, RouterModule } from '@angular/router';
|
|
9
9
|
import { Title } from '@angular/platform-browser';
|
|
10
|
-
import { CideElementsService, CideInputComponent, CideIconComponent, CideEleResizerDirective, TooltipDirective, CideSpinnerComponent, CideEleSkeletonLoaderComponent } from 'cloud-ide-element';
|
|
10
|
+
import { CideEleFileManagerService, CideElementsService, CideInputComponent, CideIconComponent, CideEleResizerDirective, TooltipDirective, CideSpinnerComponent, CideEleSkeletonLoaderComponent } from 'cloud-ide-element';
|
|
11
11
|
import * as i1 from '@angular/common';
|
|
12
12
|
import { CommonModule, NgClass, NgFor, NgIf, isPlatformBrowser } from '@angular/common';
|
|
13
13
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
@@ -54,7 +54,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
|
|
|
54
54
|
class CideLytFileManagerService {
|
|
55
55
|
http = inject(HttpClient);
|
|
56
56
|
getFileDetails(body) {
|
|
57
|
-
return this.http.post(cidePath.join([hostManagerRoutesUrl.cideSuiteHost, coreRoutesUrl?.module, coreRoutesUrl?.
|
|
57
|
+
return this.http.post(cidePath.join([hostManagerRoutesUrl.cideSuiteHost, coreRoutesUrl?.module, coreRoutesUrl?.fileManager]), body);
|
|
58
|
+
}
|
|
59
|
+
uploadFile(file, additionalData) {
|
|
60
|
+
// Convert file to base64
|
|
61
|
+
return new Observable(observer => {
|
|
62
|
+
const reader = new FileReader();
|
|
63
|
+
reader.onload = () => {
|
|
64
|
+
const base64String = reader.result;
|
|
65
|
+
const base64Data = base64String.split(',')[1]; // Remove data:image/jpeg;base64, prefix
|
|
66
|
+
const payload = {
|
|
67
|
+
cyfm_name: file.name,
|
|
68
|
+
cyfm_alt_text: additionalData?.altText || file.name,
|
|
69
|
+
cyfm_path: '', // Will be set by backend
|
|
70
|
+
cyfm_size_in_byte: file.size,
|
|
71
|
+
cyfm_type: file.type,
|
|
72
|
+
cyfm_creation_dt: new Date().toISOString(),
|
|
73
|
+
cyfm_id_user: additionalData?.userId || '',
|
|
74
|
+
cyfm_permissions: additionalData?.permissions || [],
|
|
75
|
+
cyfm_tags: additionalData?.tags || [],
|
|
76
|
+
cyfm_version: 1,
|
|
77
|
+
cyfm_file_status_sygmt: additionalData?.fileStatus || 'active',
|
|
78
|
+
cyfm_isactive: true,
|
|
79
|
+
fileData: base64Data, // Base64 file data
|
|
80
|
+
...additionalData
|
|
81
|
+
};
|
|
82
|
+
this.http.post(cidePath.join([hostManagerRoutesUrl.cideSuiteHost, coreRoutesUrl?.module, 'upload']), payload)
|
|
83
|
+
.subscribe({
|
|
84
|
+
next: (response) => observer.next(response),
|
|
85
|
+
error: (error) => observer.error(error)
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
reader.onerror = () => observer.error('Failed to read file');
|
|
89
|
+
reader.readAsDataURL(file);
|
|
90
|
+
});
|
|
58
91
|
}
|
|
59
92
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CideLytFileManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
60
93
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CideLytFileManagerService, providedIn: 'root' });
|
|
@@ -212,6 +245,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
|
|
|
212
245
|
}] });
|
|
213
246
|
|
|
214
247
|
class AppStateService {
|
|
248
|
+
// Inject file manager service
|
|
249
|
+
fileManagerService = inject(CideEleFileManagerService);
|
|
215
250
|
// Private signal for current user
|
|
216
251
|
currentUserSignal = signal(null, ...(ngDevMode ? [{ debugName: "currentUserSignal" }] : []));
|
|
217
252
|
// Private signal for active module
|
|
@@ -251,6 +286,8 @@ class AppStateService {
|
|
|
251
286
|
};
|
|
252
287
|
}, ...(ngDevMode ? [{ debugName: "activeModuleInfo" }] : []));
|
|
253
288
|
constructor() {
|
|
289
|
+
// Initialize file manager base URL on app startup
|
|
290
|
+
this.fileManagerService.setBaseUrl(cidePath.join([hostManagerRoutesUrl.cideSuiteHost, coreRoutesUrl?.module, coreRoutesUrl?.fileManager]));
|
|
254
291
|
// Load initial state from localStorage
|
|
255
292
|
this.loadFromLocalStorage();
|
|
256
293
|
// Save to localStorage whenever state changes
|
|
@@ -2494,8 +2531,8 @@ class CideLytSidedrawerWrapperComponent {
|
|
|
2494
2531
|
}
|
|
2495
2532
|
ngOnInit() {
|
|
2496
2533
|
// Initialize the component map (You'd likely populate this from a config or service)
|
|
2497
|
-
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-
|
|
2498
|
-
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-
|
|
2534
|
+
this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-Ct_ZSmhz.mjs').then(m => m.CideLytSidedrawerNotesComponent);
|
|
2535
|
+
this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-B7pkg0Hs.mjs').then(m => m.CideLytDrawerThemeComponent);
|
|
2499
2536
|
}
|
|
2500
2537
|
async loadComponent(configFor) {
|
|
2501
2538
|
console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
|
|
@@ -2867,7 +2904,7 @@ const layoutControlPannelChildRoutes = [{
|
|
|
2867
2904
|
},
|
|
2868
2905
|
{
|
|
2869
2906
|
path: "home",
|
|
2870
|
-
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-
|
|
2907
|
+
loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-C4VnGDsV.mjs').then(c => c.CideLytHomeWrapperComponent),
|
|
2871
2908
|
canActivate: [authGuard],
|
|
2872
2909
|
data: {
|
|
2873
2910
|
reuseTab: true, // For CustomRouteReuseStrategy
|
|
@@ -3132,5 +3169,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
|
|
|
3132
3169
|
* Generated bundle index. Do not edit.
|
|
3133
3170
|
*/
|
|
3134
3171
|
|
|
3135
|
-
export { AppStateHelperService as A, CideLytSharedWrapperComponent as C, ENVIRONMENT_CONFIG as E, CideLytSidebarService as a, CideLytRequestService as b, CideLytSidedrawerService as c, CideLytThemeService as d, CloudIdeLayoutService as e, CloudIdeLayoutComponent as f, CideLytSharedService as g, layoutControlPannelChildRoutes as h, CustomRouteReuseStrategy as i, AppStateService as j, CideLytUserStatusService as k, layoutRoutes as l, CacheManagerService as m, processThemeVariable as p, setCSSVariable as s, themeFactory as t };
|
|
3136
|
-
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-
|
|
3172
|
+
export { AppStateHelperService as A, CideLytSharedWrapperComponent as C, ENVIRONMENT_CONFIG as E, CideLytSidebarService as a, CideLytRequestService as b, CideLytSidedrawerService as c, CideLytThemeService as d, CloudIdeLayoutService as e, CloudIdeLayoutComponent as f, CideLytSharedService as g, layoutControlPannelChildRoutes as h, CustomRouteReuseStrategy as i, AppStateService as j, CideLytUserStatusService as k, layoutRoutes as l, CacheManagerService as m, CideLytFileManagerService as n, processThemeVariable as p, setCSSVariable as s, themeFactory as t };
|
|
3173
|
+
//# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-DwtmZlra.mjs.map
|