@masterteam/dashboard-builder 0.0.87 → 0.0.89
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 +3 -0
- package/assets/dashboard-builder.css +1 -1
- package/assets/i18n/ar.json +5 -0
- package/assets/i18n/en.json +5 -0
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-BAqiC_bq.mjs → masterteam-dashboard-builder-dashboard-dialog.component-hWlO4JZP.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-BAqiC_bq.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-hWlO4JZP.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-DJI6mi2b.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-ziYTIFgC.mjs} +468 -217
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-ziYTIFgC.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +4 -4
- package/types/masterteam-dashboard-builder.d.ts +88 -8
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-DJI6mi2b.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-ziYTIFgC.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.89",
|
|
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/
|
|
27
|
-
"@masterteam/
|
|
28
|
-
"@masterteam/
|
|
26
|
+
"@masterteam/timeline": "^0.0.23",
|
|
27
|
+
"@masterteam/components": "^0.0.287",
|
|
28
|
+
"@masterteam/icons": "^0.0.17"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"tslib": "^2.8.1",
|
|
@@ -3910,7 +3910,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3910
3910
|
readonly timelineResources: _angular_core.Signal<any[]>;
|
|
3911
3911
|
readonly timelineLabels: _angular_core.Signal<any[]>;
|
|
3912
3912
|
readonly timelineLegendIconType: _angular_core.Signal<string>;
|
|
3913
|
-
readonly timelineLegendPosition: _angular_core.Signal<"
|
|
3913
|
+
readonly timelineLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
3914
3914
|
/** Timeline legend visibility — honors the Style Studio "Show legend" toggle. */
|
|
3915
3915
|
readonly timelineLegendShow: _angular_core.Signal<boolean>;
|
|
3916
3916
|
readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
|
|
@@ -4038,7 +4038,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
4038
4038
|
readonly showCustomLegend: _angular_core.Signal<boolean>;
|
|
4039
4039
|
readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
|
|
4040
4040
|
/** Custom HTML legend placement from the configured legend position. */
|
|
4041
|
-
readonly customLegendPosition: _angular_core.Signal<"
|
|
4041
|
+
readonly customLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
4042
4042
|
constructor();
|
|
4043
4043
|
ngOnInit(): Promise<void>;
|
|
4044
4044
|
ngAfterViewInit(): void;
|
|
@@ -4729,7 +4729,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
4729
4729
|
* two never disagree about visibility.
|
|
4730
4730
|
*/
|
|
4731
4731
|
readonly hasLegend: _angular_core.Signal<boolean>;
|
|
4732
|
-
readonly legendPosition: _angular_core.Signal<"
|
|
4732
|
+
readonly legendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
4733
4733
|
readonly legendIconType: _angular_core.Signal<string>;
|
|
4734
4734
|
readonly isSideLegend: _angular_core.Signal<boolean>;
|
|
4735
4735
|
/** Processed table rows */
|
|
@@ -4885,6 +4885,9 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
4885
4885
|
* Handle row click
|
|
4886
4886
|
*/
|
|
4887
4887
|
onRowClick(row: any): void;
|
|
4888
|
+
/** Handle row double click — the Actions drawer offers it for tables too. */
|
|
4889
|
+
onRowDblClick(row: any): void;
|
|
4890
|
+
private emitRowAction;
|
|
4888
4891
|
/**
|
|
4889
4892
|
* Handle header click
|
|
4890
4893
|
*/
|
|
@@ -5204,6 +5207,12 @@ declare class BarChartHandler {
|
|
|
5204
5207
|
* Transforms bar chart data into entity preview format (flat array of properties)
|
|
5205
5208
|
*/
|
|
5206
5209
|
handleEntityPreviewWithFormula(dataResponse: any, config: ItemConfig): any;
|
|
5210
|
+
/**
|
|
5211
|
+
* New Style Studio rows carry the stable bar key, so labels survive data
|
|
5212
|
+
* sorting and a backend-provided label changing. Existing index-only rows
|
|
5213
|
+
* came from the legacy editor and keep their original positional behavior.
|
|
5214
|
+
*/
|
|
5215
|
+
private resolveOverrideLabel;
|
|
5207
5216
|
/**
|
|
5208
5217
|
* #1549 — a bar in the chart response is identified by `barType`, not `key`.
|
|
5209
5218
|
* `ChartTypesServiceV2.BuildSingleCategoryChart` emits
|
|
@@ -8550,8 +8559,9 @@ interface ActionFilter {
|
|
|
8550
8559
|
* - Trigger types (click, double-click)
|
|
8551
8560
|
* - A single unified "filters" section per action (replaces the old
|
|
8552
8561
|
* static/dynamic split). Each filter is propertyKey + a select-or-write value
|
|
8553
|
-
* field
|
|
8554
|
-
* is returned with the clicked
|
|
8562
|
+
* field. For charts, any property used is auto-added to the chart's
|
|
8563
|
+
* extraProperties so it is returned with the clicked point at runtime; a
|
|
8564
|
+
* table returns only its own properties, so the value field offers those.
|
|
8555
8565
|
*/
|
|
8556
8566
|
declare class ActionsSettings {
|
|
8557
8567
|
/** Current configuration */
|
|
@@ -8593,7 +8603,21 @@ declare class ActionsSettings {
|
|
|
8593
8603
|
* value field's "Properties" tab and kept in sync as filters add keys.
|
|
8594
8604
|
*/
|
|
8595
8605
|
readonly chartExtraProperties: _angular_core.Signal<string[]>;
|
|
8596
|
-
|
|
8606
|
+
/**
|
|
8607
|
+
* A table row carries no `extraValues` — only the table's own properties —
|
|
8608
|
+
* so for tables the value picker offers those properties, and the runtime
|
|
8609
|
+
* reads the clicked row's cell for them.
|
|
8610
|
+
*/
|
|
8611
|
+
readonly isTableRowSource: _angular_core.Signal<boolean>;
|
|
8612
|
+
/** Property keys each clicked row of this table carries (empty for charts). */
|
|
8613
|
+
readonly tableRowProperties: _angular_core.Signal<string[]>;
|
|
8614
|
+
/** Properties offered in the value field's "Properties" tab. */
|
|
8615
|
+
readonly valueTokenPropertyOptions: _angular_core.Signal<(string | IProperty)[]>;
|
|
8616
|
+
/**
|
|
8617
|
+
* The property a table filter's `{{extraValues.<key>…}}` token names when
|
|
8618
|
+
* the table does not return it — that value would be empty at runtime.
|
|
8619
|
+
*/
|
|
8620
|
+
missingRowProperty(filter: ActionFilter): string | null;
|
|
8597
8621
|
private normalizeExtraProperties;
|
|
8598
8622
|
/** Get current actions array safely */
|
|
8599
8623
|
private getCurrentActions;
|
|
@@ -8712,6 +8736,36 @@ interface DashboardDialogHeaderData {
|
|
|
8712
8736
|
interface LegendColorChange {
|
|
8713
8737
|
name: string;
|
|
8714
8738
|
color: string | null;
|
|
8739
|
+
/**
|
|
8740
|
+
* Identities this same entry may already be stored under. They are removed
|
|
8741
|
+
* before the new color is written, because the runtime resolver checks a
|
|
8742
|
+
* point's `name` before its `key` — a color left behind under the visible
|
|
8743
|
+
* label would otherwise win over the one saved against the stable key, and
|
|
8744
|
+
* the user's new pick would appear to do nothing.
|
|
8745
|
+
*/
|
|
8746
|
+
aliases?: readonly string[];
|
|
8747
|
+
}
|
|
8748
|
+
|
|
8749
|
+
/**
|
|
8750
|
+
* Typed display-config shapes for the Style Studio.
|
|
8751
|
+
*
|
|
8752
|
+
* The persisted chart config (`ClientConfig`) is historically an `any`-bag with
|
|
8753
|
+
* several overlapping style holders. These interfaces document the *real* shape
|
|
8754
|
+
* the renderer-handlers consume, so the schema-driven Style Studio (its composite
|
|
8755
|
+
* controls in particular) can read/write structured values with type safety.
|
|
8756
|
+
*
|
|
8757
|
+
* IMPORTANT: these types are descriptive, NOT a new persistence contract. They
|
|
8758
|
+
* intentionally mirror the existing persisted paths (including the historical
|
|
8759
|
+
* misspellings `pieConfigOverried` / `tableCoulmns` / `extraCoulmnFromLookup`,
|
|
8760
|
+
* which the runtime chart handlers still read). Renaming those data paths is a
|
|
8761
|
+
* separate, handler-inclusive migration and is deliberately out of scope here.
|
|
8762
|
+
*/
|
|
8763
|
+
|
|
8764
|
+
/** A single localized override label in `configAsType.overrideLabels[]`. */
|
|
8765
|
+
interface OverrideLabelRow {
|
|
8766
|
+
key?: string;
|
|
8767
|
+
en?: string;
|
|
8768
|
+
ar?: string;
|
|
8715
8769
|
}
|
|
8716
8770
|
|
|
8717
8771
|
/** A legend entry surfaced from the chart's live preview data. */
|
|
@@ -8720,6 +8774,13 @@ interface LegendOrderItem {
|
|
|
8720
8774
|
name: string;
|
|
8721
8775
|
color?: string;
|
|
8722
8776
|
}
|
|
8777
|
+
/** One localized label edit for a live chart entry. */
|
|
8778
|
+
interface LocalizedLegendLabelChange {
|
|
8779
|
+
index: number;
|
|
8780
|
+
key: string;
|
|
8781
|
+
language: 'en' | 'ar';
|
|
8782
|
+
value: string;
|
|
8783
|
+
}
|
|
8723
8784
|
/**
|
|
8724
8785
|
* Drag-to-reorder the chart legend. The available entries (`items`) come from
|
|
8725
8786
|
* the live preview data (already ordered by the saved override); dragging emits
|
|
@@ -8737,18 +8798,35 @@ interface LegendOrderItem {
|
|
|
8737
8798
|
declare class LegendOrderField {
|
|
8738
8799
|
readonly items: _angular_core.InputSignal<LegendOrderItem[]>;
|
|
8739
8800
|
readonly colorOverrides: _angular_core.InputSignal<Record<string, unknown>>;
|
|
8801
|
+
/** Existing chart label overrides, aligned by key (or legacy row position). */
|
|
8802
|
+
readonly localizedLabels: _angular_core.InputSignal<OverrideLabelRow[]>;
|
|
8740
8803
|
/** When false, render colors only — no drag handle, no order reset. */
|
|
8741
8804
|
readonly reorderable: _angular_core.InputSignal<boolean>;
|
|
8805
|
+
/** Enables English/Arabic label editors beside each color picker. */
|
|
8806
|
+
readonly showLocalizedLabels: _angular_core.InputSignal<boolean>;
|
|
8807
|
+
/** Persist color against the stable entry key, rather than its visible label. */
|
|
8808
|
+
readonly useItemKeyForColor: _angular_core.InputSignal<boolean>;
|
|
8742
8809
|
readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
|
|
8743
8810
|
readonly colorChange: _angular_core.OutputEmitterRef<LegendColorChange>;
|
|
8811
|
+
readonly localizedLabelChange: _angular_core.OutputEmitterRef<LocalizedLegendLabelChange>;
|
|
8744
8812
|
/** Working list is just the input — reorder mutates a copy and emits. */
|
|
8745
8813
|
readonly rows: _angular_core.Signal<LegendOrderItem[]>;
|
|
8746
8814
|
drop(event: CdkDragDrop<unknown>): void;
|
|
8747
8815
|
reset(): void;
|
|
8748
8816
|
colorFor(item: LegendOrderItem): string | null;
|
|
8749
8817
|
setColor(item: LegendOrderItem, color: unknown): void;
|
|
8818
|
+
/** The identity this control stores an entry's color under. */
|
|
8819
|
+
private colorIdentity;
|
|
8820
|
+
/**
|
|
8821
|
+
* Identities the same entry was stored under before this control switched to
|
|
8822
|
+
* the stable key. Only charts that made that switch need the migration, so
|
|
8823
|
+
* name-keyed controls return nothing and never delete a key-keyed row.
|
|
8824
|
+
*/
|
|
8825
|
+
private legacyColorIdentities;
|
|
8826
|
+
localizedLabel(item: LegendOrderItem, index: number, language: 'en' | 'ar'): string;
|
|
8827
|
+
setLocalizedLabel(item: LegendOrderItem, index: number, language: 'en' | 'ar', value: unknown): void;
|
|
8750
8828
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LegendOrderField, never>;
|
|
8751
|
-
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>;
|
|
8829
|
+
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>;
|
|
8752
8830
|
}
|
|
8753
8831
|
|
|
8754
8832
|
interface NavGroup {
|
|
@@ -8951,6 +9029,7 @@ declare class StyleField {
|
|
|
8951
9029
|
/** keyValueMap accepts either a map or a positional array (asArray mode). */
|
|
8952
9030
|
readMapOrArray(): Record<string, unknown> | unknown[];
|
|
8953
9031
|
readLegendColorOverrides(): Record<string, unknown>;
|
|
9032
|
+
readOverrideLabels(): OverrideLabelRow[];
|
|
8954
9033
|
readJson(): string;
|
|
8955
9034
|
emitValue(value: unknown): void;
|
|
8956
9035
|
/**
|
|
@@ -8960,6 +9039,7 @@ declare class StyleField {
|
|
|
8960
9039
|
*/
|
|
8961
9040
|
private seedTopBorderColor;
|
|
8962
9041
|
onLegendColorChange(change: LegendColorChange): void;
|
|
9042
|
+
onEntryLabelChange(change: LocalizedLegendLabelChange): void;
|
|
8963
9043
|
onJsonInput(raw: string): void;
|
|
8964
9044
|
private emitScalar;
|
|
8965
9045
|
private emitShadowPreset;
|
|
@@ -9124,4 +9204,4 @@ declare class GetChartActionsPipe implements PipeTransform {
|
|
|
9124
9204
|
declare function cloneDeep<T>(obj: T): T;
|
|
9125
9205
|
|
|
9126
9206
|
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 };
|
|
9127
|
-
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 };
|
|
9207
|
+
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 };
|