@masterteam/dashboard-builder 0.0.49 → 0.0.51

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.
@@ -1,6 +1,6 @@
1
1
  import * as _masterteam_dashboard_builder from '@masterteam/dashboard-builder';
2
2
  import * as _angular_core from '@angular/core';
3
- import { OnInit, OnDestroy, ElementRef, AfterViewInit, OnChanges, SimpleChanges, TemplateRef, PipeTransform } from '@angular/core';
3
+ import { OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges, TemplateRef, PipeTransform } from '@angular/core';
4
4
  import { GridsterItem, GridsterConfig } from 'angular-gridster2';
5
5
  import { ContextMenu } from 'primeng/contextmenu';
6
6
  import { MenuItem } from 'primeng/api';
@@ -482,6 +482,8 @@ interface ChartActionsContext {
482
482
  editItem: (item: DashboardChartItem, parentItem?: DashboardChartItem) => void;
483
483
  addDialogForChart: (item: DashboardChartItem) => void;
484
484
  editOnDialogForChart: (item: DashboardChartItem) => void;
485
+ editDialogActionsForChart: (item: DashboardChartItem) => void;
486
+ editDialogStyleForChart: (item: DashboardChartItem) => void;
485
487
  deleteDialogFromChart: (item: DashboardChartItem) => void;
486
488
  }
487
489
  /**
@@ -532,7 +534,7 @@ interface CustomApi {
532
534
  /**
533
535
  * Action emitted from the kebab menu. The host (`dashboard-builder`)
534
536
  * routes each id to a single concrete owner (ManageItem, ChartSettingsDrawer,
535
- * ChartFilterDrawer, inline title input, or destructive action).
537
+ * ChartFilterDrawer, host title editor dialog, or destructive action).
536
538
  */
537
539
  type ItemCardMenuAction = {
538
540
  type: 'configure-datasource';
@@ -552,6 +554,10 @@ type ItemCardMenuAction = {
552
554
  type: 'dialog-open';
553
555
  } | {
554
556
  type: 'dialog-edit';
557
+ } | {
558
+ type: 'dialog-actions';
559
+ } | {
560
+ type: 'dialog-style';
555
561
  } | {
556
562
  type: 'dialog-remove';
557
563
  };
@@ -1218,6 +1224,16 @@ interface ControlField {
1218
1224
  type: ControlFieldType;
1219
1225
  /** Persisted dotted path (read/write target). */
1220
1226
  path: string;
1227
+ /**
1228
+ * Additional dotted paths to MIRROR the value into on every write. Used when
1229
+ * different chart types' renderers read the same logical style from different
1230
+ * persisted paths (e.g. card-content reads the title color from
1231
+ * `configAsType.headerCardConfig.headerColor` while statistic-card reads it
1232
+ * from `displayConfig.StyleConfig.color`). The value is written to `path` and
1233
+ * every `mirrorPaths` entry so one control reflects across all chart types.
1234
+ * Reads fall back to the first non-empty path among `[path, ...mirrorPaths]`.
1235
+ */
1236
+ mirrorPaths?: string[];
1221
1237
  /**
1222
1238
  * Default value applied when the field is missing on the persisted shape.
1223
1239
  * The default is *only* read for display — it is never silently written.
@@ -1590,8 +1606,6 @@ interface ItemGuidanceDescriptor {
1590
1606
  secondaryAction?: ItemGuidanceAction;
1591
1607
  /** Whether to render the center primary CTA card. */
1592
1608
  showCenterCta: boolean;
1593
- /** Whether the inline title editor should be visible (builder mode). */
1594
- showTitleEdit: boolean;
1595
1609
  /** Whether the top-end "More actions" kebab should be visible (builder). */
1596
1610
  showTopEndMenu: boolean;
1597
1611
  }
@@ -2349,6 +2363,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2349
2363
  * click/interaction actions (split out of the old ManageItem "Actions" tab).
2350
2364
  */
2351
2365
  openActionsDrawer(chart: DashboardChartItem): void;
2366
+ private applyEditableItemUpdate;
2352
2367
  /**
2353
2368
  * Apply a partial chart-config update produced by one of the dedicated
2354
2369
  * drawers (filters, style, manage-item). Updates the chart in place,
@@ -2371,11 +2386,14 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2371
2386
  * No surface duplicates another. There is no other code path that opens
2372
2387
  * a separate popover/wizard.
2373
2388
  */
2374
- onItemCardMenuAction(chart: DashboardChartItem, action: ItemCardMenuAction): void;
2389
+ onItemCardMenuAction(chart: DashboardChartItem, action: ItemCardMenuAction, parentItem?: DashboardChartItem): void;
2375
2390
  requestLayoutTitleEdit(chart: DashboardChartItem, event: Event): void;
2376
2391
  private openTitleEditor;
2377
2392
  /** Whether the chart has a linked dialog (Manage menu shows dialog entries). */
2378
2393
  hasLinkedDialog(chart: DashboardChartItem): boolean;
2394
+ private isDialogItem;
2395
+ private getLinkedDialog;
2396
+ private toDialogChartItem;
2379
2397
  /** Whether the chart can have a linked dialog added (chart cards that aren't dialogs themselves). */
2380
2398
  canLinkDialog(chart: DashboardChartItem): boolean;
2381
2399
  /** Duplicate a chart on the canvas. */
@@ -2384,6 +2402,14 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2384
2402
  showContextToolbar(chart: DashboardChartItem): boolean;
2385
2403
  isPropertiesListChart(chart: DashboardChartItem): boolean;
2386
2404
  isTopbarChart(chart: DashboardChartItem): boolean;
2405
+ getGroupChildren(groupItem: DashboardChartItem): DashboardChartItem[];
2406
+ getSelectedGroupChild(groupItem: DashboardChartItem): DashboardChartItem | null;
2407
+ getItemTitle(item: DashboardChartItem, fallbackIndex?: number): string;
2408
+ getGroupTitle(groupItem: DashboardChartItem): string;
2409
+ getGroupHeaderConfig(groupItem: DashboardChartItem): Record<string, any> | null;
2410
+ getGroupCardStyleConfig(groupItem: DashboardChartItem): Record<string, any> | null;
2411
+ getGroupStyleConfig(groupItem: DashboardChartItem): Record<string, any> | null;
2412
+ selectGroupChild(groupItem: DashboardChartItem, index: number, event?: Event): void;
2387
2413
  editItem(chart: DashboardChartItem, parentItem?: DashboardChartItem, defaultTab?: 'general' | 'dataSource' | 'actions'): void;
2388
2414
  deleteItem(chart: DashboardChartItem): void;
2389
2415
  /**
@@ -2415,7 +2441,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2415
2441
  */
2416
2442
  addWidgetByType(widgetType: ChartTypeConfig): void;
2417
2443
  /**
2418
- * Pass-2: persist an inline title edit committed from the chart card.
2444
+ * Persist a title update reported by an item renderer.
2419
2445
  * Updates `clientConfig.title.{en,ar}` for the matched chart.
2420
2446
  */
2421
2447
  onChartTitleEdited(chart: DashboardChartItem, newTitle: string): void;
@@ -2453,6 +2479,8 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2453
2479
  private toPropertyArray;
2454
2480
  private uniqueProperties;
2455
2481
  editOnDialogForChart(chart: DashboardChartItem): void;
2482
+ editDialogActionsForChart(chart: DashboardChartItem): void;
2483
+ editDialogStyleForChart(chart: DashboardChartItem): void;
2456
2484
  deleteDialogFromChart(chart: DashboardChartItem): void;
2457
2485
  /** Open chart settings drawer for item configuration */
2458
2486
  openQuickManage(event: Event, item: DashboardChartItem): void;
@@ -3040,7 +3068,7 @@ declare class DashboardItem implements OnInit, OnDestroy {
3040
3068
  readonly ignoreQueryFilter: _angular_core.InputSignal<boolean>;
3041
3069
  /**
3042
3070
  * Whether the host is rendering in builder mode (not viewer). Enables
3043
- * the inline title edit + Configure datasource CTA on the chart card.
3071
+ * builder-only guidance actions such as Configure datasource.
3044
3072
  */
3045
3073
  readonly builderMode: _angular_core.InputSignal<boolean>;
3046
3074
  /** Emitted when an action is triggered (useful for dialog communication) */
@@ -3052,8 +3080,8 @@ declare class DashboardItem implements OnInit, OnDestroy {
3052
3080
  */
3053
3081
  readonly configureRequested: _angular_core.OutputEmitterRef<void>;
3054
3082
  /**
3055
- * Emitted when the user inline-edits the chart title. Host (dashboard-builder)
3056
- * should persist the new title into clientConfig.title.{en,ar}.
3083
+ * Emitted when a child renderer reports a title change. Normal builder title
3084
+ * edits are handled by the host edit-title action/modal.
3057
3085
  */
3058
3086
  readonly titleEdited: _angular_core.OutputEmitterRef<string>;
3059
3087
  /** Dashboard ID - derived from config or chartTypeId */
@@ -3070,8 +3098,6 @@ declare class DashboardItem implements OnInit, OnDestroy {
3070
3098
  readonly languageCode: _angular_core.Signal<string>;
3071
3099
  /** Chart type from service config */
3072
3100
  readonly chartType: _angular_core.Signal<string | undefined>;
3073
- /** Whether the inline title input should be shown in the needs-config overlay. */
3074
- readonly titleEditableEnabled: _angular_core.Signal<boolean>;
3075
3101
  /** Current title in active language (or English / Arabic fallback). */
3076
3102
  readonly currentTitle: _angular_core.Signal<string>;
3077
3103
  /**
@@ -3159,9 +3185,9 @@ declare class DashboardItem implements OnInit, OnDestroy {
3159
3185
  */
3160
3186
  onSecondaryRequested(): void;
3161
3187
  /**
3162
- * Handle inline title edit committed by the chart card. Forwarded to host
3163
- * to persist into clientConfig.title.{en,ar}. We also patch the local
3164
- * store so the change shows immediately.
3188
+ * Handle title updates reported by child layout renderers. Forwarded to host
3189
+ * to persist into clientConfig.title.{en,ar}. We also patch the local store
3190
+ * so the change shows immediately.
3165
3191
  */
3166
3192
  onTitleChange(newTitle: string): void;
3167
3193
  doActions(eventData: any, eventType: string): void;
@@ -3185,6 +3211,7 @@ interface HeaderCardConfig$1 {
3185
3211
  }
3186
3212
  interface CardBorderStyleConfig {
3187
3213
  'border-width'?: number;
3214
+ 'border-color'?: string;
3188
3215
  'border-top-show'?: boolean;
3189
3216
  'border-top-color'?: string;
3190
3217
  'border-right-show'?: boolean;
@@ -3230,6 +3257,11 @@ declare class CardContentComponent {
3230
3257
  * key fall back to `comfortable` via the absence-of-attribute baseline.
3231
3258
  */
3232
3259
  readonly density: _angular_core.InputSignal<string | null>;
3260
+ /**
3261
+ * Optional card body padding in px (from `configAsType.padding`). When unset,
3262
+ * the CSS-class baseline padding applies — so existing cards are unchanged.
3263
+ */
3264
+ readonly padding: _angular_core.InputSignal<number | null>;
3233
3265
  /** Whether to show header */
3234
3266
  readonly showHeader: _angular_core.InputSignal<boolean>;
3235
3267
  /** Whether header is clickable */
@@ -3241,19 +3273,12 @@ declare class CardContentComponent {
3241
3273
  /** Header click event */
3242
3274
  readonly headerClick: _angular_core.OutputEmitterRef<void>;
3243
3275
  /**
3244
- * Whether the title is click-to-edit (builder mode only). Falsy by
3245
- * default so view-mode cards keep their existing behavior.
3276
+ * Deprecated compatibility input. Card titles are display-only here; builder
3277
+ * title changes are owned by the host edit-title action/modal.
3246
3278
  */
3247
3279
  readonly titleEditable: _angular_core.InputSignal<boolean>;
3248
- /** Emitted when the user commits an edited title (Enter / blur). */
3280
+ /** Deprecated compatibility output; title edits are host-owned. */
3249
3281
  readonly titleChange: _angular_core.OutputEmitterRef<string>;
3250
- /** Internal: whether the title input is currently being edited. */
3251
- readonly editingTitle: _angular_core.WritableSignal<boolean>;
3252
- /** Internal: draft text while editing. */
3253
- readonly titleDraft: _angular_core.WritableSignal<string>;
3254
- /** Reference to the inline title input (if visible). */
3255
- readonly titleInputRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
3256
- constructor();
3257
3282
  /** Computed show header */
3258
3283
  readonly showHeaderState: _angular_core.Signal<boolean>;
3259
3284
  /** Computed header clickable */
@@ -3265,20 +3290,8 @@ declare class CardContentComponent {
3265
3290
  /** Computed border radius style */
3266
3291
  readonly borderRadiusStyle: _angular_core.Signal<string>;
3267
3292
  onHeaderClick(): void;
3268
- /**
3269
- * Begin inline title editing. Only triggered when `titleEditable` is true.
3270
- * The title text is replaced by an `<input>` until Enter/blur (commit) or
3271
- * Escape (cancel).
3272
- */
3273
- onStartEditTitle(event: Event): void;
3274
- /** Commit the in-progress title edit. */
3275
- onCommitTitle(): void;
3276
- /** Cancel the in-progress title edit. */
3277
- onCancelTitle(): void;
3278
- /** Track input changes during edit. */
3279
- onTitleInput(value: string): void;
3280
3293
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardContentComponent, never>;
3281
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardContentComponent, "mt-card-content", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "headerConfig": { "alias": "headerConfig"; "required": false; "isSignal": true; }; "styleConfig": { "alias": "styleConfig"; "required": false; "isSignal": true; }; "cardStyleConfig": { "alias": "cardStyleConfig"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "headerClickable": { "alias": "headerClickable"; "required": false; "isSignal": true; }; "isNoTopEnd": { "alias": "isNoTopEnd"; "required": false; "isSignal": true; }; "isChart": { "alias": "isChart"; "required": false; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; }, { "headerClick": "headerClick"; "titleChange": "titleChange"; }, never, ["[topEnd]", "[body]", "[footer]"], true, never>;
3294
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardContentComponent, "mt-card-content", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "headerConfig": { "alias": "headerConfig"; "required": false; "isSignal": true; }; "styleConfig": { "alias": "styleConfig"; "required": false; "isSignal": true; }; "cardStyleConfig": { "alias": "cardStyleConfig"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "headerClickable": { "alias": "headerClickable"; "required": false; "isSignal": true; }; "isNoTopEnd": { "alias": "isNoTopEnd"; "required": false; "isSignal": true; }; "isChart": { "alias": "isChart"; "required": false; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; }, { "headerClick": "headerClick"; "titleChange": "titleChange"; }, never, ["[topEnd]", "[body]", "[footer]"], true, never>;
3282
3295
  }
3283
3296
 
3284
3297
  declare class CardFilterComponent implements OnInit {
@@ -3598,7 +3611,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3598
3611
  readonly inGroup: _angular_core.InputSignal<boolean>;
3599
3612
  /** Config mode flag (drawer preview) */
3600
3613
  readonly isConfigMode: _angular_core.InputSignal<boolean>;
3601
- /** Whether title is click-to-edit (builder mode only). */
3614
+ /** Builder-mode flag retained for legacy configure CTA behavior. */
3602
3615
  readonly titleEditable: _angular_core.InputSignal<boolean>;
3603
3616
  /** Action event output */
3604
3617
  readonly onAction: _angular_core.OutputEmitterRef<{
@@ -3607,7 +3620,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3607
3620
  }>;
3608
3621
  /** Emitted when the empty card "Configure datasource" CTA is clicked. */
3609
3622
  readonly onConfigure: _angular_core.OutputEmitterRef<void>;
3610
- /** Emitted when title is edited inline. */
3623
+ /** Deprecated compatibility output; title edits are host-owned. */
3611
3624
  readonly onTitleChange: _angular_core.OutputEmitterRef<string>;
3612
3625
  /** Configuration item */
3613
3626
  readonly configurationItem: _angular_core.WritableSignal<ItemConfig | null>;
@@ -3658,6 +3671,8 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3658
3671
  readonly timelineResources: _angular_core.Signal<any[]>;
3659
3672
  readonly timelineLabels: _angular_core.Signal<any[]>;
3660
3673
  readonly timelineLegendIconType: _angular_core.Signal<string>;
3674
+ /** Timeline legend visibility — honors the Style Studio "Show legend" toggle. */
3675
+ readonly timelineLegendShow: _angular_core.Signal<boolean>;
3661
3676
  readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
3662
3677
  readonly timelineHeaderTextColor: _angular_core.Signal<string | null>;
3663
3678
  readonly timelineMode: _angular_core.WritableSignal<TimelineScaleMode>;
@@ -3736,6 +3751,9 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3736
3751
  private chart;
3737
3752
  private resizeObserver;
3738
3753
  private echarts;
3754
+ private legendSelectedState;
3755
+ private pendingCustomLegendSelection;
3756
+ private readonly handleLegendSelectionChanged;
3739
3757
  /** Dashboard ID */
3740
3758
  readonly dashboardId: _angular_core.InputSignal<string | number>;
3741
3759
  /** Chart configuration/data - can be ECharts option directly or wrapped format */
@@ -3791,6 +3809,14 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3791
3809
  */
3792
3810
  private processLegends;
3793
3811
  private hasPieSeries;
3812
+ private applyLegendSelectionToOption;
3813
+ private readLegendSelectedMap;
3814
+ private storeLegendSelection;
3815
+ private syncLegendItems;
3816
+ private updatePieCenterTotal;
3817
+ private getFirstPieSeries;
3818
+ private getCenterGraphicGroup;
3819
+ private hasCenterGraphicChildren;
3794
3820
  /**
3795
3821
  * Toggle legend item visibility
3796
3822
  */
@@ -3849,6 +3875,8 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3849
3875
  private getResponsiveGridOffsets;
3850
3876
  private applyResponsiveLegend;
3851
3877
  private applyConfiguredLegend;
3878
+ private applyLegendOverrideOrder;
3879
+ private orderSeriesDataByLegend;
3852
3880
  private mapLegendConfig;
3853
3881
  private applyLegendSideCoordinates;
3854
3882
  private estimateCategoryCount;
@@ -3865,8 +3893,10 @@ interface EntityData {
3865
3893
  settings?: any;
3866
3894
  showInfoUser?: boolean;
3867
3895
  displayAreas?: any[];
3896
+ statusColor?: string;
3868
3897
  }
3869
3898
  declare class EntityInfoComponent {
3899
+ private readonly transloco;
3870
3900
  /** Entity data to display */
3871
3901
  readonly data: _angular_core.InputSignal<EntityData | null>;
3872
3902
  /** Display type: 'entity' shows label, 'inTable' shows value only */
@@ -3887,6 +3917,7 @@ declare class EntityInfoComponent {
3887
3917
  readonly lookupName: _angular_core.Signal<any>;
3888
3918
  readonly lookupColor: _angular_core.Signal<any>;
3889
3919
  readonly checkboxValue: _angular_core.Signal<boolean>;
3920
+ readonly checkboxLabel: _angular_core.Signal<string>;
3890
3921
  readonly statusName: _angular_core.Signal<any>;
3891
3922
  readonly statusColor: _angular_core.Signal<any>;
3892
3923
  readonly percentageValue: _angular_core.Signal<number | null>;
@@ -3960,6 +3991,8 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
3960
3991
  readonly currentTabItems: _angular_core.Signal<DashboardTabItem[]>;
3961
3992
  readonly selectedProperties: _angular_core.Signal<string[]>;
3962
3993
  readonly propsConfigAsIndex: _angular_core.Signal<PropertyRuntimeConfig[]>;
3994
+ readonly propertyColorOverrides: _angular_core.Signal<unknown>;
3995
+ readonly numberFormat: _angular_core.Signal<unknown>;
3963
3996
  readonly legacyHiddenPropertyKeys: _angular_core.Signal<string[]>;
3964
3997
  readonly tabOptions: _angular_core.Signal<DashboardCardTabOption[]>;
3965
3998
  readonly showTabs: _angular_core.Signal<boolean>;
@@ -3986,6 +4019,28 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
3986
4019
  private resolveTabLabel;
3987
4020
  private readString;
3988
4021
  private resolveEntityName;
4022
+ /**
4023
+ * Resolve a per-property label override from
4024
+ * configAsType.overrideSelectedPropertiesLabels[propKey][lang]. The map may be
4025
+ * stored with original-case keys, so match the property key case-insensitively.
4026
+ */
4027
+ private resolveLabelOverride;
4028
+ /**
4029
+ * Resolve a per-property color override from
4030
+ * configAsType.overrideSelectedPropertiesColors. Shape is
4031
+ * `{ [targetPropKey]: { selectedKey: sourcePropKeyOrColor } }` — the color is
4032
+ * sourced from another property's value (matching the ring-gauge handler) or,
4033
+ * when `selectedKey` is a literal color, used directly. Case-insensitive on
4034
+ * the property key. Returns '' when no override applies.
4035
+ */
4036
+ private resolvePropertyColorOverride;
4037
+ /**
4038
+ * Apply Style Studio "Number format" (clientConfig.format) to numeric entity
4039
+ * values (percentage / currency / number). Gated: only formats string/number
4040
+ * scalar values for those view types; absent format or non-scalar values pass
4041
+ * through unchanged so existing dashboards keep their current rendering.
4042
+ */
4043
+ private applyNumberFormat;
3989
4044
  private readLocalizedText;
3990
4045
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropertiesCardComponent, never>;
3991
4046
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PropertiesCardComponent, "mt-properties-card, mt-entities-preview-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
@@ -4010,6 +4065,28 @@ declare class EntityPreviewCardComponent implements OnInit, OnDestroy {
4010
4065
  private readLegacyHiddenPropertyKeys;
4011
4066
  private mapViewType;
4012
4067
  private resolveEntityName;
4068
+ /**
4069
+ * Resolve a per-property label override from
4070
+ * configAsType.overrideSelectedPropertiesLabels[propKey][lang]. The map may be
4071
+ * stored with original-case keys, so match the property key case-insensitively.
4072
+ */
4073
+ private resolveLabelOverride;
4074
+ /**
4075
+ * Resolve a per-property color override from
4076
+ * configAsType.overrideSelectedPropertiesColors. Shape is
4077
+ * `{ [targetPropKey]: { selectedKey: sourcePropKeyOrColor } }` — the color is
4078
+ * sourced from another property's value (matching the ring-gauge handler) or,
4079
+ * when `selectedKey` is a literal color, used directly. Case-insensitive on
4080
+ * the property key. Returns '' when no override applies.
4081
+ */
4082
+ private resolvePropertyColorOverride;
4083
+ /**
4084
+ * Apply Style Studio "Number format" (clientConfig.format) to numeric entity
4085
+ * values (percentage / currency / number). Gated: only formats string/number
4086
+ * scalar values for those view types; absent format or non-scalar values pass
4087
+ * through unchanged so existing dashboards keep their current rendering.
4088
+ */
4089
+ private applyNumberFormat;
4013
4090
  private readLocalizedText;
4014
4091
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewCardComponent, never>;
4015
4092
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewCardComponent, "mt-entity-preview-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -4079,6 +4156,24 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
4079
4156
  readonly containerStyles: _angular_core.Signal<any>;
4080
4157
  /** Card styles */
4081
4158
  readonly cardStyles: _angular_core.Signal<any>;
4159
+ /**
4160
+ * Header text alignment, written by the `textAlign` control as
4161
+ * `clientConfig.displayConfig.StyleConfig['justify-content']`
4162
+ * (values: start | center | end). When `isHeaderCentered` is set it forces
4163
+ * `center`. Returns '' when nothing is configured so the existing layout is
4164
+ * preserved.
4165
+ */
4166
+ readonly headerJustify: _angular_core.Signal<string>;
4167
+ /**
4168
+ * Center the header block
4169
+ * (configAsType.headerCardConfig.isHeaderCentered === true).
4170
+ */
4171
+ readonly isHeaderCentered: _angular_core.Signal<boolean>;
4172
+ /**
4173
+ * Hide the header band
4174
+ * (configAsType.headerCardConfig.isHeaderHidden === true).
4175
+ */
4176
+ readonly isHeaderHidden: _angular_core.Signal<boolean>;
4082
4177
  /** Status indicators */
4083
4178
  readonly statuses: _angular_core.WritableSignal<StatusItem[]>;
4084
4179
  readonly editingTitle: _angular_core.WritableSignal<boolean>;
@@ -4141,6 +4236,11 @@ declare class ListStatisticCardComponent implements OnInit, OnDestroy {
4141
4236
  private readonly subscription;
4142
4237
  /** Dashboard ID */
4143
4238
  readonly dashboardId: _angular_core.InputSignal<string | number>;
4239
+ /** Action output — routed through dashboard-item.doActions -> ActionService. */
4240
+ readonly onAction: _angular_core.OutputEmitterRef<{
4241
+ type: string;
4242
+ data: any;
4243
+ }>;
4144
4244
  /** Configuration item - matches OLD: ConfigurationItem */
4145
4245
  readonly configurationItem: _angular_core.WritableSignal<ItemConfig | null>;
4146
4246
  /** Handled data - matches OLD: DataHandled - receives direct format from handler */
@@ -4155,7 +4255,7 @@ declare class ListStatisticCardComponent implements OnInit, OnDestroy {
4155
4255
  */
4156
4256
  doActions(event: any, type: string): void;
4157
4257
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListStatisticCardComponent, never>;
4158
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListStatisticCardComponent, "mt-list-statistic-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
4258
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListStatisticCardComponent, "mt-list-statistic-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
4159
4259
  }
4160
4260
 
4161
4261
  interface SkeletonConfig {
@@ -4218,6 +4318,10 @@ declare class StatisticCardComponent implements OnInit {
4218
4318
  }>;
4219
4319
  /** Card styles */
4220
4320
  readonly cardStyles: _angular_core.Signal<Record<string, any>>;
4321
+ /** Center the title/header block (configAsType.headerCardConfig.isHeaderCentered). */
4322
+ readonly isHeaderCentered: _angular_core.Signal<boolean>;
4323
+ /** Hide the title row (configAsType.headerCardConfig.isHeaderHidden / showHeader === false). */
4324
+ readonly isHeaderHidden: _angular_core.Signal<boolean>;
4221
4325
  /** Border top style */
4222
4326
  readonly borderTopStyle: _angular_core.Signal<{
4223
4327
  'border-top'?: undefined;
@@ -4269,7 +4373,19 @@ interface TableStyleConfig {
4269
4373
  groupBackgroundColor?: string;
4270
4374
  hiddenColumns?: string[];
4271
4375
  hideTableSubheader?: boolean;
4376
+ /** When true, skip currency formatting and render the raw numeric value. */
4377
+ disableCurrencyFormat?: boolean;
4272
4378
  hideIndex?: boolean;
4379
+ /** Alternating-row shading. */
4380
+ striped?: boolean;
4381
+ /** Default sort applied on load. */
4382
+ sortConfig?: {
4383
+ column?: string;
4384
+ direction?: 'asc' | 'desc';
4385
+ };
4386
+ /** Render percentage cells as a progress bar / status dot. */
4387
+ showPercentageAsProgressBar?: boolean;
4388
+ showPercentageStatus?: boolean;
4273
4389
  }
4274
4390
  interface TableVirtualRow {
4275
4391
  trackId: string;
@@ -4323,6 +4439,32 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4323
4439
  readonly title: _angular_core.Signal<string>;
4324
4440
  /** Table style config */
4325
4441
  readonly tableStyleConfig: _angular_core.Signal<TableStyleConfig | null>;
4442
+ /**
4443
+ * Hide the table's column-header (subheader) row.
4444
+ * Reads `clientConfig.tableFormat.hideTableSubheader`. Gated: defaults to
4445
+ * showing the header (current behavior) unless the flag is explicitly true.
4446
+ */
4447
+ readonly hideSubheader: _angular_core.Signal<boolean>;
4448
+ /**
4449
+ * Whether to skip currency formatting on cells.
4450
+ * Reads `clientConfig.tableFormat.disableCurrencyFormat`. Gated: only true
4451
+ * when the flag is explicitly set.
4452
+ */
4453
+ readonly disableCurrencyFormat: _angular_core.Signal<boolean>;
4454
+ /** "% status color" toggle — color percentage cells by the row's status. */
4455
+ readonly showPercentageStatus: _angular_core.Signal<boolean>;
4456
+ /**
4457
+ * Resolve the row's status colour from the column whose viewType is 'status'
4458
+ * (e.g. Delayed -> red, Completed -> green). Used to tint percentage cells.
4459
+ */
4460
+ private getRowStatusColor;
4461
+ /**
4462
+ * Extra-columns-from-lookup config persisted at `clientConfig.tableCoulmns`
4463
+ * (misspelling preserved on purpose). Shape: { extraCoulmnFromLookup,
4464
+ * lookupId, groupedBy, propKey }. Read here so the renderer can react to it;
4465
+ * the data-join itself is performed in buildTable when present.
4466
+ */
4467
+ readonly extraColumnsConfig: _angular_core.Signal<any>;
4326
4468
  /** Whether to show index column */
4327
4469
  readonly showIndex: _angular_core.Signal<boolean>;
4328
4470
  /** Whether table is grouped */
@@ -4365,6 +4507,13 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4365
4507
  * Build flat (non-grouped) table
4366
4508
  */
4367
4509
  private buildFlatTable;
4510
+ /**
4511
+ * Apply the configured default sort (tableFormat.sortConfig) on load. The
4512
+ * configured column is a selected-property key; match it against the built
4513
+ * columns (by keyPure / key prefix, case-insensitive) and sort the flat rows.
4514
+ * No-op when no sortConfig.column is set.
4515
+ */
4516
+ private applyDefaultSort;
4368
4517
  /**
4369
4518
  * Build grouped table
4370
4519
  */
@@ -4372,6 +4521,8 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4372
4521
  private isPhaseGateTable;
4373
4522
  private buildPhaseGateTable;
4374
4523
  private extractPhaseGateValues;
4524
+ private resolveConfiguredTableKeys;
4525
+ private toStringArray;
4375
4526
  private findLargestRow;
4376
4527
  private resolvePhaseGateFields;
4377
4528
  private findFirstFieldValue;
@@ -4733,6 +4884,12 @@ declare class PieChartHandler {
4733
4884
 
4734
4885
  declare class StackBarChartHandler {
4735
4886
  private readonly storeService;
4887
+ /**
4888
+ * Clamp a configured series label position to a valid ECharts bar label
4889
+ * position. Returns the fallback unchanged when the config value is absent
4890
+ * or not a recognized position (keeps existing behavior).
4891
+ */
4892
+ private resolveBarLabelPosition;
4736
4893
  private resolveStackBarBorderRadius;
4737
4894
  /**
4738
4895
  * Helper method to convert legend position based on language
@@ -4965,6 +5122,7 @@ declare class ComparisonChartHandler {
4965
5122
  }
4966
5123
 
4967
5124
  declare class SplitterChartHandler {
5125
+ private readonly storeService;
4968
5126
  /**
4969
5127
  * handleSplitterChart - matches functionName from CHART_TYPES
4970
5128
  * Returns data directly in the format:
@@ -5057,6 +5215,18 @@ declare class MapChartHandler {
5057
5215
  * Returns data directly as array of grouped records
5058
5216
  */
5059
5217
  handleLeafletMap(dataResponse: any, config: ItemConfig): any;
5218
+ /**
5219
+ * Reads the Style Studio map controls from the persisted clientConfig exactly
5220
+ * as the schema writes them and returns only the keys that are present.
5221
+ *
5222
+ * Schema write paths (control-schema.registry.ts MAP_SECTION):
5223
+ * - mapRegion -> clientConfig.map
5224
+ * - tileLayer -> clientConfig.configAsType.mapChart.tileLayer
5225
+ * - showClusters -> clientConfig.configAsType.mapChart.showClusters
5226
+ * - minZoom -> clientConfig.configAsType.mapChart.minZoom
5227
+ * - maxZoom -> clientConfig.configAsType.mapChart.maxZoom
5228
+ */
5229
+ private buildMapConfig;
5060
5230
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapChartHandler, never>;
5061
5231
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<MapChartHandler>;
5062
5232
  }
@@ -5279,10 +5449,9 @@ declare function formatCurrency(value: number | string | null | undefined, confi
5279
5449
  decimals?: number;
5280
5450
  }, langCode?: string): string;
5281
5451
  /**
5282
- * Resolve the currency suffix from the host's saved currency, defaulting to
5283
- * SAR — matches the old dashboard repo and the overview-card tooltip.
5284
- * Reads `localStorage('currency').unit`; Arabic uses a glyph map (falling back
5285
- * to the raw unit), English uses the unit code; falls back to SAR when unset.
5452
+ * Resolve the currency suffix from the host setting before falling back to SAR.
5453
+ * New hosts store it under `systemSettings.settings`; legacy dashboard hosts
5454
+ * used `currency`.
5286
5455
  */
5287
5456
  declare function getCurrencySuffix(langCode?: string): string;
5288
5457
  /**
@@ -7754,6 +7923,7 @@ declare class ActionsSettings {
7754
7923
  * value field's "Properties" tab and kept in sync as filters add keys.
7755
7924
  */
7756
7925
  readonly chartExtraProperties: _angular_core.Signal<string[]>;
7926
+ readonly chartExtraPropertyOptions: _angular_core.Signal<(string | IProperty)[]>;
7757
7927
  private normalizeExtraProperties;
7758
7928
  /** Get current actions array safely */
7759
7929
  private getCurrentActions;
@@ -7893,6 +8063,7 @@ declare class StyleStudioDrawer {
7893
8063
  /** Free-text "find a setting" filter. */
7894
8064
  readonly searchControl: FormControl<string>;
7895
8065
  readonly search: _angular_core.Signal<string>;
8066
+ private readonly activeLang;
7896
8067
  /** Section the rail highlights as active (scroll-spy). */
7897
8068
  readonly activeSection: _angular_core.WritableSignal<string>;
7898
8069
  /**
@@ -7975,6 +8146,8 @@ interface RenderSection {
7975
8146
  * the persisted config (one-way data flow → the live preview reacts).
7976
8147
  */
7977
8148
  declare class StyleSettingsRenderer {
8149
+ private readonly transloco;
8150
+ private readonly activeLang;
7978
8151
  readonly schema: _angular_core.InputSignal<ControlSchema>;
7979
8152
  readonly persisted: _angular_core.InputSignal<_masterteam_dashboard_builder.ItemConfig | null>;
7980
8153
  readonly capability: _angular_core.InputSignal<ChartCapability | null>;
@@ -7990,6 +8163,7 @@ declare class StyleSettingsRenderer {
7990
8163
  readonly isEmpty: _angular_core.Signal<boolean>;
7991
8164
  /** Composite/full-width field types span both grid columns. */
7992
8165
  isComposite(field: ControlField): boolean;
8166
+ message(key: string, fallback: string): string;
7993
8167
  sectionId(section: ControlSection): string;
7994
8168
  onPatch(patch: ControlPatch): void;
7995
8169
  /** Clear every visible field in a section back to its (unset) default. */
@@ -8004,7 +8178,7 @@ declare class StyleSettingsRenderer {
8004
8178
  * `cardStyleConfig.shadows` array, so a reset must clear BOTH or the rendered
8005
8179
  * box-shadow lingers. Shared by resetSection() and resetAll().
8006
8180
  */
8007
- declare function expandResetPatches(path: string): ControlPatch[];
8181
+ declare function expandResetPatches(path: string, mirrorPaths?: string[]): ControlPatch[];
8008
8182
  /**
8009
8183
  * Renders ONE schema `ControlField` as the appropriate `mt-*` control using
8010
8184
  * reactive forms (no ngModel). Scalar types own a `FormControl` synced from the
@@ -8024,11 +8198,15 @@ declare class StyleField {
8024
8198
  readonly jsonControl: FormControl<string>;
8025
8199
  readonly jsonError: _angular_core.WritableSignal<string | null>;
8026
8200
  private readonly destroyRef;
8201
+ private readonly transloco;
8202
+ private readonly activeLang;
8027
8203
  private syncing;
8028
8204
  private syncingJson;
8029
8205
  /** True for types that own their own state (controlled, no FormControl). */
8030
8206
  readonly isComposite: _angular_core.Signal<boolean>;
8031
8207
  readonly currentValue: _angular_core.Signal<unknown>;
8208
+ /** Read the field value from `path`, falling back to the first non-empty mirror. */
8209
+ private readCurrent;
8032
8210
  constructor();
8033
8211
  options(): ControlOption[];
8034
8212
  /** select uses a search box once the list is long enough to need one. */
@@ -8037,6 +8215,7 @@ declare class StyleField {
8037
8215
  get numberMin(): number;
8038
8216
  get numberMax(): number;
8039
8217
  conditionFields(): ControlField[];
8218
+ addLabel(fallback: string): string;
8040
8219
  mapKeys(): ControlOption[];
8041
8220
  readArray(): unknown[];
8042
8221
  readColors(): string[];
@@ -8117,6 +8296,7 @@ declare class ArrayBuilderField {
8117
8296
  readonly valueChange: _angular_core.OutputEmitterRef<unknown[]>;
8118
8297
  readonly rows: _angular_core.WritableSignal<ArrayRow[]>;
8119
8298
  private readonly destroyRef;
8299
+ private readonly transloco;
8120
8300
  /** Subscriptions for the current row set; torn down on every rebuild. */
8121
8301
  private rowSubs;
8122
8302
  private nextId;