react-semaphor 0.1.606 → 0.1.608
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 +1 -1
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/add-to-dashboard-Bu3M9DpP.js +12 -0
- package/dist/chunks/appearance-provider-BBYTKSjL.js +613 -0
- package/dist/chunks/appearance-runtime-provider-De2VZS4F.js +1 -0
- package/dist/chunks/assistant-chat-x3NCrm5n.js +53 -0
- package/dist/chunks/attachment-filter-line-ClTS4GvQ.js +1 -0
- package/dist/chunks/{bookmark-impact-BW30cm5E.js → bookmark-impact-xCmo8x3V.js} +1 -1
- package/dist/chunks/bookmark-state-BmbBu1th.js +1 -0
- package/dist/chunks/{brand-CL5xDiFH.js → brand-3m_qSMyC.js} +1 -1
- package/dist/chunks/card-filter-builder-CM3SZ4kO.js +11 -0
- package/dist/chunks/check-input-C7S2sNzB.js +151 -0
- package/dist/chunks/{comparison-window-caption-tguyN24S.js → comparison-window-caption-WzGsqv4n.js} +1 -1
- package/dist/chunks/compiler-XErOfUUx.js +1 -0
- package/dist/chunks/context-Cwj8Axgd.js +2 -0
- package/dist/chunks/currency-presentation-binding-s4PlA3Wu.js +1 -0
- package/dist/chunks/custom-visual-inputs-CUtxCe4T.js +1 -0
- package/dist/chunks/custom-visual-write-CH-k-4HE.js +1 -0
- package/dist/chunks/{dashboard-Cyhj9EOl.js → dashboard-BwuurlUI.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CyOFddmD.js → dashboard-briefing-launcher-CX7mCnPi.js} +5 -5
- package/dist/chunks/{dashboard-controls-DpADfhr0.js → dashboard-controls-Bwjy9G1i.js} +8 -8
- package/dist/chunks/{dashboard-json-4xMChR2q.js → dashboard-json-B9lK28i0.js} +1 -1
- package/dist/chunks/dashboard-temporal-snapshot-CcndP6CF.js +1 -0
- package/dist/chunks/edit-dashboard-visual-BF3mfrWf.js +103 -0
- package/dist/chunks/{filter-line-WwUV5JzN.js → filter-line-W-qQAjke.js} +1 -1
- package/dist/chunks/filter-reach-preview-DSH_k8AJ.js +1 -0
- package/dist/chunks/{filter-value-text-DqTHe_vu.js → filter-value-text-DQwYZHz0.js} +1 -1
- package/dist/chunks/kpi-trend-rule-DDbguInc.js +1 -0
- package/dist/chunks/{layout-grid-Dtsioq4h.js → layout-grid-Bx0jBVXj.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-jn075ooo.js +1 -0
- package/dist/chunks/{matrix-member-presentation-vVAv-aqg.js → matrix-member-presentation-Chz6uGYz.js} +1 -1
- package/dist/chunks/matrix-operation-contract-DceN49RX.js +1 -0
- package/dist/chunks/metric-formatting-DILSVxLq.js +1 -0
- package/dist/chunks/{numeric-range-options-C8tr-Bls.js → numeric-range-options-Drc1EZ6H.js} +1 -1
- package/dist/chunks/{palette-565cA0nh.js → palette-CZJ4ZCY9.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-D_ane7I2.js +1 -0
- package/dist/chunks/{pivot-result-identity-B0eWVMXg.js → pivot-result-identity-DRhVJMsF.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BHQ-ldpW.js → raw-temporal-value-B4Md6Xfb.js} +1 -1
- package/dist/chunks/report-preferences-dialog-EQNoTych.js +1 -0
- package/dist/chunks/{report-runtime-context-Cd1b5pku.js → report-runtime-context-CkxgMKr6.js} +1 -1
- package/dist/chunks/resolve-dashboard-input-context-B5yUS9ZM.js +8 -0
- package/dist/chunks/sandbox-host-WJXxpvz7.js +197 -0
- package/dist/chunks/saved-dashboard-context-DQlA4Mg0.js +1 -0
- package/dist/chunks/{selection-filter-compiler-kYsRugss.js → selection-filter-compiler-BxtEEB6Z.js} +1 -1
- package/dist/chunks/semaphor-ready-indicator-Cq3C2SNo.js +622 -0
- package/dist/chunks/set-wWdhgHSh.js +1 -0
- package/dist/chunks/slider-C4jUvJtd.js +599 -0
- package/dist/chunks/stored-dashboard-1x0q2cNx.js +1 -0
- package/dist/chunks/table-cell-text-DFHUGeG6.js +1 -0
- package/dist/chunks/{table-export-sheet-xaczzWZF.js → table-export-sheet-CthBUHu4.js} +1 -1
- package/dist/chunks/{token-types-1vzMWjI-.js → token-types-BM0mpZce.js} +1 -1
- package/dist/chunks/{validators-Dg2kyF4_.js → validators-U8IL8djK.js} +1 -1
- package/dist/chunks/{variable-draft-CRbSYdB6.js → variable-draft-CwX-b6Fs.js} +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1 -1
- package/dist/extensions/index.js +1 -0
- package/dist/format-utils/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/assistant/assistant-store.d.ts +19 -0
- package/dist/types/components/assistant/use-assistant.d.ts +4 -0
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +2 -3
- package/dist/types/components/visual/data-table/table-cell-text.d.ts +93 -0
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
- package/dist/types/extensions.d.ts +2 -0
- package/dist/types/index.js +1 -1
- package/dist/types/lib/charts/types.d.ts +3 -1
- package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -2
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +12 -12
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +25 -25
- package/dist/types/lib/stores/dashboard-store.d.ts +33 -2
- package/dist/types/lib/stores/editor-store.d.ts +8 -0
- package/dist/types/lib/types/common-types.d.ts +3 -0
- package/dist/types/lib/utils/card-definition.d.ts +12 -12
- package/dist/types/lib/utils/card-type-change.d.ts +9 -0
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +6 -6
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +248 -248
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +2 -2
- package/dist/types/shared/assistant-protocol/context.d.ts +26 -26
- package/dist/types/shared/assistant-protocol/parts.d.ts +4 -0
- package/dist/types/shared/assistant-protocol/request.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-data-source/card-base.d.ts +16 -6
- package/dist/types/shared/dashboard-authoring/card-settings/custom-visual-write.d.ts +50 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/changes/custom-visual-change.d.ts +57 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +61 -54
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +5 -1
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +5 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +60 -60
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +48 -48
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +8 -2
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/table-sheet-shape.d.ts +8 -0
- package/dist/types/shared/extensions/check-audits.d.ts +30 -0
- package/dist/types/shared/extensions/check-findings.d.ts +46 -0
- package/dist/types/shared/extensions/check-input.d.ts +23 -0
- package/dist/types/shared/extensions/check-renders.d.ts +44 -0
- package/dist/types/shared/extensions/check-runner.d.ts +19 -0
- package/dist/types/shared/extensions/index.d.ts +17 -0
- package/dist/types/shared/extensions/read-document.d.ts +18 -0
- package/dist/types/shared/extensions/sandbox-host.d.ts +63 -0
- package/dist/types/shared/extensions/saved-refs.d.ts +33 -0
- package/dist/types/shared/extensions/script-policy.d.ts +11 -0
- package/dist/types/shared/extensions/types.d.ts +186 -0
- package/dist/types/shared/extensions/visual-contract.d.ts +38 -0
- package/dist/types/shared/extensions/visual-payload.d.ts +75 -0
- package/dist/types/shared/extensions/visual-theme.d.ts +21 -0
- package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +13 -6
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +2 -2
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +24 -24
- package/dist/types/shared/usage-events/details.d.ts +4 -4
- package/dist/types/shared/usage-events/envelope.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +7 -2
- package/dist/chunks/add-to-dashboard-CEmZUf9o.js +0 -12
- package/dist/chunks/appearance-provider-fIhJSX6y.js +0 -613
- package/dist/chunks/appearance-runtime-provider-Bx8H-moR.js +0 -1
- package/dist/chunks/assistant-chat-SBKSrrEA.js +0 -51
- package/dist/chunks/attachment-filter-line-C_zHMhGh.js +0 -1
- package/dist/chunks/bookmark-state-DScd31KT.js +0 -1
- package/dist/chunks/card-filter-builder-CzScSOQY.js +0 -11
- package/dist/chunks/context-CntvtZwC.js +0 -2
- package/dist/chunks/dashboard-temporal-snapshot-w3SMiPKj.js +0 -1
- package/dist/chunks/edit-dashboard-visual-DlvY7au4.js +0 -73
- package/dist/chunks/filter-reach-preview-DAEIyrEG.js +0 -1
- package/dist/chunks/kpi-trend-rule-N1Xkwe_u.js +0 -1
- package/dist/chunks/matrix-analytical-definition-5T-2euHZ.js +0 -1
- package/dist/chunks/matrix-operation-contract-CWvcEsQ0.js +0 -1
- package/dist/chunks/pivot-result-contract-expectations-BNWhS8mv.js +0 -1
- package/dist/chunks/report-preferences-dialog-B2ZGPS9t.js +0 -1
- package/dist/chunks/resolve-dashboard-input-context-SlAAe4GF.js +0 -8
- package/dist/chunks/saved-dashboard-context-Bc2SVDr-.js +0 -1
- package/dist/chunks/semaphor-ready-indicator-Bj-cjkz-.js +0 -612
- package/dist/chunks/set-CACXVM2A.js +0 -1
- package/dist/chunks/slider-CWze9OEM.js +0 -4
- package/dist/chunks/stored-dashboard-CcNdU-mG.js +0 -1
package/dist/surfboard/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,R as s,D as o}from"../chunks/report-preferences-dialog-
|
|
1
|
+
import{a,R as s,D as o}from"../chunks/report-preferences-dialog-EQNoTych.js";import{C as f,E as D}from"../chunks/bookmark-state-BmbBu1th.js";export{f as CONTROL_CARD_DEFAULT_VALUE,a as DisplayFormatPreferencesFields,D as EMPTY_SELECTION,s as ReportPreferencesDialog,o as Surfboard};
|
|
@@ -36,6 +36,16 @@ export type AssistantPanelState = {
|
|
|
36
36
|
* conversation there starts afresh (D10-6). The chat reacts to it once.
|
|
37
37
|
*/
|
|
38
38
|
freshConversationAt: number | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* A question asked from outside the panel (the card editor's Build, custom
|
|
41
|
+
* visuals EXT-D24): the chat sends it once, as the person's words, and
|
|
42
|
+
* clears it. `id` tells two asks of the same words apart.
|
|
43
|
+
*/
|
|
44
|
+
pendingAsk: {
|
|
45
|
+
id: number;
|
|
46
|
+
text: string;
|
|
47
|
+
send?: false;
|
|
48
|
+
} | undefined;
|
|
39
49
|
};
|
|
40
50
|
export type AssistantBesideSize = {
|
|
41
51
|
width: number;
|
|
@@ -53,6 +63,15 @@ export type AssistantStore = {
|
|
|
53
63
|
askAbout(focus: AssistantFocus, options?: {
|
|
54
64
|
beside?: boolean;
|
|
55
65
|
}): void;
|
|
66
|
+
/** Opens the panel in its layout and asks this question in the conversation (EXT-D24). */
|
|
67
|
+
askWith(text: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* Opens the panel with these words in the composer, not sent, for the
|
|
70
|
+
* person to finish (the Visual panel's Describe it, Rohit 2026-11-16).
|
|
71
|
+
*/
|
|
72
|
+
startWith(text: string): void;
|
|
73
|
+
/** The chat took the pending question (sent it, or put it in the composer). */
|
|
74
|
+
takePendingAsk(id: number): void;
|
|
56
75
|
/** Ends asking beside the card (Open in assistant, Show all, the card leaving the view): the stored layout from here on. */
|
|
57
76
|
leaveBeside(): void;
|
|
58
77
|
/** Also ends asking beside the card: there is no card to be beside. */
|
|
@@ -30,6 +30,10 @@ export type UseAssistantResult = {
|
|
|
30
30
|
askAbout(cardId: string, options?: {
|
|
31
31
|
beside?: boolean;
|
|
32
32
|
}): void;
|
|
33
|
+
/** Opens the panel and asks this question, as the person's words (the card editor's Build, custom visuals EXT-D24). */
|
|
34
|
+
askWith(text: string): void;
|
|
35
|
+
/** Opens the panel with these words in the composer, for the person to finish and send. */
|
|
36
|
+
startWith(text: string): void;
|
|
33
37
|
clearSelectedCard(): void;
|
|
34
38
|
};
|
|
35
39
|
/** Read where there is no provider; never written. */
|
|
@@ -46,7 +46,6 @@ export interface DataTableLogicProps {
|
|
|
46
46
|
paginationMetadata?: any;
|
|
47
47
|
onPaginationChange?: (pageIndex: number, pageSize: number) => void;
|
|
48
48
|
suppressSortControls?: boolean;
|
|
49
|
-
suppressCellHoverCards?: boolean;
|
|
50
49
|
headerTextClassName?: string;
|
|
51
50
|
headerWrapText?: boolean;
|
|
52
51
|
appearanceWrapText?: boolean;
|
|
@@ -110,9 +109,9 @@ export declare function useDataTableLogic(props: DataTableLogicProps): {
|
|
|
110
109
|
paginationMetadata: any;
|
|
111
110
|
contextTimezone: string | undefined;
|
|
112
111
|
browserTimezone: string;
|
|
113
|
-
valueFormatPreferences: import('../../../../shared/value-format-preferences/index.js').ResolvedValueFormatPreferences | null;
|
|
112
|
+
valueFormatPreferences: import('../../../../shared/value-format-preferences/index.js').ResolvedValueFormatPreferences | null | undefined;
|
|
114
113
|
resolveBoundCurrency: (target: import('../../../index.js').CurrencyPresentationTarget) => string | undefined;
|
|
115
|
-
temporalPresentation: import('../../../../lib/formatters/
|
|
114
|
+
temporalPresentation: import('../../../../lib/formatters/grouped-temporal-presentation.js').GroupedTemporalPresentation;
|
|
116
115
|
rawTemporalPresentation: RawTemporalPresentation | undefined;
|
|
117
116
|
usesDeclaredSqlRawTemporalPresentation: boolean;
|
|
118
117
|
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { TCard, CurrencyPresentationTarget } from '../../../lib/types/common-types.js';
|
|
2
|
+
import { QueryColumnKeyMap, CardConfig } from '../../../lib/types/explorer-types.js';
|
|
3
|
+
import { SemaphorResultColumn } from '../../../shared/analytics-protocol/index.js';
|
|
4
|
+
import { ResolvedValueFormatPreferences } from '../../../shared/value-format-preferences/index.js';
|
|
5
|
+
import { MeasureCanonicalFormat } from '../../../shared/format-utils/types/index.js';
|
|
6
|
+
import { resolveRegularTableTemporalPresentation, RegularTableTemporalPresentation } from '../../../lib/formatters/regular-table-temporal-presentation.js';
|
|
7
|
+
import { resolveCardRawTemporalPresentation, RawTemporalPresentation, RawTemporalPresentationState } from '../../../lib/formatters/raw-temporal-presentation.js';
|
|
8
|
+
import { ColumnSettingsMap } from './types/data-table.js';
|
|
9
|
+
export type TableCellTextInput = {
|
|
10
|
+
/** The card the table renders (`table` or `detailTable` for live numeric presentation). */
|
|
11
|
+
card?: TCard;
|
|
12
|
+
records: readonly Record<string, unknown>[];
|
|
13
|
+
/** The persisted column settings, normalized (`normalizePersistedColumnSettingsMap`). */
|
|
14
|
+
columnSettings: ColumnSettingsMap;
|
|
15
|
+
columnKeyMap?: QueryColumnKeyMap;
|
|
16
|
+
resultColumns?: readonly SemaphorResultColumn[];
|
|
17
|
+
valueFormatPreferences?: ResolvedValueFormatPreferences | null;
|
|
18
|
+
resolveBoundCurrency?: (target: CurrencyPresentationTarget) => string | undefined;
|
|
19
|
+
temporalPresentation?: RegularTableTemporalPresentation;
|
|
20
|
+
rawTemporalPresentation?: RawTemporalPresentation;
|
|
21
|
+
/** Keep SQL temporal strings raw until the author explicitly selects Date. */
|
|
22
|
+
inferTemporalColumnType?: boolean;
|
|
23
|
+
/** A SQL card's date columns are formatted here; a config card's come formatted. */
|
|
24
|
+
isSqlCard?: boolean;
|
|
25
|
+
contextTimezone?: string;
|
|
26
|
+
browserTimezone?: string;
|
|
27
|
+
};
|
|
28
|
+
export type TableCellText = ReturnType<typeof createTableCellText>;
|
|
29
|
+
type TemporalInput = Parameters<typeof resolveRegularTableTemporalPresentation>[0];
|
|
30
|
+
type RawTemporalInput = Parameters<typeof resolveCardRawTemporalPresentation>[0];
|
|
31
|
+
/**
|
|
32
|
+
* What a table reads from where it is shown to word its cells: the viewer's
|
|
33
|
+
* number and date preferences, bound currencies, time zone, and a print's
|
|
34
|
+
* presentation snapshot. `useTableTextContext` reads it on screen; without
|
|
35
|
+
* one (a server or a check), the defaults apply.
|
|
36
|
+
*/
|
|
37
|
+
export type TableTextContext = {
|
|
38
|
+
valueFormatPreferences?: ResolvedValueFormatPreferences | null;
|
|
39
|
+
resolveBoundCurrency?: (target: CurrencyPresentationTarget) => string | undefined;
|
|
40
|
+
temporalStylePreferences?: TemporalInput['valueFormatPreferences'];
|
|
41
|
+
rawTemporalPreferences?: ResolvedValueFormatPreferences;
|
|
42
|
+
contextTimezone?: string;
|
|
43
|
+
browserTimezone?: string;
|
|
44
|
+
executionSnapshot?: RawTemporalInput['executionSnapshot'];
|
|
45
|
+
dashboardId?: string;
|
|
46
|
+
attachmentIndex?: number;
|
|
47
|
+
};
|
|
48
|
+
/** A table's grouped and raw date presentations for one result, from its context. */
|
|
49
|
+
export declare function resolveTableDatePresentations(input: {
|
|
50
|
+
card: TCard;
|
|
51
|
+
effectiveCardConfig?: CardConfig;
|
|
52
|
+
records: readonly Record<string, unknown>[];
|
|
53
|
+
columns?: readonly SemaphorResultColumn[];
|
|
54
|
+
columnKeyMap?: QueryColumnKeyMap;
|
|
55
|
+
context: TableTextContext;
|
|
56
|
+
}): {
|
|
57
|
+
temporalPresentation: RegularTableTemporalPresentation;
|
|
58
|
+
rawTemporalState: RawTemporalPresentationState;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* What a table cell says, as text (custom visuals review P5C-02): the one
|
|
62
|
+
* owner of the table's cell text, read by the table's columns
|
|
63
|
+
* (`column-def.tsx`, which wraps it in links, badges and indicators) and by
|
|
64
|
+
* anything that must say the same, such as a custom visual's payload. The
|
|
65
|
+
* column's settings, its live number format (viewer preferences and bound
|
|
66
|
+
* currency), grouped and raw dates, and a SQL card's date settings.
|
|
67
|
+
*/
|
|
68
|
+
export declare function createTableCellText(input: TableCellTextInput): {
|
|
69
|
+
fieldLookup: (columnId: string) => import('../../../lib/table-formatting/table-presentation-fields.js').TableFieldLookup & {
|
|
70
|
+
columnId: string;
|
|
71
|
+
};
|
|
72
|
+
settingsOf: (columnId: string, fallbackColumnId?: string) => import('./types/data-table.js').ColumnSettings;
|
|
73
|
+
livePresentationInput: (columnId: string, metricId?: string) => {
|
|
74
|
+
lookup: import('../../../lib/table-formatting/table-presentation-fields.js').TableFieldLookup & {
|
|
75
|
+
columnId: string;
|
|
76
|
+
};
|
|
77
|
+
resolvedMetricId: string | undefined;
|
|
78
|
+
boundCurrency: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
numberFormatOf: (columnId: string) => MeasureCanonicalFormat | undefined;
|
|
81
|
+
formatNumber: (value: number, settings: ColumnSettingsMap[string], columnId: string) => string;
|
|
82
|
+
temporalLabel: (key: string, value: unknown) => string | undefined;
|
|
83
|
+
sqlDate: (value: unknown, settings: ColumnSettingsMap[string]) => {
|
|
84
|
+
text: string;
|
|
85
|
+
zoned: false;
|
|
86
|
+
} | {
|
|
87
|
+
text: string;
|
|
88
|
+
zoned: true;
|
|
89
|
+
timezone: string | undefined;
|
|
90
|
+
};
|
|
91
|
+
text: (key: string, value: unknown, columnId?: string) => string;
|
|
92
|
+
};
|
|
93
|
+
export {};
|
|
@@ -223,7 +223,6 @@ export interface DataTableProps {
|
|
|
223
223
|
onPaginationChange?: (pageIndex: number, pageSize: number) => void;
|
|
224
224
|
isLoading?: boolean;
|
|
225
225
|
suppressSortControls?: boolean;
|
|
226
|
-
suppressCellHoverCards?: boolean;
|
|
227
226
|
frameId?: string;
|
|
228
227
|
sheetId?: string;
|
|
229
228
|
onMultipleInteractions?: (matches: Interaction[], context: ClickContextResult, position?: {
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as t,z 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,y as p,x as D,o as A,h as I,q as _,w as F,v as S,m as b,n as L,l as f,p as N,k as y,s as R,u as h,i as g,r as x,t as M}from"../chunks/bookmark-state-
|
|
1
|
+
import{B as t,z 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,y as p,x as D,o as A,h as I,q as _,w as F,v as S,m as b,n as L,l as f,p as N,k as y,s as R,u as h,i as g,r as x,t as M}from"../chunks/bookmark-state-BmbBu1th.js";import{C as V,D as w,L as z,d as U,g as k,e as B,h as K,f as v,c as Y,a as q,i as G,b as P,n as Q,s as W}from"../chunks/validators-U8IL8djK.js";import{D as J}from"../chunks/token-types-BM0mpZce.js";import{r as H,a as Z}from"../chunks/pivot-result-identity-DRhVJMsF.js";import{D as ee}from"../chunks/report-runtime-context-CkxgMKr6.js";const e=["concatenate","conditional-category","date-part","date-difference","null-to-zero","safe-ratio","nested-conditional","membership-test","uppercase","lowercase","trim-whitespace","replace-text","first-characters","character-count","starts-with","number-to-text","start-of-month","start-of-quarter","start-of-year","year-number","add-days","round-number","round-down","round-up","absolute-value","cap-maximum","floor-minimum","fill-blanks","null-if-zero","is-blank"];export{t as BOOKMARK_STATE_VERSION,r as BOOKMARK_VISIBILITIES,V as CALCULATED_FIELD_ENTITY_MARKER,e as CALCULATED_FIELD_TEMPLATE_IDS,l as CONTROL_CARD_DEFAULT_VALUE,w as DATE_FORMAT_VALUES,ee as DEFAULT_CALENDAR_CONTEXT,J as DEFAULT_SEMANTIC_DOMAIN_ACCESS,o as EMPTY_SELECTION,z as LEGACY_CALCULATED_FIELD_ENTITY_MARKER,i as VIEWER_LIMITS,n as VIEWER_TABLE_SETTINGS_VERSION,d as collectDatasetNamesFromExplorerField,m as collectDatasetNamesFromFilterGroup,u as collectExecutionDatasetNamesFromExplorerField,c as collectPreferredDatasetNamesFromExplorerField,E as collectQualifiedDatasetNamesFromExplorerField,C as datasetRefFromSource,T as dependencyDisplayIdentity,U as getCalculatedFieldComputeStage,p as getCustomizableTableCardIds,k as getFieldRuntimeColumnName,D as getSortableTableCardIds,B as hasCalculatedFieldMarker,K as hasCalculatedFormulaInputs,A as hasColumnCustomization,v as hasSyntheticCalculatedFieldOwner,I as humanizeDatasetName,Y as inspectCalculatedField,q as isCalculatedDimension,G as isCalculatedMetric,P as isDerivedField,_ as isEmptyViewerTableSettings,F as isTableCardCustomizable,S as isTableCardSortable,b as measureJsonBytes,Q as normalizeCalculatedFieldRepresentation,L as normalizeTableColumnOrder,f as normalizeViewerTableSettings,N as parseBookmarkState,y as parseTableColumnId,R as parseViewerTableSettings,h as parseViewerTableSettingsMap,g as readBookmarkState,x as resolveFieldDatasetDependencies,H as resolveQueryColumnKeyMapEntry,Z as resolveUniqueQueryColumnKeyMapEntry,W as shouldDropInheritedCalculationAggregate,M as toTableColumnId};
|
|
@@ -52,7 +52,9 @@ export type BlurEffectProps = {
|
|
|
52
52
|
/** The chart's mode, from its `ChartTheme` (CT-1). */
|
|
53
53
|
mode?: 'light' | 'dark';
|
|
54
54
|
};
|
|
55
|
-
export type TChartType = 'bar' | 'horizontalBar' | 'line' | 'area' | 'stackedArea' | 'combo' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'matrixTable' | 'detailTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom'
|
|
55
|
+
export type TChartType = 'bar' | 'horizontalBar' | 'line' | 'area' | 'stackedArea' | 'combo' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'bubble' | 'scatter' | 'stackedBar' | 'stackedLine' | 'table' | 'matrixTable' | 'detailTable' | 'kpi' | 'pyramid' | 'tornado' | 'range' | 'text' | 'funnel' | 'bullet' | 'heatmap' | 'treemap' | 'custom'
|
|
56
|
+
/** A custom visual 2.0: sandboxed HTML drawing the card's own result (custom visuals Plan 1, EXT-D2). */
|
|
57
|
+
| 'customVisual';
|
|
56
58
|
export { TABLE_CHART_TYPES, isTableChartType };
|
|
57
59
|
export declare function isChartJsVisualType(chartType: TChartType | string | undefined | null): boolean;
|
|
58
60
|
export declare const REGULAR_TABLE_SETTINGS_CHART_TYPES: readonly ["table", "matrixTable", "detailTable"];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TCard, TDashboard, TFrame } from '../types/common-types.js';
|
|
2
|
-
import { CardConfig } from '../types/explorer-types.js';
|
|
3
2
|
export type SemanticDatasetReference = {
|
|
4
3
|
domainId: string;
|
|
5
4
|
datasetName: string;
|
|
@@ -17,7 +16,6 @@ export declare function findBySemanticDatasetReferenceCandidate<TDataset extends
|
|
|
17
16
|
export declare function getSemanticDatasetPayloadLookupNames<TDataset extends SemanticDatasetIdentityLike>(datasets: TDataset[] | undefined, dataset: TDataset): string[];
|
|
18
17
|
export declare function collectCardSemanticDatasetReferences(card: TCard | undefined): SemanticDatasetReference[];
|
|
19
18
|
export declare function collectFrameSemanticDatasetReferences(frame: TFrame | undefined): SemanticDatasetReference[];
|
|
20
|
-
export declare function resolveEffectiveCardSemanticDatasetReference(card: TCard | undefined, cardConfig?: CardConfig): SemanticDatasetReference | null;
|
|
21
19
|
export declare function findDashboardFrameById(dashboard: TDashboard | undefined, frameId: string | undefined): TFrame | null;
|
|
22
20
|
export declare function haveMatchingSemanticDatasetReferences(left: SemanticDatasetReference[], right: SemanticDatasetReference[]): boolean;
|
|
23
21
|
export declare function haveMatchingFrameSemanticDatasetReferences(left: TFrame | undefined, right: TFrame | undefined): boolean;
|
|
@@ -25,29 +25,29 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
25
25
|
presentation: {
|
|
26
26
|
totals: {
|
|
27
27
|
columns: {
|
|
28
|
-
grand: {
|
|
29
|
-
visible: boolean;
|
|
30
|
-
position: "before" | "after";
|
|
31
|
-
label?: string | undefined;
|
|
32
|
-
};
|
|
33
28
|
levels: Readonly<Record<string, {
|
|
34
|
-
visible: boolean;
|
|
35
29
|
position: "before" | "after";
|
|
30
|
+
visible: boolean;
|
|
36
31
|
label?: string | undefined;
|
|
37
32
|
}>>;
|
|
38
|
-
skipRedundant?: boolean | undefined;
|
|
39
|
-
};
|
|
40
|
-
rows: {
|
|
41
33
|
grand: {
|
|
42
|
-
visible: boolean;
|
|
43
34
|
position: "before" | "after";
|
|
35
|
+
visible: boolean;
|
|
44
36
|
label?: string | undefined;
|
|
45
37
|
};
|
|
38
|
+
skipRedundant?: boolean | undefined;
|
|
39
|
+
};
|
|
40
|
+
rows: {
|
|
46
41
|
levels: Readonly<Record<string, {
|
|
47
|
-
visible: boolean;
|
|
48
42
|
position: "before" | "after";
|
|
43
|
+
visible: boolean;
|
|
49
44
|
label?: string | undefined;
|
|
50
45
|
}>>;
|
|
46
|
+
grand: {
|
|
47
|
+
position: "before" | "after";
|
|
48
|
+
visible: boolean;
|
|
49
|
+
label?: string | undefined;
|
|
50
|
+
};
|
|
51
51
|
skipRedundant?: boolean | undefined;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
@@ -138,8 +138,8 @@ export declare function prepareMatrixCard(card: TCard, catalog: MatrixCardCatalo
|
|
|
138
138
|
}[];
|
|
139
139
|
};
|
|
140
140
|
levelId: string;
|
|
141
|
-
axis: "columns" | "rows";
|
|
142
141
|
direction: "asc" | "desc";
|
|
142
|
+
axis: "columns" | "rows";
|
|
143
143
|
nulls: "last" | "first";
|
|
144
144
|
}[];
|
|
145
145
|
rankings: readonly import('../../shared/analytics-protocol/index.js').MatrixRanking[];
|
|
@@ -66,8 +66,8 @@ export declare function buildMatrixDeliveryPayload(input: {
|
|
|
66
66
|
}[];
|
|
67
67
|
};
|
|
68
68
|
levelId: string;
|
|
69
|
-
axis: "columns" | "rows";
|
|
70
69
|
direction: "asc" | "desc";
|
|
70
|
+
axis: "columns" | "rows";
|
|
71
71
|
nulls: "last" | "first";
|
|
72
72
|
}[] | undefined;
|
|
73
73
|
runtimeFilters?: import('../types/explorer-types.js').FilterGroup | undefined;
|
|
@@ -91,29 +91,29 @@ export declare function buildMatrixDeliveryPayload(input: {
|
|
|
91
91
|
presentation: {
|
|
92
92
|
totals: {
|
|
93
93
|
columns: {
|
|
94
|
-
grand: {
|
|
95
|
-
visible: boolean;
|
|
96
|
-
position: "before" | "after";
|
|
97
|
-
label?: string | undefined;
|
|
98
|
-
};
|
|
99
94
|
levels: Readonly<Record<string, {
|
|
100
|
-
visible: boolean;
|
|
101
95
|
position: "before" | "after";
|
|
96
|
+
visible: boolean;
|
|
102
97
|
label?: string | undefined;
|
|
103
98
|
}>>;
|
|
104
|
-
skipRedundant?: boolean | undefined;
|
|
105
|
-
};
|
|
106
|
-
rows: {
|
|
107
99
|
grand: {
|
|
108
|
-
visible: boolean;
|
|
109
100
|
position: "before" | "after";
|
|
101
|
+
visible: boolean;
|
|
110
102
|
label?: string | undefined;
|
|
111
103
|
};
|
|
104
|
+
skipRedundant?: boolean | undefined;
|
|
105
|
+
};
|
|
106
|
+
rows: {
|
|
112
107
|
levels: Readonly<Record<string, {
|
|
113
|
-
visible: boolean;
|
|
114
108
|
position: "before" | "after";
|
|
109
|
+
visible: boolean;
|
|
115
110
|
label?: string | undefined;
|
|
116
111
|
}>>;
|
|
112
|
+
grand: {
|
|
113
|
+
position: "before" | "after";
|
|
114
|
+
visible: boolean;
|
|
115
|
+
label?: string | undefined;
|
|
116
|
+
};
|
|
117
117
|
skipRedundant?: boolean | undefined;
|
|
118
118
|
};
|
|
119
119
|
};
|
|
@@ -205,8 +205,8 @@ export declare function buildMatrixDeliveryPayload(input: {
|
|
|
205
205
|
}[];
|
|
206
206
|
};
|
|
207
207
|
levelId: string;
|
|
208
|
-
axis: "columns" | "rows";
|
|
209
208
|
direction: "asc" | "desc";
|
|
209
|
+
axis: "columns" | "rows";
|
|
210
210
|
nulls: "last" | "first";
|
|
211
211
|
}[];
|
|
212
212
|
rankings: readonly import('../../shared/analytics-protocol/index.js').MatrixRanking[];
|
|
@@ -266,29 +266,29 @@ export declare function buildMatrixDeliveryPayload(input: {
|
|
|
266
266
|
presentation: {
|
|
267
267
|
totals: {
|
|
268
268
|
columns: {
|
|
269
|
-
grand: {
|
|
270
|
-
visible: boolean;
|
|
271
|
-
position: "before" | "after";
|
|
272
|
-
label?: string | undefined;
|
|
273
|
-
};
|
|
274
269
|
levels: Readonly<Record<string, {
|
|
275
|
-
visible: boolean;
|
|
276
270
|
position: "before" | "after";
|
|
271
|
+
visible: boolean;
|
|
277
272
|
label?: string | undefined;
|
|
278
273
|
}>>;
|
|
279
|
-
skipRedundant?: boolean | undefined;
|
|
280
|
-
};
|
|
281
|
-
rows: {
|
|
282
274
|
grand: {
|
|
283
|
-
visible: boolean;
|
|
284
275
|
position: "before" | "after";
|
|
276
|
+
visible: boolean;
|
|
285
277
|
label?: string | undefined;
|
|
286
278
|
};
|
|
279
|
+
skipRedundant?: boolean | undefined;
|
|
280
|
+
};
|
|
281
|
+
rows: {
|
|
287
282
|
levels: Readonly<Record<string, {
|
|
288
|
-
visible: boolean;
|
|
289
283
|
position: "before" | "after";
|
|
284
|
+
visible: boolean;
|
|
290
285
|
label?: string | undefined;
|
|
291
286
|
}>>;
|
|
287
|
+
grand: {
|
|
288
|
+
position: "before" | "after";
|
|
289
|
+
visible: boolean;
|
|
290
|
+
label?: string | undefined;
|
|
291
|
+
};
|
|
292
292
|
skipRedundant?: boolean | undefined;
|
|
293
293
|
};
|
|
294
294
|
};
|
|
@@ -380,8 +380,8 @@ export declare function buildMatrixDeliveryPayload(input: {
|
|
|
380
380
|
}[];
|
|
381
381
|
};
|
|
382
382
|
levelId: string;
|
|
383
|
-
axis: "columns" | "rows";
|
|
384
383
|
direction: "asc" | "desc";
|
|
384
|
+
axis: "columns" | "rows";
|
|
385
385
|
nulls: "last" | "first";
|
|
386
386
|
}[];
|
|
387
387
|
rankings: readonly import('../../shared/analytics-protocol/index.js').MatrixRanking[];
|
|
@@ -29,6 +29,11 @@ import { ResolvedValueFormatPreferenceSources, ResolvedValueFormatPreferences }
|
|
|
29
29
|
import { DashboardNavigationEntry, DashboardNavigationState, DashboardTransientContextScope, InsightRenderRequest, NavigationRejection } from '../dashboard-navigation/index.js';
|
|
30
30
|
import { CardTableSearch, CardDateZoom, CardGrainPick, CardViewStateMap, DrillStep } from '../dashboard-view-state/index.js';
|
|
31
31
|
import { DashboardCardPaginationState } from '../dashboard-pagination/dashboard-card-pagination.js';
|
|
32
|
+
import { SavedCustomVisual } from '../../shared/extensions/saved-refs.js';
|
|
33
|
+
/** What a host's save tells the dashboard back. */
|
|
34
|
+
export type DashboardSaveOutcome = {
|
|
35
|
+
customVisuals?: SavedCustomVisual[];
|
|
36
|
+
};
|
|
32
37
|
export declare function mergeSemanticExecutionPayloadIntoTarget(target: SemanticExecutionPayload, incoming?: SemanticExecutionPayload): void;
|
|
33
38
|
/** What the "Variable from data" dialog opens on (data variables DV-D26). */
|
|
34
39
|
export type VariableEditorRequest = {
|
|
@@ -284,7 +289,11 @@ export type DashboardStore = {
|
|
|
284
289
|
pendingDrillThrough: DashboardNavigationEntry | null;
|
|
285
290
|
onEvent?: (event: TEvent) => void;
|
|
286
291
|
onDashboardLifecycleEvent?: (event: DashboardLifecycleEvent) => void;
|
|
287
|
-
|
|
292
|
+
/**
|
|
293
|
+
* The host's save. It may return what the save made of the dashboard's
|
|
294
|
+
* custom visual drafts, which the toolbar applies (`applySavedCustomVisuals`).
|
|
295
|
+
*/
|
|
296
|
+
onSaveFunction?: (dashboard: TDashboard, description?: string) => void | Promise<void | DashboardSaveOutcome>;
|
|
288
297
|
onAddFrame?: (card: TFrame, sheetId: string) => void;
|
|
289
298
|
onAcceptChanges?: (frame: TFrame, dashboard: TDashboard) => void;
|
|
290
299
|
onUpdateCard?: (card: TCard, sheetId: string) => void;
|
|
@@ -402,6 +411,20 @@ type Actions = {
|
|
|
402
411
|
*/
|
|
403
412
|
hydrateRuntimeControlValues: (dashboard: TDashboard, runtimeOverrides?: Record<string, unknown>) => ViewerBaseline | null;
|
|
404
413
|
mergeSemanticExecutionPayload: (semanticExecutionPayload: SemanticExecutionPayload) => void;
|
|
414
|
+
/**
|
|
415
|
+
* Lands a change in the card being edited, if that is still where it goes
|
|
416
|
+
* (custom visuals EXT-D25, review P5D-05): the editor still open on the
|
|
417
|
+
* same draft of the same dashboard. One synchronous step: it checks the
|
|
418
|
+
* destination, merges the metadata the change loaded and adopts the card
|
|
419
|
+
* (the editor's `adoptCard` keeps its tab and mode), or does nothing and
|
|
420
|
+
* says why.
|
|
421
|
+
*/
|
|
422
|
+
adoptIntoEditedCard: (input: {
|
|
423
|
+
draft: TCard;
|
|
424
|
+
dashboard: TDashboard | null | undefined;
|
|
425
|
+
changed: TCard;
|
|
426
|
+
semanticExecutionPayload?: SemanticExecutionPayload;
|
|
427
|
+
}) => 'adopted' | 'closed' | 'changed';
|
|
405
428
|
setDashboardTheme: (theme: 'light' | 'dark' | 'system') => void;
|
|
406
429
|
setDashboardTitle: (title: string) => void;
|
|
407
430
|
setDashboardDescription: (description: string) => void;
|
|
@@ -524,6 +547,14 @@ type Actions = {
|
|
|
524
547
|
setIsDashboardEditing: (editing: boolean) => void;
|
|
525
548
|
/** The toolbar's Save succeeded: the edit session's changes are saved (LC-D14). */
|
|
526
549
|
markDashboardSaved: () => void;
|
|
550
|
+
/**
|
|
551
|
+
* After a save: each custom visual draft the save made into a version is
|
|
552
|
+
* replaced by its reference, so the next save names the same visual
|
|
553
|
+
* (EXT-D3). `sent` is the dashboard the save sent; a draft changed since
|
|
554
|
+
* stays a draft. Returns what was saved (`sent` with the references), the
|
|
555
|
+
* toolbar's saved baseline.
|
|
556
|
+
*/
|
|
557
|
+
applySavedCustomVisuals: (saved: readonly SavedCustomVisual[] | undefined, sent: TDashboard) => TDashboard;
|
|
527
558
|
/**
|
|
528
559
|
* Applies an assistant proposal to the dashboard on screen (spec 8.1,
|
|
529
560
|
* D7-18, D7-27): only while the dashboard is still `basedOn`, checked and
|
|
@@ -544,7 +575,7 @@ type Actions = {
|
|
|
544
575
|
clearAdHocFilterValues: () => void;
|
|
545
576
|
/** Clears every filter's value on every target, and every ad-hoc value (a card popover's Clear all). */
|
|
546
577
|
clearAllFilterValues: () => void;
|
|
547
|
-
setOnSaveFunction: (onSaveFunction:
|
|
578
|
+
setOnSaveFunction: (onSaveFunction: NonNullable<DashboardStore['onSaveFunction']>) => void;
|
|
548
579
|
setOnAddCard: (onAddCard: (card: TCard, sheetId: string) => void) => void;
|
|
549
580
|
setOnAcceptChanges: (onAcceptChanges: (frame: TFrame, dashboard: TDashboard) => void) => void;
|
|
550
581
|
setOnUpdateCard: (onUpdateCard: (card: TCard, sheetId: string) => void) => void;
|
|
@@ -200,6 +200,14 @@ type Actions = TableActions & ExplorerActions & {
|
|
|
200
200
|
setFilterOnClickField: (field: string) => void;
|
|
201
201
|
setIsSqlRunning: (isSqlRunning: boolean) => void;
|
|
202
202
|
setCard: (card: TCard) => void;
|
|
203
|
+
/**
|
|
204
|
+
* A card written from outside the editor (the assistant's change to the
|
|
205
|
+
* card being edited, custom visuals EXT-D25): the editor shows and saves
|
|
206
|
+
* it as it is. The draft and its tab take it; when it holds SQL where the
|
|
207
|
+
* editor was in fields, or the reverse, the mode follows the card, as on
|
|
208
|
+
* opening, so Save keeps what landed (EM-3, EM-4). Other tabs keep theirs.
|
|
209
|
+
*/
|
|
210
|
+
adoptCard: (card: TCard) => void;
|
|
203
211
|
/** Shows a card from outside the editor (the dashboard, a document): a load, not an edit of the card it replaces. */
|
|
204
212
|
loadCard: (card: TCard) => void;
|
|
205
213
|
setFrame: (frame: TFrame) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CustomVisualCardSpec } from '../../shared/extensions/types.js';
|
|
1
2
|
import { CardViewStateMap } from '../dashboard-view-state/index.js';
|
|
2
3
|
import { TFilter, TFilterValue, Operation, TCustomFilterPreferences, DateSelectionMode, DefaultDateFilter, FilterFieldMeta, FilterSemanticContext } from '../../components/surfboard/filter/types.js';
|
|
3
4
|
import { TChartType } from '../charts/types.js';
|
|
@@ -1396,6 +1397,8 @@ export type TCard = {
|
|
|
1396
1397
|
customCfg?: any;
|
|
1397
1398
|
preferences?: TCardPreferences;
|
|
1398
1399
|
customCardPreferences?: TCustomCardPreferences;
|
|
1400
|
+
/** Set when `type` is `'customVisual'`: the extension version it draws with, or an unsaved draft (custom visuals Plan 1, EXT-D2, EXT-D3). */
|
|
1401
|
+
customVisual?: CustomVisualCardSpec;
|
|
1399
1402
|
lastSelectedDatabase?: string;
|
|
1400
1403
|
lastSelectedDatamodelId?: string;
|
|
1401
1404
|
lastSelectedSchema?: string;
|
|
@@ -33,29 +33,29 @@ export declare function getCardDefinition(card: DefinitionCard, catalog?: Matrix
|
|
|
33
33
|
presentation: {
|
|
34
34
|
totals: {
|
|
35
35
|
columns: {
|
|
36
|
-
grand: {
|
|
37
|
-
visible: boolean;
|
|
38
|
-
position: "before" | "after";
|
|
39
|
-
label?: string | undefined;
|
|
40
|
-
};
|
|
41
36
|
levels: Readonly<Record<string, {
|
|
42
|
-
visible: boolean;
|
|
43
37
|
position: "before" | "after";
|
|
38
|
+
visible: boolean;
|
|
44
39
|
label?: string | undefined;
|
|
45
40
|
}>>;
|
|
46
|
-
skipRedundant?: boolean | undefined;
|
|
47
|
-
};
|
|
48
|
-
rows: {
|
|
49
41
|
grand: {
|
|
50
|
-
visible: boolean;
|
|
51
42
|
position: "before" | "after";
|
|
43
|
+
visible: boolean;
|
|
52
44
|
label?: string | undefined;
|
|
53
45
|
};
|
|
46
|
+
skipRedundant?: boolean | undefined;
|
|
47
|
+
};
|
|
48
|
+
rows: {
|
|
54
49
|
levels: Readonly<Record<string, {
|
|
55
|
-
visible: boolean;
|
|
56
50
|
position: "before" | "after";
|
|
51
|
+
visible: boolean;
|
|
57
52
|
label?: string | undefined;
|
|
58
53
|
}>>;
|
|
54
|
+
grand: {
|
|
55
|
+
position: "before" | "after";
|
|
56
|
+
visible: boolean;
|
|
57
|
+
label?: string | undefined;
|
|
58
|
+
};
|
|
59
59
|
skipRedundant?: boolean | undefined;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
@@ -146,8 +146,8 @@ export declare function getCardDefinition(card: DefinitionCard, catalog?: Matrix
|
|
|
146
146
|
}[];
|
|
147
147
|
};
|
|
148
148
|
levelId: string;
|
|
149
|
-
axis: "columns" | "rows";
|
|
150
149
|
direction: "asc" | "desc";
|
|
150
|
+
axis: "columns" | "rows";
|
|
151
151
|
nulls: "last" | "first";
|
|
152
152
|
}[];
|
|
153
153
|
rankings: readonly import('../../shared/analytics-protocol/matrix-definition-contract.js').MatrixRanking[];
|
|
@@ -32,6 +32,15 @@ export type CardTypeChange = {
|
|
|
32
32
|
droppedPreferences: readonly (keyof TCardPreferences)[];
|
|
33
33
|
crossedMatrixBoundary: boolean;
|
|
34
34
|
forcesSqlMode: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the card runs the same query after the change (custom visuals
|
|
37
|
+
* review P5D-03): the same fields on the same shelves, the same sorts,
|
|
38
|
+
* filters, Matrix definition, SQL and Python. Only a change that keeps
|
|
39
|
+
* it may pass on a card whose query an agent can't read (EXT-D32).
|
|
40
|
+
*/
|
|
41
|
+
queryKept: boolean;
|
|
42
|
+
/** The card's fields the change takes off it, by label (a KPI keeps a date and up to three measures). */
|
|
43
|
+
droppedFields: readonly string[];
|
|
35
44
|
};
|
|
36
45
|
/**
|
|
37
46
|
* The one decision of what changing a card's type does (ledger H-2). Every
|
|
@@ -24,7 +24,7 @@ export declare const dateGrainReportSchema: z.ZodObject<{
|
|
|
24
24
|
automaticGrain: z.ZodEnum<["hour", "day", "week", "month", "quarter", "year"]>;
|
|
25
25
|
holdsTime: z.ZodBoolean;
|
|
26
26
|
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
grainSource: "
|
|
27
|
+
grainSource: "automatic" | "card";
|
|
28
28
|
automaticGrain: "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
29
29
|
holdsTime: boolean;
|
|
30
30
|
window?: {
|
|
@@ -32,7 +32,7 @@ export declare const dateGrainReportSchema: z.ZodObject<{
|
|
|
32
32
|
endExclusive: string;
|
|
33
33
|
} | undefined;
|
|
34
34
|
}, {
|
|
35
|
-
grainSource: "
|
|
35
|
+
grainSource: "automatic" | "card";
|
|
36
36
|
automaticGrain: "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
37
37
|
holdsTime: boolean;
|
|
38
38
|
window?: {
|
|
@@ -63,7 +63,6 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
|
|
|
63
63
|
signDisplay: z.ZodOptional<z.ZodEnum<["auto", "always", "exceptZero", "never"]>>;
|
|
64
64
|
}, "strict", z.ZodTypeAny, {
|
|
65
65
|
type: "number" | "currency" | "percent" | "scientific";
|
|
66
|
-
compact?: boolean | undefined;
|
|
67
66
|
currency?: string | undefined;
|
|
68
67
|
scale?: number | undefined;
|
|
69
68
|
minimumFractionDigits?: number | undefined;
|
|
@@ -72,11 +71,11 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
|
|
|
72
71
|
prefix?: string | undefined;
|
|
73
72
|
suffix?: string | undefined;
|
|
74
73
|
negativeStyle?: "minus" | "parentheses" | undefined;
|
|
74
|
+
compact?: boolean | undefined;
|
|
75
75
|
percentValueMode?: "fraction" | "whole" | undefined;
|
|
76
76
|
signDisplay?: "auto" | "always" | "exceptZero" | "never" | undefined;
|
|
77
77
|
}, {
|
|
78
78
|
type: "number" | "currency" | "percent" | "scientific";
|
|
79
|
-
compact?: boolean | undefined;
|
|
80
79
|
currency?: string | undefined;
|
|
81
80
|
scale?: number | undefined;
|
|
82
81
|
minimumFractionDigits?: number | undefined;
|
|
@@ -85,11 +84,11 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
|
|
|
85
84
|
prefix?: string | undefined;
|
|
86
85
|
suffix?: string | undefined;
|
|
87
86
|
negativeStyle?: "minus" | "parentheses" | undefined;
|
|
87
|
+
compact?: boolean | undefined;
|
|
88
88
|
percentValueMode?: "fraction" | "whole" | undefined;
|
|
89
89
|
signDisplay?: "auto" | "always" | "exceptZero" | "never" | undefined;
|
|
90
90
|
}>, {
|
|
91
91
|
type: "number" | "currency" | "percent" | "scientific";
|
|
92
|
-
compact?: boolean | undefined;
|
|
93
92
|
currency?: string | undefined;
|
|
94
93
|
scale?: number | undefined;
|
|
95
94
|
minimumFractionDigits?: number | undefined;
|
|
@@ -98,11 +97,11 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
|
|
|
98
97
|
prefix?: string | undefined;
|
|
99
98
|
suffix?: string | undefined;
|
|
100
99
|
negativeStyle?: "minus" | "parentheses" | undefined;
|
|
100
|
+
compact?: boolean | undefined;
|
|
101
101
|
percentValueMode?: "fraction" | "whole" | undefined;
|
|
102
102
|
signDisplay?: "auto" | "always" | "exceptZero" | "never" | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
type: "number" | "currency" | "percent" | "scientific";
|
|
105
|
-
compact?: boolean | undefined;
|
|
106
105
|
currency?: string | undefined;
|
|
107
106
|
scale?: number | undefined;
|
|
108
107
|
minimumFractionDigits?: number | undefined;
|
|
@@ -111,6 +110,7 @@ export declare const semaphorNumericValueFormatSchema: z.ZodEffects<z.ZodObject<
|
|
|
111
110
|
prefix?: string | undefined;
|
|
112
111
|
suffix?: string | undefined;
|
|
113
112
|
negativeStyle?: "minus" | "parentheses" | undefined;
|
|
113
|
+
compact?: boolean | undefined;
|
|
114
114
|
percentValueMode?: "fraction" | "whole" | undefined;
|
|
115
115
|
signDisplay?: "auto" | "always" | "exceptZero" | "never" | undefined;
|
|
116
116
|
}>;
|