@masterteam/dashboard-builder 0.0.53 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- export { aw as ActionsSettings, aE as ArrayBuilderField, G as BarChartHandler, ap as BarControlUi, aS as CHART_CAPABILITIES, as as CHART_TYPES, b5 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, B as ChartDataService, aI as ChartFilterDrawer, al as ChartSettingsDrawer, ax as ChartViewer, aD as ColorListField, W as ComparisonChartHandler, b as DashboardBuilder, af as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ad as DashboardList, ag as DashboardStoreService, d as DashboardViewer, av as DataSourceSettings, aO as DatasourcePanelComponent, an as DefaultControlUi, am as DisplaySettings, r as DynamicFiltersComponent, ak as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, w as EntityPreviewCardComponent, aN as FilterBuilderComponent, aQ as FilterByGroupPipe, aM as FilterChipsBarComponent, N as GaugeChartHandler, au as GeneralSettings, aR as GetChartActionsPipe, aL as GuidedConfigDialogComponent, ae as HTTPMethod, H as HeaderCardComponent, bP as ITEM_GUIDANCE_REGISTRY, aH as ItemCardMenuComponent, aK as ItemConfigPopoverComponent, aJ as ItemContextToolbarComponent, bR as ItemGuidanceService, aF as KeyValueMapField, L as LastHistoryLevelCardComponent, aG as LegendOrderField, Y as LevelCardHandler, U as LineChartHandler, x as ListStatisticCardComponent, ai as ManageBreadcrumb, aj as ManageFilterOnPage, ar as ManageItem, at as ManageItemService, ah as ManagePages, Z as MapChartHandler, Q as OverviewCardHandler, b8 as POPOVER_TABS, b9 as POPOVER_TAB_SPECS, a0 as PhaseGateStepperHandler, I as PieChartHandler, ao as PieControlUi, P as PropertiesCardComponent, _ as RingGaugeChartHandler, $ as SPlusChartHandler, bq as STYLE_PRESETS, aP as SchemaControlRendererComponent, aC as SegmentedField, y as SkeletonCardComponent, V as SnapshotHandler, X as SplitterChartHandler, J as StackBarChartHandler, aq as StackBarControlUi, S as StaticFiltersComponent, z as StatisticCardComponent, aB as StyleField, az as StyleSettingsRenderer, ay as StyleStudioDrawer, T as TableCardComponent, O as TableViewHandler, R as TimelineHandler, A as TopbarCardComponent, m as addCommasToNumber, bm as applyBehaviorToPersisted, bB as applyControlPatchToPersisted, bC as applyControlPatchesToPersisted, bn as applyFilterChipsToPersisted, bk as applyLabelLegendFormatToPersisted, bi as applyLayoutToPersisted, bg as applyStyleToPersisted, bb as applyTitleToPersisted, K as axisFormatters, bl as behaviorToUi, bK as bindingKey, bp as buildAssembly, bJ as buildDisplayFieldPredicate, c as cloneDeep, a6 as createAxisFormatter, a7 as createTooltipFormatter, bc as datasourceToUi, bx as deepMerge, bQ as describeGuidance, b6 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aA as expandResetPatches, bd as fieldsToUi, be as filtersToUi, b7 as findDomain, bs as findPreset, bH as flattenSchema, a1 as formatCurrency, a5 as formatDate, by as formatForEditor, a4 as formatNumber, a3 as formatPercentage, j as formatValue, a8 as formatWordsUnderBar, a9 as formatXAxis, i as generalConfiguration, bL as getBinding, aT as getCapabilityById, p as getColorFromConditions, bD as getControlSchema, a2 as getCurrencySuffix, bG as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, M as groupDatesByYearAndMonth, bv as groupIssuesByDomain, ab as handleFilterForCard, ac as handleFilterForSnapshot, aa as handleFiltersForCustom, bu as hasBlockingIssues, o as isMobilePlatform, bj as labelLegendFormatToUi, bh as layoutToUi, bM as listBindings, bN as listBindingsForChart, bE as listControlSchemaIds, bF as listControlSchemas, a$ as moduleIdFromSelector, aY as normalizeAggregateFunction, b4 as normalizeBeforeRequest, b3 as normalizeBeforeSave, aW as normalizeChartTypeForRequest, aX as normalizeFilterOperation, aZ as normalizeFilters, b2 as normalizeOnLoad, bw as parseAdvancedJson, bo as persistedToUi, br as presetsForCapability, bO as readBoundValue, bz as readByPath, aU as resolveCapability, bI as resolveDisplayFields, a_ as selectorFromLegacy, bA as setByPath, l as sortChartData, n as sortDataTableView, bf as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, ba as titleToUi, aV as toBackendChartType, b0 as toBackendSourceLink, b1 as toFormSourceLink, bt as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-BlBnHwDv.mjs';
1
+ export { aw as ActionsSettings, aE as ArrayBuilderField, G as BarChartHandler, ap as BarControlUi, aS as CHART_CAPABILITIES, as as CHART_TYPES, b5 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, B as ChartDataService, aI as ChartFilterDrawer, al as ChartSettingsDrawer, ax as ChartViewer, aD as ColorListField, W as ComparisonChartHandler, b as DashboardBuilder, af as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ad as DashboardList, ag as DashboardStoreService, d as DashboardViewer, av as DataSourceSettings, aO as DatasourcePanelComponent, an as DefaultControlUi, am as DisplaySettings, r as DynamicFiltersComponent, ak as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, w as EntityPreviewCardComponent, aN as FilterBuilderComponent, aQ as FilterByGroupPipe, aM as FilterChipsBarComponent, N as GaugeChartHandler, au as GeneralSettings, aR as GetChartActionsPipe, aL as GuidedConfigDialogComponent, ae as HTTPMethod, H as HeaderCardComponent, bP as ITEM_GUIDANCE_REGISTRY, aH as ItemCardMenuComponent, aK as ItemConfigPopoverComponent, aJ as ItemContextToolbarComponent, bR as ItemGuidanceService, aF as KeyValueMapField, L as LastHistoryLevelCardComponent, aG as LegendOrderField, Y as LevelCardHandler, U as LineChartHandler, x as ListStatisticCardComponent, ai as ManageBreadcrumb, aj as ManageFilterOnPage, ar as ManageItem, at as ManageItemService, ah as ManagePages, Z as MapChartHandler, Q as OverviewCardHandler, b8 as POPOVER_TABS, b9 as POPOVER_TAB_SPECS, a0 as PhaseGateStepperHandler, I as PieChartHandler, ao as PieControlUi, P as PropertiesCardComponent, _ as RingGaugeChartHandler, $ as SPlusChartHandler, bq as STYLE_PRESETS, aP as SchemaControlRendererComponent, aC as SegmentedField, y as SkeletonCardComponent, V as SnapshotHandler, X as SplitterChartHandler, J as StackBarChartHandler, aq as StackBarControlUi, S as StaticFiltersComponent, z as StatisticCardComponent, aB as StyleField, az as StyleSettingsRenderer, ay as StyleStudioDrawer, T as TableCardComponent, O as TableViewHandler, R as TimelineHandler, A as TopbarCardComponent, m as addCommasToNumber, bm as applyBehaviorToPersisted, bB as applyControlPatchToPersisted, bC as applyControlPatchesToPersisted, bn as applyFilterChipsToPersisted, bk as applyLabelLegendFormatToPersisted, bi as applyLayoutToPersisted, bg as applyStyleToPersisted, bb as applyTitleToPersisted, K as axisFormatters, bl as behaviorToUi, bK as bindingKey, bp as buildAssembly, bJ as buildDisplayFieldPredicate, c as cloneDeep, a6 as createAxisFormatter, a7 as createTooltipFormatter, bc as datasourceToUi, bx as deepMerge, bQ as describeGuidance, b6 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aA as expandResetPatches, bd as fieldsToUi, be as filtersToUi, b7 as findDomain, bs as findPreset, bH as flattenSchema, a1 as formatCurrency, a5 as formatDate, by as formatForEditor, a4 as formatNumber, a3 as formatPercentage, j as formatValue, a8 as formatWordsUnderBar, a9 as formatXAxis, i as generalConfiguration, bL as getBinding, aT as getCapabilityById, p as getColorFromConditions, bD as getControlSchema, a2 as getCurrencySuffix, bG as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, M as groupDatesByYearAndMonth, bv as groupIssuesByDomain, ab as handleFilterForCard, ac as handleFilterForSnapshot, aa as handleFiltersForCustom, bu as hasBlockingIssues, o as isMobilePlatform, bj as labelLegendFormatToUi, bh as layoutToUi, bM as listBindings, bN as listBindingsForChart, bE as listControlSchemaIds, bF as listControlSchemas, a$ as moduleIdFromSelector, aY as normalizeAggregateFunction, b4 as normalizeBeforeRequest, b3 as normalizeBeforeSave, aW as normalizeChartTypeForRequest, aX as normalizeFilterOperation, aZ as normalizeFilters, b2 as normalizeOnLoad, bw as parseAdvancedJson, bo as persistedToUi, br as presetsForCapability, bO as readBoundValue, bz as readByPath, aU as resolveCapability, bI as resolveDisplayFields, a_ as selectorFromLegacy, bA as setByPath, l as sortChartData, n as sortDataTableView, bf as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, ba as titleToUi, aV as toBackendChartType, b0 as toBackendSourceLink, b1 as toFormSourceLink, bt as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-RFHndI8h.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.53",
3
+ "version": "0.0.54",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -21,9 +21,10 @@
21
21
  "primeng": "21.1.5",
22
22
  "rxjs": "^7.8.2",
23
23
  "tailwindcss": "^4.2.2",
24
+ "@masterteam/components": "^0.0.221",
24
25
  "@masterteam/icons": "^0.0.17",
25
- "@masterteam/components": "^0.0.219",
26
- "@masterteam/timeline": "^0.0.17"
26
+ "@masterteam/timeline": "^0.0.17",
27
+ "@masterteam/formula-builder": "^0.0.24"
27
28
  },
28
29
  "dependencies": {
29
30
  "tslib": "^2.8.1",
@@ -2188,7 +2188,7 @@ declare class DatasourcePanelComponent {
2188
2188
  sourceStatus: string;
2189
2189
  sourceIcon: string;
2190
2190
  sourceLabel: string;
2191
- fieldsStatus: "ok" | "missing";
2191
+ fieldsStatus: "missing" | "ok";
2192
2192
  fieldsIcon: string;
2193
2193
  fieldsLabel: string;
2194
2194
  missing: string[];
@@ -2482,6 +2482,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2482
2482
  editDialogActionsForChart(chart: DashboardChartItem): void;
2483
2483
  editDialogStyleForChart(chart: DashboardChartItem): void;
2484
2484
  deleteDialogFromChart(chart: DashboardChartItem): void;
2485
+ private removeDialogFromChart;
2485
2486
  /** Open chart settings drawer for item configuration */
2486
2487
  openQuickManage(event: Event, item: DashboardChartItem): void;
2487
2488
  /** Handle apply from chart settings drawer */
@@ -2644,9 +2645,11 @@ declare class DashboardViewer implements OnInit, OnDestroy {
2644
2645
  readonly charts: _angular_core.WritableSignal<DashboardChartItem[]>;
2645
2646
  readonly dialogs: _angular_core.WritableSignal<DashboardDialogItem[]>;
2646
2647
  readonly filters: _angular_core.WritableSignal<any[]>;
2648
+ readonly filtersPanelOpen: _angular_core.WritableSignal<boolean>;
2647
2649
  readonly languageCode: _angular_core.Signal<string>;
2648
2650
  readonly direction: _angular_core.Signal<"rtl" | "ltr">;
2649
2651
  readonly hasRenderableContent: _angular_core.Signal<boolean>;
2652
+ readonly hasPageFilters: _angular_core.Signal<boolean>;
2650
2653
  readonly visibleItems: _angular_core.Signal<DashboardChartItem[]>;
2651
2654
  readonly layoutHeight: _angular_core.Signal<string>;
2652
2655
  private subscription;
@@ -2661,6 +2664,7 @@ declare class DashboardViewer implements OnInit, OnDestroy {
2661
2664
  private filtersDataEffect;
2662
2665
  private extraFiltersEffect;
2663
2666
  private preloadedInputsEffect;
2667
+ private pageFiltersVisibilityEffect;
2664
2668
  private pageIdEffect;
2665
2669
  ngOnInit(): void;
2666
2670
  ngOnDestroy(): void;
@@ -2672,6 +2676,8 @@ declare class DashboardViewer implements OnInit, OnDestroy {
2672
2676
  * fall back to updating the store + refreshing directly.
2673
2677
  */
2674
2678
  onPageFilterChange(values: Record<string, any>): void;
2679
+ toggleFiltersPanel(): void;
2680
+ closeFiltersPanel(): void;
2675
2681
  loadPage(id: string | number): void;
2676
2682
  /**
2677
2683
  * Normalize a page's filters into a FLAT `FilterField[]`. The backend stores
@@ -3207,6 +3213,7 @@ interface HeaderCardConfig$1 {
3207
3213
  headerColor?: string;
3208
3214
  icon?: string;
3209
3215
  iconColor?: string;
3216
+ iconPlacement?: 'start' | 'end' | 'top';
3210
3217
  titleColor?: string;
3211
3218
  }
3212
3219
  interface CardBorderStyleConfig {
@@ -3664,7 +3671,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3664
3671
  /** Whether the user can act on the Configure CTA (builder mode). */
3665
3672
  readonly canConfigure: _angular_core.Signal<boolean>;
3666
3673
  readonly hasSplitterData: _angular_core.Signal<boolean>;
3667
- readonly splitterOrientation: _angular_core.Signal<"horizontal" | "vertical">;
3674
+ readonly splitterOrientation: _angular_core.Signal<"vertical" | "horizontal">;
3668
3675
  readonly splitterGap: _angular_core.Signal<number>;
3669
3676
  readonly hasTimelineData: _angular_core.Signal<boolean>;
3670
3677
  readonly timelineEvents: _angular_core.Signal<any[]>;
@@ -3798,7 +3805,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3798
3805
  readonly showCustomLegend: _angular_core.Signal<boolean>;
3799
3806
  readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
3800
3807
  /** Custom HTML legend placement from the configured legend position. */
3801
- readonly customLegendPosition: _angular_core.Signal<"top" | "bottom" | "left" | "right">;
3808
+ readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
3802
3809
  constructor();
3803
3810
  ngOnInit(): Promise<void>;
3804
3811
  ngAfterViewInit(): void;
@@ -3875,6 +3882,12 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
3875
3882
  private getResponsiveGridOffsets;
3876
3883
  private applyResponsiveLegend;
3877
3884
  private applyConfiguredLegend;
3885
+ private applyLegendColorOverrides;
3886
+ private applyLegendDataColorOverrides;
3887
+ private getLegendColorOverrides;
3888
+ private readLegendColor;
3889
+ private getLegendOverrideColor;
3890
+ private normalizeLegendName;
3878
3891
  private applyLegendOverrideOrder;
3879
3892
  private orderSeriesDataByLegend;
3880
3893
  private mapLegendConfig;
@@ -3973,6 +3986,10 @@ interface DashboardCardViewModel {
3973
3986
  card: DashboardCardData;
3974
3987
  entities: EntityData$1[];
3975
3988
  }
3989
+ interface CardOrderConfig {
3990
+ propertyKey?: string;
3991
+ direction?: 'asc' | 'desc';
3992
+ }
3976
3993
  declare class PropertiesCardComponent implements OnInit, OnDestroy {
3977
3994
  private readonly storeService;
3978
3995
  private readonly transloco;
@@ -3993,6 +4010,7 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
3993
4010
  readonly propsConfigAsIndex: _angular_core.Signal<PropertyRuntimeConfig[]>;
3994
4011
  readonly propertyColorOverrides: _angular_core.Signal<unknown>;
3995
4012
  readonly numberFormat: _angular_core.Signal<unknown>;
4013
+ readonly cardOrderConfig: _angular_core.Signal<CardOrderConfig>;
3996
4014
  readonly legacyHiddenPropertyKeys: _angular_core.Signal<string[]>;
3997
4015
  readonly tabOptions: _angular_core.Signal<DashboardCardTabOption[]>;
3998
4016
  readonly showTabs: _angular_core.Signal<boolean>;
@@ -4008,6 +4026,9 @@ declare class PropertiesCardComponent implements OnInit, OnDestroy {
4008
4026
  private isCardGroup;
4009
4027
  private extractCards;
4010
4028
  private getCardProps;
4029
+ private sortCards;
4030
+ private resolveCardSortValue;
4031
+ private unwrapSortValue;
4011
4032
  private orderProperties;
4012
4033
  private buildEntities;
4013
4034
  private buildPropertyTemplateMap;
@@ -4532,6 +4553,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4532
4553
  private buildPhaseGateCell;
4533
4554
  getLegendColor(label: any): string;
4534
4555
  getLegendText(label: any): string;
4556
+ private applyLegendOrder;
4535
4557
  private extractLabels;
4536
4558
  /**
4537
4559
  * Get cell data for entity-info component
@@ -5611,7 +5633,24 @@ declare function isMobilePlatform(): boolean;
5611
5633
  * Get color from indexed color conditions
5612
5634
  * Matches old getColorFromConditions behavior
5613
5635
  */
5614
- declare function getColorFromConditions(conditions: any[] | undefined, index: number, value: any): string | undefined;
5636
+ declare function getColorFromConditions(conditions: any[] | ColorConditionsByIndex$1 | undefined, index: number, value: any): string | undefined;
5637
+ /**
5638
+ * Color condition interface
5639
+ */
5640
+ interface ColorCondition$1 {
5641
+ color: string;
5642
+ type: string;
5643
+ value1?: number;
5644
+ value2?: number;
5645
+ labelEn?: string;
5646
+ labelAr?: string;
5647
+ }
5648
+ /**
5649
+ * Color conditions organized by bar/slice index
5650
+ */
5651
+ interface ColorConditionsByIndex$1 {
5652
+ [barIndex: number]: ColorCondition$1[];
5653
+ }
5615
5654
 
5616
5655
  declare function handleFiltersForCustom(configItem: any, params: any, extraFilters?: any): any;
5617
5656
  declare function handleFilterForCard(filters: any, params: any): any;
@@ -7560,7 +7599,7 @@ declare class DataSourceSettings {
7560
7599
  * Active tab within the selection cycle: Selection (pick modules) · Source
7561
7600
  * Links (joins, only with >1 selection) · Query (fields).
7562
7601
  */
7563
- readonly activeSection: _angular_core.WritableSignal<"selection" | "sourceLinks" | "query">;
7602
+ readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
7564
7603
  /** Selection mode inside the selection tab (informative authoring). */
7565
7604
  readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
7566
7605
  readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
@@ -8338,12 +8377,12 @@ interface MapRow {
8338
8377
  * boolean). Controlled: `value` in, `valueChange` out.
8339
8378
  */
8340
8379
  declare class KeyValueMapField {
8341
- readonly value: _angular_core.InputSignal<unknown[] | Record<string, unknown> | null>;
8380
+ readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
8342
8381
  readonly keys: _angular_core.InputSignal<ControlOption[]>;
8343
8382
  readonly valueFields: _angular_core.InputSignal<ControlField[]>;
8344
8383
  /** When true, store/read a positional array aligned to `keys` order. */
8345
8384
  readonly asArray: _angular_core.InputSignal<boolean>;
8346
- readonly valueChange: _angular_core.OutputEmitterRef<unknown[] | Record<string, unknown>>;
8385
+ readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
8347
8386
  readonly rows: _angular_core.WritableSignal<MapRow[]>;
8348
8387
  private readonly destroyRef;
8349
8388
  /** Subscriptions for the current row set; torn down on every rebuild. */