@masterteam/dashboard-builder 0.0.60 → 0.0.61
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/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-D7QavJNN.mjs → masterteam-dashboard-builder-dashboard-dialog.component-V3ESxWrP.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-D7QavJNN.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-V3ESxWrP.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-BwlDcTLZ.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-ZFFlekJm.mjs} +185 -178
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-ZFFlekJm.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +3 -3
- package/types/masterteam-dashboard-builder.d.ts +32 -16
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-BwlDcTLZ.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { az as ActionsSettings, aH as ArrayBuilderField, I as BarChartHandler, as as BarControlUi, aV as CHART_CAPABILITIES, av as CHART_TYPES, b8 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, G as ChartDataService, aL as ChartFilterDrawer, ao as ChartSettingsDrawer, aA as ChartViewer, aG as ColorListField, X as ComparisonChartHandler, b as DashboardBuilder, ah as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, af as DashboardList, ai as DashboardStoreService, d as DashboardViewer, ay as DataSourceSettings, aR as DatasourcePanelComponent, aq as DefaultControlUi, ap as DisplaySettings, r as DynamicFiltersComponent, an as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, x as EntityPreviewCardComponent, aQ as FilterBuilderComponent, aT as FilterByGroupPipe, aP as FilterChipsBarComponent, O as GaugeChartHandler, ax as GeneralSettings, aU as GetChartActionsPipe, aO as GuidedConfigDialogComponent, ag as HTTPMethod, H as HeaderCardComponent, bS as ITEM_GUIDANCE_REGISTRY, aK as ItemCardMenuComponent, aN as ItemConfigPopoverComponent, aM as ItemContextToolbarComponent, bU as ItemGuidanceService, aI as KeyValueMapField, L as LastHistoryLevelCardComponent, aJ as LegendOrderField, Z as LevelCardHandler, V as LineChartHandler, y as ListStatisticCardComponent, al as ManageBreadcrumb, am as ManageFilterOnPage, au as ManageItem, aw as ManageItemService, ak as ManagePages, _ as MapChartHandler, R as OverviewCardHandler, bb as POPOVER_TABS, bc as POPOVER_TAB_SPECS, a1 as PhaseGateStepperHandler, J as PieChartHandler, ar as PieControlUi, P as PropertiesCardComponent, $ as RingGaugeChartHandler, a0 as SPlusChartHandler, bt as STYLE_PRESETS, aS as SchemaControlRendererComponent, aF as SegmentedField, z as SkeletonCardComponent, W as SnapshotHandler, Y as SplitterChartHandler, K as StackBarChartHandler, at as StackBarControlUi, S as StaticFiltersComponent, A as StatisticCardComponent, aE as StyleField, aC as StyleSettingsRenderer, aB as StyleStudioDrawer, T as TableCardComponent, Q as TableViewHandler, U as TimelineHandler, B as TopbarCardComponent, m as addCommasToNumber, bp as applyBehaviorToPersisted, bE as applyControlPatchToPersisted, bF as applyControlPatchesToPersisted, bq as applyFilterChipsToPersisted, bn as applyLabelLegendFormatToPersisted, bl as applyLayoutToPersisted, bj as applyStyleToPersisted, be as applyTitleToPersisted, M as axisFormatters, bo as behaviorToUi, bN as bindingKey, bs as buildAssembly, bM as buildDisplayFieldPredicate, c as cloneDeep, a7 as createAxisFormatter, a8 as createTooltipFormatter, bf as datasourceToUi, bA as deepMerge, bT as describeGuidance, b9 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aD as expandResetPatches, bg as fieldsToUi, bh as filtersToUi, ba as findDomain, bv as findPreset, bK as flattenSchema, a9 as formatAxisLabel, a2 as formatCurrency, a6 as formatDate, bB as formatForEditor, a5 as formatNumber, a4 as formatPercentage, j as formatValue, aa as formatWordsUnderBar, ab as formatXAxis, i as generalConfiguration, bO as getBinding, aW as getCapabilityById, p as getColorFromConditions, bG as getControlSchema, a3 as getCurrencySuffix, bJ as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, N as groupDatesByYearAndMonth, by as groupIssuesByDomain, ad as handleFilterForCard, ae as handleFilterForSnapshot, ac as handleFiltersForCustom, bx as hasBlockingIssues, aj as isManagePagesDeleteResult, o as isMobilePlatform, bm as labelLegendFormatToUi, bk as layoutToUi, bP as listBindings, bQ as listBindingsForChart, bH as listControlSchemaIds, bI as listControlSchemas, b2 as moduleIdFromSelector, a$ as normalizeAggregateFunction, b7 as normalizeBeforeRequest, b6 as normalizeBeforeSave, aZ as normalizeChartTypeForRequest, w as normalizeDashboardCardEntityValue, a_ as normalizeFilterOperation, b0 as normalizeFilters, b5 as normalizeOnLoad, bz as parseAdvancedJson, br as persistedToUi, bu as presetsForCapability, bR as readBoundValue, bC as readByPath, aX as resolveCapability, bL as resolveDisplayFields, b1 as selectorFromLegacy, bD as setByPath, l as sortChartData, n as sortDataTableView, bi as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, bd as titleToUi, aY as toBackendChartType, b3 as toBackendSourceLink, b4 as toFormSourceLink, bw as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
1
|
+
export { az as ActionsSettings, aH as ArrayBuilderField, I as BarChartHandler, as as BarControlUi, aV as CHART_CAPABILITIES, av as CHART_TYPES, b8 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, G as ChartDataService, aL as ChartFilterDrawer, ao as ChartSettingsDrawer, aA as ChartViewer, aG as ColorListField, X as ComparisonChartHandler, b as DashboardBuilder, ah as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, af as DashboardList, ai as DashboardStoreService, d as DashboardViewer, ay as DataSourceSettings, aR as DatasourcePanelComponent, aq as DefaultControlUi, ap as DisplaySettings, r as DynamicFiltersComponent, an as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, x as EntityPreviewCardComponent, aQ as FilterBuilderComponent, aT as FilterByGroupPipe, aP as FilterChipsBarComponent, O as GaugeChartHandler, ax as GeneralSettings, aU as GetChartActionsPipe, aO as GuidedConfigDialogComponent, ag as HTTPMethod, H as HeaderCardComponent, bS as ITEM_GUIDANCE_REGISTRY, aK as ItemCardMenuComponent, aN as ItemConfigPopoverComponent, aM as ItemContextToolbarComponent, bU as ItemGuidanceService, aI as KeyValueMapField, L as LastHistoryLevelCardComponent, aJ as LegendOrderField, Z as LevelCardHandler, V as LineChartHandler, y as ListStatisticCardComponent, al as ManageBreadcrumb, am as ManageFilterOnPage, au as ManageItem, aw as ManageItemService, ak as ManagePages, _ as MapChartHandler, R as OverviewCardHandler, bb as POPOVER_TABS, bc as POPOVER_TAB_SPECS, a1 as PhaseGateStepperHandler, J as PieChartHandler, ar as PieControlUi, P as PropertiesCardComponent, $ as RingGaugeChartHandler, a0 as SPlusChartHandler, bt as STYLE_PRESETS, aS as SchemaControlRendererComponent, aF as SegmentedField, z as SkeletonCardComponent, W as SnapshotHandler, Y as SplitterChartHandler, K as StackBarChartHandler, at as StackBarControlUi, S as StaticFiltersComponent, A as StatisticCardComponent, aE as StyleField, aC as StyleSettingsRenderer, aB as StyleStudioDrawer, T as TableCardComponent, Q as TableViewHandler, U as TimelineHandler, B as TopbarCardComponent, m as addCommasToNumber, bp as applyBehaviorToPersisted, bE as applyControlPatchToPersisted, bF as applyControlPatchesToPersisted, bq as applyFilterChipsToPersisted, bn as applyLabelLegendFormatToPersisted, bl as applyLayoutToPersisted, bj as applyStyleToPersisted, be as applyTitleToPersisted, M as axisFormatters, bo as behaviorToUi, bN as bindingKey, bs as buildAssembly, bM as buildDisplayFieldPredicate, c as cloneDeep, a7 as createAxisFormatter, a8 as createTooltipFormatter, bf as datasourceToUi, bA as deepMerge, bT as describeGuidance, b9 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aD as expandResetPatches, bg as fieldsToUi, bh as filtersToUi, ba as findDomain, bv as findPreset, bK as flattenSchema, a9 as formatAxisLabel, a2 as formatCurrency, a6 as formatDate, bB as formatForEditor, a5 as formatNumber, a4 as formatPercentage, j as formatValue, aa as formatWordsUnderBar, ab as formatXAxis, i as generalConfiguration, bO as getBinding, aW as getCapabilityById, p as getColorFromConditions, bG as getControlSchema, a3 as getCurrencySuffix, bJ as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, N as groupDatesByYearAndMonth, by as groupIssuesByDomain, ad as handleFilterForCard, ae as handleFilterForSnapshot, ac as handleFiltersForCustom, bx as hasBlockingIssues, aj as isManagePagesDeleteResult, o as isMobilePlatform, bm as labelLegendFormatToUi, bk as layoutToUi, bP as listBindings, bQ as listBindingsForChart, bH as listControlSchemaIds, bI as listControlSchemas, b2 as moduleIdFromSelector, a$ as normalizeAggregateFunction, b7 as normalizeBeforeRequest, b6 as normalizeBeforeSave, aZ as normalizeChartTypeForRequest, w as normalizeDashboardCardEntityValue, a_ as normalizeFilterOperation, b0 as normalizeFilters, b5 as normalizeOnLoad, bz as parseAdvancedJson, br as persistedToUi, bu as presetsForCapability, bR as readBoundValue, bC as readByPath, aX as resolveCapability, bL as resolveDisplayFields, b1 as selectorFromLegacy, bD as setByPath, l as sortChartData, n as sortDataTableView, bi as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, bd as titleToUi, aY as toBackendChartType, b3 as toBackendSourceLink, b4 as toFormSourceLink, bw as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-ZFFlekJm.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.61",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/dashboard-builder",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"quill": "^2.0.3",
|
|
24
24
|
"rxjs": "^7.8.2",
|
|
25
25
|
"tailwindcss": "^4.2.2",
|
|
26
|
-
"@masterteam/components": "^0.0.228",
|
|
27
|
-
"@masterteam/timeline": "^0.0.19",
|
|
28
26
|
"@masterteam/formula-builder": "^0.0.27",
|
|
27
|
+
"@masterteam/components": "^0.0.230",
|
|
28
|
+
"@masterteam/timeline": "^0.0.19",
|
|
29
29
|
"@masterteam/icons": "^0.0.17"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
@@ -3465,38 +3465,45 @@ declare class StaticFiltersComponent implements OnInit {
|
|
|
3465
3465
|
/**
|
|
3466
3466
|
* Compact chart-level filter entry point.
|
|
3467
3467
|
*
|
|
3468
|
-
*
|
|
3469
|
-
*
|
|
3470
|
-
*
|
|
3468
|
+
* The funnel button opens an anchored popover (not a full-height drawer) that
|
|
3469
|
+
* hosts the shared MT runtime filter editor. Values are edited as a draft and
|
|
3470
|
+
* only mutate the item store after the user picks Apply/Clear, so one chart can
|
|
3471
|
+
* never refresh its siblings. Snapshotting the store on open keeps the popover
|
|
3472
|
+
* a draft even while the chart re-fetches behind it.
|
|
3471
3473
|
*/
|
|
3472
3474
|
declare class DynamicFiltersComponent {
|
|
3473
3475
|
private readonly storeService;
|
|
3474
|
-
private readonly modalService;
|
|
3475
3476
|
private readonly transloco;
|
|
3476
3477
|
private readonly defaultsService;
|
|
3477
|
-
private readonly destroyRef;
|
|
3478
|
-
private filterDrawerRef?;
|
|
3479
|
-
private filterDrawerCloseSubscription?;
|
|
3480
3478
|
/** Persisted definitions. `active:false` and layout-only rows are hidden. */
|
|
3481
3479
|
readonly fields: _angular_core.InputSignal<DynamicFilterField[]>;
|
|
3482
3480
|
/** Store identity of the single widget this control owns. */
|
|
3483
3481
|
readonly dashboardId: _angular_core.InputSignal<string | number | undefined>;
|
|
3484
3482
|
/** Parent report identity used only for dropdown option requests. */
|
|
3485
3483
|
readonly reportId: _angular_core.InputSignal<string | number | null>;
|
|
3486
|
-
/** Retained for source compatibility; fields now render inside the
|
|
3484
|
+
/** Retained for source compatibility; fields now render inside the popover. */
|
|
3487
3485
|
readonly showLabels: _angular_core.InputSignal<boolean>;
|
|
3488
3486
|
readonly filterChange: _angular_core.OutputEmitterRef<{
|
|
3489
3487
|
key: string;
|
|
3490
3488
|
value: any;
|
|
3491
3489
|
}>;
|
|
3492
3490
|
readonly filtersChange: _angular_core.OutputEmitterRef<Record<string, any>>;
|
|
3493
|
-
|
|
3491
|
+
/** Snapshot of the persisted values taken when the popover opens. */
|
|
3492
|
+
readonly draftInitialValues: _angular_core.WritableSignal<Record<string, any>>;
|
|
3493
|
+
/** Snapshot of suppressed default keys taken when the popover opens. */
|
|
3494
|
+
readonly draftSuppressedKeys: _angular_core.WritableSignal<readonly string[]>;
|
|
3494
3495
|
readonly runtimeFields: _angular_core.Signal<DynamicFilterField[]>;
|
|
3495
3496
|
constructor();
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3497
|
+
/**
|
|
3498
|
+
* Hydrate the popover editor from the currently persisted values. Taken on
|
|
3499
|
+
* open so the editor stays a draft even if the chart re-fetches behind it.
|
|
3500
|
+
*/
|
|
3501
|
+
snapshotDraft(): void;
|
|
3502
|
+
/**
|
|
3503
|
+
* Commit an Apply/Clear result. The shared editor returns the same
|
|
3504
|
+
* query-params shape for both actions, so a single handler covers them.
|
|
3505
|
+
*/
|
|
3506
|
+
applyResult(values: Record<string, any>): void;
|
|
3500
3507
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicFiltersComponent, never>;
|
|
3501
3508
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFiltersComponent, "mt-dynamic-filters", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "reportId": { "alias": "reportId"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; "filtersChange": "filtersChange"; }, never, never, true, never>;
|
|
3502
3509
|
}
|
|
@@ -3771,7 +3778,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
3771
3778
|
readonly showCustomLegend: _angular_core.Signal<boolean>;
|
|
3772
3779
|
readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
|
|
3773
3780
|
/** Custom HTML legend placement from the configured legend position. */
|
|
3774
|
-
readonly customLegendPosition: _angular_core.Signal<"
|
|
3781
|
+
readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
3775
3782
|
constructor();
|
|
3776
3783
|
ngOnInit(): Promise<void>;
|
|
3777
3784
|
ngAfterViewInit(): void;
|
|
@@ -4601,7 +4608,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
|
|
|
4601
4608
|
readonly iconColor: _angular_core.Signal<any>;
|
|
4602
4609
|
readonly iconBackgroundColor: _angular_core.Signal<any>;
|
|
4603
4610
|
readonly borderColor: _angular_core.Signal<any>;
|
|
4604
|
-
readonly borderWidth: _angular_core.Signal<
|
|
4611
|
+
readonly borderWidth: _angular_core.Signal<0 | 1>;
|
|
4605
4612
|
readonly padding: _angular_core.Signal<number>;
|
|
4606
4613
|
readonly titleFontSize: _angular_core.Signal<number>;
|
|
4607
4614
|
readonly subtitleFontSize: _angular_core.Signal<number>;
|
|
@@ -4910,6 +4917,15 @@ declare class StackBarChartHandler {
|
|
|
4910
4917
|
* or not a recognized position (keeps existing behavior).
|
|
4911
4918
|
*/
|
|
4912
4919
|
private resolveBarLabelPosition;
|
|
4920
|
+
/**
|
|
4921
|
+
* Rounded-cap corner radius for a bar segment, honoring orientation.
|
|
4922
|
+
* ECharts corner order is [topLeft, topRight, bottomRight, bottomLeft].
|
|
4923
|
+
* - vertical bars grow upward, so the rounded cap is the top edge.
|
|
4924
|
+
* - horizontal bars grow left -> right (this handler's value axis is not
|
|
4925
|
+
* inverted for RTL, matching the grouped-bar handler), so the rounded
|
|
4926
|
+
* cap is the right edge.
|
|
4927
|
+
*/
|
|
4928
|
+
private stackBarCapRadius;
|
|
4913
4929
|
private resolveStackBarBorderRadius;
|
|
4914
4930
|
/**
|
|
4915
4931
|
* Helper method to convert legend position based on language
|
|
@@ -7747,7 +7763,7 @@ declare class DataSourceSettings {
|
|
|
7747
7763
|
* Active tab within the selection cycle: Selection (pick modules) · Source
|
|
7748
7764
|
* Links (joins, only with >1 selection) · Query (fields).
|
|
7749
7765
|
*/
|
|
7750
|
-
readonly activeSection: _angular_core.WritableSignal<"
|
|
7766
|
+
readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
|
|
7751
7767
|
/** Selection mode inside the selection tab (informative authoring). */
|
|
7752
7768
|
readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
|
|
7753
7769
|
readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
|