cloud-ide-element 1.1.95 → 1.1.99
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 +395 -11
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +171 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1167,6 +1167,67 @@ declare class ExportService {
|
|
|
1167
1167
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ExportService>;
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* Currency Display Format Options
|
|
1172
|
+
*/
|
|
1173
|
+
type CurrencyDisplayFormat = 'symbol_before' | 'symbol_after' | 'code_before' | 'code_after';
|
|
1174
|
+
/**
|
|
1175
|
+
* Currency Configuration Interface
|
|
1176
|
+
* Matches the structure from accounts library financial config
|
|
1177
|
+
*/
|
|
1178
|
+
interface CurrencyConfig {
|
|
1179
|
+
currencyCode?: string;
|
|
1180
|
+
currencySymbol?: string;
|
|
1181
|
+
displayFormat?: CurrencyDisplayFormat;
|
|
1182
|
+
showSymbol?: boolean;
|
|
1183
|
+
showCode?: boolean;
|
|
1184
|
+
decimalPlaces?: number;
|
|
1185
|
+
thousandSeparator?: string;
|
|
1186
|
+
decimalSeparator?: string;
|
|
1187
|
+
locale?: string;
|
|
1188
|
+
roundingMethod?: 'round' | 'floor' | 'ceiling' | 'none';
|
|
1189
|
+
roundingPrecision?: number;
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* Default Currency Configuration
|
|
1193
|
+
* Defaults to Indian Rupees (INR)
|
|
1194
|
+
*/
|
|
1195
|
+
declare const DEFAULT_CURRENCY_CONFIG: CurrencyConfig;
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Currency Pipe
|
|
1199
|
+
*
|
|
1200
|
+
* Formats numbers as currency using global currency configuration.
|
|
1201
|
+
* Supports override for specific formatting needs.
|
|
1202
|
+
*
|
|
1203
|
+
* @example
|
|
1204
|
+
* ```html
|
|
1205
|
+
* <!-- Use global config -->
|
|
1206
|
+
* <span>{{ amount | currency }}</span>
|
|
1207
|
+
*
|
|
1208
|
+
* <!-- Override symbol -->
|
|
1209
|
+
* <span>{{ amount | currency: { currencySymbol: '₹' } }}</span>
|
|
1210
|
+
*
|
|
1211
|
+
* <!-- Override decimal places -->
|
|
1212
|
+
* <span>{{ amount | currency: { decimalPlaces: 0 } }}</span>
|
|
1213
|
+
*
|
|
1214
|
+
* <!-- Override display format -->
|
|
1215
|
+
* <span>{{ amount | currency: { displayFormat: 'symbol_after' } }}</span>
|
|
1216
|
+
* ```
|
|
1217
|
+
*/
|
|
1218
|
+
declare class CurrencyPipe implements PipeTransform {
|
|
1219
|
+
private readonly currencyService;
|
|
1220
|
+
/**
|
|
1221
|
+
* Transform number to formatted currency string
|
|
1222
|
+
* @param value - Number to format
|
|
1223
|
+
* @param override - Optional override configuration
|
|
1224
|
+
* @returns Formatted currency string
|
|
1225
|
+
*/
|
|
1226
|
+
transform(value: number | string | null | undefined, override?: Partial<CurrencyConfig>): string;
|
|
1227
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CurrencyPipe, never>;
|
|
1228
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<CurrencyPipe, "currency", true>;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1170
1231
|
type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
1171
1232
|
type TooltipType = 'default' | 'success' | 'warning' | 'error' | 'info' | 'light' | 'dark';
|
|
1172
1233
|
declare class TooltipDirective implements OnInit, OnDestroy {
|
|
@@ -2526,6 +2587,114 @@ declare class CideThemeService {
|
|
|
2526
2587
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideThemeService>;
|
|
2527
2588
|
}
|
|
2528
2589
|
|
|
2590
|
+
/**
|
|
2591
|
+
* Currency Service
|
|
2592
|
+
*
|
|
2593
|
+
* Manages global currency configuration with support for:
|
|
2594
|
+
* - Loading from financial config data (app must fetch data first)
|
|
2595
|
+
* - Override capabilities
|
|
2596
|
+
* - App state persistence
|
|
2597
|
+
* - Reactive updates using Angular Signals
|
|
2598
|
+
* - Default currency: Indian Rupees (INR, ₹)
|
|
2599
|
+
*
|
|
2600
|
+
* Note: This service does NOT call APIs. The app must fetch financial config
|
|
2601
|
+
* data and pass it to loadFromFinancialConfigData() method.
|
|
2602
|
+
*
|
|
2603
|
+
* @example
|
|
2604
|
+
* ```typescript
|
|
2605
|
+
* // In app initialization (e.g., after login)
|
|
2606
|
+
* // First, fetch financial config from your app's service
|
|
2607
|
+
* const response = await financialConfigService.getFinancialConfigById(...).toPromise();
|
|
2608
|
+
* if (response?.success && response?.data) {
|
|
2609
|
+
* currencyService.loadFromFinancialConfigData(response.data);
|
|
2610
|
+
* }
|
|
2611
|
+
*
|
|
2612
|
+
* // In component
|
|
2613
|
+
* const formatted = currencyService.format(1000); // "₹1,000.00"
|
|
2614
|
+
*
|
|
2615
|
+
* // Override for specific use case
|
|
2616
|
+
* const formatted = currencyService.format(1000, { currencySymbol: '$' });
|
|
2617
|
+
* ```
|
|
2618
|
+
*/
|
|
2619
|
+
declare class CurrencyService {
|
|
2620
|
+
private readonly configSignal;
|
|
2621
|
+
private readonly overrideSignal;
|
|
2622
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
2623
|
+
readonly error: _angular_core.WritableSignal<string | null>;
|
|
2624
|
+
readonly config: _angular_core.Signal<CurrencyConfig>;
|
|
2625
|
+
readonly currencySymbol: _angular_core.Signal<string>;
|
|
2626
|
+
readonly currencyCode: _angular_core.Signal<string>;
|
|
2627
|
+
constructor();
|
|
2628
|
+
/**
|
|
2629
|
+
* Set currency configuration
|
|
2630
|
+
* @param config - Currency configuration to set
|
|
2631
|
+
*/
|
|
2632
|
+
setConfig(config: CurrencyConfig): void;
|
|
2633
|
+
/**
|
|
2634
|
+
* Update currency configuration (partial update)
|
|
2635
|
+
* @param updates - Partial currency configuration
|
|
2636
|
+
*/
|
|
2637
|
+
updateConfig(updates: Partial<CurrencyConfig>): void;
|
|
2638
|
+
/**
|
|
2639
|
+
* Set temporary override (takes precedence over base config)
|
|
2640
|
+
* @param override - Partial currency configuration to override
|
|
2641
|
+
*/
|
|
2642
|
+
setOverride(override: Partial<CurrencyConfig> | null): void;
|
|
2643
|
+
/**
|
|
2644
|
+
* Clear override (revert to base config)
|
|
2645
|
+
*/
|
|
2646
|
+
clearOverride(): void;
|
|
2647
|
+
/**
|
|
2648
|
+
* Load currency configuration from financial config data
|
|
2649
|
+
* This method accepts financial config data that should be fetched by the app
|
|
2650
|
+
* The app is responsible for calling the API and passing the data here
|
|
2651
|
+
*
|
|
2652
|
+
* @param financialConfigData - Financial config data object from accounts library
|
|
2653
|
+
* @example
|
|
2654
|
+
* ```typescript
|
|
2655
|
+
* // In your app, fetch financial config first
|
|
2656
|
+
* const financialConfig = await financialConfigService.getFinancialConfigById(...);
|
|
2657
|
+
* // Then pass it to currency service
|
|
2658
|
+
* currencyService.loadFromFinancialConfigData(financialConfig.data);
|
|
2659
|
+
* ```
|
|
2660
|
+
*/
|
|
2661
|
+
loadFromFinancialConfigData(financialConfigData: any): void;
|
|
2662
|
+
/**
|
|
2663
|
+
* Map financial config data to currency config
|
|
2664
|
+
* This method expects the financial config data structure from accounts library
|
|
2665
|
+
*/
|
|
2666
|
+
private mapFinancialConfigToCurrencyConfig;
|
|
2667
|
+
/**
|
|
2668
|
+
* Get locale based on currency code
|
|
2669
|
+
*/
|
|
2670
|
+
private getLocaleFromCurrency;
|
|
2671
|
+
/**
|
|
2672
|
+
* Format a number as currency
|
|
2673
|
+
* @param value - Number to format
|
|
2674
|
+
* @param override - Optional override configuration
|
|
2675
|
+
* @returns Formatted currency string
|
|
2676
|
+
*/
|
|
2677
|
+
format(value: number | string | null | undefined, override?: Partial<CurrencyConfig>): string;
|
|
2678
|
+
/**
|
|
2679
|
+
* Format number with currency configuration
|
|
2680
|
+
*/
|
|
2681
|
+
private formatNumber;
|
|
2682
|
+
/**
|
|
2683
|
+
* Load configuration from localStorage
|
|
2684
|
+
*/
|
|
2685
|
+
private loadFromLocalStorage;
|
|
2686
|
+
/**
|
|
2687
|
+
* Save configuration to localStorage
|
|
2688
|
+
*/
|
|
2689
|
+
private saveToLocalStorage;
|
|
2690
|
+
/**
|
|
2691
|
+
* Reset to default configuration
|
|
2692
|
+
*/
|
|
2693
|
+
reset(): void;
|
|
2694
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CurrencyService, never>;
|
|
2695
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CurrencyService>;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2529
2698
|
/**
|
|
2530
2699
|
* Directive to display images from file manager by ID
|
|
2531
2700
|
* Usage: <img cideEleFileImage [fileId]="yourFileId" [altText]="'Image'" class="your-css-classes" />
|
|
@@ -3755,5 +3924,5 @@ declare class CideEleSkeletonLoaderComponent {
|
|
|
3755
3924
|
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
3925
|
}
|
|
3757
3926
|
|
|
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 };
|
|
3927
|
+
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 };
|
|
3928
|
+
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 };
|