@masterteam/dashboard-builder 0.0.52 → 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.
- package/assets/dashboard-builder.css +1 -1
- package/assets/i18n/ar.json +41 -27
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-B_g_lLDx.mjs → masterteam-dashboard-builder-dashboard-dialog.component-Cnv8thTk.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-B_g_lLDx.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-Cnv8thTk.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-BlBnHwDv.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-RFHndI8h.mjs} +735 -253
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-RFHndI8h.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +4 -3
- package/types/masterteam-dashboard-builder.d.ts +40 -1
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-BlBnHwDv.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { aw as ActionsSettings, aE as ArrayBuilderField, G as BarChartHandler, ap as BarControlUi, aS as CHART_CAPABILITIES, as as CHART_TYPES, b5 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, B as ChartDataService, aI as ChartFilterDrawer, al as ChartSettingsDrawer, ax as ChartViewer, aD as ColorListField, W as ComparisonChartHandler, b as DashboardBuilder, af as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ad as DashboardList, ag as DashboardStoreService, d as DashboardViewer, av as DataSourceSettings, aO as DatasourcePanelComponent, an as DefaultControlUi, am as DisplaySettings, r as DynamicFiltersComponent, ak as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, w as EntityPreviewCardComponent, aN as FilterBuilderComponent, aQ as FilterByGroupPipe, aM as FilterChipsBarComponent, N as GaugeChartHandler, au as GeneralSettings, aR as GetChartActionsPipe, aL as GuidedConfigDialogComponent, ae as HTTPMethod, H as HeaderCardComponent, bP as ITEM_GUIDANCE_REGISTRY, aH as ItemCardMenuComponent, aK as ItemConfigPopoverComponent, aJ as ItemContextToolbarComponent, bR as ItemGuidanceService, aF as KeyValueMapField, L as LastHistoryLevelCardComponent, aG as LegendOrderField, Y as LevelCardHandler, U as LineChartHandler, x as ListStatisticCardComponent, ai as ManageBreadcrumb, aj as ManageFilterOnPage, ar as ManageItem, at as ManageItemService, ah as ManagePages, Z as MapChartHandler, Q as OverviewCardHandler, b8 as POPOVER_TABS, b9 as POPOVER_TAB_SPECS, a0 as PhaseGateStepperHandler, I as PieChartHandler, ao as PieControlUi, P as PropertiesCardComponent, _ as RingGaugeChartHandler, $ as SPlusChartHandler, bq as STYLE_PRESETS, aP as SchemaControlRendererComponent, aC as SegmentedField, y as SkeletonCardComponent, V as SnapshotHandler, X as SplitterChartHandler, J as StackBarChartHandler, aq as StackBarControlUi, S as StaticFiltersComponent, z as StatisticCardComponent, aB as StyleField, az as StyleSettingsRenderer, ay as StyleStudioDrawer, T as TableCardComponent, O as TableViewHandler, R as TimelineHandler, A as TopbarCardComponent, m as addCommasToNumber, bm as applyBehaviorToPersisted, bB as applyControlPatchToPersisted, bC as applyControlPatchesToPersisted, bn as applyFilterChipsToPersisted, bk as applyLabelLegendFormatToPersisted, bi as applyLayoutToPersisted, bg as applyStyleToPersisted, bb as applyTitleToPersisted, K as axisFormatters, bl as behaviorToUi, bK as bindingKey, bp as buildAssembly, bJ as buildDisplayFieldPredicate, c as cloneDeep, a6 as createAxisFormatter, a7 as createTooltipFormatter, bc as datasourceToUi, bx as deepMerge, bQ as describeGuidance, b6 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aA as expandResetPatches, bd as fieldsToUi, be as filtersToUi, b7 as findDomain, bs as findPreset, bH as flattenSchema, a1 as formatCurrency, a5 as formatDate, by as formatForEditor, a4 as formatNumber, a3 as formatPercentage, j as formatValue, a8 as formatWordsUnderBar, a9 as formatXAxis, i as generalConfiguration, bL as getBinding, aT as getCapabilityById, p as getColorFromConditions, bD as getControlSchema, a2 as getCurrencySuffix, bG as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, M as groupDatesByYearAndMonth, bv as groupIssuesByDomain, ab as handleFilterForCard, ac as handleFilterForSnapshot, aa as handleFiltersForCustom, bu as hasBlockingIssues, o as isMobilePlatform, bj as labelLegendFormatToUi, bh as layoutToUi, bM as listBindings, bN as listBindingsForChart, bE as listControlSchemaIds, bF as listControlSchemas, a$ as moduleIdFromSelector, aY as normalizeAggregateFunction, b4 as normalizeBeforeRequest, b3 as normalizeBeforeSave, aW as normalizeChartTypeForRequest, aX as normalizeFilterOperation, aZ as normalizeFilters, b2 as normalizeOnLoad, bw as parseAdvancedJson, bo as persistedToUi, br as presetsForCapability, bO as readBoundValue, bz as readByPath, aU as resolveCapability, bI as resolveDisplayFields, a_ as selectorFromLegacy, bA as setByPath, l as sortChartData, n as sortDataTableView, bf as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, ba as titleToUi, aV as toBackendChartType, b0 as toBackendSourceLink, b1 as toFormSourceLink, bt as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
1
|
+
export { aw as ActionsSettings, aE as ArrayBuilderField, G as BarChartHandler, ap as BarControlUi, aS as CHART_CAPABILITIES, as as CHART_TYPES, b5 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, B as ChartDataService, aI as ChartFilterDrawer, al as ChartSettingsDrawer, ax as ChartViewer, aD as ColorListField, W as ComparisonChartHandler, b as DashboardBuilder, af as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ad as DashboardList, ag as DashboardStoreService, d as DashboardViewer, av as DataSourceSettings, aO as DatasourcePanelComponent, an as DefaultControlUi, am as DisplaySettings, r as DynamicFiltersComponent, ak as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, w as EntityPreviewCardComponent, aN as FilterBuilderComponent, aQ as FilterByGroupPipe, aM as FilterChipsBarComponent, N as GaugeChartHandler, au as GeneralSettings, aR as GetChartActionsPipe, aL as GuidedConfigDialogComponent, ae as HTTPMethod, H as HeaderCardComponent, bP as ITEM_GUIDANCE_REGISTRY, aH as ItemCardMenuComponent, aK as ItemConfigPopoverComponent, aJ as ItemContextToolbarComponent, bR as ItemGuidanceService, aF as KeyValueMapField, L as LastHistoryLevelCardComponent, aG as LegendOrderField, Y as LevelCardHandler, U as LineChartHandler, x as ListStatisticCardComponent, ai as ManageBreadcrumb, aj as ManageFilterOnPage, ar as ManageItem, at as ManageItemService, ah as ManagePages, Z as MapChartHandler, Q as OverviewCardHandler, b8 as POPOVER_TABS, b9 as POPOVER_TAB_SPECS, a0 as PhaseGateStepperHandler, I as PieChartHandler, ao as PieControlUi, P as PropertiesCardComponent, _ as RingGaugeChartHandler, $ as SPlusChartHandler, bq as STYLE_PRESETS, aP as SchemaControlRendererComponent, aC as SegmentedField, y as SkeletonCardComponent, V as SnapshotHandler, X as SplitterChartHandler, J as StackBarChartHandler, aq as StackBarControlUi, S as StaticFiltersComponent, z as StatisticCardComponent, aB as StyleField, az as StyleSettingsRenderer, ay as StyleStudioDrawer, T as TableCardComponent, O as TableViewHandler, R as TimelineHandler, A as TopbarCardComponent, m as addCommasToNumber, bm as applyBehaviorToPersisted, bB as applyControlPatchToPersisted, bC as applyControlPatchesToPersisted, bn as applyFilterChipsToPersisted, bk as applyLabelLegendFormatToPersisted, bi as applyLayoutToPersisted, bg as applyStyleToPersisted, bb as applyTitleToPersisted, K as axisFormatters, bl as behaviorToUi, bK as bindingKey, bp as buildAssembly, bJ as buildDisplayFieldPredicate, c as cloneDeep, a6 as createAxisFormatter, a7 as createTooltipFormatter, bc as datasourceToUi, bx as deepMerge, bQ as describeGuidance, b6 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aA as expandResetPatches, bd as fieldsToUi, be as filtersToUi, b7 as findDomain, bs as findPreset, bH as flattenSchema, a1 as formatCurrency, a5 as formatDate, by as formatForEditor, a4 as formatNumber, a3 as formatPercentage, j as formatValue, a8 as formatWordsUnderBar, a9 as formatXAxis, i as generalConfiguration, bL as getBinding, aT as getCapabilityById, p as getColorFromConditions, bD as getControlSchema, a2 as getCurrencySuffix, bG as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, M as groupDatesByYearAndMonth, bv as groupIssuesByDomain, ab as handleFilterForCard, ac as handleFilterForSnapshot, aa as handleFiltersForCustom, bu as hasBlockingIssues, o as isMobilePlatform, bj as labelLegendFormatToUi, bh as layoutToUi, bM as listBindings, bN as listBindingsForChart, bE as listControlSchemaIds, bF as listControlSchemas, a$ as moduleIdFromSelector, aY as normalizeAggregateFunction, b4 as normalizeBeforeRequest, b3 as normalizeBeforeSave, aW as normalizeChartTypeForRequest, aX as normalizeFilterOperation, aZ as normalizeFilters, b2 as normalizeOnLoad, bw as parseAdvancedJson, bo as persistedToUi, br as presetsForCapability, bO as readBoundValue, bz as readByPath, aU as resolveCapability, bI as resolveDisplayFields, a_ as selectorFromLegacy, bA as setByPath, l as sortChartData, n as sortDataTableView, bf as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, ba as titleToUi, aV as toBackendChartType, b0 as toBackendSourceLink, b1 as toFormSourceLink, bt as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-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.
|
|
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.
|
|
24
|
+
"@masterteam/components": "^0.0.221",
|
|
25
|
+
"@masterteam/icons": "^0.0.17",
|
|
25
26
|
"@masterteam/timeline": "^0.0.17",
|
|
26
|
-
"@masterteam/
|
|
27
|
+
"@masterteam/formula-builder": "^0.0.24"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"tslib": "^2.8.1",
|
|
@@ -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 {
|
|
@@ -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;
|