cloud-ide-element 1.1.70 → 1.1.71
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-element.mjs +247 -3
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +104 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2361,6 +2361,108 @@ declare class PortalService {
|
|
|
2361
2361
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<PortalService>;
|
|
2362
2362
|
}
|
|
2363
2363
|
|
|
2364
|
+
type CideTheme = 'light' | 'dark' | 'auto';
|
|
2365
|
+
interface CideThemeConfig {
|
|
2366
|
+
/**
|
|
2367
|
+
* Initial theme to use
|
|
2368
|
+
* @default 'light'
|
|
2369
|
+
*/
|
|
2370
|
+
theme?: CideTheme;
|
|
2371
|
+
/**
|
|
2372
|
+
* Target element to apply theme
|
|
2373
|
+
* If not provided, will use document.documentElement (html tag)
|
|
2374
|
+
* @default document.documentElement
|
|
2375
|
+
*/
|
|
2376
|
+
targetElement?: HTMLElement;
|
|
2377
|
+
/**
|
|
2378
|
+
* Persist theme preference to localStorage
|
|
2379
|
+
* @default true
|
|
2380
|
+
*/
|
|
2381
|
+
persistPreference?: boolean;
|
|
2382
|
+
/**
|
|
2383
|
+
* LocalStorage key for theme preference
|
|
2384
|
+
* @default 'cide-theme'
|
|
2385
|
+
*/
|
|
2386
|
+
storageKey?: string;
|
|
2387
|
+
/**
|
|
2388
|
+
* Use data-theme attribute instead of class
|
|
2389
|
+
* @default true
|
|
2390
|
+
*/
|
|
2391
|
+
useDataAttribute?: boolean;
|
|
2392
|
+
/**
|
|
2393
|
+
* Use class name for theme
|
|
2394
|
+
* @default true
|
|
2395
|
+
*/
|
|
2396
|
+
useClassName?: boolean;
|
|
2397
|
+
}
|
|
2398
|
+
declare class CideThemeService {
|
|
2399
|
+
private platformId;
|
|
2400
|
+
private isBrowser;
|
|
2401
|
+
private currentTheme$;
|
|
2402
|
+
private effectiveTheme$;
|
|
2403
|
+
private config;
|
|
2404
|
+
constructor();
|
|
2405
|
+
/**
|
|
2406
|
+
* Initialize the theme service with configuration
|
|
2407
|
+
* This should be called once in the application, typically in main.ts or app config
|
|
2408
|
+
*/
|
|
2409
|
+
initialize(config?: CideThemeConfig): void;
|
|
2410
|
+
/**
|
|
2411
|
+
* Set the current theme
|
|
2412
|
+
*/
|
|
2413
|
+
setTheme(theme: CideTheme): void;
|
|
2414
|
+
/**
|
|
2415
|
+
* Get the current theme preference
|
|
2416
|
+
*/
|
|
2417
|
+
getCurrentTheme(): CideTheme;
|
|
2418
|
+
/**
|
|
2419
|
+
* Get the effective theme (actual theme being displayed)
|
|
2420
|
+
*/
|
|
2421
|
+
getEffectiveTheme(): 'light' | 'dark';
|
|
2422
|
+
/**
|
|
2423
|
+
* Observable for current theme changes
|
|
2424
|
+
*/
|
|
2425
|
+
getCurrentTheme$(): Observable<CideTheme>;
|
|
2426
|
+
/**
|
|
2427
|
+
* Observable for effective theme changes
|
|
2428
|
+
*/
|
|
2429
|
+
getEffectiveTheme$(): Observable<'light' | 'dark'>;
|
|
2430
|
+
/**
|
|
2431
|
+
* Toggle between light and dark themes
|
|
2432
|
+
*/
|
|
2433
|
+
toggleTheme(): void;
|
|
2434
|
+
/**
|
|
2435
|
+
* Check if dark mode is currently active
|
|
2436
|
+
*/
|
|
2437
|
+
isDarkMode(): boolean;
|
|
2438
|
+
/**
|
|
2439
|
+
* Apply theme to target element
|
|
2440
|
+
*/
|
|
2441
|
+
private applyTheme;
|
|
2442
|
+
/**
|
|
2443
|
+
* Get system theme preference
|
|
2444
|
+
*/
|
|
2445
|
+
private getSystemTheme;
|
|
2446
|
+
/**
|
|
2447
|
+
* Listen to system theme changes
|
|
2448
|
+
*/
|
|
2449
|
+
private listenToSystemTheme;
|
|
2450
|
+
/**
|
|
2451
|
+
* Save theme preference to localStorage
|
|
2452
|
+
*/
|
|
2453
|
+
private saveThemePreference;
|
|
2454
|
+
/**
|
|
2455
|
+
* Load theme preference from localStorage
|
|
2456
|
+
*/
|
|
2457
|
+
private loadThemePreference;
|
|
2458
|
+
/**
|
|
2459
|
+
* Clear saved theme preference
|
|
2460
|
+
*/
|
|
2461
|
+
clearThemePreference(): void;
|
|
2462
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideThemeService, never>;
|
|
2463
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideThemeService>;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2364
2466
|
/**
|
|
2365
2467
|
* Directive to display images from file manager by ID
|
|
2366
2468
|
* Usage: <img cideEleFileImage [fileId]="yourFileId" [altText]="'Image'" class="your-css-classes" />
|
|
@@ -3548,5 +3650,5 @@ declare class CideEleSkeletonLoaderComponent {
|
|
|
3548
3650
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleSkeletonLoaderComponent, "cide-ele-skeleton-loader", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "count": { "alias": "count"; "required": false; }; "circle": { "alias": "circle"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; }, {}, never, never, true, never>;
|
|
3549
3651
|
}
|
|
3550
3652
|
|
|
3551
|
-
export { CapitalizePipe, CideCoreFileManagerService, CideEleBreadcrumbComponent, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleFloatingFileUploaderService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideFormFieldErrorComponent, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, CoreFileManagerInsertUpdatePayload, DEFAULT_GRID_CONFIG, DropdownManagerService, ExportService, ICoreCyfmSave, KeyboardShortcutService, MFileManager, NotificationApiService, NotificationService, PortalService, TooltipDirective, WebSocketNotificationService, cidePath, hostManagerRoutesUrl, notificationRoutesUrl };
|
|
3552
|
-
export type { BreadcrumbConfig, BreadcrumbDropdownOption, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbStyle, ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnFilter, ColumnGroup, ColumnSort, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, ConnectionStatus, CoreFileManagerInsertUpdateResponse, CreateNotificationDto, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, FileUploadData, FileUploadOptions, FileUploaderData, FloatingComponentConfig, FloatingContainerConfig, FloatingContainerInstance, FloatingFileUploaderData, GridAction, GridColumn, GridColumnMenuConfig, GridConfiguration, GridCustomFormatter, GridCustomRenderer, GridDragDropConfig, GridEvent, GridEventHandler, GridExportConfig, GridFormatter, GridLoadingConfig, GridPaginationConfig, GridScrollConfig, GridSearchConfig, GridState, GridTreeConfig, ICoreCyfm, ICoreFileManager, IFileDeleteResponse, IFileFilterOptions, IFileGroupingOptions, IFileListRequest, IFileListResponse, IFileManagerErrorLogger, IFileUpdateRequest, IFileUpdateResponse, IFileUploadProgress, IFileUploadQueueItem, IFileUploadRequest, IFileUploadResponse, JsonEditorConfig, JsonEditorError, KeyboardShortcut, NotificationItem, NotificationListResponse, NotificationOptions, NotificationPayload, NotificationResponse, PortalConfig, PortalPosition, SelectOption, SelectOptionObject, ServerNotification, ServiceState, ShortcutOverride, StatusConfig, TabItem, TemplateContext, TemplatePortalConfig, TemplateRenderer, TextAlign, TooltipPlacement, TooltipType, UnreadCountResponse, UploadProgress, ValidationStatus, controllerResponse, fileManagerControllerResponse, fileManagerResponseData, mongooseObjectIdCreateControllerResponse };
|
|
3653
|
+
export { CapitalizePipe, CideCoreFileManagerService, CideEleBreadcrumbComponent, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleFloatingFileUploaderService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideFormFieldErrorComponent, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, CideThemeService, ConfirmationService, CoreFileManagerInsertUpdatePayload, DEFAULT_GRID_CONFIG, DropdownManagerService, ExportService, ICoreCyfmSave, KeyboardShortcutService, MFileManager, NotificationApiService, NotificationService, PortalService, TooltipDirective, WebSocketNotificationService, cidePath, hostManagerRoutesUrl, notificationRoutesUrl };
|
|
3654
|
+
export type { BreadcrumbConfig, BreadcrumbDropdownOption, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbStyle, ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, CideTheme, CideThemeConfig, ColumnFilter, ColumnGroup, ColumnSort, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, ConnectionStatus, CoreFileManagerInsertUpdateResponse, CreateNotificationDto, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, FileUploadData, FileUploadOptions, FileUploaderData, FloatingComponentConfig, FloatingContainerConfig, FloatingContainerInstance, FloatingFileUploaderData, GridAction, GridColumn, GridColumnMenuConfig, GridConfiguration, GridCustomFormatter, GridCustomRenderer, GridDragDropConfig, GridEvent, GridEventHandler, GridExportConfig, GridFormatter, GridLoadingConfig, GridPaginationConfig, GridScrollConfig, GridSearchConfig, GridState, GridTreeConfig, ICoreCyfm, ICoreFileManager, IFileDeleteResponse, IFileFilterOptions, IFileGroupingOptions, IFileListRequest, IFileListResponse, IFileManagerErrorLogger, IFileUpdateRequest, IFileUpdateResponse, IFileUploadProgress, IFileUploadQueueItem, IFileUploadRequest, IFileUploadResponse, JsonEditorConfig, JsonEditorError, KeyboardShortcut, NotificationItem, NotificationListResponse, NotificationOptions, NotificationPayload, NotificationResponse, PortalConfig, PortalPosition, SelectOption, SelectOptionObject, ServerNotification, ServiceState, ShortcutOverride, StatusConfig, TabItem, TemplateContext, TemplatePortalConfig, TemplateRenderer, TextAlign, TooltipPlacement, TooltipType, UnreadCountResponse, UploadProgress, ValidationStatus, controllerResponse, fileManagerControllerResponse, fileManagerResponseData, mongooseObjectIdCreateControllerResponse };
|