@masterteam/dashboard-builder 0.0.91 → 0.0.93

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.
@@ -11,7 +11,7 @@ import * as _angular_forms from '@angular/forms';
11
11
  import { ControlValueAccessor, FormGroup, FormArray, ValidationErrors, FormControl } from '@angular/forms';
12
12
  import { MTIcon } from '@masterteam/icons';
13
13
  import { TimelineScaleMode, TimelineColumnConfig, TimelineGanttMapping } from '@masterteam/timeline';
14
- import { EntityData as EntityData$1, EntityViewType } from '@masterteam/components/entities';
14
+ import { EntityData as EntityData$1, EntityViewType, EntityConfiguration } from '@masterteam/components/entities';
15
15
  import { HttpContext } from '@angular/common/http';
16
16
  import { ColumnDef, TableAction, CellChangeEvent } from '@masterteam/components/table';
17
17
  import { ActivatedRoute } from '@angular/router';
@@ -1415,6 +1415,8 @@ interface ControlField {
1415
1415
  * (e.g. `propsConfigAsIndex`) instead of a `{ key: value }` map.
1416
1416
  */
1417
1417
  asArray?: boolean;
1418
+ /** Collapse large per-property rows until the author chooses a property. */
1419
+ collapsibleRows?: boolean;
1418
1420
  /**
1419
1421
  * For a `select` sub-field of a `keyValueMap`: offer a literal colour
1420
1422
  * alongside the listed options. Selecting `CUSTOM_COLOR_OPTION` swaps in a
@@ -3398,6 +3400,8 @@ declare class DashboardItem implements OnInit, OnDestroy {
3398
3400
  readonly chartTypeId: _angular_core.InputSignal<string | number | undefined>;
3399
3401
  /** Read-only mode */
3400
3402
  readonly readonly: _angular_core.InputSignal<boolean>;
3403
+ /** Render host-supplied preview data without issuing chart requests. */
3404
+ readonly useCachedDataOnly: _angular_core.InputSignal<boolean>;
3401
3405
  /** Parent page/dashboard name for topbar breadcrumb fallbacks */
3402
3406
  readonly pageName: _angular_core.InputSignal<string>;
3403
3407
  /** Whether this item is inside a group */
@@ -3545,7 +3549,7 @@ declare class DashboardItem implements OnInit, OnDestroy {
3545
3549
  private buildParentFilter;
3546
3550
  private mergeRequestFilters;
3547
3551
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardItem, never>;
3548
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardItem, "mt-dashboard-item", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pageName": { "alias": "pageName"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isDialog": { "alias": "isDialog"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "reportId": { "alias": "reportId"; "required": false; "isSignal": true; }; "ignoreQueryFilter": { "alias": "ignoreQueryFilter"; "required": false; "isSignal": true; }; "builderMode": { "alias": "builderMode"; "required": false; "isSignal": true; }; }, { "actionTriggered": "actionTriggered"; "configureRequested": "configureRequested"; "titleEdited": "titleEdited"; }, never, never, true, never>;
3552
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardItem, "mt-dashboard-item", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "useCachedDataOnly": { "alias": "useCachedDataOnly"; "required": false; "isSignal": true; }; "pageName": { "alias": "pageName"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isDialog": { "alias": "isDialog"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "reportId": { "alias": "reportId"; "required": false; "isSignal": true; }; "ignoreQueryFilter": { "alias": "ignoreQueryFilter"; "required": false; "isSignal": true; }; "builderMode": { "alias": "builderMode"; "required": false; "isSignal": true; }; }, { "actionTriggered": "actionTriggered"; "configureRequested": "configureRequested"; "titleEdited": "titleEdited"; }, never, never, true, never>;
3549
3553
  }
3550
3554
 
3551
3555
  interface HeaderCardConfig$1 {
@@ -3804,6 +3808,148 @@ declare class CardInfoComponent {
3804
3808
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardInfoComponent, "mt-card-info", never, { "cardInfo": { "alias": "cardInfo"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3805
3809
  }
3806
3810
 
3811
+ /**
3812
+ * Map regions available to the Map Chart widget.
3813
+ *
3814
+ * The widget draws boundaries from GeoJSON registered with ECharts rather than
3815
+ * fetching raster tiles, so it needs no network, no API key and no third-party
3816
+ * usage policy — the same approach the legacy dashboardBuilder app used.
3817
+ *
3818
+ * Each region's GeoJSON is lazy-loaded: the files are a few hundred KB and only
3819
+ * a dashboard containing a Map Chart should pay for them.
3820
+ */
3821
+ interface GeoJsonCollection {
3822
+ type: string;
3823
+ features: unknown[];
3824
+ [key: string]: unknown;
3825
+ }
3826
+ interface MapRegion {
3827
+ /** The name the GeoJSON is registered under in ECharts' global map registry. */
3828
+ readonly echartsName: string;
3829
+ /** `[lon, lat]`, matching ECharts' `geo.center`. */
3830
+ readonly center: [number, number];
3831
+ /**
3832
+ * `geo.zoom`, relative to the boundary fitted to the card. Dashboard cards
3833
+ * are much wider than they are tall, so a fitted map leaves a lot of empty
3834
+ * card; these values fill it without clipping the outline.
3835
+ */
3836
+ readonly zoom: number;
3837
+ readonly load: () => Promise<GeoJsonCollection>;
3838
+ }
3839
+ /**
3840
+ * Keyed by the lowercased persisted `clientConfig.map` value.
3841
+ *
3842
+ * `riyadhgovernorate` is the name the legacy ECharts handler used for the same
3843
+ * region, so configs written by either side resolve.
3844
+ */
3845
+ declare const MAP_REGIONS: Readonly<Record<string, MapRegion>>;
3846
+ declare const DEFAULT_MAP_REGION_KEY = "saudiarabia";
3847
+ /** Attribution for the bundled boundaries. Rendered by the widget; keep it. */
3848
+ declare const MAP_DATA_ATTRIBUTION = "\u00A9 OpenStreetMap contributors (ODbL)";
3849
+ declare function resolveMapRegion(value: unknown): MapRegion;
3850
+
3851
+ /**
3852
+ * Builds the ECharts `geo` + scatter option for the Map Chart widget.
3853
+ *
3854
+ * Kept pure and separate from the component so the grouping, colour assignment
3855
+ * and coordinate filtering can be unit-tested without a DOM or an ECharts
3856
+ * instance. Mirrors the legacy dashboardBuilder `MapChartService` option so the
3857
+ * widget renders the same way it always did.
3858
+ */
3859
+
3860
+ /** One record placed on the map. Mirrors `MapChartHandler.handleLeafletMap`. */
3861
+ interface MapViewPoint {
3862
+ displayName: string;
3863
+ lat: number;
3864
+ lon: number;
3865
+ color: string;
3866
+ extraValues?: unknown;
3867
+ }
3868
+ /** One grouping-property bucket, as produced by `handleLeafletMap`. */
3869
+ interface MapViewGroup {
3870
+ groupName: string;
3871
+ color: string;
3872
+ points: MapViewPoint[];
3873
+ }
3874
+ interface MapLegendOptions {
3875
+ show: boolean;
3876
+ position: 'top' | 'right' | 'bottom' | 'left';
3877
+ icon?: string;
3878
+ }
3879
+ interface MapFontOptions {
3880
+ fontFamily?: string;
3881
+ labelSize?: number;
3882
+ legendSize?: number;
3883
+ }
3884
+ /** Marker silhouette, carried over from the legacy service's Figma export. */
3885
+ declare const MAP_MARKER_PATH = "path://M6.99998 0.666687C5.24336 0.666599 3.55769 1.35982 2.30935 2.59568C1.06101 3.83154 0.350879 5.51016 0.333313 7.26669C0.333313 11.8334 6.20831 16.9167 6.45831 17.1334C6.60926 17.2625 6.80135 17.3334 6.99998 17.3334C7.19861 17.3334 7.3907 17.2625 7.54165 17.1334C7.83331 16.9167 13.6666 11.8334 13.6666 7.26669C13.6491 5.51016 12.939 3.83154 11.6906 2.59568C10.4423 1.35982 8.7566 0.666599 6.99998 0.666687ZM6.99998 9.83335C6.42312 9.83335 5.85921 9.66229 5.37957 9.34181C4.89992 9.02132 4.52609 8.5658 4.30533 8.03285C4.08458 7.4999 4.02682 6.91345 4.13936 6.34767C4.2519 5.7819 4.52968 5.2622 4.93758 4.85429C5.34549 4.44639 5.86519 4.1686 6.43097 4.05606C6.99674 3.94352 7.58319 4.00128 8.11614 4.22204C8.64909 4.44279 9.10461 4.81663 9.4251 5.29627C9.74559 5.77592 9.91665 6.33983 9.91665 6.91669C9.91665 7.29971 9.8412 7.67898 9.69463 8.03285C9.54805 8.38671 9.33321 8.70825 9.06237 8.97908C8.79154 9.24992 8.47001 9.46476 8.11614 9.61134C7.76227 9.75791 7.383 9.83335 6.99998 9.83335Z";
3886
+ /** Assigned in order to groups that carry no colour of their own. */
3887
+ declare const MAP_FALLBACK_COLORS: string[];
3888
+ declare function isPlottable(point: MapViewPoint | undefined | null): boolean;
3889
+ /** Groups that have at least one record with usable coordinates. */
3890
+ declare function plottableGroups(groups: readonly MapViewGroup[] | null | undefined): MapViewGroup[];
3891
+ /**
3892
+ * The ECharts option for a Map Chart.
3893
+ *
3894
+ * Returns `null` when nothing is plottable, so the caller can show its own
3895
+ * empty state instead of an ECharts canvas with an invisible scatter series.
3896
+ */
3897
+ declare function buildMapChartOption(groups: readonly MapViewGroup[] | null | undefined, region: MapRegion, legend: MapLegendOptions, font?: MapFontOptions): Record<string, unknown> | null;
3898
+
3899
+ /** The persisted Style Studio map controls this renderer honours. */
3900
+ interface MapViewConfig {
3901
+ mapRegion?: string;
3902
+ }
3903
+ declare class MapViewComponent {
3904
+ /** Grouped records from `MapChartHandler.handleLeafletMap`. */
3905
+ readonly groups: _angular_core.InputSignal<MapViewGroup[]>;
3906
+ /** Persisted Style Studio map controls. */
3907
+ readonly config: _angular_core.InputSignal<MapViewConfig>;
3908
+ /** Hide the group legend when the widget's legend control is off. */
3909
+ readonly showLegend: _angular_core.InputSignal<boolean>;
3910
+ /** Where the widget's legend control puts the legend. */
3911
+ readonly legendPosition: _angular_core.InputSignal<"bottom" | "top" | "right" | "left">;
3912
+ /** Legend marker shape, from the widget's legend control. */
3913
+ readonly legendIcon: _angular_core.InputSignal<string | undefined>;
3914
+ /** Forwarded to `mt-echart` so it keys its chart instance per widget. */
3915
+ readonly dashboardId: _angular_core.InputSignal<string | number>;
3916
+ readonly configurationItem: _angular_core.InputSignal<ItemConfig | null>;
3917
+ readonly inGroup: _angular_core.InputSignal<boolean>;
3918
+ /** Emitted when a marker is clicked, for the widget's row actions. */
3919
+ readonly pointClick: _angular_core.OutputEmitterRef<MapViewPoint>;
3920
+ /** The ECharts map name currently in the global registry, once loaded. */
3921
+ private readonly registeredName;
3922
+ protected readonly attribution = "\u00A9 OpenStreetMap contributors (ODbL)";
3923
+ protected readonly region: _angular_core.Signal<MapRegion>;
3924
+ protected readonly hasPoints: _angular_core.Signal<boolean>;
3925
+ /**
3926
+ * `null` until the region's boundaries are registered — handing ECharts a
3927
+ * `geo.map` name it does not know renders an empty canvas with no error.
3928
+ */
3929
+ protected readonly option: _angular_core.Signal<Record<string, unknown> | null>;
3930
+ constructor();
3931
+ /**
3932
+ * Loads the region's GeoJSON (lazily — the files are large) and registers it
3933
+ * under the name the option refers to. `import('echarts')` resolves to the
3934
+ * same module instance `mt-echart` uses, so the registration is visible to
3935
+ * the chart it renders.
3936
+ */
3937
+ private ensureRegistered;
3938
+ /**
3939
+ * `mt-echart` forwards ECharts' own click payload; the record that produced
3940
+ * the marker rides along on `extraValues`.
3941
+ */
3942
+ protected onChartClick(event: {
3943
+ data?: {
3944
+ extraValues?: unknown;
3945
+ name?: string;
3946
+ value?: unknown[];
3947
+ };
3948
+ }): void;
3949
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapViewComponent, never>;
3950
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MapViewComponent, "mt-map-view", never, { "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "legendPosition": { "alias": "legendPosition"; "required": false; "isSignal": true; }; "legendIcon": { "alias": "legendIcon"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "configurationItem": { "alias": "configurationItem"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "pointClick": "pointClick"; }, never, never, true, never>;
3951
+ }
3952
+
3807
3953
  /**
3808
3954
  * Inline view-mode the body should render with.
3809
3955
  *
@@ -3812,9 +3958,10 @@ declare class CardInfoComponent {
3812
3958
  * - 'timeline' — handler returned `{ calendarOptions, ... }`.
3813
3959
  * - 'phaseGateStepper' — handler returned `{ steps, currentIndex }`.
3814
3960
  * - 'performanceGauge' — handler returned `{ performance, status, statuses }`.
3961
+ * - 'map' — handler returned the grouped location array.
3815
3962
  * - 'raw' — fallback to ECharts (we still try to render).
3816
3963
  */
3817
- type CardViewMode = 'echart' | 'splitter' | 'timeline' | 'phaseGateStepper' | 'performanceGauge' | 'raw';
3964
+ type CardViewMode = 'echart' | 'splitter' | 'timeline' | 'phaseGateStepper' | 'performanceGauge' | 'map' | 'raw';
3818
3965
  interface PerformanceGaugeStatus {
3819
3966
  key?: string;
3820
3967
  name?: string | Record<string, string>;
@@ -3902,6 +4049,24 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3902
4049
  * Falls back to 'echart' when not a special widget.
3903
4050
  */
3904
4051
  readonly componentViewMode: _angular_core.Signal<CardViewMode>;
4052
+ /**
4053
+ * `MapChartHandler.handleLeafletMap` returns a bare array of
4054
+ * `{ groupName, color, points }` rather than an ECharts option, so the map
4055
+ * widget is rendered by `mt-map-view` instead of `mt-echart`.
4056
+ */
4057
+ readonly mapGroups: _angular_core.Signal<MapViewGroup[]>;
4058
+ /**
4059
+ * The Style Studio "Map" control. `clientConfig.map` is the path `MAP_SECTION`
4060
+ * writes; the `mapConfig` envelope the handler attaches to the returned array
4061
+ * is honoured as a fallback for configs written by it.
4062
+ */
4063
+ readonly mapViewConfig: _angular_core.Signal<MapViewConfig>;
4064
+ /** The widget's legend controls also govern the map's group legend. */
4065
+ readonly mapLegendShow: _angular_core.Signal<boolean>;
4066
+ readonly mapLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
4067
+ readonly mapLegendIcon: _angular_core.Signal<string | undefined>;
4068
+ private readonly mapLegend;
4069
+ onMapPointClick(point: MapViewPoint): void;
3905
4070
  readonly performanceGauge: _angular_core.Signal<PerformanceGaugeViewModel>;
3906
4071
  readonly performanceGaugeSegments: _angular_core.Signal<PerformanceGaugeSegment[]>;
3907
4072
  /**
@@ -4217,6 +4382,15 @@ interface PropertyRuntimeConfig {
4217
4382
  hidden?: boolean;
4218
4383
  border?: boolean | string[];
4219
4384
  colorAsProperty?: string;
4385
+ hideLabel?: boolean;
4386
+ labelPosition?: 'top' | 'bottom';
4387
+ alignEnd?: boolean;
4388
+ infoEn?: string;
4389
+ infoAr?: string;
4390
+ showDisplayName?: boolean;
4391
+ showPhoneNumber?: boolean;
4392
+ showEmail?: boolean;
4393
+ showAvatar?: boolean;
4220
4394
  }
4221
4395
 
4222
4396
  interface DashboardCardProperty extends EntityData$1 {
@@ -4256,9 +4430,11 @@ interface DashboardCardEntityValue {
4256
4430
  rawValue?: string;
4257
4431
  }
4258
4432
  declare function normalizeDashboardCardEntityValue(value: EntityData$1['value'] | null | undefined, rawValue: string | null | undefined, viewType: EntityViewType): DashboardCardEntityValue;
4433
+ /** Apply only authored overrides; absent fields retain the entity's defaults. */
4434
+ declare function mergePropertyAppearance(base: EntityConfiguration, appearance: PropertyRuntimeConfig, viewType: EntityViewType): EntityConfiguration;
4259
4435
  declare class PropertiesCardComponent implements OnInit, OnDestroy {
4260
4436
  private readonly storeService;
4261
- private readonly transloco;
4437
+ private readonly dashboardStore;
4262
4438
  private readonly subscription;
4263
4439
  readonly dashboardId: _angular_core.InputSignal<string | number>;
4264
4440
  readonly inGroup: _angular_core.InputSignal<boolean>;
@@ -4270,6 +4446,7 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
4270
4446
  readonly cardData: _angular_core.WritableSignal<DashboardTabItem[][]>;
4271
4447
  readonly tabSelected: _angular_core.WritableSignal<number>;
4272
4448
  readonly langCode: _angular_core.Signal<string>;
4449
+ readonly title: _angular_core.Signal<string>;
4273
4450
  readonly galleryMode: _angular_core.Signal<boolean>;
4274
4451
  readonly currentTabItems: _angular_core.Signal<DashboardTabItem[]>;
4275
4452
  readonly selectedProperties: _angular_core.Signal<string[]>;
@@ -5609,18 +5786,6 @@ declare class MapChartHandler {
5609
5786
  * Returns data directly as array of grouped records
5610
5787
  */
5611
5788
  handleLeafletMap(dataResponse: any, config: ItemConfig): any;
5612
- /**
5613
- * Reads the Style Studio map controls from the persisted clientConfig exactly
5614
- * as the schema writes them and returns only the keys that are present.
5615
- *
5616
- * Schema write paths (control-schema.registry.ts MAP_SECTION):
5617
- * - mapRegion -> clientConfig.map
5618
- * - tileLayer -> clientConfig.configAsType.mapChart.tileLayer
5619
- * - showClusters -> clientConfig.configAsType.mapChart.showClusters
5620
- * - minZoom -> clientConfig.configAsType.mapChart.minZoom
5621
- * - maxZoom -> clientConfig.configAsType.mapChart.maxZoom
5622
- */
5623
- private buildMapConfig;
5624
5789
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapChartHandler, never>;
5625
5790
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<MapChartHandler>;
5626
5791
  }
@@ -6278,8 +6443,10 @@ declare class DashboardBuilderService {
6278
6443
  private readonly levelLogsCache;
6279
6444
  /** Host-owned level-log resolver; preferred over the package's own request. */
6280
6445
  private readonly levelLogsResolver;
6281
- /** HTTP context for gateway requests */
6282
- private gatewayContext;
6446
+ /** HTTP context for gateway-owned metadata requests. */
6447
+ private readonly gatewayContext;
6448
+ /** HTTP context for application-owned runtime requests. */
6449
+ private readonly applicationContext;
6283
6450
  constructor();
6284
6451
  private loadConfig;
6285
6452
  /**
@@ -8729,6 +8896,8 @@ declare class ChartViewer {
8729
8896
  * `refresh()`, which is how the Style Studio drives it anyway.
8730
8897
  */
8731
8898
  readonly hideHeader: _angular_core.InputSignal<boolean>;
8899
+ /** Style Studio supplies data from its isolated store instead of fetching. */
8900
+ readonly useCachedDataOnly: _angular_core.InputSignal<boolean>;
8732
8901
  /** Loading state for refresh */
8733
8902
  readonly loading: _angular_core.WritableSignal<boolean>;
8734
8903
  private readonly destroyRef;
@@ -8743,7 +8912,7 @@ declare class ChartViewer {
8743
8912
  */
8744
8913
  refresh(): void;
8745
8914
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartViewer, never>;
8746
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartViewer, "mt-chart-viewer", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
8915
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartViewer, "mt-chart-viewer", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; "useCachedDataOnly": { "alias": "useCachedDataOnly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
8747
8916
  }
8748
8917
 
8749
8918
  /** What `ActionService.showDialog` puts on `DynamicDialogConfig.data`. */
@@ -8893,6 +9062,8 @@ declare class StyleStudioDrawer {
8893
9062
  readonly itemConfig: _angular_core.Signal<ItemConfig | null>;
8894
9063
  readonly capability: _angular_core.Signal<_masterteam_dashboard_builder.ChartCapability | null>;
8895
9064
  readonly schema: _angular_core.Signal<_masterteam_dashboard_builder.ControlSchema>;
9065
+ /** Translate the schema only when the capability or language changes. */
9066
+ readonly localizedSections: _angular_core.Signal<ControlSection[]>;
8896
9067
  readonly chartName: _angular_core.Signal<string>;
8897
9068
  readonly chartIcon: _angular_core.Signal<string>;
8898
9069
  /**
@@ -8968,26 +9139,24 @@ interface RenderSection {
8968
9139
  toggles: ControlField[];
8969
9140
  }
8970
9141
  /**
8971
- * Walks a `ControlSchema` and renders a reactive form for each visible field,
8972
- * grouped into section cards. Honors per-field `scope` (Simple/Advanced),
8973
- * `visibleWhen` predicates and a free-text `search` filter. Emits `ControlPatch`
9142
+ * Renders the host's visible, localized schema sections as reactive forms.
9143
+ * Emits `ControlPatch`
8974
9144
  * upward; the host applies it via `applyControlPatchToPersisted` and re-feeds
8975
9145
  * the persisted config (one-way data flow → the live preview reacts).
8976
9146
  */
8977
9147
  declare class StyleSettingsRenderer {
8978
9148
  private readonly transloco;
8979
9149
  private readonly activeLang;
8980
- readonly schema: _angular_core.InputSignal<ControlSchema>;
9150
+ readonly visibleSections: _angular_core.InputSignal<ControlSection[]>;
8981
9151
  readonly persisted: _angular_core.InputSignal<_masterteam_dashboard_builder.ItemConfig | null>;
8982
9152
  readonly capability: _angular_core.InputSignal<ChartCapability | null>;
8983
9153
  readonly scope: _angular_core.InputSignal<ControlSectionScope>;
8984
- readonly search: _angular_core.InputSignal<string>;
8985
9154
  /** Live legend entries forwarded to any legendOrder control. */
8986
9155
  readonly legendItems: _angular_core.InputSignal<LegendOrderItem[]>;
8987
9156
  readonly patch: _angular_core.OutputEmitterRef<ControlPatch>;
8988
9157
  /** Emitted when the empty-state "switch to Advanced" affordance is used. */
8989
9158
  readonly requestScope: _angular_core.OutputEmitterRef<ControlSectionScope>;
8990
- /** Sections (with their visible fields) to render, after all filtering. */
9159
+ /** Use the exact same section objects as the rail, without relocalizing. */
8991
9160
  readonly sections: _angular_core.Signal<RenderSection[]>;
8992
9161
  readonly isEmpty: _angular_core.Signal<boolean>;
8993
9162
  /** Composite/full-width field types span both grid columns. */
@@ -8998,7 +9167,7 @@ declare class StyleSettingsRenderer {
8998
9167
  /** Clear every visible field in a section back to its (unset) default. */
8999
9168
  resetSection(entry: RenderSection): void;
9000
9169
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleSettingsRenderer, never>;
9001
- 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>;
9170
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StyleSettingsRenderer, "mt-style-settings-renderer", never, { "visibleSections": { "alias": "visibleSections"; "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; }; "legendItems": { "alias": "legendItems"; "required": false; "isSignal": true; }; }, { "patch": "patch"; "requestScope": "requestScope"; }, never, never, true, never>;
9002
9171
  }
9003
9172
 
9004
9173
  /**
@@ -9200,8 +9369,10 @@ declare class KeyValueMapField {
9200
9369
  readonly valueFields: _angular_core.InputSignal<ControlField[]>;
9201
9370
  /** When true, store/read a positional array aligned to `keys` order. */
9202
9371
  readonly asArray: _angular_core.InputSignal<boolean>;
9372
+ readonly collapsibleRows: _angular_core.InputSignal<boolean>;
9203
9373
  readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
9204
9374
  readonly rows: _angular_core.WritableSignal<MapRow[]>;
9375
+ readonly expandedRows: _angular_core.WritableSignal<ReadonlySet<string>>;
9205
9376
  private readonly destroyRef;
9206
9377
  /** Subscriptions for the current row set; torn down on every rebuild. */
9207
9378
  private rowSubs;
@@ -9218,6 +9389,9 @@ declare class KeyValueMapField {
9218
9389
  */
9219
9390
  readonly inputFields: _angular_core.Signal<ControlField[]>;
9220
9391
  readonly toggleFields: _angular_core.Signal<ControlField[]>;
9392
+ readonly userFields: _angular_core.Signal<ControlField[]>;
9393
+ isExpanded(key: string): boolean;
9394
+ toggleRow(key: string): void;
9221
9395
  /**
9222
9396
  * A sub-field's options, plus the row's own persisted value when it is not
9223
9397
  * one of them. `colorAsProperty` also accepts a literal color (`#fff`,
@@ -9247,10 +9421,12 @@ declare class KeyValueMapField {
9247
9421
  private modeKey;
9248
9422
  private existingFor;
9249
9423
  private clean;
9424
+ /** Keep persisted keys that this version of the editor does not expose. */
9425
+ private mergedRow;
9250
9426
  private emit;
9251
9427
  private matchesCurrent;
9252
9428
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<KeyValueMapField, never>;
9253
- 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; }; "asArray": { "alias": "asArray"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
9429
+ 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; }; "asArray": { "alias": "asArray"; "required": false; "isSignal": true; }; "collapsibleRows": { "alias": "collapsibleRows"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
9254
9430
  }
9255
9431
 
9256
9432
  /**
@@ -9282,5 +9458,5 @@ declare class GetChartActionsPipe implements PipeTransform {
9282
9458
  */
9283
9459
  declare function cloneDeep<T>(obj: T): T;
9284
9460
 
9285
- export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CUSTOM_COLOR_OPTION, 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, MODULE_CLASSIFICATION_LOG, MODULE_CLASSIFICATION_LOG_NAME, 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, formatAxisLabel, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isLogClassification, isManagePagesDeleteResult, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, resolveEntityUserPhoto, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
9286
- export type { ActionConfig, ApiResponse, AxisLabelWrapConfig, AxisLabelWrapMode, AxisLabelWrapOptions, 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, DashboardFilterLevelLog, DashboardFilterLevelSchema, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, DashboardInformativeContext, DashboardItemStore, DashboardLevelLogsResolver, DashboardLevelModule, 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, LocalizedLegendLabelChange, LocalizedName, ManageFilterOnPageResult, ManagePagesDeleteResult, 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, SnapshotLevelDataOption, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };
9461
+ export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CUSTOM_COLOR_OPTION, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, ComparisonChartHandler, DEFAULT_MAP_REGION_KEY, 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, MAP_DATA_ATTRIBUTION, MAP_FALLBACK_COLORS, MAP_MARKER_PATH, MAP_REGIONS, MODULE_CLASSIFICATION_LOG, MODULE_CLASSIFICATION_LOG_NAME, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, MapViewComponent, 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, buildMapChartOption, cloneDeep, createAxisFormatter, createTooltipFormatter, datasourceToUi, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, expandResetPatches, fieldsToUi, filtersToUi, findDomain, findPreset, flattenSchema, formatAxisLabel, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isLogClassification, isManagePagesDeleteResult, isMobilePlatform, isPlottable, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, mergePropertyAppearance, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, plottableGroups, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, resolveEntityUserPhoto, resolveMapRegion, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
9462
+ export type { ActionConfig, ApiResponse, AxisLabelWrapConfig, AxisLabelWrapMode, AxisLabelWrapOptions, 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, DashboardFilterLevelLog, DashboardFilterLevelSchema, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, DashboardInformativeContext, DashboardItemStore, DashboardLevelLogsResolver, DashboardLevelModule, 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, GeoJsonCollection, 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, LocalizedLegendLabelChange, LocalizedName, ManageFilterOnPageResult, ManagePagesDeleteResult, MapFontOptions, MapLegendOptions, MapRegion, MapViewConfig, MapViewGroup, MapViewPoint, 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, SnapshotLevelDataOption, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };