cloud-ide-element 1.1.96 → 1.1.101

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
@@ -82,6 +82,8 @@ declare class CideInputComponent implements ControlValueAccessor, Validator, OnC
82
82
  min: number | string;
83
83
  /** @description max value for number type control or max date for date type control */
84
84
  max: number | string;
85
+ /** @description step value for number type control */
86
+ step: number | string;
85
87
  /**
86
88
  * @description
87
89
  * Holds the size of the component like Small, Extra small, Large
@@ -348,7 +350,7 @@ declare class CideInputComponent implements ControlValueAccessor, Validator, OnC
348
350
  */
349
351
  backToDateSelection(): void;
350
352
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideInputComponent, never>;
351
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideInputComponent, "cide-ele-input", never, { "fill": { "alias": "fill"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelHide": { "alias": "labelHide"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "clearInput": { "alias": "clearInput"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "labelDir": { "alias": "labelDir"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "helperTextCollapse": { "alias": "helperTextCollapse"; "required": false; }; "hideHelperAndErrorText": { "alias": "hideHelperAndErrorText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autocapitalize": { "alias": "autocapitalize"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "type": { "alias": "type"; "required": false; }; "width": { "alias": "width"; "required": false; }; "id": { "alias": "id"; "required": false; }; "ngModel": { "alias": "ngModel"; "required": false; }; "option": { "alias": "option"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "ngModelChange": "ngModelChange"; }, never, never, true, never>;
353
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideInputComponent, "cide-ele-input", never, { "fill": { "alias": "fill"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelHide": { "alias": "labelHide"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "clearInput": { "alias": "clearInput"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "labelDir": { "alias": "labelDir"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "helperTextCollapse": { "alias": "helperTextCollapse"; "required": false; }; "hideHelperAndErrorText": { "alias": "hideHelperAndErrorText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autocapitalize": { "alias": "autocapitalize"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "type": { "alias": "type"; "required": false; }; "width": { "alias": "width"; "required": false; }; "id": { "alias": "id"; "required": false; }; "ngModel": { "alias": "ngModel"; "required": false; }; "option": { "alias": "option"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "ngModelChange": "ngModelChange"; }, never, never, true, never>;
352
354
  }
353
355
 
354
356
  interface SelectOption {
@@ -604,7 +606,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
604
606
  readonly id: _angular_core.WritableSignal<string>;
605
607
  readonly isUploading: _angular_core.WritableSignal<boolean>;
606
608
  readonly uploadProgress: _angular_core.WritableSignal<number>;
607
- readonly uploadStatus: _angular_core.WritableSignal<"start" | "success" | "error" | "uploading" | "idle">;
609
+ readonly uploadStatus: _angular_core.WritableSignal<"start" | "error" | "uploading" | "success" | "idle">;
608
610
  readonly files: _angular_core.WritableSignal<FileList | null>;
609
611
  readonly fileNames: _angular_core.WritableSignal<string[]>;
610
612
  readonly previewUrls: _angular_core.WritableSignal<string[]>;
@@ -737,7 +739,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
737
739
  multiple: boolean;
738
740
  showPreview: boolean;
739
741
  autoUpload: boolean;
740
- uploadStatus: "start" | "success" | "error" | "uploading" | "idle";
742
+ uploadStatus: "start" | "error" | "uploading" | "success" | "idle";
741
743
  isUploading: boolean;
742
744
  uploadProgress: number;
743
745
  files: {
@@ -1167,6 +1169,67 @@ declare class ExportService {
1167
1169
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ExportService>;
1168
1170
  }
1169
1171
 
1172
+ /**
1173
+ * Currency Display Format Options
1174
+ */
1175
+ type CurrencyDisplayFormat = 'symbol_before' | 'symbol_after' | 'code_before' | 'code_after';
1176
+ /**
1177
+ * Currency Configuration Interface
1178
+ * Matches the structure from accounts library financial config
1179
+ */
1180
+ interface CurrencyConfig {
1181
+ currencyCode?: string;
1182
+ currencySymbol?: string;
1183
+ displayFormat?: CurrencyDisplayFormat;
1184
+ showSymbol?: boolean;
1185
+ showCode?: boolean;
1186
+ decimalPlaces?: number;
1187
+ thousandSeparator?: string;
1188
+ decimalSeparator?: string;
1189
+ locale?: string;
1190
+ roundingMethod?: 'round' | 'floor' | 'ceiling' | 'none';
1191
+ roundingPrecision?: number;
1192
+ }
1193
+ /**
1194
+ * Default Currency Configuration
1195
+ * Defaults to Indian Rupees (INR)
1196
+ */
1197
+ declare const DEFAULT_CURRENCY_CONFIG: CurrencyConfig;
1198
+
1199
+ /**
1200
+ * Currency Pipe
1201
+ *
1202
+ * Formats numbers as currency using global currency configuration.
1203
+ * Supports override for specific formatting needs.
1204
+ *
1205
+ * @example
1206
+ * ```html
1207
+ * <!-- Use global config -->
1208
+ * <span>{{ amount | currency }}</span>
1209
+ *
1210
+ * <!-- Override symbol -->
1211
+ * <span>{{ amount | currency: { currencySymbol: '₹' } }}</span>
1212
+ *
1213
+ * <!-- Override decimal places -->
1214
+ * <span>{{ amount | currency: { decimalPlaces: 0 } }}</span>
1215
+ *
1216
+ * <!-- Override display format -->
1217
+ * <span>{{ amount | currency: { displayFormat: 'symbol_after' } }}</span>
1218
+ * ```
1219
+ */
1220
+ declare class CurrencyPipe implements PipeTransform {
1221
+ private readonly currencyService;
1222
+ /**
1223
+ * Transform number to formatted currency string
1224
+ * @param value - Number to format
1225
+ * @param override - Optional override configuration
1226
+ * @returns Formatted currency string
1227
+ */
1228
+ transform(value: number | string | null | undefined, override?: Partial<CurrencyConfig>): string;
1229
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CurrencyPipe, never>;
1230
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<CurrencyPipe, "currency", true>;
1231
+ }
1232
+
1170
1233
  type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
1171
1234
  type TooltipType = 'default' | 'success' | 'warning' | 'error' | 'info' | 'light' | 'dark';
1172
1235
  declare class TooltipDirective implements OnInit, OnDestroy {
@@ -2526,6 +2589,114 @@ declare class CideThemeService {
2526
2589
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideThemeService>;
2527
2590
  }
2528
2591
 
2592
+ /**
2593
+ * Currency Service
2594
+ *
2595
+ * Manages global currency configuration with support for:
2596
+ * - Loading from financial config data (app must fetch data first)
2597
+ * - Override capabilities
2598
+ * - App state persistence
2599
+ * - Reactive updates using Angular Signals
2600
+ * - Default currency: Indian Rupees (INR, ₹)
2601
+ *
2602
+ * Note: This service does NOT call APIs. The app must fetch financial config
2603
+ * data and pass it to loadFromFinancialConfigData() method.
2604
+ *
2605
+ * @example
2606
+ * ```typescript
2607
+ * // In app initialization (e.g., after login)
2608
+ * // First, fetch financial config from your app's service
2609
+ * const response = await financialConfigService.getFinancialConfigById(...).toPromise();
2610
+ * if (response?.success && response?.data) {
2611
+ * currencyService.loadFromFinancialConfigData(response.data);
2612
+ * }
2613
+ *
2614
+ * // In component
2615
+ * const formatted = currencyService.format(1000); // "₹1,000.00"
2616
+ *
2617
+ * // Override for specific use case
2618
+ * const formatted = currencyService.format(1000, { currencySymbol: '$' });
2619
+ * ```
2620
+ */
2621
+ declare class CurrencyService {
2622
+ private readonly configSignal;
2623
+ private readonly overrideSignal;
2624
+ readonly loading: _angular_core.WritableSignal<boolean>;
2625
+ readonly error: _angular_core.WritableSignal<string | null>;
2626
+ readonly config: _angular_core.Signal<CurrencyConfig>;
2627
+ readonly currencySymbol: _angular_core.Signal<string>;
2628
+ readonly currencyCode: _angular_core.Signal<string>;
2629
+ constructor();
2630
+ /**
2631
+ * Set currency configuration
2632
+ * @param config - Currency configuration to set
2633
+ */
2634
+ setConfig(config: CurrencyConfig): void;
2635
+ /**
2636
+ * Update currency configuration (partial update)
2637
+ * @param updates - Partial currency configuration
2638
+ */
2639
+ updateConfig(updates: Partial<CurrencyConfig>): void;
2640
+ /**
2641
+ * Set temporary override (takes precedence over base config)
2642
+ * @param override - Partial currency configuration to override
2643
+ */
2644
+ setOverride(override: Partial<CurrencyConfig> | null): void;
2645
+ /**
2646
+ * Clear override (revert to base config)
2647
+ */
2648
+ clearOverride(): void;
2649
+ /**
2650
+ * Load currency configuration from financial config data
2651
+ * This method accepts financial config data that should be fetched by the app
2652
+ * The app is responsible for calling the API and passing the data here
2653
+ *
2654
+ * @param financialConfigData - Financial config data object from accounts library
2655
+ * @example
2656
+ * ```typescript
2657
+ * // In your app, fetch financial config first
2658
+ * const financialConfig = await financialConfigService.getFinancialConfigById(...);
2659
+ * // Then pass it to currency service
2660
+ * currencyService.loadFromFinancialConfigData(financialConfig.data);
2661
+ * ```
2662
+ */
2663
+ loadFromFinancialConfigData(financialConfigData: any): void;
2664
+ /**
2665
+ * Map financial config data to currency config
2666
+ * This method expects the financial config data structure from accounts library
2667
+ */
2668
+ private mapFinancialConfigToCurrencyConfig;
2669
+ /**
2670
+ * Get locale based on currency code
2671
+ */
2672
+ private getLocaleFromCurrency;
2673
+ /**
2674
+ * Format a number as currency
2675
+ * @param value - Number to format
2676
+ * @param override - Optional override configuration
2677
+ * @returns Formatted currency string
2678
+ */
2679
+ format(value: number | string | null | undefined, override?: Partial<CurrencyConfig>): string;
2680
+ /**
2681
+ * Format number with currency configuration
2682
+ */
2683
+ private formatNumber;
2684
+ /**
2685
+ * Load configuration from localStorage
2686
+ */
2687
+ private loadFromLocalStorage;
2688
+ /**
2689
+ * Save configuration to localStorage
2690
+ */
2691
+ private saveToLocalStorage;
2692
+ /**
2693
+ * Reset to default configuration
2694
+ */
2695
+ reset(): void;
2696
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CurrencyService, never>;
2697
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<CurrencyService>;
2698
+ }
2699
+
2529
2700
  /**
2530
2701
  * Directive to display images from file manager by ID
2531
2702
  * Usage: <img cideEleFileImage [fileId]="yourFileId" [altText]="'Image'" class="your-css-classes" />
@@ -3755,5 +3926,5 @@ declare class CideEleSkeletonLoaderComponent {
3755
3926
  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>;
3756
3927
  }
3757
3928
 
3758
- export { CapitalizePipe, CideCoreFileManagerService, CideEleBreadcrumbComponent, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleFloatingFileUploaderService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleThemeToggleComponent, 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 };
3759
- 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 };
3929
+ export { CapitalizePipe, CideCoreFileManagerService, CideEleBreadcrumbComponent, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleFloatingFileUploaderService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleThemeToggleComponent, CideEleToastNotificationComponent, CideElementsService, CideFormFieldErrorComponent, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, CideThemeService, ConfirmationService, CoreFileManagerInsertUpdatePayload, CurrencyPipe, CurrencyService, DEFAULT_CURRENCY_CONFIG, DEFAULT_GRID_CONFIG, DropdownManagerService, ExportService, ICoreCyfmSave, KeyboardShortcutService, MFileManager, NotificationApiService, NotificationService, PortalService, TooltipDirective, WebSocketNotificationService, cidePath, hostManagerRoutesUrl, notificationRoutesUrl };
3930
+ 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, CurrencyConfig, CurrencyDisplayFormat, 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.96",
3
+ "version": "1.1.101",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"