@masterteam/dashboard-builder 0.0.47 → 0.0.49

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.
@@ -1,2 +1,2 @@
1
- export { aw as ActionsSettings, aE as ArrayBuilderField, G as BarChartHandler, ap as BarControlUi, aS as CHART_CAPABILITIES, as as CHART_TYPES, b5 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, B as ChartDataService, aI as ChartFilterDrawer, al as ChartSettingsDrawer, ax as ChartViewer, aD as ColorListField, W as ComparisonChartHandler, b as DashboardBuilder, af as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ad as DashboardList, ag as DashboardStoreService, d as DashboardViewer, av as DataSourceSettings, aO as DatasourcePanelComponent, an as DefaultControlUi, am as DisplaySettings, r as DynamicFiltersComponent, ak as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, w as EntityPreviewCardComponent, aN as FilterBuilderComponent, aQ as FilterByGroupPipe, aM as FilterChipsBarComponent, N as GaugeChartHandler, au as GeneralSettings, aR as GetChartActionsPipe, aL as GuidedConfigDialogComponent, ae as HTTPMethod, H as HeaderCardComponent, bP as ITEM_GUIDANCE_REGISTRY, aH as ItemCardMenuComponent, aK as ItemConfigPopoverComponent, aJ as ItemContextToolbarComponent, bR as ItemGuidanceService, aF as KeyValueMapField, L as LastHistoryLevelCardComponent, aG as LegendOrderField, Y as LevelCardHandler, U as LineChartHandler, x as ListStatisticCardComponent, ai as ManageBreadcrumb, aj as ManageFilterOnPage, ar as ManageItem, at as ManageItemService, ah as ManagePages, Z as MapChartHandler, Q as OverviewCardHandler, b8 as POPOVER_TABS, b9 as POPOVER_TAB_SPECS, a0 as PhaseGateStepperHandler, I as PieChartHandler, ao as PieControlUi, P as PropertiesCardComponent, _ as RingGaugeChartHandler, $ as SPlusChartHandler, bq as STYLE_PRESETS, aP as SchemaControlRendererComponent, aC as SegmentedField, y as SkeletonCardComponent, V as SnapshotHandler, X as SplitterChartHandler, J as StackBarChartHandler, aq as StackBarControlUi, S as StaticFiltersComponent, z as StatisticCardComponent, aB as StyleField, az as StyleSettingsRenderer, ay as StyleStudioDrawer, T as TableCardComponent, O as TableViewHandler, R as TimelineHandler, A as TopbarCardComponent, m as addCommasToNumber, bm as applyBehaviorToPersisted, bB as applyControlPatchToPersisted, bC as applyControlPatchesToPersisted, bn as applyFilterChipsToPersisted, bk as applyLabelLegendFormatToPersisted, bi as applyLayoutToPersisted, bg as applyStyleToPersisted, bb as applyTitleToPersisted, K as axisFormatters, bl as behaviorToUi, bK as bindingKey, bp as buildAssembly, bJ as buildDisplayFieldPredicate, c as cloneDeep, a6 as createAxisFormatter, a7 as createTooltipFormatter, bc as datasourceToUi, bx as deepMerge, bQ as describeGuidance, b6 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aA as expandResetPatches, bd as fieldsToUi, be as filtersToUi, b7 as findDomain, bs as findPreset, bH as flattenSchema, a1 as formatCurrency, a5 as formatDate, by as formatForEditor, a4 as formatNumber, a3 as formatPercentage, j as formatValue, a8 as formatWordsUnderBar, a9 as formatXAxis, i as generalConfiguration, bL as getBinding, aT as getCapabilityById, p as getColorFromConditions, bD as getControlSchema, a2 as getCurrencySuffix, bG as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, M as groupDatesByYearAndMonth, bv as groupIssuesByDomain, ab as handleFilterForCard, ac as handleFilterForSnapshot, aa as handleFiltersForCustom, bu as hasBlockingIssues, o as isMobilePlatform, bj as labelLegendFormatToUi, bh as layoutToUi, bM as listBindings, bN as listBindingsForChart, bE as listControlSchemaIds, bF as listControlSchemas, a$ as moduleIdFromSelector, aY as normalizeAggregateFunction, b4 as normalizeBeforeRequest, b3 as normalizeBeforeSave, aW as normalizeChartTypeForRequest, aX as normalizeFilterOperation, aZ as normalizeFilters, b2 as normalizeOnLoad, bw as parseAdvancedJson, bo as persistedToUi, br as presetsForCapability, bO as readBoundValue, bz as readByPath, aU as resolveCapability, bI as resolveDisplayFields, a_ as selectorFromLegacy, bA as setByPath, l as sortChartData, n as sortDataTableView, bf as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, ba as titleToUi, aV as toBackendChartType, b0 as toBackendSourceLink, b1 as toFormSourceLink, bt as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-DysRF9eN.mjs';
1
+ export { aw as ActionsSettings, aE as ArrayBuilderField, G as BarChartHandler, ap as BarControlUi, aS as CHART_CAPABILITIES, as as CHART_TYPES, b5 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, B as ChartDataService, aI as ChartFilterDrawer, al as ChartSettingsDrawer, ax as ChartViewer, aD as ColorListField, W as ComparisonChartHandler, b as DashboardBuilder, af as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ad as DashboardList, ag as DashboardStoreService, d as DashboardViewer, av as DataSourceSettings, aO as DatasourcePanelComponent, an as DefaultControlUi, am as DisplaySettings, r as DynamicFiltersComponent, ak as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, w as EntityPreviewCardComponent, aN as FilterBuilderComponent, aQ as FilterByGroupPipe, aM as FilterChipsBarComponent, N as GaugeChartHandler, au as GeneralSettings, aR as GetChartActionsPipe, aL as GuidedConfigDialogComponent, ae as HTTPMethod, H as HeaderCardComponent, bP as ITEM_GUIDANCE_REGISTRY, aH as ItemCardMenuComponent, aK as ItemConfigPopoverComponent, aJ as ItemContextToolbarComponent, bR as ItemGuidanceService, aF as KeyValueMapField, L as LastHistoryLevelCardComponent, aG as LegendOrderField, Y as LevelCardHandler, U as LineChartHandler, x as ListStatisticCardComponent, ai as ManageBreadcrumb, aj as ManageFilterOnPage, ar as ManageItem, at as ManageItemService, ah as ManagePages, Z as MapChartHandler, Q as OverviewCardHandler, b8 as POPOVER_TABS, b9 as POPOVER_TAB_SPECS, a0 as PhaseGateStepperHandler, I as PieChartHandler, ao as PieControlUi, P as PropertiesCardComponent, _ as RingGaugeChartHandler, $ as SPlusChartHandler, bq as STYLE_PRESETS, aP as SchemaControlRendererComponent, aC as SegmentedField, y as SkeletonCardComponent, V as SnapshotHandler, X as SplitterChartHandler, J as StackBarChartHandler, aq as StackBarControlUi, S as StaticFiltersComponent, z as StatisticCardComponent, aB as StyleField, az as StyleSettingsRenderer, ay as StyleStudioDrawer, T as TableCardComponent, O as TableViewHandler, R as TimelineHandler, A as TopbarCardComponent, m as addCommasToNumber, bm as applyBehaviorToPersisted, bB as applyControlPatchToPersisted, bC as applyControlPatchesToPersisted, bn as applyFilterChipsToPersisted, bk as applyLabelLegendFormatToPersisted, bi as applyLayoutToPersisted, bg as applyStyleToPersisted, bb as applyTitleToPersisted, K as axisFormatters, bl as behaviorToUi, bK as bindingKey, bp as buildAssembly, bJ as buildDisplayFieldPredicate, c as cloneDeep, a6 as createAxisFormatter, a7 as createTooltipFormatter, bc as datasourceToUi, bx as deepMerge, bQ as describeGuidance, b6 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aA as expandResetPatches, bd as fieldsToUi, be as filtersToUi, b7 as findDomain, bs as findPreset, bH as flattenSchema, a1 as formatCurrency, a5 as formatDate, by as formatForEditor, a4 as formatNumber, a3 as formatPercentage, j as formatValue, a8 as formatWordsUnderBar, a9 as formatXAxis, i as generalConfiguration, bL as getBinding, aT as getCapabilityById, p as getColorFromConditions, bD as getControlSchema, a2 as getCurrencySuffix, bG as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, M as groupDatesByYearAndMonth, bv as groupIssuesByDomain, ab as handleFilterForCard, ac as handleFilterForSnapshot, aa as handleFiltersForCustom, bu as hasBlockingIssues, o as isMobilePlatform, bj as labelLegendFormatToUi, bh as layoutToUi, bM as listBindings, bN as listBindingsForChart, bE as listControlSchemaIds, bF as listControlSchemas, a$ as moduleIdFromSelector, aY as normalizeAggregateFunction, b4 as normalizeBeforeRequest, b3 as normalizeBeforeSave, aW as normalizeChartTypeForRequest, aX as normalizeFilterOperation, aZ as normalizeFilters, b2 as normalizeOnLoad, bw as parseAdvancedJson, bo as persistedToUi, br as presetsForCapability, bO as readBoundValue, bz as readByPath, aU as resolveCapability, bI as resolveDisplayFields, a_ as selectorFromLegacy, bA as setByPath, l as sortChartData, n as sortDataTableView, bf as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, ba as titleToUi, aV as toBackendChartType, b0 as toBackendSourceLink, b1 as toFormSourceLink, bt as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-BdAlTss1.mjs';
2
2
  //# sourceMappingURL=masterteam-dashboard-builder.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/dashboard-builder",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -21,7 +21,7 @@
21
21
  "primeng": "21.1.5",
22
22
  "rxjs": "^7.8.2",
23
23
  "tailwindcss": "^4.2.2",
24
- "@masterteam/components": "^0.0.210",
24
+ "@masterteam/components": "^0.0.213",
25
25
  "@masterteam/timeline": "^0.0.16",
26
26
  "@masterteam/icons": "^0.0.17"
27
27
  },
@@ -1271,6 +1271,11 @@ interface ControlField {
1271
1271
  * A single sub-field with `path: ''` stores a scalar per key.
1272
1272
  */
1273
1273
  valueFields?: ControlField[];
1274
+ /**
1275
+ * For `keyValueMap`: persist a POSITIONAL array aligned to the key order
1276
+ * (e.g. `propsConfigAsIndex`) instead of a `{ key: value }` map.
1277
+ */
1278
+ asArray?: boolean;
1274
1279
  }
1275
1280
  /** A logical group of fields in the popover. */
1276
1281
  interface ControlSection {
@@ -2427,6 +2432,10 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2427
2432
  private newChartWithSize;
2428
2433
  openBreadcrumb(item: DashboardChartItem): void;
2429
2434
  openManageFilter(): void;
2435
+ private resolveManageFilterSelectionContext;
2436
+ private deriveWorkspaceFromSelections;
2437
+ private deriveWorkspaceFromLevelSelector;
2438
+ private firstSelector;
2430
2439
  private applyBulkSelectionFilters;
2431
2440
  private applyBulkSelectionFiltersToItem;
2432
2441
  private applyBulkPropertyTranslations;
@@ -2478,6 +2487,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2478
2487
  * Simple reactive store for dashboard builder state management
2479
2488
  */
2480
2489
  declare class DashboardStoreService {
2490
+ private readonly limitedHttp;
2481
2491
  /** Query parameters */
2482
2492
  private queryParamsSignal;
2483
2493
  readonly queryParams: _angular_core.Signal<Record<string, any>>;
@@ -2497,9 +2507,16 @@ declare class DashboardStoreService {
2497
2507
  private reloadCurrentPageSubject;
2498
2508
  readonly reloadCurrentPage$: rxjs.Observable<void>;
2499
2509
  /**
2500
- * Trigger reload of current page
2510
+ * Trigger reload of current page.
2511
+ *
2512
+ * @param force When true, the LimitedHttpService response cache is cleared
2513
+ * first so dashboard items re-fetch fresh data from the network instead of
2514
+ * being served a cached (potentially stale) response. Pass `true` after a
2515
+ * data mutation (create/update/delete) so counts/KPIs reflect the new state
2516
+ * without requiring a full page refresh. Defaults to `false` to preserve the
2517
+ * existing cache-friendly behaviour for plain re-renders.
2501
2518
  */
2502
- triggerReloadCurrentPage(): void;
2519
+ triggerReloadCurrentPage(force?: boolean): void;
2503
2520
  /**
2504
2521
  * Update query parameters
2505
2522
  */
@@ -3283,7 +3300,7 @@ declare class CardFilterComponent implements OnInit {
3283
3300
  /** Language code */
3284
3301
  readonly langCode: _angular_core.Signal<string>;
3285
3302
  /** Filter type */
3286
- readonly filterType: _angular_core.Signal<"text" | "select" | "multiselect" | "date" | "multiSelect" | "daterange">;
3303
+ readonly filterType: _angular_core.Signal<"date" | "text" | "select" | "multiselect" | "multiSelect" | "daterange">;
3287
3304
  /** Filter options */
3288
3305
  readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
3289
3306
  /** Placeholder text */
@@ -3359,6 +3376,8 @@ interface FilterSelectionItem {
3359
3376
  interface FilterFieldConfiguration {
3360
3377
  payload?: {
3361
3378
  dashboardId: number;
3379
+ workspaceId?: string | number | null;
3380
+ workspace?: string | null;
3362
3381
  selection: FilterSelectionItem[];
3363
3382
  chartType: string;
3364
3383
  query: {
@@ -3761,7 +3780,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3761
3780
  readonly showCustomLegend: _angular_core.Signal<boolean>;
3762
3781
  readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
3763
3782
  /** Custom HTML legend placement from the configured legend position. */
3764
- readonly customLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
3783
+ readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
3765
3784
  constructor();
3766
3785
  ngOnInit(): Promise<void>;
3767
3786
  ngAfterViewInit(): void;
@@ -4421,7 +4440,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
4421
4440
  readonly iconColor: _angular_core.Signal<any>;
4422
4441
  readonly iconBackgroundColor: _angular_core.Signal<any>;
4423
4442
  readonly borderColor: _angular_core.Signal<any>;
4424
- readonly borderWidth: _angular_core.Signal<1 | 0>;
4443
+ readonly borderWidth: _angular_core.Signal<0 | 1>;
4425
4444
  readonly padding: _angular_core.Signal<number>;
4426
4445
  readonly titleFontSize: _angular_core.Signal<number>;
4427
4446
  readonly subtitleFontSize: _angular_core.Signal<number>;
@@ -5905,6 +5924,10 @@ declare class ManageFilterOnPage implements OnInit {
5905
5924
  private ref;
5906
5925
  /** Input: Initial filters data */
5907
5926
  readonly data: _angular_core.InputSignal<FilterField[]>;
5927
+ /** Workspace metadata scope reused by dropdown-by-selection fields */
5928
+ readonly workspaceId: _angular_core.InputSignal<string | number | null>;
5929
+ /** Template/workspace selector that scopes hierarchical Level selections */
5930
+ readonly chartWorkspace: _angular_core.InputSignal<string | null>;
5908
5931
  /** Input: Available lookups for dropdown */
5909
5932
  readonly lookups: _angular_core.InputSignal<any[]>;
5910
5933
  /** Input: Available level schemas */
@@ -5928,7 +5951,7 @@ declare class ManageFilterOnPage implements OnInit {
5928
5951
  /** Cancel and close the dialog */
5929
5952
  close(): void;
5930
5953
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageFilterOnPage, never>;
5931
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageFilterOnPage, "mt-manage-filter-on-page", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
5954
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageFilterOnPage, "mt-manage-filter-on-page", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "workspaceId": { "alias": "workspaceId"; "required": false; "isSignal": true; }; "chartWorkspace": { "alias": "chartWorkspace"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
5932
5955
  }
5933
5956
 
5934
5957
  interface ModuleProperties$1 {
@@ -5953,6 +5976,10 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
5953
5976
  readonly levelLogs: _angular_core.InputSignal<any[]>;
5954
5977
  /** Product type to filter available field types */
5955
5978
  readonly productType: _angular_core.InputSignal<string>;
5979
+ /** Workspace metadata scope used by the shared datasource selection editor. */
5980
+ readonly workspaceId: _angular_core.InputSignal<string | number | null>;
5981
+ /** Template/workspace selector used to scope hierarchical Level modules. */
5982
+ readonly chartWorkspace: _angular_core.InputSignal<string | null>;
5956
5983
  /** Emit when level logs need to be loaded for a specific schema level */
5957
5984
  readonly loadLevelLogs: _angular_core.OutputEmitterRef<number>;
5958
5985
  /** Filter fields data */
@@ -6016,6 +6043,8 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
6016
6043
  hasTypeConfiguration(field: FilterField): boolean;
6017
6044
  getDropdownSelections(field: FilterField): ISelection[];
6018
6045
  getSelectedProperties(field: FilterField): string[];
6046
+ getDropdownWorkspaceId(field: FilterField): string | number | null;
6047
+ getDropdownChartWorkspace(field: FilterField): string | null;
6019
6048
  getModulesPropertiesForField(index: number): ModuleProperties$1[];
6020
6049
  getPropertiesFlatForField(index: number): IProperty[];
6021
6050
  getDropdownSummary(field: FilterField): string;
@@ -6028,11 +6057,14 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
6028
6057
  private setFieldModulesProperties;
6029
6058
  private extractModuleTypeFromSelector;
6030
6059
  private normalizeSelections;
6060
+ private applyDropdownPayloadContext;
6061
+ private resolveDefaultService;
6062
+ private resolveSelectionService;
6031
6063
  private getSelectionSignature;
6032
6064
  private removeCachedFieldState;
6033
6065
  private resetDropdownCaches;
6034
6066
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicFiltersConfig, never>;
6035
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFiltersConfig, "mt-dynamic-filters-config", never, { "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; "levelLogs": { "alias": "levelLogs"; "required": false; "isSignal": true; }; "productType": { "alias": "productType"; "required": false; "isSignal": true; }; }, { "loadLevelLogs": "loadLevelLogs"; }, never, never, true, never>;
6067
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFiltersConfig, "mt-dynamic-filters-config", never, { "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; "levelLogs": { "alias": "levelLogs"; "required": false; "isSignal": true; }; "productType": { "alias": "productType"; "required": false; "isSignal": true; }; "workspaceId": { "alias": "workspaceId"; "required": false; "isSignal": true; }; "chartWorkspace": { "alias": "chartWorkspace"; "required": false; "isSignal": true; }; }, { "loadLevelLogs": "loadLevelLogs"; }, never, never, true, never>;
6036
6068
  }
6037
6069
 
6038
6070
  interface DefaultControlConfig {
@@ -7357,7 +7389,7 @@ declare class DataSourceSettings {
7357
7389
  * Active tab within the selection cycle: Selection (pick modules) · Source
7358
7390
  * Links (joins, only with >1 selection) · Query (fields).
7359
7391
  */
7360
- readonly activeSection: _angular_core.WritableSignal<"selection" | "query" | "sourceLinks">;
7392
+ readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
7361
7393
  /** Selection mode inside the selection tab (informative authoring). */
7362
7394
  readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
7363
7395
  readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
@@ -7397,6 +7429,19 @@ declare class DataSourceSettings {
7397
7429
  readonly chartWorkspace: _angular_core.WritableSignal<string | null>;
7398
7430
  /** Inline "change workspace" confirmation visibility. */
7399
7431
  readonly confirmingWorkspaceChange: _angular_core.WritableSignal<boolean>;
7432
+ /**
7433
+ * True when the chart workspace was auto-detected from OLD data (the chart had
7434
+ * selections/workspaceId but no stored `serviceConfig.workspace`). Drives the
7435
+ * "auto-detected — Save to keep it / Clear" notice. Cleared once the user
7436
+ * picks deliberately or clears it.
7437
+ */
7438
+ readonly workspaceAutoDetected: _angular_core.WritableSignal<boolean>;
7439
+ /**
7440
+ * Set once the user explicitly clears an auto-detected workspace, so the
7441
+ * derive effect doesn't immediately re-detect the same one (which would make
7442
+ * Clear a no-op). Reset on a deliberate pick.
7443
+ */
7444
+ private readonly userClearedWorkspace;
7400
7445
  private readonly workspaceServiceName;
7401
7446
  /**
7402
7447
  * The hierarchical "Level" module + its owning service (searches all loaded
@@ -7483,6 +7528,8 @@ declare class DataSourceSettings {
7483
7528
  onSourceLinksChange(links: SourceLink[]): void;
7484
7529
  /** Pick the single chart workspace (Template root). Opens the tabs. */
7485
7530
  onWorkspacePick(selector: string): void;
7531
+ /** Numeric workspace id parsed from a Template selector ("Template:48" -> 48). */
7532
+ private parseWorkspaceId;
7486
7533
  /** Ask to change workspace (shows the inline confirm). */
7487
7534
  requestChangeWorkspace(): void;
7488
7535
  /** Dismiss the change-workspace confirm. */
@@ -7494,6 +7541,19 @@ declare class DataSourceSettings {
7494
7541
  confirmChangeWorkspace(): void;
7495
7542
  /** Load the modules tree into the local signal (cache-first). */
7496
7543
  private loadWorkspaceTree;
7544
+ /**
7545
+ * Best-effort workspace selector for OLD charts that never stored
7546
+ * `serviceConfig.workspace`. Tries, in order: an existing numeric
7547
+ * `workspaceId` (mapped to a known Template option, else synthesized), a
7548
+ * Level selection mapped through the tree, then a workspaceId carried on any
7549
+ * selection. Returns null when nothing can be inferred.
7550
+ */
7551
+ private deriveChartWorkspace;
7552
+ /**
7553
+ * Discard an auto-detected workspace without wiping the (still valid)
7554
+ * selections — re-opens the picker so the user can choose deliberately.
7555
+ */
7556
+ clearAutoDetectedWorkspace(): void;
7497
7557
  /** Reverse-map a Level selector to its Template root (for legacy restore). */
7498
7558
  private deriveWorkspaceFromLevel;
7499
7559
  /** Workspace metadata filter for tree values (roots and children alike). */
@@ -7773,9 +7833,16 @@ declare class ChartViewer {
7773
7833
  readonly chartTypeId: _angular_core.InputSignal<string>;
7774
7834
  /** Loading state for refresh */
7775
7835
  readonly loading: _angular_core.WritableSignal<boolean>;
7836
+ private readonly destroyRef;
7837
+ private loadingTimer;
7838
+ constructor();
7776
7839
  /** Preview only renders when the selected capability has enough config. */
7777
7840
  readonly canPreview: _angular_core.Signal<boolean>;
7778
- /** Refresh the preview */
7841
+ /**
7842
+ * Refresh the preview — flashes the loading spinner. Called by the manual
7843
+ * refresh button AND on every config change in the Style Studio, so edits
7844
+ * get the same "refreshing" feedback. Coalesces rapid calls into one window.
7845
+ */
7779
7846
  refresh(): void;
7780
7847
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartViewer, never>;
7781
7848
  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>;
@@ -7828,7 +7895,17 @@ declare class StyleStudioDrawer {
7828
7895
  readonly search: _angular_core.Signal<string>;
7829
7896
  /** Section the rail highlights as active (scroll-spy). */
7830
7897
  readonly activeSection: _angular_core.WritableSignal<string>;
7898
+ /**
7899
+ * Isolated preview id so editing here NEVER mutates the real dashboard
7900
+ * chart's store entry. The preview renders from this id; Cancel leaves the
7901
+ * real chart untouched.
7902
+ */
7903
+ readonly previewId: string;
7904
+ /** The live preview viewer — driven to flash its loading on every change. */
7905
+ private readonly previewViewer;
7831
7906
  constructor();
7907
+ /** Re-process + push the working config into the isolated preview store. */
7908
+ private syncPreviewStore;
7832
7909
  readonly itemConfig: _angular_core.Signal<ItemConfig | null>;
7833
7910
  readonly capability: _angular_core.Signal<_masterteam_dashboard_builder.ChartCapability | null>;
7834
7911
  readonly schema: _angular_core.Signal<_masterteam_dashboard_builder.ControlSchema>;
@@ -7842,19 +7919,19 @@ declare class StyleStudioDrawer {
7842
7919
  readonly navSections: _angular_core.Signal<ControlSection[]>;
7843
7920
  /** Rail sections grouped under friendly category headers. */
7844
7921
  readonly navGroups: _angular_core.Signal<NavGroup[]>;
7845
- readonly presets: _angular_core.Signal<readonly StylePreset[]>;
7846
7922
  readonly scopeOptions: _angular_core.Signal<{
7847
7923
  label: string;
7848
7924
  value: string;
7849
7925
  }[]>;
7926
+ /** Working config re-keyed to the isolated preview id (drives ChartViewer). */
7927
+ readonly previewConfig: _angular_core.Signal<ItemConfig | null>;
7850
7928
  /** Chart-type id handed to the live ChartViewer (renders ALL widget types). */
7851
7929
  readonly previewChartTypeId: _angular_core.Signal<string>;
7852
7930
  readonly previewTitle: _angular_core.Signal<string>;
7853
7931
  /**
7854
- * Preview data — the source for the legend-order entries. Prefer the data
7855
- * the chart ACTUALLY rendered from (`DataHandled`, computed in the proper
7856
- * render context); only fall back to re-processing the raw `DataResponse`
7857
- * when no handled data is cached (re-processing here can lose legend names).
7932
+ * Preview data — the source for the legend-order entries. Reads the isolated
7933
+ * preview store, which `syncPreviewStore()` keeps re-processed against the
7934
+ * working config on every edit.
7858
7935
  */
7859
7936
  readonly previewData: _angular_core.Signal<ChartDataHandled | null>;
7860
7937
  /** Legend entries (ordered by the saved override) for the legendOrder control. */
@@ -7869,7 +7946,6 @@ declare class StyleStudioDrawer {
7869
7946
  private extractLegendItems;
7870
7947
  onScopeChange(value: unknown): void;
7871
7948
  onPatch(patch: ControlPatch): void;
7872
- applyPreset(preset: StylePreset): void;
7873
7949
  scrollTo(section: ControlSection): void;
7874
7950
  /** Scroll-spy: highlight the top-most section currently in view. */
7875
7951
  onScroll(): void;
@@ -7877,8 +7953,6 @@ declare class StyleStudioDrawer {
7877
7953
  resetAll(): void;
7878
7954
  apply(): void;
7879
7955
  close(): void;
7880
- /** Map a preset's friendly fields to the persisted paths the schema uses. */
7881
- private presetPatches;
7882
7956
  private t;
7883
7957
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleStudioDrawer, never>;
7884
7958
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StyleStudioDrawer, "mt-style-studio-drawer", never, {}, {}, never, never, true, never>;
@@ -7967,6 +8041,8 @@ declare class StyleField {
7967
8041
  readArray(): unknown[];
7968
8042
  readColors(): string[];
7969
8043
  readMap(): Record<string, unknown>;
8044
+ /** keyValueMap accepts either a map or a positional array (asArray mode). */
8045
+ readMapOrArray(): Record<string, unknown> | unknown[];
7970
8046
  readJson(): string;
7971
8047
  emitValue(value: unknown): void;
7972
8048
  onJsonInput(raw: string): void;
@@ -8066,17 +8142,26 @@ interface MapRow {
8066
8142
  group: FormGroup;
8067
8143
  }
8068
8144
  /**
8069
- * Per-key value editor — replaces raw-JSON maps such as per-property
8070
- * translations (`{ key: { en, ar } }`) or per-property colors
8071
- * (`{ key: { color } }`). Keys come from `keys` (e.g. the chart's selected
8072
- * properties); each key renders the scalar `valueFields` as `mt-*` controls.
8073
- * Controlled: `value` (Record) in, `valueChange` (Record) out.
8145
+ * Per-key value editor for the chart's selected properties. Two storage modes:
8146
+ *
8147
+ * - default (map): `{ [propKey]: { ...valueFields } }` — e.g. per-property
8148
+ * translations / colors (`overrideSelectedPropertiesLabels`).
8149
+ * - `asArray`: a POSITIONAL array aligned to the key order — e.g.
8150
+ * `propsConfigAsIndex` where the runtime reads `array[index]` for the
8151
+ * property at that index. One row per key is always emitted to keep the
8152
+ * array aligned.
8153
+ *
8154
+ * Keys come from `keys` (the chart's selected properties); each renders the
8155
+ * scalar `valueFields` as `mt-*` controls (text / number / color / select /
8156
+ * boolean). Controlled: `value` in, `valueChange` out.
8074
8157
  */
8075
8158
  declare class KeyValueMapField {
8076
- readonly value: _angular_core.InputSignal<Record<string, unknown> | null>;
8159
+ readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
8077
8160
  readonly keys: _angular_core.InputSignal<ControlOption[]>;
8078
8161
  readonly valueFields: _angular_core.InputSignal<ControlField[]>;
8079
- readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
8162
+ /** When true, store/read a positional array aligned to `keys` order. */
8163
+ readonly asArray: _angular_core.InputSignal<boolean>;
8164
+ readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
8080
8165
  readonly rows: _angular_core.WritableSignal<MapRow[]>;
8081
8166
  private readonly destroyRef;
8082
8167
  /** Subscriptions for the current row set; torn down on every rebuild. */
@@ -8085,11 +8170,12 @@ declare class KeyValueMapField {
8085
8170
  constructor();
8086
8171
  options(field: ControlField): ControlOption[];
8087
8172
  control(row: MapRow, key: string): FormControl;
8173
+ private existingFor;
8174
+ private clean;
8088
8175
  private emit;
8089
- /** True when the existing rows already represent (keys, map, fields). */
8090
8176
  private matchesCurrent;
8091
8177
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<KeyValueMapField, never>;
8092
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<KeyValueMapField, "mt-key-value-map-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "keys": { "alias": "keys"; "required": false; "isSignal": true; }; "valueFields": { "alias": "valueFields"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
8178
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<KeyValueMapField, "mt-key-value-map-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "keys": { "alias": "keys"; "required": false; "isSignal": true; }; "valueFields": { "alias": "valueFields"; "required": false; "isSignal": true; }; "asArray": { "alias": "asArray"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
8093
8179
  }
8094
8180
 
8095
8181
  /**
@@ -1 +0,0 @@
1
- {"version":3,"file":"masterteam-dashboard-builder-dashboard-dialog.component-Dx5y1IeV.mjs","sources":["../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/components/dashboard-dialog/dashboard-dialog.component.ts","../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/components/dashboard-dialog/dashboard-dialog.component.html"],"sourcesContent":["/**\r\n * Dashboard Dialog Component\r\n *\r\n * A flexible dialog wrapper that renders a DashboardItem inside.\r\n * Uses the same ItemConfig structure - maximum code reuse.\r\n *\r\n * The dialog simply wraps DashboardItem, so any chart/table/card\r\n * that works inline will work in a dialog too.\r\n */\r\n\r\nimport {\r\n Component,\r\n inject,\r\n input,\r\n signal,\r\n computed,\r\n OnInit,\r\n} from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TranslocoDirective, TranslocoService } from '@jsverse/transloco';\r\nimport { ModalService } from '@masterteam/components/modal';\r\nimport { ModalRef } from '@masterteam/components/dialog';\r\nimport { ItemConfig } from '../../../models/dashboard.model';\r\nimport { DashboardItemStoreService } from '../../services/item-store.service';\r\nimport { FilterUtilsService } from '../../services/filter-utils.service';\r\nimport { DashboardItem } from '../../dashboard-item';\r\n\r\n/**\r\n * Dashboard Dialog Component\r\n *\r\n * Opened via ModalService, renders a DashboardItem inside.\r\n * Usage:\r\n * this.modalService.open(DashboardDialogComponent, {\r\n * data: { config: itemConfig, params: queryParams }\r\n * });\r\n */\r\n@Component({\r\n selector: 'mt-dashboard-dialog',\r\n standalone: true,\r\n imports: [CommonModule, TranslocoDirective, DashboardItem],\r\n templateUrl: './dashboard-dialog.component.html',\r\n})\r\nexport class DashboardDialogComponent implements OnInit {\r\n private readonly itemStore = inject(DashboardItemStoreService);\r\n private readonly filterUtils = inject(FilterUtilsService);\r\n private readonly transloco = inject(TranslocoService);\r\n readonly modal = inject(ModalService);\r\n private readonly ref = inject(ModalRef);\r\n\r\n // Inputs from modal data\r\n readonly config = input<ItemConfig | null>(null);\r\n readonly params = input<Record<string, any>>({});\r\n readonly title = input<string | null>(null);\r\n\r\n // State\r\n readonly dialogConfig = signal<ItemConfig | null>(null);\r\n readonly actionParams = signal<Record<string, any>>({});\r\n\r\n // Computed\r\n readonly mergedParams = computed(() => ({\r\n ...this.params(),\r\n ...this.actionParams(),\r\n }));\r\n\r\n readonly processedConfig = computed(() => {\r\n const config = this.dialogConfig();\r\n if (!config) return null;\r\n\r\n // Deep clone and process filters\r\n const cloned = JSON.parse(JSON.stringify(config)) as ItemConfig;\r\n\r\n // Apply filter processing if service config exists\r\n if (cloned.serviceConfig) {\r\n const processed = this.filterUtils.handleFiltersForCustom(\r\n cloned.serviceConfig,\r\n this.mergedParams(),\r\n );\r\n cloned.serviceConfig = processed;\r\n }\r\n return cloned;\r\n });\r\n\r\n ngOnInit(): void {\r\n // Set config from input\r\n const config = this.config();\r\n if (config) {\r\n this.dialogConfig.set(config);\r\n }\r\n\r\n // Set params from input\r\n const params = this.params();\r\n if (params) {\r\n this.actionParams.set(params);\r\n }\r\n }\r\n\r\n /**\r\n * Close dialog\r\n */\r\n close(result?: any): void {\r\n this.ref.close(result);\r\n }\r\n\r\n /**\r\n * Handle actions from the inner DashboardItem\r\n */\r\n onItemAction(event: any): void {\r\n // If it's a close action, close the dialog\r\n if (event?.type === 'closeDialog') {\r\n this.close(event?.data);\r\n return;\r\n }\r\n\r\n // For navigation actions, close dialog and let parent handle\r\n if (event?.type === 'navigate' || event?.type === 'navigateTo') {\r\n this.close(event);\r\n return;\r\n }\r\n\r\n // For other action types, the inner mt-dashboard-item already\r\n // dispatches via ActionService — nothing more to do at the dialog host.\r\n }\r\n}\r\n\r\n/**\r\n * Helper service for opening dashboard dialogs\r\n */\r\nexport function openDashboardDialog(\r\n modalService: ModalService,\r\n config: ItemConfig,\r\n params?: Record<string, any>,\r\n options?: {\r\n title?: string;\r\n size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';\r\n },\r\n): ModalRef {\r\n const sizeClass = {\r\n sm: 'max-w-md',\r\n md: 'max-w-2xl',\r\n lg: 'max-w-4xl',\r\n xl: 'max-w-6xl',\r\n full: 'max-w-[95vw]',\r\n }[options?.size || 'lg'];\r\n\r\n return modalService.openModal(DashboardDialogComponent, 'dialog', {\r\n header: options?.title || '',\r\n styleClass: sizeClass,\r\n data: {\r\n config,\r\n params: params || {},\r\n title: options?.title,\r\n },\r\n });\r\n}\r\n","<!--\n Inline height is intentional: the global `.mt-dialog .p-dialog-content\n .mt-modal-content { height:100% }` rule (common.css, unlayered) overrides any\n `h-[80vh]` class, and `.p-dialog` itself has no definite height, so a\n class-based height collapses to content. An inline style beats the unlayered\n rule, and `80vh` is viewport-relative (definite regardless of ancestors),\n giving the inner item -> table the bounded height it needs to scroll.\n padding-bottom is zeroed (the global 5rem reserves space for a footer this\n dialog does not render).\n-->\n<div\n [class]=\"modal.contentClass + ' flex min-h-[300px] flex-col p-0'\"\n style=\"height: 80vh; padding-bottom: 0\"\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\n>\n <!-- Dashboard Item renders whatever the config specifies. A definite height\n lets the inner table own its scroll (its virtual window depends on the\n scroll container, not the outer dialog). -->\n @if (processedConfig()) {\n <mt-dashboard-item\n class=\"block min-h-0 flex-1\"\n [config]=\"processedConfig()!\"\n [queryParams]=\"mergedParams()\"\n [isDialog]=\"true\"\n (actionTriggered)=\"onItemAction($event)\"\n />\n } @else if (config()) {\n <!-- Config provided but still being processed -->\n <div class=\"flex flex-1 items-center justify-center\">\n <i class=\"pi pi-spin pi-spinner text-4xl text-primary\"></i>\n </div>\n } @else {\n <!-- No dialog config could be resolved (linked dialog deleted or failed to\n load). Show an explicit unavailable state instead of silently\n rendering the wrong widget. -->\n <div\n class=\"flex flex-1 flex-col items-center justify-center gap-3 px-6 text-center\"\n >\n <i class=\"pi pi-exclamation-triangle text-4xl text-surface-400\"></i>\n <p class=\"text-surface-600 dark:text-surface-300\">\n {{ t(\"dialogUnavailable\") }}\n </p>\n </div>\n }\n</div>\n<!--\n<div [class]=\"modal.footerClass\" *transloco=\"let t; prefix: 'dashboard'\">\n <mt-button [label]=\"t('close')\" severity=\"secondary\" (onClick)=\"close()\" />\n</div> -->\n"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;AAQG;AAmBH;;;;;;;;AAQG;MAOU,wBAAwB,CAAA;AAClB,IAAA,SAAS,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAC7C,IAAA,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC;AACxC,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC5C,IAAA,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC;AACpB,IAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;;AAG9B,IAAA,MAAM,GAAG,KAAK,CAAoB,IAAI,6EAAC;AACvC,IAAA,MAAM,GAAG,KAAK,CAAsB,EAAE,6EAAC;AACvC,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4EAAC;;AAGlC,IAAA,YAAY,GAAG,MAAM,CAAoB,IAAI,mFAAC;AAC9C,IAAA,YAAY,GAAG,MAAM,CAAsB,EAAE,mFAAC;;AAG9C,IAAA,YAAY,GAAG,QAAQ,CAAC,OAAO;QACtC,GAAG,IAAI,CAAC,MAAM,EAAE;QAChB,GAAG,IAAI,CAAC,YAAY,EAAE;AACvB,KAAA,CAAC,mFAAC;AAEM,IAA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