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
package/dist/surfboard/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, R as s, D as o } from "../chunks/report-preferences-dialog-
|
|
2
|
-
import { C as f, E as D } from "../chunks/
|
|
1
|
+
import { a, R as s, D as o } from "../chunks/report-preferences-dialog-C2YUIwKG.js";
|
|
2
|
+
import { C as f, E as D } from "../chunks/bookmark-state-BusLpkb7.js";
|
|
3
3
|
export {
|
|
4
4
|
f as CONTROL_CARD_DEFAULT_VALUE,
|
|
5
5
|
a as DisplayFormatPreferencesFields,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KpiNumberFormatter } from '../../lib/formatters/kpi-number-formatter.js';
|
|
1
2
|
import { TCard } from '../../lib/types/common-types.js';
|
|
2
3
|
import { ResolvedValueFormatPreferences } from '../../shared/value-format-preferences/index.js';
|
|
3
4
|
export type SummaryNumberFormatter = {
|
|
@@ -5,6 +6,11 @@ export type SummaryNumberFormatter = {
|
|
|
5
6
|
formatSigned: (value: number | null) => string;
|
|
6
7
|
formatPct: (value: number | null) => string;
|
|
7
8
|
};
|
|
9
|
+
/** A summary's numbers in the KPI value's formats: its formatter and its delta's. */
|
|
10
|
+
export declare function summaryNumberFormatterFrom({ formatter, deltaFormatter, }: {
|
|
11
|
+
formatter: KpiNumberFormatter;
|
|
12
|
+
deltaFormatter: KpiNumberFormatter;
|
|
13
|
+
}): SummaryNumberFormatter;
|
|
8
14
|
export declare function buildSummaryNumberFormatter({ card, preferences, boundCurrency, }: {
|
|
9
15
|
card?: TCard;
|
|
10
16
|
preferences?: ResolvedValueFormatPreferences | null;
|
|
@@ -7,7 +7,7 @@ export declare function isDateDataType(dataType: string): boolean;
|
|
|
7
7
|
export declare function isBooleanDataType(dataType: string): boolean;
|
|
8
8
|
export declare function getSql(config: SqlGen, schemaName: string, tableName: string, modelName: string, databaseName: string, capabilities: TDbCapabilities, qualifiedEntityName?: string): string | undefined;
|
|
9
9
|
export declare function createSqlGenConfig(column: TDataColumn, preSqlGen: SqlGen, calc?: AggregateCalc): SqlGen;
|
|
10
|
-
export declare function getFilterValueType(filter: TFilter): "
|
|
10
|
+
export declare function getFilterValueType(filter: TFilter): "number" | "string" | "boolean" | "date";
|
|
11
11
|
export declare function getColumnDataType(column: TDataColumn): string;
|
|
12
12
|
export declare function isColumnInSqlGen(column: TDataColumn, sqlGen: SqlGen): boolean | undefined;
|
|
13
13
|
export declare function resolveDatamodelName(datamodelName: string): string;
|
|
@@ -11,12 +11,6 @@ import { ConditionalFormattingRenderContext, TableBaseFormatting, TableBaseStyle
|
|
|
11
11
|
import { ColumnTextWrap } from '../../../../lib/table-formatting/table-text-flow.js';
|
|
12
12
|
import { RawTemporalValueKind, SemaphorResultColumn } from '../../../../shared/analytics-protocol/index.js';
|
|
13
13
|
export type { ColumnTextWrap } from '../../../../lib/table-formatting/table-text-flow.js';
|
|
14
|
-
export interface ColorRange {
|
|
15
|
-
min: number;
|
|
16
|
-
max: number;
|
|
17
|
-
color: string;
|
|
18
|
-
applyTo: 'cell' | 'row';
|
|
19
|
-
}
|
|
20
14
|
export interface LinkFormat {
|
|
21
15
|
urlTemplate: string;
|
|
22
16
|
labelType: 'value' | 'static' | 'column';
|
|
@@ -49,25 +43,18 @@ export interface ColumnSettings {
|
|
|
49
43
|
scale?: number;
|
|
50
44
|
compact?: boolean;
|
|
51
45
|
negativeStyle?: 'minus' | 'parentheses';
|
|
46
|
+
/** Whether a sign shows (column formats CF-D16). */
|
|
47
|
+
signDisplay?: 'auto' | 'always' | 'exceptZero' | 'never';
|
|
52
48
|
prefix?: string;
|
|
53
49
|
suffix?: string;
|
|
54
50
|
/** Duration options; read only when `style` is `duration`. */
|
|
55
51
|
duration?: ColumnDurationFormat;
|
|
56
|
-
showDataBar: boolean;
|
|
57
|
-
dataBarColor: string;
|
|
58
|
-
dataBarMinValue?: number;
|
|
59
|
-
dataBarMaxValue?: number;
|
|
60
|
-
/**
|
|
61
|
-
* When true, render the cell bg with a heatmap intensity tint scaled
|
|
62
|
-
* across the column's value range. Composes with the existing text
|
|
63
|
-
* color/color-range logic (tint is bg only). `showDataBar` takes
|
|
64
|
-
* precedence when both are set — per the canonical design, a cell is
|
|
65
|
-
* either a data-bar or a heatmap, never both.
|
|
66
|
-
*/
|
|
67
|
-
showHeatmap?: boolean;
|
|
68
52
|
};
|
|
69
53
|
dateFormat: {
|
|
70
54
|
format: string;
|
|
55
|
+
/** A stored preset or a pattern's token dialect, until the panel picks a pattern (column formats ledger P5-25). */
|
|
56
|
+
preset?: 'short' | 'long' | 'numeric' | 'iso';
|
|
57
|
+
dialect?: 'semaphor_tokens' | 'date_fns';
|
|
71
58
|
useCustomFormat: boolean;
|
|
72
59
|
customFormat: string;
|
|
73
60
|
useRelativeTime: boolean;
|
|
@@ -75,7 +62,6 @@ export interface ColumnSettings {
|
|
|
75
62
|
sourceTimezone?: string;
|
|
76
63
|
};
|
|
77
64
|
linkFormat: LinkFormat;
|
|
78
|
-
colorRanges: ColorRange[];
|
|
79
65
|
}
|
|
80
66
|
/**
|
|
81
67
|
* Row rhythm for the whole table. Authors pick one per card; undefined
|
|
@@ -109,7 +95,6 @@ export type TableStylePreferences = {
|
|
|
109
95
|
export type TablePreferences = {
|
|
110
96
|
columnSettingsMap?: PersistedColumnSettingsMap;
|
|
111
97
|
baseFormatting?: import('../../../../lib/table-formatting/table-formatting-types.js').TableBaseFormatting;
|
|
112
|
-
conditionalFormatting?: import('../../../../lib/table-formatting/table-formatting-types.js').TableConditionalFormatting;
|
|
113
98
|
selectColumnVisible?: boolean;
|
|
114
99
|
columnVisibility?: Record<string, boolean>;
|
|
115
100
|
columnSizing?: ColumnSizingState;
|
package/dist/types/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as
|
|
3
|
-
import { D as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { D as $ } from "../chunks/report-runtime-context-bYoExeWr.js";
|
|
1
|
+
import { B as s, x as r, C as l, E as o, V as i, j as n, c as d, g as m, f as u, b as c, e as E, d as C, a as T, w as p, v as D, h as A, l as I, u as _, s as F, m as S, n as b, p as L, k as f, o as N, q as R, i as y, r as g, t as h } from "../chunks/bookmark-state-BusLpkb7.js";
|
|
2
|
+
import { C as M, D as O, L as V, e as w, g as k, j as U, h as B, k as K, d as z, b as v, i as Y, c as q, n as G, f as P } from "../chunks/validators-BtaCFIEB.js";
|
|
3
|
+
import { D as j } from "../chunks/token-types-DhYH5YKb.js";
|
|
4
|
+
import { r as J, a as X } from "../chunks/pivot-result-identity-olvXJoB9.js";
|
|
5
|
+
import { D as Z } from "../chunks/report-runtime-context-DoIUr3MP.js";
|
|
7
6
|
const e = [
|
|
8
7
|
"concatenate",
|
|
9
8
|
"conditional-category",
|
|
@@ -37,51 +36,51 @@ const e = [
|
|
|
37
36
|
"is-blank"
|
|
38
37
|
];
|
|
39
38
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
s as BOOKMARK_STATE_VERSION,
|
|
40
|
+
r as BOOKMARK_VISIBILITIES,
|
|
41
|
+
M as CALCULATED_FIELD_ENTITY_MARKER,
|
|
43
42
|
e as CALCULATED_FIELD_TEMPLATE_IDS,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
43
|
+
l as CONTROL_CARD_DEFAULT_VALUE,
|
|
44
|
+
O as DATE_FORMAT_VALUES,
|
|
45
|
+
Z as DEFAULT_CALENDAR_CONTEXT,
|
|
46
|
+
j as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
|
|
47
|
+
o as EMPTY_SELECTION,
|
|
48
|
+
V as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,
|
|
49
|
+
i as VIEWER_LIMITS,
|
|
50
|
+
n as VIEWER_TABLE_SETTINGS_VERSION,
|
|
51
|
+
d as collectDatasetNamesFromExplorerField,
|
|
52
|
+
m as collectDatasetNamesFromFilterGroup,
|
|
53
|
+
u as collectExecutionDatasetNamesFromExplorerField,
|
|
54
|
+
c as collectPreferredDatasetNamesFromExplorerField,
|
|
55
|
+
E as collectQualifiedDatasetNamesFromExplorerField,
|
|
56
|
+
C as datasetRefFromSource,
|
|
57
|
+
T as dependencyDisplayIdentity,
|
|
58
|
+
w as getCalculatedFieldComputeStage,
|
|
60
59
|
p as getCustomizableTableCardIds,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
60
|
+
k as getFieldRuntimeColumnName,
|
|
61
|
+
D as getSortableTableCardIds,
|
|
62
|
+
U as hasCalculatedFieldMarker,
|
|
63
|
+
B as hasCalculatedFormulaInputs,
|
|
64
|
+
K as hasSyntheticCalculatedFieldOwner,
|
|
65
|
+
A as humanizeDatasetName,
|
|
66
|
+
z as inspectCalculatedField,
|
|
67
|
+
v as isCalculatedDimension,
|
|
68
|
+
Y as isCalculatedMetric,
|
|
69
|
+
q as isDerivedField,
|
|
70
|
+
I as isEmptyViewerTableSettings,
|
|
71
|
+
_ as isTableCardCustomizable,
|
|
72
|
+
F as isTableCardSortable,
|
|
73
|
+
S as measureJsonBytes,
|
|
74
|
+
G as normalizeCalculatedFieldRepresentation,
|
|
75
|
+
b as normalizeViewerTableSettings,
|
|
76
|
+
L as parseBookmarkState,
|
|
77
|
+
f as parseTableColumnId,
|
|
78
|
+
N as parseViewerTableSettings,
|
|
79
|
+
R as parseViewerTableSettingsMap,
|
|
80
|
+
y as readBookmarkState,
|
|
81
|
+
g as resolveFieldDatasetDependencies,
|
|
82
|
+
J as resolveQueryColumnKeyMapEntry,
|
|
83
|
+
X as resolveUniqueQueryColumnKeyMapEntry,
|
|
84
|
+
P as shouldDropInheritedCalculationAggregate,
|
|
85
|
+
h as toTableColumnId
|
|
87
86
|
};
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormatSpec } from '../types/explorer-types.js';
|
|
1
|
+
import { TFormatOptions } from '../types/common-types.js';
|
|
3
2
|
import { ColumnSettings } from '../../components/visual/data-table/types/data-table.js';
|
|
4
3
|
import { AdaptedCanonicalFormatSpec, CanonicalAdapterOptions } from '../../shared/format-utils/semantic-format.js';
|
|
4
|
+
export { fromTFormatOptions, fromColumnNumberFormat } from '../../shared/format-utils/retired-format-adapters.js';
|
|
5
5
|
export type { CanonicalFormatSpec } from '../../shared/format-utils/types/index.js';
|
|
6
|
-
export type LegacyFormatNumber = {
|
|
7
|
-
decimalPlaces?: number;
|
|
8
|
-
minimumFractionDigits?: number;
|
|
9
|
-
maximumFractionDigits?: number;
|
|
10
|
-
currency?: string;
|
|
11
|
-
locale?: string;
|
|
12
|
-
prefix?: string;
|
|
13
|
-
suffix?: string;
|
|
14
|
-
useGrouping?: boolean;
|
|
15
|
-
percentValueMode?: 'fraction' | 'whole';
|
|
16
|
-
enabled?: boolean | string;
|
|
17
|
-
};
|
|
18
|
-
export declare function fromTFormatOptions(format?: TFormatOptions | null, options?: CanonicalAdapterOptions): AdaptedCanonicalFormatSpec | undefined;
|
|
19
|
-
export declare function fromPersistedKpiFormatOptions(format?: TFormatOptions): AdaptedCanonicalFormatSpec | undefined;
|
|
20
|
-
export declare function fromLegacyFormatNumber(format?: LegacyFormatNumber | null): AdaptedCanonicalFormatSpec | undefined;
|
|
21
|
-
export declare function fromNumberAxisFormat(format?: NumberAxisFormat | null): AdaptedCanonicalFormatSpec | undefined;
|
|
22
|
-
export declare function fromColumnNumberFormat(format?: Partial<ColumnSettings['numberFormat']> | null, options?: CanonicalAdapterOptions): AdaptedCanonicalFormatSpec | undefined;
|
|
23
|
-
export declare function isHistoricalPersistedColumnNumberFormat(format?: Partial<ColumnSettings['numberFormat']> | null): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Reads the persisted table-column contract. The old settings editor seeded
|
|
26
|
-
* currency, locale, and data-bar leaves together; that bounded legacy shape
|
|
27
|
-
* rendered omitted precision with the table formatter's 0-2 fallback. Newly
|
|
28
|
-
* sparse formats do not match it and retain currency-minor-unit precision.
|
|
29
|
-
*/
|
|
30
|
-
export declare function fromPersistedColumnNumberFormat(format?: Partial<ColumnSettings['numberFormat']> | null): AdaptedCanonicalFormatSpec | undefined;
|
|
31
|
-
export declare function toSemanticFormat(format?: AdaptedCanonicalFormatSpec | null): FormatSpec | undefined;
|
|
32
6
|
export declare function toTFormatOptions(format?: AdaptedCanonicalFormatSpec | null, options?: CanonicalAdapterOptions): TFormatOptions | undefined;
|
|
33
7
|
export declare function toColumnNumberFormat(format?: AdaptedCanonicalFormatSpec | null, options?: CanonicalAdapterOptions): ColumnSettings['numberFormat'] | undefined;
|
|
34
|
-
export declare function toLegacyFormatNumber(format?: AdaptedCanonicalFormatSpec | null): LegacyFormatNumber | undefined;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { KpiColumn } from '../../shared/dashboard-authoring/kpi-figure.js';
|
|
2
|
+
import { CanonicalFormatSpec } from './canonical-format-adapter.js';
|
|
3
|
+
import { TCard, TFormatOptions } from '../types/common-types.js';
|
|
4
|
+
import { ResolvedValueFormatPreferences } from '../../shared/value-format-preferences/index.js';
|
|
5
|
+
export type KpiNumberFormatter = {
|
|
6
|
+
format: (value: number | null) => string;
|
|
7
|
+
formatSigned: (value: number | null) => string;
|
|
8
|
+
supportsComparisonDeltaInheritance: boolean;
|
|
9
|
+
/** The KPI's active format, for the comparison indicator's own fallback text. */
|
|
10
|
+
formatOptions?: TFormatOptions;
|
|
11
|
+
/** The locale the column formats in. */
|
|
12
|
+
locale: string;
|
|
13
|
+
};
|
|
14
|
+
type KpiNumberFormatterInput = {
|
|
15
|
+
card?: TCard;
|
|
16
|
+
/** The column to format: the KPI's value (the KPI value owner's) unless another measure is named. */
|
|
17
|
+
column?: KpiColumn;
|
|
18
|
+
preferences?: ResolvedValueFormatPreferences | null;
|
|
19
|
+
boundCurrency?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* A KPI column's format with the viewer's preferences and bound currency
|
|
23
|
+
* applied, and the locale it formats in. For a difference (`numericDelta`):
|
|
24
|
+
* the column's own format only when it is a number or a duration (a date or
|
|
25
|
+
* text format can't show one), else the plain number fallback.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveKpiFormatContext({ card, column, preferences, boundCurrency, numericDelta, }: KpiNumberFormatterInput & {
|
|
28
|
+
numericDelta?: boolean;
|
|
29
|
+
}): {
|
|
30
|
+
locale: string;
|
|
31
|
+
canonicalPrimaryFormat?: CanonicalFormatSpec;
|
|
32
|
+
};
|
|
33
|
+
/** A KPI column's formatter. */
|
|
34
|
+
export declare function buildKpiNumberFormatter(input: KpiNumberFormatterInput): KpiNumberFormatter;
|
|
35
|
+
/**
|
|
36
|
+
* The formatter a comparison's difference uses: the column's format when it is
|
|
37
|
+
* a number or a duration (a date or text format can't show a difference), else
|
|
38
|
+
* the plain number fallback.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildKpiDeltaNumberFormatter(input: KpiNumberFormatterInput): KpiNumberFormatter;
|
|
41
|
+
export {};
|
|
@@ -85,8 +85,6 @@ export declare function isDeclaredSqlRawTemporalPresentationCard(input: {
|
|
|
85
85
|
card: TCard;
|
|
86
86
|
effectiveCardConfig?: CardConfig;
|
|
87
87
|
}): boolean;
|
|
88
|
-
export declare function hasMissingDeclaredSqlCustomDateFormat(card: TCard): boolean;
|
|
89
|
-
export declare function repairMissingDeclaredSqlCustomDateFormat(card: TCard): TCard;
|
|
90
88
|
/**
|
|
91
89
|
* Resolves config-owned detail-table presentation from one atomic physical
|
|
92
90
|
* result. No card/store lookup or row mutation occurs at this boundary.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { TCard } from '../types/common-types.js';
|
|
2
|
+
import { ColumnSettings, PersistedColumnSettings, PersistedColumnSettingsMap } from '../../components/visual/data-table/types/data-table.js';
|
|
3
|
+
import { TableFieldLookup } from '../table-formatting/table-presentation-fields.js';
|
|
4
|
+
type ColumnSettingsCard = Pick<TCard, 'preferences' | 'sql' | 'python'>;
|
|
5
|
+
/** A SQL or Python card, by the table renderer's rule (`resolveTablePresentationField`). */
|
|
6
|
+
export declare function isQueryTableCard(card: ColumnSettingsCard | undefined): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The one reader of a table card's saved column settings (column formats
|
|
9
|
+
* CF-D26). Non-format settings (type, link, width, alignment, visibility)
|
|
10
|
+
* come from `tablePrefs.columnSettingsMap`, whose retired format fields are
|
|
11
|
+
* never read. A SQL or Python card's column formats come from
|
|
12
|
+
* `preferences.sqlColumns`, handed over in the settings panel's shape that
|
|
13
|
+
* today's table, chart and export readers take; a config card's formats live
|
|
14
|
+
* on its columns. Phase 5's resolver reads `sqlColumns` itself.
|
|
15
|
+
*/
|
|
16
|
+
export declare function readTableColumnSettings(card: ColumnSettingsCard | undefined): PersistedColumnSettingsMap;
|
|
17
|
+
export type ColumnSettingsEdit = {
|
|
18
|
+
columnId: string;
|
|
19
|
+
/** The panel's full settings after the edit, and before it; formats are taken from these. */
|
|
20
|
+
next?: ColumnSettings;
|
|
21
|
+
baseline?: ColumnSettings;
|
|
22
|
+
/** The sparse entry the panel's serializer made; its non-format settings are saved. Absent resets the column. */
|
|
23
|
+
entry?: PersistedColumnSettings;
|
|
24
|
+
/**
|
|
25
|
+
* How the column names its card field, as the table's cells find it
|
|
26
|
+
* (`tableColumnFieldLookup`): one pivot value's column names its measure,
|
|
27
|
+
* so its format edit is the measure's (ledger P5-29). Absent, by its id.
|
|
28
|
+
*/
|
|
29
|
+
field?: TableFieldLookup;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Writes a column settings edit to the contract's stores (column formats
|
|
33
|
+
* CF-D7): non-format settings to `tablePrefs.columnSettingsMap`; a changed
|
|
34
|
+
* number or date format to `preferences.sqlColumns` on a SQL or Python card,
|
|
35
|
+
* or as the matching column's own format (an override) on a config card,
|
|
36
|
+
* where "use the metric's format" removes the override. Retired fields are
|
|
37
|
+
* never written.
|
|
38
|
+
*/
|
|
39
|
+
export declare function applyColumnSettingsEdit(card: TCard, edit: ColumnSettingsEdit): TCard;
|
|
40
|
+
/**
|
|
41
|
+
* Resets every column's settings, as `applyColumnSettingsEdit` resets one:
|
|
42
|
+
* the settings entries, a SQL or Python card's column formats, and a config
|
|
43
|
+
* table's column format overrides, so each column follows its own model
|
|
44
|
+
* format again (column formats CF-D7, CF-D20).
|
|
45
|
+
*/
|
|
46
|
+
export declare function resetAllTableColumnSettings(card: TCard): TCard;
|
|
47
|
+
export {};
|
|
@@ -63,188 +63,9 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
63
63
|
};
|
|
64
64
|
levelLabels: Readonly<Record<string, string>>;
|
|
65
65
|
measureLabels: Readonly<Record<string, string>>;
|
|
66
|
-
levelFormats: Readonly<Record<string,
|
|
67
|
-
|
|
68
|
-
pattern?: string | undefined;
|
|
69
|
-
locale?: string | undefined;
|
|
70
|
-
prefix?: string | undefined;
|
|
71
|
-
suffix?: string | undefined;
|
|
72
|
-
relative?: boolean | undefined;
|
|
73
|
-
timezone?: string | undefined;
|
|
74
|
-
sourceTimezone?: string | undefined;
|
|
75
|
-
} | {
|
|
76
|
-
type: "duration";
|
|
77
|
-
prefix?: string | undefined;
|
|
78
|
-
suffix?: string | undefined;
|
|
79
|
-
negativeStyle?: "minus" | "parentheses" | undefined;
|
|
80
|
-
inputUnit?: "second" | "minute" | "hour" | "day" | "millisecond" | undefined;
|
|
81
|
-
outputStyle?: "compact" | "digital" | "long" | undefined;
|
|
82
|
-
largestUnit?: "second" | "minute" | "hour" | "day" | "millisecond" | undefined;
|
|
83
|
-
smallestUnit?: "second" | "minute" | "hour" | "day" | "millisecond" | undefined;
|
|
84
|
-
maxUnits?: number | undefined;
|
|
85
|
-
} | {
|
|
86
|
-
type: "string";
|
|
87
|
-
prefix?: string | undefined;
|
|
88
|
-
suffix?: string | undefined;
|
|
89
|
-
} | {
|
|
90
|
-
type: "number" | "currency" | "percent" | "percentage" | "scientific";
|
|
91
|
-
currency?: string | undefined;
|
|
92
|
-
minimumFractionDigits?: number | undefined;
|
|
93
|
-
maximumFractionDigits?: number | undefined;
|
|
94
|
-
useGrouping?: boolean | undefined;
|
|
95
|
-
prefix?: string | undefined;
|
|
96
|
-
suffix?: string | undefined;
|
|
97
|
-
negativeStyle?: "minus" | "parentheses" | undefined;
|
|
98
|
-
compact?: boolean | undefined;
|
|
99
|
-
scale?: number | undefined;
|
|
100
|
-
percentValueMode?: "fraction" | "whole" | undefined;
|
|
101
|
-
}>>;
|
|
102
|
-
measureFormats: Readonly<Record<string, import('../../shared/analytics-protocol/index.js').TemporalBucketFormat | {
|
|
103
|
-
type: "date" | "datetime";
|
|
104
|
-
pattern?: string | undefined;
|
|
105
|
-
locale?: string | undefined;
|
|
106
|
-
prefix?: string | undefined;
|
|
107
|
-
suffix?: string | undefined;
|
|
108
|
-
relative?: boolean | undefined;
|
|
109
|
-
timezone?: string | undefined;
|
|
110
|
-
sourceTimezone?: string | undefined;
|
|
111
|
-
} | {
|
|
112
|
-
type: "duration";
|
|
113
|
-
prefix?: string | undefined;
|
|
114
|
-
suffix?: string | undefined;
|
|
115
|
-
negativeStyle?: "minus" | "parentheses" | undefined;
|
|
116
|
-
inputUnit?: "second" | "minute" | "hour" | "day" | "millisecond" | undefined;
|
|
117
|
-
outputStyle?: "compact" | "digital" | "long" | undefined;
|
|
118
|
-
largestUnit?: "second" | "minute" | "hour" | "day" | "millisecond" | undefined;
|
|
119
|
-
smallestUnit?: "second" | "minute" | "hour" | "day" | "millisecond" | undefined;
|
|
120
|
-
maxUnits?: number | undefined;
|
|
121
|
-
} | {
|
|
122
|
-
type: "string";
|
|
123
|
-
prefix?: string | undefined;
|
|
124
|
-
suffix?: string | undefined;
|
|
125
|
-
} | {
|
|
126
|
-
type: "number" | "currency" | "percent" | "percentage" | "scientific";
|
|
127
|
-
currency?: string | undefined;
|
|
128
|
-
minimumFractionDigits?: number | undefined;
|
|
129
|
-
maximumFractionDigits?: number | undefined;
|
|
130
|
-
useGrouping?: boolean | undefined;
|
|
131
|
-
prefix?: string | undefined;
|
|
132
|
-
suffix?: string | undefined;
|
|
133
|
-
negativeStyle?: "minus" | "parentheses" | undefined;
|
|
134
|
-
compact?: boolean | undefined;
|
|
135
|
-
scale?: number | undefined;
|
|
136
|
-
percentValueMode?: "fraction" | "whole" | undefined;
|
|
137
|
-
}>>;
|
|
138
|
-
conditionalFormatting?: {
|
|
139
|
-
version: 1;
|
|
140
|
-
rules: {
|
|
141
|
-
id: string;
|
|
142
|
-
target: {
|
|
143
|
-
level: "row" | "cell";
|
|
144
|
-
matrix?: {
|
|
145
|
-
axis: "columns" | "rows";
|
|
146
|
-
levelId?: string | undefined;
|
|
147
|
-
oppositePath?: {
|
|
148
|
-
member: {
|
|
149
|
-
value: string | number | boolean | {
|
|
150
|
-
value: string;
|
|
151
|
-
type: "integer" | "decimal";
|
|
152
|
-
kind: "exact_number";
|
|
153
|
-
} | null;
|
|
154
|
-
kind: "value";
|
|
155
|
-
} | {
|
|
156
|
-
kind: "others";
|
|
157
|
-
rankingId: string;
|
|
158
|
-
};
|
|
159
|
-
levelId: string;
|
|
160
|
-
}[] | undefined;
|
|
161
|
-
} | undefined;
|
|
162
|
-
columnIds?: string[] | undefined;
|
|
163
|
-
conditionColumnId?: string | undefined;
|
|
164
|
-
applyToColumnIds?: string[] | undefined;
|
|
165
|
-
tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
|
|
166
|
-
rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
|
|
167
|
-
depth?: number | undefined;
|
|
168
|
-
includeTotals?: boolean | undefined;
|
|
169
|
-
includeSubtotals?: boolean | undefined;
|
|
170
|
-
};
|
|
171
|
-
condition: {
|
|
172
|
-
value: string | number | boolean | {
|
|
173
|
-
value: string;
|
|
174
|
-
type: "integer" | "decimal";
|
|
175
|
-
kind: "exact_number";
|
|
176
|
-
} | null;
|
|
177
|
-
kind: "comparison";
|
|
178
|
-
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
|
|
179
|
-
columnId: string;
|
|
180
|
-
} | {
|
|
181
|
-
kind: "between";
|
|
182
|
-
columnId: string;
|
|
183
|
-
min: string | number | boolean | {
|
|
184
|
-
value: string;
|
|
185
|
-
type: "integer" | "decimal";
|
|
186
|
-
kind: "exact_number";
|
|
187
|
-
} | null;
|
|
188
|
-
max: string | number | boolean | {
|
|
189
|
-
value: string;
|
|
190
|
-
type: "integer" | "decimal";
|
|
191
|
-
kind: "exact_number";
|
|
192
|
-
} | null;
|
|
193
|
-
inclusive?: boolean | undefined;
|
|
194
|
-
} | {
|
|
195
|
-
kind: "blank";
|
|
196
|
-
columnId: string;
|
|
197
|
-
isBlank: boolean;
|
|
198
|
-
} | {
|
|
199
|
-
value: string;
|
|
200
|
-
kind: "contains";
|
|
201
|
-
columnId: string;
|
|
202
|
-
exact?: boolean | undefined;
|
|
203
|
-
caseSensitive?: boolean | undefined;
|
|
204
|
-
} | {
|
|
205
|
-
kind: "topBottom";
|
|
206
|
-
count: number;
|
|
207
|
-
columnId: string;
|
|
208
|
-
direction: "top" | "bottom";
|
|
209
|
-
} | {
|
|
210
|
-
kind: "colorScale";
|
|
211
|
-
columnId: string;
|
|
212
|
-
range: "auto" | "manual";
|
|
213
|
-
colors: {
|
|
214
|
-
min: string;
|
|
215
|
-
max: string;
|
|
216
|
-
mid?: string | undefined;
|
|
217
|
-
};
|
|
218
|
-
min?: number | undefined;
|
|
219
|
-
max?: number | undefined;
|
|
220
|
-
mid?: number | undefined;
|
|
221
|
-
} | {
|
|
222
|
-
kind: "dataBar";
|
|
223
|
-
columnId: string;
|
|
224
|
-
range: "auto" | "manual";
|
|
225
|
-
color: string;
|
|
226
|
-
min?: number | undefined;
|
|
227
|
-
max?: number | undefined;
|
|
228
|
-
showValue?: boolean | undefined;
|
|
229
|
-
};
|
|
230
|
-
name?: string | undefined;
|
|
231
|
-
enabled?: boolean | undefined;
|
|
232
|
-
style?: {
|
|
233
|
-
dataBar?: {
|
|
234
|
-
color: string;
|
|
235
|
-
showValue: boolean;
|
|
236
|
-
} | undefined;
|
|
237
|
-
backgroundColor?: string | undefined;
|
|
238
|
-
textColor?: string | undefined;
|
|
239
|
-
fontWeight?: "normal" | "medium" | "semibold" | "bold" | undefined;
|
|
240
|
-
italic?: boolean | undefined;
|
|
241
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
242
|
-
icon?: "arrowUp" | "arrowDown" | "warning" | "check" | "x" | undefined;
|
|
243
|
-
} | undefined;
|
|
244
|
-
}[];
|
|
245
|
-
} | undefined;
|
|
66
|
+
levelFormats: Readonly<Record<string, SemaphorValueFormat>>;
|
|
67
|
+
measureFormats: Readonly<Record<string, SemaphorValueFormat>>;
|
|
246
68
|
};
|
|
247
|
-
version: 1;
|
|
248
69
|
spec: {
|
|
249
70
|
source: {
|
|
250
71
|
kind: "semantic";
|
|
@@ -257,11 +78,11 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
257
78
|
kind: "physical";
|
|
258
79
|
connectionId: string;
|
|
259
80
|
tableName: string;
|
|
81
|
+
dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
|
|
260
82
|
label?: string | undefined;
|
|
261
83
|
connectionType?: string | undefined;
|
|
262
84
|
databaseName?: string | undefined;
|
|
263
85
|
schemaName?: string | undefined;
|
|
264
|
-
dialect?: "postgres" | "mysql" | "mssql" | "snowflake" | "clickhouse" | "bigquery" | "redshift" | "duckdb" | "sqlite" | "unknown" | undefined;
|
|
265
86
|
};
|
|
266
87
|
columns: readonly import('../../shared/analytics-protocol/index.js').MatrixLevel[];
|
|
267
88
|
measures: readonly ({
|
|
@@ -303,8 +124,8 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
303
124
|
parent: readonly {
|
|
304
125
|
member: {
|
|
305
126
|
value: string | number | boolean | {
|
|
306
|
-
value: string;
|
|
307
127
|
type: "integer" | "decimal";
|
|
128
|
+
value: string;
|
|
308
129
|
kind: "exact_number";
|
|
309
130
|
} | null;
|
|
310
131
|
kind: "value";
|
|
@@ -328,6 +149,7 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
328
149
|
} | undefined;
|
|
329
150
|
measureFilters?: readonly import('../../shared/analytics-protocol/index.js').MatrixMeasureFilter[] | undefined;
|
|
330
151
|
};
|
|
152
|
+
version: 1;
|
|
331
153
|
defaultView: {
|
|
332
154
|
columns: {
|
|
333
155
|
depth: number;
|
|
@@ -335,8 +157,8 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
335
157
|
path: readonly {
|
|
336
158
|
member: {
|
|
337
159
|
value: string | number | boolean | {
|
|
338
|
-
value: string;
|
|
339
160
|
type: "integer" | "decimal";
|
|
161
|
+
value: string;
|
|
340
162
|
kind: "exact_number";
|
|
341
163
|
} | null;
|
|
342
164
|
kind: "value";
|
|
@@ -355,8 +177,8 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
355
177
|
path: readonly {
|
|
356
178
|
member: {
|
|
357
179
|
value: string | number | boolean | {
|
|
358
|
-
value: string;
|
|
359
180
|
type: "integer" | "decimal";
|
|
181
|
+
value: string;
|
|
360
182
|
kind: "exact_number";
|
|
361
183
|
} | null;
|
|
362
184
|
kind: "value";
|
|
@@ -397,7 +219,7 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
397
219
|
entityType: import('../types/explorer-types.js').EntityType;
|
|
398
220
|
expression?: string;
|
|
399
221
|
calculatedFormula?: import('../types/explorer-types.js').CalculatedFieldFormula;
|
|
400
|
-
format?:
|
|
222
|
+
format?: SemaphorValueFormat;
|
|
401
223
|
semanticTemporalPresentation?: import('../types/explorer-types.js').SemanticTemporalPresentation;
|
|
402
224
|
aggregate?: import('../types/explorer-types.js').AggregateFunction;
|
|
403
225
|
aggregateOrigin?: "default" | "explicit";
|
|
@@ -435,7 +257,7 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
435
257
|
entityType: import('../types/explorer-types.js').EntityType;
|
|
436
258
|
expression?: string;
|
|
437
259
|
calculatedFormula?: import('../types/explorer-types.js').CalculatedFieldFormula;
|
|
438
|
-
format?:
|
|
260
|
+
format?: SemaphorValueFormat;
|
|
439
261
|
semanticTemporalPresentation?: import('../types/explorer-types.js').SemanticTemporalPresentation;
|
|
440
262
|
aggregate?: import('../types/explorer-types.js').AggregateFunction;
|
|
441
263
|
aggregateOrigin?: "default" | "explicit";
|
|
@@ -474,7 +296,7 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
474
296
|
entityType: import('../types/explorer-types.js').EntityType;
|
|
475
297
|
expression?: string;
|
|
476
298
|
calculatedFormula?: import('../types/explorer-types.js').CalculatedFieldFormula;
|
|
477
|
-
format?:
|
|
299
|
+
format?: SemaphorValueFormat;
|
|
478
300
|
semanticTemporalPresentation?: import('../types/explorer-types.js').SemanticTemporalPresentation;
|
|
479
301
|
aggregateOrigin?: "default" | "explicit";
|
|
480
302
|
calculationRepresentation?: "inline-expression" | "manual" | "typed-derived";
|
|
@@ -31,4 +31,4 @@ export declare function matrixDeliveryOptions(allowDownload?: boolean, content?:
|
|
|
31
31
|
formats: ("csv" | "xlsx" | "pdf" | "png")[];
|
|
32
32
|
};
|
|
33
33
|
/** Matrix delivery requires an effective capture, never resident cells. */
|
|
34
|
-
export declare function resolveMatrixExportEngine(card: TCard | null | undefined, hasContext: boolean): "
|
|
34
|
+
export declare function resolveMatrixExportEngine(card: TCard | null | undefined, hasContext: boolean): "window" | "unavailable" | "ordinary";
|