@masterteam/dashboard-builder 0.0.59 → 0.0.60
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 +112 -0
- package/assets/dashboard-builder.css +2 -2
- package/assets/i18n/ar.json +15 -0
- package/assets/i18n/en.json +16 -1
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-d6YRBVur.mjs → masterteam-dashboard-builder-dashboard-dialog.component-D7QavJNN.mjs} +14 -10
- package/fesm2022/masterteam-dashboard-builder-dashboard-dialog.component-D7QavJNN.mjs.map +1 -0
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-DwxEWo4J.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-BwlDcTLZ.mjs} +2502 -1411
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-BwlDcTLZ.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +3 -3
- package/types/masterteam-dashboard-builder.d.ts +226 -177
- package/fesm2022/masterteam-dashboard-builder-dashboard-dialog.component-d6YRBVur.mjs.map +0 -1
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-DwxEWo4J.mjs.map +0 -1
|
@@ -7,11 +7,11 @@ import { MenuItem } from 'primeng/api';
|
|
|
7
7
|
import { MTMenuItem } from '@masterteam/components/menu';
|
|
8
8
|
import * as _angular_forms from '@angular/forms';
|
|
9
9
|
import { ControlValueAccessor, FormGroup, FormArray, ValidationErrors, FormControl } from '@angular/forms';
|
|
10
|
-
import * as rxjs from 'rxjs';
|
|
11
|
-
import { Observable } from 'rxjs';
|
|
12
10
|
import { MTIcon } from '@masterteam/icons';
|
|
13
11
|
import { TimelineScaleMode, TimelineColumnConfig, TimelineGanttMapping } from '@masterteam/timeline';
|
|
14
12
|
import { EntityData as EntityData$1, EntityViewType } from '@masterteam/components/entities';
|
|
13
|
+
import * as rxjs from 'rxjs';
|
|
14
|
+
import { Observable } from 'rxjs';
|
|
15
15
|
import { ColumnDef, TableAction, CellChangeEvent } from '@masterteam/components/table';
|
|
16
16
|
import { ActivatedRoute } from '@angular/router';
|
|
17
17
|
import { ModalService } from '@masterteam/components/modal';
|
|
@@ -601,7 +601,7 @@ type Product = 'pplus' | 'splus' | 'report';
|
|
|
601
601
|
/** Generic display schema field key. Open string to allow registry-specific extensions. */
|
|
602
602
|
type DisplayField = string;
|
|
603
603
|
/** Generic query schema field key. */
|
|
604
|
-
type QueryField = 'valueProperty' | 'aggregateFunction' | 'groupByProperties' | 'autoStack' | 'stackProperties' | 'autoStackByProperty' | 'categoryProperty' | 'color' | 'formula' | 'filters' | 'extraProperties' | 'showAdvancedSettings' | 'barType' | 'baseProperties' | 'rowIdentityProperty' | 'phaseNameProperty' | 'phaseIdProperty' | 'phaseOrderProperty' | 'phaseStatusProperty' | 'phaseProgressProperty' | 'phaseIsCurrentProperty' | 'phaseIsCompletedProperty' | 'phaseAllItemsCompletedProperty';
|
|
604
|
+
type QueryField = 'valueProperty' | 'aggregateFunction' | 'groupByProperties' | 'autoStack' | 'stackProperties' | 'autoStackByProperty' | 'categoryProperty' | 'color' | 'formula' | 'filters' | 'extraProperties' | 'showAdvancedSettings' | 'barType' | 'baseProperties' | 'rowIdentityProperty' | 'phaseNameProperty' | 'phaseIdProperty' | 'phaseOrderProperty' | 'phaseStatusProperty' | 'phaseProgressProperty' | 'phaseIsCurrentProperty' | 'phaseIsCompletedProperty' | 'phaseAllItemsCompletedProperty' | 'levelId' | 'levelDataId' | 'timeFrame' | 'year' | 'getAveragePerPeriod' | 'selectedProperties';
|
|
605
605
|
interface QuerySchema {
|
|
606
606
|
/** Visible chart-specific fields (subset of QueryField, in chosen order). */
|
|
607
607
|
fields: QueryField[];
|
|
@@ -1700,6 +1700,14 @@ interface FilterFieldConfiguration {
|
|
|
1700
1700
|
checked?: boolean;
|
|
1701
1701
|
minYear?: number;
|
|
1702
1702
|
maxYear?: number;
|
|
1703
|
+
/** Old persisted date default resolved at runtime. */
|
|
1704
|
+
defaultDate?: 'startOfYear' | 'endOfYear';
|
|
1705
|
+
/** Old persisted multi-select defaults. */
|
|
1706
|
+
defaultValues?: any[];
|
|
1707
|
+
/** Optional single-value default used by newer saved filters. */
|
|
1708
|
+
defaultValue?: any;
|
|
1709
|
+
defaultYear?: number | string;
|
|
1710
|
+
setCurrentYear?: boolean;
|
|
1703
1711
|
}
|
|
1704
1712
|
/** Filter field definition */
|
|
1705
1713
|
interface FilterField {
|
|
@@ -1707,6 +1715,8 @@ interface FilterField {
|
|
|
1707
1715
|
name?: LocalizedText;
|
|
1708
1716
|
type: FilterFieldType;
|
|
1709
1717
|
configuration?: FilterFieldConfiguration;
|
|
1718
|
+
/** Disabled fields remain persisted but do not participate at runtime. */
|
|
1719
|
+
active?: boolean;
|
|
1710
1720
|
}
|
|
1711
1721
|
/** Filter field type option for dropdown */
|
|
1712
1722
|
interface FilterFieldTypeOption {
|
|
@@ -2404,6 +2414,8 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2404
2414
|
/** Reference to chart settings drawer */
|
|
2405
2415
|
private chartSettingsRef;
|
|
2406
2416
|
readonly languageCode: _angular_core.Signal<string>;
|
|
2417
|
+
/** Reactive layout direction, driven by the app's current direction. */
|
|
2418
|
+
readonly direction: _angular_core.Signal<"rtl" | "ltr">;
|
|
2407
2419
|
readonly chartActionsContext: ChartActionsContext;
|
|
2408
2420
|
readonly options: GridsterConfig;
|
|
2409
2421
|
private subscription;
|
|
@@ -2620,83 +2632,6 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2620
2632
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardBuilder, "mt-dashboard-builder", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "services": { "alias": "services"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "informativeContext": { "alias": "informativeContext"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "onSave": "onSave"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, never>;
|
|
2621
2633
|
}
|
|
2622
2634
|
|
|
2623
|
-
/**
|
|
2624
|
-
* Store Service
|
|
2625
|
-
*
|
|
2626
|
-
* Simple reactive store for dashboard builder state management
|
|
2627
|
-
*/
|
|
2628
|
-
declare class DashboardStoreService {
|
|
2629
|
-
private readonly limitedHttp;
|
|
2630
|
-
/** Query parameters */
|
|
2631
|
-
private queryParamsSignal;
|
|
2632
|
-
readonly queryParams: _angular_core.Signal<Record<string, any>>;
|
|
2633
|
-
/** Stop actions on cards flag */
|
|
2634
|
-
private stopActionsSignal;
|
|
2635
|
-
readonly stopActions: _angular_core.Signal<boolean>;
|
|
2636
|
-
/** Dynamic key-value store */
|
|
2637
|
-
private dynamicStore;
|
|
2638
|
-
/** Language code */
|
|
2639
|
-
readonly languageCode: _angular_core.WritableSignal<string>;
|
|
2640
|
-
/** Direction */
|
|
2641
|
-
readonly direction: _angular_core.WritableSignal<"rtl" | "ltr">;
|
|
2642
|
-
/** Inside Report Viewer flag - controls text truncation in charts */
|
|
2643
|
-
private insideReportViewerSignal;
|
|
2644
|
-
readonly insideReportViewer: _angular_core.Signal<boolean>;
|
|
2645
|
-
/** Reload current page subject */
|
|
2646
|
-
private reloadCurrentPageSubject;
|
|
2647
|
-
readonly reloadCurrentPage$: rxjs.Observable<void>;
|
|
2648
|
-
/**
|
|
2649
|
-
* Trigger reload of current page.
|
|
2650
|
-
*
|
|
2651
|
-
* @param force When true, the LimitedHttpService response cache is cleared
|
|
2652
|
-
* first so dashboard items re-fetch fresh data from the network instead of
|
|
2653
|
-
* being served a cached (potentially stale) response. Pass `true` after a
|
|
2654
|
-
* data mutation (create/update/delete) so counts/KPIs reflect the new state
|
|
2655
|
-
* without requiring a full page refresh. Defaults to `false` to preserve the
|
|
2656
|
-
* existing cache-friendly behaviour for plain re-renders.
|
|
2657
|
-
*/
|
|
2658
|
-
triggerReloadCurrentPage(force?: boolean): void;
|
|
2659
|
-
/**
|
|
2660
|
-
* Update query parameters
|
|
2661
|
-
*/
|
|
2662
|
-
updateQueryParams(params: Record<string, any>): void;
|
|
2663
|
-
/**
|
|
2664
|
-
* Update stop actions flag
|
|
2665
|
-
*/
|
|
2666
|
-
updateStopActions(value: boolean): void;
|
|
2667
|
-
/**
|
|
2668
|
-
* Set inside report viewer mode
|
|
2669
|
-
* When true, axis labels won't be truncated and custom legends may be skipped
|
|
2670
|
-
*/
|
|
2671
|
-
setInsideReportViewer(value: boolean): void;
|
|
2672
|
-
/**
|
|
2673
|
-
* Update dynamic key in store
|
|
2674
|
-
*/
|
|
2675
|
-
updateDynamicKey(key: string, value: any): void;
|
|
2676
|
-
/**
|
|
2677
|
-
* Get dynamic key from store
|
|
2678
|
-
*/
|
|
2679
|
-
getDynamicKey<T = any>(key: string): T | undefined;
|
|
2680
|
-
/**
|
|
2681
|
-
* Get computed value from dynamic store
|
|
2682
|
-
*/
|
|
2683
|
-
selectDynamicKey<T = any>(key: string): _angular_core.Signal<T | undefined>;
|
|
2684
|
-
/**
|
|
2685
|
-
* Get query params as a plain object
|
|
2686
|
-
*/
|
|
2687
|
-
getQueryParams(): Record<string, any>;
|
|
2688
|
-
/**
|
|
2689
|
-
* Get extra filters for a specific dashboard action
|
|
2690
|
-
*/
|
|
2691
|
-
getExtraFilterForCurrentAction(dashboardId: string): Record<string, any>;
|
|
2692
|
-
/**
|
|
2693
|
-
* Reset store to initial state
|
|
2694
|
-
*/
|
|
2695
|
-
reset(): void;
|
|
2696
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardStoreService, never>;
|
|
2697
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardStoreService>;
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
2635
|
/**
|
|
2701
2636
|
* Dashboard Viewer Component
|
|
2702
2637
|
*
|
|
@@ -2707,7 +2642,7 @@ declare class DashboardStoreService {
|
|
|
2707
2642
|
* - CSS Grid-based layout display
|
|
2708
2643
|
* - Chart/widget rendering
|
|
2709
2644
|
* - Group support with tab switching
|
|
2710
|
-
* -
|
|
2645
|
+
* - Page filter drawer integration
|
|
2711
2646
|
* - Dialog rendering
|
|
2712
2647
|
*/
|
|
2713
2648
|
declare class DashboardViewer implements OnInit, OnDestroy {
|
|
@@ -2718,8 +2653,9 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2718
2653
|
private limitedHttp;
|
|
2719
2654
|
private route;
|
|
2720
2655
|
private router;
|
|
2721
|
-
|
|
2722
|
-
|
|
2656
|
+
private modalService;
|
|
2657
|
+
private transloco;
|
|
2658
|
+
private pageFilterDefaults;
|
|
2723
2659
|
private get repeaterUrlConfig();
|
|
2724
2660
|
/** Whether to wrap content in mt-page component */
|
|
2725
2661
|
readonly isPage: _angular_core.InputSignal<boolean>;
|
|
@@ -2736,11 +2672,15 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2736
2672
|
/** Pre-loaded dialogs (optional) */
|
|
2737
2673
|
readonly dialogsData: _angular_core.InputSignal<DashboardDialogItem[]>;
|
|
2738
2674
|
/** Pre-loaded filters (optional) */
|
|
2739
|
-
readonly filtersData: _angular_core.InputSignal<
|
|
2675
|
+
readonly filtersData: _angular_core.InputSignal<FilterField[]>;
|
|
2740
2676
|
/** Dashboard-wide extra filters applied to every item request */
|
|
2741
2677
|
readonly extraFilters: _angular_core.InputSignal<Record<string, any>>;
|
|
2742
|
-
/**
|
|
2678
|
+
/** Enable page-wide runtime filters. */
|
|
2743
2679
|
readonly showFilters: _angular_core.InputSignal<boolean>;
|
|
2680
|
+
/** Render the built-in, in-flow button that opens page runtime filters. */
|
|
2681
|
+
readonly showFilterTrigger: _angular_core.InputSignal<boolean>;
|
|
2682
|
+
/** Host-wide opt-out from URL/query filters for every chart. */
|
|
2683
|
+
readonly ignoreQueryFilter: _angular_core.InputSignal<boolean>;
|
|
2744
2684
|
/** Emit when page is loaded */
|
|
2745
2685
|
readonly pageLoaded: _angular_core.OutputEmitterRef<_masterteam_dashboard_builder.Report>;
|
|
2746
2686
|
/** Emit when back button is clicked */
|
|
@@ -2754,7 +2694,7 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2754
2694
|
readonly pageConfig: _angular_core.WritableSignal<_masterteam_dashboard_builder.Report | null>;
|
|
2755
2695
|
readonly charts: _angular_core.WritableSignal<DashboardChartItem[]>;
|
|
2756
2696
|
readonly dialogs: _angular_core.WritableSignal<DashboardDialogItem[]>;
|
|
2757
|
-
readonly filters: _angular_core.WritableSignal<
|
|
2697
|
+
readonly filters: _angular_core.WritableSignal<FilterField[]>;
|
|
2758
2698
|
readonly filtersPanelOpen: _angular_core.WritableSignal<boolean>;
|
|
2759
2699
|
readonly languageCode: _angular_core.Signal<string>;
|
|
2760
2700
|
readonly direction: _angular_core.Signal<"rtl" | "ltr">;
|
|
@@ -2767,6 +2707,10 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2767
2707
|
private readonly rowGap;
|
|
2768
2708
|
private readonly bottomSafeArea;
|
|
2769
2709
|
private lastExtraFiltersSignature;
|
|
2710
|
+
private filtersDrawerRef?;
|
|
2711
|
+
private pageLoadSubscription?;
|
|
2712
|
+
private pageLoadRequestId;
|
|
2713
|
+
private readonly suppressedPageDefaultKeys;
|
|
2770
2714
|
private readonly hasSplitPreloadedData;
|
|
2771
2715
|
private dashboardDataEffect;
|
|
2772
2716
|
private chartsDataEffect;
|
|
@@ -2774,7 +2718,6 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2774
2718
|
private filtersDataEffect;
|
|
2775
2719
|
private extraFiltersEffect;
|
|
2776
2720
|
private preloadedInputsEffect;
|
|
2777
|
-
private pageFiltersVisibilityEffect;
|
|
2778
2721
|
private pageIdEffect;
|
|
2779
2722
|
ngOnInit(): void;
|
|
2780
2723
|
ngOnDestroy(): void;
|
|
@@ -2788,7 +2731,16 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2788
2731
|
onPageFilterChange(values: Record<string, any>): void;
|
|
2789
2732
|
toggleFiltersPanel(): void;
|
|
2790
2733
|
closeFiltersPanel(): void;
|
|
2734
|
+
/** Open the stable MT drawer. Hosts can call this when rendering their own trigger. */
|
|
2735
|
+
openFiltersPanel(): void;
|
|
2736
|
+
private trackExplicitDefaultState;
|
|
2737
|
+
private hasConfiguredDefault;
|
|
2791
2738
|
loadPage(id: string | number): void;
|
|
2739
|
+
private cancelPageLoad;
|
|
2740
|
+
private resetLoadedPageState;
|
|
2741
|
+
private commitLoadedPage;
|
|
2742
|
+
private buildInactiveFilterClears;
|
|
2743
|
+
private mergeActiveQueryParams;
|
|
2792
2744
|
/**
|
|
2793
2745
|
* Normalize a page's filters into a FLAT `FilterField[]`. The backend stores
|
|
2794
2746
|
* `dashboardConfig.filters` as a JSON string OR an array; older code wrapped
|
|
@@ -2832,6 +2784,8 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2832
2784
|
* Check if item should be shown (not grouped or is a group itself)
|
|
2833
2785
|
*/
|
|
2834
2786
|
shouldShowItem(item: DashboardChartItem): boolean;
|
|
2787
|
+
/** Page/host opt-out and the chart's own opt-out are both authoritative. */
|
|
2788
|
+
shouldIgnoreQueryFilter(item: DashboardChartItem): boolean;
|
|
2835
2789
|
/**
|
|
2836
2790
|
* Get item title
|
|
2837
2791
|
*/
|
|
@@ -2866,7 +2820,7 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2866
2820
|
trackByDashboardId(_index: number, item: DashboardChartItem): string;
|
|
2867
2821
|
private refreshAllItems;
|
|
2868
2822
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardViewer, never>;
|
|
2869
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardViewer, "mt-dashboard-viewer", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "chartsData": { "alias": "chartsData"; "required": false; "isSignal": true; }; "dialogsData": { "alias": "dialogsData"; "required": false; "isSignal": true; }; "filtersData": { "alias": "filtersData"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; }, { "pageLoaded": "pageLoaded"; "onBack": "onBack"; "chartClick": "chartClick"; }, never, never, true, never>;
|
|
2823
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardViewer, "mt-dashboard-viewer", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "chartsData": { "alias": "chartsData"; "required": false; "isSignal": true; }; "dialogsData": { "alias": "dialogsData"; "required": false; "isSignal": true; }; "filtersData": { "alias": "filtersData"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "showFilterTrigger": { "alias": "showFilterTrigger"; "required": false; "isSignal": true; }; "ignoreQueryFilter": { "alias": "ignoreQueryFilter"; "required": false; "isSignal": true; }; }, { "pageLoaded": "pageLoaded"; "onBack": "onBack"; "chartClick": "chartClick"; }, never, never, true, never>;
|
|
2870
2824
|
}
|
|
2871
2825
|
|
|
2872
2826
|
/**
|
|
@@ -2901,6 +2855,8 @@ interface DashboardItemStore {
|
|
|
2901
2855
|
hasError?: boolean;
|
|
2902
2856
|
/** Extra filter from parent context */
|
|
2903
2857
|
extraFilter?: Record<string, any>;
|
|
2858
|
+
/** Configured chart-filter defaults explicitly cleared for this widget. */
|
|
2859
|
+
suppressedDynamicFilterDefaultKeys?: string[];
|
|
2904
2860
|
/** Stop actions flag */
|
|
2905
2861
|
stopActions?: boolean;
|
|
2906
2862
|
/** Query params for current context */
|
|
@@ -3165,9 +3121,11 @@ declare class DashboardItem implements OnInit, OnDestroy {
|
|
|
3165
3121
|
private readonly itemStoreService;
|
|
3166
3122
|
private readonly chartDataService;
|
|
3167
3123
|
private readonly actionService;
|
|
3124
|
+
private readonly activatedRoute;
|
|
3168
3125
|
private readonly transloco;
|
|
3169
3126
|
private readonly guidance;
|
|
3170
3127
|
private subscription;
|
|
3128
|
+
private dataRequestSubscription?;
|
|
3171
3129
|
private readonly destroy$;
|
|
3172
3130
|
/** Chart configuration */
|
|
3173
3131
|
readonly config: _angular_core.InputSignal<ItemConfig | null>;
|
|
@@ -3185,6 +3143,8 @@ declare class DashboardItem implements OnInit, OnDestroy {
|
|
|
3185
3143
|
readonly queryParams: _angular_core.InputSignal<Record<string, any>>;
|
|
3186
3144
|
/** Dashboard-wide extra filters passed from viewer/context */
|
|
3187
3145
|
readonly extraFilters: _angular_core.InputSignal<Record<string, any>>;
|
|
3146
|
+
/** Parent report/page id used as the chart request execution context. */
|
|
3147
|
+
readonly reportId: _angular_core.InputSignal<string | number | null>;
|
|
3188
3148
|
/** Skip global route/query filters for this item */
|
|
3189
3149
|
readonly ignoreQueryFilter: _angular_core.InputSignal<boolean>;
|
|
3190
3150
|
/**
|
|
@@ -3265,6 +3225,8 @@ declare class DashboardItem implements OnInit, OnDestroy {
|
|
|
3265
3225
|
private initialized;
|
|
3266
3226
|
/** Track current dashboardId to detect changes */
|
|
3267
3227
|
private currentDashboardId;
|
|
3228
|
+
/** Last parent config reference, including same-item immutable updates. */
|
|
3229
|
+
private currentInputConfig;
|
|
3268
3230
|
constructor();
|
|
3269
3231
|
ngOnInit(): void;
|
|
3270
3232
|
/**
|
|
@@ -3315,7 +3277,7 @@ declare class DashboardItem implements OnInit, OnDestroy {
|
|
|
3315
3277
|
private buildParentFilter;
|
|
3316
3278
|
private mergeRequestFilters;
|
|
3317
3279
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardItem, never>;
|
|
3318
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardItem, "mt-dashboard-item", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pageName": { "alias": "pageName"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isDialog": { "alias": "isDialog"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "ignoreQueryFilter": { "alias": "ignoreQueryFilter"; "required": false; "isSignal": true; }; "builderMode": { "alias": "builderMode"; "required": false; "isSignal": true; }; }, { "actionTriggered": "actionTriggered"; "configureRequested": "configureRequested"; "titleEdited": "titleEdited"; }, never, never, true, never>;
|
|
3280
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardItem, "mt-dashboard-item", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pageName": { "alias": "pageName"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isDialog": { "alias": "isDialog"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "reportId": { "alias": "reportId"; "required": false; "isSignal": true; }; "ignoreQueryFilter": { "alias": "ignoreQueryFilter"; "required": false; "isSignal": true; }; "builderMode": { "alias": "builderMode"; "required": false; "isSignal": true; }; }, { "actionTriggered": "actionTriggered"; "configureRequested": "configureRequested"; "titleEdited": "titleEdited"; }, never, never, true, never>;
|
|
3319
3281
|
}
|
|
3320
3282
|
|
|
3321
3283
|
interface HeaderCardConfig$1 {
|
|
@@ -3500,85 +3462,43 @@ declare class StaticFiltersComponent implements OnInit {
|
|
|
3500
3462
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StaticFiltersComponent, "mt-static-filters", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; }, never, never, true, never>;
|
|
3501
3463
|
}
|
|
3502
3464
|
|
|
3503
|
-
|
|
3465
|
+
/**
|
|
3466
|
+
* Compact chart-level filter entry point.
|
|
3467
|
+
*
|
|
3468
|
+
* Values are edited in the shared MT runtime drawer and remain draft-only
|
|
3469
|
+
* until Apply. The item store is mutated only after the drawer closes with an
|
|
3470
|
+
* explicit Apply/Clear result, so one chart can never refresh its siblings.
|
|
3471
|
+
*/
|
|
3472
|
+
declare class DynamicFiltersComponent {
|
|
3504
3473
|
private readonly storeService;
|
|
3474
|
+
private readonly modalService;
|
|
3505
3475
|
private readonly transloco;
|
|
3506
|
-
private readonly
|
|
3507
|
-
private readonly filterUtils;
|
|
3476
|
+
private readonly defaultsService;
|
|
3508
3477
|
private readonly destroyRef;
|
|
3509
|
-
|
|
3510
|
-
private
|
|
3511
|
-
/**
|
|
3512
|
-
private readonly loadedOptionKeys;
|
|
3513
|
-
/** Dynamic filter fields configuration */
|
|
3478
|
+
private filterDrawerRef?;
|
|
3479
|
+
private filterDrawerCloseSubscription?;
|
|
3480
|
+
/** Persisted definitions. `active:false` and layout-only rows are hidden. */
|
|
3514
3481
|
readonly fields: _angular_core.InputSignal<DynamicFilterField[]>;
|
|
3515
|
-
/**
|
|
3482
|
+
/** Store identity of the single widget this control owns. */
|
|
3516
3483
|
readonly dashboardId: _angular_core.InputSignal<string | number | undefined>;
|
|
3517
|
-
/**
|
|
3484
|
+
/** Parent report identity used only for dropdown option requests. */
|
|
3485
|
+
readonly reportId: _angular_core.InputSignal<string | number | null>;
|
|
3486
|
+
/** Retained for source compatibility; fields now render inside the drawer. */
|
|
3518
3487
|
readonly showLabels: _angular_core.InputSignal<boolean>;
|
|
3519
|
-
/** Filter change event */
|
|
3520
3488
|
readonly filterChange: _angular_core.OutputEmitterRef<{
|
|
3521
3489
|
key: string;
|
|
3522
3490
|
value: any;
|
|
3523
3491
|
}>;
|
|
3524
|
-
/** All filters change event - emitted with all current values */
|
|
3525
3492
|
readonly filtersChange: _angular_core.OutputEmitterRef<Record<string, any>>;
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
/** Language code */
|
|
3529
|
-
readonly langCode: _angular_core.Signal<string>;
|
|
3530
|
-
/** Month options */
|
|
3531
|
-
readonly months: {
|
|
3532
|
-
value: number;
|
|
3533
|
-
labelEn: string;
|
|
3534
|
-
labelAr: string;
|
|
3535
|
-
}[];
|
|
3536
|
-
/** Quarter options */
|
|
3537
|
-
readonly quarters: {
|
|
3538
|
-
value: number;
|
|
3539
|
-
labelEn: string;
|
|
3540
|
-
labelAr: string;
|
|
3541
|
-
}[];
|
|
3493
|
+
readonly filterDrawerOpen: _angular_core.WritableSignal<boolean>;
|
|
3494
|
+
readonly runtimeFields: _angular_core.Signal<DynamicFilterField[]>;
|
|
3542
3495
|
constructor();
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
* settings; dropdownTVService by running its selection). Year/month/quarter
|
|
3548
|
-
* use the built-in option lists; date/user/checkbox need none.
|
|
3549
|
-
*/
|
|
3550
|
-
private loadOptions;
|
|
3551
|
-
/** Resolve a dropdown-by-selection field's distinct values via its query. */
|
|
3552
|
-
private loadDropdownTvServiceOptions;
|
|
3553
|
-
private mapTvServiceRows;
|
|
3554
|
-
private setOptions;
|
|
3555
|
-
ngOnInit(): void;
|
|
3556
|
-
/**
|
|
3557
|
-
* Get localized field label
|
|
3558
|
-
*/
|
|
3559
|
-
getFieldLabel(field: DynamicFilterField): string;
|
|
3560
|
-
/**
|
|
3561
|
-
* Get localized option label
|
|
3562
|
-
*/
|
|
3563
|
-
getOptionLabel(option: any): string;
|
|
3564
|
-
/**
|
|
3565
|
-
* Get selected value for a field
|
|
3566
|
-
*/
|
|
3567
|
-
getSelectedValue(field: DynamicFilterField): any;
|
|
3568
|
-
/**
|
|
3569
|
-
* Get year options based on configuration
|
|
3570
|
-
*/
|
|
3571
|
-
getYearOptions(field: DynamicFilterField): number[];
|
|
3572
|
-
/**
|
|
3573
|
-
* Handle field value change
|
|
3574
|
-
*/
|
|
3575
|
-
onFieldChange(field: DynamicFilterField, value: any): void;
|
|
3576
|
-
applyFilters(): void;
|
|
3577
|
-
clearFilters(): void;
|
|
3578
|
-
private compactValues;
|
|
3579
|
-
private mergeOwnFilterValues;
|
|
3496
|
+
openFilters(): void;
|
|
3497
|
+
private releaseFilterDrawer;
|
|
3498
|
+
private destroyFilterDrawer;
|
|
3499
|
+
private commitResult;
|
|
3580
3500
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicFiltersComponent, never>;
|
|
3581
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFiltersComponent, "mt-dynamic-filters", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; "filtersChange": "filtersChange"; }, never, never, true, never>;
|
|
3501
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFiltersComponent, "mt-dynamic-filters", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "reportId": { "alias": "reportId"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; "filtersChange": "filtersChange"; }, never, never, true, never>;
|
|
3582
3502
|
}
|
|
3583
3503
|
|
|
3584
3504
|
interface CardInfoConfig$1 {
|
|
@@ -3657,10 +3577,11 @@ interface PerformanceGaugeViewModel {
|
|
|
3657
3577
|
declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
3658
3578
|
private readonly storeService;
|
|
3659
3579
|
private readonly dashboardStore;
|
|
3660
|
-
private readonly actionService;
|
|
3661
3580
|
private readonly subscription;
|
|
3662
3581
|
/** Dashboard ID for this card */
|
|
3663
3582
|
readonly dashboardId: _angular_core.InputSignal<string | number>;
|
|
3583
|
+
/** Parent report identity; distinct from this widget's store identity. */
|
|
3584
|
+
readonly reportId: _angular_core.InputSignal<string | number | null>;
|
|
3664
3585
|
/** Whether card is inside a group */
|
|
3665
3586
|
readonly inGroup: _angular_core.InputSignal<boolean>;
|
|
3666
3587
|
/** Config mode flag (drawer preview) */
|
|
@@ -3695,9 +3616,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3695
3616
|
} | undefined>;
|
|
3696
3617
|
/** Static filter configuration */
|
|
3697
3618
|
readonly staticFilterConfig: _angular_core.Signal<StaticFilterConfig | null>;
|
|
3698
|
-
/**
|
|
3699
|
-
* the legacy p+4 location `extraFilters.dynamicFilters` so old charts still
|
|
3700
|
-
* render their interactive filters. */
|
|
3619
|
+
/** Canonical interactive fields with a legacy read fallback. */
|
|
3701
3620
|
readonly dynamicFilterFields: _angular_core.Signal<DynamicFilterField[]>;
|
|
3702
3621
|
/** Show static filters */
|
|
3703
3622
|
readonly showStaticFilters: _angular_core.Signal<boolean | undefined>;
|
|
@@ -3794,7 +3713,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3794
3713
|
private humanizeTimelinePropertyKey;
|
|
3795
3714
|
private toDisplayText;
|
|
3796
3715
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartCardComponent, never>;
|
|
3797
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartCardComponent, "mt-chart-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isConfigMode": { "alias": "isConfigMode"; "required": false; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; "onConfigure": "onConfigure"; "onTitleChange": "onTitleChange"; }, never, never, true, never>;
|
|
3716
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartCardComponent, "mt-chart-card", never, { "dashboardId": { "alias": "dashboardId"; "required": true; "isSignal": true; }; "reportId": { "alias": "reportId"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isConfigMode": { "alias": "isConfigMode"; "required": false; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; "onConfigure": "onConfigure"; "onTitleChange": "onTitleChange"; }, never, never, true, never>;
|
|
3798
3717
|
}
|
|
3799
3718
|
|
|
3800
3719
|
type EChartsType = any;
|
|
@@ -4282,6 +4201,7 @@ declare class LastHistoryLevelCardComponent implements OnInit, OnDestroy {
|
|
|
4282
4201
|
private readonly dashboardStore;
|
|
4283
4202
|
private readonly subscription;
|
|
4284
4203
|
readonly dashboardId: _angular_core.InputSignal<string | number | null>;
|
|
4204
|
+
readonly reportId: _angular_core.InputSignal<string | number | null>;
|
|
4285
4205
|
readonly inGroup: _angular_core.InputSignal<boolean>;
|
|
4286
4206
|
readonly onAction: _angular_core.OutputEmitterRef<{
|
|
4287
4207
|
type: string;
|
|
@@ -4295,6 +4215,7 @@ declare class LastHistoryLevelCardComponent implements OnInit, OnDestroy {
|
|
|
4295
4215
|
readonly createdByName: _angular_core.Signal<any>;
|
|
4296
4216
|
readonly showStaticFilters: _angular_core.Signal<any>;
|
|
4297
4217
|
readonly showDynamicFilters: _angular_core.Signal<boolean>;
|
|
4218
|
+
readonly dynamicFilterFields: _angular_core.Signal<DynamicFilterField[]>;
|
|
4298
4219
|
readonly showTopEnd: _angular_core.Signal<any>;
|
|
4299
4220
|
ngOnInit(): void;
|
|
4300
4221
|
ngOnDestroy(): void;
|
|
@@ -4304,7 +4225,7 @@ declare class LastHistoryLevelCardComponent implements OnInit, OnDestroy {
|
|
|
4304
4225
|
private unwrapPropertyValue;
|
|
4305
4226
|
private normalize;
|
|
4306
4227
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LastHistoryLevelCardComponent, never>;
|
|
4307
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LastHistoryLevelCardComponent, "mt-last-history-level-card", never, { "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
4228
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LastHistoryLevelCardComponent, "mt-last-history-level-card", never, { "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "reportId": { "alias": "reportId"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
4308
4229
|
}
|
|
4309
4230
|
|
|
4310
4231
|
declare class ListStatisticCardComponent implements OnInit, OnDestroy {
|
|
@@ -4772,6 +4693,9 @@ declare class DashboardItemStoreService {
|
|
|
4772
4693
|
* Set extra filter for an item
|
|
4773
4694
|
*/
|
|
4774
4695
|
setExtraFilter(dashboardId: string | number, filter: Record<string, any>): void;
|
|
4696
|
+
/** Configured defaults explicitly cleared for one chart runtime session. */
|
|
4697
|
+
getSuppressedDynamicFilterDefaultKeys(dashboardId: string | number): readonly string[];
|
|
4698
|
+
setSuppressedDynamicFilterDefaultKeys(dashboardId: string | number, keys: readonly string[]): void;
|
|
4775
4699
|
/**
|
|
4776
4700
|
* Set query params for an item
|
|
4777
4701
|
*/
|
|
@@ -4831,7 +4755,7 @@ declare class ChartDataService {
|
|
|
4831
4755
|
/**
|
|
4832
4756
|
* Main entry point - fetch and process chart data
|
|
4833
4757
|
*/
|
|
4834
|
-
fetchChartData(config: ItemConfig, filters?: Record<string, any
|
|
4758
|
+
fetchChartData(config: ItemConfig, filters?: Record<string, any>, reportId?: string | number | null): Observable<ChartDataHandled | null>;
|
|
4835
4759
|
/**
|
|
4836
4760
|
* Build HTTP request based on request type
|
|
4837
4761
|
*/
|
|
@@ -4869,7 +4793,7 @@ declare class ChartDataService {
|
|
|
4869
4793
|
private buildCustomRequestBody;
|
|
4870
4794
|
/**
|
|
4871
4795
|
* Fetch snapshot data
|
|
4872
|
-
* URL: ${urlPrefix}dashboards/${apiVersion}GetSnapShotInfo/${
|
|
4796
|
+
* URL: ${urlPrefix}dashboards/${apiVersion}GetSnapShotInfo/${levelDataId}/${timeFrame}?year=${year}
|
|
4873
4797
|
*/
|
|
4874
4798
|
private fetchSnapshotData;
|
|
4875
4799
|
/**
|
|
@@ -5578,14 +5502,29 @@ declare function createAxisFormatter(config?: {
|
|
|
5578
5502
|
declare function createTooltipFormatter(config?: {
|
|
5579
5503
|
type?: 'currency' | 'percentage' | 'number';
|
|
5580
5504
|
}, langCode?: string): (value: number) => string;
|
|
5505
|
+
type AxisLabelWrapMode = 'characters' | 'words' | 'none';
|
|
5506
|
+
interface AxisLabelWrapConfig {
|
|
5507
|
+
axisLabelWrapMode?: AxisLabelWrapMode | null;
|
|
5508
|
+
maxCharsPerLine?: number | null;
|
|
5509
|
+
maxWordsPerLine?: number | null;
|
|
5510
|
+
}
|
|
5511
|
+
interface AxisLabelWrapOptions {
|
|
5512
|
+
mode?: Exclude<AxisLabelWrapMode, 'none'>;
|
|
5513
|
+
/** `null` keeps every wrapped line. */
|
|
5514
|
+
maxLines?: number | null;
|
|
5515
|
+
}
|
|
5581
5516
|
/**
|
|
5582
|
-
* Format
|
|
5583
|
-
*
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5517
|
+
* Format an axis label using the persisted chart wrapping controls.
|
|
5518
|
+
* Missing mode values keep legacy dashboards on character-based wrapping.
|
|
5519
|
+
*/
|
|
5520
|
+
declare function formatAxisLabel(text: string, config?: AxisLabelWrapConfig | null): string;
|
|
5521
|
+
/**
|
|
5522
|
+
* Wrap a display label without changing its casing.
|
|
5523
|
+
*
|
|
5524
|
+
* Existing callers retain the legacy two-line cap outside report mode. New
|
|
5525
|
+
* chart controls use `formatAxisLabel`, which keeps the complete label.
|
|
5587
5526
|
*/
|
|
5588
|
-
declare function formatWordsUnderBar(text: string,
|
|
5527
|
+
declare function formatWordsUnderBar(text: string, maxPerLine?: number, insideReport?: boolean, options?: AxisLabelWrapOptions): string;
|
|
5589
5528
|
/**
|
|
5590
5529
|
* Format X Axis Configuration
|
|
5591
5530
|
*/
|
|
@@ -5818,6 +5757,11 @@ interface ApiResponse<T> {
|
|
|
5818
5757
|
status?: number;
|
|
5819
5758
|
message?: string;
|
|
5820
5759
|
}
|
|
5760
|
+
interface SnapshotLevelDataOption {
|
|
5761
|
+
id: number;
|
|
5762
|
+
name: string;
|
|
5763
|
+
schemaId?: number;
|
|
5764
|
+
}
|
|
5821
5765
|
interface DashboardTargetTemplateFilter {
|
|
5822
5766
|
propertyKey: string;
|
|
5823
5767
|
propertyValue: any;
|
|
@@ -6050,6 +5994,12 @@ declare class DashboardBuilderService {
|
|
|
6050
5994
|
* Get all available services from gateway
|
|
6051
5995
|
*/
|
|
6052
5996
|
getMetadataServices(): Observable<ApiResponse<any[]>>;
|
|
5997
|
+
/**
|
|
5998
|
+
* Load the records belonging to one Level schema for snapshot authoring.
|
|
5999
|
+
* The snapshot endpoint is record-scoped, so its URL must receive one of
|
|
6000
|
+
* these record ids rather than the selected schema id.
|
|
6001
|
+
*/
|
|
6002
|
+
getSnapshotLevelDataOptions(levelId: string | number): Observable<SnapshotLevelDataOption[]>;
|
|
6053
6003
|
/**
|
|
6054
6004
|
* Get modules tree with all services, modules, and values in a single call
|
|
6055
6005
|
* This returns the complete tree structure for efficient caching
|
|
@@ -6136,6 +6086,83 @@ declare class DashboardBuilderService {
|
|
|
6136
6086
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardBuilderService>;
|
|
6137
6087
|
}
|
|
6138
6088
|
|
|
6089
|
+
/**
|
|
6090
|
+
* Store Service
|
|
6091
|
+
*
|
|
6092
|
+
* Simple reactive store for dashboard builder state management
|
|
6093
|
+
*/
|
|
6094
|
+
declare class DashboardStoreService {
|
|
6095
|
+
private readonly limitedHttp;
|
|
6096
|
+
/** Query parameters */
|
|
6097
|
+
private queryParamsSignal;
|
|
6098
|
+
readonly queryParams: _angular_core.Signal<Record<string, any>>;
|
|
6099
|
+
/** Stop actions on cards flag */
|
|
6100
|
+
private stopActionsSignal;
|
|
6101
|
+
readonly stopActions: _angular_core.Signal<boolean>;
|
|
6102
|
+
/** Dynamic key-value store */
|
|
6103
|
+
private dynamicStore;
|
|
6104
|
+
/** Language code */
|
|
6105
|
+
readonly languageCode: _angular_core.WritableSignal<string>;
|
|
6106
|
+
/** Direction */
|
|
6107
|
+
readonly direction: _angular_core.WritableSignal<"rtl" | "ltr">;
|
|
6108
|
+
/** Inside Report Viewer flag - controls text truncation in charts */
|
|
6109
|
+
private insideReportViewerSignal;
|
|
6110
|
+
readonly insideReportViewer: _angular_core.Signal<boolean>;
|
|
6111
|
+
/** Reload current page subject */
|
|
6112
|
+
private reloadCurrentPageSubject;
|
|
6113
|
+
readonly reloadCurrentPage$: rxjs.Observable<void>;
|
|
6114
|
+
/**
|
|
6115
|
+
* Trigger reload of current page.
|
|
6116
|
+
*
|
|
6117
|
+
* @param force When true, the LimitedHttpService response cache is cleared
|
|
6118
|
+
* first so dashboard items re-fetch fresh data from the network instead of
|
|
6119
|
+
* being served a cached (potentially stale) response. Pass `true` after a
|
|
6120
|
+
* data mutation (create/update/delete) so counts/KPIs reflect the new state
|
|
6121
|
+
* without requiring a full page refresh. Defaults to `false` to preserve the
|
|
6122
|
+
* existing cache-friendly behaviour for plain re-renders.
|
|
6123
|
+
*/
|
|
6124
|
+
triggerReloadCurrentPage(force?: boolean): void;
|
|
6125
|
+
/**
|
|
6126
|
+
* Update query parameters
|
|
6127
|
+
*/
|
|
6128
|
+
updateQueryParams(params: Record<string, any>): void;
|
|
6129
|
+
/**
|
|
6130
|
+
* Update stop actions flag
|
|
6131
|
+
*/
|
|
6132
|
+
updateStopActions(value: boolean): void;
|
|
6133
|
+
/**
|
|
6134
|
+
* Set inside report viewer mode
|
|
6135
|
+
* When true, axis labels won't be truncated and custom legends may be skipped
|
|
6136
|
+
*/
|
|
6137
|
+
setInsideReportViewer(value: boolean): void;
|
|
6138
|
+
/**
|
|
6139
|
+
* Update dynamic key in store
|
|
6140
|
+
*/
|
|
6141
|
+
updateDynamicKey(key: string, value: any): void;
|
|
6142
|
+
/**
|
|
6143
|
+
* Get dynamic key from store
|
|
6144
|
+
*/
|
|
6145
|
+
getDynamicKey<T = any>(key: string): T | undefined;
|
|
6146
|
+
/**
|
|
6147
|
+
* Get computed value from dynamic store
|
|
6148
|
+
*/
|
|
6149
|
+
selectDynamicKey<T = any>(key: string): _angular_core.Signal<T | undefined>;
|
|
6150
|
+
/**
|
|
6151
|
+
* Get query params as a plain object
|
|
6152
|
+
*/
|
|
6153
|
+
getQueryParams(): Record<string, any>;
|
|
6154
|
+
/**
|
|
6155
|
+
* Get extra filters for a specific dashboard action
|
|
6156
|
+
*/
|
|
6157
|
+
getExtraFilterForCurrentAction(dashboardId: string): Record<string, any>;
|
|
6158
|
+
/**
|
|
6159
|
+
* Reset store to initial state
|
|
6160
|
+
*/
|
|
6161
|
+
reset(): void;
|
|
6162
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardStoreService, never>;
|
|
6163
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DashboardStoreService>;
|
|
6164
|
+
}
|
|
6165
|
+
|
|
6139
6166
|
interface ManagePagesDeleteResult {
|
|
6140
6167
|
action: 'deleted';
|
|
6141
6168
|
id: string | number;
|
|
@@ -7188,6 +7215,9 @@ interface BarControlConfig {
|
|
|
7188
7215
|
yAxisFontColor?: string;
|
|
7189
7216
|
xAxisLineColor?: string;
|
|
7190
7217
|
yAxisLineColor?: string;
|
|
7218
|
+
axisLabelWrapMode?: 'characters' | 'words' | 'none';
|
|
7219
|
+
maxCharsPerLine?: number | null;
|
|
7220
|
+
maxWordsPerLine?: number | null;
|
|
7191
7221
|
gridTop?: number | null;
|
|
7192
7222
|
gridBottom?: number | null;
|
|
7193
7223
|
gridLeft?: number | null;
|
|
@@ -7204,7 +7234,6 @@ interface BarControlConfig {
|
|
|
7204
7234
|
tooltipBorderWidth?: number;
|
|
7205
7235
|
borderRadius?: boolean;
|
|
7206
7236
|
showValueOnlyInTooltip?: boolean;
|
|
7207
|
-
maxCharsPerLine?: number | null;
|
|
7208
7237
|
isGrouped?: boolean;
|
|
7209
7238
|
}
|
|
7210
7239
|
declare class BarControlUi implements ControlValueAccessor {
|
|
@@ -7249,14 +7278,19 @@ declare class BarControlUi implements ControlValueAccessor {
|
|
|
7249
7278
|
label: string;
|
|
7250
7279
|
value: number;
|
|
7251
7280
|
})[];
|
|
7252
|
-
|
|
7253
|
-
readonly maxCharsPerLineOptions: ({
|
|
7281
|
+
readonly axisLabelWrapModeOptions: {
|
|
7254
7282
|
label: string;
|
|
7255
|
-
value:
|
|
7256
|
-
}
|
|
7283
|
+
value: string;
|
|
7284
|
+
}[];
|
|
7285
|
+
/** Character limits keep numeric styling choices predictable. */
|
|
7286
|
+
readonly maxCharsPerLineOptions: {
|
|
7257
7287
|
label: string;
|
|
7258
7288
|
value: number;
|
|
7259
|
-
}
|
|
7289
|
+
}[];
|
|
7290
|
+
readonly maxWordsPerLineOptions: {
|
|
7291
|
+
label: string;
|
|
7292
|
+
value: number;
|
|
7293
|
+
}[];
|
|
7260
7294
|
private onChange;
|
|
7261
7295
|
private onTouched;
|
|
7262
7296
|
writeValue(value: BarControlConfig): void;
|
|
@@ -7274,6 +7308,9 @@ interface StackBarControlConfig {
|
|
|
7274
7308
|
barType?: 'bar' | 'line';
|
|
7275
7309
|
xAxisLabelRotate?: number;
|
|
7276
7310
|
xAxisFontSize?: number;
|
|
7311
|
+
axisLabelWrapMode?: 'characters' | 'words' | 'none';
|
|
7312
|
+
maxCharsPerLine?: number | null;
|
|
7313
|
+
maxWordsPerLine?: number | null;
|
|
7277
7314
|
yAxisShow?: boolean;
|
|
7278
7315
|
yAxisFormat?: {
|
|
7279
7316
|
type: string;
|
|
@@ -7321,6 +7358,18 @@ declare class StackBarControlUi implements ControlValueAccessor {
|
|
|
7321
7358
|
label: string;
|
|
7322
7359
|
value: number;
|
|
7323
7360
|
}[];
|
|
7361
|
+
readonly axisLabelWrapModeOptions: {
|
|
7362
|
+
label: string;
|
|
7363
|
+
value: string;
|
|
7364
|
+
}[];
|
|
7365
|
+
readonly maxCharsPerLineOptions: {
|
|
7366
|
+
label: string;
|
|
7367
|
+
value: number;
|
|
7368
|
+
}[];
|
|
7369
|
+
readonly maxWordsPerLineOptions: {
|
|
7370
|
+
label: string;
|
|
7371
|
+
value: number;
|
|
7372
|
+
}[];
|
|
7324
7373
|
/** ECharts barWidth presets — Auto (omit) + common pixel widths. */
|
|
7325
7374
|
readonly barWidthOptions: ({
|
|
7326
7375
|
label: string;
|
|
@@ -8567,5 +8616,5 @@ declare class GetChartActionsPipe implements PipeTransform {
|
|
|
8567
8616
|
*/
|
|
8568
8617
|
declare function cloneDeep<T>(obj: T): T;
|
|
8569
8618
|
|
|
8570
|
-
export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, 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, KeyValueMapField, LastHistoryLevelCardComponent, LegendOrderField, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SegmentedField, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, StyleField, StyleSettingsRenderer, StyleStudioDrawer, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, addCommasToNumber, applyBehaviorToPersisted, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, createAxisFormatter, createTooltipFormatter, datasourceToUi, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, expandResetPatches, 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, isManagePagesDeleteResult, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
|
|
8571
|
-
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, GroupedParentOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LegendOrderItem, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedName, ManageFilterOnPageResult, ManagePagesDeleteResult, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, 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 };
|
|
8619
|
+
export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, 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, KeyValueMapField, LastHistoryLevelCardComponent, LegendOrderField, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SegmentedField, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, StyleField, StyleSettingsRenderer, StyleStudioDrawer, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, addCommasToNumber, applyBehaviorToPersisted, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, createAxisFormatter, createTooltipFormatter, datasourceToUi, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, expandResetPatches, fieldsToUi, filtersToUi, findDomain, findPreset, flattenSchema, formatAxisLabel, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isManagePagesDeleteResult, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
|
|
8620
|
+
export type { ActionConfig, ApiResponse, AxisLabelWrapConfig, AxisLabelWrapMode, AxisLabelWrapOptions, BackendChartType, BarChartData, BehaviorUi, BindingScope, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartCapability, ChartCapabilityLegacyAliases, RequestType$1 as ChartCapabilityRequestType, ChartData, ChartDataHandled, ChartDomainSupport, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, ConfigDomainKey, ConfigDomainSpec, ConfigLookupShape, ConfigViewAssembly, ControlBinding, ControlBindingIndex, ControlBindingValueAdapter, ControlDomain, ControlField, ControlFieldType, ControlOption, ControlPatch, ControlSchema, ControlSection, ControlSectionScope, ControlVisiblePredicate, CustomApi, 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, GroupedParentOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LegendOrderItem, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedName, ManageFilterOnPageResult, ManagePagesDeleteResult, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, 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, SnapshotLevelDataOption, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };
|