@masterteam/dashboard-builder 0.0.77 → 0.0.79
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 +18 -4
- package/assets/dashboard-builder.css +1 -1
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-DHcBk7ey.mjs → masterteam-dashboard-builder-dashboard-dialog.component-3gUffpic.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-DHcBk7ey.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-3gUffpic.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-XQD_Js7m.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-BcRAl_HF.mjs} +162 -45
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-BcRAl_HF.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +4 -4
- package/types/masterteam-dashboard-builder.d.ts +59 -11
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-XQD_Js7m.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { aC as ActionsSettings, aK as ArrayBuilderField, K as BarChartHandler, av as BarControlUi, aY as CHART_CAPABILITIES, ay as CHART_TYPES, bb as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, J as ChartDataService, aO as ChartFilterDrawer, ar as ChartSettingsDrawer, aD as ChartViewer, aJ as ColorListField, Z as ComparisonChartHandler, b as DashboardBuilder, ak as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ah as DashboardList, al as DashboardStoreService, d as DashboardViewer, aB as DataSourceSettings, aU as DatasourcePanelComponent, at as DefaultControlUi, as as DisplaySettings, r as DynamicFiltersComponent, aq as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, w as EntityInfoComponent, y as EntityPreviewCardComponent, aT as FilterBuilderComponent, aW as FilterByGroupPipe, aS as FilterChipsBarComponent, R as GaugeChartHandler, aA as GeneralSettings, aX as GetChartActionsPipe, aR as GuidedConfigDialogComponent, aj as HTTPMethod, H as HeaderCardComponent, bV as ITEM_GUIDANCE_REGISTRY, aN as ItemCardMenuComponent, aQ as ItemConfigPopoverComponent, aP as ItemContextToolbarComponent, bX as ItemGuidanceService, aL as KeyValueMapField, L as LastHistoryLevelCardComponent, aM as LegendOrderField, $ as LevelCardHandler, X as LineChartHandler, z as ListStatisticCardComponent, ai as MODULE_CLASSIFICATION_LOG, ao as ManageBreadcrumb, ap as ManageFilterOnPage, ax as ManageItem, az as ManageItemService, an as ManagePages, a0 as MapChartHandler, V as OverviewCardHandler, be as POPOVER_TABS, bf as POPOVER_TAB_SPECS, a3 as PhaseGateStepperHandler, M as PieChartHandler, au as PieControlUi, P as PropertiesCardComponent, a1 as RingGaugeChartHandler, a2 as SPlusChartHandler, bw as STYLE_PRESETS, aV as SchemaControlRendererComponent, aI as SegmentedField, A as SkeletonCardComponent, Y as SnapshotHandler, _ as SplitterChartHandler, N as StackBarChartHandler, aw as StackBarControlUi, S as StaticFiltersComponent, G as StatisticCardComponent, aH as StyleField, aF as StyleSettingsRenderer, aE as StyleStudioDrawer, T as TableCardComponent, U as TableViewHandler, W as TimelineHandler, I as TopbarCardComponent, m as addCommasToNumber, bs as applyBehaviorToPersisted, bH as applyControlPatchToPersisted, bI as applyControlPatchesToPersisted, bt as applyFilterChipsToPersisted, bq as applyLabelLegendFormatToPersisted, bo as applyLayoutToPersisted, bm as applyStyleToPersisted, bh as applyTitleToPersisted, O as axisFormatters, br as behaviorToUi, bQ as bindingKey, bv as buildAssembly, bP as buildDisplayFieldPredicate, c as cloneDeep, a9 as createAxisFormatter, aa as createTooltipFormatter, bi as datasourceToUi, bD as deepMerge, bW as describeGuidance, bc as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aG as expandResetPatches, bj as fieldsToUi, bk as filtersToUi, bd as findDomain, by as findPreset, bN as flattenSchema, ab as formatAxisLabel, a4 as formatCurrency, a8 as formatDate, bE as formatForEditor, a7 as formatNumber, a6 as formatPercentage, j as formatValue, ac as formatWordsUnderBar, ad as formatXAxis, i as generalConfiguration, bR as getBinding, aZ as getCapabilityById, p as getColorFromConditions, bJ as getControlSchema, a5 as getCurrencySuffix, bM as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, Q as groupDatesByYearAndMonth, bB as groupIssuesByDomain, af as handleFilterForCard, ag as handleFilterForSnapshot, ae as handleFiltersForCustom, bA as hasBlockingIssues, am as isManagePagesDeleteResult, o as isMobilePlatform, bp as labelLegendFormatToUi, bn as layoutToUi, bS as listBindings, bT as listBindingsForChart, bK as listControlSchemaIds, bL as listControlSchemas, b5 as moduleIdFromSelector, b2 as normalizeAggregateFunction, ba as normalizeBeforeRequest, b9 as normalizeBeforeSave, b0 as normalizeChartTypeForRequest, x as normalizeDashboardCardEntityValue, b1 as normalizeFilterOperation, b3 as normalizeFilters, b8 as normalizeOnLoad, bC as parseAdvancedJson, bu as persistedToUi, bx as presetsForCapability, bU as readBoundValue, bF as readByPath, a_ as resolveCapability, bO as resolveDisplayFields, v as resolveEntityUserPhoto, B as resolveStatisticIconPlacement, b4 as selectorFromLegacy, bG as setByPath, l as sortChartData, n as sortDataTableView, bl as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, bg as titleToUi, a$ as toBackendChartType, b6 as toBackendSourceLink, b7 as toFormSourceLink, bz as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
1
|
+
export { aC as ActionsSettings, aK as ArrayBuilderField, K as BarChartHandler, av as BarControlUi, aY as CHART_CAPABILITIES, ay as CHART_TYPES, bb as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, J as ChartDataService, aO as ChartFilterDrawer, ar as ChartSettingsDrawer, aD as ChartViewer, aJ as ColorListField, Z as ComparisonChartHandler, b as DashboardBuilder, ak as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ah as DashboardList, al as DashboardStoreService, d as DashboardViewer, aB as DataSourceSettings, aU as DatasourcePanelComponent, at as DefaultControlUi, as as DisplaySettings, r as DynamicFiltersComponent, aq as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, w as EntityInfoComponent, y as EntityPreviewCardComponent, aT as FilterBuilderComponent, aW as FilterByGroupPipe, aS as FilterChipsBarComponent, R as GaugeChartHandler, aA as GeneralSettings, aX as GetChartActionsPipe, aR as GuidedConfigDialogComponent, aj as HTTPMethod, H as HeaderCardComponent, bV as ITEM_GUIDANCE_REGISTRY, aN as ItemCardMenuComponent, aQ as ItemConfigPopoverComponent, aP as ItemContextToolbarComponent, bX as ItemGuidanceService, aL as KeyValueMapField, L as LastHistoryLevelCardComponent, aM as LegendOrderField, $ as LevelCardHandler, X as LineChartHandler, z as ListStatisticCardComponent, ai as MODULE_CLASSIFICATION_LOG, ao as ManageBreadcrumb, ap as ManageFilterOnPage, ax as ManageItem, az as ManageItemService, an as ManagePages, a0 as MapChartHandler, V as OverviewCardHandler, be as POPOVER_TABS, bf as POPOVER_TAB_SPECS, a3 as PhaseGateStepperHandler, M as PieChartHandler, au as PieControlUi, P as PropertiesCardComponent, a1 as RingGaugeChartHandler, a2 as SPlusChartHandler, bw as STYLE_PRESETS, aV as SchemaControlRendererComponent, aI as SegmentedField, A as SkeletonCardComponent, Y as SnapshotHandler, _ as SplitterChartHandler, N as StackBarChartHandler, aw as StackBarControlUi, S as StaticFiltersComponent, G as StatisticCardComponent, aH as StyleField, aF as StyleSettingsRenderer, aE as StyleStudioDrawer, T as TableCardComponent, U as TableViewHandler, W as TimelineHandler, I as TopbarCardComponent, m as addCommasToNumber, bs as applyBehaviorToPersisted, bH as applyControlPatchToPersisted, bI as applyControlPatchesToPersisted, bt as applyFilterChipsToPersisted, bq as applyLabelLegendFormatToPersisted, bo as applyLayoutToPersisted, bm as applyStyleToPersisted, bh as applyTitleToPersisted, O as axisFormatters, br as behaviorToUi, bQ as bindingKey, bv as buildAssembly, bP as buildDisplayFieldPredicate, c as cloneDeep, a9 as createAxisFormatter, aa as createTooltipFormatter, bi as datasourceToUi, bD as deepMerge, bW as describeGuidance, bc as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aG as expandResetPatches, bj as fieldsToUi, bk as filtersToUi, bd as findDomain, by as findPreset, bN as flattenSchema, ab as formatAxisLabel, a4 as formatCurrency, a8 as formatDate, bE as formatForEditor, a7 as formatNumber, a6 as formatPercentage, j as formatValue, ac as formatWordsUnderBar, ad as formatXAxis, i as generalConfiguration, bR as getBinding, aZ as getCapabilityById, p as getColorFromConditions, bJ as getControlSchema, a5 as getCurrencySuffix, bM as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, Q as groupDatesByYearAndMonth, bB as groupIssuesByDomain, af as handleFilterForCard, ag as handleFilterForSnapshot, ae as handleFiltersForCustom, bA as hasBlockingIssues, am as isManagePagesDeleteResult, o as isMobilePlatform, bp as labelLegendFormatToUi, bn as layoutToUi, bS as listBindings, bT as listBindingsForChart, bK as listControlSchemaIds, bL as listControlSchemas, b5 as moduleIdFromSelector, b2 as normalizeAggregateFunction, ba as normalizeBeforeRequest, b9 as normalizeBeforeSave, b0 as normalizeChartTypeForRequest, x as normalizeDashboardCardEntityValue, b1 as normalizeFilterOperation, b3 as normalizeFilters, b8 as normalizeOnLoad, bC as parseAdvancedJson, bu as persistedToUi, bx as presetsForCapability, bU as readBoundValue, bF as readByPath, a_ as resolveCapability, bO as resolveDisplayFields, v as resolveEntityUserPhoto, B as resolveStatisticIconPlacement, b4 as selectorFromLegacy, bG as setByPath, l as sortChartData, n as sortDataTableView, bl as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, bg as titleToUi, a$ as toBackendChartType, b6 as toBackendSourceLink, b7 as toFormSourceLink, bz as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-BcRAl_HF.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.79",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/dashboard-builder",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"quill": "^2.0.3",
|
|
24
24
|
"rxjs": "^7.8.2",
|
|
25
25
|
"tailwindcss": "^4.2.2",
|
|
26
|
+
"@masterteam/components": "^0.0.261",
|
|
27
|
+
"@masterteam/icons": "^0.0.17",
|
|
26
28
|
"@masterteam/formula-builder": "^0.0.27",
|
|
27
|
-
"@masterteam/
|
|
28
|
-
"@masterteam/timeline": "^0.0.21",
|
|
29
|
-
"@masterteam/icons": "^0.0.17"
|
|
29
|
+
"@masterteam/timeline": "^0.0.21"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.8.1",
|
|
@@ -4,6 +4,8 @@ import { OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges, TemplateRef
|
|
|
4
4
|
import { GridsterItem, GridsterConfig } from 'angular-gridster2';
|
|
5
5
|
import { ContextMenu } from 'primeng/contextmenu';
|
|
6
6
|
import { MenuItem } from 'primeng/api';
|
|
7
|
+
import * as rxjs from 'rxjs';
|
|
8
|
+
import { Observable } from 'rxjs';
|
|
7
9
|
import { MTMenuItem } from '@masterteam/components/menu';
|
|
8
10
|
import * as _angular_forms from '@angular/forms';
|
|
9
11
|
import { ControlValueAccessor, FormGroup, FormArray, ValidationErrors, FormControl } from '@angular/forms';
|
|
@@ -11,8 +13,6 @@ import { MTIcon } from '@masterteam/icons';
|
|
|
11
13
|
import { TimelineScaleMode, TimelineColumnConfig, TimelineGanttMapping } from '@masterteam/timeline';
|
|
12
14
|
import { EntityData as EntityData$1, EntityViewType } from '@masterteam/components/entities';
|
|
13
15
|
import { HttpContext } from '@angular/common/http';
|
|
14
|
-
import * as rxjs from 'rxjs';
|
|
15
|
-
import { Observable } from 'rxjs';
|
|
16
16
|
import { ColumnDef, TableAction, CellChangeEvent } from '@masterteam/components/table';
|
|
17
17
|
import { ActivatedRoute } from '@angular/router';
|
|
18
18
|
import { ModalService } from '@masterteam/components/modal';
|
|
@@ -87,7 +87,14 @@ interface DashboardFilterLevelLog {
|
|
|
87
87
|
* a level's logs are its modules with `classification === 0`; `1` is `Process`.
|
|
88
88
|
*/
|
|
89
89
|
declare const MODULE_CLASSIFICATION_LOG = 0;
|
|
90
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* One entry of `GET Modules?LevelId={levelId}` (`ModuleDto`).
|
|
92
|
+
*
|
|
93
|
+
* The endpoint returns the whole module catalog, NOT the level's modules:
|
|
94
|
+
* `GetAllModulesQueryHandler` marks level membership with `isActive` instead of
|
|
95
|
+
* filtering. A level's logs are therefore `isActive === true` **and**
|
|
96
|
+
* `classification === MODULE_CLASSIFICATION_LOG`.
|
|
97
|
+
*/
|
|
91
98
|
interface DashboardLevelModule {
|
|
92
99
|
id: number;
|
|
93
100
|
key: string;
|
|
@@ -96,6 +103,12 @@ interface DashboardLevelModule {
|
|
|
96
103
|
isActive?: boolean;
|
|
97
104
|
order?: number;
|
|
98
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Host-owned resolver for a level's logs. Hosts that already reach the module
|
|
108
|
+
* catalog through their own authenticated client supply this so the package
|
|
109
|
+
* never has to guess the endpoint's base URL or permissions.
|
|
110
|
+
*/
|
|
111
|
+
type DashboardLevelLogsResolver = (levelId: string | number) => Observable<readonly DashboardFilterLevelLog[]>;
|
|
99
112
|
/**
|
|
100
113
|
* One level of the host-owned levels schema (the product-settings
|
|
101
114
|
* `levels.schema` record). Backs the status filter's Log select plus the
|
|
@@ -2468,6 +2481,14 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2468
2481
|
* status filter's "Log" select and the phase-gate / schema-settings lists.
|
|
2469
2482
|
*/
|
|
2470
2483
|
readonly levelsSchema: _angular_core.InputSignal<readonly DashboardFilterLevelSchema[] | null>;
|
|
2484
|
+
/**
|
|
2485
|
+
* Host-owned resolver for a level's logs, used by the Status filter's "Log"
|
|
2486
|
+
* select. Supply one when the host already reaches the module catalog through
|
|
2487
|
+
* its own authenticated client — it removes every base-URL and permission
|
|
2488
|
+
* unknown from the package's side. Without it the package requests
|
|
2489
|
+
* `Modules?LevelId=` itself and falls back to cached metadata on failure.
|
|
2490
|
+
*/
|
|
2491
|
+
readonly levelLogsResolver: _angular_core.InputSignal<DashboardLevelLogsResolver | null>;
|
|
2471
2492
|
private readonly filterMetadataEffect;
|
|
2472
2493
|
/** Emit when page config changes */
|
|
2473
2494
|
readonly pageChange: _angular_core.OutputEmitterRef<_masterteam_dashboard_builder.Report>;
|
|
@@ -2822,7 +2843,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2822
2843
|
private readSerializedObject;
|
|
2823
2844
|
private parseSerializedValue;
|
|
2824
2845
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardBuilder, never>;
|
|
2825
|
-
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; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "statuses": { "alias": "statuses"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "onSave": "onSave"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, never>;
|
|
2846
|
+
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; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "statuses": { "alias": "statuses"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; "levelLogsResolver": { "alias": "levelLogsResolver"; "required": false; "isSignal": true; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "onSave": "onSave"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, never>;
|
|
2826
2847
|
}
|
|
2827
2848
|
|
|
2828
2849
|
/**
|
|
@@ -2877,6 +2898,11 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
2877
2898
|
* runtime phase-gate and schema-settings filter option lists.
|
|
2878
2899
|
*/
|
|
2879
2900
|
readonly levelsSchema: _angular_core.InputSignal<readonly DashboardFilterLevelSchema[] | null>;
|
|
2901
|
+
/**
|
|
2902
|
+
* Host-owned resolver for a level's logs. Supply one when the host already
|
|
2903
|
+
* reaches the module catalog through its own authenticated client.
|
|
2904
|
+
*/
|
|
2905
|
+
readonly levelLogsResolver: _angular_core.InputSignal<DashboardLevelLogsResolver | null>;
|
|
2880
2906
|
/** Enable page-wide runtime filters. */
|
|
2881
2907
|
readonly showFilters: _angular_core.InputSignal<boolean>;
|
|
2882
2908
|
/** Render the built-in, in-flow button that opens page runtime filters. */
|
|
@@ -3027,7 +3053,7 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
3027
3053
|
trackByDashboardId(_index: number, item: DashboardChartItem): string;
|
|
3028
3054
|
private refreshAllItems;
|
|
3029
3055
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardViewer, never>;
|
|
3030
|
-
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; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "statuses": { "alias": "statuses"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "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>;
|
|
3056
|
+
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; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "statuses": { "alias": "statuses"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; "levelLogsResolver": { "alias": "levelLogsResolver"; "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>;
|
|
3031
3057
|
}
|
|
3032
3058
|
|
|
3033
3059
|
/**
|
|
@@ -3625,7 +3651,7 @@ declare class CardFilterComponent implements OnInit {
|
|
|
3625
3651
|
/** Language code */
|
|
3626
3652
|
readonly langCode: _angular_core.Signal<string>;
|
|
3627
3653
|
/** Filter type */
|
|
3628
|
-
readonly filterType: _angular_core.Signal<"date" | "
|
|
3654
|
+
readonly filterType: _angular_core.Signal<"date" | "select" | "text" | "multiselect" | "multiSelect" | "daterange">;
|
|
3629
3655
|
/** Filter options */
|
|
3630
3656
|
readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
|
|
3631
3657
|
/** Placeholder text */
|
|
@@ -6185,8 +6211,10 @@ declare class DashboardBuilderService {
|
|
|
6185
6211
|
/** Module tree requests are shared per services/workspace key. */
|
|
6186
6212
|
private readonly modulesTreeCache;
|
|
6187
6213
|
private readonly modulesTreeDataCache;
|
|
6188
|
-
/**
|
|
6214
|
+
/** Level-log responses, shared per level for the session. */
|
|
6189
6215
|
private readonly levelLogsCache;
|
|
6216
|
+
/** Host-owned level-log resolver; preferred over the package's own request. */
|
|
6217
|
+
private readonly levelLogsResolver;
|
|
6190
6218
|
/** HTTP context for gateway requests */
|
|
6191
6219
|
private gatewayContext;
|
|
6192
6220
|
constructor();
|
|
@@ -6223,6 +6251,13 @@ declare class DashboardBuilderService {
|
|
|
6223
6251
|
setModulesTreeServices(services: readonly string[] | null | undefined): void;
|
|
6224
6252
|
setModulesTreeWorkspaceId(workspaceId: string | number | null | undefined): void;
|
|
6225
6253
|
setFilterMetadata(lookups: readonly DashboardFilterLookup[] | null, statuses: readonly DashboardFilterStatus[] | null, levelsSchema?: readonly DashboardFilterLevelSchema[] | null): void;
|
|
6254
|
+
/**
|
|
6255
|
+
* Register the host's level-log resolver. Hosts that already reach the module
|
|
6256
|
+
* catalog through their own authenticated client should supply one — it
|
|
6257
|
+
* removes every base-URL and permission unknown from the package's side.
|
|
6258
|
+
* Changing the resolver clears the per-level cache.
|
|
6259
|
+
*/
|
|
6260
|
+
setLevelLogsResolver(resolver: DashboardLevelLogsResolver | null): void;
|
|
6226
6261
|
/**
|
|
6227
6262
|
* Add a single fixed selection
|
|
6228
6263
|
* @param selection Selection to add as fixed
|
|
@@ -6380,7 +6415,13 @@ declare class DashboardBuilderService {
|
|
|
6380
6415
|
* modules are not logs). Cached per level for the session — the filter
|
|
6381
6416
|
* configuration only asks once per level the author touches.
|
|
6382
6417
|
*/
|
|
6383
|
-
fetchLevelLogs(levelId: string | number): Observable<DashboardFilterLevelLog[]>;
|
|
6418
|
+
fetchLevelLogs(levelId: string | number): Observable<readonly DashboardFilterLevelLog[]>;
|
|
6419
|
+
/**
|
|
6420
|
+
* `Modules?LevelId=` returns the whole module catalog and flags the level's
|
|
6421
|
+
* own modules with `isActive`, so both predicates are required: `isActive`
|
|
6422
|
+
* scopes to the level, `classification` keeps logs and drops Process modules.
|
|
6423
|
+
*/
|
|
6424
|
+
private toLevelLogs;
|
|
6384
6425
|
/** Available lookups for the page-filter "Lookup" dropdown. */
|
|
6385
6426
|
getLookups(): DashboardFilterLookup[];
|
|
6386
6427
|
/** Items of a single lookup (the runtime options for a `lookup` filter). */
|
|
@@ -6513,7 +6554,7 @@ declare class ManagePages implements OnInit {
|
|
|
6513
6554
|
readonly allowDelete: _angular_core.InputSignal<boolean>;
|
|
6514
6555
|
/** Report form data */
|
|
6515
6556
|
readonly report: _angular_core.WritableSignal<{
|
|
6516
|
-
id
|
|
6557
|
+
id: number | null;
|
|
6517
6558
|
name: LocalizedName;
|
|
6518
6559
|
type: "Dashboard" | "Excel";
|
|
6519
6560
|
showInMenu: boolean;
|
|
@@ -6527,6 +6568,12 @@ declare class ManagePages implements OnInit {
|
|
|
6527
6568
|
/** Deleting state */
|
|
6528
6569
|
readonly deleting: _angular_core.WritableSignal<boolean>;
|
|
6529
6570
|
ngOnInit(): void;
|
|
6571
|
+
/**
|
|
6572
|
+
* Both the Arabic and English titles are mandatory. Mirrors the
|
|
6573
|
+
* `requiredNoWhitespace` validator TextField applies when `required` is set,
|
|
6574
|
+
* so a whitespace-only title is treated the same as an empty one.
|
|
6575
|
+
*/
|
|
6576
|
+
isFormInvalid(): boolean;
|
|
6530
6577
|
saveReport(): void;
|
|
6531
6578
|
deleteReport(): void;
|
|
6532
6579
|
private executeDeleteReport;
|
|
@@ -6691,7 +6738,8 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
|
|
|
6691
6738
|
*/
|
|
6692
6739
|
levelLogOptions(schemaLevelId: string | number | null | undefined): DashboardFilterLevelLog[];
|
|
6693
6740
|
/**
|
|
6694
|
-
* Load a level's logs
|
|
6741
|
+
* Load a level's logs once, through the host resolver when one is registered
|
|
6742
|
+
* and otherwise through the package's own request. Called when a status row
|
|
6695
6743
|
* gains a level (edit or hydrate) — never from the template, so it stays out
|
|
6696
6744
|
* of change detection.
|
|
6697
6745
|
*/
|
|
@@ -8993,4 +9041,4 @@ declare class GetChartActionsPipe implements PipeTransform {
|
|
|
8993
9041
|
declare function cloneDeep<T>(obj: T): T;
|
|
8994
9042
|
|
|
8995
9043
|
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, MODULE_CLASSIFICATION_LOG, 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, resolveEntityUserPhoto, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
|
|
8996
|
-
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, DashboardFilterLevelLog, DashboardFilterLevelSchema, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, DashboardInformativeContext, DashboardItemStore, DashboardLevelModule, 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, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };
|
|
9044
|
+
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, DashboardFilterLevelLog, DashboardFilterLevelSchema, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, DashboardInformativeContext, DashboardItemStore, DashboardLevelLogsResolver, DashboardLevelModule, 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, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };
|