@masterteam/dashboard-builder 0.0.54 → 0.0.56

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-RFHndI8h.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-DMDAO3cb.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.54",
3
+ "version": "0.0.56",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -21,10 +21,10 @@
21
21
  "primeng": "21.1.5",
22
22
  "rxjs": "^7.8.2",
23
23
  "tailwindcss": "^4.2.2",
24
- "@masterteam/components": "^0.0.221",
25
24
  "@masterteam/icons": "^0.0.17",
26
- "@masterteam/timeline": "^0.0.17",
27
- "@masterteam/formula-builder": "^0.0.24"
25
+ "@masterteam/formula-builder": "^0.0.25",
26
+ "@masterteam/components": "^0.0.223",
27
+ "@masterteam/timeline": "^0.0.17"
28
28
  },
29
29
  "dependencies": {
30
30
  "tslib": "^2.8.1",
@@ -2327,6 +2327,15 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2327
2327
  saveDash(options?: {
2328
2328
  silent?: boolean;
2329
2329
  }): void;
2330
+ /**
2331
+ * Persist the page-level filters through the dashboard (report) endpoint —
2332
+ * the canonical carrier of `dashboardConfig.filters`. In API-backed mode
2333
+ * `saveDash()` only links charts/dialogs via `linkChartsBulk` and never writes
2334
+ * the page config, so configured filters were lost on reload and never reached
2335
+ * the runtime sidebar (#1141). Standalone mode already emits filters via
2336
+ * `emitDashboardDataChange`, so this no-ops there.
2337
+ */
2338
+ private persistPageFilters;
2330
2339
  addOrEditPage(page?: DashboardPage): void;
2331
2340
  deleteReport(): void;
2332
2341
  onItemResize(item: GridsterItem, itemComponent: any): void;
@@ -2688,6 +2697,11 @@ declare class DashboardViewer implements OnInit, OnDestroy {
2688
2697
  */
2689
2698
  private normalizeFilters;
2690
2699
  private applyDashboardData;
2700
+ /**
2701
+ * Public host API for refreshing the current dashboard view after host-owned
2702
+ * mutations. Always clear chart HTTP cache first so every item sends a fresh
2703
+ * backend request; hosts should not need to know dashboard-builder internals.
2704
+ */
2691
2705
  reloadPage(): void;
2692
2706
  /**
2693
2707
  * Get the title for a group item
@@ -3879,6 +3893,11 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3879
3893
  private isLegendSide;
3880
3894
  private hasLegendCoordinate;
3881
3895
  private isCenteredLegendCoordinate;
3896
+ private getLegendReservedSpace;
3897
+ private getLegendForSide;
3898
+ private readDimensionValue;
3899
+ private getResponsiveSideLegendWidth;
3900
+ private getHorizontalLegendHeight;
3882
3901
  private getResponsiveGridOffsets;
3883
3902
  private applyResponsiveLegend;
3884
3903
  private applyConfiguredLegend;
@@ -4778,6 +4797,7 @@ declare class ChartDataService {
4778
4797
  * Build HttpParams from filters
4779
4798
  */
4780
4799
  private buildHttpParams;
4800
+ private withCacheScope;
4781
4801
  /**
4782
4802
  * Fetch level data
4783
4803
  */
@@ -4836,6 +4856,12 @@ declare class ChartDataService {
4836
4856
  * Trigger refresh for a specific item
4837
4857
  */
4838
4858
  refreshItem(dashboardId: string | number): void;
4859
+ /**
4860
+ * Clear cached chart responses so the next fetchChartData() call hits the
4861
+ * network instead of serving a stale cached response. Pass a dashboardId to
4862
+ * scope the clear to one chart's data source, or omit it to clear everything.
4863
+ */
4864
+ clearCache(dashboardId?: string | number): void;
4839
4865
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartDataService, never>;
4840
4866
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ChartDataService>;
4841
4867
  }
@@ -7594,12 +7620,12 @@ declare class DataSourceSettings {
7594
7620
  * tabs: build a selection-based query OR fetch from a custom API endpoint.
7595
7621
  * Picking one hides the other.
7596
7622
  */
7597
- readonly dataSourceMode: _angular_core.WritableSignal<"selection" | "customApi">;
7623
+ readonly dataSourceMode: _angular_core.WritableSignal<"customApi" | "selection">;
7598
7624
  /**
7599
7625
  * Active tab within the selection cycle: Selection (pick modules) · Source
7600
7626
  * Links (joins, only with >1 selection) · Query (fields).
7601
7627
  */
7602
- readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
7628
+ readonly activeSection: _angular_core.WritableSignal<"selection" | "query" | "sourceLinks">;
7603
7629
  /** Selection mode inside the selection tab (informative authoring). */
7604
7630
  readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
7605
7631
  readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
@@ -8377,12 +8403,12 @@ interface MapRow {
8377
8403
  * boolean). Controlled: `value` in, `valueChange` out.
8378
8404
  */
8379
8405
  declare class KeyValueMapField {
8380
- readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
8406
+ readonly value: _angular_core.InputSignal<unknown[] | Record<string, unknown> | null>;
8381
8407
  readonly keys: _angular_core.InputSignal<ControlOption[]>;
8382
8408
  readonly valueFields: _angular_core.InputSignal<ControlField[]>;
8383
8409
  /** When true, store/read a positional array aligned to `keys` order. */
8384
8410
  readonly asArray: _angular_core.InputSignal<boolean>;
8385
- readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
8411
+ readonly valueChange: _angular_core.OutputEmitterRef<unknown[] | Record<string, unknown>>;
8386
8412
  readonly rows: _angular_core.WritableSignal<MapRow[]>;
8387
8413
  private readonly destroyRef;
8388
8414
  /** Subscriptions for the current row set; torn down on every rebuild. */