@masterteam/dashboard-builder 0.0.46 → 0.0.48
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/assets/dashboard-builder.css +1 -1
- package/assets/i18n/ar.json +1220 -1175
- package/assets/i18n/en.json +1220 -1175
- package/fesm2022/masterteam-dashboard-builder-dashboard-dialog.component-DJqN3Sel.mjs +123 -0
- package/fesm2022/masterteam-dashboard-builder-dashboard-dialog.component-DJqN3Sel.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-78XZqtjp.mjs +43881 -0
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-78XZqtjp.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -37324
- package/fesm2022/masterteam-dashboard-builder.mjs.map +1 -1
- package/package.json +3 -3
- package/types/masterteam-dashboard-builder.d.ts +1037 -170
- package/fesm2022/masterteam-dashboard-builder-dashboard-dialog.component-Buqusv4P.mjs +0 -639
- package/fesm2022/masterteam-dashboard-builder-dashboard-dialog.component-Buqusv4P.mjs.map +0 -1
|
@@ -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
|
-
*
|
|
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
|
*/
|
|
@@ -511,6 +557,8 @@ type ItemCardMenuAction = {
|
|
|
511
557
|
};
|
|
512
558
|
declare class ItemCardMenuComponent {
|
|
513
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. */
|
|
514
562
|
private readonly filtersActionVisible;
|
|
515
563
|
/** Whether to allow duplicate (excluded for layout/group widgets). */
|
|
516
564
|
readonly allowDuplicate: _angular_core.InputSignal<boolean>;
|
|
@@ -724,6 +772,18 @@ declare function moduleIdFromSelector(selector: string | null | undefined): stri
|
|
|
724
772
|
* source1LinkProperty, source2LinkProperty, isFilterLinkage, isLeftJoin }
|
|
725
773
|
*/
|
|
726
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;
|
|
727
787
|
/**
|
|
728
788
|
* Normalize a config that may be old (moduleType/moduleId, fuctionName,
|
|
729
789
|
* root repeaterDashboardId) into canonical new shape, without losing data.
|
|
@@ -928,6 +988,7 @@ interface LabelLegendFormatUi {
|
|
|
928
988
|
legendShow: boolean;
|
|
929
989
|
legendPosition: 'top' | 'right' | 'bottom' | 'left';
|
|
930
990
|
legendIconType: 'circle' | 'rect' | 'roundRect' | 'triangle' | 'diamond';
|
|
991
|
+
legendOverrideOrder: string[];
|
|
931
992
|
labelShow: boolean;
|
|
932
993
|
labelPosition: 'inside' | 'outside' | 'top';
|
|
933
994
|
formatType: 'number' | 'currency' | 'percentage';
|
|
@@ -1113,8 +1174,15 @@ declare function formatForEditor(value: unknown): string;
|
|
|
1113
1174
|
* to the schema affects rendering through the existing pipeline.
|
|
1114
1175
|
*/
|
|
1115
1176
|
|
|
1116
|
-
/**
|
|
1117
|
-
|
|
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';
|
|
1118
1186
|
/** Where the control lives in the popover. */
|
|
1119
1187
|
type ControlSectionScope = 'simple' | 'advanced';
|
|
1120
1188
|
/** Domain bucket — used by the popover to group controls and validation. */
|
|
@@ -1176,6 +1244,38 @@ interface ControlField {
|
|
|
1176
1244
|
visibleWhen?: ControlVisiblePredicate;
|
|
1177
1245
|
/** Optional placeholder text. */
|
|
1178
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[];
|
|
1274
|
+
/**
|
|
1275
|
+
* For `keyValueMap`: persist a POSITIONAL array aligned to the key order
|
|
1276
|
+
* (e.g. `propsConfigAsIndex`) instead of a `{ key: value }` map.
|
|
1277
|
+
*/
|
|
1278
|
+
asArray?: boolean;
|
|
1179
1279
|
}
|
|
1180
1280
|
/** A logical group of fields in the popover. */
|
|
1181
1281
|
interface ControlSection {
|
|
@@ -2189,7 +2289,6 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2189
2289
|
/** Reference to chart settings drawer */
|
|
2190
2290
|
private chartSettingsRef;
|
|
2191
2291
|
readonly languageCode: _angular_core.Signal<string>;
|
|
2192
|
-
readonly direction: _angular_core.Signal<"rtl" | "ltr">;
|
|
2193
2292
|
readonly chartActionsContext: ChartActionsContext;
|
|
2194
2293
|
readonly options: GridsterConfig;
|
|
2195
2294
|
private subscription;
|
|
@@ -2262,7 +2361,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2262
2361
|
* `ItemCardMenuAction` and the host routes each id to one obvious owner:
|
|
2263
2362
|
*
|
|
2264
2363
|
* - configure-datasource → ManageItem (advanced editor)
|
|
2265
|
-
* - style →
|
|
2364
|
+
* - style → StyleStudioDrawer (schema-driven style editor)
|
|
2266
2365
|
* - filters → ChartFilterDrawer
|
|
2267
2366
|
* - edit-title → multilingual title editor
|
|
2268
2367
|
* - duplicate / delete → host helpers
|
|
@@ -2284,6 +2383,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2284
2383
|
/** Whether the kebab menu should appear on this chart card. */
|
|
2285
2384
|
showContextToolbar(chart: DashboardChartItem): boolean;
|
|
2286
2385
|
isPropertiesListChart(chart: DashboardChartItem): boolean;
|
|
2386
|
+
isTopbarChart(chart: DashboardChartItem): boolean;
|
|
2287
2387
|
editItem(chart: DashboardChartItem, parentItem?: DashboardChartItem, defaultTab?: 'general' | 'dataSource' | 'actions'): void;
|
|
2288
2388
|
deleteItem(chart: DashboardChartItem): void;
|
|
2289
2389
|
/**
|
|
@@ -2332,6 +2432,10 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2332
2432
|
private newChartWithSize;
|
|
2333
2433
|
openBreadcrumb(item: DashboardChartItem): void;
|
|
2334
2434
|
openManageFilter(): void;
|
|
2435
|
+
private resolveManageFilterSelectionContext;
|
|
2436
|
+
private deriveWorkspaceFromSelections;
|
|
2437
|
+
private deriveWorkspaceFromLevelSelector;
|
|
2438
|
+
private firstSelector;
|
|
2335
2439
|
private applyBulkSelectionFilters;
|
|
2336
2440
|
private applyBulkSelectionFiltersToItem;
|
|
2337
2441
|
private applyBulkPropertyTranslations;
|
|
@@ -2377,6 +2481,75 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2377
2481
|
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>;
|
|
2378
2482
|
}
|
|
2379
2483
|
|
|
2484
|
+
/**
|
|
2485
|
+
* Store Service
|
|
2486
|
+
*
|
|
2487
|
+
* Simple reactive store for dashboard builder state management
|
|
2488
|
+
*/
|
|
2489
|
+
declare class DashboardStoreService {
|
|
2490
|
+
/** Query parameters */
|
|
2491
|
+
private queryParamsSignal;
|
|
2492
|
+
readonly queryParams: _angular_core.Signal<Record<string, any>>;
|
|
2493
|
+
/** Stop actions on cards flag */
|
|
2494
|
+
private stopActionsSignal;
|
|
2495
|
+
readonly stopActions: _angular_core.Signal<boolean>;
|
|
2496
|
+
/** Dynamic key-value store */
|
|
2497
|
+
private dynamicStore;
|
|
2498
|
+
/** Language code */
|
|
2499
|
+
readonly languageCode: _angular_core.WritableSignal<string>;
|
|
2500
|
+
/** Direction */
|
|
2501
|
+
readonly direction: _angular_core.WritableSignal<"rtl" | "ltr">;
|
|
2502
|
+
/** Inside Report Viewer flag - controls text truncation in charts */
|
|
2503
|
+
private insideReportViewerSignal;
|
|
2504
|
+
readonly insideReportViewer: _angular_core.Signal<boolean>;
|
|
2505
|
+
/** Reload current page subject */
|
|
2506
|
+
private reloadCurrentPageSubject;
|
|
2507
|
+
readonly reloadCurrentPage$: rxjs.Observable<void>;
|
|
2508
|
+
/**
|
|
2509
|
+
* Trigger reload of current page
|
|
2510
|
+
*/
|
|
2511
|
+
triggerReloadCurrentPage(): void;
|
|
2512
|
+
/**
|
|
2513
|
+
* Update query parameters
|
|
2514
|
+
*/
|
|
2515
|
+
updateQueryParams(params: Record<string, any>): void;
|
|
2516
|
+
/**
|
|
2517
|
+
* Update stop actions flag
|
|
2518
|
+
*/
|
|
2519
|
+
updateStopActions(value: boolean): void;
|
|
2520
|
+
/**
|
|
2521
|
+
* Set inside report viewer mode
|
|
2522
|
+
* When true, axis labels won't be truncated and custom legends may be skipped
|
|
2523
|
+
*/
|
|
2524
|
+
setInsideReportViewer(value: boolean): void;
|
|
2525
|
+
/**
|
|
2526
|
+
* Update dynamic key in store
|
|
2527
|
+
*/
|
|
2528
|
+
updateDynamicKey(key: string, value: any): void;
|
|
2529
|
+
/**
|
|
2530
|
+
* Get dynamic key from store
|
|
2531
|
+
*/
|
|
2532
|
+
getDynamicKey<T = any>(key: string): T | undefined;
|
|
2533
|
+
/**
|
|
2534
|
+
* Get computed value from dynamic store
|
|
2535
|
+
*/
|
|
2536
|
+
selectDynamicKey<T = any>(key: string): _angular_core.Signal<T | undefined>;
|
|
2537
|
+
/**
|
|
2538
|
+
* Get query params as a plain object
|
|
2539
|
+
*/
|
|
2540
|
+
getQueryParams(): Record<string, any>;
|
|
2541
|
+
/**
|
|
2542
|
+
* Get extra filters for a specific dashboard action
|
|
2543
|
+
*/
|
|
2544
|
+
getExtraFilterForCurrentAction(dashboardId: string): Record<string, any>;
|
|
2545
|
+
/**
|
|
2546
|
+
* Reset store to initial state
|
|
2547
|
+
*/
|
|
2548
|
+
reset(): void;
|
|
2549
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardStoreService, never>;
|
|
2550
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardStoreService>;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2380
2553
|
/**
|
|
2381
2554
|
* Dashboard Viewer Component
|
|
2382
2555
|
*
|
|
@@ -2397,6 +2570,9 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2397
2570
|
private itemStoreService;
|
|
2398
2571
|
private limitedHttp;
|
|
2399
2572
|
private route;
|
|
2573
|
+
private router;
|
|
2574
|
+
/** Expose the store so the template can seed the filter sidebar. */
|
|
2575
|
+
protected readonly store: DashboardStoreService;
|
|
2400
2576
|
private get repeaterUrlConfig();
|
|
2401
2577
|
/** Whether to wrap content in mt-page component */
|
|
2402
2578
|
readonly isPage: _angular_core.InputSignal<boolean>;
|
|
@@ -2453,7 +2629,22 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2453
2629
|
ngOnInit(): void;
|
|
2454
2630
|
ngOnDestroy(): void;
|
|
2455
2631
|
private setupSubscriptions;
|
|
2632
|
+
/**
|
|
2633
|
+
* Apply page-filter selections. Preferred path: write them onto the URL so
|
|
2634
|
+
* the `route.queryParams` subscription funnels them into the store and every
|
|
2635
|
+
* chart re-requests (the existing, correct pipeline). With no route (preview)
|
|
2636
|
+
* fall back to updating the store + refreshing directly.
|
|
2637
|
+
*/
|
|
2638
|
+
onPageFilterChange(values: Record<string, any>): void;
|
|
2456
2639
|
loadPage(id: string | number): void;
|
|
2640
|
+
/**
|
|
2641
|
+
* Normalize a page's filters into a FLAT `FilterField[]`. The backend stores
|
|
2642
|
+
* `dashboardConfig.filters` as a JSON string OR an array; older code wrapped
|
|
2643
|
+
* an already-array value in another array (`[[...]]`), which broke the
|
|
2644
|
+
* sidebar and surfaced an empty "Filters" tab in the value field. Flatten +
|
|
2645
|
+
* drop empties so consumers always receive real filter fields.
|
|
2646
|
+
*/
|
|
2647
|
+
private normalizeFilters;
|
|
2457
2648
|
private applyDashboardData;
|
|
2458
2649
|
reloadPage(): void;
|
|
2459
2650
|
/**
|
|
@@ -2665,7 +2856,7 @@ type RequestType = 'level' | 'levellog' | 'log' | 'custom' | 'snapShot' | 'level
|
|
|
2665
2856
|
/**
|
|
2666
2857
|
* Chart type to component mapping
|
|
2667
2858
|
*/
|
|
2668
|
-
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';
|
|
2859
|
+
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';
|
|
2669
2860
|
/**
|
|
2670
2861
|
* EChart series data item
|
|
2671
2862
|
*/
|
|
@@ -2919,6 +3110,7 @@ declare class DashboardItem implements OnInit, OnDestroy {
|
|
|
2919
3110
|
private initialized;
|
|
2920
3111
|
/** Track current dashboardId to detect changes */
|
|
2921
3112
|
private currentDashboardId;
|
|
3113
|
+
private isMissingQueryValue;
|
|
2922
3114
|
constructor();
|
|
2923
3115
|
ngOnInit(): void;
|
|
2924
3116
|
/**
|
|
@@ -3176,6 +3368,8 @@ interface FilterSelectionItem {
|
|
|
3176
3368
|
interface FilterFieldConfiguration {
|
|
3177
3369
|
payload?: {
|
|
3178
3370
|
dashboardId: number;
|
|
3371
|
+
workspaceId?: string | number | null;
|
|
3372
|
+
workspace?: string | null;
|
|
3179
3373
|
selection: FilterSelectionItem[];
|
|
3180
3374
|
chartType: string;
|
|
3181
3375
|
query: {
|
|
@@ -3234,6 +3428,13 @@ interface DynamicFilterOption {
|
|
|
3234
3428
|
declare class DynamicFiltersComponent implements OnInit {
|
|
3235
3429
|
private readonly storeService;
|
|
3236
3430
|
private readonly transloco;
|
|
3431
|
+
private readonly dashboardService;
|
|
3432
|
+
private readonly filterUtils;
|
|
3433
|
+
private readonly destroyRef;
|
|
3434
|
+
/** Loaded option lists per field key (lookup/status/phaseGate/dropdown). */
|
|
3435
|
+
private readonly optionsByKey;
|
|
3436
|
+
/** Field keys whose options have already been requested (avoid refetch). */
|
|
3437
|
+
private readonly loadedOptionKeys;
|
|
3237
3438
|
/** Dynamic filter fields configuration */
|
|
3238
3439
|
readonly fields: _angular_core.InputSignal<DynamicFilterField[]>;
|
|
3239
3440
|
/** Dashboard ID for store updates */
|
|
@@ -3263,6 +3464,19 @@ declare class DynamicFiltersComponent implements OnInit {
|
|
|
3263
3464
|
labelEn: string;
|
|
3264
3465
|
labelAr: string;
|
|
3265
3466
|
}[];
|
|
3467
|
+
constructor();
|
|
3468
|
+
/** Options to show for a field: loaded set, else any preloaded on config. */
|
|
3469
|
+
optionsFor(field: DynamicFilterField): any[];
|
|
3470
|
+
/**
|
|
3471
|
+
* Load a field's options by type (lookup/status/phaseGate from client
|
|
3472
|
+
* settings; dropdownTVService by running its selection). Year/month/quarter
|
|
3473
|
+
* use the built-in option lists; date/user/checkbox need none.
|
|
3474
|
+
*/
|
|
3475
|
+
private loadOptions;
|
|
3476
|
+
/** Resolve a dropdown-by-selection field's distinct values via its query. */
|
|
3477
|
+
private loadDropdownTvServiceOptions;
|
|
3478
|
+
private mapTvServiceRows;
|
|
3479
|
+
private setOptions;
|
|
3266
3480
|
ngOnInit(): void;
|
|
3267
3481
|
/**
|
|
3268
3482
|
* Get localized field label
|
|
@@ -3327,9 +3541,44 @@ declare class CardInfoComponent {
|
|
|
3327
3541
|
* - 'splitter' — handler returned `{ positive, negative }`.
|
|
3328
3542
|
* - 'timeline' — handler returned `{ calendarOptions, ... }`.
|
|
3329
3543
|
* - 'phaseGateStepper' — handler returned `{ steps, currentIndex }`.
|
|
3544
|
+
* - 'performanceGauge' — handler returned `{ performance, status, statuses }`.
|
|
3330
3545
|
* - 'raw' — fallback to ECharts (we still try to render).
|
|
3331
3546
|
*/
|
|
3332
|
-
type CardViewMode = 'echart' | 'splitter' | 'timeline' | 'phaseGateStepper' | 'raw';
|
|
3547
|
+
type CardViewMode = 'echart' | 'splitter' | 'timeline' | 'phaseGateStepper' | 'performanceGauge' | 'raw';
|
|
3548
|
+
interface PerformanceGaugeStatus {
|
|
3549
|
+
key?: string;
|
|
3550
|
+
name?: string | Record<string, string>;
|
|
3551
|
+
display?: string | Record<string, string>;
|
|
3552
|
+
color?: string;
|
|
3553
|
+
from?: number;
|
|
3554
|
+
to?: number;
|
|
3555
|
+
[key: string]: any;
|
|
3556
|
+
}
|
|
3557
|
+
interface PerformanceGaugeSegment {
|
|
3558
|
+
key: string;
|
|
3559
|
+
label: string;
|
|
3560
|
+
color: string;
|
|
3561
|
+
dashArray: string;
|
|
3562
|
+
dashOffset: number;
|
|
3563
|
+
opacity: number;
|
|
3564
|
+
labelX: number;
|
|
3565
|
+
labelY: number;
|
|
3566
|
+
}
|
|
3567
|
+
interface PerformanceGaugeViewModel {
|
|
3568
|
+
value: number;
|
|
3569
|
+
display: string;
|
|
3570
|
+
label: string;
|
|
3571
|
+
status: PerformanceGaugeStatus;
|
|
3572
|
+
statuses: PerformanceGaugeStatus[];
|
|
3573
|
+
min: number;
|
|
3574
|
+
max: number;
|
|
3575
|
+
percent: number;
|
|
3576
|
+
scalePercent: number;
|
|
3577
|
+
marker: {
|
|
3578
|
+
x: number;
|
|
3579
|
+
y: number;
|
|
3580
|
+
};
|
|
3581
|
+
}
|
|
3333
3582
|
declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
3334
3583
|
private readonly storeService;
|
|
3335
3584
|
private readonly dashboardStore;
|
|
@@ -3371,7 +3620,9 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3371
3620
|
} | undefined>;
|
|
3372
3621
|
/** Static filter configuration */
|
|
3373
3622
|
readonly staticFilterConfig: _angular_core.Signal<StaticFilterConfig | null>;
|
|
3374
|
-
/** Dynamic filter fields
|
|
3623
|
+
/** Dynamic filter fields. Reads the current `dynamicFilters`, falling back to
|
|
3624
|
+
* the legacy p+4 location `extraFilters.dynamicFilters` so old charts still
|
|
3625
|
+
* render their interactive filters. */
|
|
3375
3626
|
readonly dynamicFilterFields: _angular_core.Signal<DynamicFilterField[]>;
|
|
3376
3627
|
/** Show static filters */
|
|
3377
3628
|
readonly showStaticFilters: _angular_core.Signal<boolean | undefined>;
|
|
@@ -3382,6 +3633,8 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3382
3633
|
* Falls back to 'echart' when not a special widget.
|
|
3383
3634
|
*/
|
|
3384
3635
|
readonly componentViewMode: _angular_core.Signal<CardViewMode>;
|
|
3636
|
+
readonly performanceGauge: _angular_core.Signal<PerformanceGaugeViewModel>;
|
|
3637
|
+
readonly performanceGaugeSegments: _angular_core.Signal<PerformanceGaugeSegment[]>;
|
|
3385
3638
|
/**
|
|
3386
3639
|
* Whether the chart needs configuration (no selection, no customApi, and
|
|
3387
3640
|
* not a layout/special-endpoint widget).
|
|
@@ -3400,7 +3653,9 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3400
3653
|
readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
|
|
3401
3654
|
readonly timelineHeaderTextColor: _angular_core.Signal<string | null>;
|
|
3402
3655
|
readonly timelineMode: _angular_core.WritableSignal<TimelineScaleMode>;
|
|
3656
|
+
readonly timelineExtraPropertyKeys: _angular_core.Signal<string[]>;
|
|
3403
3657
|
readonly timelineColumns: _angular_core.Signal<TimelineColumnConfig<unknown, unknown>[]>;
|
|
3658
|
+
readonly timelineEntityColumns: _angular_core.Signal<TimelineColumnConfig<unknown, unknown>[]>;
|
|
3404
3659
|
readonly timelineGanttMapping: TimelineGanttMapping<any>;
|
|
3405
3660
|
readonly hasPhaseGateData: _angular_core.Signal<boolean>;
|
|
3406
3661
|
readonly phaseGateSteps: _angular_core.Signal<any[]>;
|
|
@@ -3410,7 +3665,30 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3410
3665
|
ngOnInit(): void;
|
|
3411
3666
|
ngOnDestroy(): void;
|
|
3412
3667
|
onChartClick(event: any): void;
|
|
3668
|
+
hasActions(): boolean;
|
|
3669
|
+
onPerformanceGaugeClick(event: MouseEvent): void;
|
|
3670
|
+
performanceGaugeStatusName(): string;
|
|
3671
|
+
private resolvePerformanceGaugePerformance;
|
|
3672
|
+
private resolvePerformanceGaugeStatuses;
|
|
3673
|
+
private resolvePerformanceGaugeStatus;
|
|
3674
|
+
private matchPerformanceGaugeStatus;
|
|
3675
|
+
private getFallbackPerformanceGaugeStatus;
|
|
3676
|
+
private resolvePerformanceGaugeScale;
|
|
3677
|
+
private resolvePerformanceGaugeLabel;
|
|
3678
|
+
private resolvePerformanceGaugeScalePercent;
|
|
3679
|
+
private resolvePerformanceGaugeStatusColor;
|
|
3680
|
+
private toPerformanceGaugePercent;
|
|
3681
|
+
private getPerformanceGaugePoint;
|
|
3682
|
+
private normalizePerformanceGaugeKey;
|
|
3683
|
+
private toLocalizedPerformanceGaugeText;
|
|
3684
|
+
private formatPerformanceGaugeValue;
|
|
3685
|
+
private formatCompactNumber;
|
|
3686
|
+
private toFiniteNumber;
|
|
3687
|
+
private clamp;
|
|
3688
|
+
onTimelineTitleClick(resource: any, event: MouseEvent): void;
|
|
3413
3689
|
onTimelineItemClick(resource: any): void;
|
|
3690
|
+
private executeTimelineAction;
|
|
3691
|
+
timelineCollapseIcon(isCollapsed: boolean): string;
|
|
3414
3692
|
onHeaderClick(): void;
|
|
3415
3693
|
onConfigureClick(event: Event): void;
|
|
3416
3694
|
/** Format an ISO date for inline timeline display. */
|
|
@@ -3418,8 +3696,25 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3418
3696
|
private resolveTimelineMode;
|
|
3419
3697
|
private getTimelineEventForResource;
|
|
3420
3698
|
private resolveTimelineProgress;
|
|
3699
|
+
private hasTimelineProgressProperty;
|
|
3421
3700
|
private resolveTimelineColor;
|
|
3701
|
+
timelinePopoverEntities(resourceOrEvent: any): EntityData$1[];
|
|
3702
|
+
timelineColumnEntityData(value: any): EntityData$1;
|
|
3703
|
+
private resolveTimelineExtraPropertyEntity;
|
|
3704
|
+
private resolveTimelineExtraColumnHeader;
|
|
3705
|
+
private findTimelineExtraProperty;
|
|
3706
|
+
private toTimelinePopoverEntityData;
|
|
3707
|
+
private resolveTimelineEntityName;
|
|
3708
|
+
private resolveTimelineEntityValue;
|
|
3709
|
+
private mapTimelineEntityViewType;
|
|
3710
|
+
private resolveTimelineStatusEntity;
|
|
3422
3711
|
private resolveTimelineStatus;
|
|
3712
|
+
private toTimelinePropertyKey;
|
|
3713
|
+
private toTimelineExtraColumnKey;
|
|
3714
|
+
private isTimelineStatusKey;
|
|
3715
|
+
private isTimelineEntityValue;
|
|
3716
|
+
private normalizeTimelineLookupKey;
|
|
3717
|
+
private humanizeTimelinePropertyKey;
|
|
3423
3718
|
private toDisplayText;
|
|
3424
3719
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartCardComponent, never>;
|
|
3425
3720
|
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>;
|
|
@@ -3477,7 +3772,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
3477
3772
|
readonly showCustomLegend: _angular_core.Signal<boolean>;
|
|
3478
3773
|
readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
|
|
3479
3774
|
/** Custom HTML legend placement from the configured legend position. */
|
|
3480
|
-
readonly customLegendPosition: _angular_core.Signal<"
|
|
3775
|
+
readonly customLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
3481
3776
|
constructor();
|
|
3482
3777
|
ngOnInit(): Promise<void>;
|
|
3483
3778
|
ngAfterViewInit(): void;
|
|
@@ -3604,11 +3899,13 @@ declare class EntityInfoComponent {
|
|
|
3604
3899
|
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>;
|
|
3605
3900
|
}
|
|
3606
3901
|
|
|
3607
|
-
interface
|
|
3902
|
+
interface PropertyRuntimeConfig {
|
|
3608
3903
|
width?: string;
|
|
3609
3904
|
hidden?: boolean;
|
|
3610
3905
|
border?: boolean | string[];
|
|
3906
|
+
colorAsProperty?: string;
|
|
3611
3907
|
}
|
|
3908
|
+
|
|
3612
3909
|
interface DashboardCardProperty extends EntityData$1 {
|
|
3613
3910
|
label?: string | Record<string, string>;
|
|
3614
3911
|
}
|
|
@@ -3654,7 +3951,8 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
|
|
|
3654
3951
|
readonly galleryMode: _angular_core.Signal<boolean>;
|
|
3655
3952
|
readonly currentTabItems: _angular_core.Signal<DashboardTabItem[]>;
|
|
3656
3953
|
readonly selectedProperties: _angular_core.Signal<string[]>;
|
|
3657
|
-
readonly propsConfigAsIndex: _angular_core.Signal<
|
|
3954
|
+
readonly propsConfigAsIndex: _angular_core.Signal<PropertyRuntimeConfig[]>;
|
|
3955
|
+
readonly legacyHiddenPropertyKeys: _angular_core.Signal<string[]>;
|
|
3658
3956
|
readonly tabOptions: _angular_core.Signal<DashboardCardTabOption[]>;
|
|
3659
3957
|
readonly showTabs: _angular_core.Signal<boolean>;
|
|
3660
3958
|
readonly currentTabCards: _angular_core.Signal<DashboardCardViewModel[]>;
|
|
@@ -3662,7 +3960,6 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
|
|
|
3662
3960
|
ngOnInit(): void;
|
|
3663
3961
|
ngOnDestroy(): void;
|
|
3664
3962
|
onCardClick(card: DashboardCardData): void;
|
|
3665
|
-
private normalizePropertyKey;
|
|
3666
3963
|
private clampEntitySize;
|
|
3667
3964
|
private resolveEntitySize;
|
|
3668
3965
|
private resolveShowBorder;
|
|
@@ -3702,6 +3999,7 @@ declare class EntityPreviewCardComponent implements OnInit, OnDestroy {
|
|
|
3702
3999
|
private clampEntitySize;
|
|
3703
4000
|
private resolveEntitySize;
|
|
3704
4001
|
private resolveShowBorder;
|
|
4002
|
+
private readLegacyHiddenPropertyKeys;
|
|
3705
4003
|
private mapViewType;
|
|
3706
4004
|
private resolveEntityName;
|
|
3707
4005
|
private readLocalizedText;
|
|
@@ -3794,6 +4092,42 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
|
|
|
3794
4092
|
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>;
|
|
3795
4093
|
}
|
|
3796
4094
|
|
|
4095
|
+
interface ProgressUpdateStatus {
|
|
4096
|
+
created: string;
|
|
4097
|
+
createdBy: any;
|
|
4098
|
+
previousActivities: string;
|
|
4099
|
+
nextActivities: string;
|
|
4100
|
+
}
|
|
4101
|
+
declare class LastHistoryLevelCardComponent implements OnInit, OnDestroy {
|
|
4102
|
+
private readonly itemStore;
|
|
4103
|
+
private readonly dashboardStore;
|
|
4104
|
+
private readonly subscription;
|
|
4105
|
+
readonly dashboardId: _angular_core.InputSignal<string | number | null>;
|
|
4106
|
+
readonly inGroup: _angular_core.InputSignal<boolean>;
|
|
4107
|
+
readonly onAction: _angular_core.OutputEmitterRef<{
|
|
4108
|
+
type: string;
|
|
4109
|
+
data: any;
|
|
4110
|
+
}>;
|
|
4111
|
+
readonly configurationItem: _angular_core.WritableSignal<ItemConfig | null>;
|
|
4112
|
+
readonly dataHandled: _angular_core.WritableSignal<any>;
|
|
4113
|
+
readonly title: _angular_core.Signal<string>;
|
|
4114
|
+
readonly status: _angular_core.Signal<ProgressUpdateStatus>;
|
|
4115
|
+
readonly hasProgressUpdate: _angular_core.Signal<boolean>;
|
|
4116
|
+
readonly createdByName: _angular_core.Signal<any>;
|
|
4117
|
+
readonly showStaticFilters: _angular_core.Signal<any>;
|
|
4118
|
+
readonly showDynamicFilters: _angular_core.Signal<boolean>;
|
|
4119
|
+
readonly showTopEnd: _angular_core.Signal<any>;
|
|
4120
|
+
ngOnInit(): void;
|
|
4121
|
+
ngOnDestroy(): void;
|
|
4122
|
+
onHeaderClick(): void;
|
|
4123
|
+
private buildStatus;
|
|
4124
|
+
private findPropertyValue;
|
|
4125
|
+
private unwrapPropertyValue;
|
|
4126
|
+
private normalize;
|
|
4127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LastHistoryLevelCardComponent, never>;
|
|
4128
|
+
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>;
|
|
4129
|
+
}
|
|
4130
|
+
|
|
3797
4131
|
declare class ListStatisticCardComponent implements OnInit, OnDestroy {
|
|
3798
4132
|
private readonly storeService;
|
|
3799
4133
|
private readonly subscription;
|
|
@@ -4122,6 +4456,12 @@ declare class DashboardItemStoreService {
|
|
|
4122
4456
|
private storeUpdates$;
|
|
4123
4457
|
/** Localization data */
|
|
4124
4458
|
private localization;
|
|
4459
|
+
/**
|
|
4460
|
+
* Current UI language code (mirrors document direction), matching
|
|
4461
|
+
* DashboardStoreService.languageCode. Used by item renderers (e.g. chart-card)
|
|
4462
|
+
* to pick the localized display value.
|
|
4463
|
+
*/
|
|
4464
|
+
readonly languageCode: _angular_core.WritableSignal<string>;
|
|
4125
4465
|
/** Current action data per dashboard item */
|
|
4126
4466
|
private actionData;
|
|
4127
4467
|
/**
|
|
@@ -4421,6 +4761,12 @@ declare class GaugeChartHandler {
|
|
|
4421
4761
|
* Returns ECharts config directly (exactly like old GaugeChartService)
|
|
4422
4762
|
*/
|
|
4423
4763
|
handleGaugeChart(dataResponse: any, config: ItemConfig): any;
|
|
4764
|
+
private normalizeGaugeValues;
|
|
4765
|
+
private flattenGaugeValues;
|
|
4766
|
+
private resolveGroupValueKey;
|
|
4767
|
+
private resolveExtraValueMeta;
|
|
4768
|
+
private findStatusOrLookupWrapper;
|
|
4769
|
+
private resolveDisplayText;
|
|
4424
4770
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaugeChartHandler, never>;
|
|
4425
4771
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GaugeChartHandler>;
|
|
4426
4772
|
}
|
|
@@ -4487,6 +4833,12 @@ declare class TimelineHandler {
|
|
|
4487
4833
|
* Format: { calendarOptions: {...}, ...data }
|
|
4488
4834
|
*/
|
|
4489
4835
|
handleTimelineV2MultiLevel(dataResponse: any, config: ItemConfig): any;
|
|
4836
|
+
private resolveProgressValue;
|
|
4837
|
+
private findActualPropertyKey;
|
|
4838
|
+
private readNumberValue;
|
|
4839
|
+
private resolveTimelineTimeFrame;
|
|
4840
|
+
private normalizeTimelineTimeFrame;
|
|
4841
|
+
private resolveTimelineInitialView;
|
|
4490
4842
|
/**
|
|
4491
4843
|
* Helper to handle value cases (name or value directly)
|
|
4492
4844
|
*/
|
|
@@ -4722,6 +5074,7 @@ declare class RingGaugeChartHandler {
|
|
|
4722
5074
|
* available and otherwise fall back to whatever the response provides.
|
|
4723
5075
|
*/
|
|
4724
5076
|
handleRingGaugeChartWithFormula(dataResponse: any, config: ItemConfig): any;
|
|
5077
|
+
private adaptBarsFormulaResponseToRingGauge;
|
|
4725
5078
|
/**
|
|
4726
5079
|
* Convert BarV2Chart formula response into the ring-gauge `{ values: [obj] }`
|
|
4727
5080
|
* shape expected by handleRingGaugeChart. Tolerant of multiple legacy
|
|
@@ -4769,6 +5122,10 @@ declare class SPlusChartHandler {
|
|
|
4769
5122
|
* id, `{type}_{id}` format inside selection.moduleId, or via selector.
|
|
4770
5123
|
*/
|
|
4771
5124
|
handlePerformanceGaugeCardSplus(data: any, config: ItemConfig): any;
|
|
5125
|
+
private extractPerformanceGaugeValue;
|
|
5126
|
+
private extractPerformanceGaugeValueFromItem;
|
|
5127
|
+
private resolvePerformanceGaugeStatusName;
|
|
5128
|
+
private toFiniteNumber;
|
|
4772
5129
|
/**
|
|
4773
5130
|
* Handle S+ Component Cards Chart - returns transformed array directly
|
|
4774
5131
|
* Matches old SplusChartsService.handleComponentsCardsChart return format
|
|
@@ -5021,7 +5378,7 @@ declare function getNestedData(key: string, item: any): any;
|
|
|
5021
5378
|
* Dynamic text replacement with placeholders
|
|
5022
5379
|
* Replaces {{key}} patterns with values from the data object
|
|
5023
5380
|
*/
|
|
5024
|
-
declare function dynamicTextReplace(text: string | null | undefined, data: Record<string, any> | null | undefined): string;
|
|
5381
|
+
declare function dynamicTextReplace(text: string | number | boolean | null | undefined, data: Record<string, any> | null | undefined): string;
|
|
5025
5382
|
/**
|
|
5026
5383
|
* Dynamic reorder array based on order config
|
|
5027
5384
|
* Supports both object syntax and individual parameters
|
|
@@ -5244,6 +5601,14 @@ declare class DashboardBuilderService {
|
|
|
5244
5601
|
}>;
|
|
5245
5602
|
/** Filters signal for reactive state */
|
|
5246
5603
|
readonly filters: _angular_core.WritableSignal<any[]>;
|
|
5604
|
+
/**
|
|
5605
|
+
* The runtime dashboard ActivatedRoute, published by the viewer. ActionService
|
|
5606
|
+
* is `providedIn: 'root'`, so its own injected ActivatedRoute resolves to the
|
|
5607
|
+
* ROOT route — useless for relative page-to-page navigation. The viewer sets
|
|
5608
|
+
* this to its own route so `navigateToPage` can resolve sibling dashboards.
|
|
5609
|
+
*/
|
|
5610
|
+
readonly activatedRoute: _angular_core.WritableSignal<ActivatedRoute | null>;
|
|
5611
|
+
setActivatedRoute(route: ActivatedRoute | null): void;
|
|
5247
5612
|
/** Chart for selected dialog */
|
|
5248
5613
|
readonly chartForSelectedDialog: _angular_core.WritableSignal<any>;
|
|
5249
5614
|
/** Dialog configs available to runtime action handling, keyed by dashboardId. */
|
|
@@ -5274,6 +5639,7 @@ declare class DashboardBuilderService {
|
|
|
5274
5639
|
readonly fixedSelections: _angular_core.WritableSignal<ISelection[]>;
|
|
5275
5640
|
/** API configuration */
|
|
5276
5641
|
private urlPrefix;
|
|
5642
|
+
private apiVersion;
|
|
5277
5643
|
/** Module tree requests are shared per services/workspace key. */
|
|
5278
5644
|
private readonly modulesTreeCache;
|
|
5279
5645
|
private readonly modulesTreeDataCache;
|
|
@@ -5281,6 +5647,14 @@ declare class DashboardBuilderService {
|
|
|
5281
5647
|
private gatewayContext;
|
|
5282
5648
|
constructor();
|
|
5283
5649
|
private loadConfig;
|
|
5650
|
+
/**
|
|
5651
|
+
* Run a `dropdownTVService` page-filter's configured selection as a TableView
|
|
5652
|
+
* to fetch the distinct option VALUES (mirrors the old
|
|
5653
|
+
* `POST /Dashboards/{v}chart?testFilter=true`). The caller resolves the
|
|
5654
|
+
* payload's placeholders first (via FilterUtilsService). Returns the raw
|
|
5655
|
+
* `data.values` rows; mapping to {key,display} is done by the caller.
|
|
5656
|
+
*/
|
|
5657
|
+
getFilterDropdownValues(payload: any): Observable<any[]>;
|
|
5284
5658
|
/**
|
|
5285
5659
|
* Emit process action
|
|
5286
5660
|
*/
|
|
@@ -5418,11 +5792,42 @@ declare class DashboardBuilderService {
|
|
|
5418
5792
|
* @param serviceName The service name
|
|
5419
5793
|
*/
|
|
5420
5794
|
getPublicEndpoints(serviceName: string): Observable<ApiResponse<any[]>>;
|
|
5795
|
+
/**
|
|
5796
|
+
* Property-items responses shared per `propertyKey:language`. The same key is
|
|
5797
|
+
* fetched by both SelectionConfiguration and FilterValueField on a single
|
|
5798
|
+
* property edit; this dedupes them to one request. Cached entries are evicted
|
|
5799
|
+
* on error so a transient failure is never cached permanently.
|
|
5800
|
+
*/
|
|
5801
|
+
private readonly propertyItemsCache;
|
|
5421
5802
|
/**
|
|
5422
5803
|
* Get property items for lookup/status properties
|
|
5423
5804
|
* GET /api/dashboards/builder/property-items/{propertyKey}?language=en
|
|
5424
5805
|
*/
|
|
5425
5806
|
getPropertyItems(propertyKey: string, language?: string): Observable<ApiResponse<PropertyItemsResponse>>;
|
|
5807
|
+
/**
|
|
5808
|
+
* Client settings cached by the host in `localStorage('pplus.settings')`.
|
|
5809
|
+
* The old dashboard sourced levels schema, statuses, phase gates and lookups
|
|
5810
|
+
* from here (not an API); the package mirrors that to populate the RUNTIME
|
|
5811
|
+
* page-filter sidebar's per-type option lists (lookup / status / phaseGate).
|
|
5812
|
+
* Returns null when absent (e.g. the showcase) so callers fall back to empty.
|
|
5813
|
+
*/
|
|
5814
|
+
private getClientSettings;
|
|
5815
|
+
/** Narrow a possibly-corrupt settings value to an array (never throws). */
|
|
5816
|
+
private asArray;
|
|
5817
|
+
/** Levels schema (used to resolve a level's phase gates). */
|
|
5818
|
+
getLevelsSchema(): any[];
|
|
5819
|
+
/** Available lookups for the page-filter "Lookup" dropdown. */
|
|
5820
|
+
getLookups(): any[];
|
|
5821
|
+
/** Items of a single lookup (the runtime options for a `lookup` filter). */
|
|
5822
|
+
getLookupItems(lookupId: string | number | null | undefined): any[];
|
|
5823
|
+
/**
|
|
5824
|
+
* Status values for a level (or status-log), for the runtime `status` filter.
|
|
5825
|
+
* Mirrors the old `getStatuses(levelId, module)`: filters the cached
|
|
5826
|
+
* `basicLevelsStatuses` by moduleId + module ('Level' or 'Log').
|
|
5827
|
+
*/
|
|
5828
|
+
getStatuses(levelId: string | number | null | undefined, module?: 'Level' | 'Log'): any[];
|
|
5829
|
+
/** Phase gates of a level, for the runtime `phaseGate` filter. */
|
|
5830
|
+
getPhaseGatesByLevelId(levelId: string | number | null | undefined): any[];
|
|
5426
5831
|
/**
|
|
5427
5832
|
* Bulk properties lookup - single request for multiple modules
|
|
5428
5833
|
* POST /metadata/modules/properties
|
|
@@ -5438,75 +5843,6 @@ declare class DashboardBuilderService {
|
|
|
5438
5843
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardBuilderService>;
|
|
5439
5844
|
}
|
|
5440
5845
|
|
|
5441
|
-
/**
|
|
5442
|
-
* Store Service
|
|
5443
|
-
*
|
|
5444
|
-
* Simple reactive store for dashboard builder state management
|
|
5445
|
-
*/
|
|
5446
|
-
declare class DashboardStoreService {
|
|
5447
|
-
/** Query parameters */
|
|
5448
|
-
private queryParamsSignal;
|
|
5449
|
-
readonly queryParams: _angular_core.Signal<Record<string, any>>;
|
|
5450
|
-
/** Stop actions on cards flag */
|
|
5451
|
-
private stopActionsSignal;
|
|
5452
|
-
readonly stopActions: _angular_core.Signal<boolean>;
|
|
5453
|
-
/** Dynamic key-value store */
|
|
5454
|
-
private dynamicStore;
|
|
5455
|
-
/** Language code */
|
|
5456
|
-
readonly languageCode: _angular_core.WritableSignal<string>;
|
|
5457
|
-
/** Direction */
|
|
5458
|
-
readonly direction: _angular_core.WritableSignal<"rtl" | "ltr">;
|
|
5459
|
-
/** Inside Report Viewer flag - controls text truncation in charts */
|
|
5460
|
-
private insideReportViewerSignal;
|
|
5461
|
-
readonly insideReportViewer: _angular_core.Signal<boolean>;
|
|
5462
|
-
/** Reload current page subject */
|
|
5463
|
-
private reloadCurrentPageSubject;
|
|
5464
|
-
readonly reloadCurrentPage$: rxjs.Observable<void>;
|
|
5465
|
-
/**
|
|
5466
|
-
* Trigger reload of current page
|
|
5467
|
-
*/
|
|
5468
|
-
triggerReloadCurrentPage(): void;
|
|
5469
|
-
/**
|
|
5470
|
-
* Update query parameters
|
|
5471
|
-
*/
|
|
5472
|
-
updateQueryParams(params: Record<string, any>): void;
|
|
5473
|
-
/**
|
|
5474
|
-
* Update stop actions flag
|
|
5475
|
-
*/
|
|
5476
|
-
updateStopActions(value: boolean): void;
|
|
5477
|
-
/**
|
|
5478
|
-
* Set inside report viewer mode
|
|
5479
|
-
* When true, axis labels won't be truncated and custom legends may be skipped
|
|
5480
|
-
*/
|
|
5481
|
-
setInsideReportViewer(value: boolean): void;
|
|
5482
|
-
/**
|
|
5483
|
-
* Update dynamic key in store
|
|
5484
|
-
*/
|
|
5485
|
-
updateDynamicKey(key: string, value: any): void;
|
|
5486
|
-
/**
|
|
5487
|
-
* Get dynamic key from store
|
|
5488
|
-
*/
|
|
5489
|
-
getDynamicKey<T = any>(key: string): T | undefined;
|
|
5490
|
-
/**
|
|
5491
|
-
* Get computed value from dynamic store
|
|
5492
|
-
*/
|
|
5493
|
-
selectDynamicKey<T = any>(key: string): _angular_core.Signal<T | undefined>;
|
|
5494
|
-
/**
|
|
5495
|
-
* Get query params as a plain object
|
|
5496
|
-
*/
|
|
5497
|
-
getQueryParams(): Record<string, any>;
|
|
5498
|
-
/**
|
|
5499
|
-
* Get extra filters for a specific dashboard action
|
|
5500
|
-
*/
|
|
5501
|
-
getExtraFilterForCurrentAction(dashboardId: string): Record<string, any>;
|
|
5502
|
-
/**
|
|
5503
|
-
* Reset store to initial state
|
|
5504
|
-
*/
|
|
5505
|
-
reset(): void;
|
|
5506
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardStoreService, never>;
|
|
5507
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardStoreService>;
|
|
5508
|
-
}
|
|
5509
|
-
|
|
5510
5846
|
/**
|
|
5511
5847
|
* Manage Pages Component
|
|
5512
5848
|
*
|
|
@@ -5580,6 +5916,10 @@ declare class ManageFilterOnPage implements OnInit {
|
|
|
5580
5916
|
private ref;
|
|
5581
5917
|
/** Input: Initial filters data */
|
|
5582
5918
|
readonly data: _angular_core.InputSignal<FilterField[]>;
|
|
5919
|
+
/** Workspace metadata scope reused by dropdown-by-selection fields */
|
|
5920
|
+
readonly workspaceId: _angular_core.InputSignal<string | number | null>;
|
|
5921
|
+
/** Template/workspace selector that scopes hierarchical Level selections */
|
|
5922
|
+
readonly chartWorkspace: _angular_core.InputSignal<string | null>;
|
|
5583
5923
|
/** Input: Available lookups for dropdown */
|
|
5584
5924
|
readonly lookups: _angular_core.InputSignal<any[]>;
|
|
5585
5925
|
/** Input: Available level schemas */
|
|
@@ -5603,7 +5943,7 @@ declare class ManageFilterOnPage implements OnInit {
|
|
|
5603
5943
|
/** Cancel and close the dialog */
|
|
5604
5944
|
close(): void;
|
|
5605
5945
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageFilterOnPage, never>;
|
|
5606
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageFilterOnPage, "mt-manage-filter-on-page", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5946
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageFilterOnPage, "mt-manage-filter-on-page", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "workspaceId": { "alias": "workspaceId"; "required": false; "isSignal": true; }; "chartWorkspace": { "alias": "chartWorkspace"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5607
5947
|
}
|
|
5608
5948
|
|
|
5609
5949
|
interface ModuleProperties$1 {
|
|
@@ -5628,6 +5968,10 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
|
|
|
5628
5968
|
readonly levelLogs: _angular_core.InputSignal<any[]>;
|
|
5629
5969
|
/** Product type to filter available field types */
|
|
5630
5970
|
readonly productType: _angular_core.InputSignal<string>;
|
|
5971
|
+
/** Workspace metadata scope used by the shared datasource selection editor. */
|
|
5972
|
+
readonly workspaceId: _angular_core.InputSignal<string | number | null>;
|
|
5973
|
+
/** Template/workspace selector used to scope hierarchical Level modules. */
|
|
5974
|
+
readonly chartWorkspace: _angular_core.InputSignal<string | null>;
|
|
5631
5975
|
/** Emit when level logs need to be loaded for a specific schema level */
|
|
5632
5976
|
readonly loadLevelLogs: _angular_core.OutputEmitterRef<number>;
|
|
5633
5977
|
/** Filter fields data */
|
|
@@ -5691,6 +6035,8 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
|
|
|
5691
6035
|
hasTypeConfiguration(field: FilterField): boolean;
|
|
5692
6036
|
getDropdownSelections(field: FilterField): ISelection[];
|
|
5693
6037
|
getSelectedProperties(field: FilterField): string[];
|
|
6038
|
+
getDropdownWorkspaceId(field: FilterField): string | number | null;
|
|
6039
|
+
getDropdownChartWorkspace(field: FilterField): string | null;
|
|
5694
6040
|
getModulesPropertiesForField(index: number): ModuleProperties$1[];
|
|
5695
6041
|
getPropertiesFlatForField(index: number): IProperty[];
|
|
5696
6042
|
getDropdownSummary(field: FilterField): string;
|
|
@@ -5703,11 +6049,14 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
|
|
|
5703
6049
|
private setFieldModulesProperties;
|
|
5704
6050
|
private extractModuleTypeFromSelector;
|
|
5705
6051
|
private normalizeSelections;
|
|
6052
|
+
private applyDropdownPayloadContext;
|
|
6053
|
+
private resolveDefaultService;
|
|
6054
|
+
private resolveSelectionService;
|
|
5706
6055
|
private getSelectionSignature;
|
|
5707
6056
|
private removeCachedFieldState;
|
|
5708
6057
|
private resetDropdownCaches;
|
|
5709
6058
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicFiltersConfig, never>;
|
|
5710
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFiltersConfig, "mt-dynamic-filters-config", never, { "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; "levelLogs": { "alias": "levelLogs"; "required": false; "isSignal": true; }; "productType": { "alias": "productType"; "required": false; "isSignal": true; }; }, { "loadLevelLogs": "loadLevelLogs"; }, never, never, true, never>;
|
|
6059
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFiltersConfig, "mt-dynamic-filters-config", never, { "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; "levelLogs": { "alias": "levelLogs"; "required": false; "isSignal": true; }; "productType": { "alias": "productType"; "required": false; "isSignal": true; }; "workspaceId": { "alias": "workspaceId"; "required": false; "isSignal": true; }; "chartWorkspace": { "alias": "chartWorkspace"; "required": false; "isSignal": true; }; }, { "loadLevelLogs": "loadLevelLogs"; }, never, never, true, never>;
|
|
5711
6060
|
}
|
|
5712
6061
|
|
|
5713
6062
|
interface DefaultControlConfig {
|
|
@@ -5763,6 +6112,17 @@ declare class DefaultControlUi implements ControlValueAccessor {
|
|
|
5763
6112
|
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>;
|
|
5764
6113
|
}
|
|
5765
6114
|
|
|
6115
|
+
interface LegendOrderOption {
|
|
6116
|
+
key: string;
|
|
6117
|
+
name: string;
|
|
6118
|
+
color?: string;
|
|
6119
|
+
}
|
|
6120
|
+
interface DrawerModuleProperties {
|
|
6121
|
+
moduleName: string;
|
|
6122
|
+
selectorName: string | null;
|
|
6123
|
+
selector: string;
|
|
6124
|
+
properties: IProperty[];
|
|
6125
|
+
}
|
|
5766
6126
|
declare class ChartSettingsDrawer {
|
|
5767
6127
|
private dialogRef;
|
|
5768
6128
|
private transloco;
|
|
@@ -5778,11 +6138,14 @@ declare class ChartSettingsDrawer {
|
|
|
5778
6138
|
private readonly chartDataService;
|
|
5779
6139
|
private readonly itemStoreService;
|
|
5780
6140
|
private readonly dashboardStore;
|
|
6141
|
+
private readonly dashboardService;
|
|
5781
6142
|
readonly previewDashboardId: string;
|
|
5782
6143
|
/** The chart item signal - reactive for proper change detection */
|
|
5783
6144
|
readonly item: _angular_core.WritableSignal<DashboardChartItem | null>;
|
|
6145
|
+
readonly modulesProperties: _angular_core.WritableSignal<DrawerModuleProperties[]>;
|
|
6146
|
+
readonly loadingProperties: _angular_core.WritableSignal<boolean>;
|
|
5784
6147
|
constructor();
|
|
5785
|
-
/** Active tab: 'display' or 'chartControls' */
|
|
6148
|
+
/** Active tab: 'display', 'legend', or 'chartControls' */
|
|
5786
6149
|
readonly activeTab: _angular_core.WritableSignal<string>;
|
|
5787
6150
|
/** Layout widgets use quick controls only */
|
|
5788
6151
|
readonly showDisplayTab: _angular_core.Signal<boolean>;
|
|
@@ -5822,6 +6185,16 @@ declare class ChartSettingsDrawer {
|
|
|
5822
6185
|
readonly itemConfig: _angular_core.Signal<ItemConfig | null>;
|
|
5823
6186
|
/** Processed preview data based on the current local drawer config. */
|
|
5824
6187
|
readonly previewChartData: _angular_core.Signal<ChartDataHandled | null>;
|
|
6188
|
+
readonly stylePropertiesFlat: _angular_core.Signal<IProperty[]>;
|
|
6189
|
+
readonly selectedStyleProperties: _angular_core.Signal<string[]>;
|
|
6190
|
+
readonly legendConfig: _angular_core.Signal<{
|
|
6191
|
+
show: any;
|
|
6192
|
+
position: any;
|
|
6193
|
+
iconType: any;
|
|
6194
|
+
overrideLegendOrder: string[];
|
|
6195
|
+
}>;
|
|
6196
|
+
readonly legendItems: _angular_core.Signal<LegendOrderOption[]>;
|
|
6197
|
+
readonly showLegendTab: _angular_core.Signal<boolean>;
|
|
5825
6198
|
/** True when the stored data can be rendered by the ECharts preview. */
|
|
5826
6199
|
readonly canRenderChartPreview: _angular_core.Signal<boolean>;
|
|
5827
6200
|
/** Localized title shown inside the isolated preview card. */
|
|
@@ -5831,6 +6204,14 @@ declare class ChartSettingsDrawer {
|
|
|
5831
6204
|
readonly previewCardStyleConfig: _angular_core.Signal<any>;
|
|
5832
6205
|
readonly previewHeaderConfig: _angular_core.Signal<any>;
|
|
5833
6206
|
readonly previewDensity: _angular_core.Signal<any>;
|
|
6207
|
+
readonly legendPositionOptions: _angular_core.Signal<{
|
|
6208
|
+
label: string;
|
|
6209
|
+
value: string;
|
|
6210
|
+
}[]>;
|
|
6211
|
+
readonly legendIconOptions: _angular_core.Signal<{
|
|
6212
|
+
label: string;
|
|
6213
|
+
value: string;
|
|
6214
|
+
}[]>;
|
|
5834
6215
|
/** Determine the type of manage UI to show */
|
|
5835
6216
|
readonly manageType: _angular_core.Signal<QuickManageType>;
|
|
5836
6217
|
/**
|
|
@@ -5865,12 +6246,23 @@ declare class ChartSettingsDrawer {
|
|
|
5865
6246
|
onSnapshotBarConfigChange(config: any): void;
|
|
5866
6247
|
/** Update client config from DisplaySettings */
|
|
5867
6248
|
onClientConfigUpdate(partialClientConfig: Partial<ClientConfig>): void;
|
|
6249
|
+
updateLegend(key: string, value: unknown): void;
|
|
6250
|
+
dropLegendItem(event: CdkDragDrop<LegendOrderOption[]>): void;
|
|
6251
|
+
resetLegendOrder(): void;
|
|
5868
6252
|
/** Apply changes and close drawer */
|
|
5869
6253
|
apply(): void;
|
|
5870
6254
|
/** Close without changes */
|
|
5871
6255
|
close(): void;
|
|
5872
6256
|
private isLayoutComponent;
|
|
5873
6257
|
private setWorkingItem;
|
|
6258
|
+
private readonly selectionSignature;
|
|
6259
|
+
private loadPropertiesForStyle;
|
|
6260
|
+
private safeParseSignature;
|
|
6261
|
+
private extractModuleTypeFromSelector;
|
|
6262
|
+
private resolvePropertyKey;
|
|
6263
|
+
private hasChartLegendSurface;
|
|
6264
|
+
private extractLegendItems;
|
|
6265
|
+
private dedupeLegendItems;
|
|
5874
6266
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartSettingsDrawer, never>;
|
|
5875
6267
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartSettingsDrawer, "mt-chart-settings-drawer", never, {}, {}, never, never, true, never>;
|
|
5876
6268
|
}
|
|
@@ -6009,6 +6401,7 @@ interface PropsConfigAsIndexItem {
|
|
|
6009
6401
|
interface PropertyOption {
|
|
6010
6402
|
label: string;
|
|
6011
6403
|
value: string;
|
|
6404
|
+
viewType?: string;
|
|
6012
6405
|
}
|
|
6013
6406
|
interface PropertiesViewRow {
|
|
6014
6407
|
key: string;
|
|
@@ -6208,10 +6601,13 @@ declare class DisplaySettings {
|
|
|
6208
6601
|
/** Selected properties as ordered options */
|
|
6209
6602
|
readonly selectedPropertyOptions: _angular_core.Signal<PropertyOption[]>;
|
|
6210
6603
|
/** Available properties as options */
|
|
6211
|
-
readonly propertyOptions: _angular_core.Signal<{
|
|
6604
|
+
readonly propertyOptions: _angular_core.Signal<PropertyOption[] | {
|
|
6212
6605
|
label: any;
|
|
6213
6606
|
value: any;
|
|
6607
|
+
viewType: any;
|
|
6214
6608
|
}[]>;
|
|
6609
|
+
/** Properties that can drive color because their values carry colors. */
|
|
6610
|
+
readonly colorPropertyOptions: _angular_core.Signal<PropertyOption[]>;
|
|
6215
6611
|
/** Properties view rows driven by selected properties order */
|
|
6216
6612
|
readonly propertiesViewRows: _angular_core.Signal<PropertiesViewRow[]>;
|
|
6217
6613
|
/** Property translations rows driven by selected properties order */
|
|
@@ -6221,25 +6617,29 @@ declare class DisplaySettings {
|
|
|
6221
6617
|
translation: PropertyTranslation;
|
|
6222
6618
|
}[]>;
|
|
6223
6619
|
/** Available translation options (exclude used) */
|
|
6224
|
-
readonly availableTranslationOptions: _angular_core.Signal<{
|
|
6620
|
+
readonly availableTranslationOptions: _angular_core.Signal<(PropertyOption | {
|
|
6225
6621
|
label: any;
|
|
6226
6622
|
value: any;
|
|
6227
|
-
|
|
6623
|
+
viewType: any;
|
|
6624
|
+
})[]>;
|
|
6228
6625
|
/** Available color options (exclude used) */
|
|
6229
|
-
readonly availableColorOptions: _angular_core.Signal<{
|
|
6626
|
+
readonly availableColorOptions: _angular_core.Signal<(PropertyOption | {
|
|
6230
6627
|
label: any;
|
|
6231
6628
|
value: any;
|
|
6232
|
-
|
|
6629
|
+
viewType: any;
|
|
6630
|
+
})[]>;
|
|
6233
6631
|
/** All property options (full list) */
|
|
6234
6632
|
readonly allPropertyKeyOptions: _angular_core.Signal<{
|
|
6235
6633
|
label: any;
|
|
6236
6634
|
value: any;
|
|
6635
|
+
viewType: any;
|
|
6237
6636
|
}[]>;
|
|
6238
6637
|
/** Ring gauge hidden properties options */
|
|
6239
|
-
readonly ringGaugeHiddenOptions: _angular_core.Signal<{
|
|
6638
|
+
readonly ringGaugeHiddenOptions: _angular_core.Signal<(PropertyOption | {
|
|
6240
6639
|
label: any;
|
|
6241
6640
|
value: any;
|
|
6242
|
-
|
|
6641
|
+
viewType: any;
|
|
6642
|
+
})[]>;
|
|
6243
6643
|
/** Update style config property */
|
|
6244
6644
|
updateStyleConfig(key: keyof StyleConfig | string, value: any): void;
|
|
6245
6645
|
/** Update configAsType property */
|
|
@@ -6681,9 +7081,21 @@ declare class ManageItem implements OnInit {
|
|
|
6681
7081
|
readonly isNew: _angular_core.Signal<any>;
|
|
6682
7082
|
/** Optional informative authoring context */
|
|
6683
7083
|
readonly informativeContext: _angular_core.Signal<any>;
|
|
7084
|
+
/** Active editor tab: data source vs the per-chart filters builder. */
|
|
7085
|
+
readonly activeTab: _angular_core.WritableSignal<"filters" | "datasource">;
|
|
7086
|
+
/** Option sources for the per-chart interactive-filter builder. */
|
|
7087
|
+
readonly chartLookups: _angular_core.WritableSignal<any[]>;
|
|
7088
|
+
readonly chartLevelsSchema: _angular_core.WritableSignal<any[]>;
|
|
7089
|
+
readonly chartLevelLogs: _angular_core.WritableSignal<any[]>;
|
|
7090
|
+
/**
|
|
7091
|
+
* The chart's interactive filter fields. Persisted (like the old builder) on
|
|
7092
|
+
* `clientConfig.extraFilters.dynamicFilters`; also reads a top-level
|
|
7093
|
+
* `dynamicFilters` for forward compatibility.
|
|
7094
|
+
*/
|
|
7095
|
+
readonly dynamicFilters: _angular_core.Signal<FilterField[]>;
|
|
6684
7096
|
/** Preview pane is collapsed by default; the form gets the full width. */
|
|
6685
7097
|
readonly previewCollapsed: _angular_core.WritableSignal<boolean>;
|
|
6686
|
-
/** Drawer is ~
|
|
7098
|
+
/** Drawer is ~2/3 width for the form alone, wider while the preview is open. */
|
|
6687
7099
|
private readonly COMPACT_WIDTH;
|
|
6688
7100
|
private readonly EXPANDED_WIDTH;
|
|
6689
7101
|
/** Saving state */
|
|
@@ -6696,6 +7108,10 @@ declare class ManageItem implements OnInit {
|
|
|
6696
7108
|
cancel(): void;
|
|
6697
7109
|
/** Update service config from the datasource editor */
|
|
6698
7110
|
onServiceConfigUpdate(partialConfig: Partial<ItemConfig['serviceConfig']>): void;
|
|
7111
|
+
/** Persist the chart's interactive filter fields (Filters tab). */
|
|
7112
|
+
onDynamicFiltersChange(next: FilterField[]): void;
|
|
7113
|
+
/** A status field needs its level's logs — derive them from the schema. */
|
|
7114
|
+
onLoadLevelLogs(schemaLevelId: number): void;
|
|
6699
7115
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageItem, never>;
|
|
6700
7116
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageItem, "mt-manage-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6701
7117
|
}
|
|
@@ -6894,6 +7310,7 @@ interface ModuleProperties {
|
|
|
6894
7310
|
* Query component type based on chart type and component name
|
|
6895
7311
|
*/
|
|
6896
7312
|
type QueryComponentType = 'general' | 'table' | 'timeline' | 'timelineMultiLevel' | 'map' | 'splitter' | 'properties' | 'snapshot' | 'phaseGate' | 'repeater' | 'none';
|
|
7313
|
+
type TimelineTimeFrame = 'monthly' | 'quarterly' | 'biannually' | 'annually';
|
|
6897
7314
|
/**
|
|
6898
7315
|
* Data Source Settings Component
|
|
6899
7316
|
*
|
|
@@ -6905,6 +7322,7 @@ type QueryComponentType = 'general' | 'table' | 'timeline' | 'timelineMultiLevel
|
|
|
6905
7322
|
declare class DataSourceSettings {
|
|
6906
7323
|
private dashboardService;
|
|
6907
7324
|
private transloco;
|
|
7325
|
+
private destroyRef;
|
|
6908
7326
|
/** Current configuration */
|
|
6909
7327
|
readonly config: _angular_core.InputSignal<ItemConfig | null>;
|
|
6910
7328
|
/** Selected chart type */
|
|
@@ -6915,12 +7333,22 @@ declare class DataSourceSettings {
|
|
|
6915
7333
|
readonly serviceConfigChange: _angular_core.OutputEmitterRef<Partial<ServiceConfig>>;
|
|
6916
7334
|
/** Properties grouped by module */
|
|
6917
7335
|
readonly modulesProperties: _angular_core.WritableSignal<ModuleProperties[]>;
|
|
6918
|
-
/**
|
|
7336
|
+
/**
|
|
7337
|
+
* Flattened properties list with grouping info.
|
|
7338
|
+
*
|
|
7339
|
+
* When the chart pulls from MORE THAN ONE selection, the property display
|
|
7340
|
+
* name is prefixed with its group ("Projects - Status") so identically-named
|
|
7341
|
+
* properties (e.g. "Status") are distinguishable in the query pickers AND in
|
|
7342
|
+
* the selected chips. Single-selection charts keep the plain name. The option
|
|
7343
|
+
* VALUE is `key` (unchanged), so saved configs are unaffected.
|
|
7344
|
+
*/
|
|
6919
7345
|
readonly propertiesFlat: _angular_core.Signal<IPropertyWithGroup[]>;
|
|
6920
7346
|
/**
|
|
6921
7347
|
* Properties grouped for select field with [group]="true"
|
|
6922
7348
|
* Structure: [{ label: 'Projects', items: [{ name, key }, ...] }, ...]
|
|
6923
|
-
* Uses selectorName for display (e.g., "Projects" instead of "Level")
|
|
7349
|
+
* Uses selectorName for display (e.g., "Projects" instead of "Level").
|
|
7350
|
+
* Items are prefixed with the group when multiple selections exist so the
|
|
7351
|
+
* selected chips stay unambiguous (the dropdown also shows the group header).
|
|
6924
7352
|
*/
|
|
6925
7353
|
readonly propertiesGrouped: _angular_core.Signal<{
|
|
6926
7354
|
label: string;
|
|
@@ -6953,7 +7381,7 @@ declare class DataSourceSettings {
|
|
|
6953
7381
|
* Active tab within the selection cycle: Selection (pick modules) · Source
|
|
6954
7382
|
* Links (joins, only with >1 selection) · Query (fields).
|
|
6955
7383
|
*/
|
|
6956
|
-
readonly activeSection: _angular_core.WritableSignal<"
|
|
7384
|
+
readonly activeSection: _angular_core.WritableSignal<"selection" | "sourceLinks" | "query">;
|
|
6957
7385
|
/** Selection mode inside the selection tab (informative authoring). */
|
|
6958
7386
|
readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
|
|
6959
7387
|
readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
|
|
@@ -6987,6 +7415,46 @@ declare class DataSourceSettings {
|
|
|
6987
7415
|
readonly query: _angular_core.WritableSignal<any>;
|
|
6988
7416
|
readonly isNormalized: _angular_core.WritableSignal<boolean>;
|
|
6989
7417
|
readonly groupByMultiple: _angular_core.WritableSignal<string[]>;
|
|
7418
|
+
/** Local copy of the modules tree (for the workspace Template options). */
|
|
7419
|
+
private readonly treeData;
|
|
7420
|
+
/** The single chart-level workspace (Template root selector, e.g. "Template:48"). */
|
|
7421
|
+
readonly chartWorkspace: _angular_core.WritableSignal<string | null>;
|
|
7422
|
+
/** Inline "change workspace" confirmation visibility. */
|
|
7423
|
+
readonly confirmingWorkspaceChange: _angular_core.WritableSignal<boolean>;
|
|
7424
|
+
/**
|
|
7425
|
+
* True when the chart workspace was auto-detected from OLD data (the chart had
|
|
7426
|
+
* selections/workspaceId but no stored `serviceConfig.workspace`). Drives the
|
|
7427
|
+
* "auto-detected — Save to keep it / Clear" notice. Cleared once the user
|
|
7428
|
+
* picks deliberately or clears it.
|
|
7429
|
+
*/
|
|
7430
|
+
readonly workspaceAutoDetected: _angular_core.WritableSignal<boolean>;
|
|
7431
|
+
/**
|
|
7432
|
+
* Set once the user explicitly clears an auto-detected workspace, so the
|
|
7433
|
+
* derive effect doesn't immediately re-detect the same one (which would make
|
|
7434
|
+
* Clear a no-op). Reset on a deliberate pick.
|
|
7435
|
+
*/
|
|
7436
|
+
private readonly userClearedWorkspace;
|
|
7437
|
+
private readonly workspaceServiceName;
|
|
7438
|
+
/**
|
|
7439
|
+
* The hierarchical "Level" module + its owning service (searches all loaded
|
|
7440
|
+
* services so a service-name mismatch doesn't blank the gate).
|
|
7441
|
+
*/
|
|
7442
|
+
private readonly levelContext;
|
|
7443
|
+
/** Workspace options = the Level module's Template roots. */
|
|
7444
|
+
readonly workspaceOptions: _angular_core.Signal<{
|
|
7445
|
+
label: string;
|
|
7446
|
+
value: string;
|
|
7447
|
+
}[]>;
|
|
7448
|
+
/** Whether this chart uses the selection flow the workspace gates. */
|
|
7449
|
+
readonly showWorkspaceGate: _angular_core.Signal<boolean>;
|
|
7450
|
+
/**
|
|
7451
|
+
* Gate is open (blocking): a workspace must be picked before the tabs show.
|
|
7452
|
+
* Only blocks brand-new/empty charts — an existing chart with selections (incl.
|
|
7453
|
+
* legacy/flat charts that never had a workspace) is never blocked from editing.
|
|
7454
|
+
*/
|
|
7455
|
+
readonly needsWorkspacePick: _angular_core.Signal<boolean>;
|
|
7456
|
+
/** Display label for the chosen workspace. */
|
|
7457
|
+
readonly chartWorkspaceLabel: _angular_core.Signal<string>;
|
|
6990
7458
|
/** Active registry query schema used by GeneralQuery. */
|
|
6991
7459
|
readonly querySchema: _angular_core.Signal<QuerySchema | null>;
|
|
6992
7460
|
/** Repeater dashboard selection */
|
|
@@ -7050,6 +7518,38 @@ declare class DataSourceSettings {
|
|
|
7050
7518
|
* Handle source links change
|
|
7051
7519
|
*/
|
|
7052
7520
|
onSourceLinksChange(links: SourceLink[]): void;
|
|
7521
|
+
/** Pick the single chart workspace (Template root). Opens the tabs. */
|
|
7522
|
+
onWorkspacePick(selector: string): void;
|
|
7523
|
+
/** Numeric workspace id parsed from a Template selector ("Template:48" -> 48). */
|
|
7524
|
+
private parseWorkspaceId;
|
|
7525
|
+
/** Ask to change workspace (shows the inline confirm). */
|
|
7526
|
+
requestChangeWorkspace(): void;
|
|
7527
|
+
/** Dismiss the change-workspace confirm. */
|
|
7528
|
+
cancelChangeWorkspace(): void;
|
|
7529
|
+
/**
|
|
7530
|
+
* Confirm changing the workspace: everything scoped to it (selections, source
|
|
7531
|
+
* links, query) is cleared and the gate re-opens.
|
|
7532
|
+
*/
|
|
7533
|
+
confirmChangeWorkspace(): void;
|
|
7534
|
+
/** Load the modules tree into the local signal (cache-first). */
|
|
7535
|
+
private loadWorkspaceTree;
|
|
7536
|
+
/**
|
|
7537
|
+
* Best-effort workspace selector for OLD charts that never stored
|
|
7538
|
+
* `serviceConfig.workspace`. Tries, in order: an existing numeric
|
|
7539
|
+
* `workspaceId` (mapped to a known Template option, else synthesized), a
|
|
7540
|
+
* Level selection mapped through the tree, then a workspaceId carried on any
|
|
7541
|
+
* selection. Returns null when nothing can be inferred.
|
|
7542
|
+
*/
|
|
7543
|
+
private deriveChartWorkspace;
|
|
7544
|
+
/**
|
|
7545
|
+
* Discard an auto-detected workspace without wiping the (still valid)
|
|
7546
|
+
* selections — re-opens the picker so the user can choose deliberately.
|
|
7547
|
+
*/
|
|
7548
|
+
clearAutoDetectedWorkspace(): void;
|
|
7549
|
+
/** Reverse-map a Level selector to its Template root (for legacy restore). */
|
|
7550
|
+
private deriveWorkspaceFromLevel;
|
|
7551
|
+
/** Workspace metadata filter for tree values (roots and children alike). */
|
|
7552
|
+
private matchesWorkspace;
|
|
7053
7553
|
/**
|
|
7054
7554
|
* Handle query change (general query)
|
|
7055
7555
|
*/
|
|
@@ -7127,10 +7627,23 @@ declare class DataSourceSettings {
|
|
|
7127
7627
|
* Reads the current timeline-multi-level query for the template.
|
|
7128
7628
|
*/
|
|
7129
7629
|
readonly timelineLevels: _angular_core.Signal<any[]>;
|
|
7630
|
+
readonly timelineTimeFrame: _angular_core.Signal<TimelineTimeFrame>;
|
|
7130
7631
|
readonly timeFrameOptions: {
|
|
7131
|
-
value:
|
|
7632
|
+
value: TimelineTimeFrame;
|
|
7132
7633
|
label: string;
|
|
7133
7634
|
}[];
|
|
7635
|
+
onTimelineTimeFrameChange(value: TimelineTimeFrame): void;
|
|
7636
|
+
shouldShowTimelineParentProperty(index: number): boolean;
|
|
7637
|
+
timelineParentPropertyOptions(index: number): IProperty[];
|
|
7638
|
+
private normalizeTimelineLevels;
|
|
7639
|
+
private defaultTimelineParentProperty;
|
|
7640
|
+
private timelineParentPropertyKeys;
|
|
7641
|
+
private toTimelineParentPropertyOption;
|
|
7642
|
+
private findProperty;
|
|
7643
|
+
private createPropertyFallback;
|
|
7644
|
+
private humanizePropertyKey;
|
|
7645
|
+
private resolveTimelineTimeFrame;
|
|
7646
|
+
private normalizeTimelineTimeFrame;
|
|
7134
7647
|
/**
|
|
7135
7648
|
* Loads available dashboards for the repeater dropdown by hitting the
|
|
7136
7649
|
* configured reports list. Uses Dashboard type only.
|
|
@@ -7157,6 +7670,11 @@ declare class DataSourceSettings {
|
|
|
7157
7670
|
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>;
|
|
7158
7671
|
}
|
|
7159
7672
|
|
|
7673
|
+
/** Page (dashboard) option for the navigate-to-page target select */
|
|
7674
|
+
interface PageOption {
|
|
7675
|
+
label: string;
|
|
7676
|
+
value: number;
|
|
7677
|
+
}
|
|
7160
7678
|
/** Action type option */
|
|
7161
7679
|
interface ActionTypeOption {
|
|
7162
7680
|
readonly label: string;
|
|
@@ -7169,8 +7687,12 @@ interface TriggerOption {
|
|
|
7169
7687
|
readonly value: string;
|
|
7170
7688
|
readonly icon: string;
|
|
7171
7689
|
}
|
|
7172
|
-
/**
|
|
7173
|
-
|
|
7690
|
+
/**
|
|
7691
|
+
* A single unified action filter. `propertyKey` is the param sent to the
|
|
7692
|
+
* target/dialog; `propertyValue` is either a literal (static) or a `{{token}}`
|
|
7693
|
+
* resolved at runtime from the clicked item (dynamic) — one field, both modes.
|
|
7694
|
+
*/
|
|
7695
|
+
interface ActionFilter {
|
|
7174
7696
|
propertyKey: string;
|
|
7175
7697
|
propertyValue: string;
|
|
7176
7698
|
}
|
|
@@ -7179,18 +7701,40 @@ interface KeyPair {
|
|
|
7179
7701
|
*
|
|
7180
7702
|
* Handles chart action configuration:
|
|
7181
7703
|
* - Click actions (open dialog, navigate, custom function)
|
|
7182
|
-
* - Trigger types (click, double-click
|
|
7183
|
-
* -
|
|
7704
|
+
* - Trigger types (click, double-click)
|
|
7705
|
+
* - A single unified "filters" section per action (replaces the old
|
|
7706
|
+
* static/dynamic split). Each filter is propertyKey + a select-or-write value
|
|
7707
|
+
* field; any property used is auto-added to the chart's extraProperties so it
|
|
7708
|
+
* is returned with the clicked row at runtime.
|
|
7184
7709
|
*/
|
|
7185
7710
|
declare class ActionsSettings {
|
|
7186
7711
|
/** Current configuration */
|
|
7187
7712
|
readonly config: _angular_core.InputSignal<ItemConfig | null>;
|
|
7188
7713
|
/** Emit client config changes */
|
|
7189
7714
|
readonly clientConfigChange: _angular_core.OutputEmitterRef<Partial<ClientConfig>>;
|
|
7715
|
+
/**
|
|
7716
|
+
* Emit the chart's extra-property keys whenever a filter adds a new one, so
|
|
7717
|
+
* the host can persist them onto `serviceConfig.query.extraProperties` (the
|
|
7718
|
+
* backend returns exactly the properties listed there with each clicked row).
|
|
7719
|
+
*/
|
|
7720
|
+
readonly extraPropertiesChange: _angular_core.OutputEmitterRef<string[]>;
|
|
7721
|
+
private readonly dashboardService;
|
|
7722
|
+
private readonly destroyRef;
|
|
7723
|
+
/** UI language for localized page names. */
|
|
7724
|
+
private readonly languageCode;
|
|
7725
|
+
/** Dashboard pages for the navigate-to-page target select. */
|
|
7726
|
+
readonly pageOptions: _angular_core.WritableSignal<PageOption[]>;
|
|
7727
|
+
/** Properties of THIS chart's selections — the filter property picker. */
|
|
7728
|
+
readonly propertyOptions: _angular_core.WritableSignal<IProperty[]>;
|
|
7729
|
+
readonly loadingProperties: _angular_core.WritableSignal<boolean>;
|
|
7730
|
+
/** Guard so properties reload only when the chart's selections change. */
|
|
7731
|
+
private lastSelectionsKey;
|
|
7732
|
+
constructor();
|
|
7190
7733
|
/**
|
|
7191
7734
|
* Action type options. "Open Dialog" is intentionally NOT selectable here —
|
|
7192
7735
|
* a dialog is created via the card's "Add dialog" action, which adds an
|
|
7193
|
-
* `openDialog` action. Existing openDialog actions
|
|
7736
|
+
* `openDialog` action. Existing openDialog actions keep their type but can
|
|
7737
|
+
* still configure filters (the params handed to the dialog).
|
|
7194
7738
|
*/
|
|
7195
7739
|
readonly actionTypeOptions: readonly ActionTypeOption[];
|
|
7196
7740
|
/** Trigger type options - using valid icons from icons.json */
|
|
@@ -7198,88 +7742,74 @@ declare class ActionsSettings {
|
|
|
7198
7742
|
/** Current actions list */
|
|
7199
7743
|
readonly actions: _angular_core.Signal<ActionConfig[]>;
|
|
7200
7744
|
/**
|
|
7201
|
-
*
|
|
7745
|
+
* The chart's current extra-property keys (string form), surfaced to the
|
|
7746
|
+
* value field's "Properties" tab and kept in sync as filters add keys.
|
|
7202
7747
|
*/
|
|
7748
|
+
readonly chartExtraProperties: _angular_core.Signal<string[]>;
|
|
7749
|
+
private normalizeExtraProperties;
|
|
7750
|
+
/** Get current actions array safely */
|
|
7203
7751
|
private getCurrentActions;
|
|
7204
|
-
/**
|
|
7205
|
-
* Emit updated actions
|
|
7206
|
-
*/
|
|
7752
|
+
/** Emit updated actions */
|
|
7207
7753
|
private emitActions;
|
|
7208
|
-
/**
|
|
7209
|
-
* Get action at index safely
|
|
7210
|
-
*/
|
|
7754
|
+
/** Get action at index safely */
|
|
7211
7755
|
private getActionAt;
|
|
7212
|
-
/**
|
|
7213
|
-
* Add a new action
|
|
7214
|
-
*/
|
|
7756
|
+
/** Add a new action */
|
|
7215
7757
|
addAction(): void;
|
|
7216
7758
|
/**
|
|
7217
7759
|
* Whether an action is a dialog action (added via the card's "Add dialog"
|
|
7218
|
-
* flow).
|
|
7760
|
+
* flow). Its type/trigger stay managed there, but its filters (the params
|
|
7761
|
+
* handed to the dialog) are editable here, and its value field surfaces the
|
|
7762
|
+
* key/pivot tokens the dialog depends on.
|
|
7219
7763
|
*/
|
|
7220
7764
|
isDialogAction(action: ActionConfig): boolean;
|
|
7221
|
-
/**
|
|
7222
|
-
* Remove an action
|
|
7223
|
-
*/
|
|
7765
|
+
/** Remove an action */
|
|
7224
7766
|
removeAction(index: number): void;
|
|
7225
|
-
/**
|
|
7226
|
-
* Duplicate an action
|
|
7227
|
-
*/
|
|
7767
|
+
/** Duplicate an action */
|
|
7228
7768
|
duplicateAction(index: number): void;
|
|
7229
|
-
/**
|
|
7230
|
-
* Update an action property
|
|
7231
|
-
*/
|
|
7769
|
+
/** Update an action property */
|
|
7232
7770
|
updateAction<K extends keyof ActionConfig>(index: number, key: K, value: ActionConfig[K]): void;
|
|
7233
|
-
/**
|
|
7234
|
-
* Update action config object
|
|
7235
|
-
*/
|
|
7771
|
+
/** Update action config object */
|
|
7236
7772
|
updateActionConfig(index: number, configKey: string, value: unknown): void;
|
|
7237
|
-
/**
|
|
7238
|
-
* Move action up in the list
|
|
7239
|
-
*/
|
|
7773
|
+
/** Move action up in the list */
|
|
7240
7774
|
moveActionUp(index: number): void;
|
|
7241
|
-
/**
|
|
7242
|
-
* Move action down in the list
|
|
7243
|
-
*/
|
|
7775
|
+
/** Move action down in the list */
|
|
7244
7776
|
moveActionDown(index: number): void;
|
|
7245
|
-
/**
|
|
7246
|
-
* Get action type label
|
|
7247
|
-
*/
|
|
7777
|
+
/** Get action type label */
|
|
7248
7778
|
getActionTypeLabel(actionType: string): string;
|
|
7249
|
-
/**
|
|
7250
|
-
* Get trigger type label
|
|
7251
|
-
*/
|
|
7779
|
+
/** Get trigger type label */
|
|
7252
7780
|
getTriggerLabel(trigger: string): string;
|
|
7253
7781
|
/**
|
|
7254
|
-
*
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
/**
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
/**
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
*
|
|
7275
|
-
*/
|
|
7276
|
-
|
|
7277
|
-
/**
|
|
7278
|
-
|
|
7279
|
-
|
|
7782
|
+
* Load the properties of the chart's own selections (the filter property
|
|
7783
|
+
* picker), mirroring data-source-settings.loadPropertiesForSelections.
|
|
7784
|
+
*/
|
|
7785
|
+
private loadProperties;
|
|
7786
|
+
/**
|
|
7787
|
+
* Unified filters for an action. Prefers the new `filters` array; for legacy
|
|
7788
|
+
* actions it falls back to the old static + dynamic arrays so they still
|
|
7789
|
+
* render — and the next edit migrates them into `filters`.
|
|
7790
|
+
*/
|
|
7791
|
+
getActionFilters(action: ActionConfig): ActionFilter[];
|
|
7792
|
+
private getFiltersAt;
|
|
7793
|
+
/** Write the unified filters back and drop the legacy split once edited. */
|
|
7794
|
+
private writeFilters;
|
|
7795
|
+
/** Add an empty filter row to an action. */
|
|
7796
|
+
addFilter(actionIndex: number): void;
|
|
7797
|
+
/** Remove a filter row. */
|
|
7798
|
+
removeFilter(actionIndex: number, filterIndex: number): void;
|
|
7799
|
+
/**
|
|
7800
|
+
* Pick the filter property. Resets the value (its options depend on the
|
|
7801
|
+
* property) and auto-adds the key to the chart's extraProperties so the
|
|
7802
|
+
* clicked row carries it at runtime.
|
|
7803
|
+
*/
|
|
7804
|
+
updateFilterProperty(actionIndex: number, filterIndex: number, propertyKey: string): void;
|
|
7805
|
+
/** Update a filter's value (literal or `{{token}}`). */
|
|
7806
|
+
updateFilterValue(actionIndex: number, filterIndex: number, value: string): void;
|
|
7807
|
+
/** Ensure a property key is in the chart's extraProperties (emit if added). */
|
|
7808
|
+
private ensureExtraProperty;
|
|
7809
|
+
/** Track by index for ngFor */
|
|
7280
7810
|
trackByIndex(index: number): number;
|
|
7281
7811
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionsSettings, never>;
|
|
7282
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionsSettings, "mt-actions-settings", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "clientConfigChange": "clientConfigChange"; }, never, never, true, never>;
|
|
7812
|
+
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>;
|
|
7283
7813
|
}
|
|
7284
7814
|
|
|
7285
7815
|
/**
|
|
@@ -7295,14 +7825,351 @@ declare class ChartViewer {
|
|
|
7295
7825
|
readonly chartTypeId: _angular_core.InputSignal<string>;
|
|
7296
7826
|
/** Loading state for refresh */
|
|
7297
7827
|
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
7828
|
+
private readonly destroyRef;
|
|
7829
|
+
private loadingTimer;
|
|
7830
|
+
constructor();
|
|
7298
7831
|
/** Preview only renders when the selected capability has enough config. */
|
|
7299
7832
|
readonly canPreview: _angular_core.Signal<boolean>;
|
|
7300
|
-
/**
|
|
7833
|
+
/**
|
|
7834
|
+
* Refresh the preview — flashes the loading spinner. Called by the manual
|
|
7835
|
+
* refresh button AND on every config change in the Style Studio, so edits
|
|
7836
|
+
* get the same "refreshing" feedback. Coalesces rapid calls into one window.
|
|
7837
|
+
*/
|
|
7301
7838
|
refresh(): void;
|
|
7302
7839
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartViewer, never>;
|
|
7303
7840
|
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>;
|
|
7304
7841
|
}
|
|
7305
7842
|
|
|
7843
|
+
/** A legend entry surfaced from the chart's live preview data. */
|
|
7844
|
+
interface LegendOrderItem {
|
|
7845
|
+
key: string;
|
|
7846
|
+
name: string;
|
|
7847
|
+
color?: string;
|
|
7848
|
+
}
|
|
7849
|
+
/**
|
|
7850
|
+
* Drag-to-reorder the chart legend. The available entries (`items`) come from
|
|
7851
|
+
* the live preview data (already ordered by the saved override); dragging emits
|
|
7852
|
+
* the new order as a name array written to
|
|
7853
|
+
* `clientConfig.configAsType.legend.overrideLegendOrder`. Reset emits `[]`
|
|
7854
|
+
* (natural order).
|
|
7855
|
+
*/
|
|
7856
|
+
declare class LegendOrderField {
|
|
7857
|
+
readonly items: _angular_core.InputSignal<LegendOrderItem[]>;
|
|
7858
|
+
readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
|
|
7859
|
+
/** Working list is just the input — reorder mutates a copy and emits. */
|
|
7860
|
+
readonly rows: _angular_core.Signal<LegendOrderItem[]>;
|
|
7861
|
+
drop(event: CdkDragDrop<unknown>): void;
|
|
7862
|
+
reset(): void;
|
|
7863
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LegendOrderField, never>;
|
|
7864
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendOrderField, "mt-legend-order-field", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
7865
|
+
}
|
|
7866
|
+
|
|
7867
|
+
interface NavGroup {
|
|
7868
|
+
label: string;
|
|
7869
|
+
sections: ControlSection[];
|
|
7870
|
+
}
|
|
7871
|
+
declare class StyleStudioDrawer {
|
|
7872
|
+
private readonly dialogRef;
|
|
7873
|
+
private readonly drawerConfig;
|
|
7874
|
+
private readonly drawerController;
|
|
7875
|
+
private readonly transloco;
|
|
7876
|
+
private readonly chartDataService;
|
|
7877
|
+
private readonly itemStoreService;
|
|
7878
|
+
private readonly dashboardStore;
|
|
7879
|
+
readonly modal: ModalService;
|
|
7880
|
+
private readonly scrollPane;
|
|
7881
|
+
/** Working copy of the chart (deep-cloned so Cancel never mutates source). */
|
|
7882
|
+
readonly item: _angular_core.WritableSignal<DashboardChartItem | null>;
|
|
7883
|
+
/** Simple ⇄ Advanced progressive disclosure. */
|
|
7884
|
+
readonly scope: _angular_core.WritableSignal<ControlSectionScope>;
|
|
7885
|
+
/** Free-text "find a setting" filter. */
|
|
7886
|
+
readonly searchControl: FormControl<string>;
|
|
7887
|
+
readonly search: _angular_core.Signal<string>;
|
|
7888
|
+
/** Section the rail highlights as active (scroll-spy). */
|
|
7889
|
+
readonly activeSection: _angular_core.WritableSignal<string>;
|
|
7890
|
+
/**
|
|
7891
|
+
* Isolated preview id so editing here NEVER mutates the real dashboard
|
|
7892
|
+
* chart's store entry. The preview renders from this id; Cancel leaves the
|
|
7893
|
+
* real chart untouched.
|
|
7894
|
+
*/
|
|
7895
|
+
readonly previewId: string;
|
|
7896
|
+
/** The live preview viewer — driven to flash its loading on every change. */
|
|
7897
|
+
private readonly previewViewer;
|
|
7898
|
+
constructor();
|
|
7899
|
+
/** Re-process + push the working config into the isolated preview store. */
|
|
7900
|
+
private syncPreviewStore;
|
|
7901
|
+
readonly itemConfig: _angular_core.Signal<ItemConfig | null>;
|
|
7902
|
+
readonly capability: _angular_core.Signal<_masterteam_dashboard_builder.ChartCapability | null>;
|
|
7903
|
+
readonly schema: _angular_core.Signal<_masterteam_dashboard_builder.ControlSchema>;
|
|
7904
|
+
readonly chartName: _angular_core.Signal<string>;
|
|
7905
|
+
readonly chartIcon: _angular_core.Signal<string>;
|
|
7906
|
+
/**
|
|
7907
|
+
* Sections for the left rail. Kept in lock-step with the rendered body
|
|
7908
|
+
* (same scope + visibleWhen + search filtering) so every rail entry always
|
|
7909
|
+
* has a scroll target.
|
|
7910
|
+
*/
|
|
7911
|
+
readonly navSections: _angular_core.Signal<ControlSection[]>;
|
|
7912
|
+
/** Rail sections grouped under friendly category headers. */
|
|
7913
|
+
readonly navGroups: _angular_core.Signal<NavGroup[]>;
|
|
7914
|
+
readonly scopeOptions: _angular_core.Signal<{
|
|
7915
|
+
label: string;
|
|
7916
|
+
value: string;
|
|
7917
|
+
}[]>;
|
|
7918
|
+
/** Working config re-keyed to the isolated preview id (drives ChartViewer). */
|
|
7919
|
+
readonly previewConfig: _angular_core.Signal<ItemConfig | null>;
|
|
7920
|
+
/** Chart-type id handed to the live ChartViewer (renders ALL widget types). */
|
|
7921
|
+
readonly previewChartTypeId: _angular_core.Signal<string>;
|
|
7922
|
+
readonly previewTitle: _angular_core.Signal<string>;
|
|
7923
|
+
/**
|
|
7924
|
+
* Preview data — the source for the legend-order entries. Reads the isolated
|
|
7925
|
+
* preview store, which `syncPreviewStore()` keeps re-processed against the
|
|
7926
|
+
* working config on every edit.
|
|
7927
|
+
*/
|
|
7928
|
+
readonly previewData: _angular_core.Signal<ChartDataHandled | null>;
|
|
7929
|
+
/** Legend entries (ordered by the saved override) for the legendOrder control. */
|
|
7930
|
+
readonly legendItems: _angular_core.Signal<LegendOrderItem[]>;
|
|
7931
|
+
readonly previewWidth: _angular_core.WritableSignal<number>;
|
|
7932
|
+
private resizing;
|
|
7933
|
+
private resizeStartX;
|
|
7934
|
+
private resizeStartWidth;
|
|
7935
|
+
startResize(ev: PointerEvent): void;
|
|
7936
|
+
onResizeMove(ev: PointerEvent): void;
|
|
7937
|
+
endResize(): void;
|
|
7938
|
+
private extractLegendItems;
|
|
7939
|
+
onScopeChange(value: unknown): void;
|
|
7940
|
+
onPatch(patch: ControlPatch): void;
|
|
7941
|
+
scrollTo(section: ControlSection): void;
|
|
7942
|
+
/** Scroll-spy: highlight the top-most section currently in view. */
|
|
7943
|
+
onScroll(): void;
|
|
7944
|
+
private setActiveSection;
|
|
7945
|
+
resetAll(): void;
|
|
7946
|
+
apply(): void;
|
|
7947
|
+
close(): void;
|
|
7948
|
+
private t;
|
|
7949
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleStudioDrawer, never>;
|
|
7950
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StyleStudioDrawer, "mt-style-studio-drawer", never, {}, {}, never, never, true, never>;
|
|
7951
|
+
}
|
|
7952
|
+
|
|
7953
|
+
interface RenderSection {
|
|
7954
|
+
section: ControlSection;
|
|
7955
|
+
/** All visible fields (used for reset + count). */
|
|
7956
|
+
fields: ControlField[];
|
|
7957
|
+
/** Non-toggle controls — rendered in the 2-column grid. */
|
|
7958
|
+
controls: ControlField[];
|
|
7959
|
+
/** Boolean (toggle) fields — grouped together as cards on their own row. */
|
|
7960
|
+
toggles: ControlField[];
|
|
7961
|
+
}
|
|
7962
|
+
/**
|
|
7963
|
+
* Walks a `ControlSchema` and renders a reactive form for each visible field,
|
|
7964
|
+
* grouped into section cards. Honors per-field `scope` (Simple/Advanced),
|
|
7965
|
+
* `visibleWhen` predicates and a free-text `search` filter. Emits `ControlPatch`
|
|
7966
|
+
* upward; the host applies it via `applyControlPatchToPersisted` and re-feeds
|
|
7967
|
+
* the persisted config (one-way data flow → the live preview reacts).
|
|
7968
|
+
*/
|
|
7969
|
+
declare class StyleSettingsRenderer {
|
|
7970
|
+
readonly schema: _angular_core.InputSignal<ControlSchema>;
|
|
7971
|
+
readonly persisted: _angular_core.InputSignal<_masterteam_dashboard_builder.ItemConfig | null>;
|
|
7972
|
+
readonly capability: _angular_core.InputSignal<ChartCapability | null>;
|
|
7973
|
+
readonly scope: _angular_core.InputSignal<ControlSectionScope>;
|
|
7974
|
+
readonly search: _angular_core.InputSignal<string>;
|
|
7975
|
+
/** Live legend entries forwarded to any legendOrder control. */
|
|
7976
|
+
readonly legendItems: _angular_core.InputSignal<LegendOrderItem[]>;
|
|
7977
|
+
readonly patch: _angular_core.OutputEmitterRef<ControlPatch>;
|
|
7978
|
+
/** Emitted when the empty-state "switch to Advanced" affordance is used. */
|
|
7979
|
+
readonly requestScope: _angular_core.OutputEmitterRef<ControlSectionScope>;
|
|
7980
|
+
/** Sections (with their visible fields) to render, after all filtering. */
|
|
7981
|
+
readonly sections: _angular_core.Signal<RenderSection[]>;
|
|
7982
|
+
readonly isEmpty: _angular_core.Signal<boolean>;
|
|
7983
|
+
/** Composite/full-width field types span both grid columns. */
|
|
7984
|
+
isComposite(field: ControlField): boolean;
|
|
7985
|
+
sectionId(section: ControlSection): string;
|
|
7986
|
+
onPatch(patch: ControlPatch): void;
|
|
7987
|
+
/** Clear every visible field in a section back to its (unset) default. */
|
|
7988
|
+
resetSection(entry: RenderSection): void;
|
|
7989
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleSettingsRenderer, never>;
|
|
7990
|
+
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>;
|
|
7991
|
+
}
|
|
7992
|
+
|
|
7993
|
+
/**
|
|
7994
|
+
* Expand a "clear this field" reset into the patches the renderer would emit.
|
|
7995
|
+
* The shadow control is a preset select whose edit path also writes the derived
|
|
7996
|
+
* `cardStyleConfig.shadows` array, so a reset must clear BOTH or the rendered
|
|
7997
|
+
* box-shadow lingers. Shared by resetSection() and resetAll().
|
|
7998
|
+
*/
|
|
7999
|
+
declare function expandResetPatches(path: string): ControlPatch[];
|
|
8000
|
+
/**
|
|
8001
|
+
* Renders ONE schema `ControlField` as the appropriate `mt-*` control using
|
|
8002
|
+
* reactive forms (no ngModel). Scalar types own a `FormControl` synced from the
|
|
8003
|
+
* persisted value; composite types delegate to controlled editor components.
|
|
8004
|
+
* Emits a `ControlPatch` (path + value) on every change.
|
|
8005
|
+
*/
|
|
8006
|
+
declare class StyleField {
|
|
8007
|
+
readonly field: _angular_core.InputSignal<ControlField>;
|
|
8008
|
+
readonly persisted: _angular_core.InputSignal<_masterteam_dashboard_builder.ItemConfig | null>;
|
|
8009
|
+
readonly capability: _angular_core.InputSignal<ChartCapability | null>;
|
|
8010
|
+
/** Live legend entries (from preview data) for the legendOrder control. */
|
|
8011
|
+
readonly legendItems: _angular_core.InputSignal<LegendOrderItem[]>;
|
|
8012
|
+
readonly patch: _angular_core.OutputEmitterRef<ControlPatch>;
|
|
8013
|
+
/** FormControl backing scalar field types. */
|
|
8014
|
+
readonly control: FormControl<unknown>;
|
|
8015
|
+
/** FormControl backing the Advanced JSON escape hatch. */
|
|
8016
|
+
readonly jsonControl: FormControl<string>;
|
|
8017
|
+
readonly jsonError: _angular_core.WritableSignal<string | null>;
|
|
8018
|
+
private readonly destroyRef;
|
|
8019
|
+
private syncing;
|
|
8020
|
+
private syncingJson;
|
|
8021
|
+
/** True for types that own their own state (controlled, no FormControl). */
|
|
8022
|
+
readonly isComposite: _angular_core.Signal<boolean>;
|
|
8023
|
+
readonly currentValue: _angular_core.Signal<unknown>;
|
|
8024
|
+
constructor();
|
|
8025
|
+
options(): ControlOption[];
|
|
8026
|
+
/** select uses a search box once the list is long enough to need one. */
|
|
8027
|
+
get useFilter(): boolean;
|
|
8028
|
+
/** Numeric bounds fall back to mt-number-field's own permissive defaults. */
|
|
8029
|
+
get numberMin(): number;
|
|
8030
|
+
get numberMax(): number;
|
|
8031
|
+
conditionFields(): ControlField[];
|
|
8032
|
+
mapKeys(): ControlOption[];
|
|
8033
|
+
readArray(): unknown[];
|
|
8034
|
+
readColors(): string[];
|
|
8035
|
+
readMap(): Record<string, unknown>;
|
|
8036
|
+
/** keyValueMap accepts either a map or a positional array (asArray mode). */
|
|
8037
|
+
readMapOrArray(): Record<string, unknown> | unknown[];
|
|
8038
|
+
readJson(): string;
|
|
8039
|
+
emitValue(value: unknown): void;
|
|
8040
|
+
onJsonInput(raw: string): void;
|
|
8041
|
+
private emitScalar;
|
|
8042
|
+
private emitShadowPreset;
|
|
8043
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleField, never>;
|
|
8044
|
+
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>;
|
|
8045
|
+
}
|
|
8046
|
+
|
|
8047
|
+
/**
|
|
8048
|
+
* Segmented (button-group) selector — a tactile alternative to a dropdown for
|
|
8049
|
+
* short option sets such as position / alignment / orientation. Controlled:
|
|
8050
|
+
* takes the current `value` and emits `valueChange`; no internal form state.
|
|
8051
|
+
*/
|
|
8052
|
+
declare class SegmentedField {
|
|
8053
|
+
readonly options: _angular_core.InputSignal<ControlOption[]>;
|
|
8054
|
+
readonly value: _angular_core.InputSignal<unknown>;
|
|
8055
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
8056
|
+
/** Accessible name for the button group (screen readers). */
|
|
8057
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
8058
|
+
readonly valueChange: _angular_core.OutputEmitterRef<unknown>;
|
|
8059
|
+
readonly normalizedValue: _angular_core.Signal<unknown>;
|
|
8060
|
+
isActive(option: ControlOption): boolean;
|
|
8061
|
+
select(option: ControlOption): void;
|
|
8062
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedField, never>;
|
|
8063
|
+
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>;
|
|
8064
|
+
}
|
|
8065
|
+
|
|
8066
|
+
/**
|
|
8067
|
+
* Reorderable palette editor — replaces the legacy comma-separated textarea.
|
|
8068
|
+
* Each entry is an `mt-color-picker-field` chip; rows drag to reorder, with
|
|
8069
|
+
* quick-add swatches. Controlled: `value` in, `valueChange` (string[]) out.
|
|
8070
|
+
*/
|
|
8071
|
+
declare class ColorListField {
|
|
8072
|
+
readonly value: _angular_core.InputSignal<string[] | null>;
|
|
8073
|
+
readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
|
|
8074
|
+
/** Working list of colors with stable per-row FormControls for the picker. */
|
|
8075
|
+
readonly rows: _angular_core.WritableSignal<{
|
|
8076
|
+
id: number;
|
|
8077
|
+
control: FormControl<string>;
|
|
8078
|
+
}[]>;
|
|
8079
|
+
readonly quickSwatches: string[];
|
|
8080
|
+
private nextId;
|
|
8081
|
+
private syncing;
|
|
8082
|
+
constructor();
|
|
8083
|
+
addColor(color?: string): void;
|
|
8084
|
+
removeColor(index: number): void;
|
|
8085
|
+
onColorChange(): void;
|
|
8086
|
+
drop(event: CdkDragDrop<unknown>): void;
|
|
8087
|
+
private emit;
|
|
8088
|
+
private sameList;
|
|
8089
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorListField, never>;
|
|
8090
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorListField, "mt-color-list-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
8091
|
+
}
|
|
8092
|
+
|
|
8093
|
+
interface ArrayRow {
|
|
8094
|
+
id: number;
|
|
8095
|
+
group: FormGroup;
|
|
8096
|
+
}
|
|
8097
|
+
/**
|
|
8098
|
+
* Generic add/remove/reorder editor for arrays of objects — replaces the four
|
|
8099
|
+
* copy-paste array builders (override labels, shadows, order rows). Each row is
|
|
8100
|
+
* a `FormGroup` of the `itemFields` scalar sub-fields. Controlled: `value`
|
|
8101
|
+
* (object[]) in, `valueChange` (object[]) out.
|
|
8102
|
+
*/
|
|
8103
|
+
declare class ArrayBuilderField {
|
|
8104
|
+
readonly value: _angular_core.InputSignal<unknown[] | null>;
|
|
8105
|
+
readonly itemFields: _angular_core.InputSignal<ControlField[]>;
|
|
8106
|
+
readonly itemTitleKey: _angular_core.InputSignal<string | undefined>;
|
|
8107
|
+
readonly addLabel: _angular_core.InputSignal<string>;
|
|
8108
|
+
readonly maxItems: _angular_core.InputSignal<number | undefined>;
|
|
8109
|
+
readonly valueChange: _angular_core.OutputEmitterRef<unknown[]>;
|
|
8110
|
+
readonly rows: _angular_core.WritableSignal<ArrayRow[]>;
|
|
8111
|
+
private readonly destroyRef;
|
|
8112
|
+
/** Subscriptions for the current row set; torn down on every rebuild. */
|
|
8113
|
+
private rowSubs;
|
|
8114
|
+
private nextId;
|
|
8115
|
+
private syncing;
|
|
8116
|
+
constructor();
|
|
8117
|
+
get canAdd(): boolean;
|
|
8118
|
+
rowTitle(row: ArrayRow, index: number): string;
|
|
8119
|
+
control(row: ArrayRow, key: string): FormControl;
|
|
8120
|
+
options(field: ControlField): ControlOption[];
|
|
8121
|
+
add(): void;
|
|
8122
|
+
remove(index: number): void;
|
|
8123
|
+
drop(event: CdkDragDrop<unknown>): void;
|
|
8124
|
+
private buildRow;
|
|
8125
|
+
private emit;
|
|
8126
|
+
private matchesCurrent;
|
|
8127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ArrayBuilderField, never>;
|
|
8128
|
+
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>;
|
|
8129
|
+
}
|
|
8130
|
+
|
|
8131
|
+
interface MapRow {
|
|
8132
|
+
key: string;
|
|
8133
|
+
label: string;
|
|
8134
|
+
group: FormGroup;
|
|
8135
|
+
}
|
|
8136
|
+
/**
|
|
8137
|
+
* Per-key value editor for the chart's selected properties. Two storage modes:
|
|
8138
|
+
*
|
|
8139
|
+
* - default (map): `{ [propKey]: { ...valueFields } }` — e.g. per-property
|
|
8140
|
+
* translations / colors (`overrideSelectedPropertiesLabels`).
|
|
8141
|
+
* - `asArray`: a POSITIONAL array aligned to the key order — e.g.
|
|
8142
|
+
* `propsConfigAsIndex` where the runtime reads `array[index]` for the
|
|
8143
|
+
* property at that index. One row per key is always emitted to keep the
|
|
8144
|
+
* array aligned.
|
|
8145
|
+
*
|
|
8146
|
+
* Keys come from `keys` (the chart's selected properties); each renders the
|
|
8147
|
+
* scalar `valueFields` as `mt-*` controls (text / number / color / select /
|
|
8148
|
+
* boolean). Controlled: `value` in, `valueChange` out.
|
|
8149
|
+
*/
|
|
8150
|
+
declare class KeyValueMapField {
|
|
8151
|
+
readonly value: _angular_core.InputSignal<unknown[] | Record<string, unknown> | null>;
|
|
8152
|
+
readonly keys: _angular_core.InputSignal<ControlOption[]>;
|
|
8153
|
+
readonly valueFields: _angular_core.InputSignal<ControlField[]>;
|
|
8154
|
+
/** When true, store/read a positional array aligned to `keys` order. */
|
|
8155
|
+
readonly asArray: _angular_core.InputSignal<boolean>;
|
|
8156
|
+
readonly valueChange: _angular_core.OutputEmitterRef<unknown[] | Record<string, unknown>>;
|
|
8157
|
+
readonly rows: _angular_core.WritableSignal<MapRow[]>;
|
|
8158
|
+
private readonly destroyRef;
|
|
8159
|
+
/** Subscriptions for the current row set; torn down on every rebuild. */
|
|
8160
|
+
private rowSubs;
|
|
8161
|
+
private syncing;
|
|
8162
|
+
constructor();
|
|
8163
|
+
options(field: ControlField): ControlOption[];
|
|
8164
|
+
control(row: MapRow, key: string): FormControl;
|
|
8165
|
+
private existingFor;
|
|
8166
|
+
private clean;
|
|
8167
|
+
private emit;
|
|
8168
|
+
private matchesCurrent;
|
|
8169
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KeyValueMapField, never>;
|
|
8170
|
+
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>;
|
|
8171
|
+
}
|
|
8172
|
+
|
|
7306
8173
|
/**
|
|
7307
8174
|
* Filter items by group ID
|
|
7308
8175
|
*
|
|
@@ -7332,5 +8199,5 @@ declare class GetChartActionsPipe implements PipeTransform {
|
|
|
7332
8199
|
*/
|
|
7333
8200
|
declare function cloneDeep<T>(obj: T): T;
|
|
7334
8201
|
|
|
7335
|
-
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 };
|
|
7336
|
-
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 };
|
|
8202
|
+
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 };
|
|
8203
|
+
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 };
|