@masterteam/dashboard-builder 0.0.116 → 0.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -75
- package/assets/dashboard-builder.css +2 -2
- package/assets/i18n/ar.json +3 -1
- package/assets/i18n/en.json +3 -1
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-BDNd7eud.mjs → masterteam-dashboard-builder-dashboard-dialog.component-DFy4sv6t.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-BDNd7eud.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-DFy4sv6t.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-BjNTcvqc.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-2MrkLmtr.mjs} +943 -2425
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-2MrkLmtr.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs +1431 -0
- package/fesm2022/masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +7 -6
- package/types/masterteam-dashboard-builder.d.ts +92 -169
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-BjNTcvqc.mjs.map +0 -1
- package/fesm2022/masterteam-dashboard-builder-riyadh.geo-CE3Amxoa.mjs +0 -3902
- package/fesm2022/masterteam-dashboard-builder-riyadh.geo-CE3Amxoa.mjs.map +0 -1
- package/fesm2022/masterteam-dashboard-builder-saudi.geo-C_9VzPCF.mjs +0 -2530
- package/fesm2022/masterteam-dashboard-builder-saudi.geo-C_9VzPCF.mjs.map +0 -1
|
@@ -13,7 +13,7 @@ import { MTIcon } from '@masterteam/icons';
|
|
|
13
13
|
import { TimelineScaleMode, TimelineColumnConfig, TimelineGanttMapping } from '@masterteam/timeline';
|
|
14
14
|
import { EntityData as EntityData$1, EntityViewType, EntityConfiguration } from '@masterteam/components/entities';
|
|
15
15
|
import { HttpContext } from '@angular/common/http';
|
|
16
|
-
import { MtColDef, MtGridApi } from '@masterteam/data-grid';
|
|
16
|
+
import { MtRowClassParams, MtColDef, MtGridApi } from '@masterteam/data-grid';
|
|
17
17
|
import { ColumnDef, TableAction, CellChangeEvent } from '@masterteam/components/table';
|
|
18
18
|
import { ActivatedRoute } from '@angular/router';
|
|
19
19
|
export * from '@masterteam/dashboard-builder/access';
|
|
@@ -3764,7 +3764,7 @@ declare class CardFilterComponent implements OnInit {
|
|
|
3764
3764
|
/** Language code */
|
|
3765
3765
|
readonly langCode: _angular_core.Signal<string>;
|
|
3766
3766
|
/** Filter type */
|
|
3767
|
-
readonly filterType: _angular_core.Signal<"
|
|
3767
|
+
readonly filterType: _angular_core.Signal<"date" | "text" | "select" | "multiselect" | "multiSelect" | "daterange">;
|
|
3768
3768
|
/** Filter options */
|
|
3769
3769
|
readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
|
|
3770
3770
|
/** Placeholder text */
|
|
@@ -3885,154 +3885,67 @@ declare class CardInfoComponent {
|
|
|
3885
3885
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardInfoComponent, "mt-card-info", never, { "cardInfo": { "alias": "cardInfo"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3886
3886
|
}
|
|
3887
3887
|
|
|
3888
|
-
/**
|
|
3889
|
-
* Map regions available to the Map Chart widget.
|
|
3890
|
-
*
|
|
3891
|
-
* The widget draws boundaries from GeoJSON registered with ECharts rather than
|
|
3892
|
-
* fetching raster tiles, so it needs no network, no API key and no third-party
|
|
3893
|
-
* usage policy — the same approach the legacy dashboardBuilder app used.
|
|
3894
|
-
*
|
|
3895
|
-
* Each region's GeoJSON is lazy-loaded: the files are a few hundred KB and only
|
|
3896
|
-
* a dashboard containing a Map Chart should pay for them.
|
|
3897
|
-
*/
|
|
3898
|
-
interface GeoJsonCollection {
|
|
3899
|
-
type: string;
|
|
3900
|
-
features: unknown[];
|
|
3901
|
-
[key: string]: unknown;
|
|
3902
|
-
}
|
|
3903
|
-
interface MapRegion {
|
|
3904
|
-
/** The name the GeoJSON is registered under in ECharts' global map registry. */
|
|
3905
|
-
readonly echartsName: string;
|
|
3906
|
-
/** `[lon, lat]`, matching ECharts' `geo.center`. */
|
|
3907
|
-
readonly center: [number, number];
|
|
3908
|
-
/**
|
|
3909
|
-
* `geo.zoom`, relative to the boundary fitted to the card. Dashboard cards
|
|
3910
|
-
* are much wider than they are tall, so a fitted map leaves a lot of empty
|
|
3911
|
-
* card; these values fill it without clipping the outline.
|
|
3912
|
-
*/
|
|
3913
|
-
readonly zoom: number;
|
|
3914
|
-
readonly load: () => Promise<GeoJsonCollection>;
|
|
3915
|
-
}
|
|
3916
|
-
/**
|
|
3917
|
-
* Keyed by the lowercased persisted `clientConfig.map` value.
|
|
3918
|
-
*
|
|
3919
|
-
* `riyadhgovernorate` is the name the legacy ECharts handler used for the same
|
|
3920
|
-
* region, so configs written by either side resolve.
|
|
3921
|
-
*/
|
|
3922
|
-
declare const MAP_REGIONS: Readonly<Record<string, MapRegion>>;
|
|
3923
|
-
declare const DEFAULT_MAP_REGION_KEY = "saudiarabia";
|
|
3924
|
-
/** Attribution for the bundled boundaries. Rendered by the widget; keep it. */
|
|
3925
|
-
declare const MAP_DATA_ATTRIBUTION = "\u00A9 OpenStreetMap contributors (ODbL)";
|
|
3926
|
-
declare function resolveMapRegion(value: unknown): MapRegion;
|
|
3927
|
-
|
|
3928
|
-
/**
|
|
3929
|
-
* Builds the ECharts `geo` + scatter option for the Map Chart widget.
|
|
3930
|
-
*
|
|
3931
|
-
* Kept pure and separate from the component so the grouping, colour assignment
|
|
3932
|
-
* and coordinate filtering can be unit-tested without a DOM or an ECharts
|
|
3933
|
-
* instance. Mirrors the legacy dashboardBuilder `MapChartService` option so the
|
|
3934
|
-
* widget renders the same way it always did.
|
|
3935
|
-
*/
|
|
3936
|
-
|
|
3937
|
-
/** One record placed on the map. Mirrors `MapChartHandler.handleLeafletMap`. */
|
|
3888
|
+
/** The point shape returned by the map handler and emitted by the widget. */
|
|
3938
3889
|
interface MapViewPoint {
|
|
3939
3890
|
displayName: string;
|
|
3940
3891
|
lat: number;
|
|
3941
3892
|
lon: number;
|
|
3942
3893
|
color: string;
|
|
3943
3894
|
extraValues?: unknown;
|
|
3944
|
-
/** Tooltip Properties of this record (`tooltips[index]` in the response). */
|
|
3945
3895
|
tooltip?: unknown;
|
|
3946
3896
|
}
|
|
3947
|
-
/** One grouping-property bucket, as produced by `handleLeafletMap`. */
|
|
3948
3897
|
interface MapViewGroup {
|
|
3949
3898
|
groupName: string;
|
|
3950
3899
|
color: string;
|
|
3951
3900
|
points: MapViewPoint[];
|
|
3952
3901
|
}
|
|
3953
|
-
|
|
3954
|
-
show: boolean;
|
|
3955
|
-
position: 'top' | 'right' | 'bottom' | 'left';
|
|
3956
|
-
icon?: string;
|
|
3957
|
-
}
|
|
3958
|
-
interface MapFontOptions {
|
|
3959
|
-
fontFamily?: string;
|
|
3960
|
-
labelSize?: number;
|
|
3961
|
-
legendSize?: number;
|
|
3962
|
-
}
|
|
3963
|
-
/** Marker silhouette, carried over from the legacy service's Figma export. */
|
|
3964
|
-
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";
|
|
3965
|
-
/** Assigned in order to groups that carry no colour of their own. */
|
|
3966
|
-
declare const MAP_FALLBACK_COLORS: string[];
|
|
3967
|
-
declare function isPlottable(point: MapViewPoint | undefined | null): boolean;
|
|
3968
|
-
/** Groups that have at least one record with usable coordinates. */
|
|
3969
|
-
declare function plottableGroups(groups: readonly MapViewGroup[] | null | undefined): MapViewGroup[];
|
|
3970
|
-
/**
|
|
3971
|
-
* The ECharts option for a Map Chart.
|
|
3972
|
-
*
|
|
3973
|
-
* Returns `null` when nothing is plottable, so the caller can show its own
|
|
3974
|
-
* empty state instead of an ECharts canvas with an invisible scatter series.
|
|
3975
|
-
*/
|
|
3976
|
-
declare function buildMapChartOption(groups: readonly MapViewGroup[] | null | undefined, region: MapRegion, legend: MapLegendOptions, font?: MapFontOptions): Record<string, unknown> | null;
|
|
3902
|
+
type MapLegendPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
3977
3903
|
|
|
3978
|
-
/** The persisted Style Studio map controls this renderer honours. */
|
|
3979
3904
|
interface MapViewConfig {
|
|
3980
3905
|
mapRegion?: string;
|
|
3981
3906
|
}
|
|
3982
|
-
/** What ECharts hands back for a clicked pin (see `buildMapChartOption`). */
|
|
3983
|
-
interface MapPinData {
|
|
3984
|
-
extraValues?: unknown;
|
|
3985
|
-
name?: string;
|
|
3986
|
-
value?: unknown[];
|
|
3987
|
-
}
|
|
3988
3907
|
declare class MapViewComponent {
|
|
3989
|
-
/** Grouped records from `MapChartHandler.handleLeafletMap`. */
|
|
3990
3908
|
readonly groups: _angular_core.InputSignal<MapViewGroup[]>;
|
|
3991
|
-
/** Persisted Style Studio map controls. */
|
|
3992
3909
|
readonly config: _angular_core.InputSignal<MapViewConfig>;
|
|
3993
|
-
/** Hide the group legend when the widget's legend control is off. */
|
|
3994
3910
|
readonly showLegend: _angular_core.InputSignal<boolean>;
|
|
3995
|
-
|
|
3996
|
-
readonly legendPosition: _angular_core.InputSignal<"bottom" | "top" | "right" | "left">;
|
|
3997
|
-
/** Legend marker shape, from the widget's legend control. */
|
|
3911
|
+
readonly legendPosition: _angular_core.InputSignal<MapLegendPosition>;
|
|
3998
3912
|
readonly legendIcon: _angular_core.InputSignal<string | undefined>;
|
|
3999
|
-
/** Forwarded to `mt-echart` so it keys its chart instance per widget. */
|
|
4000
3913
|
readonly dashboardId: _angular_core.InputSignal<string | number>;
|
|
4001
3914
|
readonly configurationItem: _angular_core.InputSignal<ItemConfig | null>;
|
|
4002
3915
|
readonly inGroup: _angular_core.InputSignal<boolean>;
|
|
4003
|
-
/** Emitted when a marker is clicked, for the widget's row actions. */
|
|
4004
3916
|
readonly pointClick: _angular_core.OutputEmitterRef<MapViewPoint>;
|
|
4005
|
-
/** Emitted when a marker is double-clicked. */
|
|
4006
3917
|
readonly pointDblClick: _angular_core.OutputEmitterRef<MapViewPoint>;
|
|
4007
|
-
|
|
4008
|
-
private readonly
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
3918
|
+
private readonly document;
|
|
3919
|
+
private readonly destroyRef;
|
|
3920
|
+
private readonly zone;
|
|
3921
|
+
private readonly transloco;
|
|
3922
|
+
private readonly container;
|
|
3923
|
+
private readonly language;
|
|
3924
|
+
private readonly arabic;
|
|
3925
|
+
private readonly region;
|
|
3926
|
+
private readonly hiddenGroups;
|
|
3927
|
+
private readonly usableGroups;
|
|
3928
|
+
private readonly visiblePoints;
|
|
3929
|
+
protected readonly legendGroups: _angular_core.Signal<MapViewGroup[]>;
|
|
3930
|
+
protected readonly noLocations: _angular_core.Signal<boolean>;
|
|
3931
|
+
protected readonly status: _angular_core.WritableSignal<"loading" | "ready" | "unavailable">;
|
|
3932
|
+
private map?;
|
|
3933
|
+
private popup?;
|
|
3934
|
+
private observer?;
|
|
3935
|
+
private labels;
|
|
3936
|
+
private nextPointId;
|
|
3937
|
+
private readonly pointsById;
|
|
3938
|
+
private fitPending;
|
|
4017
3939
|
constructor();
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
private
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
* the marker rides along on `extraValues`.
|
|
4028
|
-
*/
|
|
4029
|
-
protected onChartClick(event: {
|
|
4030
|
-
data?: MapPinData;
|
|
4031
|
-
}): void;
|
|
4032
|
-
protected onChartDblClick(event: {
|
|
4033
|
-
data?: MapPinData;
|
|
4034
|
-
}): void;
|
|
4035
|
-
private toPoint;
|
|
3940
|
+
protected isGroupVisible(name: string): boolean;
|
|
3941
|
+
protected toggleGroup(name: string): void;
|
|
3942
|
+
private mountMap;
|
|
3943
|
+
private updateLabels;
|
|
3944
|
+
private updatePoints;
|
|
3945
|
+
private fitPoints;
|
|
3946
|
+
private zoomToCluster;
|
|
3947
|
+
private pointAt;
|
|
3948
|
+
private openPoint;
|
|
4036
3949
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapViewComponent, never>;
|
|
4037
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"; "pointDblClick": "pointDblClick"; }, never, never, true, never>;
|
|
4038
3951
|
}
|
|
@@ -4165,9 +4078,8 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
4165
4078
|
*/
|
|
4166
4079
|
readonly componentViewMode: _angular_core.Signal<CardViewMode>;
|
|
4167
4080
|
/**
|
|
4168
|
-
* `MapChartHandler.handleLeafletMap` returns
|
|
4169
|
-
*
|
|
4170
|
-
* widget is rendered by `mt-map-view` instead of `mt-echart`.
|
|
4081
|
+
* `MapChartHandler.handleLeafletMap` returns the grouped records consumed
|
|
4082
|
+
* by `mt-map-view`.
|
|
4171
4083
|
*/
|
|
4172
4084
|
readonly mapGroups: _angular_core.Signal<MapViewGroup[]>;
|
|
4173
4085
|
/**
|
|
@@ -4916,6 +4828,15 @@ declare class ListStatisticCardComponent implements OnInit, OnDestroy {
|
|
|
4916
4828
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListStatisticCardComponent, "mt-list-statistic-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
4917
4829
|
}
|
|
4918
4830
|
|
|
4831
|
+
/** Starting camera for saved dashboard map regions when there are no points. */
|
|
4832
|
+
interface MapRegion {
|
|
4833
|
+
readonly center: [number, number];
|
|
4834
|
+
readonly zoom: number;
|
|
4835
|
+
}
|
|
4836
|
+
declare const MAP_REGIONS: Readonly<Record<string, MapRegion>>;
|
|
4837
|
+
declare const DEFAULT_MAP_REGION_KEY = "saudiarabia";
|
|
4838
|
+
declare function resolveMapRegion(value: unknown): MapRegion;
|
|
4839
|
+
|
|
4919
4840
|
interface SkeletonConfig {
|
|
4920
4841
|
width: string;
|
|
4921
4842
|
height: string;
|
|
@@ -5005,9 +4926,10 @@ declare class StatisticCardComponent implements OnInit {
|
|
|
5005
4926
|
/** A dashboard table row on the standard grid: the source row plus its group and aggregates. */
|
|
5006
4927
|
interface TableCardGridRow {
|
|
5007
4928
|
readonly __row: any;
|
|
5008
|
-
readonly __index: number;
|
|
5009
4929
|
readonly __id: string;
|
|
5010
4930
|
readonly __mtgroup?: EntityData$1 | null;
|
|
4931
|
+
/** The server group's position, which keys the grid group. */
|
|
4932
|
+
readonly __mtgroupIndex?: number;
|
|
5011
4933
|
readonly __mtaggregates?: string;
|
|
5012
4934
|
}
|
|
5013
4935
|
|
|
@@ -5019,8 +4941,6 @@ interface TableColumn {
|
|
|
5019
4941
|
columnType?: 'entity' | 'actions' | 'template' | 'drag' | 'phaseGate';
|
|
5020
4942
|
hideColumn?: boolean;
|
|
5021
4943
|
width?: string;
|
|
5022
|
-
isSort?: boolean;
|
|
5023
|
-
isAsc?: boolean;
|
|
5024
4944
|
}
|
|
5025
4945
|
interface PhaseGateCell {
|
|
5026
4946
|
phaseName: string;
|
|
@@ -5110,18 +5030,15 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
5110
5030
|
readonly title: _angular_core.Signal<string>;
|
|
5111
5031
|
/** Table style config */
|
|
5112
5032
|
readonly tableStyleConfig: _angular_core.Signal<TableStyleConfig | null>;
|
|
5113
|
-
/** Last applied `column|direction` signature, to ignore unrelated edits. */
|
|
5114
|
-
private lastSortSig;
|
|
5115
5033
|
/**
|
|
5116
|
-
*
|
|
5117
|
-
*
|
|
5118
|
-
*
|
|
5119
|
-
*
|
|
5120
|
-
*
|
|
5121
|
-
* edits
|
|
5122
|
-
* persisted sort config.
|
|
5034
|
+
* The configured default sort (tableFormat.sortConfig) as a grid sort model. The
|
|
5035
|
+
* configured column is a selected-property key; normalize like the hidden-columns
|
|
5036
|
+
* match (strip separators + the trailing index suffix on `key`) so it resolves to a
|
|
5037
|
+
* built column whether it was stored as the key, normalizedKey or label. The old
|
|
5038
|
+
* card sorted flat tables only. Equal models compare equal, so unrelated config
|
|
5039
|
+
* edits never undo a header sort.
|
|
5123
5040
|
*/
|
|
5124
|
-
private readonly
|
|
5041
|
+
private readonly defaultSort;
|
|
5125
5042
|
/**
|
|
5126
5043
|
* Whether to skip currency formatting on cells.
|
|
5127
5044
|
* Reads `clientConfig.tableFormat.disableCurrencyFormat`. Gated: only true
|
|
@@ -5151,11 +5068,31 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
5151
5068
|
/** Visible columns (not hidden) */
|
|
5152
5069
|
readonly visibleColumns: _angular_core.Signal<TableColumn[]>;
|
|
5153
5070
|
/** Row clickable */
|
|
5154
|
-
readonly isRowClickable: _angular_core.Signal<boolean
|
|
5155
|
-
/** Rows for the standard grid: the source row, its
|
|
5071
|
+
readonly isRowClickable: _angular_core.Signal<boolean>;
|
|
5072
|
+
/** Rows for the standard grid: the source row, its group and the group's aggregates. */
|
|
5156
5073
|
protected readonly gridRows: _angular_core.Signal<readonly TableCardGridRow[]>;
|
|
5157
5074
|
protected readonly gridRowId: (row: TableCardGridRow) => string;
|
|
5158
5075
|
private readonly gridCells;
|
|
5076
|
+
/**
|
|
5077
|
+
* Each data row's displayed position (after sorting and filtering), counted from 1 in
|
|
5078
|
+
* every group like the old card's index. The grid api reads the grid's displayed-rows
|
|
5079
|
+
* signal, so this follows every sort, filter, grouping and data change.
|
|
5080
|
+
*/
|
|
5081
|
+
protected readonly rowPositions: _angular_core.Signal<Map<string, number>>;
|
|
5082
|
+
/** The index cell: the row's displayed position, never a number stored with the row. */
|
|
5083
|
+
private readonly indexCell;
|
|
5084
|
+
/** Authored cell text colour, weight and size, on every cell like the old card's td. */
|
|
5085
|
+
private readonly cellStyle;
|
|
5086
|
+
/** Authored header and group colours, read by the card's scoped grid rules. */
|
|
5087
|
+
protected readonly gridStyle: _angular_core.Signal<{
|
|
5088
|
+
'--table-card-th-color': string | null;
|
|
5089
|
+
'--table-card-th-background': string | null;
|
|
5090
|
+
'--table-card-th-font-size': string | null;
|
|
5091
|
+
'--table-card-group-color': string | null;
|
|
5092
|
+
'--table-card-group-background': string;
|
|
5093
|
+
}>;
|
|
5094
|
+
/** Group rows take the group colours; stripes alternate within a group, as before. */
|
|
5095
|
+
protected readonly gridRowClass: ({ node, }: MtRowClassParams<TableCardGridRow>) => string;
|
|
5159
5096
|
protected readonly gridColumns: _angular_core.Signal<readonly MtColDef<TableCardGridRow>[]>;
|
|
5160
5097
|
protected readonly gridApi: _angular_core.WritableSignal<MtGridApi<TableCardGridRow> | null>;
|
|
5161
5098
|
private readonly gridHost;
|
|
@@ -5176,13 +5113,6 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
5176
5113
|
* Build flat (non-grouped) table
|
|
5177
5114
|
*/
|
|
5178
5115
|
private buildFlatTable;
|
|
5179
|
-
/**
|
|
5180
|
-
* Apply the configured default sort (tableFormat.sortConfig) on load. The
|
|
5181
|
-
* configured column is a selected-property key; match it against the built
|
|
5182
|
-
* columns (by keyPure / key prefix, case-insensitive) and sort the flat rows.
|
|
5183
|
-
* No-op when no sortConfig.column is set.
|
|
5184
|
-
*/
|
|
5185
|
-
private applyDefaultSort;
|
|
5186
5116
|
/**
|
|
5187
5117
|
* Build grouped table
|
|
5188
5118
|
*/
|
|
@@ -5246,6 +5176,14 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
5246
5176
|
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>;
|
|
5247
5177
|
}
|
|
5248
5178
|
|
|
5179
|
+
/**
|
|
5180
|
+
* The table card renders the data grid, so the package's main entry never imports it
|
|
5181
|
+
* statically: `DashboardItem` defers it, and other callers load it with this function.
|
|
5182
|
+
* A static import here would put the whole grid in every host bundle that imports
|
|
5183
|
+
* `@masterteam/dashboard-builder`.
|
|
5184
|
+
*/
|
|
5185
|
+
declare const loadTableCard: () => Promise<typeof _masterteam_dashboard_builder.TableCardComponent>;
|
|
5186
|
+
|
|
5249
5187
|
interface TopbarBreadcrumbItem {
|
|
5250
5188
|
label: string;
|
|
5251
5189
|
link: string;
|
|
@@ -5281,7 +5219,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
|
|
|
5281
5219
|
readonly iconColor: _angular_core.Signal<any>;
|
|
5282
5220
|
readonly iconBackgroundColor: _angular_core.Signal<any>;
|
|
5283
5221
|
readonly borderColor: _angular_core.Signal<any>;
|
|
5284
|
-
readonly borderWidth: _angular_core.Signal<
|
|
5222
|
+
readonly borderWidth: _angular_core.Signal<0 | 1>;
|
|
5285
5223
|
readonly padding: _angular_core.Signal<number>;
|
|
5286
5224
|
readonly titleFontSize: _angular_core.Signal<number>;
|
|
5287
5225
|
readonly subtitleFontSize: _angular_core.Signal<number>;
|
|
@@ -5995,23 +5933,8 @@ declare class LevelCardHandler {
|
|
|
5995
5933
|
|
|
5996
5934
|
declare class MapChartHandler {
|
|
5997
5935
|
private readonly storeService;
|
|
5998
|
-
|
|
5999
|
-
/**
|
|
6000
|
-
* handleMapChart - for ECharts geo map
|
|
6001
|
-
* Returns ECharts option directly
|
|
6002
|
-
*/
|
|
5936
|
+
/** Compatibility with saved configurations that use the older handler key. */
|
|
6003
5937
|
handleMapChart(dataResponse: any, config: ItemConfig): any;
|
|
6004
|
-
private normalizeLegendPosition;
|
|
6005
|
-
private getLegendLayout;
|
|
6006
|
-
/**
|
|
6007
|
-
* The group a record is plotted under.
|
|
6008
|
-
*
|
|
6009
|
-
* The grouping property is optional: with none configured every record
|
|
6010
|
-
* lands in one unnamed group, which the map draws without a legend entry.
|
|
6011
|
-
* A record with no grouping value is grouped as "Unknown" rather than
|
|
6012
|
-
* dropped — the backend omits null properties from the row, so a missing
|
|
6013
|
-
* key means "no value", not "not requested".
|
|
6014
|
-
*/
|
|
6015
5938
|
private resolveGroupName;
|
|
6016
5939
|
/**
|
|
6017
5940
|
* Status values arrive as `{ display, en, ar, color }`, users as
|
|
@@ -8665,7 +8588,7 @@ declare class DataSourceSettings {
|
|
|
8665
8588
|
* Active tab within the selection cycle: Selection (pick modules) · Source
|
|
8666
8589
|
* Links (joins, only with >1 selection) · Query (fields).
|
|
8667
8590
|
*/
|
|
8668
|
-
readonly activeSection: _angular_core.WritableSignal<"
|
|
8591
|
+
readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
|
|
8669
8592
|
/** Selection mode inside the selection tab (informative authoring). */
|
|
8670
8593
|
readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
|
|
8671
8594
|
readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
|
|
@@ -9666,7 +9589,7 @@ interface MapRow {
|
|
|
9666
9589
|
* boolean). Controlled: `value` in, `valueChange` out.
|
|
9667
9590
|
*/
|
|
9668
9591
|
declare class KeyValueMapField {
|
|
9669
|
-
readonly value: _angular_core.InputSignal<
|
|
9592
|
+
readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
|
|
9670
9593
|
readonly keys: _angular_core.InputSignal<ControlOption[]>;
|
|
9671
9594
|
readonly valueFields: _angular_core.InputSignal<ControlField[]>;
|
|
9672
9595
|
/** When true, store/read a positional array aligned to `keys` order. */
|
|
@@ -9675,7 +9598,7 @@ declare class KeyValueMapField {
|
|
|
9675
9598
|
/** Properties Card: edit localized labels in the same positional row. */
|
|
9676
9599
|
readonly integratedLabels: _angular_core.InputSignal<boolean>;
|
|
9677
9600
|
readonly labelOverrides: _angular_core.InputSignal<Record<string, unknown>>;
|
|
9678
|
-
readonly valueChange: _angular_core.OutputEmitterRef<
|
|
9601
|
+
readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
|
|
9679
9602
|
readonly labelOverridesChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
9680
9603
|
readonly rows: WritableSignal<MapRow[]>;
|
|
9681
9604
|
readonly expandedRows: WritableSignal<ReadonlySet<string>>;
|
|
@@ -9772,5 +9695,5 @@ declare class GetChartActionsPipe implements PipeTransform {
|
|
|
9772
9695
|
*/
|
|
9773
9696
|
declare function cloneDeep<T>(obj: T): T;
|
|
9774
9697
|
|
|
9775
|
-
export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CUSTOM_COLOR_OPTION, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, ComparisonChartHandler, DASHBOARD_ITEM_VISIBILITY, 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,
|
|
9776
|
-
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, DashboardItemVisibility, 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,
|
|
9698
|
+
export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CUSTOM_COLOR_OPTION, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, ComparisonChartHandler, DASHBOARD_ITEM_VISIBILITY, 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_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, applyBuiltInConditions, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, createAxisFormatter, createTooltipFormatter, datasourceToUi, dateDisplayRawValue, 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, loadImmediately, loadTableCard, mergePropertyAppearance, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, observeNearViewport, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, resolveEntityCheckbox, resolveEntityUserPhoto, resolveMapRegion, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
|
|
9699
|
+
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, DashboardItemVisibility, 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, MapRegion, MapViewConfig, MapViewGroup, MapViewPoint, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, ParseResult, PersistedItemConfig, PhaseGateStepperData, PhaseGateStepperStep, 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 };
|