@masterteam/dashboard-builder 0.0.66 → 0.0.68
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/i18n/ar.json +1596 -1590
- package/assets/i18n/en.json +1321 -1315
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-D8yaYStk.mjs → masterteam-dashboard-builder-dashboard-dialog.component-XUArffz3.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-D8yaYStk.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-XUArffz3.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-m0O-Y4lO.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-B2u_ZfFj.mjs} +365 -191
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-B2u_ZfFj.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +4 -4
- package/types/masterteam-dashboard-builder.d.ts +21 -7
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-m0O-Y4lO.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-B2u_ZfFj.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.68",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/dashboard-builder",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"quill": "^2.0.3",
|
|
24
24
|
"rxjs": "^7.8.2",
|
|
25
25
|
"tailwindcss": "^4.2.2",
|
|
26
|
-
"@masterteam/components": "^0.0.
|
|
27
|
-
"@masterteam/timeline": "^0.0.19",
|
|
26
|
+
"@masterteam/components": "^0.0.236",
|
|
28
27
|
"@masterteam/formula-builder": "^0.0.27",
|
|
29
|
-
"@masterteam/icons": "^0.0.17"
|
|
28
|
+
"@masterteam/icons": "^0.0.17",
|
|
29
|
+
"@masterteam/timeline": "^0.0.20"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.8.1",
|
|
@@ -1189,7 +1189,7 @@ declare function formatForEditor(value: unknown): string;
|
|
|
1189
1189
|
* renders a small bespoke editor so structured config never falls back to a raw
|
|
1190
1190
|
* JSON textarea. `json` is retained ONLY for the Advanced escape hatch.
|
|
1191
1191
|
*/
|
|
1192
|
-
type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color' | 'select' | 'multiselect' | 'iconPicker' | 'palette' | 'json' | 'numberRange' | 'cssDimension' | 'segmented' | 'colorList' | 'arrayBuilder' | 'keyValueMap' | 'conditionBuilder' | 'legendOrder';
|
|
1192
|
+
type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color' | 'select' | 'multiselect' | 'iconPicker' | 'palette' | 'json' | 'numberRange' | 'cssDimension' | 'segmented' | 'colorList' | 'arrayBuilder' | 'keyValueMap' | 'conditionBuilder' | 'legendOrder' | 'entryColors';
|
|
1193
1193
|
/** Where the control lives in the popover. */
|
|
1194
1194
|
type ControlSectionScope = 'simple' | 'advanced';
|
|
1195
1195
|
/** Domain bucket — used by the popover to group controls and validation. */
|
|
@@ -3691,7 +3691,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3691
3691
|
/** Whether the user can act on the Configure CTA (builder mode). */
|
|
3692
3692
|
readonly canConfigure: _angular_core.Signal<boolean>;
|
|
3693
3693
|
readonly hasSplitterData: _angular_core.Signal<boolean>;
|
|
3694
|
-
readonly splitterOrientation: _angular_core.Signal<"
|
|
3694
|
+
readonly splitterOrientation: _angular_core.Signal<"vertical" | "horizontal">;
|
|
3695
3695
|
readonly splitterGap: _angular_core.Signal<number>;
|
|
3696
3696
|
readonly hasTimelineData: _angular_core.Signal<boolean>;
|
|
3697
3697
|
readonly timelineEvents: _angular_core.Signal<any[]>;
|
|
@@ -3825,7 +3825,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
3825
3825
|
readonly showCustomLegend: _angular_core.Signal<boolean>;
|
|
3826
3826
|
readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
|
|
3827
3827
|
/** Custom HTML legend placement from the configured legend position. */
|
|
3828
|
-
readonly customLegendPosition: _angular_core.Signal<"
|
|
3828
|
+
readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
3829
3829
|
constructor();
|
|
3830
3830
|
ngOnInit(): Promise<void>;
|
|
3831
3831
|
ngAfterViewInit(): void;
|
|
@@ -4480,6 +4480,12 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
4480
4480
|
readonly labels: _angular_core.WritableSignal<any[]>;
|
|
4481
4481
|
/** Table legends are visible by default for backward compatibility. */
|
|
4482
4482
|
readonly showLegend: _angular_core.Signal<boolean>;
|
|
4483
|
+
/**
|
|
4484
|
+
* Whether there is a legend to render at all. Shared by both hosts (the card
|
|
4485
|
+
* header's top-end slot and, when the header is hidden, the card body) so the
|
|
4486
|
+
* two never disagree about visibility.
|
|
4487
|
+
*/
|
|
4488
|
+
readonly hasLegend: _angular_core.Signal<boolean>;
|
|
4483
4489
|
/** Processed table rows */
|
|
4484
4490
|
readonly tableRows: _angular_core.WritableSignal<any[]>;
|
|
4485
4491
|
/** Grouped data */
|
|
@@ -7823,7 +7829,7 @@ declare class DataSourceSettings {
|
|
|
7823
7829
|
* Active tab within the selection cycle: Selection (pick modules) · Source
|
|
7824
7830
|
* Links (joins, only with >1 selection) · Query (fields).
|
|
7825
7831
|
*/
|
|
7826
|
-
readonly activeSection: _angular_core.WritableSignal<"
|
|
7832
|
+
readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
|
|
7827
7833
|
/** Selection mode inside the selection tab (informative authoring). */
|
|
7828
7834
|
readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
|
|
7829
7835
|
readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
|
|
@@ -8326,10 +8332,18 @@ interface LegendOrderItem {
|
|
|
8326
8332
|
* `clientConfig.configAsType.legend.overrideLegendOrder`. Reset emits `[]`
|
|
8327
8333
|
* (natural order). Every row also exposes an independent color override keyed
|
|
8328
8334
|
* by the rendered legend name.
|
|
8335
|
+
*
|
|
8336
|
+
* With `reorderable` false the rows become a pure color editor (no drag handle,
|
|
8337
|
+
* no reset-order button, no `valueChange`). That is the mode the Bar-colors
|
|
8338
|
+
* control uses: a plain bar chart's bar order comes from the data / the "Sort
|
|
8339
|
+
* bars by" control, so an order override would persist a key the runtime never
|
|
8340
|
+
* reads.
|
|
8329
8341
|
*/
|
|
8330
8342
|
declare class LegendOrderField {
|
|
8331
8343
|
readonly items: _angular_core.InputSignal<LegendOrderItem[]>;
|
|
8332
8344
|
readonly colorOverrides: _angular_core.InputSignal<Record<string, unknown>>;
|
|
8345
|
+
/** When false, render colors only — no drag handle, no order reset. */
|
|
8346
|
+
readonly reorderable: _angular_core.InputSignal<boolean>;
|
|
8333
8347
|
readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
|
|
8334
8348
|
readonly colorChange: _angular_core.OutputEmitterRef<LegendColorChange>;
|
|
8335
8349
|
/** Working list is just the input — reorder mutates a copy and emits. */
|
|
@@ -8339,7 +8353,7 @@ declare class LegendOrderField {
|
|
|
8339
8353
|
colorFor(item: LegendOrderItem): string | null;
|
|
8340
8354
|
setColor(item: LegendOrderItem, color: unknown): void;
|
|
8341
8355
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LegendOrderField, never>;
|
|
8342
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendOrderField, "mt-legend-order-field", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "colorOverrides": { "alias": "colorOverrides"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "colorChange": "colorChange"; }, never, never, true, never>;
|
|
8356
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendOrderField, "mt-legend-order-field", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "colorOverrides": { "alias": "colorOverrides"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "colorChange": "colorChange"; }, never, never, true, never>;
|
|
8343
8357
|
}
|
|
8344
8358
|
|
|
8345
8359
|
interface NavGroup {
|
|
@@ -8647,12 +8661,12 @@ interface MapRow {
|
|
|
8647
8661
|
* boolean). Controlled: `value` in, `valueChange` out.
|
|
8648
8662
|
*/
|
|
8649
8663
|
declare class KeyValueMapField {
|
|
8650
|
-
readonly value: _angular_core.InputSignal<
|
|
8664
|
+
readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
|
|
8651
8665
|
readonly keys: _angular_core.InputSignal<ControlOption[]>;
|
|
8652
8666
|
readonly valueFields: _angular_core.InputSignal<ControlField[]>;
|
|
8653
8667
|
/** When true, store/read a positional array aligned to `keys` order. */
|
|
8654
8668
|
readonly asArray: _angular_core.InputSignal<boolean>;
|
|
8655
|
-
readonly valueChange: _angular_core.OutputEmitterRef<
|
|
8669
|
+
readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
|
|
8656
8670
|
readonly rows: _angular_core.WritableSignal<MapRow[]>;
|
|
8657
8671
|
private readonly destroyRef;
|
|
8658
8672
|
/** Subscriptions for the current row set; torn down on every rebuild. */
|