@masterteam/dashboard-builder 0.0.21 → 0.0.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/dashboard-builder",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -21,8 +21,8 @@
21
21
  "primeng": "21.1.5",
22
22
  "rxjs": "^7.8.2",
23
23
  "tailwindcss": "^4.2.2",
24
- "@masterteam/components": "^0.0.144",
25
- "@masterteam/icons": "^0.0.14"
24
+ "@masterteam/icons": "^0.0.14",
25
+ "@masterteam/components": "^0.0.144"
26
26
  },
27
27
  "dependencies": {
28
28
  "tslib": "^2.8.1",
@@ -1974,8 +1974,8 @@ interface ProcessedProperty {
1974
1974
  config: PropertyConfig;
1975
1975
  }
1976
1976
  declare class EntityPreviewCardComponent implements OnInit, OnDestroy {
1977
- private readonly storeService;
1978
- private readonly transloco;
1977
+ private readonly itemStoreService;
1978
+ private readonly dashboardStoreService;
1979
1979
  private readonly subscription;
1980
1980
  /** Dashboard ID for this card */
1981
1981
  readonly dashboardId: _angular_core.InputSignal<string | number>;
@@ -1991,10 +1991,6 @@ declare class EntityPreviewCardComponent implements OnInit, OnDestroy {
1991
1991
  * Subscribe to store updates for this dashboard ID
1992
1992
  */
1993
1993
  private subscribeToStore;
1994
- /**
1995
- * Get current language code
1996
- */
1997
- private getLanguageCode;
1998
1994
  private normalizeEntityProperty;
1999
1995
  private resolveEntityName;
2000
1996
  private readLocalizedText;
@@ -2426,7 +2422,6 @@ declare class DashboardItemStoreService {
2426
2422
 
2427
2423
  declare class ChartDataService {
2428
2424
  private readonly http;
2429
- private readonly transloco;
2430
2425
  private readonly itemStore;
2431
2426
  private urlPrefix;
2432
2427
  private apiVersion;
@@ -2508,10 +2503,6 @@ declare class ChartDataService {
2508
2503
  * DYNAMIC pattern: Find handler that has the functionName method and call it
2509
2504
  */
2510
2505
  processChartData(data: any, config: ItemConfig): ChartDataHandled;
2511
- /**
2512
- * Get language code
2513
- */
2514
- getLanguageCode(): string;
2515
2506
  /**
2516
2507
  * Trigger refresh for a specific item
2517
2508
  */
@@ -2556,6 +2547,7 @@ declare class BarChartHandler {
2556
2547
  }
2557
2548
 
2558
2549
  declare class PieChartHandler {
2550
+ private readonly storeService;
2559
2551
  /**
2560
2552
  * handleDonutChart - matches functionName from CHART_TYPES
2561
2553
  * Returns ECharts option directly (exactly like old DountChartService.handleDonutChart)
@@ -2602,6 +2594,7 @@ declare const axisFormatters: Record<string, {
2602
2594
  declare function groupDatesByYearAndMonth(data: any[], valueAggregator?: (values: number[]) => number): any[];
2603
2595
 
2604
2596
  declare class GaugeChartHandler {
2597
+ private readonly storeService;
2605
2598
  /**
2606
2599
  * handleGaugeChart - matches functionName from CHART_TYPES
2607
2600
  * Returns ECharts config directly (exactly like old GaugeChartService)
@@ -2612,6 +2605,7 @@ declare class GaugeChartHandler {
2612
2605
  }
2613
2606
 
2614
2607
  declare class TableViewHandler {
2608
+ private readonly storeService;
2615
2609
  /**
2616
2610
  * handleTableView - matches functionName from CHART_TYPES
2617
2611
  * Returns data directly (not wrapped in { type, data, config })
@@ -2627,6 +2621,7 @@ declare class TableViewHandler {
2627
2621
  }
2628
2622
 
2629
2623
  declare class OverviewCardHandler {
2624
+ private readonly storeService;
2630
2625
  /**
2631
2626
  * handleOverviewCard - matches functionName from CHART_TYPES
2632
2627
  * Returns EXACT same format as old OverviewCardService
@@ -2686,6 +2681,7 @@ declare class TimelineHandler {
2686
2681
  }
2687
2682
 
2688
2683
  declare class LineChartHandler {
2684
+ private readonly storeService;
2689
2685
  /**
2690
2686
  * handleLineChart - matches functionName from CHART_TYPES
2691
2687
  * Returns ECharts config directly with noData, width, divClass properties
@@ -2708,6 +2704,7 @@ declare class LineChartHandler {
2708
2704
  }
2709
2705
 
2710
2706
  declare class SnapshotHandler {
2707
+ private readonly storeService;
2711
2708
  /**
2712
2709
  * handleSnapShot - matches functionName from CHART_TYPES
2713
2710
  * Returns ECharts option directly (same as old SnapShotService)
@@ -2728,6 +2725,7 @@ declare class SnapshotHandler {
2728
2725
  }
2729
2726
 
2730
2727
  declare class ComparisonChartHandler {
2728
+ private readonly storeService;
2731
2729
  /**
2732
2730
  * Main handler for comparison charts
2733
2731
  * Returns ECharts config directly with noData, width, divClass properties
@@ -2813,6 +2811,7 @@ interface LevelCardProperty {
2813
2811
  icon?: string;
2814
2812
  }
2815
2813
  declare class LevelCardHandler {
2814
+ private readonly storeService;
2816
2815
  /**
2817
2816
  * handlelevelCards - matches functionName from CHART_TYPES
2818
2817
  * Returns data directly like old LevelCardService:
@@ -2867,6 +2866,7 @@ declare class MapChartHandler {
2867
2866
  }
2868
2867
 
2869
2868
  declare class RingGaugeChartHandler {
2869
+ private readonly storeService;
2870
2870
  private colorByPropMap;
2871
2871
  /**
2872
2872
  * handleRingGaugeChart - matches functionName from CHART_TYPES
@@ -2894,6 +2894,7 @@ declare class RingGaugeChartHandler {
2894
2894
  }
2895
2895
 
2896
2896
  declare class SPlusChartHandler {
2897
+ private readonly storeService;
2897
2898
  private generalService;
2898
2899
  /**
2899
2900
  * Handle S+ Gauge Chart - returns ECharts option directly
@@ -2976,6 +2977,7 @@ interface PhaseGateProperty {
2976
2977
  viewType?: string;
2977
2978
  }
2978
2979
  declare class PhaseGateStepperHandler {
2980
+ private readonly storeService;
2979
2981
  /**
2980
2982
  * handlePhaseGateStepperCard - matches functionName from CHART_TYPES
2981
2983
  * Returns data directly matching old PhaseGateStepperService format
@@ -3026,10 +3028,6 @@ declare class PhaseGateStepperHandler {
3026
3028
  *
3027
3029
  * Number, currency, and date formatting utilities.
3028
3030
  */
3029
- /**
3030
- * Get current language code from localStorage
3031
- */
3032
- declare function getLanguageCode(): string;
3033
3031
  /**
3034
3032
  * Format large numbers with suffixes (K, M, B, T)
3035
3033
  */
@@ -3038,7 +3036,7 @@ declare function formatCurrency(value: number | string | null | undefined, confi
3038
3036
  showCurrency?: boolean;
3039
3037
  handleLang?: boolean;
3040
3038
  decimals?: number;
3041
- }): string;
3039
+ }, langCode?: string): string;
3042
3040
  /**
3043
3041
  * Format percentage value
3044
3042
  */
@@ -3046,11 +3044,11 @@ declare function formatPercentage(value: number | string | null | undefined, dec
3046
3044
  /**
3047
3045
  * Format number with locale
3048
3046
  */
3049
- declare function formatNumber(value: number | string | null | undefined, options?: Intl.NumberFormatOptions): string;
3047
+ declare function formatNumber(value: number | string | null | undefined, options?: Intl.NumberFormatOptions, langCode?: string): string;
3050
3048
  /**
3051
3049
  * Format date
3052
3050
  */
3053
- declare function formatDate(value: string | Date | null | undefined, format?: 'short' | 'medium' | 'long' | 'full'): string;
3051
+ declare function formatDate(value: string | Date | null | undefined, format?: 'short' | 'medium' | 'long' | 'full', langCode?: string): string;
3054
3052
  /**
3055
3053
  * Formatter for ECharts axis labels
3056
3054
  */
@@ -3063,7 +3061,7 @@ declare function createAxisFormatter(config?: {
3063
3061
  */
3064
3062
  declare function createTooltipFormatter(config?: {
3065
3063
  type?: 'currency' | 'percentage' | 'number';
3066
- }): (value: number) => string;
3064
+ }, langCode?: string): (value: number) => string;
3067
3065
  /**
3068
3066
  * Format words with underscores for display
3069
3067
  * Matches old formatterWordsUnderBar from Formatters.ts
@@ -3091,7 +3089,7 @@ interface FormatXAxisConfig$1 {
3091
3089
  * @param value - The X-axis category value (typically a date string)
3092
3090
  * @param configFormat - Configuration object with type and format options
3093
3091
  */
3094
- declare function formatXAxis(value: string | Date, configFormat?: FormatXAxisConfig$1): string;
3092
+ declare function formatXAxis(value: string | Date, configFormat?: FormatXAxisConfig$1, langCode?: string): string;
3095
3093
 
3096
3094
  /**
3097
3095
  * Chart Helpers
@@ -3119,7 +3117,7 @@ declare const generalConfiguration: {
3119
3117
  /**
3120
3118
  * Format value based on config format (matches old Formater function)
3121
3119
  */
3122
- declare function formatValue(value: any, configFormat: any): any;
3120
+ declare function formatValue(value: any, configFormat: any, langCode?: string): any;
3123
3121
  /**
3124
3122
  * Add commas to number for display (same as old)
3125
3123
  */
@@ -3185,7 +3183,7 @@ declare function sortDataTableView(data: any[], sortConfig: {
3185
3183
  declare function getLocalizedTitle(titleObj: {
3186
3184
  en?: string;
3187
3185
  ar?: string;
3188
- } | string | null | undefined): string;
3186
+ } | string | null | undefined, langCode?: string): string;
3189
3187
  /**
3190
3188
  * Check if running on mobile platform
3191
3189
  */
@@ -5137,5 +5135,5 @@ declare class GetChartActionsPipe implements PipeTransform {
5137
5135
  */
5138
5136
  declare function cloneDeep<T>(obj: T): T;
5139
5137
 
5140
- export { ActionsSettings, BarChartHandler, BarControlUi, CHART_TYPES, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartSettingsDrawer, ChartViewer, ComparisonChartHandler, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterByGroupPipe, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, HTTPMethod, HeaderCardComponent, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, addCommasToNumber, axisFormatters, cloneDeep, createAxisFormatter, createTooltipFormatter, dynamicReorder, dynamicTextReplace, formatCurrency, formatDate, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getColorFromConditions, getLanguageCode, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, isMobilePlatform, sortChartData, sortDataTableView, switchAllKeysSmall, switchAllKeysToLower };
5138
+ export { ActionsSettings, BarChartHandler, BarControlUi, CHART_TYPES, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartSettingsDrawer, ChartViewer, ComparisonChartHandler, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterByGroupPipe, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, HTTPMethod, HeaderCardComponent, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, addCommasToNumber, axisFormatters, cloneDeep, createAxisFormatter, createTooltipFormatter, dynamicReorder, dynamicTextReplace, formatCurrency, formatDate, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getColorFromConditions, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, isMobilePlatform, sortChartData, sortDataTableView, switchAllKeysSmall, switchAllKeysToLower };
5141
5139
  export type { ActionConfig, ApiResponse, BarChartData, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartData, ChartDataHandled, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, CustomApi, DashboardBuilderData, DashboardChartItem, DashboardChartTemplate, DashboardDialogItem, DashboardInformativeContext, DashboardItemStore, DashboardListEvent, DashboardPage, DashboardTargetOption, DashboardTargetPathStep, DashboardTargetTemplateFilter, DashboardTargetTemplateSelection, DashboardTargetTemplateSourceLink, DashboardTargetsContextInfo, DashboardTargetsResponse, DisplayConfig, EChartSeriesItem, ExcelSheet, FilterConfig, FilterOption, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemConfig, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedName, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModulesTreeRequest, ModulesTreeResponse, PhaseGateProperty, PhaseGateStep, PieChartData, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QuickManageType, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, SelectionFilter, ServiceConfig, ServiceItem, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StyleConfig, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, UnlinkChartRequest };