react-semaphor 0.1.561 → 0.1.563

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.
Files changed (138) hide show
  1. package/dist/analytics-protocol/index.js +452 -429
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +9 -9
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{analytics-base-schemas-CB3oFAXk.js → analytics-base-schemas-BaIQrEzX.js} +139 -134
  7. package/dist/chunks/{assistant-chat-DiVHY3Hw.js → assistant-chat-iIp02_77.js} +104 -104
  8. package/dist/chunks/{bookmark-impact-CR09dpkn.js → bookmark-impact-D4Kl4amw.js} +2 -2
  9. package/dist/chunks/{bookmark-state-BusLpkb7.js → bookmark-state-CWeoGbrx.js} +25 -25
  10. package/dist/chunks/{braces-u8VorWJc.js → braces-DzgoQC64.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-DDsIWJYT.js → comparison-window-caption-D1EUXzaR.js} +562 -437
  12. package/dist/chunks/{context-TUjw9eqr.js → context-R31TSL5V.js} +1 -1
  13. package/dist/chunks/{dashboard-BRdZBPqr.js → dashboard-CmqeP3QZ.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-CgvTLndW.js → dashboard-briefing-launcher-TYlSW77S.js} +155 -154
  15. package/dist/chunks/{dashboard-controls-B4vfSzTF.js → dashboard-controls-B253nJS-.js} +970 -968
  16. package/dist/chunks/{dashboard-json-Y3MF59g7.js → dashboard-json-osQuinUZ.js} +5 -5
  17. package/dist/chunks/dates-DFY7Gfss.js +91 -0
  18. package/dist/chunks/{edit-dashboard-visual-DwjZcxj-.js → edit-dashboard-visual-CMar-NhA.js} +4636 -4681
  19. package/dist/chunks/{filter-reach-copy-bijwf_-b.js → filter-reach-copy-CvV7W5dd.js} +1470 -1101
  20. package/dist/chunks/{filter-value-text-DFnhwuEW.js → filter-value-text-CPwFkrMz.js} +11 -10
  21. package/dist/chunks/{global-date-filter-utils-BXgCpvQM.js → global-date-filter-utils-N1kcsOFE.js} +8997 -7417
  22. package/dist/chunks/{index-ClwbY3BL.js → index-CNGkfUp4.js} +91 -85
  23. package/dist/chunks/{layout-grid-CtvCBfOm.js → layout-grid-BM65viQh.js} +1 -1
  24. package/dist/chunks/{list-filter-BklYgciR.js → list-filter-BoeLBfL3.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-pU51-JmY.js → matrix-analytical-definition-hEucouWM.js} +4 -4
  26. package/dist/chunks/{matrix-card-CUorIB7Q.js → matrix-card-CCh9JjP1.js} +3 -3
  27. package/dist/chunks/{matrix-member-presentation-Df5UgCGN.js → matrix-member-presentation-DsAUbuoL.js} +1 -1
  28. package/dist/chunks/{matrix-operation-contract-BSiGEXVC.js → matrix-operation-contract-DsLdFdSa.js} +339 -330
  29. package/dist/chunks/{metric-comparison-95aC0uEO.js → metric-comparison-Bnso1cm1.js} +2 -2
  30. package/dist/chunks/{model-change-B5wQhg5G.js → model-change-T1cRkh3m.js} +1 -1
  31. package/dist/chunks/{palette-DTnMhipt.js → palette-p1XSJFgB.js} +1 -1
  32. package/dist/chunks/{pivot-result-contract-expectations-Bo-86vwS.js → pivot-result-contract-expectations-B53jqszr.js} +5 -5
  33. package/dist/chunks/{pivot-result-identity-olvXJoB9.js → pivot-result-identity-Dq5jm-EC.js} +1 -1
  34. package/dist/chunks/{zoned-wall-clock-CGLVI40Q.js → raw-temporal-value-Bqz8wc7L.js} +97 -46
  35. package/dist/chunks/{report-preferences-dialog-C2YUIwKG.js → report-preferences-dialog-l54wJyYE.js} +68 -63
  36. package/dist/chunks/{report-runtime-context-DoIUr3MP.js → report-runtime-context-BITkNSDa.js} +2 -2
  37. package/dist/chunks/{resolve-dashboard-input-context-q_iiNXE1.js → resolve-dashboard-input-context-DaDrZGuA.js} +3455 -1744
  38. package/dist/chunks/{save-DH4RyrnG.js → save-CHV1B1fL.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-8jqfI7hI.js → saved-dashboard-context-DFYBrE6O.js} +94 -95
  40. package/dist/chunks/{selection-filter-compiler-BKXmyLrS.js → selection-filter-compiler-CUDRnUxc.js} +19 -18
  41. package/dist/chunks/{selection-reducer-CV7K4FI6.js → selection-reducer-Bz5aywT4.js} +1 -1
  42. package/dist/chunks/{semaphor-ready-indicator-E2XWyibu.js → semaphor-ready-indicator-C3EQEiD9.js} +36434 -37732
  43. package/dist/chunks/{shelf-drop-preview-context-C29EUzDp.js → shelf-drop-preview-context-BODiBlqT.js} +81 -82
  44. package/dist/chunks/{source-entity-resolution-BXI3nQ5Z.js → source-entity-resolution-DdDVXFB8.js} +6 -6
  45. package/dist/chunks/{switch-balDSHc7.js → switch-BW4yXSYs.js} +3 -3
  46. package/dist/chunks/{table-export-sheet-CK8tvh4d.js → table-export-sheet-bSXxGn-v.js} +1 -1
  47. package/dist/chunks/{temporal-input-presentation-B77JsAzU.js → temporal-input-presentation-sk9gqLi6.js} +699 -741
  48. package/dist/chunks/{token-types-DhYH5YKb.js → token-types-BUK06hU2.js} +1 -1
  49. package/dist/chunks/{upload-Ufj8vjyn.js → upload-BnmuyPqW.js} +1 -1
  50. package/dist/chunks/{use-create-flow-overlay-state-9WsnzEO5.js → use-create-flow-overlay-state-BXY8-Cyz.js} +6 -6
  51. package/dist/chunks/{validators-BtaCFIEB.js → validators-BIM0FE31.js} +764 -885
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2278 -3030
  54. package/dist/data-app-sdk/index.js +43 -43
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +22 -22
  57. package/dist/format-utils/index.js +215 -209
  58. package/dist/index.js +225 -224
  59. package/dist/report-runtime-context/index.js +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  63. package/dist/types/components/dashboard/dashboard-create-dialog.d.ts +23 -0
  64. package/dist/types/components/index.d.ts +1 -2
  65. package/dist/types/components/surfboard/filter/types.d.ts +3 -1
  66. package/dist/types/index.js +5 -5
  67. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +59 -2
  68. package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +5 -0
  69. package/dist/types/lib/interactions/get-click-context-from-table.d.ts +45 -0
  70. package/dist/types/lib/print/print-inputs.d.ts +2 -1
  71. package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -0
  72. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -0
  73. package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
  74. package/dist/types/lib/types/common-types.d.ts +6 -0
  75. package/dist/types/lib/types/explorer-types.d.ts +7 -1
  76. package/dist/types/lib/types/interaction-types.d.ts +3 -1
  77. package/dist/types/lib/types/token-types.d.ts +0 -1
  78. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +3 -1
  79. package/dist/types/shared/analytics-protocol/contracts.d.ts +9 -40
  80. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +12 -2
  81. package/dist/types/shared/analytics-protocol/validators.d.ts +1 -2
  82. package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
  83. package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +7 -1
  84. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +24 -0
  85. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  86. package/dist/types/shared/dashboard-authoring/card-settings/column-polarity-write.d.ts +5 -0
  87. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +4 -2
  88. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +15 -0
  89. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +12 -1
  90. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -3
  91. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +3230 -4658
  92. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +24 -2
  93. package/dist/types/shared/dashboard-authoring/changes/field-ref.d.ts +91 -0
  94. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +7 -0
  95. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +27 -1
  96. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-create.d.ts +26 -0
  97. package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +2 -1
  98. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  99. package/dist/types/shared/dashboard-authoring/detail-date-presentation.d.ts +9 -0
  100. package/dist/types/shared/dashboard-authoring/index.d.ts +8 -6
  101. package/dist/types/shared/dashboard-authoring/measure-calculations/apply.d.ts +8 -0
  102. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +16 -0
  103. package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +41 -0
  104. package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +17 -0
  105. package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +63 -0
  106. package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +16 -0
  107. package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +79 -0
  108. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +934 -0
  109. package/dist/types/shared/dashboard-authoring/measure-calculations/sentences.d.ts +4 -0
  110. package/dist/types/shared/dashboard-authoring/measure-calculations/set.d.ts +11 -0
  111. package/dist/types/shared/dashboard-authoring/measure-calculations/transform.d.ts +63 -0
  112. package/dist/types/shared/dashboard-authoring/measure-calculations/window-transforms.d.ts +60 -0
  113. package/dist/types/shared/dashboard-authoring/new-card.d.ts +12 -1
  114. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +2 -1
  115. package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +46 -0
  116. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +52 -2
  117. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +13 -1
  118. package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +58 -0
  119. package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +55 -0
  120. package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +18 -0
  121. package/dist/types/shared/format-utils/document-print.d.ts +82 -0
  122. package/dist/types/shared/format-utils/index.d.ts +1 -0
  123. package/dist/types/shared/format-utils/raw-temporal.d.ts +2 -7
  124. package/dist/types/shared/temporal/index.d.ts +1 -0
  125. package/dist/types/shared/temporal/raw-temporal-equality.d.ts +19 -0
  126. package/dist/types/shared/temporal/raw-temporal-value.d.ts +29 -0
  127. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +6 -0
  128. package/package.json +1 -1
  129. package/dist/chunks/custom-visual-inputs-DfolidZ9.js +0 -292
  130. package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +0 -1718
  131. package/dist/types/components/dashboard/ai-dashboard-create-dialog.d.ts +0 -38
  132. package/dist/types/components/dashboard/dashboard-create-template.d.ts +0 -10
  133. package/dist/types/lib/hooks/use-dashboard-authoring.d.ts +0 -49
  134. package/dist/types/shared/dashboard-authoring/artifact-compiler.d.ts +0 -6
  135. package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -106
  136. package/dist/types/shared/dashboard-authoring/protocol-adapter.d.ts +0 -7
  137. package/dist/types/shared/dashboard-authoring/source-matching.d.ts +0 -34
  138. package/dist/types/shared/dashboard-authoring/validators.d.ts +0 -2
@@ -1,6 +1,8 @@
1
1
  import { TChartType } from '../../../lib/charts/types.js';
2
2
  import { AxisConfig, TCard, TCardPreferences, TLegendOptions } from '../../../lib/types/common-types.js';
3
3
  import { SemaphorValueFormat } from '../../analytics-protocol/contracts.js';
4
+ import { ComparisonPresentationSpec } from '../../analytics-protocol/metric-comparison.js';
5
+ import { ResolvedComparisonDisplay } from './resolved.js';
4
6
  /** A stored chart variant: its type, and the axis it draws along when that isn't the type's own (SPEC 4.6). */
5
7
  export type CardVariant = {
6
8
  type: TChartType;
@@ -50,3 +52,25 @@ export declare function withAxisScale(config: AxisConfig | undefined, scale: {
50
52
  }): AxisConfig;
51
53
  /** One stored axis config replaced, as the axis panel writes it. */
52
54
  export declare function writeAxisConfig(preferences: TCardPreferences | undefined, key: AxisConfigKey | 'secondaryYAxisConfig', config: AxisConfig): TCardPreferences;
55
+ /**
56
+ * The card's comparison display (reports by conversation RC-D4), merged onto
57
+ * `preferences.comparisonPresentation` as the comparison panel writes it: only
58
+ * the stated fields change; a null precision removes the stored one; an
59
+ * emptied presentation is removed (SPEC S-6). The panel's indicator, colors,
60
+ * labels and position are kept as they are.
61
+ */
62
+ export declare function writeComparisonDisplay(preferences: TCardPreferences | undefined, display: ResolvedComparisonDisplay): TCardPreferences;
63
+ /**
64
+ * An edit of the comparison panel's fields, as the comparison panel and the
65
+ * table's settings make it: what a word states (show, mode, precision)
66
+ * through `writeComparisonDisplay`, so the editor and the MCP write the same
67
+ * JSON (RC-INV-2); the indicator, colors, labels and position merged as they
68
+ * are, since no word states them. A precision set to undefined is cleared.
69
+ */
70
+ export declare function writeComparisonPresentation(preferences: TCardPreferences | undefined, updates: Partial<ComparisonPresentationSpec>): TCardPreferences;
71
+ /**
72
+ * Whether measures without a comparison of their own follow the dashboard's
73
+ * (RC-D16), as the panel's "Inherit Global Date comparison" switch writes it:
74
+ * `false` stored, `true` the key removed.
75
+ */
76
+ export declare function writeInheritComparison(preferences: TCardPreferences | undefined, inherit: boolean): TCardPreferences;
@@ -1,6 +1,6 @@
1
1
  import { TCard } from '../../../lib/types/common-types.js';
2
2
  import { CardType } from '../changes/card-types.js';
3
- export type SettingName = 'columns.label' | 'columns.format' | 'columns.hidden' | 'columns.width' | 'orientation' | 'stack' | 'donut' | 'totals' | 'dataLabels' | 'legend' | 'axes' | 'highlights';
3
+ export type SettingName = 'columns.label' | 'columns.format' | 'columns.hidden' | 'columns.width' | 'orientation' | 'stack' | 'donut' | 'totals' | 'dataLabels' | 'legend' | 'axes' | 'highlights' | 'columns.polarity' | 'comparisonDisplay' | 'inheritComparison';
4
4
  export declare const SETTINGS_BY_KIND: Readonly<Record<CardType, readonly SettingName[]>>;
5
5
  export type CardSettingsKind = {
6
6
  type: CardType;
@@ -0,0 +1,5 @@
1
+ import { TCard } from '../../../lib/types/common-types.js';
2
+ import { CardColumnRef } from '../conditional-formatting/types.js';
3
+ import { Polarity } from './inputs.js';
4
+ /** The card with the column's polarity set, or removed when undefined; the card itself when it has no such column. */
5
+ export declare function writeColumnPolarity(card: TCard, column: CardColumnRef, polarity: Polarity | undefined): TCard;
@@ -9,7 +9,9 @@ export { applyCardSettings, type AppliedCardSettings, type DroppedSetting } from
9
9
  export { carryColumnSettings } from './carry-column-settings.js';
10
10
  export { confirmClassFor, type ConfirmClass } from './confirm-class.js';
11
11
  export { writeColumnFormat, withFormatOverride } from './column-format-write.js';
12
- export type { ResolvedCardSettings, ResolvedColumnSettings } from './resolved.js';
12
+ export { writeColumnPolarity } from './column-polarity-write.js';
13
+ export { writeComparisonDisplay, writeComparisonPresentation, writeInheritComparison } from './card-display-write.js';
14
+ export type { ResolvedCardSettings, ResolvedColumnSettings, ResolvedComparisonDisplay } from './resolved.js';
13
15
  export { SETTINGS_BY_KIND, cardSettingsKind, type CardSettingsKind, type SettingName } from './card-kinds.js';
14
- export type { AxisInput, CardSettingsInput, ColumnSettingsInput, DashboardUpdateChange, FormatInput, FormatPatch, HighlightAddChange, HighlightColor, HighlightCondition, HighlightRemoveChange, HighlightStyleInput, LegendPosition, } from './inputs.js';
16
+ export type { AxisInput, CardSettingsInput, ColumnSettingsInput, ComparisonDisplayInput, DashboardUpdateChange, FormatInput, FormatPatch, HighlightAddChange, HighlightColor, HighlightCondition, HighlightRemoveChange, HighlightStyleInput, LegendPosition, Polarity, } from './inputs.js';
15
17
  export type { CardSettingsView, ColumnSettingsRole, ColumnSettingsView, HighlightView } from './views.js';
@@ -1,3 +1,4 @@
1
+ import { MetricComparisonPolarity } from '../../analytics-protocol/metric-comparison.js';
1
2
  import { SemaphorDateValueFormat, SemaphorDurationValueFormat, SemaphorNumericValueFormat, SemaphorValueFormat, TemporalBucketFormat } from '../../analytics-protocol/contracts.js';
2
3
  /**
3
4
  * CA-D18: a whole stored format (it has `type`), or a patch without `type`,
@@ -7,6 +8,8 @@ export type FormatInput = SemaphorValueFormat | FormatPatch;
7
8
  export type FormatPatch = {
8
9
  type?: never;
9
10
  } & Partial<Omit<SemaphorNumericValueFormat, 'type'> & Omit<SemaphorDateValueFormat, 'type'> & Omit<SemaphorDurationValueFormat, 'type'> & Omit<TemporalBucketFormat, 'type'>>;
11
+ /** Which way is good for a measure (reports by conversation RC-D3): the stored values and the model's word. */
12
+ export type Polarity = MetricComparisonPolarity;
10
13
  export type ColumnSettingsInput = {
11
14
  /** The header shown. Null returns it to the model's label. */
12
15
  label?: string | null;
@@ -16,6 +19,8 @@ export type ColumnSettingsInput = {
16
19
  width?: number | null;
17
20
  /** Null removes the card's override, so the column follows the model. */
18
21
  format?: FormatInput | null;
22
+ /** The card's own polarity; null removes it. Refused where the model sets a different one (RC-D3). */
23
+ polarity?: Polarity | null;
19
24
  /** Read-only facts from the outline, accepted back unchanged (CA-INV-1). */
20
25
  field?: string;
21
26
  role?: string;
@@ -27,6 +32,13 @@ export type AxisInput = {
27
32
  max?: number | null;
28
33
  };
29
34
  export type LegendPosition = 'top' | 'bottom' | 'left' | 'right';
35
+ /** How a card shows its comparisons (RC-D4): a patch of the card's one comparison display. */
36
+ export type ComparisonDisplayInput = {
37
+ show?: boolean;
38
+ mode?: 'difference' | 'percent_change' | 'both' | 'ratio';
39
+ /** Decimals of a percent change or ratio, an integer 0 to 6; null returns to the surface's default. */
40
+ precision?: number | null;
41
+ };
30
42
  /** Optional fields on `card.add` and `card.update`, beside `type`, `title`, `description`, `query` and `matrix`. */
31
43
  export type CardSettingsInput = {
32
44
  /** Keyed by column name (SPEC 3.3). */
@@ -50,6 +62,9 @@ export type CardSettingsInput = {
50
62
  x?: AxisInput;
51
63
  y?: AxisInput;
52
64
  };
65
+ comparisonDisplay?: ComparisonDisplayInput;
66
+ /** false: measures without a comparison of their own ignore the dashboard's; true removes the stored opt-out (RC-D16). */
67
+ inheritComparison?: boolean;
53
68
  };
54
69
  /** The filter operators (CA-D11): formatting and filtering share one condition language. */
55
70
  export type HighlightCondition = {
@@ -1,13 +1,21 @@
1
1
  import { SemaphorValueFormat } from '../../analytics-protocol/contracts.js';
2
2
  import { CardColumnRef, ConditionalRule } from '../conditional-formatting/types.js';
3
3
  import { AxisConfigKey, CardVariant } from './card-display-write.js';
4
- import { LegendPosition } from './inputs.js';
4
+ import { ComparisonDisplayInput, LegendPosition, Polarity } from './inputs.js';
5
5
  export type ResolvedColumnSettings = {
6
6
  column: CardColumnRef;
7
7
  hidden?: boolean;
8
8
  width?: number | null;
9
9
  /** Whole and validated; null removes the override. */
10
10
  format?: SemaphorValueFormat | null;
11
+ /** The card's own polarity; null removes it (RC-D3). */
12
+ polarity?: Polarity | null;
13
+ };
14
+ /** Only the comparison display fields that change; precision null removes the stored precision (RC-D4). */
15
+ export type ResolvedComparisonDisplay = {
16
+ show?: boolean;
17
+ mode?: ComparisonDisplayInput['mode'];
18
+ precision?: number | null;
11
19
  };
12
20
  export type ResolvedAxis = {
13
21
  title?: string | null;
@@ -37,4 +45,7 @@ export type ResolvedCardSettings = {
37
45
  add?: ConditionalRule[];
38
46
  remove?: string[];
39
47
  };
48
+ comparisonDisplay?: ResolvedComparisonDisplay;
49
+ /** Whether measures without a comparison of their own follow the dashboard's (RC-D16). */
50
+ inheritComparison?: boolean;
40
51
  };
@@ -1,5 +1,5 @@
1
1
  import { SemaphorValueFormat } from '../../analytics-protocol/contracts.js';
2
- import { CardSettingsInput, HighlightStyleInput } from './inputs.js';
2
+ import { CardSettingsInput, HighlightStyleInput, Polarity } from './inputs.js';
3
3
  export type ColumnSettingsRole = 'measure' | 'dimension' | 'detail' | 'result' | 'value';
4
4
  export type ColumnSettingsView = {
5
5
  /** The column's field; absent for SQL result columns. Read-only. */
@@ -10,8 +10,10 @@ export type ColumnSettingsView = {
10
10
  width?: number;
11
11
  /** The card's override only; absent when the column follows the model. */
12
12
  format?: SemaphorValueFormat;
13
- /** What the column takes from the model (CA-D5). Read-only. */
14
- inherits?: Array<'label' | 'format'>;
13
+ /** Shown when the card or the model sets it; absent means higher is better (RC-D3). */
14
+ polarity?: Polarity;
15
+ /** What the column takes from the model (CA-D5); 'polarity' when the model sets it. Read-only. */
16
+ inherits?: Array<'label' | 'format' | 'polarity'>;
15
17
  };
16
18
  export type HighlightView = {
17
19
  ruleId: string;