@masterteam/dashboard-builder 0.0.53 → 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.
- package/README.md +16 -6
- package/assets/dashboard-builder.css +1 -1
- package/assets/i18n/ar.json +14 -0
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-B_g_lLDx.mjs → masterteam-dashboard-builder-dashboard-dialog.component-C1N4w9Dz.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-B_g_lLDx.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-C1N4w9Dz.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-BlBnHwDv.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-DMDAO3cb.mjs} +994 -313
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-DMDAO3cb.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +3 -2
- package/types/masterteam-dashboard-builder.d.ts +71 -6
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-BlBnHwDv.mjs.map +0 -1
|
@@ -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-
|
|
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.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/dashboard-builder",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"rxjs": "^7.8.2",
|
|
23
23
|
"tailwindcss": "^4.2.2",
|
|
24
24
|
"@masterteam/icons": "^0.0.17",
|
|
25
|
-
"@masterteam/
|
|
25
|
+
"@masterteam/formula-builder": "^0.0.25",
|
|
26
|
+
"@masterteam/components": "^0.0.223",
|
|
26
27
|
"@masterteam/timeline": "^0.0.17"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
@@ -2188,7 +2188,7 @@ declare class DatasourcePanelComponent {
|
|
|
2188
2188
|
sourceStatus: string;
|
|
2189
2189
|
sourceIcon: string;
|
|
2190
2190
|
sourceLabel: string;
|
|
2191
|
-
fieldsStatus: "
|
|
2191
|
+
fieldsStatus: "missing" | "ok";
|
|
2192
2192
|
fieldsIcon: string;
|
|
2193
2193
|
fieldsLabel: string;
|
|
2194
2194
|
missing: string[];
|
|
@@ -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;
|
|
@@ -2482,6 +2491,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2482
2491
|
editDialogActionsForChart(chart: DashboardChartItem): void;
|
|
2483
2492
|
editDialogStyleForChart(chart: DashboardChartItem): void;
|
|
2484
2493
|
deleteDialogFromChart(chart: DashboardChartItem): void;
|
|
2494
|
+
private removeDialogFromChart;
|
|
2485
2495
|
/** Open chart settings drawer for item configuration */
|
|
2486
2496
|
openQuickManage(event: Event, item: DashboardChartItem): void;
|
|
2487
2497
|
/** Handle apply from chart settings drawer */
|
|
@@ -2644,9 +2654,11 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2644
2654
|
readonly charts: _angular_core.WritableSignal<DashboardChartItem[]>;
|
|
2645
2655
|
readonly dialogs: _angular_core.WritableSignal<DashboardDialogItem[]>;
|
|
2646
2656
|
readonly filters: _angular_core.WritableSignal<any[]>;
|
|
2657
|
+
readonly filtersPanelOpen: _angular_core.WritableSignal<boolean>;
|
|
2647
2658
|
readonly languageCode: _angular_core.Signal<string>;
|
|
2648
2659
|
readonly direction: _angular_core.Signal<"rtl" | "ltr">;
|
|
2649
2660
|
readonly hasRenderableContent: _angular_core.Signal<boolean>;
|
|
2661
|
+
readonly hasPageFilters: _angular_core.Signal<boolean>;
|
|
2650
2662
|
readonly visibleItems: _angular_core.Signal<DashboardChartItem[]>;
|
|
2651
2663
|
readonly layoutHeight: _angular_core.Signal<string>;
|
|
2652
2664
|
private subscription;
|
|
@@ -2661,6 +2673,7 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2661
2673
|
private filtersDataEffect;
|
|
2662
2674
|
private extraFiltersEffect;
|
|
2663
2675
|
private preloadedInputsEffect;
|
|
2676
|
+
private pageFiltersVisibilityEffect;
|
|
2664
2677
|
private pageIdEffect;
|
|
2665
2678
|
ngOnInit(): void;
|
|
2666
2679
|
ngOnDestroy(): void;
|
|
@@ -2672,6 +2685,8 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2672
2685
|
* fall back to updating the store + refreshing directly.
|
|
2673
2686
|
*/
|
|
2674
2687
|
onPageFilterChange(values: Record<string, any>): void;
|
|
2688
|
+
toggleFiltersPanel(): void;
|
|
2689
|
+
closeFiltersPanel(): void;
|
|
2675
2690
|
loadPage(id: string | number): void;
|
|
2676
2691
|
/**
|
|
2677
2692
|
* Normalize a page's filters into a FLAT `FilterField[]`. The backend stores
|
|
@@ -2682,6 +2697,11 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2682
2697
|
*/
|
|
2683
2698
|
private normalizeFilters;
|
|
2684
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
|
+
*/
|
|
2685
2705
|
reloadPage(): void;
|
|
2686
2706
|
/**
|
|
2687
2707
|
* Get the title for a group item
|
|
@@ -3207,6 +3227,7 @@ interface HeaderCardConfig$1 {
|
|
|
3207
3227
|
headerColor?: string;
|
|
3208
3228
|
icon?: string;
|
|
3209
3229
|
iconColor?: string;
|
|
3230
|
+
iconPlacement?: 'start' | 'end' | 'top';
|
|
3210
3231
|
titleColor?: string;
|
|
3211
3232
|
}
|
|
3212
3233
|
interface CardBorderStyleConfig {
|
|
@@ -3664,7 +3685,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3664
3685
|
/** Whether the user can act on the Configure CTA (builder mode). */
|
|
3665
3686
|
readonly canConfigure: _angular_core.Signal<boolean>;
|
|
3666
3687
|
readonly hasSplitterData: _angular_core.Signal<boolean>;
|
|
3667
|
-
readonly splitterOrientation: _angular_core.Signal<"
|
|
3688
|
+
readonly splitterOrientation: _angular_core.Signal<"vertical" | "horizontal">;
|
|
3668
3689
|
readonly splitterGap: _angular_core.Signal<number>;
|
|
3669
3690
|
readonly hasTimelineData: _angular_core.Signal<boolean>;
|
|
3670
3691
|
readonly timelineEvents: _angular_core.Signal<any[]>;
|
|
@@ -3798,7 +3819,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
3798
3819
|
readonly showCustomLegend: _angular_core.Signal<boolean>;
|
|
3799
3820
|
readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
|
|
3800
3821
|
/** Custom HTML legend placement from the configured legend position. */
|
|
3801
|
-
readonly customLegendPosition: _angular_core.Signal<"
|
|
3822
|
+
readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
3802
3823
|
constructor();
|
|
3803
3824
|
ngOnInit(): Promise<void>;
|
|
3804
3825
|
ngAfterViewInit(): void;
|
|
@@ -3872,9 +3893,20 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
3872
3893
|
private isLegendSide;
|
|
3873
3894
|
private hasLegendCoordinate;
|
|
3874
3895
|
private isCenteredLegendCoordinate;
|
|
3896
|
+
private getLegendReservedSpace;
|
|
3897
|
+
private getLegendForSide;
|
|
3898
|
+
private readDimensionValue;
|
|
3899
|
+
private getResponsiveSideLegendWidth;
|
|
3900
|
+
private getHorizontalLegendHeight;
|
|
3875
3901
|
private getResponsiveGridOffsets;
|
|
3876
3902
|
private applyResponsiveLegend;
|
|
3877
3903
|
private applyConfiguredLegend;
|
|
3904
|
+
private applyLegendColorOverrides;
|
|
3905
|
+
private applyLegendDataColorOverrides;
|
|
3906
|
+
private getLegendColorOverrides;
|
|
3907
|
+
private readLegendColor;
|
|
3908
|
+
private getLegendOverrideColor;
|
|
3909
|
+
private normalizeLegendName;
|
|
3878
3910
|
private applyLegendOverrideOrder;
|
|
3879
3911
|
private orderSeriesDataByLegend;
|
|
3880
3912
|
private mapLegendConfig;
|
|
@@ -3973,6 +4005,10 @@ interface DashboardCardViewModel {
|
|
|
3973
4005
|
card: DashboardCardData;
|
|
3974
4006
|
entities: EntityData$1[];
|
|
3975
4007
|
}
|
|
4008
|
+
interface CardOrderConfig {
|
|
4009
|
+
propertyKey?: string;
|
|
4010
|
+
direction?: 'asc' | 'desc';
|
|
4011
|
+
}
|
|
3976
4012
|
declare class PropertiesCardComponent implements OnInit, OnDestroy {
|
|
3977
4013
|
private readonly storeService;
|
|
3978
4014
|
private readonly transloco;
|
|
@@ -3993,6 +4029,7 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
|
|
|
3993
4029
|
readonly propsConfigAsIndex: _angular_core.Signal<PropertyRuntimeConfig[]>;
|
|
3994
4030
|
readonly propertyColorOverrides: _angular_core.Signal<unknown>;
|
|
3995
4031
|
readonly numberFormat: _angular_core.Signal<unknown>;
|
|
4032
|
+
readonly cardOrderConfig: _angular_core.Signal<CardOrderConfig>;
|
|
3996
4033
|
readonly legacyHiddenPropertyKeys: _angular_core.Signal<string[]>;
|
|
3997
4034
|
readonly tabOptions: _angular_core.Signal<DashboardCardTabOption[]>;
|
|
3998
4035
|
readonly showTabs: _angular_core.Signal<boolean>;
|
|
@@ -4008,6 +4045,9 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
|
|
|
4008
4045
|
private isCardGroup;
|
|
4009
4046
|
private extractCards;
|
|
4010
4047
|
private getCardProps;
|
|
4048
|
+
private sortCards;
|
|
4049
|
+
private resolveCardSortValue;
|
|
4050
|
+
private unwrapSortValue;
|
|
4011
4051
|
private orderProperties;
|
|
4012
4052
|
private buildEntities;
|
|
4013
4053
|
private buildPropertyTemplateMap;
|
|
@@ -4532,6 +4572,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
4532
4572
|
private buildPhaseGateCell;
|
|
4533
4573
|
getLegendColor(label: any): string;
|
|
4534
4574
|
getLegendText(label: any): string;
|
|
4575
|
+
private applyLegendOrder;
|
|
4535
4576
|
private extractLabels;
|
|
4536
4577
|
/**
|
|
4537
4578
|
* Get cell data for entity-info component
|
|
@@ -4756,6 +4797,7 @@ declare class ChartDataService {
|
|
|
4756
4797
|
* Build HttpParams from filters
|
|
4757
4798
|
*/
|
|
4758
4799
|
private buildHttpParams;
|
|
4800
|
+
private withCacheScope;
|
|
4759
4801
|
/**
|
|
4760
4802
|
* Fetch level data
|
|
4761
4803
|
*/
|
|
@@ -4814,6 +4856,12 @@ declare class ChartDataService {
|
|
|
4814
4856
|
* Trigger refresh for a specific item
|
|
4815
4857
|
*/
|
|
4816
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;
|
|
4817
4865
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartDataService, never>;
|
|
4818
4866
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ChartDataService>;
|
|
4819
4867
|
}
|
|
@@ -5611,7 +5659,24 @@ declare function isMobilePlatform(): boolean;
|
|
|
5611
5659
|
* Get color from indexed color conditions
|
|
5612
5660
|
* Matches old getColorFromConditions behavior
|
|
5613
5661
|
*/
|
|
5614
|
-
declare function getColorFromConditions(conditions: any[] | undefined, index: number, value: any): string | undefined;
|
|
5662
|
+
declare function getColorFromConditions(conditions: any[] | ColorConditionsByIndex$1 | undefined, index: number, value: any): string | undefined;
|
|
5663
|
+
/**
|
|
5664
|
+
* Color condition interface
|
|
5665
|
+
*/
|
|
5666
|
+
interface ColorCondition$1 {
|
|
5667
|
+
color: string;
|
|
5668
|
+
type: string;
|
|
5669
|
+
value1?: number;
|
|
5670
|
+
value2?: number;
|
|
5671
|
+
labelEn?: string;
|
|
5672
|
+
labelAr?: string;
|
|
5673
|
+
}
|
|
5674
|
+
/**
|
|
5675
|
+
* Color conditions organized by bar/slice index
|
|
5676
|
+
*/
|
|
5677
|
+
interface ColorConditionsByIndex$1 {
|
|
5678
|
+
[barIndex: number]: ColorCondition$1[];
|
|
5679
|
+
}
|
|
5615
5680
|
|
|
5616
5681
|
declare function handleFiltersForCustom(configItem: any, params: any, extraFilters?: any): any;
|
|
5617
5682
|
declare function handleFilterForCard(filters: any, params: any): any;
|
|
@@ -7555,12 +7620,12 @@ declare class DataSourceSettings {
|
|
|
7555
7620
|
* tabs: build a selection-based query OR fetch from a custom API endpoint.
|
|
7556
7621
|
* Picking one hides the other.
|
|
7557
7622
|
*/
|
|
7558
|
-
readonly dataSourceMode: _angular_core.WritableSignal<"
|
|
7623
|
+
readonly dataSourceMode: _angular_core.WritableSignal<"customApi" | "selection">;
|
|
7559
7624
|
/**
|
|
7560
7625
|
* Active tab within the selection cycle: Selection (pick modules) · Source
|
|
7561
7626
|
* Links (joins, only with >1 selection) · Query (fields).
|
|
7562
7627
|
*/
|
|
7563
|
-
readonly activeSection: _angular_core.WritableSignal<"selection" | "
|
|
7628
|
+
readonly activeSection: _angular_core.WritableSignal<"selection" | "query" | "sourceLinks">;
|
|
7564
7629
|
/** Selection mode inside the selection tab (informative authoring). */
|
|
7565
7630
|
readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
|
|
7566
7631
|
readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
|