react-semaphor 0.1.600 → 0.1.601
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 +9 -9
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +48 -45
- package/dist/chunks/{assistant-chat-BULOkG9j.js → assistant-chat-BE0XXzZP.js} +12 -12
- package/dist/chunks/{bookmark-impact-kdvXke8n.js → bookmark-impact-DXDAN5AY.js} +3 -3
- package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-BMyB3Tb6.js} +4 -4
- package/dist/chunks/{card-filter-builder-CSCdSQQy.js → card-filter-builder-CE0-YVN5.js} +9 -9
- package/dist/chunks/comparison-window-caption-Dxj2CHOa.js +741 -0
- package/dist/chunks/{dashboard-briefing-launcher-9YwUclHA.js → dashboard-briefing-launcher-CntwKyiZ.js} +13 -13
- package/dist/chunks/{dashboard-controls-O6PNXMCp.js → dashboard-controls-XO089DMg.js} +15 -15
- package/dist/chunks/{dashboard-json-Bxf91TYq.js → dashboard-json-CQRiydUv.js} +4 -4
- package/dist/chunks/{dashboard-y9ON19ge.js → dashboard-mJKPFRbb.js} +1 -1
- package/dist/chunks/{dates-DPTbpNxK.js → dates-B-Urp5OD.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-CKwaW8H_.js → edit-dashboard-visual-f-Dm-BLR.js} +176 -176
- package/dist/chunks/filter-line-CKNMyNTQ.js +703 -0
- package/dist/chunks/{filter-reach-copy-ClzNcNhP.js → filter-reach-copy-B8GGyVuR.js} +1441 -1270
- package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-CRtKecI5.js} +6 -6
- package/dist/chunks/{index-CRo5--Y6.js → index-DoPApnxg.js} +386 -360
- package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-CiSCZdIr.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-i9PQY066.js → matrix-analytical-definition-myf3D3Qx.js} +35 -35
- package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-g0c_NpDW.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract-C1SuOHLZ.js} +35 -35
- package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-Cm0G893W.js} +3 -3
- package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-DQIwqlck.js} +1 -1
- package/dist/chunks/{palette-DFIFf_-m.js → palette-Cun747Rg.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C1Dyx8du.js} +17 -17
- package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-CBS-ssEp.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-DN_l-Tss.js} +16 -16
- package/dist/chunks/{report-preferences-dialog-DiDsYpng.js → report-preferences-dialog-SDZEcG2x.js} +13 -13
- package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-BbedQdtc.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-BAv33KGg.js → resolve-dashboard-input-context-DRBS0eRa.js} +553 -553
- package/dist/chunks/{save-CWQ02kHo.js → save-Dj5bjm7P.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CvzYqADe.js → saved-dashboard-context-DWVlJcsa.js} +15 -15
- package/dist/chunks/{selection-filter-compiler-SwrBvyyJ.js → selection-filter-compiler-DmAr7yqC.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-1PRI9Yh2.js → semaphor-ready-indicator-OFOoAY-A.js} +16370 -16518
- package/dist/chunks/{shelf-drop-preview-context-BLk5Nc6K.js → shelf-drop-preview-context-2swWypXu.js} +5 -5
- package/dist/chunks/{stored-dashboard-xhYYKBsO.js → stored-dashboard-NtOuEX6a.js} +111 -111
- package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Qv4UcLAo.js} +2 -2
- package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-Do7ZB0_F.js} +1 -1
- package/dist/chunks/{token-types-CnlEiAdS.js → token-types-Dy_aXO-U.js} +1 -1
- package/dist/chunks/{upload-DsqUSS8l.js → upload-Bq-puSVy.js} +1 -1
- package/dist/chunks/{validators-D2Hm57lJ.js → validators-C7DFk3QK.js} +78 -78
- package/dist/chunks/{variable-draft-DcKj8T1b.js → variable-draft-Cy03qnEi.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +80 -75
- package/dist/format-utils/index.js +238 -237
- package/dist/index.js +18 -18
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +45 -4
- package/dist/types/briefings/index.d.ts +1 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/export-utils.d.ts +72 -0
- package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
- package/package.json +1 -1
- package/dist/chunks/comparison-window-caption-DJDwP9XO.js +0 -1309
- package/dist/chunks/filter-line-Dkg3yuOX.js +0 -134
|
@@ -4,7 +4,7 @@ import { BriefingAttachmentFormat } from './index.js';
|
|
|
4
4
|
* RA-D14). The app decides the code and writes the customer line; the run
|
|
5
5
|
* card reads both back from the run.
|
|
6
6
|
*/
|
|
7
|
-
export declare const BRIEFING_ATTACHMENT_OMISSION_CODES: readonly ["PDF_ROW_LIMIT_EXCEEDED", "PDF_SIZE_LIMIT_EXCEEDED", "PDF_PAGE_LIMIT_EXCEEDED", "TABLE_COMPLETENESS_UNVERIFIED", "CARD_QUERY_FAILED", "RENDER_NOT_READY", "RENDER_TIMED_OUT", "EXPORT_JOB_FAILED", "ATTACHMENT_UNAVAILABLE", "EXCEL_LIMIT_EXCEEDED", "EXPORT_ROW_LIMIT_EXCEEDED", "EXPORT_COUNT_UNAVAILABLE", "EXPORT_NO_ROWS", "IMAGE_TOO_LARGE", "DOCUMENT_PAGE_OVERFLOW", "DOCUMENT_ROW_LIMIT_EXCEEDED", "DOCUMENT_SECTION_SETUP", "REPORT_INPUTS_MISSING", "REPORT_NEEDS_RESAVE"];
|
|
7
|
+
export declare const BRIEFING_ATTACHMENT_OMISSION_CODES: readonly ["PDF_ROW_LIMIT_EXCEEDED", "PDF_SIZE_LIMIT_EXCEEDED", "PDF_PAGE_LIMIT_EXCEEDED", "TABLE_COMPLETENESS_UNVERIFIED", "CARD_QUERY_FAILED", "RENDER_NOT_READY", "RENDER_TIMED_OUT", "EXPORT_JOB_FAILED", "ATTACHMENT_UNAVAILABLE", "EXCEL_LIMIT_EXCEEDED", "EXPORT_ROW_LIMIT_EXCEEDED", "EXPORT_COUNT_UNAVAILABLE", "EXPORT_NO_ROWS", "CARD_FILE_LIMIT_EXCEEDED", "IMAGE_TOO_LARGE", "DOCUMENT_PAGE_OVERFLOW", "DOCUMENT_ROW_LIMIT_EXCEEDED", "DOCUMENT_SECTION_SETUP", "REPORT_INPUTS_MISSING", "REPORT_NEEDS_RESAVE"];
|
|
8
8
|
export type BriefingAttachmentOmissionCode = (typeof BRIEFING_ATTACHMENT_OMISSION_CODES)[number];
|
|
9
9
|
/** One left-out attachment, as recorded on the run and read by every channel. */
|
|
10
10
|
export type BriefingOmittedAttachment = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BriefingAttachment, BriefingAttachmentFormat } from './index.js';
|
|
1
|
+
import { BriefingAttachment, BriefingAttachmentFormat, BriefingAttachmentSettings } from './index.js';
|
|
2
|
+
import { MatrixConfig } from '../shared/analytics-protocol/index.js';
|
|
2
3
|
import { ExportFileFormat } from '../shared/format-utils/exporters/export-file-format.js';
|
|
3
4
|
import { TCard } from '../lib/types/common-types.js';
|
|
4
5
|
export type BriefingCardAttachmentCapability = {
|
|
@@ -14,10 +15,19 @@ export declare function getBriefingCardAttachmentCapability(card: TCard): Briefi
|
|
|
14
15
|
export declare function isBriefingTableExportCardType(cardType: string | undefined): boolean;
|
|
15
16
|
/** How a run makes an attachment (PNG exports SPEC §2.7). */
|
|
16
17
|
export type BriefingAttachmentProduction =
|
|
17
|
-
/** Drawn by the renderer from the print view (PDF
|
|
18
|
+
/** Drawn by the renderer from the print view (PDF and PNG). */
|
|
18
19
|
{
|
|
19
20
|
kind: 'rendered';
|
|
20
|
-
format: 'pdf' | 'png'
|
|
21
|
+
format: 'pdf' | 'png';
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A CSV the server writes from the card's one query, the file a viewer
|
|
25
|
+
* downloads: a chart, KPI or other card that is not a table or Matrix
|
|
26
|
+
* (card data attachments CD-D4).
|
|
27
|
+
*/
|
|
28
|
+
| {
|
|
29
|
+
kind: 'card_query';
|
|
30
|
+
format: 'csv';
|
|
21
31
|
}
|
|
22
32
|
/** A Matrix card's PDF, built from the Matrix capture. */
|
|
23
33
|
| {
|
|
@@ -28,13 +38,44 @@ export type BriefingAttachmentProduction =
|
|
|
28
38
|
kind: 'export_job';
|
|
29
39
|
format: ExportFileFormat;
|
|
30
40
|
};
|
|
41
|
+
/** What a card attachment takes from its card (card data attachments CD-D3). */
|
|
42
|
+
export type BriefingCardFacts = {
|
|
43
|
+
cardType: string;
|
|
44
|
+
/** The card's saved Matrix definition; null for any other card, or one that can't be read. */
|
|
45
|
+
matrixConfig: MatrixConfig | null;
|
|
46
|
+
};
|
|
47
|
+
/** The facts a card attachment is completed from, read from the card as it is served. */
|
|
48
|
+
export declare function readBriefingCardFacts(card: TCard): BriefingCardFacts;
|
|
49
|
+
/**
|
|
50
|
+
* A card attachment's settings completed from its card: the one place that
|
|
51
|
+
* fills the fields that decide how the attachment is made (card data
|
|
52
|
+
* attachments CD-D1, CD-D3). The editor, the server's save and every run
|
|
53
|
+
* call it, so an attachment saved by any client routes as the editor's does.
|
|
54
|
+
* The card type is always the card's current type; a Matrix card without
|
|
55
|
+
* Matrix settings gets its saved definition at its current layout, and Matrix
|
|
56
|
+
* settings on a card that is no longer a Matrix are dropped. Settings the
|
|
57
|
+
* author captured (the Matrix view, filters, controls) are kept. Pure.
|
|
58
|
+
*/
|
|
59
|
+
export declare function completeBriefingCardAttachmentSettings(settings: BriefingAttachmentSettings | undefined, facts: BriefingCardFacts): BriefingAttachmentSettings;
|
|
60
|
+
/**
|
|
61
|
+
* A card attachment completed from its card's facts; any other attachment,
|
|
62
|
+
* or a card attachment whose card is gone (`null`), is returned as it is.
|
|
63
|
+
* Completion never makes an attachment the contract refuses: an Excel file
|
|
64
|
+
* of a card that no longer has an export path (a table turned into a chart, a
|
|
65
|
+
* Matrix whose definition can't be read) is returned as saved, so the
|
|
66
|
+
* attachment policy refuses it on save and leaves it out of a run with its
|
|
67
|
+
* reason (card data attachments CD-D3, ledger P1-07).
|
|
68
|
+
*/
|
|
69
|
+
export declare function completeBriefingCardAttachment(attachment: BriefingAttachment, facts: BriefingCardFacts | null): BriefingAttachment;
|
|
31
70
|
/**
|
|
32
71
|
* How the run makes this attachment. The only place that decides it: a PNG
|
|
33
72
|
* is always rendered (a Matrix PNG too), a Matrix PDF comes from the Matrix
|
|
34
73
|
* capture, and a data file (CSV or Excel) of a Matrix with its capture, a
|
|
35
74
|
* Table or a Detail Table is a background export job (Excel exports SPEC
|
|
36
75
|
* §3.4, §3.5). Read by preparation, release, delivery access, the page route
|
|
37
|
-
* and the renderer adapter alike, so they always agree.
|
|
76
|
+
* and the renderer adapter alike, so they always agree. It reads the
|
|
77
|
+
* attachment as `completeBriefingCardAttachment` completed it from its card,
|
|
78
|
+
* never a type a client saved (card data attachments CD-D1).
|
|
38
79
|
*/
|
|
39
80
|
export declare function briefingAttachmentProduction(attachment: BriefingAttachment): BriefingAttachmentProduction;
|
|
40
81
|
/** Attachments a background export job makes before a run is finalized. */
|
|
@@ -5,7 +5,7 @@ import { CsvEncoding } from '../shared/format-utils/exporters/csv-utils.js';
|
|
|
5
5
|
export { captureMatrixExport, buildMatrixDeliveryEnvelope, matrixDeliveryPayloadSchema, matrixDeliveryQuerySchema, type MatrixLayoutReadResult } from '../shared/dashboard-authoring/matrix-delivery.js';
|
|
6
6
|
export declare const BRIEFING_KIND: "BRIEFING";
|
|
7
7
|
export { DEFAULT_BRIEFING_SCHEDULE, briefingScheduleMonths, briefingScheduleDayOccurs, briefingScheduleShortMonths, buildBriefingScheduleExpr, canonicalBriefingMonthDays, describeBriefingSchedule, isValidBriefingTimezone, nextBriefingScheduleDates, parseBriefingScheduleExpr, type BriefingScheduleFrequency, type BriefingScheduleMonthDay, type BriefingScheduleMonthInterval, type BriefingScheduleMonthlyOn, type BriefingScheduleOrdinal, type BriefingScheduleViewModel, } from './schedule.js';
|
|
8
|
-
export { briefingAttachmentFileTraits, briefingAttachmentFormatLabel, briefingAttachmentNeedsExportJob, briefingAttachmentProduction, type BriefingAttachmentFileTraits, type BriefingAttachmentProduction, getBriefingCardAttachmentCapability, getBriefingCardAttachmentFormats, getDefaultBriefingCardAttachmentFormat, isBriefingTableExportCardType, type BriefingCardAttachmentCapability, } from './attachments.js';
|
|
8
|
+
export { briefingAttachmentFileTraits, briefingAttachmentFormatLabel, briefingAttachmentNeedsExportJob, briefingAttachmentProduction, completeBriefingCardAttachment, completeBriefingCardAttachmentSettings, readBriefingCardFacts, type BriefingCardFacts, type BriefingAttachmentFileTraits, type BriefingAttachmentProduction, getBriefingCardAttachmentCapability, getBriefingCardAttachmentFormats, getDefaultBriefingCardAttachmentFormat, isBriefingTableExportCardType, type BriefingCardAttachmentCapability, } from './attachments.js';
|
|
9
9
|
export { BRIEFING_ATTACHMENT_OMISSION_CODES, isBriefingAttachmentOmissionCode, readBriefingOmittedAttachments, type BriefingAttachmentOmissionCode, type BriefingOmittedAttachment, } from './attachment-outcomes.js';
|
|
10
10
|
export { BRIEFING_RUN_CANCELLED_ERROR } from './run-outcomes.js';
|
|
11
11
|
export { BRIEFING_DELIVERY_OUTCOME_STATUSES, briefingDeliveryChannelOutcome, readBriefingDeliveryOutcome, type BriefingChannelDeliveryReport, type BriefingDeliveryChannelOutcome, type BriefingDeliveryOutcome, type BriefingDeliveryOutcomeChannel, type BriefingDeliveryOutcomeStatus, } from './delivery-outcome.js';
|
package/dist/types/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
2
|
-
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-
|
|
3
|
-
import { D as J } from "../chunks/token-types-
|
|
4
|
-
import { r as H, a as Z } from "../chunks/pivot-result-identity-
|
|
5
|
-
import { D as ee } from "../chunks/report-runtime-context-
|
|
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-BMyB3Tb6.js";
|
|
2
|
+
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-C7DFk3QK.js";
|
|
3
|
+
import { D as J } from "../chunks/token-types-Dy_aXO-U.js";
|
|
4
|
+
import { r as H, a as Z } from "../chunks/pivot-result-identity-CBS-ssEp.js";
|
|
5
|
+
import { D as ee } from "../chunks/report-runtime-context-BbedQdtc.js";
|
|
6
6
|
const e = [
|
|
7
7
|
"concatenate",
|
|
8
8
|
"conditional-category",
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { TCard } from './types/common-types.js';
|
|
2
|
+
import { ExportCell, ExportFileFormat, TableExportContent } from '../shared/format-utils/index.js';
|
|
3
|
+
import { CardConfig } from './types/explorer-types.js';
|
|
4
|
+
import { DashboardCardQueryRequestPayloadBase } from './query-context/build-dashboard-card-query-contract.js';
|
|
5
|
+
import { ReportRuntimeContext } from '../shared/report-runtime-context/index.js';
|
|
6
|
+
import { TableView } from './dashboard-viewer/table-view.js';
|
|
7
|
+
import { CardExportFileOptions, CardResultFacts } from '../shared/dashboard-authoring/card-export-request.js';
|
|
8
|
+
/** Everything a Table or Detail Table file needs in the browser. */
|
|
9
|
+
export type TableFileInput = {
|
|
10
|
+
card: TCard;
|
|
11
|
+
dashboardId: string;
|
|
12
|
+
title: string | null | undefined;
|
|
13
|
+
effectiveCardConfig?: CardConfig;
|
|
14
|
+
/** The card query the rows came from. */
|
|
15
|
+
query: DashboardCardQueryRequestPayloadBase;
|
|
16
|
+
reportContext: ReportRuntimeContext;
|
|
17
|
+
rows: readonly Record<string, unknown>[];
|
|
18
|
+
/** For a browser download, totalRows is rows.length. */
|
|
19
|
+
result: CardResultFacts;
|
|
20
|
+
/** The totals row to write: the server's totals, or (fast PDF only) totals summed from loaded rows for a card the server does not total. */
|
|
21
|
+
totalsByColumnId?: Record<string, unknown>;
|
|
22
|
+
file: CardExportFileOptions;
|
|
23
|
+
};
|
|
24
|
+
export type TableExportRefusal = {
|
|
25
|
+
status: 'refused';
|
|
26
|
+
reason: 'comparison_metadata_missing' | 'totals_unavailable';
|
|
27
|
+
/** Customer-facing. */
|
|
28
|
+
message: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const TABLE_EXPORT_REFUSAL_MESSAGES: Record<TableExportRefusal['reason'], string>;
|
|
31
|
+
/**
|
|
32
|
+
* The rows of a browser Table or Detail Table export, typed. Builds the
|
|
33
|
+
* formatting contract with the same request builder and executor assembly a
|
|
34
|
+
* background export uses, sorts rows when the table sorts in the browser,
|
|
35
|
+
* then formats with prepareTableExport. Used by buildTableFile and the fast
|
|
36
|
+
* PDF builder.
|
|
37
|
+
*/
|
|
38
|
+
export declare function buildTableExportContent(input: TableFileInput): {
|
|
39
|
+
status: 'ready';
|
|
40
|
+
content: TableExportContent;
|
|
41
|
+
totals?: ExportCell[];
|
|
42
|
+
/** The view the columns came from: its widths size the fast PDF (PLAN CW-INV-2). */
|
|
43
|
+
view: TableView;
|
|
44
|
+
} | {
|
|
45
|
+
status: 'empty';
|
|
46
|
+
} | TableExportRefusal;
|
|
47
|
+
/** A built export file, ready to save with downloadExportFile. */
|
|
48
|
+
export type ExportFile = {
|
|
49
|
+
format: ExportFileFormat;
|
|
50
|
+
fileName: string;
|
|
51
|
+
contentType: string;
|
|
52
|
+
/** Text (CSV), workbook bytes (Excel), or a file the server built (a direct Matrix CSV, saved as received). */
|
|
53
|
+
body: string | Uint8Array | Blob;
|
|
54
|
+
};
|
|
55
|
+
/** The one entry point for a Table or Detail Table file in the browser. */
|
|
56
|
+
export declare function buildTableFile(input: TableFileInput): Promise<{
|
|
57
|
+
status: 'ready';
|
|
58
|
+
file: ExportFile;
|
|
59
|
+
} | {
|
|
60
|
+
status: 'empty';
|
|
61
|
+
} | TableExportRefusal>;
|
|
62
|
+
/**
|
|
63
|
+
* A Table or Detail Table CSV from one query result, exactly the file
|
|
64
|
+
* `buildTableFile` writes: a viewer's download, and the server's file of a
|
|
65
|
+
* table it can't page (a metric comparison; card data attachments CD-D5).
|
|
66
|
+
*/
|
|
67
|
+
export declare function buildTableFileCsv(input: TableFileInput): {
|
|
68
|
+
status: 'ready';
|
|
69
|
+
body: string;
|
|
70
|
+
} | {
|
|
71
|
+
status: 'empty';
|
|
72
|
+
} | TableExportRefusal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { resolveDashboardTemporalActivation } from './grouped-temporal-activation.js';
|
|
2
|
+
import { resolveGroupedTemporalPresentation } from './grouped-temporal-presentation.js';
|
|
3
|
+
import { TemporalResultOwner } from '../../shared/dashboard-authoring/index.js';
|
|
4
|
+
export declare function resolveDashboardTemporalPresentation(input: Omit<Parameters<typeof resolveGroupedTemporalPresentation>[0], 'activation'>): import('./grouped-temporal-presentation.js').GroupedTemporalPresentation;
|
|
5
|
+
export declare function isDashboardTemporalResultCompatible(input: {
|
|
6
|
+
card: Parameters<typeof resolveDashboardTemporalActivation>[0]['card'];
|
|
7
|
+
cardConfig?: Parameters<typeof resolveDashboardTemporalActivation>[0]['cardConfig'];
|
|
8
|
+
result: unknown;
|
|
9
|
+
expectedResultOwner?: TemporalResultOwner;
|
|
10
|
+
}): boolean;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CsvDelimiter, CsvEncoding, ExportCell, TableExportContent } from '../format-utils/index.js';
|
|
2
|
+
import { GroupedTemporalPresentation } from '../../lib/formatters/grouped-temporal-presentation.js';
|
|
3
|
+
export type CardCsvFileOptions = {
|
|
4
|
+
includeHeaders?: boolean;
|
|
5
|
+
delimiter?: CsvDelimiter;
|
|
6
|
+
encoding?: CsvEncoding;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The CSV file for plain records (charts and other non-table cards, and the
|
|
10
|
+
* editor's raw download). Columns are the union of record keys in first-seen
|
|
11
|
+
* order, so a record missing a key gets an empty cell.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildRecordsCsv({ records, includeHeaders, delimiter, encoding, }: {
|
|
14
|
+
records: readonly Record<string, unknown>[];
|
|
15
|
+
} & CardCsvFileOptions): string;
|
|
16
|
+
/**
|
|
17
|
+
* A chart's, KPI's or other non-table card's CSV: its records, with grouped
|
|
18
|
+
* dates written as the card shows them (the export dialog's CSV, CD-D4). The
|
|
19
|
+
* presentation comes from `resolveDashboardTemporalPresentation` over the
|
|
20
|
+
* card, the config its result ran with and that result's columns.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildCardRecordsCsv(input: {
|
|
23
|
+
records: readonly Record<string, unknown>[];
|
|
24
|
+
presentation: GroupedTemporalPresentation | undefined;
|
|
25
|
+
file: CardCsvFileOptions;
|
|
26
|
+
}): string;
|
|
27
|
+
/** A table's formatted rows, and its totals row, as the CSV file. */
|
|
28
|
+
export declare function encodeTableExportCsv(content: TableExportContent, totals: ExportCell[] | undefined, file: {
|
|
29
|
+
delimiter: CsvDelimiter;
|
|
30
|
+
encoding: CsvEncoding;
|
|
31
|
+
}): string;
|
|
@@ -33,6 +33,9 @@ export * from './control-execution-contract.js';
|
|
|
33
33
|
export * from './resolved-primary-date-field-validation.js';
|
|
34
34
|
export * from './card-query-request.js';
|
|
35
35
|
export * from './card-export-request.js';
|
|
36
|
+
export * from './card-data-file.js';
|
|
37
|
+
export { buildTableFileCsv, type TableFileInput, type TableExportRefusal } from '../../lib/export-utils.js';
|
|
38
|
+
export { resolveDashboardTemporalPresentation } from '../../lib/formatters/dashboard-temporal-presentation.js';
|
|
36
39
|
export * from './calculated-field-identity.js';
|
|
37
40
|
export * from './calculated-field-placement.js';
|
|
38
41
|
export * from './matrix-control-resolution.js';
|