react-semaphor 0.1.515 → 0.1.516
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.cjs +1 -1
- package/dist/analytics-protocol/index.js +226 -225
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +8 -8
- package/dist/chunks/{calculated-field-identity-BiTGmnST.cjs → calculated-field-identity-5bg9oHTw.cjs} +1 -1
- package/dist/chunks/{calculated-field-identity-DnRd4YIY.js → calculated-field-identity-DzJBs2J8.js} +4 -4
- package/dist/chunks/{card-config-utils-B2cDWQqB.js → card-config-utils-Cxnq2R6z.js} +14 -14
- package/dist/chunks/{card-config-utils-CMO4_zVs.cjs → card-config-utils-z86y6tSq.cjs} +1 -1
- package/dist/chunks/column-bands-CU0byntA.cjs +1 -0
- package/dist/chunks/column-bands-RdM-kjDe.js +47 -0
- package/dist/chunks/{dashboard-briefing-launcher-BA_bl05p.js → dashboard-briefing-launcher-BCEHJ_eD.js} +15 -12
- package/dist/chunks/{dashboard-briefing-launcher-B7zqm8P1.cjs → dashboard-briefing-launcher-CjZ4aE34.cjs} +2 -2
- package/dist/chunks/{dashboard-controls-QMW17RKx.js → dashboard-controls-DFfit5KH.js} +12 -12
- package/dist/chunks/{dashboard-controls-x_v9wLOU.cjs → dashboard-controls-f9aJ70Zu.cjs} +1 -1
- package/dist/chunks/{dashboard-date-comparison-definition-D7Bl-YAl.js → dashboard-date-comparison-definition-BqNhECUr.js} +6 -6
- package/dist/chunks/{dashboard-date-comparison-definition-C_w-GO_5.cjs → dashboard-date-comparison-definition-Y6JZwpcr.cjs} +1 -1
- package/dist/chunks/{dashboard-json-DRnpkNwO.js → dashboard-json-DVtcA02f.js} +7 -7
- package/dist/chunks/{dashboard-json-0ZLLBlHj.cjs → dashboard-json-deqQC-UR.cjs} +1 -1
- package/dist/chunks/edit-dashboard-visual-DK6lSC_p.cjs +172 -0
- package/dist/chunks/{edit-dashboard-visual-1ISjhwry.js → edit-dashboard-visual-lJ6rDH3w.js} +4338 -4324
- package/dist/chunks/{editor-action-buttons-BTCKZERI.js → editor-action-buttons-Bnxxa439.js} +7 -7
- package/dist/chunks/{editor-action-buttons-Czq5SnA9.cjs → editor-action-buttons-CmDaQbPN.cjs} +1 -1
- package/dist/chunks/{field-aggregations-CzuQKtqx.js → field-aggregations-Dl2A3rbV.js} +461 -358
- package/dist/chunks/field-aggregations-pH_3kymD.cjs +1 -0
- package/dist/chunks/{field-dependencies-DIab72rQ.cjs → field-dependencies-EB485TdB.cjs} +1 -1
- package/dist/chunks/{field-dependencies-DXW4jtvJ.js → field-dependencies-v-lJNzC7.js} +1 -1
- package/dist/chunks/{index-Dlic9KZs.js → index-BVVl2JDK.js} +57730 -54586
- package/dist/chunks/index-DfqMtR9S.cjs +4 -0
- package/dist/chunks/index-UNKSfi7s.cjs +1434 -0
- package/dist/chunks/{index-v1OE4-eA.js → index-ylOpKRDu.js} +877 -849
- package/dist/chunks/{matrix-analytical-definition-Ct5Tu8np.cjs → matrix-analytical-definition-BWd159lN.cjs} +1 -1
- package/dist/chunks/{matrix-analytical-definition-BDAK2aEi.js → matrix-analytical-definition-BimC4XIV.js} +1 -1
- package/dist/chunks/{matrix-card-U4c72doZ.cjs → matrix-card-C2RjEYZ8.cjs} +1 -1
- package/dist/chunks/{matrix-card-DOIeTmjh.js → matrix-card-CIlz0Dnp.js} +2 -2
- package/dist/chunks/{matrix-control-sources-FjxGIbqk.cjs → matrix-control-sources-BvEJF7d3.cjs} +1 -1
- package/dist/chunks/{matrix-control-sources-BxKH2yu2.js → matrix-control-sources-KbZe1gj_.js} +51 -51
- package/dist/chunks/{matrix-definition-CBJW_4ii.cjs → matrix-definition-DanUT11P.cjs} +1 -1
- package/dist/chunks/{matrix-definition-I9rHB9zN.js → matrix-definition-E5gXXSTZ.js} +1 -1
- package/dist/chunks/matrix-formatter-BJTO8ky9.cjs +1 -0
- package/dist/chunks/{matrix-formatter-BdIsE7Qu.js → matrix-formatter-CCXNRt3s.js} +81 -81
- package/dist/chunks/{matrix-member-presentation-DO1VSqfh.js → matrix-member-presentation-Bw7-JCrr.js} +64 -64
- package/dist/chunks/matrix-member-presentation-DvXDEo0U.cjs +1 -0
- package/dist/chunks/{matrix-operation-contract-DoiWTUbT.cjs → matrix-operation-contract-0RxoU_M3.cjs} +1 -1
- package/dist/chunks/{matrix-operation-contract-D0HfzwZg.js → matrix-operation-contract-D32U2CSw.js} +19 -19
- package/dist/chunks/{metric-comparison-Dqc7_tnW.js → metric-comparison-BphoJ9bq.js} +1 -1
- package/dist/chunks/{metric-comparison-DBQ3EJTz.cjs → metric-comparison-CUmltzpz.cjs} +1 -1
- package/dist/chunks/pivot-header-presentation-BSZhB1g-.js +661 -0
- package/dist/chunks/pivot-header-presentation-EoUS5ze5.cjs +5 -0
- package/dist/chunks/{pivot-result-identity-8M-bZrw9.js → pivot-result-identity-BzUQiCEV.js} +4 -4
- package/dist/chunks/{pivot-result-identity-uTiylUNr.cjs → pivot-result-identity-gquWljbd.cjs} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-vg_suUNb.cjs → pivot-result-lifecycle-gl9cBfB-.cjs} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-CEmyU2At.js → pivot-result-lifecycle-kRhiJkzg.js} +8 -8
- package/dist/chunks/{raw-temporal-Bj6_w9cG.js → raw-temporal-BqOfk-xN.js} +16 -16
- package/dist/chunks/{raw-temporal-contract-CFLGwTiI.js → raw-temporal-contract-BQZIJ1fn.js} +1 -1
- package/dist/chunks/{raw-temporal-contract-DECbTuzA.cjs → raw-temporal-contract-CklMVG_1.cjs} +1 -1
- package/dist/chunks/{raw-temporal-CeblVJbu.cjs → raw-temporal-eJXecCyJ.cjs} +1 -1
- package/dist/chunks/{report-preferences-dialog-b8J6KjSy.js → report-preferences-dialog-CHXPEl7v.js} +6 -6
- package/dist/chunks/{report-preferences-dialog-Dr1BYwuf.cjs → report-preferences-dialog-Cto0vDwI.cjs} +1 -1
- package/dist/chunks/{report-runtime-context-Cs65Mrxj.js → report-runtime-context-CxIoGyNM.js} +1 -1
- package/dist/chunks/{report-runtime-context-DzvHBPxl.cjs → report-runtime-context-CzSrCBsu.cjs} +1 -1
- package/dist/chunks/{selection-reducer-BIiQXbGM.js → selection-reducer-CvCBQbl2.js} +1 -1
- package/dist/chunks/{selection-reducer-CGKKsaPa.cjs → selection-reducer-Kl22OzIk.cjs} +1 -1
- package/dist/chunks/{semantic-format-Dt-nUxFB.js → semantic-format-DwqGYx4V.js} +2 -2
- package/dist/chunks/{semantic-format-DFI1iszk.cjs → semantic-format-mVI32OJH.cjs} +1 -1
- package/dist/chunks/{source-entity-resolution-D7vnmDwm.js → source-entity-resolution-Bzefiive.js} +7 -7
- package/dist/chunks/{source-entity-resolution-CjbgnwyX.cjs → source-entity-resolution-R46X34SE.cjs} +1 -1
- package/dist/chunks/switch-DNbWXEOP.cjs +134 -0
- package/dist/chunks/{switch-D5_tjsIS.js → switch-DNv-hVmt.js} +8230 -7681
- package/dist/chunks/{temporal-bucket-B9hMwemw.js → temporal-bucket-DlFuhCnT.js} +6 -6
- package/dist/chunks/{temporal-bucket-contract-IWDgyTMw.js → temporal-bucket-contract-DTLDRzgV.js} +1 -1
- package/dist/chunks/{temporal-bucket-contract-ZctiyXYk.cjs → temporal-bucket-contract-nTv6gvX5.cjs} +1 -1
- package/dist/chunks/{token-types-Dl0hcKBX.js → token-types-BC6RcUY8.js} +1 -1
- package/dist/chunks/{token-types-Ahh5u4iT.cjs → token-types-aWrzwonf.cjs} +1 -1
- package/dist/chunks/{update-policy-COjFudhl.cjs → update-policy-DRDLWe7Y.cjs} +1 -1
- package/dist/chunks/{update-policy-BeQqjupC.js → update-policy-DhAUtiC8.js} +2 -2
- package/dist/chunks/{validators-CkHsAvwB.js → validators-CsdOtZI6.js} +411 -397
- package/dist/chunks/validators-DFeDcdpA.cjs +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +233 -227
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +3 -3
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +1 -1
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +5 -5
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.cjs +3 -3
- package/dist/format-utils/index.js +291 -402
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -15
- package/dist/pdf-table-layout/index.cjs +1 -0
- package/dist/pdf-table-layout/index.js +993 -0
- package/dist/report-runtime-context/index.cjs +1 -1
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/index.d.ts +1 -1
- package/dist/types/components/document-sheet/document-input-bar.d.ts +1 -3
- package/dist/types/components/document-sheet/document-insert-picker.d.ts +37 -0
- package/dist/types/components/document-sheet/document-kpi-section.d.ts +17 -0
- package/dist/types/components/document-sheet/document-matrix-layout-context.d.ts +10 -0
- package/dist/types/components/document-sheet/document-matrix-section.d.ts +27 -0
- package/dist/types/components/document-sheet/document-measure-layer.d.ts +45 -0
- package/dist/types/components/document-sheet/document-outline.d.ts +7 -1
- package/dist/types/components/document-sheet/document-page-navigation.d.ts +22 -0
- package/dist/types/components/document-sheet/document-page.d.ts +9 -5
- package/dist/types/components/document-sheet/document-panel/document-side-panel.d.ts +36 -0
- package/dist/types/components/document-sheet/document-panel/inputs-panel.d.ts +9 -0
- package/dist/types/components/document-sheet/document-panel/page-panel.d.ts +5 -0
- package/dist/types/components/document-sheet/document-panel/panel-controls.d.ts +14 -0
- package/dist/types/components/document-sheet/document-panel/region-panels.d.ts +11 -0
- package/dist/types/components/document-sheet/document-panel/section-panel.d.ts +25 -0
- package/dist/types/components/document-sheet/document-section-print-boundary.d.ts +9 -0
- package/dist/types/components/document-sheet/document-table-chrome.d.ts +22 -0
- package/dist/types/components/document-sheet/document-table-section.d.ts +3 -7
- package/dist/types/components/document-sheet/document-text-preview-context.d.ts +8 -0
- package/dist/types/components/document-sheet/use-first-fitting-variant.d.ts +18 -0
- package/dist/types/components/editor/editor-main/dashboard-variable-node.d.ts +12 -2
- package/dist/types/components/explorer/chart-configuration/matrix-authoring-controls.d.ts +7 -2
- package/dist/types/components/text-variables/variable-chip-plugin.d.ts +23 -0
- package/dist/types/components/text-variables/variable-chip.d.ts +18 -0
- package/dist/types/components/text-variables/variable-picker.d.ts +27 -0
- package/dist/types/components/visual/settings/table-presentation-settings.d.ts +27 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-inputs/text-variable-options.d.ts +15 -0
- package/dist/types/lib/document/document-canvas-actions.d.ts +22 -0
- package/dist/types/lib/document/document-edits.d.ts +119 -0
- package/dist/types/lib/document/document-kpi-figure.d.ts +27 -0
- package/dist/types/lib/document/document-kpi-layout.d.ts +29 -0
- package/dist/types/lib/document/document-kpi-section-edits.d.ts +15 -0
- package/dist/types/lib/document/document-matrix-bands.d.ts +66 -0
- package/dist/types/lib/document/document-matrix-print.d.ts +11 -0
- package/dist/types/lib/document/document-pagination.d.ts +56 -3
- package/dist/types/lib/document/document-panel-target.d.ts +19 -0
- package/dist/types/lib/document/document-section-editor.d.ts +8 -7
- package/dist/types/lib/document/document-section-kinds.d.ts +49 -0
- package/dist/types/lib/document/document-section-query-options.d.ts +25 -0
- package/dist/types/lib/document/document-section-render-state.d.ts +26 -0
- package/dist/types/lib/document/document-section-utils.d.ts +11 -4
- package/dist/types/lib/document/document-table-dom.d.ts +4 -6
- package/dist/types/lib/document/document-table-pagination-model.d.ts +0 -5
- package/dist/types/lib/document/document-table-print-model.d.ts +4 -3
- package/dist/types/lib/document/document-table-style.d.ts +15 -4
- package/dist/types/lib/document/document-table-surface.d.ts +15 -0
- package/dist/types/lib/document/document-variables.d.ts +40 -6
- package/dist/types/lib/document/use-document-section-data.d.ts +39 -0
- package/dist/types/lib/document/use-measured-document-table-layout.d.ts +50 -0
- package/dist/types/lib/formatters/kpi-result-values.d.ts +20 -0
- package/dist/types/lib/hooks/query-context/use-dashboard-card-execution-snapshot.d.ts +8 -2
- package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +6 -0
- package/dist/types/lib/hooks/use-dashboard-kpi-actions.d.ts +1 -1
- package/dist/types/lib/hooks/use-document-section-editor.d.ts +2 -2
- package/dist/types/lib/hooks/use-document-section-session.d.ts +36 -0
- package/dist/types/lib/hooks/use-editor-preview.d.ts +17 -0
- package/dist/types/lib/hooks/use-is-editing-card.d.ts +7 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -0
- package/dist/types/lib/matrix-table/matrix-layout-read.d.ts +68 -0
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +8 -1
- package/dist/types/lib/query-context/build-dashboard-frame-base-query-contexts.d.ts +4 -2
- package/dist/types/lib/query-context/card-execution.d.ts +30 -0
- package/dist/types/lib/query-context/document-section-card-query.d.ts +37 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +12 -8
- package/dist/types/lib/stores/editor-store.d.ts +2 -0
- package/dist/types/lib/text-variables/text-variable-types.d.ts +39 -0
- package/dist/types/lib/types/common-types.d.ts +34 -1
- package/dist/types/lib/utils/card-definition.d.ts +2 -0
- package/dist/types/lib/utils/card-utils.d.ts +13 -6
- package/dist/types/pdf-table-layout.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +45 -0
- package/dist/types/shared/analytics-protocol/matrix-member-presentation.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +56 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +36 -1
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +5 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +690 -1
- package/dist/types/shared/format-utils/matrix-print.d.ts +38 -0
- package/dist/types/shared/format-utils/pdf-table-layout/column-bands.d.ts +55 -0
- package/dist/types/shared/format-utils/pdf-table-layout/index.d.ts +6 -0
- package/dist/types/shared/format-utils/pdf-table-layout/page-size.d.ts +7 -0
- package/dist/types/shared/format-utils/pdf-table-layout/table-column-semantics.d.ts +106 -0
- package/dist/types/shared/format-utils/pdf-table-layout/table-column-widths.d.ts +13 -0
- package/dist/types/shared/format-utils/pdf-table-layout/table-page-geometry.d.ts +19 -0
- package/dist/types/shared/format-utils/pdf-table-layout/wide-table-layout.d.ts +46 -0
- package/dist/types/shared/format-utils/table-structure.d.ts +9 -0
- package/package.json +6 -1
- package/dist/chunks/edit-dashboard-visual-CI0EqzKj.cjs +0 -172
- package/dist/chunks/field-aggregations-jSi77h9Z.cjs +0 -1
- package/dist/chunks/index-BMMXKK3G.cjs +0 -4
- package/dist/chunks/index-C6_xef4P.cjs +0 -1424
- package/dist/chunks/matrix-formatter-Dajj91Ni.cjs +0 -1
- package/dist/chunks/matrix-member-presentation-CFHjdrxT.cjs +0 -1
- package/dist/chunks/pivot-header-presentation-BIf4HW3L.js +0 -414
- package/dist/chunks/pivot-header-presentation-B_N11CgN.cjs +0 -5
- package/dist/chunks/switch-Ced9ZZwI.cjs +0 -134
- package/dist/chunks/validators-DVYAnnX0.cjs +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DocumentSection, TCard, TDashboard } from '../../lib/types/common-types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The one traversal of cards inside Document sections, shared by the package
|
|
4
|
+
* and the app. Read with `getDocumentSectionCards`, rewrite with
|
|
5
|
+
* `mapDocumentSectionCards`, and list every executable card with
|
|
6
|
+
* `listDashboardCardLocations`.
|
|
7
|
+
*
|
|
8
|
+
* These accept the V1 document shape (`document.sections`) only. Raw stored
|
|
9
|
+
* templates, including the V2 `document.body.sections` fallback, are checked
|
|
10
|
+
* by the app's structural validator before they reach these helpers.
|
|
11
|
+
*/
|
|
12
|
+
/** Most cards a KPI section holds. */
|
|
13
|
+
export declare const DOCUMENT_KPI_SECTION_MAX_CARDS = 8;
|
|
14
|
+
/** Most cards a KPI section in the `tiles` layout may hold. More need `lines`. */
|
|
15
|
+
export declare const DOCUMENT_KPI_SECTION_MAX_TILES = 6;
|
|
16
|
+
/** Every card a section owns, in display order: `[card]` for table and chart, `cards` for KPI. */
|
|
17
|
+
export declare function getDocumentSectionCards(section: DocumentSection): readonly TCard[];
|
|
18
|
+
/**
|
|
19
|
+
* The same section with each card mapped. Returns the input section when no
|
|
20
|
+
* card changed, so callers can compare by reference.
|
|
21
|
+
*/
|
|
22
|
+
export declare function mapDocumentSectionCards(section: DocumentSection, map: (card: TCard) => TCard): DocumentSection;
|
|
23
|
+
/** Where an executable card lives in a dashboard. */
|
|
24
|
+
export type DashboardCardLocation = {
|
|
25
|
+
kind: 'sheetCard';
|
|
26
|
+
sheetId: string;
|
|
27
|
+
cardId: string;
|
|
28
|
+
card: TCard;
|
|
29
|
+
} | {
|
|
30
|
+
kind: 'frameCard';
|
|
31
|
+
sheetId: string;
|
|
32
|
+
frameId: string;
|
|
33
|
+
cardId: string;
|
|
34
|
+
card: TCard;
|
|
35
|
+
} | {
|
|
36
|
+
kind: 'documentSectionCard';
|
|
37
|
+
sheetId: string;
|
|
38
|
+
sectionId: string;
|
|
39
|
+
cardId: string;
|
|
40
|
+
card: TCard;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Every executable card location in a dashboard, sheet by sheet: sheet cards,
|
|
44
|
+
* then frame cards, then document section cards (every KPI card included).
|
|
45
|
+
*/
|
|
46
|
+
export declare function listDashboardCardLocations(dashboard: Pick<TDashboard, 'sheets'>): readonly DashboardCardLocation[];
|
|
47
|
+
export type DocumentSectionShapeIssue = {
|
|
48
|
+
/** Path relative to the section, for example `cards[2].type`. Empty for the section itself. */
|
|
49
|
+
path: string;
|
|
50
|
+
message: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Structural rules for a stored KPI section, for persistence boundaries that
|
|
54
|
+
* receive untrusted JSON. Returns no issues for a valid section.
|
|
55
|
+
*/
|
|
56
|
+
export declare function getDocumentKpiSectionShapeIssues(section: unknown): DocumentSectionShapeIssue[];
|
|
@@ -10,6 +10,7 @@ export * from './temporal-result-owner.js';
|
|
|
10
10
|
export * from './temporal-bucket-authoring.js';
|
|
11
11
|
export * from './canonical-result-keys.js';
|
|
12
12
|
export * from './dashboard-card-source-index.js';
|
|
13
|
+
export * from './document-section-cards.js';
|
|
13
14
|
export * from './dashboard-filter-mapping-types.js';
|
|
14
15
|
export * from './dashboard-filter-automatic-target.js';
|
|
15
16
|
export * from './dashboard-filter-sql-subscription.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { MatrixConfig,
|
|
2
|
+
import { MatrixConfig, MatrixExportLayout, MatrixExportRequest, MatrixExportRow, MatrixFailure, MatrixViewState } from '../analytics-protocol/index.js';
|
|
3
3
|
import { ReportRuntimeContext } from '../report-runtime-context/index.js';
|
|
4
4
|
export type MatrixExportContent = 'current' | 'all' | 'flat';
|
|
5
5
|
export declare function captureMatrixExport(input: {
|
|
@@ -23,6 +23,7 @@ export declare function captureMatrixExport(input: {
|
|
|
23
23
|
position: "before" | "after";
|
|
24
24
|
label?: string | undefined;
|
|
25
25
|
}>>;
|
|
26
|
+
skipRedundant?: boolean | undefined;
|
|
26
27
|
};
|
|
27
28
|
rows: {
|
|
28
29
|
grand: {
|
|
@@ -35,6 +36,7 @@ export declare function captureMatrixExport(input: {
|
|
|
35
36
|
position: "before" | "after";
|
|
36
37
|
label?: string | undefined;
|
|
37
38
|
}>>;
|
|
39
|
+
skipRedundant?: boolean | undefined;
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
layout: {
|
|
@@ -373,6 +375,7 @@ export declare function captureMatrixExport(input: {
|
|
|
373
375
|
position: "before" | "after";
|
|
374
376
|
label?: string | undefined;
|
|
375
377
|
}>>;
|
|
378
|
+
skipRedundant?: boolean | undefined;
|
|
376
379
|
};
|
|
377
380
|
rows: {
|
|
378
381
|
grand: {
|
|
@@ -385,6 +388,7 @@ export declare function captureMatrixExport(input: {
|
|
|
385
388
|
position: "before" | "after";
|
|
386
389
|
label?: string | undefined;
|
|
387
390
|
}>>;
|
|
391
|
+
skipRedundant?: boolean | undefined;
|
|
388
392
|
};
|
|
389
393
|
};
|
|
390
394
|
layout: {
|
|
@@ -803,6 +807,7 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
803
807
|
position: "before" | "after";
|
|
804
808
|
label?: string | undefined;
|
|
805
809
|
}>>;
|
|
810
|
+
skipRedundant?: boolean | undefined;
|
|
806
811
|
};
|
|
807
812
|
rows: {
|
|
808
813
|
grand: {
|
|
@@ -815,6 +820,7 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
815
820
|
position: "before" | "after";
|
|
816
821
|
label?: string | undefined;
|
|
817
822
|
}>>;
|
|
823
|
+
skipRedundant?: boolean | undefined;
|
|
818
824
|
};
|
|
819
825
|
};
|
|
820
826
|
layout: {
|
|
@@ -1153,6 +1159,7 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
1153
1159
|
position: "before" | "after";
|
|
1154
1160
|
label?: string | undefined;
|
|
1155
1161
|
}>>;
|
|
1162
|
+
skipRedundant?: boolean | undefined;
|
|
1156
1163
|
};
|
|
1157
1164
|
rows: {
|
|
1158
1165
|
grand: {
|
|
@@ -1165,6 +1172,7 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
1165
1172
|
position: "before" | "after";
|
|
1166
1173
|
label?: string | undefined;
|
|
1167
1174
|
}>>;
|
|
1175
|
+
skipRedundant?: boolean | undefined;
|
|
1168
1176
|
};
|
|
1169
1177
|
};
|
|
1170
1178
|
layout: {
|
|
@@ -1451,3 +1459,30 @@ export declare function buildMatrixDeliveryEnvelope<TSource extends {
|
|
|
1451
1459
|
acquisition?: "continuation" | undefined;
|
|
1452
1460
|
};
|
|
1453
1461
|
};
|
|
1462
|
+
/**
|
|
1463
|
+
* The full Matrix result a Document prints (tech spec D-M1), read from the
|
|
1464
|
+
* delivery-authorized layout route. `request` is the effective definition that
|
|
1465
|
+
* ran (after control resolution), so rows are formatted exactly as the PDF path
|
|
1466
|
+
* formats them. A failure never carries rows.
|
|
1467
|
+
*/
|
|
1468
|
+
export type MatrixLayoutReadResult = {
|
|
1469
|
+
status: 'ok';
|
|
1470
|
+
request: MatrixExportRequest;
|
|
1471
|
+
layout: MatrixExportLayout;
|
|
1472
|
+
rows: readonly MatrixExportRow[];
|
|
1473
|
+
usage: {
|
|
1474
|
+
rows: number;
|
|
1475
|
+
cells: number;
|
|
1476
|
+
bytes: number;
|
|
1477
|
+
};
|
|
1478
|
+
} | {
|
|
1479
|
+
status: 'failed';
|
|
1480
|
+
failure: {
|
|
1481
|
+
code: MatrixFailure['code'];
|
|
1482
|
+
/** Set when a retained-result budget tripped. */
|
|
1483
|
+
limit?: 'rows' | 'bytes';
|
|
1484
|
+
message: string;
|
|
1485
|
+
retryable: boolean;
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
export declare const matrixLayoutReadResultSchema: z.ZodType<MatrixLayoutReadResult, z.ZodTypeDef, unknown>;
|
|
@@ -2,6 +2,11 @@ import { MatrixPath, MatrixPresentation, MatrixWindow, SemaphorScalarValue, Sema
|
|
|
2
2
|
import { ReportRuntimeContext } from '../../report-runtime-context/index.js';
|
|
3
3
|
/** Null hierarchy members stay identifiable even when null cells render blank. */
|
|
4
4
|
export declare function matrixMemberLabel(path: MatrixPath, levels?: ReadonlyMap<string, (value: SemaphorScalarValue) => string>): string;
|
|
5
|
+
/**
|
|
6
|
+
* The one label every surface gives a total row or column. An authored
|
|
7
|
+
* subtotal label is used as written, with each `{member}` replaced by the
|
|
8
|
+
* member's label ("Total for {member}").
|
|
9
|
+
*/
|
|
5
10
|
export declare function matrixTotalLabel(role: 'member' | 'subtotal' | 'grand_total', text: string, authored?: string): string;
|
|
6
11
|
export declare function matrixAxisLabel(path: MatrixPath, role: 'member' | 'subtotal' | 'grand_total', totals: MatrixPresentation['totals']['rows'], levels?: ReadonlyMap<string, (value: SemaphorScalarValue) => string>): string;
|
|
7
12
|
/** Acquired absence is presentation; pending/error states remain the caller's UI. */
|
|
@@ -18,6 +18,7 @@ export * from './exporters/index.js';
|
|
|
18
18
|
export * from './export-policy.js';
|
|
19
19
|
export * from './matrix-continuation.js';
|
|
20
20
|
export * from './matrix-export-presentation.js';
|
|
21
|
+
export * from './matrix-print.js';
|
|
21
22
|
export { fromSemanticFormat } from './semantic-format.js';
|
|
22
23
|
export type * from './table-structure.js';
|
|
23
24
|
export * from './pdf-export-policy.js';
|