@masterteam/dashboard-builder 0.0.56 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +231 -120
- package/assets/dashboard-builder.css +1 -1
- package/assets/i18n/ar.json +1574 -1525
- package/assets/i18n/en.json +1299 -1248
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-C1N4w9Dz.mjs → masterteam-dashboard-builder-dashboard-dialog.component-DKzJqB0X.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-C1N4w9Dz.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-DKzJqB0X.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-DMDAO3cb.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-F3nIcsti.mjs} +1832 -838
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-F3nIcsti.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +6 -4
- package/types/masterteam-dashboard-builder.d.ts +245 -132
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-DMDAO3cb.mjs.map +0 -1
|
@@ -11,7 +11,7 @@ import * as rxjs from 'rxjs';
|
|
|
11
11
|
import { Observable } from 'rxjs';
|
|
12
12
|
import { MTIcon } from '@masterteam/icons';
|
|
13
13
|
import { TimelineScaleMode, TimelineColumnConfig, TimelineGanttMapping } from '@masterteam/timeline';
|
|
14
|
-
import { EntityData as EntityData$1 } from '@masterteam/components/entities';
|
|
14
|
+
import { EntityData as EntityData$1, EntityViewType } from '@masterteam/components/entities';
|
|
15
15
|
import { ColumnDef, TableAction, CellChangeEvent } from '@masterteam/components/table';
|
|
16
16
|
import { ActivatedRoute } from '@angular/router';
|
|
17
17
|
import { ModalService } from '@masterteam/components/modal';
|
|
@@ -400,6 +400,8 @@ interface DashboardChartItem extends GridsterItem {
|
|
|
400
400
|
id?: number;
|
|
401
401
|
/** Chart component GUID from server */
|
|
402
402
|
chartComponentId?: string;
|
|
403
|
+
/** Local dashboard identity of the chart this item was duplicated from. */
|
|
404
|
+
duplicatedFrom?: string | number;
|
|
403
405
|
config: ItemConfig;
|
|
404
406
|
chartTypeId?: string;
|
|
405
407
|
loading?: boolean;
|
|
@@ -563,9 +565,6 @@ type ItemCardMenuAction = {
|
|
|
563
565
|
};
|
|
564
566
|
declare class ItemCardMenuComponent {
|
|
565
567
|
private readonly transloco;
|
|
566
|
-
/** Per-chart filters are configured inside Manage Item (the "Filters" tab),
|
|
567
|
-
* matching the old builder — so the kebab Filters entry stays hidden. */
|
|
568
|
-
private readonly filtersActionVisible;
|
|
569
568
|
/** Whether to allow duplicate (excluded for layout/group widgets). */
|
|
570
569
|
readonly allowDuplicate: _angular_core.InputSignal<boolean>;
|
|
571
570
|
/** Whether the chart has a linked dialog already. */
|
|
@@ -575,7 +574,7 @@ declare class ItemCardMenuComponent {
|
|
|
575
574
|
/** Action emitter — host wires each id to a single concrete owner. */
|
|
576
575
|
readonly action: _angular_core.OutputEmitterRef<ItemCardMenuAction>;
|
|
577
576
|
/**
|
|
578
|
-
* Build the menu model.
|
|
577
|
+
* Build the menu model. Primary chart commands plus optional dialog entries
|
|
579
578
|
* when the chart has (or supports) a linked dialog. Each menu item carries
|
|
580
579
|
* a stable `id` so `onItemSelect` can route deterministically.
|
|
581
580
|
*/
|
|
@@ -596,18 +595,20 @@ declare class ItemCardMenuComponent {
|
|
|
596
595
|
/** Backend ChartType enum names that the host BE accepts in execution payloads. */
|
|
597
596
|
type BackendChartType = 'BarChart' | 'PropertiesBarChar' | 'DonutChart' | 'TableChart' | 'SplitterChart' | 'BarStackChart' | 'TimeLine' | 'OverviewCard' | 'TableView' | 'PercentagePieChart' | 'Properties' | 'FormulaBarChart' | 'ComparisonChart' | 'BarV2Chart' | 'PieV2Chart' | 'StackBarV2Chart' | 'CardViewV2Chart' | 'GaugeChart' | 'LineChart' | 'SplitChart' | 'GaugeComponentChart' | 'PropertyCardView';
|
|
598
597
|
type RequestType$1 = 'level' | 'levellog' | 'log' | 'custom' | 'snapShot' | 'levelCards' | 'timelineProjectDependencies' | 'customSplus' | 'phaseGate';
|
|
599
|
-
type QueryEditorKind = 'none' | 'general' | 'table' | 'properties' | 'timeline' | 'timelineMultiLevel' | 'map' | 'splitter' | 'snapshot' | 'phaseGate' | 'repeater';
|
|
598
|
+
type QueryEditorKind = 'none' | 'general' | 'table' | 'properties' | 'timeline' | 'timelineMultiLevel' | 'phaseGateTable' | 'map' | 'splitter' | 'snapshot' | 'phaseGate' | 'repeater';
|
|
600
599
|
type RendererKey = 'chart' | 'map' | 'table' | 'phaseGateTable' | 'timeline' | 'listStatistic' | 'levelCards' | 'properties' | 'entityPreview' | 'performanceCard' | 'performanceGaugeCard' | 'splitter' | 'phaseGateStepper' | 'header' | 'topbar' | 'repeater' | 'group' | 'raw';
|
|
601
600
|
type Product = 'pplus' | 'splus' | 'report';
|
|
602
601
|
/** Generic display schema field key. Open string to allow registry-specific extensions. */
|
|
603
602
|
type DisplayField = string;
|
|
604
603
|
/** Generic query schema field key. */
|
|
605
|
-
type QueryField = 'valueProperty' | 'aggregateFunction' | 'groupByProperties' | 'autoStack' | 'stackProperties' | 'autoStackByProperty' | 'categoryProperty' | 'color' | 'formula' | 'filters' | 'extraProperties' | 'showAdvancedSettings' | 'barType';
|
|
604
|
+
type QueryField = 'valueProperty' | 'aggregateFunction' | 'groupByProperties' | 'autoStack' | 'stackProperties' | 'autoStackByProperty' | 'categoryProperty' | 'color' | 'formula' | 'filters' | 'extraProperties' | 'showAdvancedSettings' | 'barType' | 'baseProperties' | 'rowIdentityProperty' | 'phaseNameProperty' | 'phaseIdProperty' | 'phaseOrderProperty' | 'phaseStatusProperty' | 'phaseProgressProperty' | 'phaseIsCurrentProperty' | 'phaseIsCompletedProperty' | 'phaseAllItemsCompletedProperty';
|
|
606
605
|
interface QuerySchema {
|
|
607
606
|
/** Visible chart-specific fields (subset of QueryField, in chosen order). */
|
|
608
607
|
fields: QueryField[];
|
|
609
608
|
/** Required fields before save. */
|
|
610
609
|
required: QueryField[];
|
|
610
|
+
/** At least one of these fields must be configured when the list is set. */
|
|
611
|
+
requiredAnyOf?: QueryField[];
|
|
611
612
|
}
|
|
612
613
|
interface DisplaySchema {
|
|
613
614
|
/** Visible display-config fields. */
|
|
@@ -1107,8 +1108,8 @@ declare function findPreset(key: StylePresetKey): StylePreset | undefined;
|
|
|
1107
1108
|
* surface them next to the right control.
|
|
1108
1109
|
*
|
|
1109
1110
|
* Validators are read-only — they never mutate the input. They DO honor
|
|
1110
|
-
* the manifest schema (`
|
|
1111
|
-
*
|
|
1111
|
+
* the manifest schema (`required` / `requiredAnyOf`) so a chart can declare
|
|
1112
|
+
* which fields must be present before save is allowed.
|
|
1112
1113
|
*/
|
|
1113
1114
|
|
|
1114
1115
|
type ValidationSeverity = 'error' | 'warning' | 'info';
|
|
@@ -1654,17 +1655,110 @@ declare class ItemGuidanceService {
|
|
|
1654
1655
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ItemGuidanceService>;
|
|
1655
1656
|
}
|
|
1656
1657
|
|
|
1658
|
+
/**
|
|
1659
|
+
* Filter Field Models
|
|
1660
|
+
*
|
|
1661
|
+
* Defines the structure for dynamic filter fields configuration
|
|
1662
|
+
* used in dashboard page filtering.
|
|
1663
|
+
*/
|
|
1664
|
+
/** Localized text with English and Arabic translations */
|
|
1665
|
+
interface LocalizedText {
|
|
1666
|
+
en: string;
|
|
1667
|
+
ar: string;
|
|
1668
|
+
}
|
|
1669
|
+
/** Filter field types supported by the system */
|
|
1670
|
+
type FilterFieldType = 'dropdownTVService' | 'lookup' | 'status' | 'phaseGate' | 'user' | 'date' | 'section' | 'separator' | 'year' | 'month' | 'quarter' | 'checkbox' | 'schemaSettings' | 'schemaSettingsLeafs';
|
|
1671
|
+
/** Selection item for dropdown configuration */
|
|
1672
|
+
interface FilterSelectionItem {
|
|
1673
|
+
id: number;
|
|
1674
|
+
service?: string | null;
|
|
1675
|
+
selector?: string | null;
|
|
1676
|
+
selectorName?: string | null;
|
|
1677
|
+
moduleType?: string;
|
|
1678
|
+
moduleId?: number;
|
|
1679
|
+
filters?: any[];
|
|
1680
|
+
modules?: any[];
|
|
1681
|
+
properties?: any[];
|
|
1682
|
+
}
|
|
1683
|
+
/** Filter field configuration details */
|
|
1684
|
+
interface FilterFieldConfiguration {
|
|
1685
|
+
payload?: {
|
|
1686
|
+
dashboardId: number;
|
|
1687
|
+
workspaceId?: string | number | null;
|
|
1688
|
+
workspace?: string | null;
|
|
1689
|
+
selection: FilterSelectionItem[];
|
|
1690
|
+
chartType: string;
|
|
1691
|
+
query: {
|
|
1692
|
+
selectedProperties: string[];
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
lookupId?: number;
|
|
1696
|
+
schemaLevelId?: number;
|
|
1697
|
+
logId?: number;
|
|
1698
|
+
isRequird?: boolean;
|
|
1699
|
+
isMultiple?: boolean;
|
|
1700
|
+
checked?: boolean;
|
|
1701
|
+
minYear?: number;
|
|
1702
|
+
maxYear?: number;
|
|
1703
|
+
}
|
|
1704
|
+
/** Filter field definition */
|
|
1705
|
+
interface FilterField {
|
|
1706
|
+
key?: string;
|
|
1707
|
+
name?: LocalizedText;
|
|
1708
|
+
type: FilterFieldType;
|
|
1709
|
+
configuration?: FilterFieldConfiguration;
|
|
1710
|
+
}
|
|
1711
|
+
/** Filter field type option for dropdown */
|
|
1712
|
+
interface FilterFieldTypeOption {
|
|
1713
|
+
value: FilterFieldType;
|
|
1714
|
+
label: string;
|
|
1715
|
+
products: string[];
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Dynamic Filter Field
|
|
1719
|
+
*
|
|
1720
|
+
* An extended filter definition with options and loading state
|
|
1721
|
+
* for chart-level dynamic filtering.
|
|
1722
|
+
*/
|
|
1723
|
+
interface DynamicFilterField extends FilterField {
|
|
1724
|
+
/** Options loaded from API */
|
|
1725
|
+
options?: DynamicFilterOption[];
|
|
1726
|
+
/** Loading state for async options */
|
|
1727
|
+
loading?: boolean;
|
|
1728
|
+
/** Currently selected value(s) */
|
|
1729
|
+
selectedValue?: any;
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Dynamic Filter Option
|
|
1733
|
+
*
|
|
1734
|
+
* A single option in a dynamic filter dropdown.
|
|
1735
|
+
*/
|
|
1736
|
+
interface DynamicFilterOption {
|
|
1737
|
+
id: number | string;
|
|
1738
|
+
name: string | LocalizedText;
|
|
1739
|
+
value?: any;
|
|
1740
|
+
color?: string;
|
|
1741
|
+
icon?: string;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1657
1744
|
declare class ChartFilterDrawer {
|
|
1658
1745
|
private readonly dialogRef;
|
|
1746
|
+
private readonly dashboardService;
|
|
1659
1747
|
private readonly drawerConfig;
|
|
1660
1748
|
readonly workingItem: _angular_core.WritableSignal<DashboardChartItem | null>;
|
|
1661
1749
|
readonly workingChips: _angular_core.WritableSignal<FilterChip[]>;
|
|
1750
|
+
readonly chartLookups: _angular_core.WritableSignal<any[]>;
|
|
1751
|
+
readonly chartLevelsSchema: _angular_core.WritableSignal<any[]>;
|
|
1752
|
+
readonly chartLevelLogs: _angular_core.WritableSignal<any[]>;
|
|
1753
|
+
readonly interactiveFilters: _angular_core.Signal<FilterField[]>;
|
|
1662
1754
|
/** Track that we have changes so cancel-without-apply discards them. */
|
|
1663
1755
|
private dirty;
|
|
1664
1756
|
/** Computed accessor to the persisted item config for the filter builder. */
|
|
1665
1757
|
readonly persisted: _angular_core.Signal<_masterteam_dashboard_builder.ItemConfig | null>;
|
|
1666
1758
|
constructor();
|
|
1667
1759
|
onChipsChange(next: FilterChip[]): void;
|
|
1760
|
+
onInteractiveFiltersChange(next: FilterField[]): void;
|
|
1761
|
+
onLoadLevelLogs(schemaLevelId: number): void;
|
|
1668
1762
|
apply(): void;
|
|
1669
1763
|
cancel(): void;
|
|
1670
1764
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartFilterDrawer, never>;
|
|
@@ -1961,6 +2055,11 @@ declare class FilterBuilderComponent {
|
|
|
1961
2055
|
readonly readOnlyCount: _angular_core.Signal<number>;
|
|
1962
2056
|
readonly fieldOptions: _angular_core.Signal<FieldOption[]>;
|
|
1963
2057
|
isKnownField(key: string): boolean;
|
|
2058
|
+
fieldOptionsFor(chip: FilterChip, t: (key: string) => string): FieldOption[];
|
|
2059
|
+
operatorOptions(t: (key: string) => string): {
|
|
2060
|
+
value: FilterOperator;
|
|
2061
|
+
label: string;
|
|
2062
|
+
}[];
|
|
1964
2063
|
scopeLabelKey(scope: FilterChip['scope']): string;
|
|
1965
2064
|
operatorLabelKey(operator: FilterOperator): string;
|
|
1966
2065
|
formatReadonlyValue(chip: FilterChip, t?: (key: string, params?: Record<string, unknown>) => string): string;
|
|
@@ -1968,6 +2067,7 @@ declare class FilterBuilderComponent {
|
|
|
1968
2067
|
getBetween(chip: FilterChip, idx: 0 | 1): string | number;
|
|
1969
2068
|
valueKind(chip: FilterChip): 'list' | 'between' | 'boolean' | 'number' | 'text';
|
|
1970
2069
|
toggleActive(chip: FilterChip): void;
|
|
2070
|
+
setActive(chip: FilterChip, active: boolean): void;
|
|
1971
2071
|
remove(chip: FilterChip): void;
|
|
1972
2072
|
setField(chip: FilterChip, propertyKey: string): void;
|
|
1973
2073
|
setOperator(chip: FilterChip, raw: string): void;
|
|
@@ -2182,6 +2282,7 @@ declare class DatasourcePanelComponent {
|
|
|
2182
2282
|
readonly serviceConfigChange: _angular_core.OutputEmitterRef<Partial<ServiceConfig>>;
|
|
2183
2283
|
readonly openAdvanced: _angular_core.OutputEmitterRef<void>;
|
|
2184
2284
|
readonly config: _angular_core.Signal<ItemConfig | null>;
|
|
2285
|
+
readonly capability: _angular_core.Signal<_masterteam_dashboard_builder.ChartCapability | null>;
|
|
2185
2286
|
readonly chartTypeConfig: _angular_core.Signal<ChartTypeConfig | null>;
|
|
2186
2287
|
readonly summary: _angular_core.Signal<{
|
|
2187
2288
|
chartType: string;
|
|
@@ -3164,7 +3265,6 @@ declare class DashboardItem implements OnInit, OnDestroy {
|
|
|
3164
3265
|
private initialized;
|
|
3165
3266
|
/** Track current dashboardId to detect changes */
|
|
3166
3267
|
private currentDashboardId;
|
|
3167
|
-
private isMissingQueryValue;
|
|
3168
3268
|
constructor();
|
|
3169
3269
|
ngOnInit(): void;
|
|
3170
3270
|
/**
|
|
@@ -3228,6 +3328,17 @@ interface HeaderCardConfig$1 {
|
|
|
3228
3328
|
icon?: string;
|
|
3229
3329
|
iconColor?: string;
|
|
3230
3330
|
iconPlacement?: 'start' | 'end' | 'top';
|
|
3331
|
+
iconAlignment?: 'left' | 'center' | 'right';
|
|
3332
|
+
iconShape?: 'square' | 'rounded' | 'circle';
|
|
3333
|
+
iconSize?: number;
|
|
3334
|
+
iconPadding?: number;
|
|
3335
|
+
iconGap?: number;
|
|
3336
|
+
iconOpacity?: number;
|
|
3337
|
+
iconBorderColor?: string;
|
|
3338
|
+
iconBorderWidth?: number;
|
|
3339
|
+
showIcon?: boolean;
|
|
3340
|
+
showIconInGroup?: boolean;
|
|
3341
|
+
groupIconMode?: 'withTitle' | 'replaceTitle';
|
|
3231
3342
|
titleColor?: string;
|
|
3232
3343
|
}
|
|
3233
3344
|
interface CardBorderStyleConfig {
|
|
@@ -3265,6 +3376,8 @@ declare class CardContentComponent {
|
|
|
3265
3376
|
readonly title: _angular_core.InputSignal<string>;
|
|
3266
3377
|
/** Whether card is inside a group */
|
|
3267
3378
|
readonly inGroup: _angular_core.InputSignal<boolean>;
|
|
3379
|
+
/** Whether this card is the outer header for a chart group. */
|
|
3380
|
+
readonly groupHeader: _angular_core.InputSignal<boolean>;
|
|
3268
3381
|
/** Header configuration */
|
|
3269
3382
|
readonly headerConfig: _angular_core.InputSignal<HeaderCardConfig$1 | null>;
|
|
3270
3383
|
/** Style configuration (border styling) */
|
|
@@ -3304,6 +3417,12 @@ declare class CardContentComponent {
|
|
|
3304
3417
|
readonly showHeaderState: _angular_core.Signal<boolean>;
|
|
3305
3418
|
/** Computed header clickable */
|
|
3306
3419
|
readonly headerClickableState: _angular_core.Signal<boolean>;
|
|
3420
|
+
/** Icon visibility is configured independently for standalone/group headers. */
|
|
3421
|
+
readonly visibleIcon: _angular_core.Signal<string | null>;
|
|
3422
|
+
/** Group headers can replace the repeated chart title with its icon. */
|
|
3423
|
+
readonly showTitleState: _angular_core.Signal<boolean>;
|
|
3424
|
+
/** Runtime icon appearance shared by standalone and grouped chart headers. */
|
|
3425
|
+
readonly iconStyles: _angular_core.Signal<Record<string, string>>;
|
|
3307
3426
|
/** Computed header row styles from StyleConfig (color, font-size passed through) */
|
|
3308
3427
|
readonly headerRowStyles: _angular_core.Signal<Record<string, string> | null>;
|
|
3309
3428
|
/** Computed card styles from StyleConfig and cardStyleConfig */
|
|
@@ -3312,7 +3431,7 @@ declare class CardContentComponent {
|
|
|
3312
3431
|
readonly borderRadiusStyle: _angular_core.Signal<string>;
|
|
3313
3432
|
onHeaderClick(): void;
|
|
3314
3433
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardContentComponent, never>;
|
|
3315
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardContentComponent, "mt-card-content", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "headerConfig": { "alias": "headerConfig"; "required": false; "isSignal": true; }; "styleConfig": { "alias": "styleConfig"; "required": false; "isSignal": true; }; "cardStyleConfig": { "alias": "cardStyleConfig"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "headerClickable": { "alias": "headerClickable"; "required": false; "isSignal": true; }; "isNoTopEnd": { "alias": "isNoTopEnd"; "required": false; "isSignal": true; }; "isChart": { "alias": "isChart"; "required": false; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; }, { "headerClick": "headerClick"; "titleChange": "titleChange"; }, never, ["[topEnd]", "[body]", "[footer]"], true, never>;
|
|
3434
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardContentComponent, "mt-card-content", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "groupHeader": { "alias": "groupHeader"; "required": false; "isSignal": true; }; "headerConfig": { "alias": "headerConfig"; "required": false; "isSignal": true; }; "styleConfig": { "alias": "styleConfig"; "required": false; "isSignal": true; }; "cardStyleConfig": { "alias": "cardStyleConfig"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "headerClickable": { "alias": "headerClickable"; "required": false; "isSignal": true; }; "isNoTopEnd": { "alias": "isNoTopEnd"; "required": false; "isSignal": true; }; "isChart": { "alias": "isChart"; "required": false; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; }, { "headerClick": "headerClick"; "titleChange": "titleChange"; }, never, ["[topEnd]", "[body]", "[footer]"], true, never>;
|
|
3316
3435
|
}
|
|
3317
3436
|
|
|
3318
3437
|
declare class CardFilterComponent implements OnInit {
|
|
@@ -3381,92 +3500,6 @@ declare class StaticFiltersComponent implements OnInit {
|
|
|
3381
3500
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StaticFiltersComponent, "mt-static-filters", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; }, never, never, true, never>;
|
|
3382
3501
|
}
|
|
3383
3502
|
|
|
3384
|
-
/**
|
|
3385
|
-
* Filter Field Models
|
|
3386
|
-
*
|
|
3387
|
-
* Defines the structure for dynamic filter fields configuration
|
|
3388
|
-
* used in dashboard page filtering.
|
|
3389
|
-
*/
|
|
3390
|
-
/** Localized text with English and Arabic translations */
|
|
3391
|
-
interface LocalizedText {
|
|
3392
|
-
en: string;
|
|
3393
|
-
ar: string;
|
|
3394
|
-
}
|
|
3395
|
-
/** Filter field types supported by the system */
|
|
3396
|
-
type FilterFieldType = 'dropdownTVService' | 'lookup' | 'status' | 'phaseGate' | 'user' | 'date' | 'section' | 'separator' | 'year' | 'month' | 'quarter' | 'checkbox' | 'schemaSettings' | 'schemaSettingsLeafs';
|
|
3397
|
-
/** Selection item for dropdown configuration */
|
|
3398
|
-
interface FilterSelectionItem {
|
|
3399
|
-
id: number;
|
|
3400
|
-
service?: string | null;
|
|
3401
|
-
selector?: string | null;
|
|
3402
|
-
selectorName?: string | null;
|
|
3403
|
-
moduleType?: string;
|
|
3404
|
-
moduleId?: number;
|
|
3405
|
-
filters?: any[];
|
|
3406
|
-
modules?: any[];
|
|
3407
|
-
properties?: any[];
|
|
3408
|
-
}
|
|
3409
|
-
/** Filter field configuration details */
|
|
3410
|
-
interface FilterFieldConfiguration {
|
|
3411
|
-
payload?: {
|
|
3412
|
-
dashboardId: number;
|
|
3413
|
-
workspaceId?: string | number | null;
|
|
3414
|
-
workspace?: string | null;
|
|
3415
|
-
selection: FilterSelectionItem[];
|
|
3416
|
-
chartType: string;
|
|
3417
|
-
query: {
|
|
3418
|
-
selectedProperties: string[];
|
|
3419
|
-
};
|
|
3420
|
-
};
|
|
3421
|
-
lookupId?: number;
|
|
3422
|
-
schemaLevelId?: number;
|
|
3423
|
-
logId?: number;
|
|
3424
|
-
isRequird?: boolean;
|
|
3425
|
-
isMultiple?: boolean;
|
|
3426
|
-
checked?: boolean;
|
|
3427
|
-
minYear?: number;
|
|
3428
|
-
maxYear?: number;
|
|
3429
|
-
}
|
|
3430
|
-
/** Filter field definition */
|
|
3431
|
-
interface FilterField {
|
|
3432
|
-
key?: string;
|
|
3433
|
-
name?: LocalizedText;
|
|
3434
|
-
type: FilterFieldType;
|
|
3435
|
-
configuration?: FilterFieldConfiguration;
|
|
3436
|
-
}
|
|
3437
|
-
/** Filter field type option for dropdown */
|
|
3438
|
-
interface FilterFieldTypeOption {
|
|
3439
|
-
value: FilterFieldType;
|
|
3440
|
-
label: string;
|
|
3441
|
-
products: string[];
|
|
3442
|
-
}
|
|
3443
|
-
/**
|
|
3444
|
-
* Dynamic Filter Field
|
|
3445
|
-
*
|
|
3446
|
-
* An extended filter definition with options and loading state
|
|
3447
|
-
* for chart-level dynamic filtering.
|
|
3448
|
-
*/
|
|
3449
|
-
interface DynamicFilterField extends FilterField {
|
|
3450
|
-
/** Options loaded from API */
|
|
3451
|
-
options?: DynamicFilterOption[];
|
|
3452
|
-
/** Loading state for async options */
|
|
3453
|
-
loading?: boolean;
|
|
3454
|
-
/** Currently selected value(s) */
|
|
3455
|
-
selectedValue?: any;
|
|
3456
|
-
}
|
|
3457
|
-
/**
|
|
3458
|
-
* Dynamic Filter Option
|
|
3459
|
-
*
|
|
3460
|
-
* A single option in a dynamic filter dropdown.
|
|
3461
|
-
*/
|
|
3462
|
-
interface DynamicFilterOption {
|
|
3463
|
-
id: number | string;
|
|
3464
|
-
name: string | LocalizedText;
|
|
3465
|
-
value?: any;
|
|
3466
|
-
color?: string;
|
|
3467
|
-
icon?: string;
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
3503
|
declare class DynamicFiltersComponent implements OnInit {
|
|
3471
3504
|
private readonly storeService;
|
|
3472
3505
|
private readonly transloco;
|
|
@@ -4009,6 +4042,11 @@ interface CardOrderConfig {
|
|
|
4009
4042
|
propertyKey?: string;
|
|
4010
4043
|
direction?: 'asc' | 'desc';
|
|
4011
4044
|
}
|
|
4045
|
+
interface DashboardCardEntityValue {
|
|
4046
|
+
value: EntityData$1['value'];
|
|
4047
|
+
rawValue?: string;
|
|
4048
|
+
}
|
|
4049
|
+
declare function normalizeDashboardCardEntityValue(value: EntityData$1['value'] | null | undefined, rawValue: string | null | undefined, viewType: EntityViewType): DashboardCardEntityValue;
|
|
4012
4050
|
declare class PropertiesCardComponent implements OnInit, OnDestroy {
|
|
4013
4051
|
private readonly storeService;
|
|
4014
4052
|
private readonly transloco;
|
|
@@ -4052,9 +4090,7 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
|
|
|
4052
4090
|
private buildEntities;
|
|
4053
4091
|
private buildPropertyTemplateMap;
|
|
4054
4092
|
private createPlaceholderProperty;
|
|
4055
|
-
private resolveEntityValue;
|
|
4056
4093
|
private resolveEntityViewType;
|
|
4057
|
-
private isEntityValueMissing;
|
|
4058
4094
|
private humanizePropertyKey;
|
|
4059
4095
|
private resolveTabLabel;
|
|
4060
4096
|
private readString;
|
|
@@ -4467,6 +4503,8 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
4467
4503
|
readonly columns: _angular_core.WritableSignal<TableColumn[]>;
|
|
4468
4504
|
/** Labels for status display */
|
|
4469
4505
|
readonly labels: _angular_core.WritableSignal<any[]>;
|
|
4506
|
+
/** Table legends are visible by default for backward compatibility. */
|
|
4507
|
+
readonly showLegend: _angular_core.Signal<boolean>;
|
|
4470
4508
|
/** Processed table rows */
|
|
4471
4509
|
readonly tableRows: _angular_core.WritableSignal<any[]>;
|
|
4472
4510
|
/** Grouped data */
|
|
@@ -4564,11 +4602,21 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
4564
4602
|
private resolveConfiguredTableKeys;
|
|
4565
4603
|
private toStringArray;
|
|
4566
4604
|
private findLargestRow;
|
|
4605
|
+
private isCanonicalPhaseGateQuery;
|
|
4567
4606
|
private resolvePhaseGateFields;
|
|
4568
4607
|
private findFirstFieldValue;
|
|
4569
|
-
private
|
|
4608
|
+
private readPhaseGateProperty;
|
|
4609
|
+
private resolvePhaseGateFieldKey;
|
|
4610
|
+
private resolveLegacyPhaseGateAlias;
|
|
4611
|
+
private resolveLegacyFieldByViewType;
|
|
4612
|
+
private getPhaseGateFieldValue;
|
|
4613
|
+
private isConfiguredPhaseMetadataField;
|
|
4614
|
+
private isLegacyPhaseGateMetaField;
|
|
4570
4615
|
private toPhaseColumnKey;
|
|
4571
|
-
private
|
|
4616
|
+
private comparePhaseGateOrder;
|
|
4617
|
+
private getCanonicalPhaseGateGroupKey;
|
|
4618
|
+
private getLegacyPhaseGateGroupKey;
|
|
4619
|
+
private toStablePhaseGateValue;
|
|
4572
4620
|
private buildPhaseGateCell;
|
|
4573
4621
|
getLegendColor(label: any): string;
|
|
4574
4622
|
getLegendText(label: any): string;
|
|
@@ -5490,7 +5538,8 @@ declare class PhaseGateStepperHandler {
|
|
|
5490
5538
|
* Number, currency, and date formatting utilities.
|
|
5491
5539
|
*/
|
|
5492
5540
|
/**
|
|
5493
|
-
* Format
|
|
5541
|
+
* Format currency with the host pattern, falling back to legacy K/M/B/T
|
|
5542
|
+
* compaction when no canonical system pattern is available.
|
|
5494
5543
|
*/
|
|
5495
5544
|
declare function formatCurrency(value: number | string | null | undefined, config?: {
|
|
5496
5545
|
type?: 'currency';
|
|
@@ -6087,6 +6136,11 @@ declare class DashboardBuilderService {
|
|
|
6087
6136
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardBuilderService>;
|
|
6088
6137
|
}
|
|
6089
6138
|
|
|
6139
|
+
interface ManagePagesDeleteResult {
|
|
6140
|
+
action: 'deleted';
|
|
6141
|
+
id: string | number;
|
|
6142
|
+
}
|
|
6143
|
+
declare function isManagePagesDeleteResult(result: unknown): result is ManagePagesDeleteResult;
|
|
6090
6144
|
/**
|
|
6091
6145
|
* Manage Pages Component
|
|
6092
6146
|
*
|
|
@@ -6094,10 +6148,14 @@ declare class DashboardBuilderService {
|
|
|
6094
6148
|
*/
|
|
6095
6149
|
declare class ManagePages implements OnInit {
|
|
6096
6150
|
private dashboardService;
|
|
6151
|
+
private confirmationService;
|
|
6152
|
+
private transloco;
|
|
6097
6153
|
readonly modal: ModalService;
|
|
6098
6154
|
private ref;
|
|
6099
6155
|
/** Input: Report to edit (if editing) */
|
|
6100
6156
|
readonly dataEdit: _angular_core.InputSignal<Report | null>;
|
|
6157
|
+
/** Server-backed builders can delete persisted dashboards. */
|
|
6158
|
+
readonly allowDelete: _angular_core.InputSignal<boolean>;
|
|
6101
6159
|
/** Report form data */
|
|
6102
6160
|
readonly report: _angular_core.WritableSignal<{
|
|
6103
6161
|
id?: number;
|
|
@@ -6111,12 +6169,16 @@ declare class ManagePages implements OnInit {
|
|
|
6111
6169
|
}>;
|
|
6112
6170
|
/** Saving state */
|
|
6113
6171
|
readonly saving: _angular_core.WritableSignal<boolean>;
|
|
6172
|
+
/** Deleting state */
|
|
6173
|
+
readonly deleting: _angular_core.WritableSignal<boolean>;
|
|
6114
6174
|
ngOnInit(): void;
|
|
6115
6175
|
saveReport(): void;
|
|
6176
|
+
deleteReport(): void;
|
|
6177
|
+
private executeDeleteReport;
|
|
6116
6178
|
close(): void;
|
|
6117
6179
|
private clear;
|
|
6118
6180
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManagePages, never>;
|
|
6119
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManagePages, "mt-manage-pages", never, { "dataEdit": { "alias": "dataEdit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6181
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManagePages, "mt-manage-pages", never, { "dataEdit": { "alias": "dataEdit"; "required": false; "isSignal": true; }; "allowDelete": { "alias": "allowDelete"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6120
6182
|
}
|
|
6121
6183
|
|
|
6122
6184
|
/**
|
|
@@ -6436,6 +6498,7 @@ declare class ChartSettingsDrawer {
|
|
|
6436
6498
|
position: any;
|
|
6437
6499
|
iconType: any;
|
|
6438
6500
|
overrideLegendOrder: string[];
|
|
6501
|
+
colorOverrides: Record<string, unknown>;
|
|
6439
6502
|
}>;
|
|
6440
6503
|
readonly legendItems: _angular_core.Signal<LegendOrderOption[]>;
|
|
6441
6504
|
readonly showLegendTab: _angular_core.Signal<boolean>;
|
|
@@ -6493,6 +6556,8 @@ declare class ChartSettingsDrawer {
|
|
|
6493
6556
|
updateLegend(key: string, value: unknown): void;
|
|
6494
6557
|
dropLegendItem(event: CdkDragDrop<LegendOrderOption[]>): void;
|
|
6495
6558
|
resetLegendOrder(): void;
|
|
6559
|
+
legendColor(item: LegendOrderOption): string | null;
|
|
6560
|
+
updateLegendColor(item: LegendOrderOption, color: unknown): void;
|
|
6496
6561
|
/** Apply changes and close drawer */
|
|
6497
6562
|
apply(): void;
|
|
6498
6563
|
/** Close without changes */
|
|
@@ -7325,18 +7390,6 @@ declare class ManageItem implements OnInit {
|
|
|
7325
7390
|
readonly isNew: _angular_core.Signal<any>;
|
|
7326
7391
|
/** Optional informative authoring context */
|
|
7327
7392
|
readonly informativeContext: _angular_core.Signal<any>;
|
|
7328
|
-
/** Active editor tab: data source vs the per-chart filters builder. */
|
|
7329
|
-
readonly activeTab: _angular_core.WritableSignal<"filters" | "datasource">;
|
|
7330
|
-
/** Option sources for the per-chart interactive-filter builder. */
|
|
7331
|
-
readonly chartLookups: _angular_core.WritableSignal<any[]>;
|
|
7332
|
-
readonly chartLevelsSchema: _angular_core.WritableSignal<any[]>;
|
|
7333
|
-
readonly chartLevelLogs: _angular_core.WritableSignal<any[]>;
|
|
7334
|
-
/**
|
|
7335
|
-
* The chart's interactive filter fields. Persisted (like the old builder) on
|
|
7336
|
-
* `clientConfig.extraFilters.dynamicFilters`; also reads a top-level
|
|
7337
|
-
* `dynamicFilters` for forward compatibility.
|
|
7338
|
-
*/
|
|
7339
|
-
readonly dynamicFilters: _angular_core.Signal<FilterField[]>;
|
|
7340
7393
|
/** Preview pane is collapsed by default; the form gets the full width. */
|
|
7341
7394
|
readonly previewCollapsed: _angular_core.WritableSignal<boolean>;
|
|
7342
7395
|
/** Drawer is ~2/3 width for the form alone, wider while the preview is open. */
|
|
@@ -7352,10 +7405,6 @@ declare class ManageItem implements OnInit {
|
|
|
7352
7405
|
cancel(): void;
|
|
7353
7406
|
/** Update service config from the datasource editor */
|
|
7354
7407
|
onServiceConfigUpdate(partialConfig: Partial<ItemConfig['serviceConfig']>): void;
|
|
7355
|
-
/** Persist the chart's interactive filter fields (Filters tab). */
|
|
7356
|
-
onDynamicFiltersChange(next: FilterField[]): void;
|
|
7357
|
-
/** A status field needs its level's logs — derive them from the schema. */
|
|
7358
|
-
onLoadLevelLogs(schemaLevelId: number): void;
|
|
7359
7408
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageItem, never>;
|
|
7360
7409
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageItem, "mt-manage-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7361
7410
|
}
|
|
@@ -7418,6 +7467,30 @@ declare class GeneralSettings {
|
|
|
7418
7467
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GeneralSettings, "mt-general-settings", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "isDialog": { "alias": "isDialog"; "required": false; "isSignal": true; }; "hasPreselectedType": { "alias": "hasPreselectedType"; "required": false; "isSignal": true; }; }, { "configChange": "configChange"; "chartTypeChange": "chartTypeChange"; }, never, never, true, never>;
|
|
7419
7468
|
}
|
|
7420
7469
|
|
|
7470
|
+
/**
|
|
7471
|
+
* Canonical query contract for the PhaseGate table.
|
|
7472
|
+
*
|
|
7473
|
+
* `baseProperties` is the ordered list of business columns shown to the user.
|
|
7474
|
+
* `properties` and `selectedProperties` are identical backend projections and
|
|
7475
|
+
* are always rebuilt from the visible properties plus every configured role.
|
|
7476
|
+
*/
|
|
7477
|
+
interface PhaseGateTableQueryConfig {
|
|
7478
|
+
rowIdentityProperty: string;
|
|
7479
|
+
phaseNameProperty: string;
|
|
7480
|
+
phaseIdProperty: string;
|
|
7481
|
+
phaseOrderProperty: string;
|
|
7482
|
+
phaseStatusProperty: string;
|
|
7483
|
+
phaseProgressProperty: string;
|
|
7484
|
+
phaseIsCurrentProperty: string;
|
|
7485
|
+
phaseIsCompletedProperty: string;
|
|
7486
|
+
phaseAllItemsCompletedProperty: string;
|
|
7487
|
+
baseProperties: string[];
|
|
7488
|
+
properties: string[];
|
|
7489
|
+
selectedProperties: string[];
|
|
7490
|
+
}
|
|
7491
|
+
declare const PHASE_GATE_TABLE_ROLE_FIELDS: readonly ["rowIdentityProperty", "phaseNameProperty", "phaseIdProperty", "phaseOrderProperty", "phaseStatusProperty", "phaseProgressProperty", "phaseIsCurrentProperty", "phaseIsCompletedProperty", "phaseAllItemsCompletedProperty"];
|
|
7492
|
+
type PhaseGateTableRoleField = (typeof PHASE_GATE_TABLE_ROLE_FIELDS)[number];
|
|
7493
|
+
|
|
7421
7494
|
/**
|
|
7422
7495
|
* Selection module info for linking - includes properties for each selection
|
|
7423
7496
|
*/
|
|
@@ -7553,7 +7626,7 @@ interface ModuleProperties {
|
|
|
7553
7626
|
/**
|
|
7554
7627
|
* Query component type based on chart type and component name
|
|
7555
7628
|
*/
|
|
7556
|
-
type QueryComponentType = 'general' | 'table' | 'timeline' | 'timelineMultiLevel' | 'map' | 'splitter' | 'properties' | 'snapshot' | 'phaseGate' | 'repeater' | 'none';
|
|
7629
|
+
type QueryComponentType = 'general' | 'table' | 'timeline' | 'timelineMultiLevel' | 'phaseGateTable' | 'map' | 'splitter' | 'properties' | 'snapshot' | 'phaseGate' | 'repeater' | 'none';
|
|
7557
7630
|
type TimelineTimeFrame = 'monthly' | 'quarterly' | 'biannually' | 'annually';
|
|
7558
7631
|
/**
|
|
7559
7632
|
* Data Source Settings Component
|
|
@@ -7620,12 +7693,12 @@ declare class DataSourceSettings {
|
|
|
7620
7693
|
* tabs: build a selection-based query OR fetch from a custom API endpoint.
|
|
7621
7694
|
* Picking one hides the other.
|
|
7622
7695
|
*/
|
|
7623
|
-
readonly dataSourceMode: _angular_core.WritableSignal<"
|
|
7696
|
+
readonly dataSourceMode: _angular_core.WritableSignal<"selection" | "customApi">;
|
|
7624
7697
|
/**
|
|
7625
7698
|
* Active tab within the selection cycle: Selection (pick modules) · Source
|
|
7626
7699
|
* Links (joins, only with >1 selection) · Query (fields).
|
|
7627
7700
|
*/
|
|
7628
|
-
readonly activeSection: _angular_core.WritableSignal<"
|
|
7701
|
+
readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
|
|
7629
7702
|
/** Selection mode inside the selection tab (informative authoring). */
|
|
7630
7703
|
readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
|
|
7631
7704
|
readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
|
|
@@ -7802,6 +7875,21 @@ declare class DataSourceSettings {
|
|
|
7802
7875
|
* Handle table query change
|
|
7803
7876
|
*/
|
|
7804
7877
|
onTableQueryChange(query: TableQuery): void;
|
|
7878
|
+
/**
|
|
7879
|
+
* Update one semantic PhaseGate table role by property key.
|
|
7880
|
+
*
|
|
7881
|
+
* The backend projection is rebuilt on every edit so it always contains the
|
|
7882
|
+
* visible columns and every runtime role, independent of picker order.
|
|
7883
|
+
*/
|
|
7884
|
+
onPhaseGateTableRoleChange(field: PhaseGateTableRoleField, value: string | null): void;
|
|
7885
|
+
/** Update the ordered business columns rendered before the phase columns. */
|
|
7886
|
+
onPhaseGateTableBasePropertiesChange(values: string[]): void;
|
|
7887
|
+
/**
|
|
7888
|
+
* Persist the dedicated PhaseGate query and remove fields left by the old
|
|
7889
|
+
* generic table editor. `baseProperties` is the ordered visible-column list;
|
|
7890
|
+
* both backend projection aliases are rebuilt by the shared normalizer.
|
|
7891
|
+
*/
|
|
7892
|
+
private commitPhaseGateTableQuery;
|
|
7805
7893
|
/**
|
|
7806
7894
|
* Handle timeline query change
|
|
7807
7895
|
*/
|
|
@@ -7867,6 +7955,8 @@ declare class DataSourceSettings {
|
|
|
7867
7955
|
* Reads the phaseGate levelId — convenience accessor for the template.
|
|
7868
7956
|
*/
|
|
7869
7957
|
readonly phaseGateLevelId: _angular_core.Signal<string>;
|
|
7958
|
+
/** Dedicated PhaseGate table query hydrated from legacy table configs. */
|
|
7959
|
+
readonly phaseGateTableQuery: _angular_core.Signal<PhaseGateTableQueryConfig>;
|
|
7870
7960
|
/**
|
|
7871
7961
|
* Reads the current timeline-multi-level query for the template.
|
|
7872
7962
|
*/
|
|
@@ -7931,6 +8021,11 @@ interface TriggerOption {
|
|
|
7931
8021
|
readonly value: string;
|
|
7932
8022
|
readonly icon: string;
|
|
7933
8023
|
}
|
|
8024
|
+
/** Browser target for navigation actions. */
|
|
8025
|
+
interface NavigationTargetOption {
|
|
8026
|
+
readonly label: string;
|
|
8027
|
+
readonly value: 'currentTab' | 'newTab';
|
|
8028
|
+
}
|
|
7934
8029
|
/**
|
|
7935
8030
|
* A single unified action filter. `propertyKey` is the param sent to the
|
|
7936
8031
|
* target/dialog; `propertyValue` is either a literal (static) or a `{{token}}`
|
|
@@ -7983,6 +8078,7 @@ declare class ActionsSettings {
|
|
|
7983
8078
|
readonly actionTypeOptions: readonly ActionTypeOption[];
|
|
7984
8079
|
/** Trigger type options - using valid icons from icons.json */
|
|
7985
8080
|
readonly triggerOptions: readonly TriggerOption[];
|
|
8081
|
+
readonly navigationTargetOptions: readonly NavigationTargetOption[];
|
|
7986
8082
|
/** Current actions list */
|
|
7987
8083
|
readonly actions: _angular_core.Signal<ActionConfig[]>;
|
|
7988
8084
|
/**
|
|
@@ -8007,6 +8103,8 @@ declare class ActionsSettings {
|
|
|
8007
8103
|
* key/pivot tokens the dialog depends on.
|
|
8008
8104
|
*/
|
|
8009
8105
|
isDialogAction(action: ActionConfig): boolean;
|
|
8106
|
+
/** Navigation target applies to both navigation choices exposed by this UI. */
|
|
8107
|
+
supportsNavigationTarget(action: ActionConfig): boolean;
|
|
8010
8108
|
/** Remove an action */
|
|
8011
8109
|
removeAction(index: number): void;
|
|
8012
8110
|
/** Duplicate an action */
|
|
@@ -8076,15 +8174,20 @@ declare class ChartViewer {
|
|
|
8076
8174
|
/** Preview only renders when the selected capability has enough config. */
|
|
8077
8175
|
readonly canPreview: _angular_core.Signal<boolean>;
|
|
8078
8176
|
/**
|
|
8079
|
-
* Refresh the preview
|
|
8080
|
-
*
|
|
8081
|
-
*
|
|
8177
|
+
* Refresh the preview with a local overlay. The rendered chart stays mounted
|
|
8178
|
+
* so settings, scroll position, and chart layout do not flicker between edits.
|
|
8179
|
+
* Coalesces rapid calls into one feedback window.
|
|
8082
8180
|
*/
|
|
8083
8181
|
refresh(): void;
|
|
8084
8182
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartViewer, never>;
|
|
8085
8183
|
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>;
|
|
8086
8184
|
}
|
|
8087
8185
|
|
|
8186
|
+
interface LegendColorChange {
|
|
8187
|
+
name: string;
|
|
8188
|
+
color: string | null;
|
|
8189
|
+
}
|
|
8190
|
+
|
|
8088
8191
|
/** A legend entry surfaced from the chart's live preview data. */
|
|
8089
8192
|
interface LegendOrderItem {
|
|
8090
8193
|
key: string;
|
|
@@ -8096,17 +8199,22 @@ interface LegendOrderItem {
|
|
|
8096
8199
|
* the live preview data (already ordered by the saved override); dragging emits
|
|
8097
8200
|
* the new order as a name array written to
|
|
8098
8201
|
* `clientConfig.configAsType.legend.overrideLegendOrder`. Reset emits `[]`
|
|
8099
|
-
* (natural order).
|
|
8202
|
+
* (natural order). Every row also exposes an independent color override keyed
|
|
8203
|
+
* by the rendered legend name.
|
|
8100
8204
|
*/
|
|
8101
8205
|
declare class LegendOrderField {
|
|
8102
8206
|
readonly items: _angular_core.InputSignal<LegendOrderItem[]>;
|
|
8207
|
+
readonly colorOverrides: _angular_core.InputSignal<Record<string, unknown>>;
|
|
8103
8208
|
readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
|
|
8209
|
+
readonly colorChange: _angular_core.OutputEmitterRef<LegendColorChange>;
|
|
8104
8210
|
/** Working list is just the input — reorder mutates a copy and emits. */
|
|
8105
8211
|
readonly rows: _angular_core.Signal<LegendOrderItem[]>;
|
|
8106
8212
|
drop(event: CdkDragDrop<unknown>): void;
|
|
8107
8213
|
reset(): void;
|
|
8214
|
+
colorFor(item: LegendOrderItem): string | null;
|
|
8215
|
+
setColor(item: LegendOrderItem, color: unknown): void;
|
|
8108
8216
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LegendOrderField, never>;
|
|
8109
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendOrderField, "mt-legend-order-field", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
8217
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendOrderField, "mt-legend-order-field", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "colorOverrides": { "alias": "colorOverrides"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "colorChange": "colorChange"; }, never, never, true, never>;
|
|
8110
8218
|
}
|
|
8111
8219
|
|
|
8112
8220
|
interface NavGroup {
|
|
@@ -8121,6 +8229,7 @@ declare class StyleStudioDrawer {
|
|
|
8121
8229
|
private readonly chartDataService;
|
|
8122
8230
|
private readonly itemStoreService;
|
|
8123
8231
|
private readonly dashboardStore;
|
|
8232
|
+
private readonly destroyRef;
|
|
8124
8233
|
readonly modal: ModalService;
|
|
8125
8234
|
private readonly scrollPane;
|
|
8126
8235
|
/** Working copy of the chart (deep-cloned so Cancel never mutates source). */
|
|
@@ -8139,9 +8248,11 @@ declare class StyleStudioDrawer {
|
|
|
8139
8248
|
* real chart untouched.
|
|
8140
8249
|
*/
|
|
8141
8250
|
readonly previewId: string;
|
|
8142
|
-
/** The live preview viewer
|
|
8251
|
+
/** The live preview viewer; only its content shows refresh feedback. */
|
|
8143
8252
|
private readonly previewViewer;
|
|
8253
|
+
private previewSyncTimer;
|
|
8144
8254
|
constructor();
|
|
8255
|
+
private schedulePreviewSync;
|
|
8145
8256
|
/** Re-process + push the working config into the isolated preview store. */
|
|
8146
8257
|
private syncPreviewStore;
|
|
8147
8258
|
readonly itemConfig: _angular_core.Signal<ItemConfig | null>;
|
|
@@ -8289,8 +8400,10 @@ declare class StyleField {
|
|
|
8289
8400
|
readMap(): Record<string, unknown>;
|
|
8290
8401
|
/** keyValueMap accepts either a map or a positional array (asArray mode). */
|
|
8291
8402
|
readMapOrArray(): Record<string, unknown> | unknown[];
|
|
8403
|
+
readLegendColorOverrides(): Record<string, unknown>;
|
|
8292
8404
|
readJson(): string;
|
|
8293
8405
|
emitValue(value: unknown): void;
|
|
8406
|
+
onLegendColorChange(change: LegendColorChange): void;
|
|
8294
8407
|
onJsonInput(raw: string): void;
|
|
8295
8408
|
private emitScalar;
|
|
8296
8409
|
private emitShadowPreset;
|
|
@@ -8403,12 +8516,12 @@ interface MapRow {
|
|
|
8403
8516
|
* boolean). Controlled: `value` in, `valueChange` out.
|
|
8404
8517
|
*/
|
|
8405
8518
|
declare class KeyValueMapField {
|
|
8406
|
-
readonly value: _angular_core.InputSignal<
|
|
8519
|
+
readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
|
|
8407
8520
|
readonly keys: _angular_core.InputSignal<ControlOption[]>;
|
|
8408
8521
|
readonly valueFields: _angular_core.InputSignal<ControlField[]>;
|
|
8409
8522
|
/** When true, store/read a positional array aligned to `keys` order. */
|
|
8410
8523
|
readonly asArray: _angular_core.InputSignal<boolean>;
|
|
8411
|
-
readonly valueChange: _angular_core.OutputEmitterRef<
|
|
8524
|
+
readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
|
|
8412
8525
|
readonly rows: _angular_core.WritableSignal<MapRow[]>;
|
|
8413
8526
|
private readonly destroyRef;
|
|
8414
8527
|
/** Subscriptions for the current row set; torn down on every rebuild. */
|
|
@@ -8454,5 +8567,5 @@ declare class GetChartActionsPipe implements PipeTransform {
|
|
|
8454
8567
|
*/
|
|
8455
8568
|
declare function cloneDeep<T>(obj: T): T;
|
|
8456
8569
|
|
|
8457
|
-
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 };
|
|
8458
|
-
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 };
|
|
8570
|
+
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, isManagePagesDeleteResult, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
|
|
8571
|
+
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, ManagePagesDeleteResult, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, ParseResult, PersistedItemConfig, PhaseGateProperty, PhaseGateStep, PieChartData, PopoverTab, PopoverTabSpec, Product, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QueryEditorKind, QueryField, QuerySchema, QuickManageType, RendererKey, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, RuntimeItemConfig, SelectionFilter, ServiceConfig, ServiceItem, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };
|