cloud-ide-element 1.1.27 → 1.1.29

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/index.d.ts CHANGED
@@ -573,7 +573,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
573
573
  readonly id: _angular_core.WritableSignal<string>;
574
574
  readonly isUploading: _angular_core.WritableSignal<boolean>;
575
575
  readonly uploadProgress: _angular_core.WritableSignal<number>;
576
- readonly uploadStatus: _angular_core.WritableSignal<"error" | "start" | "uploading" | "success" | "idle">;
576
+ readonly uploadStatus: _angular_core.WritableSignal<"success" | "error" | "start" | "uploading" | "idle">;
577
577
  readonly files: _angular_core.WritableSignal<FileList | null>;
578
578
  readonly fileNames: _angular_core.WritableSignal<string[]>;
579
579
  readonly previewUrls: _angular_core.WritableSignal<string[]>;
@@ -700,7 +700,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
700
700
  multiple: boolean;
701
701
  showPreview: boolean;
702
702
  autoUpload: boolean;
703
- uploadStatus: "error" | "start" | "uploading" | "success" | "idle";
703
+ uploadStatus: "success" | "error" | "start" | "uploading" | "idle";
704
704
  isUploading: boolean;
705
705
  uploadProgress: number;
706
706
  files: {
@@ -1215,6 +1215,36 @@ declare class CideEleResizerDirective implements OnInit {
1215
1215
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CideEleResizerDirective, "[cideEleResizer]", never, { "direction": { "alias": "direction"; "required": false; }; "to": { "alias": "to"; "required": false; }; "prevElementSelector": { "alias": "prevElementSelector"; "required": false; }; "nextElementSelector": { "alias": "nextElementSelector"; "required": false; }; "parentElementSelector": { "alias": "parentElementSelector"; "required": false; }; "minPrevSize": { "alias": "minPrevSize"; "required": false; }; "minNextSize": { "alias": "minNextSize"; "required": false; }; "usePercentage": { "alias": "usePercentage"; "required": false; }; }, { "resizeStart": "resizeStart"; "resizing": "resizing"; "resizeEnd": "resizeEnd"; }, never, never, true, never>;
1216
1216
  }
1217
1217
 
1218
+ /**
1219
+ * Path Helper Utility
1220
+ * Cloned from cloud-ide-lms-model to avoid dependencies
1221
+ */
1222
+ declare const cidePath: {
1223
+ join: (path: string[]) => string;
1224
+ };
1225
+
1226
+ /**
1227
+ * Host Manager Routes
1228
+ * Cloned from cloud-ide-lms-model to avoid dependencies
1229
+ *
1230
+ * Base path for host name to interceptor and replace with actual URL
1231
+ * for more details refer https://docs.google.com/document/d/1CwB4evLsQuatG4jI0U1faRtmqtNmIfZOE4fDWiz9-sQ/edit?pli=1#bookmark=id.j3vzaryhajl1
1232
+ * __version__ need to add in future
1233
+ */
1234
+ declare const hostManagerRoutesUrl: {
1235
+ cideSuiteHost: string;
1236
+ };
1237
+
1238
+ /**
1239
+ * Notification Routes
1240
+ * Cloned from cloud-ide-lms-model to avoid dependencies
1241
+ */
1242
+ declare const notificationRoutesUrl: {
1243
+ module: string;
1244
+ notifications: string;
1245
+ unreadCount: string;
1246
+ };
1247
+
1218
1248
  type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'text' | 'link' | 'success' | 'danger' | 'warning' | 'info' | 'ghost';
1219
1249
  type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
1220
1250
  type ButtonType = 'button' | 'submit' | 'reset';
@@ -1417,6 +1447,190 @@ declare class NotificationService {
1417
1447
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
1418
1448
  }
1419
1449
 
1450
+ interface ServerNotification {
1451
+ _id: string;
1452
+ not_id_user: string | {
1453
+ _id?: string;
1454
+ name?: string;
1455
+ email?: string;
1456
+ };
1457
+ not_type: 'info' | 'success' | 'warning' | 'error' | 'system';
1458
+ not_category: string;
1459
+ not_title: string;
1460
+ not_message: string;
1461
+ not_data?: any;
1462
+ not_action_url?: string;
1463
+ not_action_label?: string;
1464
+ not_status: 'pending' | 'sent' | 'delivered' | 'read' | 'archived';
1465
+ not_priority: 'low' | 'normal' | 'high' | 'urgent';
1466
+ not_read_at?: Date;
1467
+ not_delivered_at?: Date;
1468
+ not_archived_at?: Date;
1469
+ not_channels?: {
1470
+ in_app?: boolean;
1471
+ email?: boolean;
1472
+ sms?: boolean;
1473
+ };
1474
+ not_created_at: Date;
1475
+ not_updated_at: Date;
1476
+ }
1477
+ interface NotificationListResponse {
1478
+ success: boolean;
1479
+ code: number;
1480
+ message: string;
1481
+ data: ServerNotification[];
1482
+ total?: number;
1483
+ }
1484
+ interface NotificationResponse {
1485
+ success: boolean;
1486
+ code: number;
1487
+ message: string;
1488
+ data: ServerNotification;
1489
+ }
1490
+ interface UnreadCountResponse {
1491
+ success: boolean;
1492
+ code: number;
1493
+ message: string;
1494
+ data: {
1495
+ count: number;
1496
+ };
1497
+ }
1498
+ interface CreateNotificationDto {
1499
+ not_id_user: string;
1500
+ not_type?: 'info' | 'success' | 'warning' | 'error' | 'system';
1501
+ not_category: string;
1502
+ not_title: string;
1503
+ not_message: string;
1504
+ not_data?: any;
1505
+ not_action_url?: string;
1506
+ not_action_label?: string;
1507
+ not_priority?: 'low' | 'normal' | 'high' | 'urgent';
1508
+ not_channels?: {
1509
+ in_app?: boolean;
1510
+ email?: boolean;
1511
+ sms?: boolean;
1512
+ };
1513
+ not_expires_at?: Date;
1514
+ not_id_created_by?: string;
1515
+ }
1516
+ declare class NotificationApiService {
1517
+ private readonly http;
1518
+ private readonly apiUrl;
1519
+ /**
1520
+ * Get user notifications
1521
+ */
1522
+ getNotifications(params?: {
1523
+ status?: string;
1524
+ type?: string;
1525
+ category?: string;
1526
+ priority?: string;
1527
+ pageIndex?: number;
1528
+ pageSize?: number;
1529
+ pagination?: boolean;
1530
+ }): Observable<NotificationListResponse>;
1531
+ /**
1532
+ * Get notification by ID
1533
+ */
1534
+ getNotificationById(id: string): Observable<NotificationResponse>;
1535
+ /**
1536
+ * Get unread count
1537
+ */
1538
+ getUnreadCount(): Observable<UnreadCountResponse>;
1539
+ /**
1540
+ * Create notification
1541
+ */
1542
+ createNotification(payload: CreateNotificationDto): Observable<NotificationResponse>;
1543
+ /**
1544
+ * Mark notification as read
1545
+ */
1546
+ markAsRead(id: string): Observable<NotificationResponse>;
1547
+ /**
1548
+ * Mark all notifications as read
1549
+ */
1550
+ markAllAsRead(): Observable<NotificationResponse>;
1551
+ /**
1552
+ * Archive notification
1553
+ */
1554
+ archiveNotification(id: string): Observable<NotificationResponse>;
1555
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationApiService, never>;
1556
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationApiService>;
1557
+ }
1558
+
1559
+ interface NotificationPayload {
1560
+ id: string;
1561
+ type: 'info' | 'success' | 'warning' | 'error' | 'system';
1562
+ category: string;
1563
+ title: string;
1564
+ message: string;
1565
+ data?: any;
1566
+ action_url?: string;
1567
+ action_label?: string;
1568
+ priority: 'low' | 'normal' | 'high' | 'urgent';
1569
+ created_at: Date;
1570
+ timestamp: Date;
1571
+ }
1572
+ interface ConnectionStatus {
1573
+ connected: boolean;
1574
+ socketId?: string;
1575
+ userId?: string;
1576
+ timestamp?: Date;
1577
+ }
1578
+ declare class WebSocketNotificationService implements OnDestroy {
1579
+ private socket;
1580
+ private notificationSubject;
1581
+ private connectionStatusSubject;
1582
+ private notifications;
1583
+ private unreadNotifications;
1584
+ notification$: Observable<NotificationPayload>;
1585
+ connectionStatus$: Observable<ConnectionStatus>;
1586
+ allNotifications: _angular_core.Signal<NotificationPayload[]>;
1587
+ unreadNotificationsCount: _angular_core.Signal<number>;
1588
+ isConnected: _angular_core.Signal<boolean>;
1589
+ /**
1590
+ * Connect to Socket.IO server
1591
+ */
1592
+ connect(token: string, userId?: string): void;
1593
+ /**
1594
+ * Fallback URL resolution
1595
+ */
1596
+ private resolveUrlFallback;
1597
+ /**
1598
+ * Connect with resolved URL
1599
+ */
1600
+ private connectWithUrl;
1601
+ /**
1602
+ * Setup Socket.IO event handlers
1603
+ */
1604
+ private setupEventHandlers;
1605
+ /**
1606
+ * Acknowledge notification receipt
1607
+ */
1608
+ acknowledgeNotification(notificationId: string): void;
1609
+ /**
1610
+ * Mark notification as read
1611
+ */
1612
+ markAsRead(notificationId: string): void;
1613
+ /**
1614
+ * Mark all as read
1615
+ */
1616
+ markAllAsRead(): void;
1617
+ /**
1618
+ * Disconnect from server
1619
+ */
1620
+ disconnect(): void;
1621
+ /**
1622
+ * Clear all notifications
1623
+ */
1624
+ clearNotifications(): void;
1625
+ /**
1626
+ * Remove notification from list
1627
+ */
1628
+ removeNotification(notificationId: string): void;
1629
+ ngOnDestroy(): void;
1630
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<WebSocketNotificationService, never>;
1631
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<WebSocketNotificationService>;
1632
+ }
1633
+
1420
1634
  /**
1421
1635
  * File Manager Interfaces
1422
1636
  * Based on core_file_manager table schema
@@ -3333,5 +3547,5 @@ declare class CideEleSkeletonLoaderComponent {
3333
3547
  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>;
3334
3548
  }
3335
3549
 
3336
- 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, NotificationService, PortalService, TooltipDirective };
3337
- export type { BreadcrumbConfig, BreadcrumbDropdownOption, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbStyle, ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnFilter, ColumnGroup, ColumnSort, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, CoreFileManagerInsertUpdateResponse, 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, NotificationOptions, PortalConfig, PortalPosition, SelectOption, SelectOptionObject, ServiceState, ShortcutOverride, StatusConfig, TabItem, TemplateContext, TemplatePortalConfig, TemplateRenderer, TextAlign, TooltipPlacement, TooltipType, UploadProgress, ValidationStatus, controllerResponse, fileManagerControllerResponse, fileManagerResponseData, mongooseObjectIdCreateControllerResponse };
3550
+ 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 };
3551
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-element",
3
- "version": "1.1.27",
3
+ "version": "1.1.29",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"