react-semaphor 0.1.559 → 0.1.561
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/dist/analytics-protocol/index.js +389 -378
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/analytics-base-schemas-CB3oFAXk.js +658 -0
- package/dist/chunks/{assistant-chat-B_4bVE6I.js → assistant-chat-DiVHY3Hw.js} +209 -211
- package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
- package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
- package/dist/chunks/{braces-Rdxa3H-s.js → braces-u8VorWJc.js} +1 -1
- package/dist/chunks/{comparison-window-caption-CKzQ5LcF.js → comparison-window-caption-DDsIWJYT.js} +201 -201
- package/dist/chunks/{context-DVy4HOU0.js → context-TUjw9eqr.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-zVa9wX_o.js → custom-visual-inputs-DfolidZ9.js} +1 -1
- package/dist/chunks/{dashboard-BziwOVpZ.js → dashboard-BRdZBPqr.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CbeNR-YI.js → dashboard-briefing-launcher-CgvTLndW.js} +1163 -1178
- package/dist/chunks/{dashboard-controls-RD6UJs1r.js → dashboard-controls-B4vfSzTF.js} +877 -941
- package/dist/chunks/{dashboard-json-DGpv17vL.js → dashboard-json-Y3MF59g7.js} +5 -5
- package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
- package/dist/chunks/{edit-dashboard-visual-AQ2pQkFp.js → edit-dashboard-visual-DwjZcxj-.js} +9080 -9354
- package/dist/chunks/filter-reach-copy-bijwf_-b.js +3596 -0
- package/dist/chunks/{filter-value-text-B4l-xqJT.js → filter-value-text-DFnhwuEW.js} +3 -3
- package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
- package/dist/chunks/{index-B1Xr7W24.js → index-ClwbY3BL.js} +648 -674
- package/dist/chunks/{layout-grid-Bbz3zKif.js → layout-grid-CtvCBfOm.js} +1 -1
- package/dist/chunks/{list-filter-3sbH0Uy1.js → list-filter-BklYgciR.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CEe3PGEo.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
- package/dist/chunks/{matrix-card-BRNGb1C4.js → matrix-card-CUorIB7Q.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-CEegvTqg.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-COxrfQTS.js → matrix-operation-contract-BSiGEXVC.js} +221 -214
- package/dist/chunks/{metric-comparison-DQx-uX__.js → metric-comparison-95aC0uEO.js} +6 -6
- package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-B5wQhg5G.js} +1 -1
- package/dist/chunks/{palette-DMJtp3Vn.js → palette-DTnMhipt.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
- package/dist/chunks/{pivot-result-identity-CAj8SiRL.js → pivot-result-identity-olvXJoB9.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-0sc8B1lh.js → report-preferences-dialog-C2YUIwKG.js} +55 -55
- package/dist/chunks/{report-runtime-context-bYoExeWr.js → report-runtime-context-DoIUr3MP.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
- package/dist/chunks/{save-DSb1jTtG.js → save-DH4RyrnG.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-8jqfI7hI.js} +59 -59
- package/dist/chunks/{selection-reducer-DSzMWb4x.js → selection-reducer-CV7K4FI6.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-Bz14Oma5.js → semaphor-ready-indicator-E2XWyibu.js} +40105 -41658
- package/dist/chunks/{shelf-drop-preview-context-DBHAkgch.js → shelf-drop-preview-context-C29EUzDp.js} +570 -570
- package/dist/chunks/{source-entity-resolution-BOrmNCEM.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
- package/dist/chunks/{switch-Dq8XPFpT.js → switch-balDSHc7.js} +3 -3
- package/dist/chunks/{table-export-sheet-C_RvEUyO.js → table-export-sheet-CK8tvh4d.js} +1 -1
- package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
- package/dist/chunks/{token-types-LCYMJ3pa.js → token-types-DhYH5YKb.js} +1 -1
- package/dist/chunks/{upload-Dr_WAxHQ.js → upload-Ufj8vjyn.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BK3YFkfc.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
- package/dist/chunks/{validators-C87JPd-_.js → validators-BtaCFIEB.js} +1206 -1579
- package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2713 -1459
- package/dist/data-app-sdk/index.js +20 -20
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +10 -10
- package/dist/format-utils/index.js +262 -256
- package/dist/index.js +214 -215
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
- package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
- package/dist/types/index.js +50 -51
- package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
- package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/stores/editor-store.d.ts +48 -10
- package/dist/types/lib/stores/table-actions.d.ts +9 -5
- package/dist/types/lib/table-formatting/index.d.ts +0 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
- package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
- package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
- package/dist/types/lib/types/common-types.d.ts +40 -47
- package/dist/types/lib/types/explorer-types.d.ts +11 -43
- package/dist/types/lib/utils/card-config-utils.d.ts +8 -0
- package/dist/types/lib/utils/card-definition.d.ts +9 -187
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +169 -513
- package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
- package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
- package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
- package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
- package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
- package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
- package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +555 -38
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
- package/dist/types/shared/dashboard-authoring/index.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
- package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
- package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +13 -2
- package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
- package/dist/types/shared/format-utils/index.d.ts +2 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
- package/dist/types/shared/format-utils/raw-temporal.d.ts +31 -1
- package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
- package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
- package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
- package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
- package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
- package/package.json +2 -2
- package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
- package/dist/chunks/bookmark-state-ssqrs5oP.js +0 -111
- package/dist/chunks/document-dashboard-inputs-ChVkcBuu.js +0 -3010
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
- package/dist/chunks/filter-reach-copy-B5Y7FHzg.js +0 -3411
- package/dist/chunks/global-date-filter-utils-DBzEOX9M.js +0 -12222
- package/dist/chunks/pivot-result-contract-expectations-DOYhqeZb.js +0 -1926
- package/dist/chunks/raw-temporal-presentation-BmT7z6NH.js +0 -584
- package/dist/chunks/resolve-dashboard-input-context-B_C_VAJH.js +0 -5520
- package/dist/chunks/table-settings-DXj_zXwS.js +0 -637
- package/dist/chunks/temporal-input-presentation-AhLSkGPf.js +0 -2939
- package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
- package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { TCard } from '../../lib/types/common-types.js';
|
|
2
|
+
import { CardConfig, MetricField } from '../../lib/types/explorer-types.js';
|
|
3
|
+
import { ComparisonMetadataMap } from '../../lib/types/query-types.js';
|
|
4
|
+
import { MetricComparisonEvaluation, MetricComparisonPolarity } from '../analytics-protocol/index.js';
|
|
5
|
+
type KpiCard = Pick<TCard, 'sql' | 'config' | 'preferences'>;
|
|
6
|
+
/**
|
|
7
|
+
* Which column is the value, by source. The shape reads ids, never formats, so
|
|
8
|
+
* it is the same for the saved card and the render card; formats, rules,
|
|
9
|
+
* currency targets and the settings panels need only this.
|
|
10
|
+
*/
|
|
11
|
+
export type KpiShape = {
|
|
12
|
+
source: 'sql';
|
|
13
|
+
/** A SQL KPI's value is positional: its result's first numeric column (CF-D24). */
|
|
14
|
+
value: {
|
|
15
|
+
kind: 'sqlKpiValue';
|
|
16
|
+
};
|
|
17
|
+
/** `preferences.sqlKpiValue.comparisonPolarity`, else the default. */
|
|
18
|
+
polarity: MetricComparisonPolarity;
|
|
19
|
+
} | {
|
|
20
|
+
source: 'config';
|
|
21
|
+
/** Built from `measure`: always `{ kind: 'field', fieldId: measure.id }`. */
|
|
22
|
+
value: {
|
|
23
|
+
kind: 'field';
|
|
24
|
+
fieldId: string;
|
|
25
|
+
};
|
|
26
|
+
/** The value measure: the card's first. */
|
|
27
|
+
measure: MetricField;
|
|
28
|
+
/** The measure's polarity. */
|
|
29
|
+
polarity: MetricComparisonPolarity;
|
|
30
|
+
};
|
|
31
|
+
/** A KPI's value column, or another measure of a config KPI. */
|
|
32
|
+
export type KpiColumn = KpiShape['value'];
|
|
33
|
+
/** SQL text means a SQL KPI (KV-D2), as the server runs it. */
|
|
34
|
+
export declare function isSqlKpi(card: Pick<TCard, 'sql'>): boolean;
|
|
35
|
+
/** Undefined for a card with no value to show: a config KPI with no measure. */
|
|
36
|
+
export declare function resolveKpiShape(card: KpiCard): KpiShape | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* What sits beside the value. `value`: the value and, when the card compares,
|
|
39
|
+
* its comparison (a previous period or a target). `measures`: the value and
|
|
40
|
+
* the card's second and third measures.
|
|
41
|
+
*/
|
|
42
|
+
export type KpiLayout = 'value' | 'measures';
|
|
43
|
+
/** How many measures the measures layout shows: the value and the next two. The server queries no more. */
|
|
44
|
+
export declare const KPI_MEASURES_SHOWN = 3;
|
|
45
|
+
/**
|
|
46
|
+
* The one layout rule (KV-D7, option B): `measures` for two or more measures,
|
|
47
|
+
* no group-by and no target comparison; else `value`. A period comparison, the
|
|
48
|
+
* card's own or the dashboard's, never changes it. The server calls it and
|
|
49
|
+
* writes the answer on the response (`kpiLayout`), so no reader guesses which
|
|
50
|
+
* branch ran; `readKpiFigure` applies it to the card only before a response
|
|
51
|
+
* arrives.
|
|
52
|
+
*/
|
|
53
|
+
export declare function resolveKpiLayout(input: {
|
|
54
|
+
config?: Pick<CardConfig, 'metricColumns' | 'groupByColumns'>;
|
|
55
|
+
}): KpiLayout;
|
|
56
|
+
/**
|
|
57
|
+
* A config KPI's result rows. Every row names its measure; `current` is a
|
|
58
|
+
* measure's value and `comparison` its prior or target, in every branch.
|
|
59
|
+
*/
|
|
60
|
+
export type KpiResultSegment = {
|
|
61
|
+
segment: 'current' | 'comparison';
|
|
62
|
+
value: number | string | null;
|
|
63
|
+
metricId: string;
|
|
64
|
+
};
|
|
65
|
+
/** The metadata a config KPI response carries beside its rows. */
|
|
66
|
+
export type KpiResultMetadata = {
|
|
67
|
+
kpiLayout: KpiLayout;
|
|
68
|
+
comparisonMetadata?: ComparisonMetadataMap;
|
|
69
|
+
};
|
|
70
|
+
/** The id a row names its measure by (`id`, else `name`): the server writes it, the owner reads it. */
|
|
71
|
+
export declare function kpiSegmentMetricId(metric: Pick<MetricField, 'id' | 'name'>): string;
|
|
72
|
+
export type KpiComparison = {
|
|
73
|
+
/** A SQL KPI's prior (its second numeric column) reads as the previous period. */
|
|
74
|
+
kind: 'previous_period' | 'previous_year' | 'target';
|
|
75
|
+
/** "Previous", "Target" or `comparisonPresentation.labelName`. */
|
|
76
|
+
label: string;
|
|
77
|
+
/** False when the author turned it off (`comparisonPresentation.showComparison`). */
|
|
78
|
+
shown: boolean;
|
|
79
|
+
/** From `evaluateMetricComparison`, the only source of a change (KV-D8). */
|
|
80
|
+
evaluation: MetricComparisonEvaluation;
|
|
81
|
+
};
|
|
82
|
+
export type KpiFigure = {
|
|
83
|
+
/** Undefined for a config KPI with no measure. */
|
|
84
|
+
shape?: KpiShape;
|
|
85
|
+
/** `value` for a SQL KPI; the response's `kpiLayout` for a config KPI. */
|
|
86
|
+
layout: KpiLayout;
|
|
87
|
+
/** Null when the response has no number for the value (and the surface gave no `missingValue`). */
|
|
88
|
+
value: number | null;
|
|
89
|
+
/** Why the response has no number: none at all, or values that aren't numbers. */
|
|
90
|
+
missing?: 'no_value' | 'not_numeric';
|
|
91
|
+
/** The `value` layout's comparison, when the card compares and the response has one. */
|
|
92
|
+
comparison?: KpiComparison;
|
|
93
|
+
/** The `measures` layout's second and third measures and their values. */
|
|
94
|
+
others: ReadonlyArray<{
|
|
95
|
+
measure: MetricField;
|
|
96
|
+
value: number | null;
|
|
97
|
+
/** Against the value, when the author turned on the pair comparison (exactly two measures). */
|
|
98
|
+
evaluation?: MetricComparisonEvaluation;
|
|
99
|
+
}>;
|
|
100
|
+
/** A SQL KPI's result keys: the first numeric column is the value, the second the prior. */
|
|
101
|
+
resultKeys: {
|
|
102
|
+
value?: string;
|
|
103
|
+
previous?: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
type KpiRecords = readonly Record<string, unknown>[] | null | undefined;
|
|
107
|
+
/** A finite number from a numeric value or a numeric string (thousands commas allowed). */
|
|
108
|
+
export declare function toFiniteKpiNumber(value: unknown): number | null;
|
|
109
|
+
/** A SQL KPI's result keys: its first numeric column is the value, the second the prior. */
|
|
110
|
+
export declare function sqlKpiResultKeys(records: KpiRecords): KpiFigure['resultKeys'];
|
|
111
|
+
/**
|
|
112
|
+
* The render card and its query response: what every renderer shows. A surface
|
|
113
|
+
* that shows a missing value as a number (the dashboard tiles show `0`) passes
|
|
114
|
+
* it as `missingValue`, and the value's evaluations use it too.
|
|
115
|
+
*/
|
|
116
|
+
export declare function readKpiFigure(input: {
|
|
117
|
+
/** The query result's `renderCard` (live model formats included), never the saved card (column formats P5-12, P5-19). */
|
|
118
|
+
renderCard: KpiCard;
|
|
119
|
+
records?: KpiRecords;
|
|
120
|
+
metadata?: Partial<KpiResultMetadata>;
|
|
121
|
+
missingValue?: number;
|
|
122
|
+
}): KpiFigure;
|
|
123
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { MatrixAxis, MatrixConfig, MatrixPresentation, MatrixSpec } from '../analytics-protocol/matrix-definition-contract.js';
|
|
1
|
+
import { MatrixAxis, MatrixConfig, MatrixPath, MatrixPresentation, MatrixSpec } from '../analytics-protocol/matrix-definition-contract.js';
|
|
2
2
|
import { ControlBinding } from '../../lib/types/common-types.js';
|
|
3
|
-
import { TableConditionalFormatting } from '../../lib/table-formatting/table-formatting-types.js';
|
|
4
3
|
/** Stable instance eligibility shared by authoring, editor and execution adapters. */
|
|
5
4
|
export type MatrixFieldDataTypeResolver = (field: MatrixSpec['rows'][number]['field']) => MatrixSpec['rows'][number]['field']['dataType'];
|
|
6
5
|
export declare function getMatrixBindingTargets(spec: MatrixSpec, target: ControlBinding['target'], resolveDataType?: MatrixFieldDataTypeResolver): {
|
|
@@ -42,12 +41,12 @@ export type MatrixAuthoringChange = {
|
|
|
42
41
|
/** Shelf drops and the Axis menu use the same ID-preserving level transaction. */
|
|
43
42
|
export declare function moveMatrixLevel(spec: MatrixSpec, id: string, target: MatrixAxis, beforeId?: string): MatrixAuthoringChange;
|
|
44
43
|
export type MatrixAuthoringNotice = {
|
|
45
|
-
kind: 'sort' | 'ranking' | 'measure_filter' | 'format' | 'label' | 'total' | '
|
|
44
|
+
kind: 'sort' | 'ranking' | 'measure_filter' | 'format' | 'label' | 'total' | 'expansion' | 'depth' | 'binding';
|
|
46
45
|
id: string;
|
|
47
46
|
message: string;
|
|
48
47
|
};
|
|
49
|
-
/**
|
|
50
|
-
export declare function
|
|
48
|
+
/** Whether a member path still names the same members after a spec change. */
|
|
49
|
+
export declare function retainedMatrixPath(beforeSpec: MatrixSpec, spec: MatrixSpec): (axis: MatrixAxis, path: MatrixPath, allowOthers?: boolean) => boolean;
|
|
51
50
|
/** Reconcile effective structural bindings without inventing presentation or saved defaults. */
|
|
52
51
|
export declare function reconcileMatrixSpecStructure(beforeSpec: MatrixSpec, afterSpec: MatrixSpec, authoringDraft?: boolean): {
|
|
53
52
|
spec: MatrixSpec;
|