@masterteam/dashboard-builder 0.0.44 → 0.0.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/dashboard-builder",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -15,15 +15,15 @@
15
15
  "@primeuix/themes": "^2.0.3",
16
16
  "@tailwindcss/postcss": "^4.2.2",
17
17
  "@jsverse/transloco": "^8.3.0",
18
- "@masterteam/components": "^0.0.205",
19
- "@masterteam/icons": "^0.0.17",
20
- "@masterteam/timeline": "^0.0.15",
21
18
  "angular-gridster2": "^18.0.1",
22
19
  "echarts": "^5.5.0",
23
20
  "postcss": "^8.5.9",
24
21
  "primeng": "21.1.5",
25
22
  "rxjs": "^7.8.2",
26
- "tailwindcss": "^4.2.2"
23
+ "tailwindcss": "^4.2.2",
24
+ "@masterteam/icons": "^0.0.17",
25
+ "@masterteam/components": "^0.0.208",
26
+ "@masterteam/timeline": "^0.0.15"
27
27
  },
28
28
  "dependencies": {
29
29
  "tslib": "^2.8.1",
@@ -42,4 +42,4 @@
42
42
  }
43
43
  },
44
44
  "type": "module"
45
- }
45
+ }
@@ -370,6 +370,8 @@ interface DashboardDialogItem {
370
370
  name?: string;
371
371
  config: ItemConfig;
372
372
  chartTypeId?: string;
373
+ /** Backend link id, preserved so re-saving updates (not duplicates) the link. */
374
+ chartComponentId?: string;
373
375
  loading?: boolean;
374
376
  }
375
377
  /**
@@ -488,6 +490,8 @@ interface CustomApi {
488
490
  */
489
491
  type ItemCardMenuAction = {
490
492
  type: 'configure-datasource';
493
+ } | {
494
+ type: 'actions';
491
495
  } | {
492
496
  type: 'style';
493
497
  } | {
@@ -2126,6 +2130,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2126
2130
  private itemStoreService;
2127
2131
  private transloco;
2128
2132
  private modalService;
2133
+ private confirmationService;
2129
2134
  /** Whether to wrap content in mt-page component */
2130
2135
  readonly isPage: _angular_core.InputSignal<boolean>;
2131
2136
  /** Page title when isPage is true */
@@ -2240,6 +2245,11 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2240
2245
  * surfaces inside the deactivated popover/wizard).
2241
2246
  */
2242
2247
  openItemFilterDrawer(chart: DashboardChartItem): void;
2248
+ /**
2249
+ * Open the dedicated actions drawer — sole owner of a chart's
2250
+ * click/interaction actions (split out of the old ManageItem "Actions" tab).
2251
+ */
2252
+ openActionsDrawer(chart: DashboardChartItem): void;
2243
2253
  /**
2244
2254
  * Apply a partial chart-config update produced by one of the dedicated
2245
2255
  * drawers (filters, style, manage-item). Updates the chart in place,
@@ -2276,6 +2286,12 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2276
2286
  isPropertiesListChart(chart: DashboardChartItem): boolean;
2277
2287
  editItem(chart: DashboardChartItem, parentItem?: DashboardChartItem, defaultTab?: 'general' | 'dataSource' | 'actions'): void;
2278
2288
  deleteItem(chart: DashboardChartItem): void;
2289
+ /**
2290
+ * Opens the shared `mt-confirmation-dialog` (via the design-system
2291
+ * `ConfirmationService`) and runs `onConfirm` only when the user accepts.
2292
+ * Replaces the old native `window.confirm()` so deletes use the themed,
2293
+ * RTL-aware confirmation consistent with the rest of the library.
2294
+ */
2279
2295
  private confirmDelete;
2280
2296
  private removeChartLocally;
2281
2297
  newChart(value: any): void;
@@ -3460,6 +3476,8 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3460
3476
  /** Show custom legend */
3461
3477
  readonly showCustomLegend: _angular_core.Signal<boolean>;
3462
3478
  readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
3479
+ /** Custom HTML legend placement from the configured legend position. */
3480
+ readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
3463
3481
  constructor();
3464
3482
  ngOnInit(): Promise<void>;
3465
3483
  ngAfterViewInit(): void;
@@ -3934,6 +3952,8 @@ declare class TableCardComponent implements OnInit, OnDestroy {
3934
3952
  readonly dashboardId: _angular_core.InputSignal<string | number>;
3935
3953
  /** Whether card is in a group */
3936
3954
  readonly inGroup: _angular_core.InputSignal<boolean>;
3955
+ /** Hide the card header (e.g. inside a dialog where the dialog header suffices). */
3956
+ readonly hideHeader: _angular_core.InputSignal<boolean>;
3937
3957
  /** Action event output */
3938
3958
  readonly onAction: _angular_core.OutputEmitterRef<{
3939
3959
  type: string;
@@ -4048,7 +4068,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4048
4068
  */
4049
4069
  onHeaderClick(): void;
4050
4070
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableCardComponent, never>;
4051
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableCardComponent, "mt-table-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
4071
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableCardComponent, "mt-table-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "hideHeader": { "alias": "hideHeader"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
4052
4072
  }
4053
4073
 
4054
4074
  interface TopbarBreadcrumbItem {
@@ -4893,6 +4913,13 @@ declare function formatCurrency(value: number | string | null | undefined, confi
4893
4913
  handleLang?: boolean;
4894
4914
  decimals?: number;
4895
4915
  }, langCode?: string): string;
4916
+ /**
4917
+ * Resolve the currency suffix from the host's saved currency, defaulting to
4918
+ * SAR — matches the old dashboard repo and the overview-card tooltip.
4919
+ * Reads `localStorage('currency').unit`; Arabic uses a glyph map (falling back
4920
+ * to the raw unit), English uses the unit code; falls back to SAR when unset.
4921
+ */
4922
+ declare function getCurrencySuffix(langCode?: string): string;
4896
4923
  /**
4897
4924
  * Format percentage value
4898
4925
  */
@@ -4900,7 +4927,7 @@ declare function formatPercentage(value: number | string | null | undefined, dec
4900
4927
  /**
4901
4928
  * Format number with locale
4902
4929
  */
4903
- declare function formatNumber(value: number | string | null | undefined, options?: Intl.NumberFormatOptions, langCode?: string): string;
4930
+ declare function formatNumber(value: number | string | null | undefined, options?: Intl.NumberFormatOptions, _langCode?: string): string;
4904
4931
  /**
4905
4932
  * Format date
4906
4933
  */
@@ -5698,6 +5725,12 @@ interface DefaultControlConfig {
5698
5725
  borderColor: string;
5699
5726
  borderRadius: number;
5700
5727
  padding: number;
5728
+ titleAlign: 'start' | 'center' | 'end';
5729
+ iconType: 'circle' | 'rect';
5730
+ showBorderTop: boolean;
5731
+ borderTopColor: string;
5732
+ centerHeader: boolean;
5733
+ hideHeader: boolean;
5701
5734
  }
5702
5735
  declare class DefaultControlUi implements ControlValueAccessor {
5703
5736
  readonly showIconSettings: _angular_core.InputSignal<boolean>;
@@ -5707,9 +5740,21 @@ declare class DefaultControlUi implements ControlValueAccessor {
5707
5740
  label: string;
5708
5741
  value: number;
5709
5742
  }[];
5743
+ readonly alignOptions: {
5744
+ label: string;
5745
+ value: string;
5746
+ }[];
5747
+ readonly iconTypeOptions: {
5748
+ label: string;
5749
+ value: string;
5750
+ }[];
5710
5751
  private onChange;
5711
5752
  private onTouched;
5712
5753
  readonly supportsSubtitle: _angular_core.Signal<boolean>;
5754
+ /** Layout (header/topbar) appearance section visibility. */
5755
+ readonly isLayout: _angular_core.Signal<boolean>;
5756
+ /** Header-only toggles (center / hide). */
5757
+ readonly isHeader: _angular_core.Signal<boolean>;
5713
5758
  writeValue(value: DefaultControlConfig): void;
5714
5759
  registerOnChange(fn: (value: DefaultControlConfig) => void): void;
5715
5760
  registerOnTouched(fn: () => void): void;
@@ -5722,7 +5767,14 @@ declare class ChartSettingsDrawer {
5722
5767
  private dialogRef;
5723
5768
  private transloco;
5724
5769
  private drawerConfig;
5770
+ private readonly drawerController;
5725
5771
  readonly modal: ModalService;
5772
+ /** Preview is a collapsible side pane (collapsed by default), not a tab. */
5773
+ readonly previewCollapsed: _angular_core.WritableSignal<boolean>;
5774
+ /** Drawer is compact for controls, wider while the preview is open. */
5775
+ private readonly COMPACT_WIDTH;
5776
+ private readonly EXPANDED_WIDTH;
5777
+ togglePreview(): void;
5726
5778
  private readonly chartDataService;
5727
5779
  private readonly itemStoreService;
5728
5780
  private readonly dashboardStore;
@@ -6023,6 +6075,11 @@ declare class DisplaySettings {
6023
6075
  * giant in-component map no longer needs editing per chart type.
6024
6076
  */
6025
6077
  private readonly fieldPredicate;
6078
+ /**
6079
+ * Display sections intentionally hidden from the Style drawer for now
6080
+ * (kept in the template/config so they can be re-enabled later).
6081
+ */
6082
+ private readonly hiddenFields;
6026
6083
  /** Check if a field should be shown */
6027
6084
  shouldShowField(fieldName: string): boolean;
6028
6085
  shouldShowPropertiesViewSettings(): boolean;
@@ -6408,7 +6465,7 @@ declare class PieControlUi implements ControlValueAccessor {
6408
6465
  }
6409
6466
 
6410
6467
  interface BarControlConfig {
6411
- barWidth?: number;
6468
+ barWidth?: number | null;
6412
6469
  barGap?: number;
6413
6470
  barCategoryGap?: number;
6414
6471
  barType?: 'bar' | 'line';
@@ -6422,10 +6479,10 @@ interface BarControlConfig {
6422
6479
  yAxisFontColor?: string;
6423
6480
  xAxisLineColor?: string;
6424
6481
  yAxisLineColor?: string;
6425
- gridTop?: number;
6426
- gridBottom?: number;
6427
- gridLeft?: number;
6428
- gridRight?: number;
6482
+ gridTop?: number | null;
6483
+ gridBottom?: number | null;
6484
+ gridLeft?: number | null;
6485
+ gridRight?: number | null;
6429
6486
  labelShow?: boolean;
6430
6487
  labelPosition?: 'top' | 'left' | 'right' | 'bottom' | 'inside';
6431
6488
  labelFontSize?: number;
@@ -6438,7 +6495,7 @@ interface BarControlConfig {
6438
6495
  tooltipBorderWidth?: number;
6439
6496
  borderRadius?: boolean;
6440
6497
  showValueOnlyInTooltip?: boolean;
6441
- maxCharsPerLine?: number;
6498
+ maxCharsPerLine?: number | null;
6442
6499
  isGrouped?: boolean;
6443
6500
  }
6444
6501
  declare class BarControlUi implements ControlValueAccessor {
@@ -6467,6 +6524,30 @@ declare class BarControlUi implements ControlValueAccessor {
6467
6524
  label: string;
6468
6525
  value: number;
6469
6526
  }[];
6527
+ /** ECharts barWidth presets — Auto (omit) + common pixel widths. */
6528
+ readonly barWidthOptions: ({
6529
+ label: string;
6530
+ value: null;
6531
+ } | {
6532
+ label: string;
6533
+ value: number;
6534
+ })[];
6535
+ /** ECharts grid spacing presets (px) — Default lets ECharts auto-fit. */
6536
+ readonly gridSpacingOptions: ({
6537
+ label: string;
6538
+ value: null;
6539
+ } | {
6540
+ label: string;
6541
+ value: number;
6542
+ })[];
6543
+ /** Axis-label wrap length presets — Default disables wrapping. */
6544
+ readonly maxCharsPerLineOptions: ({
6545
+ label: string;
6546
+ value: null;
6547
+ } | {
6548
+ label: string;
6549
+ value: number;
6550
+ })[];
6470
6551
  private onChange;
6471
6552
  private onTouched;
6472
6553
  writeValue(value: BarControlConfig): void;
@@ -6479,7 +6560,7 @@ declare class BarControlUi implements ControlValueAccessor {
6479
6560
  }
6480
6561
 
6481
6562
  interface StackBarControlConfig {
6482
- barWidth?: number;
6563
+ barWidth?: number | null;
6483
6564
  hasLines?: boolean;
6484
6565
  barType?: 'bar' | 'line';
6485
6566
  xAxisLabelRotate?: number;
@@ -6499,10 +6580,10 @@ interface StackBarControlConfig {
6499
6580
  tooltipBackgroundColor?: string;
6500
6581
  tooltipBorderColor?: string;
6501
6582
  tooltipBorderWidth?: number;
6502
- gridLeft?: string | number;
6503
- gridRight?: string | number;
6504
- gridTop?: string | number;
6505
- gridBottom?: string | number;
6583
+ gridLeft?: string | number | null;
6584
+ gridRight?: string | number | null;
6585
+ gridTop?: string | number | null;
6586
+ gridBottom?: string | number | null;
6506
6587
  isStacked?: boolean;
6507
6588
  borderRadius?: string | number;
6508
6589
  }
@@ -6531,6 +6612,22 @@ declare class StackBarControlUi implements ControlValueAccessor {
6531
6612
  label: string;
6532
6613
  value: number;
6533
6614
  }[];
6615
+ /** ECharts barWidth presets — Auto (omit) + common pixel widths. */
6616
+ readonly barWidthOptions: ({
6617
+ label: string;
6618
+ value: null;
6619
+ } | {
6620
+ label: string;
6621
+ value: number;
6622
+ })[];
6623
+ /** ECharts grid spacing presets (px) — Default lets ECharts auto-fit. */
6624
+ readonly gridSpacingOptions: ({
6625
+ label: string;
6626
+ value: null;
6627
+ } | {
6628
+ label: string;
6629
+ value: number;
6630
+ })[];
6534
6631
  private onChange;
6535
6632
  private onTouched;
6536
6633
  writeValue(value: StackBarControlConfig): void;
@@ -6545,9 +6642,12 @@ declare class StackBarControlUi implements ControlValueAccessor {
6545
6642
  /**
6546
6643
  * Manage Item Component (Drawer)
6547
6644
  *
6548
- * Main drawer component for configuring chart/widget items.
6549
- * Uses tabs to organize different configuration sections.
6550
- * Provides ManageItemService for state sharing between child components.
6645
+ * Datasource-only editor for a chart/widget item. Title editing and click
6646
+ * actions are owned by their own dedicated card-menu drawers ("Edit item" and
6647
+ * "Actions"), so this drawer focuses entirely on the data source. The chart
6648
+ * preview is a collapsible right pane (collapsed by default) — use the drawer's
6649
+ * built-in maximize toggle to widen the whole drawer when more room is needed.
6650
+ * Provides ManageItemService for state sharing with the datasource editor.
6551
6651
  */
6552
6652
  declare class ManageItem implements OnInit {
6553
6653
  private _dashboardService;
@@ -6555,7 +6655,7 @@ declare class ManageItem implements OnInit {
6555
6655
  private _dialogConfig;
6556
6656
  readonly modal: ModalService;
6557
6657
  ref: ModalRef<any> | null;
6558
- private transloco;
6658
+ private readonly drawerController;
6559
6659
  /** Input data from drawer - supports both input() and dialog data */
6560
6660
  readonly data: _angular_core.InputSignal<{
6561
6661
  chart?: DashboardChartItem;
@@ -6568,23 +6668,7 @@ declare class ManageItem implements OnInit {
6568
6668
  };
6569
6669
  services?: readonly string[] | null;
6570
6670
  informativeContext?: DashboardInformativeContext | null;
6571
- /**
6572
- * Pass-2: which tab to open the drawer on. Configure CTA on the empty
6573
- * chart card sends `dataSource` so the user lands directly on the
6574
- * datasource flow rather than on General.
6575
- */
6576
- defaultTab?: "general" | "dataSource" | "actions";
6577
6671
  } | null>;
6578
- /** Whether chart type is pre-selected (hides type selection) */
6579
- readonly hasPreselectedType: _angular_core.Signal<boolean>;
6580
- /** Tab options with translation keys */
6581
- readonly tabOptions: _angular_core.Signal<{
6582
- label: string;
6583
- value: string;
6584
- icon: string;
6585
- }[]>;
6586
- /** Active tab */
6587
- readonly activeTab: _angular_core.WritableSignal<string>;
6588
6672
  /** Chart configuration being edited - from service */
6589
6673
  readonly config: _angular_core.Signal<ItemConfig | null>;
6590
6674
  /** Chart type ID - from service */
@@ -6597,20 +6681,21 @@ declare class ManageItem implements OnInit {
6597
6681
  readonly isNew: _angular_core.Signal<any>;
6598
6682
  /** Optional informative authoring context */
6599
6683
  readonly informativeContext: _angular_core.Signal<any>;
6684
+ /** Preview pane is collapsed by default; the form gets the full width. */
6685
+ readonly previewCollapsed: _angular_core.WritableSignal<boolean>;
6686
+ /** Drawer is ~half width for the form alone, wider while the preview is open. */
6687
+ private readonly COMPACT_WIDTH;
6688
+ private readonly EXPANDED_WIDTH;
6600
6689
  /** Saving state */
6601
6690
  readonly saving: _angular_core.WritableSignal<boolean>;
6602
6691
  /** Validation state */
6603
6692
  readonly isValid: _angular_core.Signal<boolean>;
6604
6693
  ngOnInit(): void;
6694
+ togglePreview(): void;
6605
6695
  save(): void;
6606
6696
  cancel(): void;
6607
- /** Update config from child components */
6608
- onConfigUpdate(partialConfig: Partial<ItemConfig>): void;
6609
- onChartTypeChange(type: ChartTypeConfig): void;
6610
- /** Update service config */
6697
+ /** Update service config from the datasource editor */
6611
6698
  onServiceConfigUpdate(partialConfig: Partial<ItemConfig['serviceConfig']>): void;
6612
- /** Update client config */
6613
- onClientConfigUpdate(partialConfig: Partial<ItemConfig['clientConfig']>): void;
6614
6699
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageItem, never>;
6615
6700
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageItem, "mt-manage-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6616
6701
  }
@@ -6788,12 +6873,6 @@ declare class TableQuery implements ControlValueAccessor {
6788
6873
  createAggregationFormGroup(agg?: Partial<AggregationProperty>): FormGroup;
6789
6874
  addAggregation(): void;
6790
6875
  removeAggregation(index: number): void;
6791
- selectedProperties(): string[];
6792
- pivotProperties(): string[];
6793
- moveSelectedProperty(index: number, direction: -1 | 1): void;
6794
- movePivotProperty(index: number, direction: -1 | 1): void;
6795
- getPropertyLabel(key: string): string;
6796
- private moveProperty;
6797
6876
  trackByIndex(index: number): number;
6798
6877
  private normalizeAggregateFunction;
6799
6878
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableQuery, never>;
@@ -6865,29 +6944,41 @@ declare class DataSourceSettings {
6865
6944
  /** Loading states */
6866
6945
  readonly loadingProperties: _angular_core.WritableSignal<boolean>;
6867
6946
  /**
6868
- * Pass-2: progressive-disclosure mode. `simple` shows only required fields
6869
- * + the most-common fields per chart type. `advanced` reveals every field
6870
- * (including custom API, source links, and per-property advanced options).
6871
- * No fields are removed in either mode — only their visibility is gated.
6872
- */
6873
- readonly disclosureMode: _angular_core.WritableSignal<"advanced" | "simple">;
6874
- /** Whether the user is in advanced mode. */
6875
- readonly isAdvanced: _angular_core.Signal<boolean>;
6876
- /** Toggle simple/advanced. */
6877
- onDisclosureToggle(advanced: boolean): void;
6878
- /** Tab state: 'selection' or 'customApi' */
6879
- readonly activeTab: _angular_core.WritableSignal<"selection" | "customApi">;
6880
- /** Selection mode inside the selection tab */
6947
+ * Data source mode — a top-level either/or kept as a separated area above the
6948
+ * tabs: build a selection-based query OR fetch from a custom API endpoint.
6949
+ * Picking one hides the other.
6950
+ */
6951
+ readonly dataSourceMode: _angular_core.WritableSignal<"selection" | "customApi">;
6952
+ /**
6953
+ * Active tab within the selection cycle: Selection (pick modules) · Source
6954
+ * Links (joins, only with >1 selection) · Query (fields).
6955
+ */
6956
+ readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
6957
+ /** Selection mode inside the selection tab (informative authoring). */
6881
6958
  readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
6882
6959
  readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
6883
6960
  readonly contextTargetApplyToken: _angular_core.WritableSignal<number>;
6884
6961
  /** Saved workspace id is preserved for existing configs, but no workspace endpoint is called. */
6885
6962
  readonly selectedWorkspaceId: _angular_core.WritableSignal<string | number | null>;
6886
- /** Tab options for display */
6887
- readonly tabOptions: _angular_core.Signal<{
6963
+ /**
6964
+ * Whether the Custom API mode is offered. Layout / snapshot / phaseGate
6965
+ * types have a fixed data path, so they skip the mode switch.
6966
+ */
6967
+ readonly supportsCustomApi: _angular_core.Signal<boolean>;
6968
+ /**
6969
+ * Sub-navigation tabs for the selection cycle: Selection · Source Links
6970
+ * (only when there is more than one selection) · Query.
6971
+ */
6972
+ readonly sectionOptions: _angular_core.Signal<{
6888
6973
  id: string;
6889
6974
  label: string;
6975
+ icon: string;
6890
6976
  }[]>;
6977
+ /** The active tab clamped to one that is actually available. */
6978
+ readonly visibleSection: _angular_core.Signal<string>;
6979
+ onSectionChange(id: string): void;
6980
+ /** Switch data source mode. Selecting "selection" drops any custom API. */
6981
+ onModeChange(mode: 'selection' | 'customApi'): void;
6891
6982
  /** Custom API configuration */
6892
6983
  readonly customApi: _angular_core.WritableSignal<CustomApi | null>;
6893
6984
  /** Internal selections state */
@@ -6920,12 +7011,10 @@ declare class DataSourceSettings {
6920
7011
  /** Track last loaded module signature to prevent duplicate requests */
6921
7012
  private lastLoadedSignature;
6922
7013
  /**
6923
- * Pass-2 guard: track whether we've already initialized the activeTab from
6924
- * a saved config. The Custom API ↔ Selection auto-switch should only run
6925
- * on the first config load, not on every subsequent edit; otherwise the
6926
- * user gets yanked off the Custom API tab when editing a sibling field.
7014
+ * Pick the initial tab from the saved config only once, so later local
7015
+ * edits don't yank the user off whatever tab they're working in.
6927
7016
  */
6928
- private tabInitializedFromConfig;
7017
+ private sectionInitialized;
6929
7018
  constructor();
6930
7019
  /**
6931
7020
  * Load properties for all selections using bulk API
@@ -7051,10 +7140,6 @@ declare class DataSourceSettings {
7051
7140
  * Handle isNormalized change
7052
7141
  */
7053
7142
  onIsNormalizedChange(value: boolean): void;
7054
- /**
7055
- * Handle tab change
7056
- */
7057
- onTabChange(tabId: string): void;
7058
7143
  /**
7059
7144
  * Handle custom API change
7060
7145
  */
@@ -7102,7 +7187,11 @@ declare class ActionsSettings {
7102
7187
  readonly config: _angular_core.InputSignal<ItemConfig | null>;
7103
7188
  /** Emit client config changes */
7104
7189
  readonly clientConfigChange: _angular_core.OutputEmitterRef<Partial<ClientConfig>>;
7105
- /** Action type options - using valid icons from icons.json */
7190
+ /**
7191
+ * Action type options. "Open Dialog" is intentionally NOT selectable here —
7192
+ * a dialog is created via the card's "Add dialog" action, which adds an
7193
+ * `openDialog` action. Existing openDialog actions are shown read-only.
7194
+ */
7106
7195
  readonly actionTypeOptions: readonly ActionTypeOption[];
7107
7196
  /** Trigger type options - using valid icons from icons.json */
7108
7197
  readonly triggerOptions: readonly TriggerOption[];
@@ -7124,6 +7213,11 @@ declare class ActionsSettings {
7124
7213
  * Add a new action
7125
7214
  */
7126
7215
  addAction(): void;
7216
+ /**
7217
+ * Whether an action is a dialog action (added via the card's "Add dialog"
7218
+ * flow). These are shown read-only here — managed from the dialog feature.
7219
+ */
7220
+ isDialogAction(action: ActionConfig): boolean;
7127
7221
  /**
7128
7222
  * Remove an action
7129
7223
  */
@@ -7238,5 +7332,5 @@ declare class GetChartActionsPipe implements PipeTransform {
7238
7332
  */
7239
7333
  declare function cloneDeep<T>(obj: T): T;
7240
7334
 
7241
- export { ActionsSettings, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ComparisonChartHandler, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DatasourcePanelComponent, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterBuilderComponent, FilterByGroupPipe, FilterChipsBarComponent, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, GuidedConfigDialogComponent, HTTPMethod, HeaderCardComponent, ITEM_GUIDANCE_REGISTRY, ItemCardMenuComponent, ItemConfigPopoverComponent, ItemContextToolbarComponent, ItemGuidanceService, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, addCommasToNumber, applyBehaviorToPersisted, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, createAxisFormatter, createTooltipFormatter, datasourceToUi, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, fieldsToUi, filtersToUi, findDomain, findPreset, flattenSchema, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, validate };
7335
+ export { ActionsSettings, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ComparisonChartHandler, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DatasourcePanelComponent, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterBuilderComponent, FilterByGroupPipe, FilterChipsBarComponent, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, GuidedConfigDialogComponent, HTTPMethod, HeaderCardComponent, ITEM_GUIDANCE_REGISTRY, ItemCardMenuComponent, ItemConfigPopoverComponent, ItemContextToolbarComponent, ItemGuidanceService, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, addCommasToNumber, applyBehaviorToPersisted, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, createAxisFormatter, createTooltipFormatter, datasourceToUi, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, fieldsToUi, filtersToUi, findDomain, findPreset, flattenSchema, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, validate };
7242
7336
  export type { ActionConfig, ApiResponse, BackendChartType, BarChartData, BehaviorUi, BindingScope, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartCapability, ChartCapabilityLegacyAliases, RequestType$1 as ChartCapabilityRequestType, ChartData, ChartDataHandled, ChartDomainSupport, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, ConfigDomainKey, ConfigDomainSpec, ConfigLookupShape, ConfigViewAssembly, ControlBinding, ControlBindingIndex, ControlBindingValueAdapter, ControlDomain, ControlField, ControlFieldType, ControlOption, ControlPatch, ControlSchema, ControlSection, ControlSectionScope, ControlVisiblePredicate, CustomApi, DashboardBuilderData, DashboardChartItem, DashboardChartTemplate, DashboardDialogItem, DashboardInformativeContext, DashboardItemStore, DashboardListEvent, DashboardPage, DashboardSaveRequestOptions, DashboardTargetOption, DashboardTargetPathStep, DashboardTargetTemplateFilter, DashboardTargetTemplateSelection, DashboardTargetTemplateSourceLink, DashboardTargetsContextInfo, DashboardTargetsResponse, DatasourceUi, DisplayConfig, DisplayField, DisplayFieldQuery, DisplaySchema, EChartSeriesItem, ExcelSheet, FieldAssignment, FieldsUi, FilterChip, FilterConfig, FilterOperator, FilterOption, FilterScope, FilterSource, FiltersUi, FlattenedControl, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedName, ManageFilterOnPageResult, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModulesTreeRequest, ModulesTreeResponse, ParseResult, PersistedItemConfig, PhaseGateProperty, PhaseGateStep, PieChartData, PopoverTab, PopoverTabSpec, Product, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QueryEditorKind, QueryField, QuerySchema, QuickManageType, RendererKey, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, RuntimeItemConfig, SelectionFilter, ServiceConfig, ServiceItem, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };