@masterteam/dashboard-builder 0.0.121 → 0.0.123

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.
@@ -1649,7 +1649,7 @@ declare function formatForEditor(value: unknown): string;
1649
1649
  * renders a small bespoke editor so structured config never falls back to a raw
1650
1650
  * JSON textarea. `json` is retained ONLY for the Advanced escape hatch.
1651
1651
  */
1652
- type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color' | 'select' | 'multiselect' | 'iconPicker' | 'palette' | 'json' | 'numberRange' | 'cssDimension' | 'segmented' | 'colorList' | 'arrayBuilder' | 'keyValueMap' | 'conditionBuilder' | 'legendOrder' | 'entryColors';
1652
+ type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color' | 'select' | 'multiselect' | 'iconPicker' | 'palette' | 'json' | 'numberRange' | 'cssDimension' | 'segmented' | 'colorList' | 'arrayBuilder' | 'keyValueMap' | 'conditionBuilder' | 'legendOrder' | 'entryColors' | 'seriesStyles';
1653
1653
  /** Where the control lives in the popover. */
1654
1654
  type ControlSectionScope = 'simple' | 'advanced';
1655
1655
  /** Domain bucket — used by the popover to group controls and validation. */
@@ -2664,10 +2664,21 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2664
2664
  y: number;
2665
2665
  }>;
2666
2666
  readonly preview: _angular_core.WritableSignal<boolean>;
2667
+ /** The document the preview shows (a copy taken when preview opens). */
2668
+ readonly previewDocument: _angular_core.WritableSignal<DashboardBuilderData | null>;
2667
2669
  readonly isReadonly: _angular_core.Signal<boolean>;
2668
2670
  readonly pendingWidgetType: _angular_core.WritableSignal<ChartTypeConfig | null>;
2669
- /** Whether the most recent action can be reverted (drives the Undo button). */
2671
+ /** Whether an unsaved action can be reverted (drives the Undo button). */
2670
2672
  readonly canUndo: _angular_core.WritableSignal<boolean>;
2673
+ /** Whether an undone action can be re-applied (drives the Redo button). */
2674
+ readonly canRedo: _angular_core.WritableSignal<boolean>;
2675
+ /**
2676
+ * The document differs from the last load or explicit Save. Drives every
2677
+ * "leave with unsaved changes" guard. Not `canUndo`: after undoing some of
2678
+ * several edits there is still unsaved work, and after undoing all of them
2679
+ * there is none.
2680
+ */
2681
+ readonly hasUnsavedChanges: _angular_core.WritableSignal<boolean>;
2671
2682
  /** Reference to widget palette drawer */
2672
2683
  private widgetPaletteRef;
2673
2684
  /** Reference to chart settings drawer */
@@ -2700,7 +2711,12 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2700
2711
  */
2701
2712
  private readonly lastItemGeometry;
2702
2713
  private readonly undoStack;
2714
+ private readonly redoStack;
2703
2715
  private readonly HISTORY_LIMIT;
2716
+ /** Signature of the document as last loaded or explicitly saved. */
2717
+ private savedSignature;
2718
+ /** Set by "Save and leave": leave once that explicit save commits. */
2719
+ private leaveAfterSave;
2704
2720
  private committedSnapshot;
2705
2721
  private committedSignature;
2706
2722
  private historyDebounce;
@@ -2797,11 +2813,22 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2797
2813
  onDrop(event: DragEvent, item: GridsterItem): void;
2798
2814
  /**
2799
2815
  * Edits — a Style Apply included — live in the document until the top Save
2800
- * writes them. `canUndo` is true exactly while there are such edits (an
2801
- * explicit save clears it), so leaving then asks first (#1883).
2816
+ * writes them, so leaving with any of them asks first (#1883). The check is
2817
+ * "differs from the last save" (`hasUnsavedChanges`), never `canUndo`: an
2818
+ * undo of one of several edits leaves unsaved work behind.
2802
2819
  */
2803
2820
  onBeforeUnload(event: BeforeUnloadEvent): void;
2821
+ /** Unsaved changes, counting an edit still inside the history debounce. */
2822
+ private unsavedChangesNow;
2804
2823
  onBackClick(): void;
2824
+ /**
2825
+ * "Save and leave": run the normal explicit save and leave only once it has
2826
+ * committed. A failed or partial save keeps the author in the builder with
2827
+ * the edits intact (the save already reports what went wrong).
2828
+ */
2829
+ private saveAndLeave;
2830
+ /** Called on every committed explicit save. */
2831
+ private leaveIfRequested;
2805
2832
  onKeyDown(event: KeyboardEvent): void;
2806
2833
  onSelect(chart: DashboardChartItem, event: MouseEvent): void;
2807
2834
  pasteSelectedCharts(): void;
@@ -2996,12 +3023,16 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2996
3023
  */
2997
3024
  private scheduleHistoryCapture;
2998
3025
  private captureHistory;
3026
+ private pushUndo;
3027
+ /** Mirror the stacks and the saved baseline into the toolbar signals. */
3028
+ private syncHistoryState;
2999
3029
  /** Commit a still-pending capture immediately (used right before an undo). */
3000
3030
  private flushPendingHistory;
3001
3031
  /** Drop all recorded history — called whenever a whole new document loads. */
3002
3032
  private resetHistory;
3003
3033
  /**
3004
- * Revert the most recent UNSAVED action (issue #1192).
3034
+ * Revert the most recent UNSAVED action (issue #1192), one step per call, up
3035
+ * to HISTORY_LIMIT steps back.
3005
3036
  *
3006
3037
  * Undo is a pre-save operation: it restores the previous local state and
3007
3038
  * never writes to the backend. Pressing Save is the commit point — a
@@ -3014,6 +3045,14 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
3014
3045
  * which is a bug in its own right rather than part of the undone state.
3015
3046
  */
3016
3047
  undo(): void;
3048
+ /**
3049
+ * Re-apply the most recently undone action. A new edit after an undo clears
3050
+ * what can be redone (captureHistory). Same ghost-link rule as undo: an item
3051
+ * the redo drops is unlinked; an item it brings back is linked again by the
3052
+ * next save.
3053
+ */
3054
+ redo(): void;
3055
+ private restoreHistoryStep;
3017
3056
  private applyHistorySnapshot;
3018
3057
  /**
3019
3058
  * Remove backend links for items the revert dropped.
@@ -3028,7 +3067,12 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
3028
3067
  * writing back `id` / `chartComponentId` is not seen as a user change.
3029
3068
  */
3030
3069
  private historySignature;
3031
- /** Shallow copy of an item without the `id` / `chartComponentId` link keys. */
3070
+ /**
3071
+ * Shallow copy of an item without the `id` / `chartComponentId` link keys and
3072
+ * the runtime-only flags (`loading`, `quickManage`), which are never saved.
3073
+ * `reRenderItem` sets `loading` on every restored chart, so leaving it in
3074
+ * made a fully undone document look different from the saved one.
3075
+ */
3032
3076
  private stripLinkIds;
3033
3077
  constructor();
3034
3078
  private applyDashboardData;
@@ -3738,6 +3782,10 @@ interface HeaderCardConfig$1 {
3738
3782
  isHeaderCentered?: boolean;
3739
3783
  headerFontSize?: number;
3740
3784
  headerColor?: string;
3785
+ /** Header background: none (default), a light tint, or solid. */
3786
+ headerFill?: 'none' | 'tint' | 'solid';
3787
+ /** Colour of the header background; the brand colour when unset. */
3788
+ headerFillColor?: string;
3741
3789
  icon?: string;
3742
3790
  iconColor?: string;
3743
3791
  iconPlacement?: 'start' | 'end' | 'top';
@@ -3838,6 +3886,14 @@ declare class CardContentComponent {
3838
3886
  readonly iconStyles: _angular_core.Signal<Record<string, string>>;
3839
3887
  /** Computed header row styles from StyleConfig (color, font-size passed through) */
3840
3888
  readonly headerRowStyles: _angular_core.Signal<Record<string, string> | null>;
3889
+ /** This card's own header background (Card header → Background). */
3890
+ readonly headerFill: _angular_core.Signal<{
3891
+ background?: string;
3892
+ titleColor?: string;
3893
+ hideDivider: boolean;
3894
+ }>;
3895
+ /** Title colour: the author's choice, else readable on a solid header. */
3896
+ readonly titleColor: _angular_core.Signal<string>;
3841
3897
  /** Computed card styles from StyleConfig and cardStyleConfig */
3842
3898
  readonly cardStyles: _angular_core.Signal<Record<string, string>>;
3843
3899
  /** Computed border radius style */
@@ -3866,7 +3922,7 @@ declare class CardFilterComponent implements OnInit {
3866
3922
  /** Language code */
3867
3923
  readonly langCode: _angular_core.Signal<string>;
3868
3924
  /** Filter type */
3869
- readonly filterType: _angular_core.Signal<"date" | "text" | "select" | "multiselect" | "multiSelect" | "daterange">;
3925
+ readonly filterType: _angular_core.Signal<"select" | "text" | "date" | "multiselect" | "multiSelect" | "daterange">;
3870
3926
  /** Filter options */
3871
3927
  readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
3872
3928
  /** Placeholder text */
@@ -3987,6 +4043,22 @@ declare class CardInfoComponent {
3987
4043
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardInfoComponent, "mt-card-info", never, { "cardInfo": { "alias": "cardInfo"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3988
4044
  }
3989
4045
 
4046
+ type PieLegendStyle = 'list' | 'table' | 'progress';
4047
+ interface PieLegendRow {
4048
+ name: string;
4049
+ color: string;
4050
+ /** Formatted with the chart's number format. */
4051
+ value: string;
4052
+ /** Share of the total, 0–100. */
4053
+ percent: number;
4054
+ }
4055
+ interface PieDataLegend {
4056
+ style: Exclude<PieLegendStyle, 'list'>;
4057
+ /** Side of the chart the legend sits on. */
4058
+ placement: 'end' | 'bottom';
4059
+ rows: PieLegendRow[];
4060
+ }
4061
+
3990
4062
  /** The point shape returned by the map handler and emitted by the widget. */
3991
4063
  interface MapViewPoint {
3992
4064
  displayName: string;
@@ -4154,6 +4226,15 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
4154
4226
  readonly configurationItem: _angular_core.WritableSignal<ItemConfig | null>;
4155
4227
  /** Handled chart data */
4156
4228
  readonly dataHandled: _angular_core.WritableSignal<ChartDataHandled | null>;
4229
+ /** Donut Table / Progress legend rows, drawn next to the chart. */
4230
+ readonly pieDataLegend: _angular_core.Signal<PieDataLegend | null>;
4231
+ /** What mt-echart draws: the option without the HTML legend rows. */
4232
+ readonly echartData: _angular_core.Signal<ChartDataHandled | null>;
4233
+ /**
4234
+ * The config mt-echart reads. With the HTML legend on, its canvas legend is
4235
+ * switched off here: mt-echart re-applies `configAsType.legend.show`.
4236
+ */
4237
+ readonly echartConfigItem: _angular_core.Signal<ItemConfig | null>;
4157
4238
  /** Card title */
4158
4239
  readonly title: _angular_core.Signal<string>;
4159
4240
  /** Show filter flag */
@@ -4214,7 +4295,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
4214
4295
  /** Whether the user can act on the Configure CTA (builder mode). */
4215
4296
  readonly canConfigure: _angular_core.Signal<boolean>;
4216
4297
  readonly hasSplitterData: _angular_core.Signal<boolean>;
4217
- readonly splitterOrientation: _angular_core.Signal<"vertical" | "horizontal">;
4298
+ readonly splitterOrientation: _angular_core.Signal<"horizontal" | "vertical">;
4218
4299
  readonly splitterGap: _angular_core.Signal<number>;
4219
4300
  readonly hasTimelineData: _angular_core.Signal<boolean>;
4220
4301
  readonly timelineEvents: _angular_core.Signal<any[]>;
@@ -4746,6 +4827,22 @@ declare class EntityPreviewCardComponent implements OnInit, OnDestroy {
4746
4827
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewCardComponent, "mt-entity-preview-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
4747
4828
  }
4748
4829
 
4830
+ /**
4831
+ * Section divider of the Header widget (`configAsType.divider`): a line drawn
4832
+ * with the section title. "Start" and "end" follow the reading direction, so
4833
+ * the same shape mirrors in Arabic.
4834
+ */
4835
+ type SectionDividerShape = 'none' | 'under' | 'above' | 'beside' | 'besideMiddle' | 'centered' | 'lineOnly';
4836
+ interface SectionDivider {
4837
+ shape: SectionDividerShape;
4838
+ lineStyle: 'solid' | 'dashed' | 'dotted';
4839
+ /** Line weight in px. */
4840
+ weight: number;
4841
+ color: string;
4842
+ /** Gap between the title and the line, and above / below the divider, px. */
4843
+ spacing: number;
4844
+ }
4845
+
4749
4846
  interface StatusItem {
4750
4847
  label: string;
4751
4848
  color: string;
@@ -4786,12 +4883,18 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
4786
4883
  readonly cols: _angular_core.Signal<number>;
4787
4884
  /** Is full width (cols == 36) */
4788
4885
  readonly isFullWidth: _angular_core.Signal<boolean>;
4886
+ /** Section divider drawn with the title (configAsType.divider). */
4887
+ readonly divider: _angular_core.Signal<SectionDivider>;
4888
+ /** The divider line itself: weight, style and colour. */
4889
+ readonly dividerLineStyle: _angular_core.Signal<{
4890
+ 'border-top': string;
4891
+ }>;
4789
4892
  /** Title with dynamic text replacement */
4790
4893
  readonly title: _angular_core.Signal<string>;
4791
4894
  /** Icon name */
4792
4895
  readonly icon: _angular_core.Signal<string>;
4793
4896
  /** Position of the layout icon relative to the header title. */
4794
- readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
4897
+ readonly iconPlacement: _angular_core.Signal<"end" | "start" | "top">;
4795
4898
  /** Logo configuration */
4796
4899
  readonly logo: _angular_core.Signal<any>;
4797
4900
  /** Logo URL */
@@ -5325,7 +5428,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
5325
5428
  readonly showSubtitle: _angular_core.Signal<boolean>;
5326
5429
  readonly icon: _angular_core.Signal<any>;
5327
5430
  /** Position of the layout icon relative to the topbar title. */
5328
- readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
5431
+ readonly iconPlacement: _angular_core.Signal<"end" | "start" | "top">;
5329
5432
  /**
5330
5433
  * Center the icon/title block within the topbar row
5331
5434
  * (configAsType.headerCardConfig.isHeaderCentered === true) — same source
@@ -5607,12 +5710,7 @@ declare class BarChartHandler {
5607
5710
  * Format X axis value using the formatXAxis utility
5608
5711
  */
5609
5712
  private formatXAxisValue;
5610
- /**
5611
- * Resolve bar corner radius with backward-compatible values:
5612
- * - undefined/null/true => default curved
5613
- * - false/0 => square corners
5614
- * - number/string => that numeric value
5615
- */
5713
+ /** Corner radius from the "Rounded corners" toggle and its slider. */
5616
5714
  private resolveBarBorderRadius;
5617
5715
  /** Convert the numeric Style Studio width into the ECharts CSS dimension. */
5618
5716
  private resolveBarWidth;
@@ -5680,6 +5778,17 @@ declare class BarChartHandler {
5680
5778
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<BarChartHandler>;
5681
5779
  }
5682
5780
 
5781
+ type PieShape = 'donut' | 'pie' | 'half';
5782
+ /** `pieConfigOverried.shape`; anything unknown (or unset) is a donut. */
5783
+ declare function resolvePieShape(value: unknown): PieShape;
5784
+ /**
5785
+ * Inner radius (in % of the card) for a shape.
5786
+ *
5787
+ * - Pie: 0, no hole.
5788
+ * - Ring thickness set: the ring covers that share of the outer radius.
5789
+ * - Otherwise the saved inner radius, or the historical 34%.
5790
+ */
5791
+ declare function resolvePieInnerRadius(shape: PieShape, ringThickness: unknown, outer: unknown, savedInner: unknown): number;
5683
5792
  declare class PieChartHandler {
5684
5793
  private readonly storeService;
5685
5794
  /**
@@ -5723,6 +5832,7 @@ declare class StackBarChartHandler {
5723
5832
  * cap is the right edge.
5724
5833
  */
5725
5834
  private stackBarCapRadius;
5835
+ /** Corner radius from the "Rounded corners" toggle and its slider. */
5726
5836
  private resolveStackBarBorderRadius;
5727
5837
  /**
5728
5838
  * Helper method to convert legend position based on language
@@ -5873,6 +5983,12 @@ declare class LineChartHandler {
5873
5983
  */
5874
5984
  handleLineChart(dataResponse: any, config: ItemConfig): any;
5875
5985
  private toLineChartData;
5986
+ /**
5987
+ * "Today" reference line: a vertical mark at the category that holds today,
5988
+ * on a chart whose X-axis is split by a date. Nothing is drawn when the axis
5989
+ * is not a date or today's period has no category.
5990
+ */
5991
+ private applyTodayLine;
5876
5992
  /**
5877
5993
  * Build ECharts configuration
5878
5994
  */
@@ -5884,10 +6000,6 @@ declare class LineChartHandler {
5884
6000
  * Get default color for series index
5885
6001
  */
5886
6002
  private getDefaultColor;
5887
- /**
5888
- * Convert hex to rgba
5889
- */
5890
- private hexToRgba;
5891
6003
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineChartHandler, never>;
5892
6004
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<LineChartHandler>;
5893
6005
  }
@@ -6449,7 +6561,7 @@ declare function applyBuiltInConditions(serviceConfig: any, clientConfig: any):
6449
6561
  * Event emitted when a dashboard action is triggered
6450
6562
  */
6451
6563
  interface DashboardListEvent {
6452
- type: 'view' | 'edit' | 'create' | 'delete' | 'manage';
6564
+ type: 'view' | 'edit' | 'create' | 'delete' | 'manage' | 'duplicate';
6453
6565
  dashboard?: DashboardPage;
6454
6566
  id?: string | number;
6455
6567
  }
@@ -6457,6 +6569,7 @@ declare class DashboardList implements OnDestroy {
6457
6569
  private dashboardService;
6458
6570
  private modalService;
6459
6571
  private transloco;
6572
+ private toast;
6460
6573
  private readonly router;
6461
6574
  private modalRef;
6462
6575
  readonly nameTpl: _angular_core.Signal<TemplateRef<any> | undefined>;
@@ -6494,6 +6607,8 @@ declare class DashboardList implements OnDestroy {
6494
6607
  readonly tableActions: _angular_core.Signal<TableAction[]>;
6495
6608
  /** Table row actions */
6496
6609
  readonly rowActions: _angular_core.Signal<TableAction[]>;
6610
+ /** Rows whose copy is being made (their Duplicate action is hidden). */
6611
+ readonly duplicatingRowIds: _angular_core.WritableSignal<(string | number)[]>;
6497
6612
  /** Deleting row IDs for loading state */
6498
6613
  readonly deletingRowIds: _angular_core.WritableSignal<(string | number)[]>;
6499
6614
  ngOnDestroy(): void;
@@ -6513,6 +6628,12 @@ declare class DashboardList implements OnDestroy {
6513
6628
  * Handle manage action - emits event for navigation
6514
6629
  */
6515
6630
  onManage(dashboard: DashboardPage): void;
6631
+ /**
6632
+ * Copy a dashboard (page settings + every chart) and list the copy. The
6633
+ * copy starts unpublished; `duplicate` carries its id for hosts that want to
6634
+ * open it.
6635
+ */
6636
+ onDuplicate(dashboard: DashboardPage): void;
6516
6637
  /**
6517
6638
  * Open create dashboard modal
6518
6639
  */
@@ -6602,6 +6723,8 @@ interface DashboardTargetsResponse {
6602
6723
  context: DashboardTargetsContextInfo;
6603
6724
  targets: DashboardTargetOption[];
6604
6725
  }
6726
+ /** Name of a dashboard copy, in both languages: "Sales (copy)" / "Sales (نسخة)". */
6727
+ declare function copyName(name: LocalizedName | undefined): LocalizedName;
6605
6728
  /**
6606
6729
  * Dashboard Builder Service
6607
6730
  *
@@ -6767,6 +6890,19 @@ declare class DashboardBuilderService {
6767
6890
  * Delete a report
6768
6891
  */
6769
6892
  deleteReport(id: string | number): Observable<ApiResponse<void>>;
6893
+ /**
6894
+ * Copy a saved dashboard: a new report with the same page settings and
6895
+ * every chart and dialog link.
6896
+ *
6897
+ * - Links keep their chart ids (unique per report only), so actions, dialogs
6898
+ * and groups that point at another chart keep working inside the copy.
6899
+ * - The saved link configuration is copied verbatim, never re-normalized.
6900
+ * - The copy starts unpublished (out of the reports menu).
6901
+ * - If any link fails, the half-made copy is deleted and the call errors,
6902
+ * so a failed copy never leaves a dashboard with missing charts behind.
6903
+ */
6904
+ duplicateReport(id: string | number): Observable<Report>;
6905
+ private linkCopiedCharts;
6770
6906
  /**
6771
6907
  * Link a chart to a report (creates or updates link)
6772
6908
  */
@@ -7006,6 +7142,12 @@ interface ManagePagesDeleteResult {
7006
7142
  id: string | number;
7007
7143
  }
7008
7144
  declare function isManagePagesDeleteResult(result: unknown): result is ManagePagesDeleteResult;
7145
+ /** "Duplicate dashboard" made a copy: `id` is the new report. */
7146
+ interface ManagePagesDuplicateResult {
7147
+ action: 'duplicated';
7148
+ id: string | number;
7149
+ }
7150
+ declare function isManagePagesDuplicateResult(result: unknown): result is ManagePagesDuplicateResult;
7009
7151
  /**
7010
7152
  * Manage Pages Component
7011
7153
  *
@@ -7015,6 +7157,7 @@ declare class ManagePages implements OnInit {
7015
7157
  private dashboardService;
7016
7158
  private confirmationService;
7017
7159
  private transloco;
7160
+ private toast;
7018
7161
  readonly modal: ModalService;
7019
7162
  private ref;
7020
7163
  /** Input: Report to edit (if editing) */
@@ -7035,6 +7178,15 @@ declare class ManagePages implements OnInit {
7035
7178
  * report in the reports menu, so it means nothing to a host-persisted page.
7036
7179
  */
7037
7180
  readonly showPublish: _angular_core.InputSignal<boolean>;
7181
+ /** Offer "Duplicate dashboard" (a saved, server-backed dashboard only). */
7182
+ readonly allowDuplicate: _angular_core.InputSignal<boolean>;
7183
+ /**
7184
+ * The builder holds edits that are not saved. The copy is made from the
7185
+ * saved dashboard, so duplicating is held back until they are saved.
7186
+ */
7187
+ readonly unsavedChanges: _angular_core.InputSignal<boolean>;
7188
+ /** Duplicating state */
7189
+ readonly duplicating: _angular_core.WritableSignal<boolean>;
7038
7190
  /** Report form data */
7039
7191
  readonly report: _angular_core.WritableSignal<{
7040
7192
  id: number | null;
@@ -7059,11 +7211,12 @@ declare class ManagePages implements OnInit {
7059
7211
  isFormInvalid(): boolean;
7060
7212
  saveReport(): void;
7061
7213
  deleteReport(): void;
7214
+ duplicateReport(): void;
7062
7215
  private executeDeleteReport;
7063
7216
  close(): void;
7064
7217
  private clear;
7065
7218
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManagePages, never>;
7066
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManagePages, "mt-manage-pages", never, { "dataEdit": { "alias": "dataEdit"; "required": false; "isSignal": true; }; "allowDelete": { "alias": "allowDelete"; "required": false; "isSignal": true; }; "persist": { "alias": "persist"; "required": false; "isSignal": true; }; "showPublish": { "alias": "showPublish"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7219
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManagePages, "mt-manage-pages", never, { "dataEdit": { "alias": "dataEdit"; "required": false; "isSignal": true; }; "allowDelete": { "alias": "allowDelete"; "required": false; "isSignal": true; }; "persist": { "alias": "persist"; "required": false; "isSignal": true; }; "showPublish": { "alias": "showPublish"; "required": false; "isSignal": true; }; "allowDuplicate": { "alias": "allowDuplicate"; "required": false; "isSignal": true; }; "unsavedChanges": { "alias": "unsavedChanges"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7067
7220
  }
7068
7221
 
7069
7222
  /**
@@ -8707,7 +8860,7 @@ declare class DataSourceSettings {
8707
8860
  * Active tab within the selection cycle: Selection (pick modules) · Source
8708
8861
  * Links (joins, only with >1 selection) · Query (fields).
8709
8862
  */
8710
- readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
8863
+ readonly activeSection: _angular_core.WritableSignal<"selection" | "query" | "sourceLinks">;
8711
8864
  /** Selection mode inside the selection tab (informative authoring). */
8712
8865
  readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
8713
8866
  readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
@@ -9708,7 +9861,7 @@ interface MapRow {
9708
9861
  * boolean). Controlled: `value` in, `valueChange` out.
9709
9862
  */
9710
9863
  declare class KeyValueMapField {
9711
- readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
9864
+ readonly value: _angular_core.InputSignal<unknown[] | Record<string, unknown> | null>;
9712
9865
  readonly keys: _angular_core.InputSignal<ControlOption[]>;
9713
9866
  readonly valueFields: _angular_core.InputSignal<ControlField[]>;
9714
9867
  /** When true, store/read a positional array aligned to `keys` order. */
@@ -9717,7 +9870,7 @@ declare class KeyValueMapField {
9717
9870
  /** Properties Card: edit localized labels in the same positional row. */
9718
9871
  readonly integratedLabels: _angular_core.InputSignal<boolean>;
9719
9872
  readonly labelOverrides: _angular_core.InputSignal<Record<string, unknown>>;
9720
- readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
9873
+ readonly valueChange: _angular_core.OutputEmitterRef<unknown[] | Record<string, unknown>>;
9721
9874
  readonly labelOverridesChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
9722
9875
  readonly rows: WritableSignal<MapRow[]>;
9723
9876
  readonly expandedRows: WritableSignal<ReadonlySet<string>>;
@@ -9826,5 +9979,5 @@ declare function firstFreePosition(items: readonly {
9826
9979
  y: number;
9827
9980
  };
9828
9981
 
9829
- export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CUSTOM_COLOR_OPTION, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, ComparisonChartHandler, DASHBOARD_BUILDER_ASSIST, DASHBOARD_ITEM_VISIBILITY, DEFAULT_MAP_REGION_KEY, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DatasourcePanelComponent, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterBuilderComponent, FilterByGroupPipe, FilterChipsBarComponent, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, GuidedConfigDialogComponent, HTTPMethod, HeaderCardComponent, ITEM_GUIDANCE_REGISTRY, ItemCardMenuComponent, ItemConfigPopoverComponent, ItemContextToolbarComponent, ItemGuidanceService, KeyValueMapField, LastHistoryLevelCardComponent, LegendOrderField, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, MAP_REGIONS, MODULE_CLASSIFICATION_LOG, MODULE_CLASSIFICATION_LOG_NAME, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, MapViewComponent, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SegmentedField, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, StyleField, StyleSettingsRenderer, StyleStudioDrawer, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, WIDGET_PALETTE_TILE_HOST, addCommasToNumber, applyBehaviorToPersisted, applyBuiltInConditions, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, createAxisFormatter, createTooltipFormatter, dashboardLevelOptions, datasourceToUi, dateDisplayRawValue, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, expandResetPatches, fieldsToUi, filtersToUi, findDomain, findPreset, firstFreePosition, flattenSchema, formatAxisLabel, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isLogClassification, isManagePagesDeleteResult, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, loadImmediately, loadTableCard, mergePropertyAppearance, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, observeNearViewport, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, resolveEntityCheckbox, resolveEntityUserPhoto, resolveMapRegion, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
9830
- export type { ActionConfig, ApiResponse, AxisLabelWrapConfig, AxisLabelWrapMode, AxisLabelWrapOptions, BackendChartType, BarChartData, BehaviorUi, BindingScope, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartCapability, ChartCapabilityLegacyAliases, RequestType$1 as ChartCapabilityRequestType, ChartData, ChartDataHandled, ChartDomainSupport, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, ConfigDomainKey, ConfigDomainSpec, ConfigLookupShape, ConfigViewAssembly, ControlBinding, ControlBindingIndex, ControlBindingValueAdapter, ControlDomain, ControlField, ControlFieldType, ControlOption, ControlPatch, ControlSchema, ControlSection, ControlSectionScope, ControlVisiblePredicate, CustomApi, DashboardBuilderAssist, DashboardBuilderData, DashboardChartDraft, DashboardChartItem, DashboardChartTemplate, DashboardDialogItem, DashboardDocumentLoadOptions, DashboardFilterLevelLog, DashboardFilterLevelSchema, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, DashboardInformativeContext, DashboardItemMark, DashboardItemStore, DashboardItemVisibility, DashboardLevelLogsResolver, DashboardLevelModule, DashboardLevelOption, DashboardListEvent, DashboardPage, DashboardSaveRequestOptions, DashboardTargetOption, DashboardTargetPathStep, DashboardTargetTemplateFilter, DashboardTargetTemplateSelection, DashboardTargetTemplateSourceLink, DashboardTargetsContextInfo, DashboardTargetsResponse, DatasourceUi, DisplayConfig, DisplayField, DisplayFieldQuery, DisplaySchema, EChartSeriesItem, ExcelSheet, FieldAssignment, FieldsUi, FilterChip, FilterConfig, FilterOperator, FilterOption, FilterScope, FilterSource, FiltersUi, FlattenedControl, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, GroupedParentOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LegendOrderItem, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedLegendLabelChange, LocalizedName, ManageFilterOnPageResult, ManagePagesDeleteResult, MapRegion, MapViewConfig, MapViewGroup, MapViewPoint, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, ParseResult, PersistedItemConfig, PhaseGateStepperData, PhaseGateStepperStep, PieChartData, PopoverTab, PopoverTabSpec, Product, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QueryEditorKind, QueryField, QuerySchema, QuickManageType, RendererKey, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, RuntimeItemConfig, SelectionFilter, ServiceConfig, ServiceItem, SnapshotLevelDataOption, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity, WidgetPaletteTileHost };
9982
+ export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CUSTOM_COLOR_OPTION, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, ComparisonChartHandler, DASHBOARD_BUILDER_ASSIST, DASHBOARD_ITEM_VISIBILITY, DEFAULT_MAP_REGION_KEY, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DatasourcePanelComponent, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterBuilderComponent, FilterByGroupPipe, FilterChipsBarComponent, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, GuidedConfigDialogComponent, HTTPMethod, HeaderCardComponent, ITEM_GUIDANCE_REGISTRY, ItemCardMenuComponent, ItemConfigPopoverComponent, ItemContextToolbarComponent, ItemGuidanceService, KeyValueMapField, LastHistoryLevelCardComponent, LegendOrderField, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, MAP_REGIONS, MODULE_CLASSIFICATION_LOG, MODULE_CLASSIFICATION_LOG_NAME, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, MapViewComponent, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SegmentedField, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, StyleField, StyleSettingsRenderer, StyleStudioDrawer, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, WIDGET_PALETTE_TILE_HOST, addCommasToNumber, applyBehaviorToPersisted, applyBuiltInConditions, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, copyName, createAxisFormatter, createTooltipFormatter, dashboardLevelOptions, datasourceToUi, dateDisplayRawValue, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, expandResetPatches, fieldsToUi, filtersToUi, findDomain, findPreset, firstFreePosition, flattenSchema, formatAxisLabel, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isLogClassification, isManagePagesDeleteResult, isManagePagesDuplicateResult, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, loadImmediately, loadTableCard, mergePropertyAppearance, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, observeNearViewport, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, resolveEntityCheckbox, resolveEntityUserPhoto, resolveMapRegion, resolvePieInnerRadius, resolvePieShape, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
9983
+ export type { ActionConfig, ApiResponse, AxisLabelWrapConfig, AxisLabelWrapMode, AxisLabelWrapOptions, BackendChartType, BarChartData, BehaviorUi, BindingScope, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartCapability, ChartCapabilityLegacyAliases, RequestType$1 as ChartCapabilityRequestType, ChartData, ChartDataHandled, ChartDomainSupport, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, ConfigDomainKey, ConfigDomainSpec, ConfigLookupShape, ConfigViewAssembly, ControlBinding, ControlBindingIndex, ControlBindingValueAdapter, ControlDomain, ControlField, ControlFieldType, ControlOption, ControlPatch, ControlSchema, ControlSection, ControlSectionScope, ControlVisiblePredicate, CustomApi, DashboardBuilderAssist, DashboardBuilderData, DashboardChartDraft, DashboardChartItem, DashboardChartTemplate, DashboardDialogItem, DashboardDocumentLoadOptions, DashboardFilterLevelLog, DashboardFilterLevelSchema, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, DashboardInformativeContext, DashboardItemMark, DashboardItemStore, DashboardItemVisibility, DashboardLevelLogsResolver, DashboardLevelModule, DashboardLevelOption, DashboardListEvent, DashboardPage, DashboardSaveRequestOptions, DashboardTargetOption, DashboardTargetPathStep, DashboardTargetTemplateFilter, DashboardTargetTemplateSelection, DashboardTargetTemplateSourceLink, DashboardTargetsContextInfo, DashboardTargetsResponse, DatasourceUi, DisplayConfig, DisplayField, DisplayFieldQuery, DisplaySchema, EChartSeriesItem, ExcelSheet, FieldAssignment, FieldsUi, FilterChip, FilterConfig, FilterOperator, FilterOption, FilterScope, FilterSource, FiltersUi, FlattenedControl, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, GroupedParentOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LegendOrderItem, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedLegendLabelChange, LocalizedName, ManageFilterOnPageResult, ManagePagesDeleteResult, ManagePagesDuplicateResult, MapRegion, MapViewConfig, MapViewGroup, MapViewPoint, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, ParseResult, PersistedItemConfig, PhaseGateStepperData, PhaseGateStepperStep, PieChartData, PieShape, PopoverTab, PopoverTabSpec, Product, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QueryEditorKind, QueryField, QuerySchema, QuickManageType, RendererKey, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, RuntimeItemConfig, SelectionFilter, ServiceConfig, ServiceItem, SnapshotLevelDataOption, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity, WidgetPaletteTileHost };