@masterteam/dashboard-builder 0.0.89 → 0.0.91

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.
@@ -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-ziYTIFgC.mjs';
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, bJ as CUSTOM_COLOR_OPTION, 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, b_ as ITEM_GUIDANCE_REGISTRY, aR as ItemCardMenuComponent, aU as ItemConfigPopoverComponent, aT as ItemContextToolbarComponent, c0 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, bM as applyControlPatchToPersisted, bN as applyControlPatchesToPersisted, bx as applyFilterChipsToPersisted, bu as applyLabelLegendFormatToPersisted, bs as applyLayoutToPersisted, bq as applyStyleToPersisted, bl as applyTitleToPersisted, R as axisFormatters, bv as behaviorToUi, bV as bindingKey, bz as buildAssembly, bU 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, bS 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, bW as getBinding, b1 as getCapabilityById, q as getColorFromConditions, bO as getControlSchema, a7 as getCurrencySuffix, bR 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, bX as listBindings, bY as listBindingsForChart, bP as listControlSchemaIds, bQ 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, bZ as readBoundValue, bK as readByPath, b2 as resolveCapability, bT as resolveDisplayFields, x as resolveEntityUserPhoto, I as resolveStatisticIconPlacement, b8 as selectorFromLegacy, bL 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-DIA-AjLs.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.89",
3
+ "version": "0.0.91",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -23,8 +23,8 @@
23
23
  "quill": "^2.0.3",
24
24
  "rxjs": "^7.8.2",
25
25
  "tailwindcss": "^4.2.2",
26
+ "@masterteam/components": "^0.0.294",
26
27
  "@masterteam/timeline": "^0.0.23",
27
- "@masterteam/components": "^0.0.287",
28
28
  "@masterteam/icons": "^0.0.17"
29
29
  },
30
30
  "dependencies": {
@@ -1310,6 +1310,12 @@ type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color
1310
1310
  type ControlSectionScope = 'simple' | 'advanced';
1311
1311
  /** Domain bucket — used by the popover to group controls and validation. */
1312
1312
  type ControlDomain = 'title' | 'header' | 'style' | 'layout' | 'labelLegendFormat' | 'behavior' | 'chart' | 'table' | 'card' | 'gauge' | 'timeline' | 'map' | 'entity' | 'levelCards' | 'splitter' | 'snapshot' | 'phaseGate' | 'repeater' | 'advanced';
1313
+ /**
1314
+ * Option value that puts a `select` carrying `allowCustomColor` into custom
1315
+ * mode. Never a real property key, so it cannot collide with one; the persisted
1316
+ * value is the chosen colour itself, never this sentinel.
1317
+ */
1318
+ declare const CUSTOM_COLOR_OPTION = "__mt_custom_color__";
1313
1319
  /** A select option. Static list (or capability-derived if dynamic). */
1314
1320
  interface ControlOption {
1315
1321
  label: string;
@@ -1409,6 +1415,17 @@ interface ControlField {
1409
1415
  * (e.g. `propsConfigAsIndex`) instead of a `{ key: value }` map.
1410
1416
  */
1411
1417
  asArray?: boolean;
1418
+ /**
1419
+ * For a `select` sub-field of a `keyValueMap`: offer a literal colour
1420
+ * alongside the listed options. Selecting `CUSTOM_COLOR_OPTION` swaps in a
1421
+ * colour picker whose value is persisted to this same path — which is what
1422
+ * the runtime's colour resolution already accepts (`isLiteralColorValue`).
1423
+ *
1424
+ * The field's option list must contain the `CUSTOM_COLOR_OPTION` entry; the
1425
+ * editor does not append one, so the label stays translatable from the
1426
+ * schema like every other option.
1427
+ */
1428
+ allowCustomColor?: boolean;
1412
1429
  }
1413
1430
  /** A logical group of fields in the popover. */
1414
1431
  interface ControlSection {
@@ -1484,22 +1501,6 @@ declare function setByPath(cfg: PersistedItemConfig, path: string, value: unknow
1484
1501
  declare function applyControlPatchToPersisted(cfg: PersistedItemConfig, patch: ControlPatch): PersistedItemConfig;
1485
1502
  declare function applyControlPatchesToPersisted(cfg: PersistedItemConfig, patches: ControlPatch[]): PersistedItemConfig;
1486
1503
 
1487
- /**
1488
- * Pass 4 - Control Schema Registry
1489
- *
1490
- * One ControlSchema per supported chart/item type. Sections are grouped by
1491
- * domain so the popover can render compact, focused control surfaces.
1492
- *
1493
- * Many charts share common controls (title, header, card style, label/legend,
1494
- * format, palette). Those live in COMMON_SECTION_FACTORIES and are composed
1495
- * into per-chart schemas, then per-chart schemas add chart-specific sections
1496
- * (bar settings, pie label center, ring gauge config, table format, etc.).
1497
- *
1498
- * IMPORTANT: paths point to the same persisted locations the renderer-handlers
1499
- * already consume. Adding a control here makes the value editable end-to-end
1500
- * without changing the renderer or the persistence pipeline.
1501
- */
1502
-
1503
1504
  declare function getControlSchema(capabilityId: string | null | undefined): ControlSchema;
1504
1505
  declare function listControlSchemaIds(): string[];
1505
1506
  declare function listControlSchemas(): ControlSchema[];
@@ -2619,6 +2620,14 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2619
2620
  */
2620
2621
  private persistPageFilters;
2621
2622
  addOrEditPage(page?: DashboardPage): void;
2623
+ /**
2624
+ * Merge page settings edited in the drawer into the live standalone document
2625
+ * and run the host's save path.
2626
+ *
2627
+ * The drawer does not edit filters, so the builder's own `filtersConfig` — not
2628
+ * the empty default the drawer carries — stays authoritative.
2629
+ */
2630
+ private applyPageSettings;
2622
2631
  deleteReport(): void;
2623
2632
  onItemResize(item: GridsterItem, itemComponent: any): void;
2624
2633
  /**
@@ -3910,7 +3919,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
3910
3919
  readonly timelineResources: _angular_core.Signal<any[]>;
3911
3920
  readonly timelineLabels: _angular_core.Signal<any[]>;
3912
3921
  readonly timelineLegendIconType: _angular_core.Signal<string>;
3913
- readonly timelineLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
3922
+ readonly timelineLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
3914
3923
  /** Timeline legend visibility — honors the Style Studio "Show legend" toggle. */
3915
3924
  readonly timelineLegendShow: _angular_core.Signal<boolean>;
3916
3925
  readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
@@ -4038,7 +4047,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
4038
4047
  readonly showCustomLegend: _angular_core.Signal<boolean>;
4039
4048
  readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
4040
4049
  /** Custom HTML legend placement from the configured legend position. */
4041
- readonly customLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
4050
+ readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
4042
4051
  constructor();
4043
4052
  ngOnInit(): Promise<void>;
4044
4053
  ngAfterViewInit(): void;
@@ -4729,7 +4738,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4729
4738
  * two never disagree about visibility.
4730
4739
  */
4731
4740
  readonly hasLegend: _angular_core.Signal<boolean>;
4732
- readonly legendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
4741
+ readonly legendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
4733
4742
  readonly legendIconType: _angular_core.Signal<string>;
4734
4743
  readonly isSideLegend: _angular_core.Signal<boolean>;
4735
4744
  /** Processed table rows */
@@ -6609,6 +6618,20 @@ declare class ManagePages implements OnInit {
6609
6618
  readonly dataEdit: _angular_core.InputSignal<Report | null>;
6610
6619
  /** Server-backed builders can delete persisted dashboards. */
6611
6620
  readonly allowDelete: _angular_core.InputSignal<boolean>;
6621
+ /**
6622
+ * Whether this drawer persists the page itself through the reports API.
6623
+ *
6624
+ * A standalone builder has no `reports/{id}` row behind it — its page id is
6625
+ * whatever the host document is keyed by — so saving here would overwrite an
6626
+ * unrelated report. Those hosts pass `false`: Save then closes with the
6627
+ * edited page and the host persists it through its own endpoint.
6628
+ */
6629
+ readonly persist: _angular_core.InputSignal<boolean>;
6630
+ /**
6631
+ * Whether to offer the "Publish" (`showInMenu`) toggle. It only places the
6632
+ * report in the reports menu, so it means nothing to a host-persisted page.
6633
+ */
6634
+ readonly showPublish: _angular_core.InputSignal<boolean>;
6612
6635
  /** Report form data */
6613
6636
  readonly report: _angular_core.WritableSignal<{
6614
6637
  id: number | null;
@@ -6637,7 +6660,7 @@ declare class ManagePages implements OnInit {
6637
6660
  close(): void;
6638
6661
  private clear;
6639
6662
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManagePages, never>;
6640
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManagePages, "mt-manage-pages", never, { "dataEdit": { "alias": "dataEdit"; "required": false; "isSignal": true; }; "allowDelete": { "alias": "allowDelete"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6663
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManagePages, "mt-manage-pages", never, { "dataEdit": { "alias": "dataEdit"; "required": false; "isSignal": true; }; "allowDelete": { "alias": "allowDelete"; "required": false; "isSignal": true; }; "persist": { "alias": "persist"; "required": false; "isSignal": true; }; "showPublish": { "alias": "showPublish"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6641
6664
  }
6642
6665
 
6643
6666
  /**
@@ -9017,6 +9040,17 @@ declare class StyleField {
9017
9040
  options(): ControlOption[];
9018
9041
  /** select uses a search box once the list is long enough to need one. */
9019
9042
  get useFilter(): boolean;
9043
+ /**
9044
+ * Sub-fields with their dynamic `optionsFrom` collapsed into a static
9045
+ * `options` list. The nested editors (keyValueMap / arrayBuilder) render a
9046
+ * row per key and only read `field.options`, so a schema sub-field that
9047
+ * derives its options from the config — the per-property "Color source" —
9048
+ * would otherwise render an empty select. Computed, so the resolved arrays
9049
+ * keep a stable identity between config changes.
9050
+ */
9051
+ private resolveNestedOptions;
9052
+ readonly mapValueFields: _angular_core.Signal<ControlField[]>;
9053
+ readonly arrayItemFields: _angular_core.Signal<ControlField[]>;
9020
9054
  /** Numeric bounds fall back to mt-number-field's own permissive defaults. */
9021
9055
  get numberMin(): number;
9022
9056
  get numberMax(): number;
@@ -9136,6 +9170,15 @@ interface MapRow {
9136
9170
  key: string;
9137
9171
  label: string;
9138
9172
  group: FormGroup;
9173
+ /**
9174
+ * Colour pickers for this row's `allowCustomColor` sub-fields, keyed by
9175
+ * sub-field key. Deliberately OUTSIDE `group`: `mt-color-picker-field` adds a
9176
+ * hex-pattern validator to whatever control it is bound to, and that
9177
+ * validator outlives the picker — binding it to the shared control would
9178
+ * leave the field marked invalid the moment the user switched back to a
9179
+ * property key. The picker writes through to the real control instead.
9180
+ */
9181
+ custom: Record<string, FormControl>;
9139
9182
  }
9140
9183
  /**
9141
9184
  * Per-key value editor for the chart's selected properties. Two storage modes:
@@ -9163,9 +9206,45 @@ declare class KeyValueMapField {
9163
9206
  /** Subscriptions for the current row set; torn down on every rebuild. */
9164
9207
  private rowSubs;
9165
9208
  private syncing;
9209
+ /** options array -> `<fieldKey>|<value>` -> that list plus the stray value. */
9210
+ private readonly extendedOptions;
9211
+ /** `<rowKey>|<fieldKey>` put into custom-colour mode before a colour exists. */
9212
+ private readonly customMode;
9166
9213
  constructor();
9167
- options(field: ControlField): ControlOption[];
9214
+ /**
9215
+ * Labelled inputs and toggles are laid out separately: a toggle renders its
9216
+ * label beside the control, so mixing it into the labelled input grid leaves
9217
+ * it vertically misaligned with every neighbour.
9218
+ */
9219
+ readonly inputFields: _angular_core.Signal<ControlField[]>;
9220
+ readonly toggleFields: _angular_core.Signal<ControlField[]>;
9221
+ /**
9222
+ * A sub-field's options, plus the row's own persisted value when it is not
9223
+ * one of them. `colorAsProperty` also accepts a literal color (`#fff`,
9224
+ * `rgb(…)`, `var(…)`) that no property list can contain — without this the
9225
+ * select would render blank over a value that is still applied.
9226
+ *
9227
+ * Memoized per options array so the returned reference stays stable across
9228
+ * change detection (a fresh array each read re-sets the child's input).
9229
+ */
9230
+ options(row: MapRow, field: ControlField): ControlOption[];
9231
+ /** A search box, once the list is long enough to need one. */
9232
+ useFilter(row: MapRow, field: ControlField): boolean;
9168
9233
  control(row: MapRow, key: string): FormControl;
9234
+ /**
9235
+ * What the select shows. The persisted value is the colour itself in custom
9236
+ * mode, so the sentinel is derived for display rather than stored.
9237
+ */
9238
+ selectValue(row: MapRow, field: ControlField): unknown;
9239
+ /**
9240
+ * Custom mode is either the persisted value already being a literal colour,
9241
+ * or the user having just chosen "Custom color" and not yet picked one —
9242
+ * which is why the explicit set is needed as well as the value check.
9243
+ */
9244
+ isCustomColor(row: MapRow, field: ControlField): boolean;
9245
+ onSourceChange(row: MapRow, field: ControlField, next: unknown): void;
9246
+ private createCustomColorControls;
9247
+ private modeKey;
9169
9248
  private existingFor;
9170
9249
  private clean;
9171
9250
  private emit;
@@ -9203,5 +9282,5 @@ declare class GetChartActionsPipe implements PipeTransform {
9203
9282
  */
9204
9283
  declare function cloneDeep<T>(obj: T): T;
9205
9284
 
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 };
9285
+ export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CUSTOM_COLOR_OPTION, 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 };
9207
9286
  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 };