@masterteam/dashboard-builder 0.0.45 → 0.0.47

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.
@@ -6,14 +6,16 @@ import { ContextMenu } from 'primeng/contextmenu';
6
6
  import { MenuItem } from 'primeng/api';
7
7
  import { MTMenuItem } from '@masterteam/components/menu';
8
8
  import * as _angular_forms from '@angular/forms';
9
- import { ControlValueAccessor, FormGroup, FormArray, ValidationErrors } from '@angular/forms';
9
+ import { ControlValueAccessor, FormGroup, FormArray, ValidationErrors, FormControl } from '@angular/forms';
10
+ import * as rxjs from 'rxjs';
11
+ import { Observable } from 'rxjs';
10
12
  import { MTIcon } from '@masterteam/icons';
11
13
  import { TimelineScaleMode, TimelineColumnConfig, TimelineGanttMapping } from '@masterteam/timeline';
12
14
  import { EntityData as EntityData$1 } from '@masterteam/components/entities';
13
- import * as rxjs from 'rxjs';
14
- import { Observable } from 'rxjs';
15
15
  import { ColumnDef, TableAction, CellChangeEvent } from '@masterteam/components/table';
16
+ import { ActivatedRoute } from '@angular/router';
16
17
  import { ModalService } from '@masterteam/components/modal';
18
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
17
19
  import { ModalRef } from '@masterteam/components/dialog';
18
20
 
19
21
  /**
@@ -37,7 +39,24 @@ interface ModulesTreeRequest {
37
39
  workspaceId?: string | number | null;
38
40
  }
39
41
  /**
40
- * Module value item from tree response
42
+ * Extra linkage metadata carried by hierarchical tree nodes.
43
+ * Roots carry `nodeType`/`selector`; children carry `parent*` back-references.
44
+ */
45
+ interface ModuleValueExtra {
46
+ nodeType?: string;
47
+ selector?: string;
48
+ parentType?: string;
49
+ parentId?: string;
50
+ parentSelector?: string;
51
+ parentName?: string;
52
+ }
53
+ /**
54
+ * Module value item from tree response.
55
+ *
56
+ * From `metadata/modules/tree/hierarchical` a value may be a PARENT root
57
+ * (e.g. a `Template`) whose `children` hold the selectable nodes (e.g. `Level`).
58
+ * For flat modules (`Module`, `Request`) `children` is empty/absent and the
59
+ * value itself is the selectable node.
41
60
  */
42
61
  interface ModuleValue {
43
62
  id: number;
@@ -45,6 +64,8 @@ interface ModuleValue {
45
64
  value: string;
46
65
  selector: string;
47
66
  workspaceId?: string | number | null;
67
+ extra?: ModuleValueExtra;
68
+ children?: ModuleValue[];
48
69
  }
49
70
  /**
50
71
  * Module item from tree response
@@ -81,6 +102,31 @@ interface GroupedModuleOption {
81
102
  /** Items in this group */
82
103
  items: ModuleSelectOption[];
83
104
  }
105
+ /**
106
+ * Parent (root) option for the cascading parent select.
107
+ * Only emitted for hierarchical modules (values that have `children`).
108
+ */
109
+ interface ParentSelectOption {
110
+ /** Parent id (number) */
111
+ id: number;
112
+ /** Display name */
113
+ name: string;
114
+ /** Parent selector, e.g. "Template:48" */
115
+ selector: string;
116
+ /** Owning module type id, e.g. "Level" */
117
+ moduleTypeId: string;
118
+ }
119
+ /**
120
+ * Grouped parent option (grouped by owning module type).
121
+ */
122
+ interface GroupedParentOption {
123
+ /** Group label (module name like "Levels") */
124
+ label: string;
125
+ /** Module type id */
126
+ moduleTypeId: string;
127
+ /** Parent roots in this group */
128
+ items: ParentSelectOption[];
129
+ }
84
130
  /**
85
131
  * Module option for select dropdown
86
132
  */
@@ -370,6 +416,8 @@ interface DashboardDialogItem {
370
416
  name?: string;
371
417
  config: ItemConfig;
372
418
  chartTypeId?: string;
419
+ /** Backend link id, preserved so re-saving updates (not duplicates) the link. */
420
+ chartComponentId?: string;
373
421
  loading?: boolean;
374
422
  }
375
423
  /**
@@ -509,6 +557,8 @@ type ItemCardMenuAction = {
509
557
  };
510
558
  declare class ItemCardMenuComponent {
511
559
  private readonly transloco;
560
+ /** Per-chart filters are configured inside Manage Item (the "Filters" tab),
561
+ * matching the old builder — so the kebab Filters entry stays hidden. */
512
562
  private readonly filtersActionVisible;
513
563
  /** Whether to allow duplicate (excluded for layout/group widgets). */
514
564
  readonly allowDuplicate: _angular_core.InputSignal<boolean>;
@@ -722,6 +772,18 @@ declare function moduleIdFromSelector(selector: string | null | undefined): stri
722
772
  * source1LinkProperty, source2LinkProperty, isFilterLinkage, isLeftJoin }
723
773
  */
724
774
  declare function toBackendSourceLink(link: any, fallbackId: number): any;
775
+ /**
776
+ * Map a source-link entry (backend DTO OR already-FE shape) to the FE form
777
+ * shape the SourceLinkConfiguration control binds to. Inverse of
778
+ * toBackendSourceLink. Tolerant of both encodings so configs loaded straight
779
+ * from the BE (sourceId1 / source1LinkProperty) AND in-session FE edits
780
+ * (source1SelectionId / source1PropertyKey) both restore correctly — the
781
+ * source-link form was rendering blank because it only read the FE keys.
782
+ *
783
+ * BE chained links use `sourceLinkId2` with the source1/source2 link
784
+ * properties swapped (matching the runtime join direction); mirror that.
785
+ */
786
+ declare function toFormSourceLink(link: any): any;
725
787
  /**
726
788
  * Normalize a config that may be old (moduleType/moduleId, fuctionName,
727
789
  * root repeaterDashboardId) into canonical new shape, without losing data.
@@ -926,6 +988,7 @@ interface LabelLegendFormatUi {
926
988
  legendShow: boolean;
927
989
  legendPosition: 'top' | 'right' | 'bottom' | 'left';
928
990
  legendIconType: 'circle' | 'rect' | 'roundRect' | 'triangle' | 'diamond';
991
+ legendOverrideOrder: string[];
929
992
  labelShow: boolean;
930
993
  labelPosition: 'inside' | 'outside' | 'top';
931
994
  formatType: 'number' | 'currency' | 'percentage';
@@ -1111,8 +1174,15 @@ declare function formatForEditor(value: unknown): string;
1111
1174
  * to the schema affects rendering through the existing pipeline.
1112
1175
  */
1113
1176
 
1114
- /** Canonical control field types the generic renderer can render. */
1115
- type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color' | 'select' | 'multiselect' | 'iconPicker' | 'palette' | 'json' | 'numberRange' | 'cssDimension';
1177
+ /**
1178
+ * Canonical control field types the generic renderer can render.
1179
+ *
1180
+ * The first block maps 1:1 to a single `mt-*` field. The composite block
1181
+ * (`segmented`, `colorList`, `arrayBuilder`, `keyValueMap`, `conditionBuilder`)
1182
+ * renders a small bespoke editor so structured config never falls back to a raw
1183
+ * JSON textarea. `json` is retained ONLY for the Advanced escape hatch.
1184
+ */
1185
+ type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color' | 'select' | 'multiselect' | 'iconPicker' | 'palette' | 'json' | 'numberRange' | 'cssDimension' | 'segmented' | 'colorList' | 'arrayBuilder' | 'keyValueMap' | 'conditionBuilder' | 'legendOrder';
1116
1186
  /** Where the control lives in the popover. */
1117
1187
  type ControlSectionScope = 'simple' | 'advanced';
1118
1188
  /** Domain bucket — used by the popover to group controls and validation. */
@@ -1174,6 +1244,33 @@ interface ControlField {
1174
1244
  visibleWhen?: ControlVisiblePredicate;
1175
1245
  /** Optional placeholder text. */
1176
1246
  placeholder?: string;
1247
+ /** Optional unit suffix shown on number / numberRange / cssDimension (e.g. '%', 'px'). */
1248
+ unit?: string;
1249
+ /**
1250
+ * For `arrayBuilder` / `conditionBuilder`: the sub-fields rendered for every
1251
+ * row. Each sub-field's `path` is relative to the row object (e.g. `en`).
1252
+ */
1253
+ itemFields?: ControlField[];
1254
+ /**
1255
+ * For `arrayBuilder`: a sub-field key whose value labels each collapsed row
1256
+ * (falls back to a generic "Item N" when absent).
1257
+ */
1258
+ itemTitleKey?: string;
1259
+ /** For `arrayBuilder` / `keyValueMap`: row-count bounds. */
1260
+ minItems?: number;
1261
+ maxItems?: number;
1262
+ /** For `arrayBuilder`: label for the add button. */
1263
+ addLabel?: string;
1264
+ /**
1265
+ * For `keyValueMap`: enumerates the keys (e.g. the chart's selected
1266
+ * properties). Each option's `value` becomes a map key, `label` its caption.
1267
+ */
1268
+ keysFrom?: (cfg: PersistedItemConfig, cap: ChartCapability | null) => ControlOption[];
1269
+ /**
1270
+ * For `keyValueMap`: the sub-fields rendered for each key's value object.
1271
+ * A single sub-field with `path: ''` stores a scalar per key.
1272
+ */
1273
+ valueFields?: ControlField[];
1177
1274
  }
1178
1275
  /** A logical group of fields in the popover. */
1179
1276
  interface ControlSection {
@@ -2187,7 +2284,6 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2187
2284
  /** Reference to chart settings drawer */
2188
2285
  private chartSettingsRef;
2189
2286
  readonly languageCode: _angular_core.Signal<string>;
2190
- readonly direction: _angular_core.Signal<"rtl" | "ltr">;
2191
2287
  readonly chartActionsContext: ChartActionsContext;
2192
2288
  readonly options: GridsterConfig;
2193
2289
  private subscription;
@@ -2260,7 +2356,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2260
2356
  * `ItemCardMenuAction` and the host routes each id to one obvious owner:
2261
2357
  *
2262
2358
  * - configure-datasource → ManageItem (advanced editor)
2263
- * - style → ChartSettingsDrawer
2359
+ * - style → StyleStudioDrawer (schema-driven style editor)
2264
2360
  * - filters → ChartFilterDrawer
2265
2361
  * - edit-title → multilingual title editor
2266
2362
  * - duplicate / delete → host helpers
@@ -2282,6 +2378,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2282
2378
  /** Whether the kebab menu should appear on this chart card. */
2283
2379
  showContextToolbar(chart: DashboardChartItem): boolean;
2284
2380
  isPropertiesListChart(chart: DashboardChartItem): boolean;
2381
+ isTopbarChart(chart: DashboardChartItem): boolean;
2285
2382
  editItem(chart: DashboardChartItem, parentItem?: DashboardChartItem, defaultTab?: 'general' | 'dataSource' | 'actions'): void;
2286
2383
  deleteItem(chart: DashboardChartItem): void;
2287
2384
  /**
@@ -2375,6 +2472,75 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2375
2472
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardBuilder, "mt-dashboard-builder", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "services": { "alias": "services"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "informativeContext": { "alias": "informativeContext"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "onSave": "onSave"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, never>;
2376
2473
  }
2377
2474
 
2475
+ /**
2476
+ * Store Service
2477
+ *
2478
+ * Simple reactive store for dashboard builder state management
2479
+ */
2480
+ declare class DashboardStoreService {
2481
+ /** Query parameters */
2482
+ private queryParamsSignal;
2483
+ readonly queryParams: _angular_core.Signal<Record<string, any>>;
2484
+ /** Stop actions on cards flag */
2485
+ private stopActionsSignal;
2486
+ readonly stopActions: _angular_core.Signal<boolean>;
2487
+ /** Dynamic key-value store */
2488
+ private dynamicStore;
2489
+ /** Language code */
2490
+ readonly languageCode: _angular_core.WritableSignal<string>;
2491
+ /** Direction */
2492
+ readonly direction: _angular_core.WritableSignal<"rtl" | "ltr">;
2493
+ /** Inside Report Viewer flag - controls text truncation in charts */
2494
+ private insideReportViewerSignal;
2495
+ readonly insideReportViewer: _angular_core.Signal<boolean>;
2496
+ /** Reload current page subject */
2497
+ private reloadCurrentPageSubject;
2498
+ readonly reloadCurrentPage$: rxjs.Observable<void>;
2499
+ /**
2500
+ * Trigger reload of current page
2501
+ */
2502
+ triggerReloadCurrentPage(): void;
2503
+ /**
2504
+ * Update query parameters
2505
+ */
2506
+ updateQueryParams(params: Record<string, any>): void;
2507
+ /**
2508
+ * Update stop actions flag
2509
+ */
2510
+ updateStopActions(value: boolean): void;
2511
+ /**
2512
+ * Set inside report viewer mode
2513
+ * When true, axis labels won't be truncated and custom legends may be skipped
2514
+ */
2515
+ setInsideReportViewer(value: boolean): void;
2516
+ /**
2517
+ * Update dynamic key in store
2518
+ */
2519
+ updateDynamicKey(key: string, value: any): void;
2520
+ /**
2521
+ * Get dynamic key from store
2522
+ */
2523
+ getDynamicKey<T = any>(key: string): T | undefined;
2524
+ /**
2525
+ * Get computed value from dynamic store
2526
+ */
2527
+ selectDynamicKey<T = any>(key: string): _angular_core.Signal<T | undefined>;
2528
+ /**
2529
+ * Get query params as a plain object
2530
+ */
2531
+ getQueryParams(): Record<string, any>;
2532
+ /**
2533
+ * Get extra filters for a specific dashboard action
2534
+ */
2535
+ getExtraFilterForCurrentAction(dashboardId: string): Record<string, any>;
2536
+ /**
2537
+ * Reset store to initial state
2538
+ */
2539
+ reset(): void;
2540
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardStoreService, never>;
2541
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardStoreService>;
2542
+ }
2543
+
2378
2544
  /**
2379
2545
  * Dashboard Viewer Component
2380
2546
  *
@@ -2395,6 +2561,9 @@ declare class DashboardViewer implements OnInit, OnDestroy {
2395
2561
  private itemStoreService;
2396
2562
  private limitedHttp;
2397
2563
  private route;
2564
+ private router;
2565
+ /** Expose the store so the template can seed the filter sidebar. */
2566
+ protected readonly store: DashboardStoreService;
2398
2567
  private get repeaterUrlConfig();
2399
2568
  /** Whether to wrap content in mt-page component */
2400
2569
  readonly isPage: _angular_core.InputSignal<boolean>;
@@ -2451,7 +2620,22 @@ declare class DashboardViewer implements OnInit, OnDestroy {
2451
2620
  ngOnInit(): void;
2452
2621
  ngOnDestroy(): void;
2453
2622
  private setupSubscriptions;
2623
+ /**
2624
+ * Apply page-filter selections. Preferred path: write them onto the URL so
2625
+ * the `route.queryParams` subscription funnels them into the store and every
2626
+ * chart re-requests (the existing, correct pipeline). With no route (preview)
2627
+ * fall back to updating the store + refreshing directly.
2628
+ */
2629
+ onPageFilterChange(values: Record<string, any>): void;
2454
2630
  loadPage(id: string | number): void;
2631
+ /**
2632
+ * Normalize a page's filters into a FLAT `FilterField[]`. The backend stores
2633
+ * `dashboardConfig.filters` as a JSON string OR an array; older code wrapped
2634
+ * an already-array value in another array (`[[...]]`), which broke the
2635
+ * sidebar and surfaced an empty "Filters" tab in the value field. Flatten +
2636
+ * drop empties so consumers always receive real filter fields.
2637
+ */
2638
+ private normalizeFilters;
2455
2639
  private applyDashboardData;
2456
2640
  reloadPage(): void;
2457
2641
  /**
@@ -2663,7 +2847,7 @@ type RequestType = 'level' | 'levellog' | 'log' | 'custom' | 'snapShot' | 'level
2663
2847
  /**
2664
2848
  * Chart type to component mapping
2665
2849
  */
2666
- type ComponentType = 'chart' | 'map' | 'BackgroundTextChart' | 'chartCustomWithCardInfo' | 'listOfcharts' | 'listOfCardsStatistic' | 'cardsStatistic' | 'header' | 'footer' | 'label' | 'listOfLevelCards' | 'dialog' | 'table' | 'phaseGateTable' | 'topbar' | 'timeline' | 'timelineProjectDependencies' | 'lastHistoryLevelCard' | 'entitiesPreview' | 'entityPreview' | 'clusterStackedChart' | 'listComponentSplusCard' | 'splitterChart' | 'repeater' | 'levelCardsWithStatic' | 'phaseGateStepperCard' | 'Group';
2850
+ type ComponentType = 'chart' | 'map' | 'BackgroundTextChart' | 'chartCustomWithCardInfo' | 'listOfcharts' | 'listOfCardsStatistic' | 'cardsStatistic' | 'header' | 'footer' | 'label' | 'listOfLevelCards' | 'dialog' | 'table' | 'phaseGateTable' | 'topbar' | 'timeline' | 'timelineProjectDependencies' | 'lastHistoryLevelCard' | 'entitiesPreview' | 'entityPreview' | 'performanceCard' | 'performanceGaugeCard' | 'clusterStackedChart' | 'listComponentSplusCard' | 'splitterChart' | 'repeater' | 'levelCardsWithStatic' | 'phaseGateStepperCard' | 'Group';
2667
2851
  /**
2668
2852
  * EChart series data item
2669
2853
  */
@@ -2917,6 +3101,7 @@ declare class DashboardItem implements OnInit, OnDestroy {
2917
3101
  private initialized;
2918
3102
  /** Track current dashboardId to detect changes */
2919
3103
  private currentDashboardId;
3104
+ private isMissingQueryValue;
2920
3105
  constructor();
2921
3106
  ngOnInit(): void;
2922
3107
  /**
@@ -3098,7 +3283,7 @@ declare class CardFilterComponent implements OnInit {
3098
3283
  /** Language code */
3099
3284
  readonly langCode: _angular_core.Signal<string>;
3100
3285
  /** Filter type */
3101
- readonly filterType: _angular_core.Signal<"date" | "text" | "select" | "multiselect" | "multiSelect" | "daterange">;
3286
+ readonly filterType: _angular_core.Signal<"text" | "select" | "multiselect" | "date" | "multiSelect" | "daterange">;
3102
3287
  /** Filter options */
3103
3288
  readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
3104
3289
  /** Placeholder text */
@@ -3232,6 +3417,13 @@ interface DynamicFilterOption {
3232
3417
  declare class DynamicFiltersComponent implements OnInit {
3233
3418
  private readonly storeService;
3234
3419
  private readonly transloco;
3420
+ private readonly dashboardService;
3421
+ private readonly filterUtils;
3422
+ private readonly destroyRef;
3423
+ /** Loaded option lists per field key (lookup/status/phaseGate/dropdown). */
3424
+ private readonly optionsByKey;
3425
+ /** Field keys whose options have already been requested (avoid refetch). */
3426
+ private readonly loadedOptionKeys;
3235
3427
  /** Dynamic filter fields configuration */
3236
3428
  readonly fields: _angular_core.InputSignal<DynamicFilterField[]>;
3237
3429
  /** Dashboard ID for store updates */
@@ -3261,6 +3453,19 @@ declare class DynamicFiltersComponent implements OnInit {
3261
3453
  labelEn: string;
3262
3454
  labelAr: string;
3263
3455
  }[];
3456
+ constructor();
3457
+ /** Options to show for a field: loaded set, else any preloaded on config. */
3458
+ optionsFor(field: DynamicFilterField): any[];
3459
+ /**
3460
+ * Load a field's options by type (lookup/status/phaseGate from client
3461
+ * settings; dropdownTVService by running its selection). Year/month/quarter
3462
+ * use the built-in option lists; date/user/checkbox need none.
3463
+ */
3464
+ private loadOptions;
3465
+ /** Resolve a dropdown-by-selection field's distinct values via its query. */
3466
+ private loadDropdownTvServiceOptions;
3467
+ private mapTvServiceRows;
3468
+ private setOptions;
3264
3469
  ngOnInit(): void;
3265
3470
  /**
3266
3471
  * Get localized field label
@@ -3325,9 +3530,44 @@ declare class CardInfoComponent {
3325
3530
  * - 'splitter' — handler returned `{ positive, negative }`.
3326
3531
  * - 'timeline' — handler returned `{ calendarOptions, ... }`.
3327
3532
  * - 'phaseGateStepper' — handler returned `{ steps, currentIndex }`.
3533
+ * - 'performanceGauge' — handler returned `{ performance, status, statuses }`.
3328
3534
  * - 'raw' — fallback to ECharts (we still try to render).
3329
3535
  */
3330
- type CardViewMode = 'echart' | 'splitter' | 'timeline' | 'phaseGateStepper' | 'raw';
3536
+ type CardViewMode = 'echart' | 'splitter' | 'timeline' | 'phaseGateStepper' | 'performanceGauge' | 'raw';
3537
+ interface PerformanceGaugeStatus {
3538
+ key?: string;
3539
+ name?: string | Record<string, string>;
3540
+ display?: string | Record<string, string>;
3541
+ color?: string;
3542
+ from?: number;
3543
+ to?: number;
3544
+ [key: string]: any;
3545
+ }
3546
+ interface PerformanceGaugeSegment {
3547
+ key: string;
3548
+ label: string;
3549
+ color: string;
3550
+ dashArray: string;
3551
+ dashOffset: number;
3552
+ opacity: number;
3553
+ labelX: number;
3554
+ labelY: number;
3555
+ }
3556
+ interface PerformanceGaugeViewModel {
3557
+ value: number;
3558
+ display: string;
3559
+ label: string;
3560
+ status: PerformanceGaugeStatus;
3561
+ statuses: PerformanceGaugeStatus[];
3562
+ min: number;
3563
+ max: number;
3564
+ percent: number;
3565
+ scalePercent: number;
3566
+ marker: {
3567
+ x: number;
3568
+ y: number;
3569
+ };
3570
+ }
3331
3571
  declare class ChartCardComponent implements OnInit, OnDestroy {
3332
3572
  private readonly storeService;
3333
3573
  private readonly dashboardStore;
@@ -3369,7 +3609,9 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3369
3609
  } | undefined>;
3370
3610
  /** Static filter configuration */
3371
3611
  readonly staticFilterConfig: _angular_core.Signal<StaticFilterConfig | null>;
3372
- /** Dynamic filter fields */
3612
+ /** Dynamic filter fields. Reads the current `dynamicFilters`, falling back to
3613
+ * the legacy p+4 location `extraFilters.dynamicFilters` so old charts still
3614
+ * render their interactive filters. */
3373
3615
  readonly dynamicFilterFields: _angular_core.Signal<DynamicFilterField[]>;
3374
3616
  /** Show static filters */
3375
3617
  readonly showStaticFilters: _angular_core.Signal<boolean | undefined>;
@@ -3380,6 +3622,8 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3380
3622
  * Falls back to 'echart' when not a special widget.
3381
3623
  */
3382
3624
  readonly componentViewMode: _angular_core.Signal<CardViewMode>;
3625
+ readonly performanceGauge: _angular_core.Signal<PerformanceGaugeViewModel>;
3626
+ readonly performanceGaugeSegments: _angular_core.Signal<PerformanceGaugeSegment[]>;
3383
3627
  /**
3384
3628
  * Whether the chart needs configuration (no selection, no customApi, and
3385
3629
  * not a layout/special-endpoint widget).
@@ -3398,7 +3642,9 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3398
3642
  readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
3399
3643
  readonly timelineHeaderTextColor: _angular_core.Signal<string | null>;
3400
3644
  readonly timelineMode: _angular_core.WritableSignal<TimelineScaleMode>;
3645
+ readonly timelineExtraPropertyKeys: _angular_core.Signal<string[]>;
3401
3646
  readonly timelineColumns: _angular_core.Signal<TimelineColumnConfig<unknown, unknown>[]>;
3647
+ readonly timelineEntityColumns: _angular_core.Signal<TimelineColumnConfig<unknown, unknown>[]>;
3402
3648
  readonly timelineGanttMapping: TimelineGanttMapping<any>;
3403
3649
  readonly hasPhaseGateData: _angular_core.Signal<boolean>;
3404
3650
  readonly phaseGateSteps: _angular_core.Signal<any[]>;
@@ -3408,7 +3654,30 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3408
3654
  ngOnInit(): void;
3409
3655
  ngOnDestroy(): void;
3410
3656
  onChartClick(event: any): void;
3657
+ hasActions(): boolean;
3658
+ onPerformanceGaugeClick(event: MouseEvent): void;
3659
+ performanceGaugeStatusName(): string;
3660
+ private resolvePerformanceGaugePerformance;
3661
+ private resolvePerformanceGaugeStatuses;
3662
+ private resolvePerformanceGaugeStatus;
3663
+ private matchPerformanceGaugeStatus;
3664
+ private getFallbackPerformanceGaugeStatus;
3665
+ private resolvePerformanceGaugeScale;
3666
+ private resolvePerformanceGaugeLabel;
3667
+ private resolvePerformanceGaugeScalePercent;
3668
+ private resolvePerformanceGaugeStatusColor;
3669
+ private toPerformanceGaugePercent;
3670
+ private getPerformanceGaugePoint;
3671
+ private normalizePerformanceGaugeKey;
3672
+ private toLocalizedPerformanceGaugeText;
3673
+ private formatPerformanceGaugeValue;
3674
+ private formatCompactNumber;
3675
+ private toFiniteNumber;
3676
+ private clamp;
3677
+ onTimelineTitleClick(resource: any, event: MouseEvent): void;
3411
3678
  onTimelineItemClick(resource: any): void;
3679
+ private executeTimelineAction;
3680
+ timelineCollapseIcon(isCollapsed: boolean): string;
3412
3681
  onHeaderClick(): void;
3413
3682
  onConfigureClick(event: Event): void;
3414
3683
  /** Format an ISO date for inline timeline display. */
@@ -3416,8 +3685,25 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3416
3685
  private resolveTimelineMode;
3417
3686
  private getTimelineEventForResource;
3418
3687
  private resolveTimelineProgress;
3688
+ private hasTimelineProgressProperty;
3419
3689
  private resolveTimelineColor;
3690
+ timelinePopoverEntities(resourceOrEvent: any): EntityData$1[];
3691
+ timelineColumnEntityData(value: any): EntityData$1;
3692
+ private resolveTimelineExtraPropertyEntity;
3693
+ private resolveTimelineExtraColumnHeader;
3694
+ private findTimelineExtraProperty;
3695
+ private toTimelinePopoverEntityData;
3696
+ private resolveTimelineEntityName;
3697
+ private resolveTimelineEntityValue;
3698
+ private mapTimelineEntityViewType;
3699
+ private resolveTimelineStatusEntity;
3420
3700
  private resolveTimelineStatus;
3701
+ private toTimelinePropertyKey;
3702
+ private toTimelineExtraColumnKey;
3703
+ private isTimelineStatusKey;
3704
+ private isTimelineEntityValue;
3705
+ private normalizeTimelineLookupKey;
3706
+ private humanizeTimelinePropertyKey;
3421
3707
  private toDisplayText;
3422
3708
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartCardComponent, never>;
3423
3709
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartCardComponent, "mt-chart-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isConfigMode": { "alias": "isConfigMode"; "required": false; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; "onConfigure": "onConfigure"; "onTitleChange": "onTitleChange"; }, never, never, true, never>;
@@ -3475,7 +3761,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3475
3761
  readonly showCustomLegend: _angular_core.Signal<boolean>;
3476
3762
  readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
3477
3763
  /** Custom HTML legend placement from the configured legend position. */
3478
- readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
3764
+ readonly customLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
3479
3765
  constructor();
3480
3766
  ngOnInit(): Promise<void>;
3481
3767
  ngAfterViewInit(): void;
@@ -3602,11 +3888,13 @@ declare class EntityInfoComponent {
3602
3888
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityInfoComponent, "mt-entity-info", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "displayType": { "alias": "displayType"; "required": false; "isSignal": true; }; "extraInfoData": { "alias": "extraInfoData"; "required": false; "isSignal": true; }; "limitWords": { "alias": "limitWords"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3603
3889
  }
3604
3890
 
3605
- interface PropsConfigAsIndexItem$1 {
3891
+ interface PropertyRuntimeConfig {
3606
3892
  width?: string;
3607
3893
  hidden?: boolean;
3608
3894
  border?: boolean | string[];
3895
+ colorAsProperty?: string;
3609
3896
  }
3897
+
3610
3898
  interface DashboardCardProperty extends EntityData$1 {
3611
3899
  label?: string | Record<string, string>;
3612
3900
  }
@@ -3652,7 +3940,8 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
3652
3940
  readonly galleryMode: _angular_core.Signal<boolean>;
3653
3941
  readonly currentTabItems: _angular_core.Signal<DashboardTabItem[]>;
3654
3942
  readonly selectedProperties: _angular_core.Signal<string[]>;
3655
- readonly propsConfigAsIndex: _angular_core.Signal<PropsConfigAsIndexItem$1[]>;
3943
+ readonly propsConfigAsIndex: _angular_core.Signal<PropertyRuntimeConfig[]>;
3944
+ readonly legacyHiddenPropertyKeys: _angular_core.Signal<string[]>;
3656
3945
  readonly tabOptions: _angular_core.Signal<DashboardCardTabOption[]>;
3657
3946
  readonly showTabs: _angular_core.Signal<boolean>;
3658
3947
  readonly currentTabCards: _angular_core.Signal<DashboardCardViewModel[]>;
@@ -3660,7 +3949,6 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
3660
3949
  ngOnInit(): void;
3661
3950
  ngOnDestroy(): void;
3662
3951
  onCardClick(card: DashboardCardData): void;
3663
- private normalizePropertyKey;
3664
3952
  private clampEntitySize;
3665
3953
  private resolveEntitySize;
3666
3954
  private resolveShowBorder;
@@ -3700,6 +3988,7 @@ declare class EntityPreviewCardComponent implements OnInit, OnDestroy {
3700
3988
  private clampEntitySize;
3701
3989
  private resolveEntitySize;
3702
3990
  private resolveShowBorder;
3991
+ private readLegacyHiddenPropertyKeys;
3703
3992
  private mapViewType;
3704
3993
  private resolveEntityName;
3705
3994
  private readLocalizedText;
@@ -3792,6 +4081,42 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
3792
4081
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeaderCardComponent, "mt-header-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; "titleChange": "titleChange"; }, never, never, true, never>;
3793
4082
  }
3794
4083
 
4084
+ interface ProgressUpdateStatus {
4085
+ created: string;
4086
+ createdBy: any;
4087
+ previousActivities: string;
4088
+ nextActivities: string;
4089
+ }
4090
+ declare class LastHistoryLevelCardComponent implements OnInit, OnDestroy {
4091
+ private readonly itemStore;
4092
+ private readonly dashboardStore;
4093
+ private readonly subscription;
4094
+ readonly dashboardId: _angular_core.InputSignal<string | number | null>;
4095
+ readonly inGroup: _angular_core.InputSignal<boolean>;
4096
+ readonly onAction: _angular_core.OutputEmitterRef<{
4097
+ type: string;
4098
+ data: any;
4099
+ }>;
4100
+ readonly configurationItem: _angular_core.WritableSignal<ItemConfig | null>;
4101
+ readonly dataHandled: _angular_core.WritableSignal<any>;
4102
+ readonly title: _angular_core.Signal<string>;
4103
+ readonly status: _angular_core.Signal<ProgressUpdateStatus>;
4104
+ readonly hasProgressUpdate: _angular_core.Signal<boolean>;
4105
+ readonly createdByName: _angular_core.Signal<any>;
4106
+ readonly showStaticFilters: _angular_core.Signal<any>;
4107
+ readonly showDynamicFilters: _angular_core.Signal<boolean>;
4108
+ readonly showTopEnd: _angular_core.Signal<any>;
4109
+ ngOnInit(): void;
4110
+ ngOnDestroy(): void;
4111
+ onHeaderClick(): void;
4112
+ private buildStatus;
4113
+ private findPropertyValue;
4114
+ private unwrapPropertyValue;
4115
+ private normalize;
4116
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LastHistoryLevelCardComponent, never>;
4117
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<LastHistoryLevelCardComponent, "mt-last-history-level-card", never, { "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
4118
+ }
4119
+
3795
4120
  declare class ListStatisticCardComponent implements OnInit, OnDestroy {
3796
4121
  private readonly storeService;
3797
4122
  private readonly subscription;
@@ -3950,6 +4275,8 @@ declare class TableCardComponent implements OnInit, OnDestroy {
3950
4275
  readonly dashboardId: _angular_core.InputSignal<string | number>;
3951
4276
  /** Whether card is in a group */
3952
4277
  readonly inGroup: _angular_core.InputSignal<boolean>;
4278
+ /** Hide the card header (e.g. inside a dialog where the dialog header suffices). */
4279
+ readonly hideHeader: _angular_core.InputSignal<boolean>;
3953
4280
  /** Action event output */
3954
4281
  readonly onAction: _angular_core.OutputEmitterRef<{
3955
4282
  type: string;
@@ -4064,7 +4391,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4064
4391
  */
4065
4392
  onHeaderClick(): void;
4066
4393
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableCardComponent, never>;
4067
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableCardComponent, "mt-table-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
4394
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableCardComponent, "mt-table-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
4068
4395
  }
4069
4396
 
4070
4397
  interface TopbarBreadcrumbItem {
@@ -4094,7 +4421,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
4094
4421
  readonly iconColor: _angular_core.Signal<any>;
4095
4422
  readonly iconBackgroundColor: _angular_core.Signal<any>;
4096
4423
  readonly borderColor: _angular_core.Signal<any>;
4097
- readonly borderWidth: _angular_core.Signal<0 | 1>;
4424
+ readonly borderWidth: _angular_core.Signal<1 | 0>;
4098
4425
  readonly padding: _angular_core.Signal<number>;
4099
4426
  readonly titleFontSize: _angular_core.Signal<number>;
4100
4427
  readonly subtitleFontSize: _angular_core.Signal<number>;
@@ -4118,6 +4445,12 @@ declare class DashboardItemStoreService {
4118
4445
  private storeUpdates$;
4119
4446
  /** Localization data */
4120
4447
  private localization;
4448
+ /**
4449
+ * Current UI language code (mirrors document direction), matching
4450
+ * DashboardStoreService.languageCode. Used by item renderers (e.g. chart-card)
4451
+ * to pick the localized display value.
4452
+ */
4453
+ readonly languageCode: _angular_core.WritableSignal<string>;
4121
4454
  /** Current action data per dashboard item */
4122
4455
  private actionData;
4123
4456
  /**
@@ -4417,6 +4750,12 @@ declare class GaugeChartHandler {
4417
4750
  * Returns ECharts config directly (exactly like old GaugeChartService)
4418
4751
  */
4419
4752
  handleGaugeChart(dataResponse: any, config: ItemConfig): any;
4753
+ private normalizeGaugeValues;
4754
+ private flattenGaugeValues;
4755
+ private resolveGroupValueKey;
4756
+ private resolveExtraValueMeta;
4757
+ private findStatusOrLookupWrapper;
4758
+ private resolveDisplayText;
4420
4759
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaugeChartHandler, never>;
4421
4760
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaugeChartHandler>;
4422
4761
  }
@@ -4483,6 +4822,12 @@ declare class TimelineHandler {
4483
4822
  * Format: { calendarOptions: {...}, ...data }
4484
4823
  */
4485
4824
  handleTimelineV2MultiLevel(dataResponse: any, config: ItemConfig): any;
4825
+ private resolveProgressValue;
4826
+ private findActualPropertyKey;
4827
+ private readNumberValue;
4828
+ private resolveTimelineTimeFrame;
4829
+ private normalizeTimelineTimeFrame;
4830
+ private resolveTimelineInitialView;
4486
4831
  /**
4487
4832
  * Helper to handle value cases (name or value directly)
4488
4833
  */
@@ -4718,6 +5063,7 @@ declare class RingGaugeChartHandler {
4718
5063
  * available and otherwise fall back to whatever the response provides.
4719
5064
  */
4720
5065
  handleRingGaugeChartWithFormula(dataResponse: any, config: ItemConfig): any;
5066
+ private adaptBarsFormulaResponseToRingGauge;
4721
5067
  /**
4722
5068
  * Convert BarV2Chart formula response into the ring-gauge `{ values: [obj] }`
4723
5069
  * shape expected by handleRingGaugeChart. Tolerant of multiple legacy
@@ -4765,6 +5111,10 @@ declare class SPlusChartHandler {
4765
5111
  * id, `{type}_{id}` format inside selection.moduleId, or via selector.
4766
5112
  */
4767
5113
  handlePerformanceGaugeCardSplus(data: any, config: ItemConfig): any;
5114
+ private extractPerformanceGaugeValue;
5115
+ private extractPerformanceGaugeValueFromItem;
5116
+ private resolvePerformanceGaugeStatusName;
5117
+ private toFiniteNumber;
4768
5118
  /**
4769
5119
  * Handle S+ Component Cards Chart - returns transformed array directly
4770
5120
  * Matches old SplusChartsService.handleComponentsCardsChart return format
@@ -5017,7 +5367,7 @@ declare function getNestedData(key: string, item: any): any;
5017
5367
  * Dynamic text replacement with placeholders
5018
5368
  * Replaces {{key}} patterns with values from the data object
5019
5369
  */
5020
- declare function dynamicTextReplace(text: string | null | undefined, data: Record<string, any> | null | undefined): string;
5370
+ declare function dynamicTextReplace(text: string | number | boolean | null | undefined, data: Record<string, any> | null | undefined): string;
5021
5371
  /**
5022
5372
  * Dynamic reorder array based on order config
5023
5373
  * Supports both object syntax and individual parameters
@@ -5240,6 +5590,14 @@ declare class DashboardBuilderService {
5240
5590
  }>;
5241
5591
  /** Filters signal for reactive state */
5242
5592
  readonly filters: _angular_core.WritableSignal<any[]>;
5593
+ /**
5594
+ * The runtime dashboard ActivatedRoute, published by the viewer. ActionService
5595
+ * is `providedIn: 'root'`, so its own injected ActivatedRoute resolves to the
5596
+ * ROOT route — useless for relative page-to-page navigation. The viewer sets
5597
+ * this to its own route so `navigateToPage` can resolve sibling dashboards.
5598
+ */
5599
+ readonly activatedRoute: _angular_core.WritableSignal<ActivatedRoute | null>;
5600
+ setActivatedRoute(route: ActivatedRoute | null): void;
5243
5601
  /** Chart for selected dialog */
5244
5602
  readonly chartForSelectedDialog: _angular_core.WritableSignal<any>;
5245
5603
  /** Dialog configs available to runtime action handling, keyed by dashboardId. */
@@ -5270,6 +5628,7 @@ declare class DashboardBuilderService {
5270
5628
  readonly fixedSelections: _angular_core.WritableSignal<ISelection[]>;
5271
5629
  /** API configuration */
5272
5630
  private urlPrefix;
5631
+ private apiVersion;
5273
5632
  /** Module tree requests are shared per services/workspace key. */
5274
5633
  private readonly modulesTreeCache;
5275
5634
  private readonly modulesTreeDataCache;
@@ -5277,6 +5636,14 @@ declare class DashboardBuilderService {
5277
5636
  private gatewayContext;
5278
5637
  constructor();
5279
5638
  private loadConfig;
5639
+ /**
5640
+ * Run a `dropdownTVService` page-filter's configured selection as a TableView
5641
+ * to fetch the distinct option VALUES (mirrors the old
5642
+ * `POST /Dashboards/{v}chart?testFilter=true`). The caller resolves the
5643
+ * payload's placeholders first (via FilterUtilsService). Returns the raw
5644
+ * `data.values` rows; mapping to {key,display} is done by the caller.
5645
+ */
5646
+ getFilterDropdownValues(payload: any): Observable<any[]>;
5280
5647
  /**
5281
5648
  * Emit process action
5282
5649
  */
@@ -5414,11 +5781,42 @@ declare class DashboardBuilderService {
5414
5781
  * @param serviceName The service name
5415
5782
  */
5416
5783
  getPublicEndpoints(serviceName: string): Observable<ApiResponse<any[]>>;
5784
+ /**
5785
+ * Property-items responses shared per `propertyKey:language`. The same key is
5786
+ * fetched by both SelectionConfiguration and FilterValueField on a single
5787
+ * property edit; this dedupes them to one request. Cached entries are evicted
5788
+ * on error so a transient failure is never cached permanently.
5789
+ */
5790
+ private readonly propertyItemsCache;
5417
5791
  /**
5418
5792
  * Get property items for lookup/status properties
5419
5793
  * GET /api/dashboards/builder/property-items/{propertyKey}?language=en
5420
5794
  */
5421
5795
  getPropertyItems(propertyKey: string, language?: string): Observable<ApiResponse<PropertyItemsResponse>>;
5796
+ /**
5797
+ * Client settings cached by the host in `localStorage('pplus.settings')`.
5798
+ * The old dashboard sourced levels schema, statuses, phase gates and lookups
5799
+ * from here (not an API); the package mirrors that to populate the RUNTIME
5800
+ * page-filter sidebar's per-type option lists (lookup / status / phaseGate).
5801
+ * Returns null when absent (e.g. the showcase) so callers fall back to empty.
5802
+ */
5803
+ private getClientSettings;
5804
+ /** Narrow a possibly-corrupt settings value to an array (never throws). */
5805
+ private asArray;
5806
+ /** Levels schema (used to resolve a level's phase gates). */
5807
+ getLevelsSchema(): any[];
5808
+ /** Available lookups for the page-filter "Lookup" dropdown. */
5809
+ getLookups(): any[];
5810
+ /** Items of a single lookup (the runtime options for a `lookup` filter). */
5811
+ getLookupItems(lookupId: string | number | null | undefined): any[];
5812
+ /**
5813
+ * Status values for a level (or status-log), for the runtime `status` filter.
5814
+ * Mirrors the old `getStatuses(levelId, module)`: filters the cached
5815
+ * `basicLevelsStatuses` by moduleId + module ('Level' or 'Log').
5816
+ */
5817
+ getStatuses(levelId: string | number | null | undefined, module?: 'Level' | 'Log'): any[];
5818
+ /** Phase gates of a level, for the runtime `phaseGate` filter. */
5819
+ getPhaseGatesByLevelId(levelId: string | number | null | undefined): any[];
5422
5820
  /**
5423
5821
  * Bulk properties lookup - single request for multiple modules
5424
5822
  * POST /metadata/modules/properties
@@ -5434,75 +5832,6 @@ declare class DashboardBuilderService {
5434
5832
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardBuilderService>;
5435
5833
  }
5436
5834
 
5437
- /**
5438
- * Store Service
5439
- *
5440
- * Simple reactive store for dashboard builder state management
5441
- */
5442
- declare class DashboardStoreService {
5443
- /** Query parameters */
5444
- private queryParamsSignal;
5445
- readonly queryParams: _angular_core.Signal<Record<string, any>>;
5446
- /** Stop actions on cards flag */
5447
- private stopActionsSignal;
5448
- readonly stopActions: _angular_core.Signal<boolean>;
5449
- /** Dynamic key-value store */
5450
- private dynamicStore;
5451
- /** Language code */
5452
- readonly languageCode: _angular_core.WritableSignal<string>;
5453
- /** Direction */
5454
- readonly direction: _angular_core.WritableSignal<"rtl" | "ltr">;
5455
- /** Inside Report Viewer flag - controls text truncation in charts */
5456
- private insideReportViewerSignal;
5457
- readonly insideReportViewer: _angular_core.Signal<boolean>;
5458
- /** Reload current page subject */
5459
- private reloadCurrentPageSubject;
5460
- readonly reloadCurrentPage$: rxjs.Observable<void>;
5461
- /**
5462
- * Trigger reload of current page
5463
- */
5464
- triggerReloadCurrentPage(): void;
5465
- /**
5466
- * Update query parameters
5467
- */
5468
- updateQueryParams(params: Record<string, any>): void;
5469
- /**
5470
- * Update stop actions flag
5471
- */
5472
- updateStopActions(value: boolean): void;
5473
- /**
5474
- * Set inside report viewer mode
5475
- * When true, axis labels won't be truncated and custom legends may be skipped
5476
- */
5477
- setInsideReportViewer(value: boolean): void;
5478
- /**
5479
- * Update dynamic key in store
5480
- */
5481
- updateDynamicKey(key: string, value: any): void;
5482
- /**
5483
- * Get dynamic key from store
5484
- */
5485
- getDynamicKey<T = any>(key: string): T | undefined;
5486
- /**
5487
- * Get computed value from dynamic store
5488
- */
5489
- selectDynamicKey<T = any>(key: string): _angular_core.Signal<T | undefined>;
5490
- /**
5491
- * Get query params as a plain object
5492
- */
5493
- getQueryParams(): Record<string, any>;
5494
- /**
5495
- * Get extra filters for a specific dashboard action
5496
- */
5497
- getExtraFilterForCurrentAction(dashboardId: string): Record<string, any>;
5498
- /**
5499
- * Reset store to initial state
5500
- */
5501
- reset(): void;
5502
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardStoreService, never>;
5503
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardStoreService>;
5504
- }
5505
-
5506
5835
  /**
5507
5836
  * Manage Pages Component
5508
5837
  *
@@ -5759,6 +6088,17 @@ declare class DefaultControlUi implements ControlValueAccessor {
5759
6088
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DefaultControlUi, "mt-default-control-ui", never, { "showIconSettings": { "alias": "showIconSettings"; "required": false; "isSignal": true; }; "layoutComponent": { "alias": "layoutComponent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
5760
6089
  }
5761
6090
 
6091
+ interface LegendOrderOption {
6092
+ key: string;
6093
+ name: string;
6094
+ color?: string;
6095
+ }
6096
+ interface DrawerModuleProperties {
6097
+ moduleName: string;
6098
+ selectorName: string | null;
6099
+ selector: string;
6100
+ properties: IProperty[];
6101
+ }
5762
6102
  declare class ChartSettingsDrawer {
5763
6103
  private dialogRef;
5764
6104
  private transloco;
@@ -5774,11 +6114,14 @@ declare class ChartSettingsDrawer {
5774
6114
  private readonly chartDataService;
5775
6115
  private readonly itemStoreService;
5776
6116
  private readonly dashboardStore;
6117
+ private readonly dashboardService;
5777
6118
  readonly previewDashboardId: string;
5778
6119
  /** The chart item signal - reactive for proper change detection */
5779
6120
  readonly item: _angular_core.WritableSignal<DashboardChartItem | null>;
6121
+ readonly modulesProperties: _angular_core.WritableSignal<DrawerModuleProperties[]>;
6122
+ readonly loadingProperties: _angular_core.WritableSignal<boolean>;
5780
6123
  constructor();
5781
- /** Active tab: 'display' or 'chartControls' */
6124
+ /** Active tab: 'display', 'legend', or 'chartControls' */
5782
6125
  readonly activeTab: _angular_core.WritableSignal<string>;
5783
6126
  /** Layout widgets use quick controls only */
5784
6127
  readonly showDisplayTab: _angular_core.Signal<boolean>;
@@ -5818,6 +6161,16 @@ declare class ChartSettingsDrawer {
5818
6161
  readonly itemConfig: _angular_core.Signal<ItemConfig | null>;
5819
6162
  /** Processed preview data based on the current local drawer config. */
5820
6163
  readonly previewChartData: _angular_core.Signal<ChartDataHandled | null>;
6164
+ readonly stylePropertiesFlat: _angular_core.Signal<IProperty[]>;
6165
+ readonly selectedStyleProperties: _angular_core.Signal<string[]>;
6166
+ readonly legendConfig: _angular_core.Signal<{
6167
+ show: any;
6168
+ position: any;
6169
+ iconType: any;
6170
+ overrideLegendOrder: string[];
6171
+ }>;
6172
+ readonly legendItems: _angular_core.Signal<LegendOrderOption[]>;
6173
+ readonly showLegendTab: _angular_core.Signal<boolean>;
5821
6174
  /** True when the stored data can be rendered by the ECharts preview. */
5822
6175
  readonly canRenderChartPreview: _angular_core.Signal<boolean>;
5823
6176
  /** Localized title shown inside the isolated preview card. */
@@ -5827,6 +6180,14 @@ declare class ChartSettingsDrawer {
5827
6180
  readonly previewCardStyleConfig: _angular_core.Signal<any>;
5828
6181
  readonly previewHeaderConfig: _angular_core.Signal<any>;
5829
6182
  readonly previewDensity: _angular_core.Signal<any>;
6183
+ readonly legendPositionOptions: _angular_core.Signal<{
6184
+ label: string;
6185
+ value: string;
6186
+ }[]>;
6187
+ readonly legendIconOptions: _angular_core.Signal<{
6188
+ label: string;
6189
+ value: string;
6190
+ }[]>;
5830
6191
  /** Determine the type of manage UI to show */
5831
6192
  readonly manageType: _angular_core.Signal<QuickManageType>;
5832
6193
  /**
@@ -5861,12 +6222,23 @@ declare class ChartSettingsDrawer {
5861
6222
  onSnapshotBarConfigChange(config: any): void;
5862
6223
  /** Update client config from DisplaySettings */
5863
6224
  onClientConfigUpdate(partialClientConfig: Partial<ClientConfig>): void;
6225
+ updateLegend(key: string, value: unknown): void;
6226
+ dropLegendItem(event: CdkDragDrop<LegendOrderOption[]>): void;
6227
+ resetLegendOrder(): void;
5864
6228
  /** Apply changes and close drawer */
5865
6229
  apply(): void;
5866
6230
  /** Close without changes */
5867
6231
  close(): void;
5868
6232
  private isLayoutComponent;
5869
6233
  private setWorkingItem;
6234
+ private readonly selectionSignature;
6235
+ private loadPropertiesForStyle;
6236
+ private safeParseSignature;
6237
+ private extractModuleTypeFromSelector;
6238
+ private resolvePropertyKey;
6239
+ private hasChartLegendSurface;
6240
+ private extractLegendItems;
6241
+ private dedupeLegendItems;
5870
6242
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartSettingsDrawer, never>;
5871
6243
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartSettingsDrawer, "mt-chart-settings-drawer", never, {}, {}, never, never, true, never>;
5872
6244
  }
@@ -6005,6 +6377,7 @@ interface PropsConfigAsIndexItem {
6005
6377
  interface PropertyOption {
6006
6378
  label: string;
6007
6379
  value: string;
6380
+ viewType?: string;
6008
6381
  }
6009
6382
  interface PropertiesViewRow {
6010
6383
  key: string;
@@ -6204,10 +6577,13 @@ declare class DisplaySettings {
6204
6577
  /** Selected properties as ordered options */
6205
6578
  readonly selectedPropertyOptions: _angular_core.Signal<PropertyOption[]>;
6206
6579
  /** Available properties as options */
6207
- readonly propertyOptions: _angular_core.Signal<{
6580
+ readonly propertyOptions: _angular_core.Signal<PropertyOption[] | {
6208
6581
  label: any;
6209
6582
  value: any;
6583
+ viewType: any;
6210
6584
  }[]>;
6585
+ /** Properties that can drive color because their values carry colors. */
6586
+ readonly colorPropertyOptions: _angular_core.Signal<PropertyOption[]>;
6211
6587
  /** Properties view rows driven by selected properties order */
6212
6588
  readonly propertiesViewRows: _angular_core.Signal<PropertiesViewRow[]>;
6213
6589
  /** Property translations rows driven by selected properties order */
@@ -6217,25 +6593,29 @@ declare class DisplaySettings {
6217
6593
  translation: PropertyTranslation;
6218
6594
  }[]>;
6219
6595
  /** Available translation options (exclude used) */
6220
- readonly availableTranslationOptions: _angular_core.Signal<{
6596
+ readonly availableTranslationOptions: _angular_core.Signal<(PropertyOption | {
6221
6597
  label: any;
6222
6598
  value: any;
6223
- }[]>;
6599
+ viewType: any;
6600
+ })[]>;
6224
6601
  /** Available color options (exclude used) */
6225
- readonly availableColorOptions: _angular_core.Signal<{
6602
+ readonly availableColorOptions: _angular_core.Signal<(PropertyOption | {
6226
6603
  label: any;
6227
6604
  value: any;
6228
- }[]>;
6605
+ viewType: any;
6606
+ })[]>;
6229
6607
  /** All property options (full list) */
6230
6608
  readonly allPropertyKeyOptions: _angular_core.Signal<{
6231
6609
  label: any;
6232
6610
  value: any;
6611
+ viewType: any;
6233
6612
  }[]>;
6234
6613
  /** Ring gauge hidden properties options */
6235
- readonly ringGaugeHiddenOptions: _angular_core.Signal<{
6614
+ readonly ringGaugeHiddenOptions: _angular_core.Signal<(PropertyOption | {
6236
6615
  label: any;
6237
6616
  value: any;
6238
- }[]>;
6617
+ viewType: any;
6618
+ })[]>;
6239
6619
  /** Update style config property */
6240
6620
  updateStyleConfig(key: keyof StyleConfig | string, value: any): void;
6241
6621
  /** Update configAsType property */
@@ -6677,9 +7057,21 @@ declare class ManageItem implements OnInit {
6677
7057
  readonly isNew: _angular_core.Signal<any>;
6678
7058
  /** Optional informative authoring context */
6679
7059
  readonly informativeContext: _angular_core.Signal<any>;
7060
+ /** Active editor tab: data source vs the per-chart filters builder. */
7061
+ readonly activeTab: _angular_core.WritableSignal<"filters" | "datasource">;
7062
+ /** Option sources for the per-chart interactive-filter builder. */
7063
+ readonly chartLookups: _angular_core.WritableSignal<any[]>;
7064
+ readonly chartLevelsSchema: _angular_core.WritableSignal<any[]>;
7065
+ readonly chartLevelLogs: _angular_core.WritableSignal<any[]>;
7066
+ /**
7067
+ * The chart's interactive filter fields. Persisted (like the old builder) on
7068
+ * `clientConfig.extraFilters.dynamicFilters`; also reads a top-level
7069
+ * `dynamicFilters` for forward compatibility.
7070
+ */
7071
+ readonly dynamicFilters: _angular_core.Signal<FilterField[]>;
6680
7072
  /** Preview pane is collapsed by default; the form gets the full width. */
6681
7073
  readonly previewCollapsed: _angular_core.WritableSignal<boolean>;
6682
- /** Drawer is ~half width for the form alone, wider while the preview is open. */
7074
+ /** Drawer is ~2/3 width for the form alone, wider while the preview is open. */
6683
7075
  private readonly COMPACT_WIDTH;
6684
7076
  private readonly EXPANDED_WIDTH;
6685
7077
  /** Saving state */
@@ -6692,6 +7084,10 @@ declare class ManageItem implements OnInit {
6692
7084
  cancel(): void;
6693
7085
  /** Update service config from the datasource editor */
6694
7086
  onServiceConfigUpdate(partialConfig: Partial<ItemConfig['serviceConfig']>): void;
7087
+ /** Persist the chart's interactive filter fields (Filters tab). */
7088
+ onDynamicFiltersChange(next: FilterField[]): void;
7089
+ /** A status field needs its level's logs — derive them from the schema. */
7090
+ onLoadLevelLogs(schemaLevelId: number): void;
6695
7091
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageItem, never>;
6696
7092
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageItem, "mt-manage-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6697
7093
  }
@@ -6890,6 +7286,7 @@ interface ModuleProperties {
6890
7286
  * Query component type based on chart type and component name
6891
7287
  */
6892
7288
  type QueryComponentType = 'general' | 'table' | 'timeline' | 'timelineMultiLevel' | 'map' | 'splitter' | 'properties' | 'snapshot' | 'phaseGate' | 'repeater' | 'none';
7289
+ type TimelineTimeFrame = 'monthly' | 'quarterly' | 'biannually' | 'annually';
6893
7290
  /**
6894
7291
  * Data Source Settings Component
6895
7292
  *
@@ -6901,6 +7298,7 @@ type QueryComponentType = 'general' | 'table' | 'timeline' | 'timelineMultiLevel
6901
7298
  declare class DataSourceSettings {
6902
7299
  private dashboardService;
6903
7300
  private transloco;
7301
+ private destroyRef;
6904
7302
  /** Current configuration */
6905
7303
  readonly config: _angular_core.InputSignal<ItemConfig | null>;
6906
7304
  /** Selected chart type */
@@ -6911,12 +7309,22 @@ declare class DataSourceSettings {
6911
7309
  readonly serviceConfigChange: _angular_core.OutputEmitterRef<Partial<ServiceConfig>>;
6912
7310
  /** Properties grouped by module */
6913
7311
  readonly modulesProperties: _angular_core.WritableSignal<ModuleProperties[]>;
6914
- /** Flattened properties list with grouping info */
7312
+ /**
7313
+ * Flattened properties list with grouping info.
7314
+ *
7315
+ * When the chart pulls from MORE THAN ONE selection, the property display
7316
+ * name is prefixed with its group ("Projects - Status") so identically-named
7317
+ * properties (e.g. "Status") are distinguishable in the query pickers AND in
7318
+ * the selected chips. Single-selection charts keep the plain name. The option
7319
+ * VALUE is `key` (unchanged), so saved configs are unaffected.
7320
+ */
6915
7321
  readonly propertiesFlat: _angular_core.Signal<IPropertyWithGroup[]>;
6916
7322
  /**
6917
7323
  * Properties grouped for select field with [group]="true"
6918
7324
  * Structure: [{ label: 'Projects', items: [{ name, key }, ...] }, ...]
6919
- * Uses selectorName for display (e.g., "Projects" instead of "Level")
7325
+ * Uses selectorName for display (e.g., "Projects" instead of "Level").
7326
+ * Items are prefixed with the group when multiple selections exist so the
7327
+ * selected chips stay unambiguous (the dropdown also shows the group header).
6920
7328
  */
6921
7329
  readonly propertiesGrouped: _angular_core.Signal<{
6922
7330
  label: string;
@@ -6949,7 +7357,7 @@ declare class DataSourceSettings {
6949
7357
  * Active tab within the selection cycle: Selection (pick modules) · Source
6950
7358
  * Links (joins, only with >1 selection) · Query (fields).
6951
7359
  */
6952
- readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
7360
+ readonly activeSection: _angular_core.WritableSignal<"selection" | "query" | "sourceLinks">;
6953
7361
  /** Selection mode inside the selection tab (informative authoring). */
6954
7362
  readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
6955
7363
  readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
@@ -6983,6 +7391,33 @@ declare class DataSourceSettings {
6983
7391
  readonly query: _angular_core.WritableSignal<any>;
6984
7392
  readonly isNormalized: _angular_core.WritableSignal<boolean>;
6985
7393
  readonly groupByMultiple: _angular_core.WritableSignal<string[]>;
7394
+ /** Local copy of the modules tree (for the workspace Template options). */
7395
+ private readonly treeData;
7396
+ /** The single chart-level workspace (Template root selector, e.g. "Template:48"). */
7397
+ readonly chartWorkspace: _angular_core.WritableSignal<string | null>;
7398
+ /** Inline "change workspace" confirmation visibility. */
7399
+ readonly confirmingWorkspaceChange: _angular_core.WritableSignal<boolean>;
7400
+ private readonly workspaceServiceName;
7401
+ /**
7402
+ * The hierarchical "Level" module + its owning service (searches all loaded
7403
+ * services so a service-name mismatch doesn't blank the gate).
7404
+ */
7405
+ private readonly levelContext;
7406
+ /** Workspace options = the Level module's Template roots. */
7407
+ readonly workspaceOptions: _angular_core.Signal<{
7408
+ label: string;
7409
+ value: string;
7410
+ }[]>;
7411
+ /** Whether this chart uses the selection flow the workspace gates. */
7412
+ readonly showWorkspaceGate: _angular_core.Signal<boolean>;
7413
+ /**
7414
+ * Gate is open (blocking): a workspace must be picked before the tabs show.
7415
+ * Only blocks brand-new/empty charts — an existing chart with selections (incl.
7416
+ * legacy/flat charts that never had a workspace) is never blocked from editing.
7417
+ */
7418
+ readonly needsWorkspacePick: _angular_core.Signal<boolean>;
7419
+ /** Display label for the chosen workspace. */
7420
+ readonly chartWorkspaceLabel: _angular_core.Signal<string>;
6986
7421
  /** Active registry query schema used by GeneralQuery. */
6987
7422
  readonly querySchema: _angular_core.Signal<QuerySchema | null>;
6988
7423
  /** Repeater dashboard selection */
@@ -7046,6 +7481,23 @@ declare class DataSourceSettings {
7046
7481
  * Handle source links change
7047
7482
  */
7048
7483
  onSourceLinksChange(links: SourceLink[]): void;
7484
+ /** Pick the single chart workspace (Template root). Opens the tabs. */
7485
+ onWorkspacePick(selector: string): void;
7486
+ /** Ask to change workspace (shows the inline confirm). */
7487
+ requestChangeWorkspace(): void;
7488
+ /** Dismiss the change-workspace confirm. */
7489
+ cancelChangeWorkspace(): void;
7490
+ /**
7491
+ * Confirm changing the workspace: everything scoped to it (selections, source
7492
+ * links, query) is cleared and the gate re-opens.
7493
+ */
7494
+ confirmChangeWorkspace(): void;
7495
+ /** Load the modules tree into the local signal (cache-first). */
7496
+ private loadWorkspaceTree;
7497
+ /** Reverse-map a Level selector to its Template root (for legacy restore). */
7498
+ private deriveWorkspaceFromLevel;
7499
+ /** Workspace metadata filter for tree values (roots and children alike). */
7500
+ private matchesWorkspace;
7049
7501
  /**
7050
7502
  * Handle query change (general query)
7051
7503
  */
@@ -7123,10 +7575,23 @@ declare class DataSourceSettings {
7123
7575
  * Reads the current timeline-multi-level query for the template.
7124
7576
  */
7125
7577
  readonly timelineLevels: _angular_core.Signal<any[]>;
7578
+ readonly timelineTimeFrame: _angular_core.Signal<TimelineTimeFrame>;
7126
7579
  readonly timeFrameOptions: {
7127
- value: string;
7580
+ value: TimelineTimeFrame;
7128
7581
  label: string;
7129
7582
  }[];
7583
+ onTimelineTimeFrameChange(value: TimelineTimeFrame): void;
7584
+ shouldShowTimelineParentProperty(index: number): boolean;
7585
+ timelineParentPropertyOptions(index: number): IProperty[];
7586
+ private normalizeTimelineLevels;
7587
+ private defaultTimelineParentProperty;
7588
+ private timelineParentPropertyKeys;
7589
+ private toTimelineParentPropertyOption;
7590
+ private findProperty;
7591
+ private createPropertyFallback;
7592
+ private humanizePropertyKey;
7593
+ private resolveTimelineTimeFrame;
7594
+ private normalizeTimelineTimeFrame;
7130
7595
  /**
7131
7596
  * Loads available dashboards for the repeater dropdown by hitting the
7132
7597
  * configured reports list. Uses Dashboard type only.
@@ -7153,6 +7618,11 @@ declare class DataSourceSettings {
7153
7618
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataSourceSettings, "mt-data-source-settings", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartType": { "alias": "chartType"; "required": false; "isSignal": true; }; "informativeContext": { "alias": "informativeContext"; "required": false; "isSignal": true; }; }, { "serviceConfigChange": "serviceConfigChange"; }, never, never, true, never>;
7154
7619
  }
7155
7620
 
7621
+ /** Page (dashboard) option for the navigate-to-page target select */
7622
+ interface PageOption {
7623
+ label: string;
7624
+ value: number;
7625
+ }
7156
7626
  /** Action type option */
7157
7627
  interface ActionTypeOption {
7158
7628
  readonly label: string;
@@ -7165,8 +7635,12 @@ interface TriggerOption {
7165
7635
  readonly value: string;
7166
7636
  readonly icon: string;
7167
7637
  }
7168
- /** Dynamic/Static key pair */
7169
- interface KeyPair {
7638
+ /**
7639
+ * A single unified action filter. `propertyKey` is the param sent to the
7640
+ * target/dialog; `propertyValue` is either a literal (static) or a `{{token}}`
7641
+ * resolved at runtime from the clicked item (dynamic) — one field, both modes.
7642
+ */
7643
+ interface ActionFilter {
7170
7644
  propertyKey: string;
7171
7645
  propertyValue: string;
7172
7646
  }
@@ -7175,18 +7649,40 @@ interface KeyPair {
7175
7649
  *
7176
7650
  * Handles chart action configuration:
7177
7651
  * - Click actions (open dialog, navigate, custom function)
7178
- * - Trigger types (click, double-click, hover)
7179
- * - Action configuration
7652
+ * - Trigger types (click, double-click)
7653
+ * - A single unified "filters" section per action (replaces the old
7654
+ * static/dynamic split). Each filter is propertyKey + a select-or-write value
7655
+ * field; any property used is auto-added to the chart's extraProperties so it
7656
+ * is returned with the clicked row at runtime.
7180
7657
  */
7181
7658
  declare class ActionsSettings {
7182
7659
  /** Current configuration */
7183
7660
  readonly config: _angular_core.InputSignal<ItemConfig | null>;
7184
7661
  /** Emit client config changes */
7185
7662
  readonly clientConfigChange: _angular_core.OutputEmitterRef<Partial<ClientConfig>>;
7663
+ /**
7664
+ * Emit the chart's extra-property keys whenever a filter adds a new one, so
7665
+ * the host can persist them onto `serviceConfig.query.extraProperties` (the
7666
+ * backend returns exactly the properties listed there with each clicked row).
7667
+ */
7668
+ readonly extraPropertiesChange: _angular_core.OutputEmitterRef<string[]>;
7669
+ private readonly dashboardService;
7670
+ private readonly destroyRef;
7671
+ /** UI language for localized page names. */
7672
+ private readonly languageCode;
7673
+ /** Dashboard pages for the navigate-to-page target select. */
7674
+ readonly pageOptions: _angular_core.WritableSignal<PageOption[]>;
7675
+ /** Properties of THIS chart's selections — the filter property picker. */
7676
+ readonly propertyOptions: _angular_core.WritableSignal<IProperty[]>;
7677
+ readonly loadingProperties: _angular_core.WritableSignal<boolean>;
7678
+ /** Guard so properties reload only when the chart's selections change. */
7679
+ private lastSelectionsKey;
7680
+ constructor();
7186
7681
  /**
7187
7682
  * Action type options. "Open Dialog" is intentionally NOT selectable here —
7188
7683
  * a dialog is created via the card's "Add dialog" action, which adds an
7189
- * `openDialog` action. Existing openDialog actions are shown read-only.
7684
+ * `openDialog` action. Existing openDialog actions keep their type but can
7685
+ * still configure filters (the params handed to the dialog).
7190
7686
  */
7191
7687
  readonly actionTypeOptions: readonly ActionTypeOption[];
7192
7688
  /** Trigger type options - using valid icons from icons.json */
@@ -7194,88 +7690,74 @@ declare class ActionsSettings {
7194
7690
  /** Current actions list */
7195
7691
  readonly actions: _angular_core.Signal<ActionConfig[]>;
7196
7692
  /**
7197
- * Get current actions array safely
7693
+ * The chart's current extra-property keys (string form), surfaced to the
7694
+ * value field's "Properties" tab and kept in sync as filters add keys.
7198
7695
  */
7696
+ readonly chartExtraProperties: _angular_core.Signal<string[]>;
7697
+ private normalizeExtraProperties;
7698
+ /** Get current actions array safely */
7199
7699
  private getCurrentActions;
7200
- /**
7201
- * Emit updated actions
7202
- */
7700
+ /** Emit updated actions */
7203
7701
  private emitActions;
7204
- /**
7205
- * Get action at index safely
7206
- */
7702
+ /** Get action at index safely */
7207
7703
  private getActionAt;
7208
- /**
7209
- * Add a new action
7210
- */
7704
+ /** Add a new action */
7211
7705
  addAction(): void;
7212
7706
  /**
7213
7707
  * Whether an action is a dialog action (added via the card's "Add dialog"
7214
- * flow). These are shown read-only here — managed from the dialog feature.
7708
+ * flow). Its type/trigger stay managed there, but its filters (the params
7709
+ * handed to the dialog) are editable here, and its value field surfaces the
7710
+ * key/pivot tokens the dialog depends on.
7215
7711
  */
7216
7712
  isDialogAction(action: ActionConfig): boolean;
7217
- /**
7218
- * Remove an action
7219
- */
7713
+ /** Remove an action */
7220
7714
  removeAction(index: number): void;
7221
- /**
7222
- * Duplicate an action
7223
- */
7715
+ /** Duplicate an action */
7224
7716
  duplicateAction(index: number): void;
7225
- /**
7226
- * Update an action property
7227
- */
7717
+ /** Update an action property */
7228
7718
  updateAction<K extends keyof ActionConfig>(index: number, key: K, value: ActionConfig[K]): void;
7229
- /**
7230
- * Update action config object
7231
- */
7719
+ /** Update action config object */
7232
7720
  updateActionConfig(index: number, configKey: string, value: unknown): void;
7233
- /**
7234
- * Move action up in the list
7235
- */
7721
+ /** Move action up in the list */
7236
7722
  moveActionUp(index: number): void;
7237
- /**
7238
- * Move action down in the list
7239
- */
7723
+ /** Move action down in the list */
7240
7724
  moveActionDown(index: number): void;
7241
- /**
7242
- * Get action type label
7243
- */
7725
+ /** Get action type label */
7244
7726
  getActionTypeLabel(actionType: string): string;
7245
- /**
7246
- * Get trigger type label
7247
- */
7727
+ /** Get trigger type label */
7248
7728
  getTriggerLabel(trigger: string): string;
7249
7729
  /**
7250
- * Add a dynamic key to action
7251
- */
7252
- addDynamicKey(actionIndex: number): void;
7253
- /**
7254
- * Remove a dynamic key from action
7255
- */
7256
- removeDynamicKey(actionIndex: number, keyIndex: number): void;
7257
- /**
7258
- * Update a dynamic key
7259
- */
7260
- updateDynamicKey(actionIndex: number, keyIndex: number, field: keyof KeyPair, value: string): void;
7261
- /**
7262
- * Add a static key to action
7263
- */
7264
- addStaticKey(actionIndex: number): void;
7265
- /**
7266
- * Remove a static key from action
7267
- */
7268
- removeStaticKey(actionIndex: number, keyIndex: number): void;
7269
- /**
7270
- * Update a static key
7271
- */
7272
- updateStaticKey(actionIndex: number, keyIndex: number, field: keyof KeyPair, value: string): void;
7273
- /**
7274
- * Track by action id for ngFor
7275
- */
7730
+ * Load the properties of the chart's own selections (the filter property
7731
+ * picker), mirroring data-source-settings.loadPropertiesForSelections.
7732
+ */
7733
+ private loadProperties;
7734
+ /**
7735
+ * Unified filters for an action. Prefers the new `filters` array; for legacy
7736
+ * actions it falls back to the old static + dynamic arrays so they still
7737
+ * render — and the next edit migrates them into `filters`.
7738
+ */
7739
+ getActionFilters(action: ActionConfig): ActionFilter[];
7740
+ private getFiltersAt;
7741
+ /** Write the unified filters back and drop the legacy split once edited. */
7742
+ private writeFilters;
7743
+ /** Add an empty filter row to an action. */
7744
+ addFilter(actionIndex: number): void;
7745
+ /** Remove a filter row. */
7746
+ removeFilter(actionIndex: number, filterIndex: number): void;
7747
+ /**
7748
+ * Pick the filter property. Resets the value (its options depend on the
7749
+ * property) and auto-adds the key to the chart's extraProperties so the
7750
+ * clicked row carries it at runtime.
7751
+ */
7752
+ updateFilterProperty(actionIndex: number, filterIndex: number, propertyKey: string): void;
7753
+ /** Update a filter's value (literal or `{{token}}`). */
7754
+ updateFilterValue(actionIndex: number, filterIndex: number, value: string): void;
7755
+ /** Ensure a property key is in the chart's extraProperties (emit if added). */
7756
+ private ensureExtraProperty;
7757
+ /** Track by index for ngFor */
7276
7758
  trackByIndex(index: number): number;
7277
7759
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionsSettings, never>;
7278
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionsSettings, "mt-actions-settings", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "clientConfigChange": "clientConfigChange"; }, never, never, true, never>;
7760
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionsSettings, "mt-actions-settings", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "clientConfigChange": "clientConfigChange"; "extraPropertiesChange": "extraPropertiesChange"; }, never, never, true, never>;
7279
7761
  }
7280
7762
 
7281
7763
  /**
@@ -7299,6 +7781,317 @@ declare class ChartViewer {
7299
7781
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartViewer, "mt-chart-viewer", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7300
7782
  }
7301
7783
 
7784
+ /** A legend entry surfaced from the chart's live preview data. */
7785
+ interface LegendOrderItem {
7786
+ key: string;
7787
+ name: string;
7788
+ color?: string;
7789
+ }
7790
+ /**
7791
+ * Drag-to-reorder the chart legend. The available entries (`items`) come from
7792
+ * the live preview data (already ordered by the saved override); dragging emits
7793
+ * the new order as a name array written to
7794
+ * `clientConfig.configAsType.legend.overrideLegendOrder`. Reset emits `[]`
7795
+ * (natural order).
7796
+ */
7797
+ declare class LegendOrderField {
7798
+ readonly items: _angular_core.InputSignal<LegendOrderItem[]>;
7799
+ readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
7800
+ /** Working list is just the input — reorder mutates a copy and emits. */
7801
+ readonly rows: _angular_core.Signal<LegendOrderItem[]>;
7802
+ drop(event: CdkDragDrop<unknown>): void;
7803
+ reset(): void;
7804
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LegendOrderField, never>;
7805
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendOrderField, "mt-legend-order-field", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
7806
+ }
7807
+
7808
+ interface NavGroup {
7809
+ label: string;
7810
+ sections: ControlSection[];
7811
+ }
7812
+ declare class StyleStudioDrawer {
7813
+ private readonly dialogRef;
7814
+ private readonly drawerConfig;
7815
+ private readonly drawerController;
7816
+ private readonly transloco;
7817
+ private readonly chartDataService;
7818
+ private readonly itemStoreService;
7819
+ private readonly dashboardStore;
7820
+ readonly modal: ModalService;
7821
+ private readonly scrollPane;
7822
+ /** Working copy of the chart (deep-cloned so Cancel never mutates source). */
7823
+ readonly item: _angular_core.WritableSignal<DashboardChartItem | null>;
7824
+ /** Simple ⇄ Advanced progressive disclosure. */
7825
+ readonly scope: _angular_core.WritableSignal<ControlSectionScope>;
7826
+ /** Free-text "find a setting" filter. */
7827
+ readonly searchControl: FormControl<string>;
7828
+ readonly search: _angular_core.Signal<string>;
7829
+ /** Section the rail highlights as active (scroll-spy). */
7830
+ readonly activeSection: _angular_core.WritableSignal<string>;
7831
+ constructor();
7832
+ readonly itemConfig: _angular_core.Signal<ItemConfig | null>;
7833
+ readonly capability: _angular_core.Signal<_masterteam_dashboard_builder.ChartCapability | null>;
7834
+ readonly schema: _angular_core.Signal<_masterteam_dashboard_builder.ControlSchema>;
7835
+ readonly chartName: _angular_core.Signal<string>;
7836
+ readonly chartIcon: _angular_core.Signal<string>;
7837
+ /**
7838
+ * Sections for the left rail. Kept in lock-step with the rendered body
7839
+ * (same scope + visibleWhen + search filtering) so every rail entry always
7840
+ * has a scroll target.
7841
+ */
7842
+ readonly navSections: _angular_core.Signal<ControlSection[]>;
7843
+ /** Rail sections grouped under friendly category headers. */
7844
+ readonly navGroups: _angular_core.Signal<NavGroup[]>;
7845
+ readonly presets: _angular_core.Signal<readonly StylePreset[]>;
7846
+ readonly scopeOptions: _angular_core.Signal<{
7847
+ label: string;
7848
+ value: string;
7849
+ }[]>;
7850
+ /** Chart-type id handed to the live ChartViewer (renders ALL widget types). */
7851
+ readonly previewChartTypeId: _angular_core.Signal<string>;
7852
+ readonly previewTitle: _angular_core.Signal<string>;
7853
+ /**
7854
+ * Preview data — the source for the legend-order entries. Prefer the data
7855
+ * the chart ACTUALLY rendered from (`DataHandled`, computed in the proper
7856
+ * render context); only fall back to re-processing the raw `DataResponse`
7857
+ * when no handled data is cached (re-processing here can lose legend names).
7858
+ */
7859
+ readonly previewData: _angular_core.Signal<ChartDataHandled | null>;
7860
+ /** Legend entries (ordered by the saved override) for the legendOrder control. */
7861
+ readonly legendItems: _angular_core.Signal<LegendOrderItem[]>;
7862
+ readonly previewWidth: _angular_core.WritableSignal<number>;
7863
+ private resizing;
7864
+ private resizeStartX;
7865
+ private resizeStartWidth;
7866
+ startResize(ev: PointerEvent): void;
7867
+ onResizeMove(ev: PointerEvent): void;
7868
+ endResize(): void;
7869
+ private extractLegendItems;
7870
+ onScopeChange(value: unknown): void;
7871
+ onPatch(patch: ControlPatch): void;
7872
+ applyPreset(preset: StylePreset): void;
7873
+ scrollTo(section: ControlSection): void;
7874
+ /** Scroll-spy: highlight the top-most section currently in view. */
7875
+ onScroll(): void;
7876
+ private setActiveSection;
7877
+ resetAll(): void;
7878
+ apply(): void;
7879
+ close(): void;
7880
+ /** Map a preset's friendly fields to the persisted paths the schema uses. */
7881
+ private presetPatches;
7882
+ private t;
7883
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleStudioDrawer, never>;
7884
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StyleStudioDrawer, "mt-style-studio-drawer", never, {}, {}, never, never, true, never>;
7885
+ }
7886
+
7887
+ interface RenderSection {
7888
+ section: ControlSection;
7889
+ /** All visible fields (used for reset + count). */
7890
+ fields: ControlField[];
7891
+ /** Non-toggle controls — rendered in the 2-column grid. */
7892
+ controls: ControlField[];
7893
+ /** Boolean (toggle) fields — grouped together as cards on their own row. */
7894
+ toggles: ControlField[];
7895
+ }
7896
+ /**
7897
+ * Walks a `ControlSchema` and renders a reactive form for each visible field,
7898
+ * grouped into section cards. Honors per-field `scope` (Simple/Advanced),
7899
+ * `visibleWhen` predicates and a free-text `search` filter. Emits `ControlPatch`
7900
+ * upward; the host applies it via `applyControlPatchToPersisted` and re-feeds
7901
+ * the persisted config (one-way data flow → the live preview reacts).
7902
+ */
7903
+ declare class StyleSettingsRenderer {
7904
+ readonly schema: _angular_core.InputSignal<ControlSchema>;
7905
+ readonly persisted: _angular_core.InputSignal<_masterteam_dashboard_builder.ItemConfig | null>;
7906
+ readonly capability: _angular_core.InputSignal<ChartCapability | null>;
7907
+ readonly scope: _angular_core.InputSignal<ControlSectionScope>;
7908
+ readonly search: _angular_core.InputSignal<string>;
7909
+ /** Live legend entries forwarded to any legendOrder control. */
7910
+ readonly legendItems: _angular_core.InputSignal<LegendOrderItem[]>;
7911
+ readonly patch: _angular_core.OutputEmitterRef<ControlPatch>;
7912
+ /** Emitted when the empty-state "switch to Advanced" affordance is used. */
7913
+ readonly requestScope: _angular_core.OutputEmitterRef<ControlSectionScope>;
7914
+ /** Sections (with their visible fields) to render, after all filtering. */
7915
+ readonly sections: _angular_core.Signal<RenderSection[]>;
7916
+ readonly isEmpty: _angular_core.Signal<boolean>;
7917
+ /** Composite/full-width field types span both grid columns. */
7918
+ isComposite(field: ControlField): boolean;
7919
+ sectionId(section: ControlSection): string;
7920
+ onPatch(patch: ControlPatch): void;
7921
+ /** Clear every visible field in a section back to its (unset) default. */
7922
+ resetSection(entry: RenderSection): void;
7923
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleSettingsRenderer, never>;
7924
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StyleSettingsRenderer, "mt-style-settings-renderer", never, { "schema": { "alias": "schema"; "required": true; "isSignal": true; }; "persisted": { "alias": "persisted"; "required": true; "isSignal": true; }; "capability": { "alias": "capability"; "required": false; "isSignal": true; }; "scope": { "alias": "scope"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "legendItems": { "alias": "legendItems"; "required": false; "isSignal": true; }; }, { "patch": "patch"; "requestScope": "requestScope"; }, never, never, true, never>;
7925
+ }
7926
+
7927
+ /**
7928
+ * Expand a "clear this field" reset into the patches the renderer would emit.
7929
+ * The shadow control is a preset select whose edit path also writes the derived
7930
+ * `cardStyleConfig.shadows` array, so a reset must clear BOTH or the rendered
7931
+ * box-shadow lingers. Shared by resetSection() and resetAll().
7932
+ */
7933
+ declare function expandResetPatches(path: string): ControlPatch[];
7934
+ /**
7935
+ * Renders ONE schema `ControlField` as the appropriate `mt-*` control using
7936
+ * reactive forms (no ngModel). Scalar types own a `FormControl` synced from the
7937
+ * persisted value; composite types delegate to controlled editor components.
7938
+ * Emits a `ControlPatch` (path + value) on every change.
7939
+ */
7940
+ declare class StyleField {
7941
+ readonly field: _angular_core.InputSignal<ControlField>;
7942
+ readonly persisted: _angular_core.InputSignal<_masterteam_dashboard_builder.ItemConfig | null>;
7943
+ readonly capability: _angular_core.InputSignal<ChartCapability | null>;
7944
+ /** Live legend entries (from preview data) for the legendOrder control. */
7945
+ readonly legendItems: _angular_core.InputSignal<LegendOrderItem[]>;
7946
+ readonly patch: _angular_core.OutputEmitterRef<ControlPatch>;
7947
+ /** FormControl backing scalar field types. */
7948
+ readonly control: FormControl<unknown>;
7949
+ /** FormControl backing the Advanced JSON escape hatch. */
7950
+ readonly jsonControl: FormControl<string>;
7951
+ readonly jsonError: _angular_core.WritableSignal<string | null>;
7952
+ private readonly destroyRef;
7953
+ private syncing;
7954
+ private syncingJson;
7955
+ /** True for types that own their own state (controlled, no FormControl). */
7956
+ readonly isComposite: _angular_core.Signal<boolean>;
7957
+ readonly currentValue: _angular_core.Signal<unknown>;
7958
+ constructor();
7959
+ options(): ControlOption[];
7960
+ /** select uses a search box once the list is long enough to need one. */
7961
+ get useFilter(): boolean;
7962
+ /** Numeric bounds fall back to mt-number-field's own permissive defaults. */
7963
+ get numberMin(): number;
7964
+ get numberMax(): number;
7965
+ conditionFields(): ControlField[];
7966
+ mapKeys(): ControlOption[];
7967
+ readArray(): unknown[];
7968
+ readColors(): string[];
7969
+ readMap(): Record<string, unknown>;
7970
+ readJson(): string;
7971
+ emitValue(value: unknown): void;
7972
+ onJsonInput(raw: string): void;
7973
+ private emitScalar;
7974
+ private emitShadowPreset;
7975
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleField, never>;
7976
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StyleField, "mt-style-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "persisted": { "alias": "persisted"; "required": true; "isSignal": true; }; "capability": { "alias": "capability"; "required": false; "isSignal": true; }; "legendItems": { "alias": "legendItems"; "required": false; "isSignal": true; }; }, { "patch": "patch"; }, never, never, true, never>;
7977
+ }
7978
+
7979
+ /**
7980
+ * Segmented (button-group) selector — a tactile alternative to a dropdown for
7981
+ * short option sets such as position / alignment / orientation. Controlled:
7982
+ * takes the current `value` and emits `valueChange`; no internal form state.
7983
+ */
7984
+ declare class SegmentedField {
7985
+ readonly options: _angular_core.InputSignal<ControlOption[]>;
7986
+ readonly value: _angular_core.InputSignal<unknown>;
7987
+ readonly disabled: _angular_core.InputSignal<boolean>;
7988
+ /** Accessible name for the button group (screen readers). */
7989
+ readonly ariaLabel: _angular_core.InputSignal<string>;
7990
+ readonly valueChange: _angular_core.OutputEmitterRef<unknown>;
7991
+ readonly normalizedValue: _angular_core.Signal<unknown>;
7992
+ isActive(option: ControlOption): boolean;
7993
+ select(option: ControlOption): void;
7994
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedField, never>;
7995
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedField, "mt-segmented-field", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
7996
+ }
7997
+
7998
+ /**
7999
+ * Reorderable palette editor — replaces the legacy comma-separated textarea.
8000
+ * Each entry is an `mt-color-picker-field` chip; rows drag to reorder, with
8001
+ * quick-add swatches. Controlled: `value` in, `valueChange` (string[]) out.
8002
+ */
8003
+ declare class ColorListField {
8004
+ readonly value: _angular_core.InputSignal<string[] | null>;
8005
+ readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
8006
+ /** Working list of colors with stable per-row FormControls for the picker. */
8007
+ readonly rows: _angular_core.WritableSignal<{
8008
+ id: number;
8009
+ control: FormControl<string>;
8010
+ }[]>;
8011
+ readonly quickSwatches: string[];
8012
+ private nextId;
8013
+ private syncing;
8014
+ constructor();
8015
+ addColor(color?: string): void;
8016
+ removeColor(index: number): void;
8017
+ onColorChange(): void;
8018
+ drop(event: CdkDragDrop<unknown>): void;
8019
+ private emit;
8020
+ private sameList;
8021
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorListField, never>;
8022
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorListField, "mt-color-list-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
8023
+ }
8024
+
8025
+ interface ArrayRow {
8026
+ id: number;
8027
+ group: FormGroup;
8028
+ }
8029
+ /**
8030
+ * Generic add/remove/reorder editor for arrays of objects — replaces the four
8031
+ * copy-paste array builders (override labels, shadows, order rows). Each row is
8032
+ * a `FormGroup` of the `itemFields` scalar sub-fields. Controlled: `value`
8033
+ * (object[]) in, `valueChange` (object[]) out.
8034
+ */
8035
+ declare class ArrayBuilderField {
8036
+ readonly value: _angular_core.InputSignal<unknown[] | null>;
8037
+ readonly itemFields: _angular_core.InputSignal<ControlField[]>;
8038
+ readonly itemTitleKey: _angular_core.InputSignal<string | undefined>;
8039
+ readonly addLabel: _angular_core.InputSignal<string>;
8040
+ readonly maxItems: _angular_core.InputSignal<number | undefined>;
8041
+ readonly valueChange: _angular_core.OutputEmitterRef<unknown[]>;
8042
+ readonly rows: _angular_core.WritableSignal<ArrayRow[]>;
8043
+ private readonly destroyRef;
8044
+ /** Subscriptions for the current row set; torn down on every rebuild. */
8045
+ private rowSubs;
8046
+ private nextId;
8047
+ private syncing;
8048
+ constructor();
8049
+ get canAdd(): boolean;
8050
+ rowTitle(row: ArrayRow, index: number): string;
8051
+ control(row: ArrayRow, key: string): FormControl;
8052
+ options(field: ControlField): ControlOption[];
8053
+ add(): void;
8054
+ remove(index: number): void;
8055
+ drop(event: CdkDragDrop<unknown>): void;
8056
+ private buildRow;
8057
+ private emit;
8058
+ private matchesCurrent;
8059
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ArrayBuilderField, never>;
8060
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ArrayBuilderField, "mt-array-builder-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "itemFields": { "alias": "itemFields"; "required": false; "isSignal": true; }; "itemTitleKey": { "alias": "itemTitleKey"; "required": false; "isSignal": true; }; "addLabel": { "alias": "addLabel"; "required": false; "isSignal": true; }; "maxItems": { "alias": "maxItems"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
8061
+ }
8062
+
8063
+ interface MapRow {
8064
+ key: string;
8065
+ label: string;
8066
+ group: FormGroup;
8067
+ }
8068
+ /**
8069
+ * Per-key value editor — replaces raw-JSON maps such as per-property
8070
+ * translations (`{ key: { en, ar } }`) or per-property colors
8071
+ * (`{ key: { color } }`). Keys come from `keys` (e.g. the chart's selected
8072
+ * properties); each key renders the scalar `valueFields` as `mt-*` controls.
8073
+ * Controlled: `value` (Record) in, `valueChange` (Record) out.
8074
+ */
8075
+ declare class KeyValueMapField {
8076
+ readonly value: _angular_core.InputSignal<Record<string, unknown> | null>;
8077
+ readonly keys: _angular_core.InputSignal<ControlOption[]>;
8078
+ readonly valueFields: _angular_core.InputSignal<ControlField[]>;
8079
+ readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
8080
+ readonly rows: _angular_core.WritableSignal<MapRow[]>;
8081
+ private readonly destroyRef;
8082
+ /** Subscriptions for the current row set; torn down on every rebuild. */
8083
+ private rowSubs;
8084
+ private syncing;
8085
+ constructor();
8086
+ options(field: ControlField): ControlOption[];
8087
+ control(row: MapRow, key: string): FormControl;
8088
+ private emit;
8089
+ /** True when the existing rows already represent (keys, map, fields). */
8090
+ private matchesCurrent;
8091
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<KeyValueMapField, never>;
8092
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<KeyValueMapField, "mt-key-value-map-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "keys": { "alias": "keys"; "required": false; "isSignal": true; }; "valueFields": { "alias": "valueFields"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
8093
+ }
8094
+
7302
8095
  /**
7303
8096
  * Filter items by group ID
7304
8097
  *
@@ -7328,5 +8121,5 @@ declare class GetChartActionsPipe implements PipeTransform {
7328
8121
  */
7329
8122
  declare function cloneDeep<T>(obj: T): T;
7330
8123
 
7331
- export { ActionsSettings, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ComparisonChartHandler, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DatasourcePanelComponent, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterBuilderComponent, FilterByGroupPipe, FilterChipsBarComponent, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, GuidedConfigDialogComponent, HTTPMethod, HeaderCardComponent, ITEM_GUIDANCE_REGISTRY, ItemCardMenuComponent, ItemConfigPopoverComponent, ItemContextToolbarComponent, ItemGuidanceService, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, addCommasToNumber, applyBehaviorToPersisted, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, createAxisFormatter, createTooltipFormatter, datasourceToUi, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, fieldsToUi, filtersToUi, findDomain, findPreset, flattenSchema, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, validate };
7332
- export type { ActionConfig, ApiResponse, BackendChartType, BarChartData, BehaviorUi, BindingScope, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartCapability, ChartCapabilityLegacyAliases, RequestType$1 as ChartCapabilityRequestType, ChartData, ChartDataHandled, ChartDomainSupport, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, ConfigDomainKey, ConfigDomainSpec, ConfigLookupShape, ConfigViewAssembly, ControlBinding, ControlBindingIndex, ControlBindingValueAdapter, ControlDomain, ControlField, ControlFieldType, ControlOption, ControlPatch, ControlSchema, ControlSection, ControlSectionScope, ControlVisiblePredicate, CustomApi, DashboardBuilderData, DashboardChartItem, DashboardChartTemplate, DashboardDialogItem, DashboardInformativeContext, DashboardItemStore, DashboardListEvent, DashboardPage, DashboardSaveRequestOptions, DashboardTargetOption, DashboardTargetPathStep, DashboardTargetTemplateFilter, DashboardTargetTemplateSelection, DashboardTargetTemplateSourceLink, DashboardTargetsContextInfo, DashboardTargetsResponse, DatasourceUi, DisplayConfig, DisplayField, DisplayFieldQuery, DisplaySchema, EChartSeriesItem, ExcelSheet, FieldAssignment, FieldsUi, FilterChip, FilterConfig, FilterOperator, FilterOption, FilterScope, FilterSource, FiltersUi, FlattenedControl, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedName, ManageFilterOnPageResult, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModulesTreeRequest, ModulesTreeResponse, ParseResult, PersistedItemConfig, PhaseGateProperty, PhaseGateStep, PieChartData, PopoverTab, PopoverTabSpec, Product, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QueryEditorKind, QueryField, QuerySchema, QuickManageType, RendererKey, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, RuntimeItemConfig, SelectionFilter, ServiceConfig, ServiceItem, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };
8124
+ export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, ComparisonChartHandler, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DatasourcePanelComponent, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterBuilderComponent, FilterByGroupPipe, FilterChipsBarComponent, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, GuidedConfigDialogComponent, HTTPMethod, HeaderCardComponent, ITEM_GUIDANCE_REGISTRY, ItemCardMenuComponent, ItemConfigPopoverComponent, ItemContextToolbarComponent, ItemGuidanceService, KeyValueMapField, LastHistoryLevelCardComponent, LegendOrderField, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SegmentedField, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, StyleField, StyleSettingsRenderer, StyleStudioDrawer, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, addCommasToNumber, applyBehaviorToPersisted, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, createAxisFormatter, createTooltipFormatter, datasourceToUi, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, expandResetPatches, fieldsToUi, filtersToUi, findDomain, findPreset, flattenSchema, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
8125
+ export type { ActionConfig, ApiResponse, BackendChartType, BarChartData, BehaviorUi, BindingScope, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartCapability, ChartCapabilityLegacyAliases, RequestType$1 as ChartCapabilityRequestType, ChartData, ChartDataHandled, ChartDomainSupport, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, ConfigDomainKey, ConfigDomainSpec, ConfigLookupShape, ConfigViewAssembly, ControlBinding, ControlBindingIndex, ControlBindingValueAdapter, ControlDomain, ControlField, ControlFieldType, ControlOption, ControlPatch, ControlSchema, ControlSection, ControlSectionScope, ControlVisiblePredicate, CustomApi, DashboardBuilderData, DashboardChartItem, DashboardChartTemplate, DashboardDialogItem, DashboardInformativeContext, DashboardItemStore, DashboardListEvent, DashboardPage, DashboardSaveRequestOptions, DashboardTargetOption, DashboardTargetPathStep, DashboardTargetTemplateFilter, DashboardTargetTemplateSelection, DashboardTargetTemplateSourceLink, DashboardTargetsContextInfo, DashboardTargetsResponse, DatasourceUi, DisplayConfig, DisplayField, DisplayFieldQuery, DisplaySchema, EChartSeriesItem, ExcelSheet, FieldAssignment, FieldsUi, FilterChip, FilterConfig, FilterOperator, FilterOption, FilterScope, FilterSource, FiltersUi, FlattenedControl, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, GroupedParentOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LegendOrderItem, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedName, ManageFilterOnPageResult, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, ParseResult, PersistedItemConfig, PhaseGateProperty, PhaseGateStep, PieChartData, PopoverTab, PopoverTabSpec, Product, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QueryEditorKind, QueryField, QuerySchema, QuickManageType, RendererKey, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, RuntimeItemConfig, SelectionFilter, ServiceConfig, ServiceItem, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };