@masterteam/dashboard-builder 0.0.86 → 0.0.88
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/README.md +23 -2
- package/assets/dashboard-builder.css +1 -1
- package/assets/i18n/ar.json +8 -4
- package/assets/i18n/en.json +8 -5
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-Cw9EV2Xn.mjs → masterteam-dashboard-builder-dashboard-dialog.component-BFkefeOr.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-Cw9EV2Xn.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-BFkefeOr.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-Bcn8YzoD.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-DaN0WjWE.mjs} +347 -49
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-DaN0WjWE.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +3 -3
- package/types/masterteam-dashboard-builder.d.ts +97 -13
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-Bcn8YzoD.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { aG as ActionsSettings, aO as ArrayBuilderField, N as BarChartHandler, az as BarControlUi, b0 as CHART_CAPABILITIES, aC as CHART_TYPES, bf as CONFIG_DOMAINS, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, M as ChartDataService, aS as ChartFilterDrawer, av as ChartSettingsDrawer, aH as ChartViewer, aN as ColorListField, $ as ComparisonChartHandler, d as DashboardBuilder, ao as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, aj as DashboardList, ap as DashboardStoreService, e as DashboardViewer, aF as DataSourceSettings, aY as DatasourcePanelComponent, ax as DefaultControlUi, aw as DisplaySettings, u as DynamicFiltersComponent, au as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, y as EntityInfoComponent, A as EntityPreviewCardComponent, aX as FilterBuilderComponent, a_ as FilterByGroupPipe, aW as FilterChipsBarComponent, V as GaugeChartHandler, aE as GeneralSettings, a$ as GetChartActionsPipe, aV as GuidedConfigDialogComponent, an as HTTPMethod, H as HeaderCardComponent, bZ as ITEM_GUIDANCE_REGISTRY, aR as ItemCardMenuComponent, aU as ItemConfigPopoverComponent, aT as ItemContextToolbarComponent, b$ as ItemGuidanceService, aP as KeyValueMapField, L as LastHistoryLevelCardComponent, aQ as LegendOrderField, a1 as LevelCardHandler, Z as LineChartHandler, B as ListStatisticCardComponent, ak as MODULE_CLASSIFICATION_LOG, al as MODULE_CLASSIFICATION_LOG_NAME, as as ManageBreadcrumb, at as ManageFilterOnPage, aB as ManageItem, aD as ManageItemService, ar as ManagePages, a2 as MapChartHandler, X as OverviewCardHandler, bi as POPOVER_TABS, bj as POPOVER_TAB_SPECS, a5 as PhaseGateStepperHandler, O as PieChartHandler, ay as PieControlUi, P as PropertiesCardComponent, a3 as RingGaugeChartHandler, a4 as SPlusChartHandler, bA as STYLE_PRESETS, aZ as SchemaControlRendererComponent, aM as SegmentedField, G as SkeletonCardComponent, _ as SnapshotHandler, a0 as SplitterChartHandler, Q as StackBarChartHandler, aA as StackBarControlUi, S as StaticFiltersComponent, J as StatisticCardComponent, aL as StyleField, aJ as StyleSettingsRenderer, aI as StyleStudioDrawer, T as TableCardComponent, W as TableViewHandler, Y as TimelineHandler, K as TopbarCardComponent, n as addCommasToNumber, bw as applyBehaviorToPersisted, bL as applyControlPatchToPersisted, bM as applyControlPatchesToPersisted, bx as applyFilterChipsToPersisted, bu as applyLabelLegendFormatToPersisted, bs as applyLayoutToPersisted, bq as applyStyleToPersisted, bl as applyTitleToPersisted, R as axisFormatters, bv as behaviorToUi, bU as bindingKey, bz as buildAssembly, bT as buildDisplayFieldPredicate, c as cloneDeep, ab as createAxisFormatter, ac as createTooltipFormatter, bm as datasourceToUi, bH as deepMerge, b_ as describeGuidance, bg as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, aK as expandResetPatches, bn as fieldsToUi, bo as filtersToUi, bh as findDomain, bC as findPreset, bR as flattenSchema, ad as formatAxisLabel, a6 as formatCurrency, aa as formatDate, bI as formatForEditor, a9 as formatNumber, a8 as formatPercentage, k as formatValue, ae as formatWordsUnderBar, af as formatXAxis, j as generalConfiguration, bV as getBinding, b1 as getCapabilityById, q as getColorFromConditions, bN as getControlSchema, a7 as getCurrencySuffix, bQ as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, U as groupDatesByYearAndMonth, bF as groupIssuesByDomain, ah as handleFilterForCard, ai as handleFilterForSnapshot, ag as handleFiltersForCustom, bE as hasBlockingIssues, am as isLogClassification, aq as isManagePagesDeleteResult, p as isMobilePlatform, bt as labelLegendFormatToUi, br as layoutToUi, bW as listBindings, bX as listBindingsForChart, bO as listControlSchemaIds, bP as listControlSchemas, b9 as moduleIdFromSelector, b6 as normalizeAggregateFunction, be as normalizeBeforeRequest, bd as normalizeBeforeSave, b4 as normalizeChartTypeForRequest, z as normalizeDashboardCardEntityValue, b5 as normalizeFilterOperation, b7 as normalizeFilters, bc as normalizeOnLoad, bG as parseAdvancedJson, by as persistedToUi, bB as presetsForCapability, bY as readBoundValue, bJ as readByPath, b2 as resolveCapability, bS as resolveDisplayFields, x as resolveEntityUserPhoto, I as resolveStatisticIconPlacement, b8 as selectorFromLegacy, bK as setByPath, m as sortChartData, o as sortDataTableView, bp as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, bk as titleToUi, b3 as toBackendChartType, ba as toBackendSourceLink, bb as toFormSourceLink, bD as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
1
|
+
export { aG as ActionsSettings, aO as ArrayBuilderField, N as BarChartHandler, az as BarControlUi, b0 as CHART_CAPABILITIES, aC as CHART_TYPES, bf as CONFIG_DOMAINS, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, M as ChartDataService, aS as ChartFilterDrawer, av as ChartSettingsDrawer, aH as ChartViewer, aN as ColorListField, $ as ComparisonChartHandler, d as DashboardBuilder, ao as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, aj as DashboardList, ap as DashboardStoreService, e as DashboardViewer, aF as DataSourceSettings, aY as DatasourcePanelComponent, ax as DefaultControlUi, aw as DisplaySettings, u as DynamicFiltersComponent, au as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, y as EntityInfoComponent, A as EntityPreviewCardComponent, aX as FilterBuilderComponent, a_ as FilterByGroupPipe, aW as FilterChipsBarComponent, V as GaugeChartHandler, aE as GeneralSettings, a$ as GetChartActionsPipe, aV as GuidedConfigDialogComponent, an as HTTPMethod, H as HeaderCardComponent, bZ as ITEM_GUIDANCE_REGISTRY, aR as ItemCardMenuComponent, aU as ItemConfigPopoverComponent, aT as ItemContextToolbarComponent, b$ as ItemGuidanceService, aP as KeyValueMapField, L as LastHistoryLevelCardComponent, aQ as LegendOrderField, a1 as LevelCardHandler, Z as LineChartHandler, B as ListStatisticCardComponent, ak as MODULE_CLASSIFICATION_LOG, al as MODULE_CLASSIFICATION_LOG_NAME, as as ManageBreadcrumb, at as ManageFilterOnPage, aB as ManageItem, aD as ManageItemService, ar as ManagePages, a2 as MapChartHandler, X as OverviewCardHandler, bi as POPOVER_TABS, bj as POPOVER_TAB_SPECS, a5 as PhaseGateStepperHandler, O as PieChartHandler, ay as PieControlUi, P as PropertiesCardComponent, a3 as RingGaugeChartHandler, a4 as SPlusChartHandler, bA as STYLE_PRESETS, aZ as SchemaControlRendererComponent, aM as SegmentedField, G as SkeletonCardComponent, _ as SnapshotHandler, a0 as SplitterChartHandler, Q as StackBarChartHandler, aA as StackBarControlUi, S as StaticFiltersComponent, J as StatisticCardComponent, aL as StyleField, aJ as StyleSettingsRenderer, aI as StyleStudioDrawer, T as TableCardComponent, W as TableViewHandler, Y as TimelineHandler, K as TopbarCardComponent, n as addCommasToNumber, bw as applyBehaviorToPersisted, bL as applyControlPatchToPersisted, bM as applyControlPatchesToPersisted, bx as applyFilterChipsToPersisted, bu as applyLabelLegendFormatToPersisted, bs as applyLayoutToPersisted, bq as applyStyleToPersisted, bl as applyTitleToPersisted, R as axisFormatters, bv as behaviorToUi, bU as bindingKey, bz as buildAssembly, bT as buildDisplayFieldPredicate, c as cloneDeep, ab as createAxisFormatter, ac as createTooltipFormatter, bm as datasourceToUi, bH as deepMerge, b_ as describeGuidance, bg as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, aK as expandResetPatches, bn as fieldsToUi, bo as filtersToUi, bh as findDomain, bC as findPreset, bR as flattenSchema, ad as formatAxisLabel, a6 as formatCurrency, aa as formatDate, bI as formatForEditor, a9 as formatNumber, a8 as formatPercentage, k as formatValue, ae as formatWordsUnderBar, af as formatXAxis, j as generalConfiguration, bV as getBinding, b1 as getCapabilityById, q as getColorFromConditions, bN as getControlSchema, a7 as getCurrencySuffix, bQ as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, U as groupDatesByYearAndMonth, bF as groupIssuesByDomain, ah as handleFilterForCard, ai as handleFilterForSnapshot, ag as handleFiltersForCustom, bE as hasBlockingIssues, am as isLogClassification, aq as isManagePagesDeleteResult, p as isMobilePlatform, bt as labelLegendFormatToUi, br as layoutToUi, bW as listBindings, bX as listBindingsForChart, bO as listControlSchemaIds, bP as listControlSchemas, b9 as moduleIdFromSelector, b6 as normalizeAggregateFunction, be as normalizeBeforeRequest, bd as normalizeBeforeSave, b4 as normalizeChartTypeForRequest, z as normalizeDashboardCardEntityValue, b5 as normalizeFilterOperation, b7 as normalizeFilters, bc as normalizeOnLoad, bG as parseAdvancedJson, by as persistedToUi, bB as presetsForCapability, bY as readBoundValue, bJ as readByPath, b2 as resolveCapability, bS as resolveDisplayFields, x as resolveEntityUserPhoto, I as resolveStatisticIconPlacement, b8 as selectorFromLegacy, bK as setByPath, m as sortChartData, o as sortDataTableView, bp as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, bk as titleToUi, b3 as toBackendChartType, ba as toBackendSourceLink, bb as toFormSourceLink, bD as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-DaN0WjWE.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.88",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/dashboard-builder",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"rxjs": "^7.8.2",
|
|
25
25
|
"tailwindcss": "^4.2.2",
|
|
26
26
|
"@masterteam/timeline": "^0.0.23",
|
|
27
|
-
"@masterteam/
|
|
28
|
-
"@masterteam/
|
|
27
|
+
"@masterteam/components": "^0.0.0-watch+1788938712186",
|
|
28
|
+
"@masterteam/icons": "^0.0.17"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"tslib": "^2.8.1",
|
|
@@ -891,8 +891,20 @@ declare function toBackendSourceLink(link: any, fallbackId: number): any;
|
|
|
891
891
|
* (source1SelectionId / source1PropertyKey) both restore correctly — the
|
|
892
892
|
* source-link form was rendering blank because it only read the FE keys.
|
|
893
893
|
*
|
|
894
|
-
*
|
|
895
|
-
*
|
|
894
|
+
* A chained ("From previous link") row is encoded on EITHER side:
|
|
895
|
+
*
|
|
896
|
+
* - `sourceLinkId` — side 1 comes from a previous link's result, joined on
|
|
897
|
+
* `source1LinkProperty`. This is what `toBackendSourceLink` writes for a
|
|
898
|
+
* row the builder authored, and it maps straight back with no swap.
|
|
899
|
+
* - `sourceLinkId2` — side 2 comes from a previous link's result (what the
|
|
900
|
+
* backend's context-navigation path builder emits). The form only models
|
|
901
|
+
* "previous link on side 1", so that encoding is mirrored into side 1 with
|
|
902
|
+
* the two link properties swapped.
|
|
903
|
+
*
|
|
904
|
+
* Reading only `sourceLinkId2` silently dropped `sourceLinkId` on the way back
|
|
905
|
+
* in, so a row saved as chained reloaded as selection-to-selection and the
|
|
906
|
+
* builder's link-type tab snapped back to "Selection ↔ Selection" the moment a
|
|
907
|
+
* previous link was picked (#1546).
|
|
896
908
|
*/
|
|
897
909
|
declare function toFormSourceLink(link: any): any;
|
|
898
910
|
/**
|
|
@@ -3662,7 +3674,7 @@ declare class CardFilterComponent implements OnInit {
|
|
|
3662
3674
|
/** Language code */
|
|
3663
3675
|
readonly langCode: _angular_core.Signal<string>;
|
|
3664
3676
|
/** Filter type */
|
|
3665
|
-
readonly filterType: _angular_core.Signal<"
|
|
3677
|
+
readonly filterType: _angular_core.Signal<"date" | "text" | "select" | "multiselect" | "multiSelect" | "daterange">;
|
|
3666
3678
|
/** Filter options */
|
|
3667
3679
|
readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
|
|
3668
3680
|
/** Placeholder text */
|
|
@@ -3891,14 +3903,14 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3891
3903
|
/** Whether the user can act on the Configure CTA (builder mode). */
|
|
3892
3904
|
readonly canConfigure: _angular_core.Signal<boolean>;
|
|
3893
3905
|
readonly hasSplitterData: _angular_core.Signal<boolean>;
|
|
3894
|
-
readonly splitterOrientation: _angular_core.Signal<"
|
|
3906
|
+
readonly splitterOrientation: _angular_core.Signal<"vertical" | "horizontal">;
|
|
3895
3907
|
readonly splitterGap: _angular_core.Signal<number>;
|
|
3896
3908
|
readonly hasTimelineData: _angular_core.Signal<boolean>;
|
|
3897
3909
|
readonly timelineEvents: _angular_core.Signal<any[]>;
|
|
3898
3910
|
readonly timelineResources: _angular_core.Signal<any[]>;
|
|
3899
3911
|
readonly timelineLabels: _angular_core.Signal<any[]>;
|
|
3900
3912
|
readonly timelineLegendIconType: _angular_core.Signal<string>;
|
|
3901
|
-
readonly timelineLegendPosition: _angular_core.Signal<"
|
|
3913
|
+
readonly timelineLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
3902
3914
|
/** Timeline legend visibility — honors the Style Studio "Show legend" toggle. */
|
|
3903
3915
|
readonly timelineLegendShow: _angular_core.Signal<boolean>;
|
|
3904
3916
|
readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
|
|
@@ -4026,7 +4038,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
4026
4038
|
readonly showCustomLegend: _angular_core.Signal<boolean>;
|
|
4027
4039
|
readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
|
|
4028
4040
|
/** Custom HTML legend placement from the configured legend position. */
|
|
4029
|
-
readonly customLegendPosition: _angular_core.Signal<"
|
|
4041
|
+
readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
4030
4042
|
constructor();
|
|
4031
4043
|
ngOnInit(): Promise<void>;
|
|
4032
4044
|
ngAfterViewInit(): void;
|
|
@@ -4151,6 +4163,16 @@ declare class EntityInfoComponent {
|
|
|
4151
4163
|
/** Computed viewType in lowercase */
|
|
4152
4164
|
readonly viewTypeLower: _angular_core.Signal<string>;
|
|
4153
4165
|
readonly textValue: _angular_core.Signal<any>;
|
|
4166
|
+
/**
|
|
4167
|
+
* A `LongText` property stores rich-text HTML authored in the editor, so the
|
|
4168
|
+
* cell has to render it as markup — interpolating it printed the raw
|
|
4169
|
+
* `<p>…</p>` source into the table. Angular sanitizes `[innerHTML]`, and this
|
|
4170
|
+
* matches `mt-entity-long-text`, which is what the level-workspace table
|
|
4171
|
+
* renders the same property with.
|
|
4172
|
+
*/
|
|
4173
|
+
readonly longTextHtml: _angular_core.Signal<any>;
|
|
4174
|
+
/** Tag-stripped text for the `title` tooltip — an attribute can't hold markup. */
|
|
4175
|
+
readonly longTextTooltip: _angular_core.Signal<string>;
|
|
4154
4176
|
readonly numericValue: _angular_core.Signal<number | null>;
|
|
4155
4177
|
readonly dateDisplayValue: _angular_core.Signal<any>;
|
|
4156
4178
|
readonly currencyDisplayValue: _angular_core.Signal<any>;
|
|
@@ -4391,7 +4413,7 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
|
|
|
4391
4413
|
/** Icon name */
|
|
4392
4414
|
readonly icon: _angular_core.Signal<string>;
|
|
4393
4415
|
/** Position of the layout icon relative to the header title. */
|
|
4394
|
-
readonly iconPlacement: _angular_core.Signal<"
|
|
4416
|
+
readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
|
|
4395
4417
|
/** Logo configuration */
|
|
4396
4418
|
readonly logo: _angular_core.Signal<any>;
|
|
4397
4419
|
/** Logo URL */
|
|
@@ -4707,7 +4729,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
4707
4729
|
* two never disagree about visibility.
|
|
4708
4730
|
*/
|
|
4709
4731
|
readonly hasLegend: _angular_core.Signal<boolean>;
|
|
4710
|
-
readonly legendPosition: _angular_core.Signal<"
|
|
4732
|
+
readonly legendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
4711
4733
|
readonly legendIconType: _angular_core.Signal<string>;
|
|
4712
4734
|
readonly isSideLegend: _angular_core.Signal<boolean>;
|
|
4713
4735
|
/** Processed table rows */
|
|
@@ -4896,7 +4918,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
|
|
|
4896
4918
|
readonly showSubtitle: _angular_core.Signal<boolean>;
|
|
4897
4919
|
readonly icon: _angular_core.Signal<any>;
|
|
4898
4920
|
/** Position of the layout icon relative to the topbar title. */
|
|
4899
|
-
readonly iconPlacement: _angular_core.Signal<"
|
|
4921
|
+
readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
|
|
4900
4922
|
/**
|
|
4901
4923
|
* Center the icon/title block within the topbar row
|
|
4902
4924
|
* (configAsType.headerCardConfig.isHeaderCentered === true) — same source
|
|
@@ -5182,6 +5204,12 @@ declare class BarChartHandler {
|
|
|
5182
5204
|
* Transforms bar chart data into entity preview format (flat array of properties)
|
|
5183
5205
|
*/
|
|
5184
5206
|
handleEntityPreviewWithFormula(dataResponse: any, config: ItemConfig): any;
|
|
5207
|
+
/**
|
|
5208
|
+
* New Style Studio rows carry the stable bar key, so labels survive data
|
|
5209
|
+
* sorting and a backend-provided label changing. Existing index-only rows
|
|
5210
|
+
* came from the legacy editor and keep their original positional behavior.
|
|
5211
|
+
*/
|
|
5212
|
+
private resolveOverrideLabel;
|
|
5185
5213
|
/**
|
|
5186
5214
|
* #1549 — a bar in the chart response is identified by `barType`, not `key`.
|
|
5187
5215
|
* `ChartTypesServiceV2.BuildSingleCategoryChart` emits
|
|
@@ -8690,6 +8718,36 @@ interface DashboardDialogHeaderData {
|
|
|
8690
8718
|
interface LegendColorChange {
|
|
8691
8719
|
name: string;
|
|
8692
8720
|
color: string | null;
|
|
8721
|
+
/**
|
|
8722
|
+
* Identities this same entry may already be stored under. They are removed
|
|
8723
|
+
* before the new color is written, because the runtime resolver checks a
|
|
8724
|
+
* point's `name` before its `key` — a color left behind under the visible
|
|
8725
|
+
* label would otherwise win over the one saved against the stable key, and
|
|
8726
|
+
* the user's new pick would appear to do nothing.
|
|
8727
|
+
*/
|
|
8728
|
+
aliases?: readonly string[];
|
|
8729
|
+
}
|
|
8730
|
+
|
|
8731
|
+
/**
|
|
8732
|
+
* Typed display-config shapes for the Style Studio.
|
|
8733
|
+
*
|
|
8734
|
+
* The persisted chart config (`ClientConfig`) is historically an `any`-bag with
|
|
8735
|
+
* several overlapping style holders. These interfaces document the *real* shape
|
|
8736
|
+
* the renderer-handlers consume, so the schema-driven Style Studio (its composite
|
|
8737
|
+
* controls in particular) can read/write structured values with type safety.
|
|
8738
|
+
*
|
|
8739
|
+
* IMPORTANT: these types are descriptive, NOT a new persistence contract. They
|
|
8740
|
+
* intentionally mirror the existing persisted paths (including the historical
|
|
8741
|
+
* misspellings `pieConfigOverried` / `tableCoulmns` / `extraCoulmnFromLookup`,
|
|
8742
|
+
* which the runtime chart handlers still read). Renaming those data paths is a
|
|
8743
|
+
* separate, handler-inclusive migration and is deliberately out of scope here.
|
|
8744
|
+
*/
|
|
8745
|
+
|
|
8746
|
+
/** A single localized override label in `configAsType.overrideLabels[]`. */
|
|
8747
|
+
interface OverrideLabelRow {
|
|
8748
|
+
key?: string;
|
|
8749
|
+
en?: string;
|
|
8750
|
+
ar?: string;
|
|
8693
8751
|
}
|
|
8694
8752
|
|
|
8695
8753
|
/** A legend entry surfaced from the chart's live preview data. */
|
|
@@ -8698,6 +8756,13 @@ interface LegendOrderItem {
|
|
|
8698
8756
|
name: string;
|
|
8699
8757
|
color?: string;
|
|
8700
8758
|
}
|
|
8759
|
+
/** One localized label edit for a live chart entry. */
|
|
8760
|
+
interface LocalizedLegendLabelChange {
|
|
8761
|
+
index: number;
|
|
8762
|
+
key: string;
|
|
8763
|
+
language: 'en' | 'ar';
|
|
8764
|
+
value: string;
|
|
8765
|
+
}
|
|
8701
8766
|
/**
|
|
8702
8767
|
* Drag-to-reorder the chart legend. The available entries (`items`) come from
|
|
8703
8768
|
* the live preview data (already ordered by the saved override); dragging emits
|
|
@@ -8715,18 +8780,35 @@ interface LegendOrderItem {
|
|
|
8715
8780
|
declare class LegendOrderField {
|
|
8716
8781
|
readonly items: _angular_core.InputSignal<LegendOrderItem[]>;
|
|
8717
8782
|
readonly colorOverrides: _angular_core.InputSignal<Record<string, unknown>>;
|
|
8783
|
+
/** Existing chart label overrides, aligned by key (or legacy row position). */
|
|
8784
|
+
readonly localizedLabels: _angular_core.InputSignal<OverrideLabelRow[]>;
|
|
8718
8785
|
/** When false, render colors only — no drag handle, no order reset. */
|
|
8719
8786
|
readonly reorderable: _angular_core.InputSignal<boolean>;
|
|
8787
|
+
/** Enables English/Arabic label editors beside each color picker. */
|
|
8788
|
+
readonly showLocalizedLabels: _angular_core.InputSignal<boolean>;
|
|
8789
|
+
/** Persist color against the stable entry key, rather than its visible label. */
|
|
8790
|
+
readonly useItemKeyForColor: _angular_core.InputSignal<boolean>;
|
|
8720
8791
|
readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
|
|
8721
8792
|
readonly colorChange: _angular_core.OutputEmitterRef<LegendColorChange>;
|
|
8793
|
+
readonly localizedLabelChange: _angular_core.OutputEmitterRef<LocalizedLegendLabelChange>;
|
|
8722
8794
|
/** Working list is just the input — reorder mutates a copy and emits. */
|
|
8723
8795
|
readonly rows: _angular_core.Signal<LegendOrderItem[]>;
|
|
8724
8796
|
drop(event: CdkDragDrop<unknown>): void;
|
|
8725
8797
|
reset(): void;
|
|
8726
8798
|
colorFor(item: LegendOrderItem): string | null;
|
|
8727
8799
|
setColor(item: LegendOrderItem, color: unknown): void;
|
|
8800
|
+
/** The identity this control stores an entry's color under. */
|
|
8801
|
+
private colorIdentity;
|
|
8802
|
+
/**
|
|
8803
|
+
* Identities the same entry was stored under before this control switched to
|
|
8804
|
+
* the stable key. Only charts that made that switch need the migration, so
|
|
8805
|
+
* name-keyed controls return nothing and never delete a key-keyed row.
|
|
8806
|
+
*/
|
|
8807
|
+
private legacyColorIdentities;
|
|
8808
|
+
localizedLabel(item: LegendOrderItem, index: number, language: 'en' | 'ar'): string;
|
|
8809
|
+
setLocalizedLabel(item: LegendOrderItem, index: number, language: 'en' | 'ar', value: unknown): void;
|
|
8728
8810
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LegendOrderField, never>;
|
|
8729
|
-
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>;
|
|
8811
|
+
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; }; "localizedLabels": { "alias": "localizedLabels"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "showLocalizedLabels": { "alias": "showLocalizedLabels"; "required": false; "isSignal": true; }; "useItemKeyForColor": { "alias": "useItemKeyForColor"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "colorChange": "colorChange"; "localizedLabelChange": "localizedLabelChange"; }, never, never, true, never>;
|
|
8730
8812
|
}
|
|
8731
8813
|
|
|
8732
8814
|
interface NavGroup {
|
|
@@ -8929,6 +9011,7 @@ declare class StyleField {
|
|
|
8929
9011
|
/** keyValueMap accepts either a map or a positional array (asArray mode). */
|
|
8930
9012
|
readMapOrArray(): Record<string, unknown> | unknown[];
|
|
8931
9013
|
readLegendColorOverrides(): Record<string, unknown>;
|
|
9014
|
+
readOverrideLabels(): OverrideLabelRow[];
|
|
8932
9015
|
readJson(): string;
|
|
8933
9016
|
emitValue(value: unknown): void;
|
|
8934
9017
|
/**
|
|
@@ -8938,6 +9021,7 @@ declare class StyleField {
|
|
|
8938
9021
|
*/
|
|
8939
9022
|
private seedTopBorderColor;
|
|
8940
9023
|
onLegendColorChange(change: LegendColorChange): void;
|
|
9024
|
+
onEntryLabelChange(change: LocalizedLegendLabelChange): void;
|
|
8941
9025
|
onJsonInput(raw: string): void;
|
|
8942
9026
|
private emitScalar;
|
|
8943
9027
|
private emitShadowPreset;
|
|
@@ -9050,12 +9134,12 @@ interface MapRow {
|
|
|
9050
9134
|
* boolean). Controlled: `value` in, `valueChange` out.
|
|
9051
9135
|
*/
|
|
9052
9136
|
declare class KeyValueMapField {
|
|
9053
|
-
readonly value: _angular_core.InputSignal<
|
|
9137
|
+
readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
|
|
9054
9138
|
readonly keys: _angular_core.InputSignal<ControlOption[]>;
|
|
9055
9139
|
readonly valueFields: _angular_core.InputSignal<ControlField[]>;
|
|
9056
9140
|
/** When true, store/read a positional array aligned to `keys` order. */
|
|
9057
9141
|
readonly asArray: _angular_core.InputSignal<boolean>;
|
|
9058
|
-
readonly valueChange: _angular_core.OutputEmitterRef<
|
|
9142
|
+
readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
|
|
9059
9143
|
readonly rows: _angular_core.WritableSignal<MapRow[]>;
|
|
9060
9144
|
private readonly destroyRef;
|
|
9061
9145
|
/** Subscriptions for the current row set; torn down on every rebuild. */
|
|
@@ -9102,4 +9186,4 @@ declare class GetChartActionsPipe implements PipeTransform {
|
|
|
9102
9186
|
declare function cloneDeep<T>(obj: T): T;
|
|
9103
9187
|
|
|
9104
9188
|
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, MODULE_CLASSIFICATION_LOG_NAME, 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, isLogClassification, 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 };
|
|
9105
|
-
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, DashboardLevelLogsResolver, 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 };
|
|
9189
|
+
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, DashboardLevelLogsResolver, 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, LocalizedLegendLabelChange, 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 };
|