@masterteam/dashboard-builder 0.0.75 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- export { aB as ActionsSettings, aJ as ArrayBuilderField, K as BarChartHandler, au as BarControlUi, aX as CHART_CAPABILITIES, ax as CHART_TYPES, ba as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, J as ChartDataService, aN as ChartFilterDrawer, aq as ChartSettingsDrawer, aC as ChartViewer, aI as ColorListField, Z as ComparisonChartHandler, b as DashboardBuilder, aj as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ah as DashboardList, ak as DashboardStoreService, d as DashboardViewer, aA as DataSourceSettings, aT as DatasourcePanelComponent, as as DefaultControlUi, ar as DisplaySettings, r as DynamicFiltersComponent, ap as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, w as EntityInfoComponent, y as EntityPreviewCardComponent, aS as FilterBuilderComponent, aV as FilterByGroupPipe, aR as FilterChipsBarComponent, R as GaugeChartHandler, az as GeneralSettings, aW as GetChartActionsPipe, aQ as GuidedConfigDialogComponent, ai as HTTPMethod, H as HeaderCardComponent, bU as ITEM_GUIDANCE_REGISTRY, aM as ItemCardMenuComponent, aP as ItemConfigPopoverComponent, aO as ItemContextToolbarComponent, bW as ItemGuidanceService, aK as KeyValueMapField, L as LastHistoryLevelCardComponent, aL as LegendOrderField, $ as LevelCardHandler, X as LineChartHandler, z as ListStatisticCardComponent, an as ManageBreadcrumb, ao as ManageFilterOnPage, aw as ManageItem, ay as ManageItemService, am as ManagePages, a0 as MapChartHandler, V as OverviewCardHandler, bd as POPOVER_TABS, be as POPOVER_TAB_SPECS, a3 as PhaseGateStepperHandler, M as PieChartHandler, at as PieControlUi, P as PropertiesCardComponent, a1 as RingGaugeChartHandler, a2 as SPlusChartHandler, bv as STYLE_PRESETS, aU as SchemaControlRendererComponent, aH as SegmentedField, A as SkeletonCardComponent, Y as SnapshotHandler, _ as SplitterChartHandler, N as StackBarChartHandler, av as StackBarControlUi, S as StaticFiltersComponent, G as StatisticCardComponent, aG as StyleField, aE as StyleSettingsRenderer, aD as StyleStudioDrawer, T as TableCardComponent, U as TableViewHandler, W as TimelineHandler, I as TopbarCardComponent, m as addCommasToNumber, br as applyBehaviorToPersisted, bG as applyControlPatchToPersisted, bH as applyControlPatchesToPersisted, bs as applyFilterChipsToPersisted, bp as applyLabelLegendFormatToPersisted, bn as applyLayoutToPersisted, bl as applyStyleToPersisted, bg as applyTitleToPersisted, O as axisFormatters, bq as behaviorToUi, bP as bindingKey, bu as buildAssembly, bO as buildDisplayFieldPredicate, c as cloneDeep, a9 as createAxisFormatter, aa as createTooltipFormatter, bh as datasourceToUi, bC as deepMerge, bV as describeGuidance, bb as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aF as expandResetPatches, bi as fieldsToUi, bj as filtersToUi, bc as findDomain, bx as findPreset, bM as flattenSchema, ab as formatAxisLabel, a4 as formatCurrency, a8 as formatDate, bD as formatForEditor, a7 as formatNumber, a6 as formatPercentage, j as formatValue, ac as formatWordsUnderBar, ad as formatXAxis, i as generalConfiguration, bQ as getBinding, aY as getCapabilityById, p as getColorFromConditions, bI as getControlSchema, a5 as getCurrencySuffix, bL as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, Q as groupDatesByYearAndMonth, bA as groupIssuesByDomain, af as handleFilterForCard, ag as handleFilterForSnapshot, ae as handleFiltersForCustom, bz as hasBlockingIssues, al as isManagePagesDeleteResult, o as isMobilePlatform, bo as labelLegendFormatToUi, bm as layoutToUi, bR as listBindings, bS as listBindingsForChart, bJ as listControlSchemaIds, bK as listControlSchemas, b4 as moduleIdFromSelector, b1 as normalizeAggregateFunction, b9 as normalizeBeforeRequest, b8 as normalizeBeforeSave, a$ as normalizeChartTypeForRequest, x as normalizeDashboardCardEntityValue, b0 as normalizeFilterOperation, b2 as normalizeFilters, b7 as normalizeOnLoad, bB as parseAdvancedJson, bt as persistedToUi, bw as presetsForCapability, bT as readBoundValue, bE as readByPath, aZ as resolveCapability, bN as resolveDisplayFields, v as resolveEntityUserPhoto, B as resolveStatisticIconPlacement, b3 as selectorFromLegacy, bF as setByPath, l as sortChartData, n as sortDataTableView, bk as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, bf as titleToUi, a_ as toBackendChartType, b5 as toBackendSourceLink, b6 as toFormSourceLink, by as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-CrIWnOxs.mjs';
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-XQD_Js7m.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.75",
3
+ "version": "0.0.77",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -25,8 +25,8 @@
25
25
  "tailwindcss": "^4.2.2",
26
26
  "@masterteam/formula-builder": "^0.0.27",
27
27
  "@masterteam/components": "^0.0.260",
28
- "@masterteam/icons": "^0.0.17",
29
- "@masterteam/timeline": "^0.0.21"
28
+ "@masterteam/timeline": "^0.0.21",
29
+ "@masterteam/icons": "^0.0.17"
30
30
  },
31
31
  "dependencies": {
32
32
  "tslib": "^2.8.1",
@@ -68,6 +68,7 @@ interface DashboardFilterStatusDefinition {
68
68
  propertyId?: number | string;
69
69
  propertyKey?: string;
70
70
  normalizedPropertyKey?: string | null;
71
+ propertyName?: string | DashboardFilterLocalizedText;
71
72
  moduleId?: number | string | null;
72
73
  levelId?: number | string | null;
73
74
  levelModuleId?: number | string | null;
@@ -75,6 +76,38 @@ interface DashboardFilterStatusDefinition {
75
76
  }
76
77
  /** Host status input supports canonical definitions and legacy flat statuses. */
77
78
  type DashboardFilterStatus = DashboardFilterStatusDefinition | DashboardFilterStatusItem;
79
+ /** One log attached to a level inside the host-owned levels schema. */
80
+ interface DashboardFilterLevelLog {
81
+ id: number | string;
82
+ description?: string;
83
+ name?: string;
84
+ }
85
+ /**
86
+ * `ModuleClassificationEnum.Log`. The backend serializes enums as numbers, so
87
+ * a level's logs are its modules with `classification === 0`; `1` is `Process`.
88
+ */
89
+ declare const MODULE_CLASSIFICATION_LOG = 0;
90
+ /** One entry of `GET Modules?LevelId={levelId}` (`ModuleDto`). */
91
+ interface DashboardLevelModule {
92
+ id: number;
93
+ key: string;
94
+ name?: DashboardFilterLocalizedText;
95
+ classification?: number;
96
+ isActive?: boolean;
97
+ order?: number;
98
+ }
99
+ /**
100
+ * One level of the host-owned levels schema (the product-settings
101
+ * `levels.schema` record). Backs the status filter's Log select plus the
102
+ * runtime phase-gate and schema-settings option lists.
103
+ */
104
+ interface DashboardFilterLevelSchema {
105
+ id: number | string;
106
+ description?: string;
107
+ name?: string;
108
+ logs?: readonly DashboardFilterLevelLog[];
109
+ phaseGatesSchema?: readonly unknown[];
110
+ }
78
111
  /**
79
112
  * Report type enum
80
113
  */
@@ -2430,6 +2463,11 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2430
2463
  readonly lookups: _angular_core.InputSignal<readonly DashboardFilterLookup[] | null>;
2431
2464
  /** Host-owned canonical or legacy status metadata for runtime filters. */
2432
2465
  readonly statuses: _angular_core.InputSignal<readonly DashboardFilterStatus[] | null>;
2466
+ /**
2467
+ * Host-owned levels schema (product settings `levels.schema`). Backs the
2468
+ * status filter's "Log" select and the phase-gate / schema-settings lists.
2469
+ */
2470
+ readonly levelsSchema: _angular_core.InputSignal<readonly DashboardFilterLevelSchema[] | null>;
2433
2471
  private readonly filterMetadataEffect;
2434
2472
  /** Emit when page config changes */
2435
2473
  readonly pageChange: _angular_core.OutputEmitterRef<_masterteam_dashboard_builder.Report>;
@@ -2784,7 +2822,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2784
2822
  private readSerializedObject;
2785
2823
  private parseSerializedValue;
2786
2824
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardBuilder, never>;
2787
- 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; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "onSave": "onSave"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, 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>;
2788
2826
  }
2789
2827
 
2790
2828
  /**
@@ -2834,6 +2872,11 @@ declare class DashboardViewer implements OnInit, OnDestroy {
2834
2872
  readonly lookups: _angular_core.InputSignal<readonly DashboardFilterLookup[] | null>;
2835
2873
  /** Host-owned canonical or legacy status metadata for runtime filters. */
2836
2874
  readonly statuses: _angular_core.InputSignal<readonly DashboardFilterStatus[] | null>;
2875
+ /**
2876
+ * Host-owned levels schema (product settings `levels.schema`). Backs the
2877
+ * runtime phase-gate and schema-settings filter option lists.
2878
+ */
2879
+ readonly levelsSchema: _angular_core.InputSignal<readonly DashboardFilterLevelSchema[] | null>;
2837
2880
  /** Enable page-wide runtime filters. */
2838
2881
  readonly showFilters: _angular_core.InputSignal<boolean>;
2839
2882
  /** Render the built-in, in-flow button that opens page runtime filters. */
@@ -2984,7 +3027,7 @@ declare class DashboardViewer implements OnInit, OnDestroy {
2984
3027
  trackByDashboardId(_index: number, item: DashboardChartItem): string;
2985
3028
  private refreshAllItems;
2986
3029
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardViewer, never>;
2987
- 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; }; "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>;
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>;
2988
3031
  }
2989
3032
 
2990
3033
  /**
@@ -4340,6 +4383,16 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
4340
4383
  * preserved.
4341
4384
  */
4342
4385
  readonly headerJustify: _angular_core.Signal<string>;
4386
+ /**
4387
+ * Inline styles for `.header-content` (title + status list). Applied here
4388
+ * rather than on the outer `.header-card` row: `.header-content` has
4389
+ * `flex: 1` and always fills the row's free space, so setting
4390
+ * `justify-content` on the outer row was a no-op — there was nothing left
4391
+ * to redistribute. `align-items: center` additionally centers the block
4392
+ * when the header collapses to a column (icon-placement-top / narrow
4393
+ * cards), where `justify-content` controls the vertical axis instead.
4394
+ */
4395
+ readonly headerContentStyles: _angular_core.Signal<Record<string, string>>;
4343
4396
  /**
4344
4397
  * Center the header block
4345
4398
  * (configAsType.headerCardConfig.isHeaderCentered === true).
@@ -4807,6 +4860,12 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
4807
4860
  readonly icon: _angular_core.Signal<any>;
4808
4861
  /** Position of the layout icon relative to the topbar title. */
4809
4862
  readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
4863
+ /**
4864
+ * Center the icon/title block within the topbar row
4865
+ * (configAsType.headerCardConfig.isHeaderCentered === true) — same source
4866
+ * field the header widget reads.
4867
+ */
4868
+ readonly isHeaderCentered: _angular_core.Signal<boolean>;
4810
4869
  readonly iconColor: _angular_core.Signal<any>;
4811
4870
  readonly iconBackgroundColor: _angular_core.Signal<any>;
4812
4871
  readonly borderColor: _angular_core.Signal<any>;
@@ -6114,6 +6173,7 @@ declare class DashboardBuilderService {
6114
6173
  /** Host-owned lookup/status metadata, matching the client-form contract. */
6115
6174
  private readonly filterLookups;
6116
6175
  private readonly filterStatuses;
6176
+ private readonly filterLevelsSchema;
6117
6177
  /**
6118
6178
  * Fixed selections that cannot be removed or edited in SelectionConfiguration.
6119
6179
  * These selections are always shown and are read-only.
@@ -6125,6 +6185,8 @@ declare class DashboardBuilderService {
6125
6185
  /** Module tree requests are shared per services/workspace key. */
6126
6186
  private readonly modulesTreeCache;
6127
6187
  private readonly modulesTreeDataCache;
6188
+ /** `Modules?LevelId=` responses, shared per level for the session. */
6189
+ private readonly levelLogsCache;
6128
6190
  /** HTTP context for gateway requests */
6129
6191
  private gatewayContext;
6130
6192
  constructor();
@@ -6160,7 +6222,7 @@ declare class DashboardBuilderService {
6160
6222
  getDialogConfig(dialogId: string | number | null | undefined): ItemConfig | null;
6161
6223
  setModulesTreeServices(services: readonly string[] | null | undefined): void;
6162
6224
  setModulesTreeWorkspaceId(workspaceId: string | number | null | undefined): void;
6163
- setFilterMetadata(lookups: readonly DashboardFilterLookup[] | null, statuses: readonly DashboardFilterStatus[] | null): void;
6225
+ setFilterMetadata(lookups: readonly DashboardFilterLookup[] | null, statuses: readonly DashboardFilterStatus[] | null, levelsSchema?: readonly DashboardFilterLevelSchema[] | null): void;
6164
6226
  /**
6165
6227
  * Add a single fixed selection
6166
6228
  * @param selection Selection to add as fixed
@@ -6303,8 +6365,22 @@ declare class DashboardBuilderService {
6303
6365
  private getClientSettings;
6304
6366
  /** Narrow a possibly-corrupt settings value to an array (never throws). */
6305
6367
  private asArray;
6306
- /** Levels schema (used to resolve a level's phase gates). */
6368
+ /** Levels schema (used to resolve a level's logs and phase gates). */
6307
6369
  getLevelsSchema(): any[];
6370
+ /**
6371
+ * Logs of a level, resolved from cached metadata only. Prefers the level's
6372
+ * own `logs` collection (legacy contract) and otherwise derives them from the
6373
+ * level-scoped status metadata — see `buildDashboardLevelLogOptions`.
6374
+ * `fetchLevelLogs` is the authoritative source; this is the offline fallback.
6375
+ */
6376
+ getLevelLogsByLevelId(levelId: string | number | null | undefined, moduleNamesById?: ReadonlyMap<string, string>): DashboardFilterLevelLog[];
6377
+ /**
6378
+ * Authoritative logs of a level: `GET Modules?LevelId={levelId}` filtered to
6379
+ * the `Log` classification (`ModuleClassificationEnum.Log = 0`; Process
6380
+ * modules are not logs). Cached per level for the session — the filter
6381
+ * configuration only asks once per level the author touches.
6382
+ */
6383
+ fetchLevelLogs(levelId: string | number): Observable<DashboardFilterLevelLog[]>;
6308
6384
  /** Available lookups for the page-filter "Lookup" dropdown. */
6309
6385
  getLookups(): DashboardFilterLookup[];
6310
6386
  /** Items of a single lookup (the runtime options for a `lookup` filter). */
@@ -6315,6 +6391,12 @@ declare class DashboardBuilderService {
6315
6391
  * `basicLevelsStatuses` by moduleId + module ('Level' or 'Log').
6316
6392
  */
6317
6393
  getStatuses(levelId: string | number | null | undefined, module?: 'Level' | 'Log'): DashboardFilterStatusItem[];
6394
+ /**
6395
+ * Raw status metadata (host-owned, else the cached client settings). Exposed
6396
+ * because the status filter derives its level-scoped "Log" options from the
6397
+ * same records the runtime later resolves statuses from.
6398
+ */
6399
+ getStatusMetadata(): readonly DashboardFilterStatus[];
6318
6400
  /** Phase gates of a level, for the runtime `phaseGate` filter. */
6319
6401
  getPhaseGatesByLevelId(levelId: string | number | null | undefined): any[];
6320
6402
  /**
@@ -6511,10 +6593,10 @@ declare class ManageFilterOnPage implements OnInit {
6511
6593
  /** Handle filter configuration changes */
6512
6594
  onFiltersChange(filters: FilterField[]): void;
6513
6595
  /**
6514
- * Hook for hosts that want to feed level-log values into the filter
6515
- * dialog. The host listens to `(loadLevelLogs)` (when consumers wire it)
6516
- * and pushes into `levelLogs`. Left intentionally unbound here so the
6517
- * library does not depend on a specific level-logs endpoint shape.
6596
+ * Hook for hosts that feed level-log values from their own source. Left as
6597
+ * a no-op because `DynamicFiltersConfig` already resolves the "Log" options
6598
+ * from the host-owned levels schema (`DashboardBuilder[levelsSchema]`);
6599
+ * `levelLogs` stays only as the fallback for an external log source.
6518
6600
  */
6519
6601
  onLoadLevelLogs(_schemaLevelId: number): void;
6520
6602
  /** Save and close the dialog */
@@ -6535,6 +6617,7 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
6535
6617
  private readonly dashboardService;
6536
6618
  private readonly destroyRef;
6537
6619
  private readonly emptySelections;
6620
+ private readonly emptyLevelLogs;
6538
6621
  private readonly emptyModulesProperties;
6539
6622
  private readonly emptyProperties;
6540
6623
  private readonly propertiesFlatCache;
@@ -6549,6 +6632,17 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
6549
6632
  private readonly modulesTree;
6550
6633
  readonly lookupOptions: _angular_core.Signal<DashboardFilterLookup[]>;
6551
6634
  readonly levelSchemaOptions: _angular_core.Signal<any[]>;
6635
+ /** Module display names from the shared metadata tree, keyed by module id. */
6636
+ private readonly moduleNames;
6637
+ /** Logs fetched from `Modules?LevelId=`, keyed by level id. */
6638
+ private readonly fetchedLevelLogs;
6639
+ private readonly requestedLevelLogs;
6640
+ /**
6641
+ * Logs per level id, memoized so repeated template reads keep returning the
6642
+ * same array reference. Keyed access also keeps every status row on its own
6643
+ * level's logs instead of the single shared `levelLogs` list.
6644
+ */
6645
+ private readonly levelLogsByLevelId;
6552
6646
  /** Product type to filter available field types */
6553
6647
  readonly productType: _angular_core.InputSignal<string>;
6554
6648
  /** Workspace metadata scope used by the shared datasource selection editor. */
@@ -6590,6 +6684,18 @@ declare class DynamicFiltersConfig implements ControlValueAccessor {
6590
6684
  updateFieldConfig(index: number, key: string, value: any): void;
6591
6685
  /** Handle field type change */
6592
6686
  onFieldTypeChange(index: number, type: FilterFieldType): void;
6687
+ /**
6688
+ * "Log" options for one status row's selected schema level. Resolved from
6689
+ * the shared filter metadata, falling back to the `levelLogs` input for
6690
+ * hosts that answer `(loadLevelLogs)` from their own source.
6691
+ */
6692
+ levelLogOptions(schemaLevelId: string | number | null | undefined): DashboardFilterLevelLog[];
6693
+ /**
6694
+ * Load a level's logs from `Modules?LevelId=` once. Called when a status row
6695
+ * gains a level (edit or hydrate) — never from the template, so it stays out
6696
+ * of change detection.
6697
+ */
6698
+ private ensureLevelLogsLoaded;
6593
6699
  /** Handle schema level change for status/phaseGate */
6594
6700
  onSchemaLevelChange(index: number, schemaLevelId: number): void;
6595
6701
  updateDropdownSelections(index: number, selections: ISelection[]): void;
@@ -8886,5 +8992,5 @@ declare class GetChartActionsPipe implements PipeTransform {
8886
8992
  */
8887
8993
  declare function cloneDeep<T>(obj: T): T;
8888
8994
 
8889
- 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, resolveEntityUserPhoto, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
8890
- 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, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, 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, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity };
8995
+ 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 };