@agile-team/mach-report 2.13.0 → 2.15.0
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/README.md +20 -7
- package/THIRD_PARTY_NOTICES.md +3 -1
- package/dist/ExcelBindingWizard-BKH1nGNS.js +1485 -0
- package/dist/ExcelBindingWizard-Bs43BGNp.cjs +1 -0
- package/dist/ParamEditor-Da4akw6V.cjs +1 -0
- package/dist/ParamEditor-DoAhzJsm.js +594 -0
- package/dist/{ReportBatchPanel-CW2HV9I8.js → ReportBatchPanel-BMf6boMA.js} +39 -39
- package/dist/ReportBatchPanel-wP9m9Pj1.cjs +1 -0
- package/dist/ReportPreview-ChV19HBp.js +4619 -0
- package/dist/ReportPreview-DbLvvOUT.cjs +6 -0
- package/dist/{ReportTemplateLibrary-BZB-XWjj.js → ReportTemplateLibrary-C9wutIiT.js} +1 -1
- package/dist/ReportTemplateLibrary-Sxr3eD0J.cjs +1 -0
- package/dist/RuleEditor-C_Clasvd.js +2037 -0
- package/dist/RuleEditor-XhGHK8DE.cjs +1 -0
- package/dist/TemplateOutlinePanel-D6Bkny59.js +96 -0
- package/dist/TemplateOutlinePanel-JTSR53vJ.cjs +1 -0
- package/dist/TemplateReusePanel-Kx35S0Ql.cjs +1 -0
- package/dist/TemplateReusePanel-rVuK1kTz.js +388 -0
- package/dist/TemplateReviewPanel-B0ar9_zf.js +592 -0
- package/dist/TemplateReviewPanel-Dn6X9UmY.cjs +1 -0
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.d.cts +3 -1
- package/dist/analytics.d.ts +3 -1
- package/dist/analytics.js +154 -60
- package/dist/artifact-integrity.json +135 -0
- package/dist/assets-B9ImAi6_.cjs +1 -0
- package/dist/assets-DEaz4qsp.js +124 -0
- package/dist/batch-BaP6pWDE.cjs +1 -0
- package/dist/batch-BfZHN1do.js +220 -0
- package/dist/batch-CGyt-b2W.js +273 -0
- package/dist/batch-CLpELXBl.cjs +1 -0
- package/dist/capabilities-CAh2Nrue.cjs +1 -0
- package/dist/capabilities-DskCHs3V.js +69 -0
- package/dist/codes.d.cts +2 -0
- package/dist/codes.d.ts +2 -0
- package/dist/{computed-Bvk0W15F.js → computed-C-4C2S5h.js} +3 -3
- package/dist/config-BVsJXSqS.js +842 -0
- package/dist/config-D10us76d.cjs +1 -0
- package/dist/data-explanation-B8MZRYVS.js +16 -0
- package/dist/data-explanation-DE55G30w.cjs +1 -0
- package/dist/designer-2bDlcNXQ.js +5136 -0
- package/dist/designer-BT7XCdbW.cjs +2 -0
- package/dist/designer.cjs +1 -2
- package/dist/designer.d.cts +432 -17
- package/dist/designer.d.ts +432 -17
- package/dist/designer.js +21 -4312
- package/dist/drill-ByJviLXS.js +145 -0
- package/dist/drill-DYTxuL3A.cjs +1 -0
- package/dist/font-loader-B_UkxpzC.cjs +1 -0
- package/dist/font-loader-Q3bQjmrI.js +297 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +239 -5
- package/dist/index.d.ts +239 -5
- package/dist/index.js +939 -893
- package/dist/json-snapshot-DFb2eWkf.js +1416 -0
- package/dist/json-snapshot-WWSGlaHG.cjs +2 -0
- package/dist/licenses/_bwip-js_generic-4.11.4.txt +24 -0
- package/dist/licenses/_fast-csv_format-4.3.5.txt +22 -0
- package/dist/licenses/_fast-csv_parse-4.3.6.txt +22 -0
- package/dist/licenses/_pdf-lib_fontkit-1.1.1.txt +326 -0
- package/dist/licenses/_pdf-lib_standard-fonts-1.0.0.txt +22 -0
- package/dist/licenses/_pdf-lib_upng-1.0.1.txt +22 -0
- package/dist/licenses/_types_node-14.18.63.txt +22 -0
- package/dist/licenses/_types_pako-2.0.3.txt +22 -0
- package/dist/licenses/_types_pegjs-0.10.6.txt +22 -0
- package/dist/licenses/archiver-5.3.2.txt +23 -0
- package/dist/licenses/archiver-utils-2.1.0.txt +23 -0
- package/dist/licenses/archiver-utils-3.0.4.txt +23 -0
- package/dist/licenses/async-3.2.6.txt +20 -0
- package/dist/licenses/balanced-match-1.0.2.txt +22 -0
- package/dist/licenses/base64-js-1.5.1.txt +22 -0
- package/dist/licenses/big-integer-1.6.52.txt +25 -0
- package/dist/licenses/binary-0.3.0.txt +178 -0
- package/dist/licenses/bl-4.1.0.txt +14 -0
- package/dist/licenses/bluebird-3.4.7.txt +22 -0
- package/dist/licenses/brace-expansion-1.1.21.txt +22 -0
- package/dist/licenses/brace-expansion-2.1.7.txt +22 -0
- package/dist/licenses/buffer-5.7.1.txt +22 -0
- package/dist/licenses/buffer-crc32-0.2.13.txt +20 -0
- package/dist/licenses/buffer-indexof-polyfill-1.0.2.txt +23 -0
- package/dist/licenses/buffers-0.1.1.txt +140 -0
- package/dist/licenses/chainsaw-0.1.0.txt +184 -0
- package/dist/licenses/compress-commons-4.1.2.txt +23 -0
- package/dist/licenses/concat-map-0.0.1.txt +19 -0
- package/dist/licenses/core-util-is-1.0.3.txt +20 -0
- package/dist/licenses/crc-32-1.2.2.txt +202 -0
- package/dist/licenses/crc32-stream-4.0.3.txt +23 -0
- package/dist/licenses/dayjs-1.11.23.txt +22 -0
- package/dist/licenses/duplexer2-0.1.4.txt +27 -0
- package/dist/licenses/end-of-stream-1.4.5.txt +22 -0
- package/dist/licenses/exceljs-4.4.0.txt +23 -0
- package/dist/licenses/fast-csv-4.3.6.txt +22 -0
- package/dist/licenses/fast-png-6.4.0.txt +22 -0
- package/dist/licenses/fs-constants-1.0.0.txt +22 -0
- package/dist/licenses/fs.realpath-1.0.0.txt +44 -0
- package/dist/licenses/fstream-1.0.12.txt +16 -0
- package/dist/licenses/glob-7.2.3.txt +22 -0
- package/dist/licenses/graceful-fs-4.2.11.txt +16 -0
- package/dist/licenses/ieee754-1.2.1.txt +12 -0
- package/dist/licenses/immediate-3.0.6.txt +21 -0
- package/dist/licenses/inflight-1.0.6.txt +16 -0
- package/dist/licenses/inherits-2.0.4.txt +17 -0
- package/dist/licenses/iobuffer-5.4.0.txt +23 -0
- package/dist/licenses/isarray-1.0.0.txt +61 -0
- package/dist/licenses/jszip-3.10.2.txt +652 -0
- package/dist/licenses/lazystream-1.0.1.txt +24 -0
- package/dist/licenses/lie-3.3.0.txt +8 -0
- package/dist/licenses/listenercount-1.0.1.txt +6 -0
- package/dist/licenses/lodash.defaults-4.2.0.txt +48 -0
- package/dist/licenses/lodash.difference-4.5.0.txt +48 -0
- package/dist/licenses/lodash.escaperegexp-4.1.2.txt +48 -0
- package/dist/licenses/lodash.flatten-4.4.0.txt +48 -0
- package/dist/licenses/lodash.groupby-4.6.0.txt +48 -0
- package/dist/licenses/lodash.isboolean-3.0.3.txt +23 -0
- package/dist/licenses/lodash.isequal-4.5.0.txt +48 -0
- package/dist/licenses/lodash.isfunction-3.0.9.txt +48 -0
- package/dist/licenses/lodash.isnil-4.0.0.txt +23 -0
- package/dist/licenses/lodash.isplainobject-4.0.6.txt +48 -0
- package/dist/licenses/lodash.isundefined-3.0.1.txt +23 -0
- package/dist/licenses/lodash.union-4.6.0.txt +48 -0
- package/dist/licenses/lodash.uniq-4.5.0.txt +48 -0
- package/dist/licenses/minimatch-3.1.5.txt +16 -0
- package/dist/licenses/minimatch-5.1.9.txt +16 -0
- package/dist/licenses/minimist-1.2.8.txt +19 -0
- package/dist/licenses/mkdirp-0.5.6.txt +22 -0
- package/dist/licenses/node-sql-parser-5.4.0.txt +202 -0
- package/dist/licenses/normalize-path-3.0.0.txt +22 -0
- package/dist/licenses/once-1.4.0.txt +16 -0
- package/dist/licenses/pako-1.0.11.txt +22 -0
- package/dist/licenses/pako-2.2.0.txt +22 -0
- package/dist/licenses/path-is-absolute-1.0.1.txt +22 -0
- package/dist/licenses/pdf-lib-1.17.1.txt +22 -0
- package/dist/licenses/process-nextick-args-2.0.1.txt +20 -0
- package/dist/licenses/readable-stream-2.3.8.txt +48 -0
- package/dist/licenses/readable-stream-3.6.2.txt +48 -0
- package/dist/licenses/readdir-glob-1.1.3.txt +202 -0
- package/dist/licenses/rimraf-2.7.1.txt +16 -0
- package/dist/licenses/safe-buffer-5.1.2.txt +22 -0
- package/dist/licenses/safe-buffer-5.2.1.txt +22 -0
- package/dist/licenses/saxes-5.0.1.txt +397 -0
- package/dist/licenses/setimmediate-1.0.5.txt +21 -0
- package/dist/licenses/string_decoder-1.1.1.txt +49 -0
- package/dist/licenses/string_decoder-1.3.0.txt +49 -0
- package/dist/licenses/tar-stream-2.2.0.txt +22 -0
- package/dist/licenses/tmp-0.2.7.txt +22 -0
- package/dist/licenses/traverse-0.3.9.txt +25 -0
- package/dist/licenses/tslib-1.14.1.txt +13 -0
- package/dist/licenses/unzipper-0.10.14.txt +26 -0
- package/dist/licenses/util-deprecate-1.0.2.txt +25 -0
- package/dist/licenses/uuid-11.1.1.txt +10 -0
- package/dist/licenses/wrappy-1.0.2.txt +16 -0
- package/dist/licenses/xmlchars-2.2.0.txt +19 -0
- package/dist/licenses/zip-stream-4.1.1.txt +23 -0
- package/dist/matrix-CGRGkn5s.js +112 -0
- package/dist/matrix-gEO7ZM_u.cjs +1 -0
- package/dist/media-B7vnpD8k.cjs +1 -0
- package/dist/media-Y90dHK9z.js +70 -0
- package/dist/param-validation-C3HlcLLO.cjs +1 -0
- package/dist/param-validation-Do7Eg8Zv.js +181 -0
- package/dist/pdf-BwNyeGpt.js +36352 -0
- package/dist/pdf-CvvrjPQg.cjs +103 -0
- package/dist/pdf.cjs +1 -101
- package/dist/pdf.d.cts +18 -3
- package/dist/pdf.d.ts +18 -3
- package/dist/pdf.js +9 -36579
- package/dist/plugin-Ca_XZG3l.js +22 -0
- package/dist/{plugin-DzS6pxTA.cjs → plugin-DHO7X8z2.cjs} +1 -1
- package/dist/prepared-CFy9B75C.cjs +1 -0
- package/dist/prepared-ajM-H-9B.js +69 -0
- package/dist/progress-B0ctFpKf.cjs +1 -0
- package/dist/progress-D-OTpEav.js +52 -0
- package/dist/{record-bindings-D-5jQlTj.js → record-bindings-Do_b3h4V.js} +1 -1
- package/dist/{region-binding-workflow-CcUq8W2Q.js → region-binding-workflow-BMhK_TjP.js} +1 -1
- package/dist/{region-binding-workflow-BzfbxRiR.cjs → region-binding-workflow-DIYJdCUr.cjs} +1 -1
- package/dist/{report-params-B44imUd4.js → report-params-B1RzkhJj.js} +1 -1
- package/dist/{report-params-SJfhKgaX.cjs → report-params-WDGrA4oP.cjs} +1 -1
- package/dist/sbom.cdx.json +3982 -0
- package/dist/server/node.d.cts +66 -12
- package/dist/server/node.d.ts +66 -12
- package/dist/server-node.cjs +1 -1
- package/dist/server-node.js +405 -381
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +878 -15
- package/dist/server.d.ts +878 -15
- package/dist/server.js +1034 -534
- package/dist/sha256-ArEYjaTI.cjs +1 -0
- package/dist/sha256-DPEuJ3nh.js +155 -0
- package/dist/style.css +1 -1
- package/dist/template-bindings-C2SpvsMU.js +58 -0
- package/dist/template-bindings-CEtWyiLX.cjs +1 -0
- package/dist/template-catalog-FJE_c9Qe.cjs +1 -0
- package/dist/template-catalog-j2B1MJlL.js +414 -0
- package/dist/template-fragments-BGbQLGlV.js +187 -0
- package/dist/template-fragments-DcKeiylI.cjs +1 -0
- package/dist/template-outline-BwRV_eRo.cjs +1 -0
- package/dist/template-outline-cnWfT_LK.js +88 -0
- package/dist/{template-registry-BjE1VS6g.js → template-registry-BtaKPELV.js} +364 -201
- package/dist/template-registry-Co1zPq5e.cjs +1 -0
- package/dist/textwrap-CWHyzkBH.cjs +4 -0
- package/dist/textwrap-DE1kgcJB.js +110 -0
- package/dist/{tree-CqcQ99NM.js → tree-CjVZLRw7.js} +1 -1
- package/dist/{useLocalDraft-C07SYRnC.js → useLocalDraft-BnhcxXk_.js} +1 -1
- package/dist/{useLocalDraft-Yiw1wFgI.cjs → useLocalDraft-CioIfDb6.cjs} +1 -1
- package/dist/vue/async.d.cts +190 -15
- package/dist/vue/async.d.ts +190 -15
- package/dist/vue/index.d.cts +274 -24
- package/dist/vue/index.d.ts +274 -24
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +5 -5
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +90 -81
- package/dist/{workbook-session-DNa2RHNG.cjs → workbook-session-Bjv1YCRK.cjs} +18 -18
- package/dist/{workbook-session-BPb3TMnT.js → workbook-session-BvToI-Fd.js} +5440 -5288
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +66 -12
- package/dist/worker.d.ts +66 -12
- package/dist/worker.js +61 -56
- package/dist/xlsx-node.cjs +34 -34
- package/dist/xlsx-node.js +878 -870
- package/dist/xlsx.cjs +3 -4
- package/dist/xlsx.d.cts +22 -10
- package/dist/xlsx.d.ts +22 -10
- package/dist/xlsx.js +261 -253
- package/package.json +2 -2
- package/dist/ExcelBindingWizard-CeAf4QSE.js +0 -1465
- package/dist/ExcelBindingWizard-y0mT-AHR.cjs +0 -1
- package/dist/ParamEditor-BLaE5q5W.js +0 -522
- package/dist/ParamEditor-MBBC7lUE.cjs +0 -1
- package/dist/ReportBatchPanel-Fp1ePFag.cjs +0 -1
- package/dist/ReportPreview-BN6fk7Wz.cjs +0 -6
- package/dist/ReportPreview-D2Jkyh1U.js +0 -4243
- package/dist/ReportTemplateLibrary-5fk5CQBO.cjs +0 -1
- package/dist/RuleEditor-ChRzNQuF.cjs +0 -1
- package/dist/RuleEditor-DzAmW5YH.js +0 -2024
- package/dist/TemplateReviewPanel-BKofGrV9.js +0 -222
- package/dist/TemplateReviewPanel-DwtOcLue.cjs +0 -1
- package/dist/assets-C2U-e-Sz.cjs +0 -4
- package/dist/assets-Q0wUwNrV.js +0 -217
- package/dist/batch-Bt3Fd27Z.cjs +0 -1
- package/dist/batch-mRqhhhjt.js +0 -364
- package/dist/capabilities-CK_7hizc.js +0 -63
- package/dist/capabilities-CsZ-pNHR.cjs +0 -1
- package/dist/config-Bb7RiIO5.cjs +0 -1
- package/dist/config-XVwG87IA.js +0 -529
- package/dist/matrix-DVyWiYsd.cjs +0 -1
- package/dist/matrix-yZsGnldA.js +0 -227
- package/dist/page-window-index-CIuT4BAv.js +0 -43
- package/dist/page-window-index-DEjnM6IB.cjs +0 -1
- package/dist/param-validation-BlHHXs6u.js +0 -153
- package/dist/param-validation-DCK039V1.cjs +0 -1
- package/dist/plugin-D4wizDXB.js +0 -22
- package/dist/progress-7OSZbFok.js +0 -39
- package/dist/progress-BnLiS5eH.cjs +0 -1
- package/dist/task-events-DQ276fn2.cjs +0 -1
- package/dist/task-events-Dpsvf_t2.js +0 -47
- package/dist/template-registry-D3SjENi6.cjs +0 -1
- package/dist/template-review-DGwWOoCv.cjs +0 -2
- package/dist/template-review-PgEe_Wr9.js +0 -1742
- package/dist/validate-BJ5HIWY8.cjs +0 -1
- package/dist/validate-DbgEM1Hh.js +0 -163
package/dist/vue/async.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare interface AssetRenderBudget {
|
|
|
29
29
|
/** Wall-clock budget, including adapters that ignore AbortSignal. Default 30 seconds. */
|
|
30
30
|
maxDurationMs?: number;
|
|
31
31
|
}
|
|
32
|
-
declare interface AssetRenderOptions extends OutputDiagnosticOptions {
|
|
32
|
+
declare interface AssetRenderOptions extends OutputDiagnosticOptions, ImageMediaOptions {
|
|
33
33
|
assetRenderers?: Partial<Record<ImageComponentKind, ComponentImageRenderer>>;
|
|
34
34
|
assetBudget?: AssetRenderBudget;
|
|
35
35
|
/** Default throw prevents an incomplete export; placeholder retains the component and emits diagnostics. */
|
|
@@ -432,6 +432,30 @@ declare interface GridCell_3 {
|
|
|
432
432
|
style?: ComponentStyle_3;
|
|
433
433
|
}
|
|
434
434
|
declare type ImageComponentKind = "image" | "chart" | "barcode" | "qrcode";
|
|
435
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
436
|
+
declare interface ImageMediaOptions {
|
|
437
|
+
maxImageBytes?: number;
|
|
438
|
+
maxTotalImageBytes?: number;
|
|
439
|
+
maxImages?: number;
|
|
440
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
441
|
+
maxImagePixels?: number;
|
|
442
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
443
|
+
maxTotalImagePixels?: number;
|
|
444
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
445
|
+
maxImageDimension?: number;
|
|
446
|
+
}
|
|
447
|
+
/** Bounded binary image inspection shared by PDF, Excel and template import. No decoder is loaded. */
|
|
448
|
+
declare interface ImageMediaOptions_2 {
|
|
449
|
+
maxImageBytes?: number;
|
|
450
|
+
maxTotalImageBytes?: number;
|
|
451
|
+
maxImages?: number;
|
|
452
|
+
/** Decoded pixels per unique image, default 16 million. */
|
|
453
|
+
maxImagePixels?: number;
|
|
454
|
+
/** Total decoded pixels for unique media, default 64 million. */
|
|
455
|
+
maxTotalImagePixels?: number;
|
|
456
|
+
/** Maximum source dimension, default 16384 pixels. */
|
|
457
|
+
maxImageDimension?: number;
|
|
458
|
+
}
|
|
435
459
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
436
460
|
declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
|
|
437
461
|
/** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
|
|
@@ -681,6 +705,9 @@ declare interface MachReportConfig {
|
|
|
681
705
|
}
|
|
682
706
|
/** defaults 层可配置项(全部可选,均有内置缺省) */
|
|
683
707
|
declare interface MachReportDefaults {
|
|
708
|
+
drill?: ReportDrillOptions;
|
|
709
|
+
loadParamOptions?: ReportParamOptionsLoader;
|
|
710
|
+
printOptions?: ReportPrintOptions;
|
|
684
711
|
showExport?: boolean;
|
|
685
712
|
showPrint?: boolean;
|
|
686
713
|
showPdfWindow?: boolean;
|
|
@@ -727,7 +754,11 @@ declare type MachReportLogger = Pick<Console, "warn" | "info">;
|
|
|
727
754
|
* - 优先级:组件 props > 路由级叠加 > preset > defaults(props 永远最高)
|
|
728
755
|
*/
|
|
729
756
|
/** 工具栏与状态文案(默认简体中文;出海场景覆写) */
|
|
730
|
-
declare interface MachReportMessages extends Partial<ReportCalculationMessages
|
|
757
|
+
declare interface MachReportMessages extends Partial<ReportCalculationMessages>, ReportPrintMessages, ReportParamOptionsMessages {
|
|
758
|
+
drillActions?: string;
|
|
759
|
+
drillOpening?: string;
|
|
760
|
+
drillMissingValue?: string;
|
|
761
|
+
drillFailed?: string;
|
|
731
762
|
exportMenu?: string;
|
|
732
763
|
exportMenuDescription?: string;
|
|
733
764
|
clearSearch?: string;
|
|
@@ -738,6 +769,13 @@ declare interface MachReportMessages extends Partial<ReportCalculationMessages>
|
|
|
738
769
|
pageJumpHint?: string;
|
|
739
770
|
pagination?: string;
|
|
740
771
|
recordNavigation?: string;
|
|
772
|
+
dataExplanation?: string;
|
|
773
|
+
dataExplanationHint?: string;
|
|
774
|
+
dataExplanationSearch?: string;
|
|
775
|
+
dataExplanationEmpty?: string;
|
|
776
|
+
dataMissingSource?: string;
|
|
777
|
+
dataNotApplicable?: string;
|
|
778
|
+
dataNotCalculable?: string;
|
|
741
779
|
recordInfo?: string;
|
|
742
780
|
prevRecord?: string;
|
|
743
781
|
nextRecord?: string;
|
|
@@ -1005,7 +1043,7 @@ declare interface MatrixTableOptions_2 {
|
|
|
1005
1043
|
maxCells?: number;
|
|
1006
1044
|
}
|
|
1007
1045
|
declare interface OutputDiagnostic {
|
|
1008
|
-
code: "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1046
|
+
code: "invalid-image-data" | "image-budget-exceeded" | "component-render-failed" | "unsupported-text" | "output-degraded" | "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1009
1047
|
severity: "warning";
|
|
1010
1048
|
format: OutputFormat;
|
|
1011
1049
|
pageIndex: number;
|
|
@@ -1017,7 +1055,7 @@ declare interface OutputDiagnostic {
|
|
|
1017
1055
|
message: string;
|
|
1018
1056
|
}
|
|
1019
1057
|
declare interface OutputDiagnostic_2 {
|
|
1020
|
-
code: "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1058
|
+
code: "invalid-image-data" | "image-budget-exceeded" | "component-render-failed" | "unsupported-text" | "output-degraded" | "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
|
|
1021
1059
|
severity: "warning";
|
|
1022
1060
|
format: OutputFormat_2;
|
|
1023
1061
|
pageIndex: number;
|
|
@@ -1391,6 +1429,8 @@ declare interface ReportCellSelection {
|
|
|
1391
1429
|
}
|
|
1392
1430
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
1393
1431
|
declare interface ReportCellSource {
|
|
1432
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
1433
|
+
sourceScope?: string;
|
|
1394
1434
|
datasetId: string;
|
|
1395
1435
|
rowKey: string | number;
|
|
1396
1436
|
field: string;
|
|
@@ -1399,6 +1439,8 @@ declare interface ReportCellSource {
|
|
|
1399
1439
|
}
|
|
1400
1440
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
1401
1441
|
declare interface ReportCellSource_2 {
|
|
1442
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
1443
|
+
sourceScope?: string;
|
|
1402
1444
|
datasetId: string;
|
|
1403
1445
|
rowKey: string | number;
|
|
1404
1446
|
field: string;
|
|
@@ -1407,6 +1449,8 @@ declare interface ReportCellSource_2 {
|
|
|
1407
1449
|
}
|
|
1408
1450
|
/** 可持久化的业务身份与计划坐标独立;权限及并发校验仍由业务服务器执行。 */
|
|
1409
1451
|
declare interface ReportCellSource_3 {
|
|
1452
|
+
/** Source identity across report occurrences; sharing must be explicitly declared. */
|
|
1453
|
+
sourceScope?: string;
|
|
1410
1454
|
datasetId: string;
|
|
1411
1455
|
rowKey: string | number;
|
|
1412
1456
|
field: string;
|
|
@@ -1430,7 +1474,27 @@ declare interface ReportCellTableIdentity_2 {
|
|
|
1430
1474
|
declare type ReportCellValue = string | number | boolean | null;
|
|
1431
1475
|
declare type ReportCellValue_2 = string | number | boolean | null;
|
|
1432
1476
|
declare type ReportCellValueType = NonNullable<GridCell_2["valueType"]>;
|
|
1477
|
+
declare interface ReportDataTarget {
|
|
1478
|
+
datasetId: string;
|
|
1479
|
+
field: string;
|
|
1480
|
+
rowKey?: string | number;
|
|
1481
|
+
/** Use table identity when the same dataset appears in several tables. */
|
|
1482
|
+
tableId?: string;
|
|
1483
|
+
/** Assigned by the source/runtime when several reports share dataset names. */
|
|
1484
|
+
reportScope?: string;
|
|
1485
|
+
}
|
|
1486
|
+
declare interface ReportDataTarget_2 {
|
|
1487
|
+
datasetId: string;
|
|
1488
|
+
field: string;
|
|
1489
|
+
rowKey?: string | number;
|
|
1490
|
+
/** Use table identity when the same dataset appears in several tables. */
|
|
1491
|
+
tableId?: string;
|
|
1492
|
+
/** Assigned by the source/runtime when several reports share dataset names. */
|
|
1493
|
+
reportScope?: string;
|
|
1494
|
+
}
|
|
1433
1495
|
declare interface ReportDefinition {
|
|
1496
|
+
/** Explicitly shared editable data identity. Omit to isolate each report occurrence. */
|
|
1497
|
+
sourceScope?: string;
|
|
1434
1498
|
/** 静态模板或宿主提供的异步模板加载器;动态模板默认每次重新读取,不缓存版本。 */
|
|
1435
1499
|
template: ReportTemplate | ReportTemplateLoader;
|
|
1436
1500
|
/** 静态数据;load 存在时优先使用 load 的结果。 */
|
|
@@ -1450,8 +1514,54 @@ declare interface ReportDiagnostic {
|
|
|
1450
1514
|
message: string;
|
|
1451
1515
|
path?: string;
|
|
1452
1516
|
severity: "warning" | "error" | "info";
|
|
1517
|
+
/** Optional explanation supplied by the business source, not inferred from blank cells. */
|
|
1518
|
+
valueState?: ReportValueState;
|
|
1519
|
+
target?: ReportDataTarget;
|
|
1453
1520
|
}
|
|
1454
1521
|
declare type ReportDiscardReason = "reload" | "import" | "replace" | "leave";
|
|
1522
|
+
/** Serializable action metadata. URLs, scripts and automatic navigation are deliberately absent. */
|
|
1523
|
+
declare interface ReportDrillAction {
|
|
1524
|
+
id: string;
|
|
1525
|
+
label: string;
|
|
1526
|
+
target: {
|
|
1527
|
+
field: string;
|
|
1528
|
+
datasetId?: string;
|
|
1529
|
+
reportScope?: string;
|
|
1530
|
+
roles?: readonly string[];
|
|
1531
|
+
};
|
|
1532
|
+
params?: Readonly<Record<string, ReportDrillBinding>>;
|
|
1533
|
+
}
|
|
1534
|
+
declare type ReportDrillBinding = {
|
|
1535
|
+
value: string | number | boolean;
|
|
1536
|
+
} | {
|
|
1537
|
+
from: "value" | "rowKey";
|
|
1538
|
+
} | {
|
|
1539
|
+
from: "query" | "field";
|
|
1540
|
+
field: string;
|
|
1541
|
+
};
|
|
1542
|
+
/** Trusted host-owned allowlist. Matching serialized metadata alone never executes an action. */
|
|
1543
|
+
declare interface ReportDrillOptions {
|
|
1544
|
+
actions: readonly ReportDrillAction[];
|
|
1545
|
+
open(request: ReportDrillRequest & {
|
|
1546
|
+
signal: AbortSignal;
|
|
1547
|
+
view: Readonly<{
|
|
1548
|
+
zoom: number;
|
|
1549
|
+
scrollTop: number;
|
|
1550
|
+
scrollLeft: number;
|
|
1551
|
+
}>;
|
|
1552
|
+
}): void | Promise<void>;
|
|
1553
|
+
}
|
|
1554
|
+
declare interface ReportDrillRequest {
|
|
1555
|
+
actionId: string;
|
|
1556
|
+
params: Readonly<Record<string, string>>;
|
|
1557
|
+
returnState: Readonly<ReportDrillReturnState>;
|
|
1558
|
+
}
|
|
1559
|
+
declare interface ReportDrillReturnState {
|
|
1560
|
+
params: Readonly<Record<string, string>>;
|
|
1561
|
+
address: Readonly<ReportCellAddress_2>;
|
|
1562
|
+
reportScope?: string;
|
|
1563
|
+
source?: Readonly<Pick<ReportCellSource_2, "sourceScope" | "datasetId" | "rowKey" | "field">>;
|
|
1564
|
+
}
|
|
1455
1565
|
declare interface ReportEditBatch {
|
|
1456
1566
|
/** Idempotency identity; the server should bind it to the exact payload. */
|
|
1457
1567
|
requestId: string;
|
|
@@ -1533,7 +1643,8 @@ declare interface ReportFetchInput extends ReportTaskMonitoring {
|
|
|
1533
1643
|
signal?: AbortSignal;
|
|
1534
1644
|
/** 本次分页与计划告警;未提供时使用数据源配置的告警通道。 */
|
|
1535
1645
|
onWarning?: (message: string) => void;
|
|
1536
|
-
|
|
1646
|
+
/** Index scopes diagnostics when reports share datasets or a report ID is repeated. */
|
|
1647
|
+
onQueryResult?: (reportId: string, result: ReportQueryResult, reportIndex?: number) => void;
|
|
1537
1648
|
}
|
|
1538
1649
|
declare interface ReportFieldContract {
|
|
1539
1650
|
field: string;
|
|
@@ -1554,6 +1665,7 @@ declare interface ReportFieldTarget {
|
|
|
1554
1665
|
datasetId?: string;
|
|
1555
1666
|
rowKey?: string | number;
|
|
1556
1667
|
tableId?: string;
|
|
1668
|
+
reportScope?: string;
|
|
1557
1669
|
}
|
|
1558
1670
|
declare interface ReportFlowBand {
|
|
1559
1671
|
/** Exact stable component IDs. Static components use nid, lists use id. */
|
|
@@ -1607,6 +1719,10 @@ declare interface ReportParamDef {
|
|
|
1607
1719
|
label: string;
|
|
1608
1720
|
value: string;
|
|
1609
1721
|
}>;
|
|
1722
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
1723
|
+
optionsSource?: string;
|
|
1724
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
1725
|
+
dependsOn?: string[];
|
|
1610
1726
|
defaultValue?: string;
|
|
1611
1727
|
required?: boolean;
|
|
1612
1728
|
placeholder?: string;
|
|
@@ -1628,6 +1744,10 @@ declare interface ReportParamDef_2 {
|
|
|
1628
1744
|
label: string;
|
|
1629
1745
|
value: string;
|
|
1630
1746
|
}>;
|
|
1747
|
+
/** Opaque host-resolved source key. No URL, credentials or executable code is stored. */
|
|
1748
|
+
optionsSource?: string;
|
|
1749
|
+
/** Select dependencies must be declared parameters; changing a parent clears descendants. */
|
|
1750
|
+
dependsOn?: string[];
|
|
1631
1751
|
defaultValue?: string;
|
|
1632
1752
|
required?: boolean;
|
|
1633
1753
|
placeholder?: string;
|
|
@@ -1643,7 +1763,30 @@ declare interface ReportParamIssue {
|
|
|
1643
1763
|
field: string;
|
|
1644
1764
|
message: string;
|
|
1645
1765
|
}
|
|
1646
|
-
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
1766
|
+
declare type ReportParamIssueCode = "definition" | "required" | "type" | "option" | "dependency" | "minimum" | "maximum" | "minLength" | "maxLength";
|
|
1767
|
+
declare interface ReportParamOption {
|
|
1768
|
+
readonly label: string;
|
|
1769
|
+
readonly value: string;
|
|
1770
|
+
}
|
|
1771
|
+
declare interface ReportParamOptionsInput {
|
|
1772
|
+
readonly source: string;
|
|
1773
|
+
readonly field: string;
|
|
1774
|
+
readonly query: string;
|
|
1775
|
+
/** Only declared dependencies, captured at request start. Never the mutable form. */
|
|
1776
|
+
readonly params: Readonly<Record<string, string>>;
|
|
1777
|
+
readonly signal: AbortSignal;
|
|
1778
|
+
readonly limit: number;
|
|
1779
|
+
}
|
|
1780
|
+
/** Resolve a trusted source key through the host's existing API/authentication. */
|
|
1781
|
+
declare type ReportParamOptionsLoader = (input: ReportParamOptionsInput) => Promise<readonly ReportParamOption[]>;
|
|
1782
|
+
declare interface ReportParamOptionsMessages {
|
|
1783
|
+
paramOptionsLoading?: string;
|
|
1784
|
+
paramOptionsEmpty?: string;
|
|
1785
|
+
paramOptionsFailed?: string;
|
|
1786
|
+
paramOptionsMissingLoader?: string;
|
|
1787
|
+
paramOptionsDependencies?: string;
|
|
1788
|
+
paramOptionsClear?: string;
|
|
1789
|
+
}
|
|
1647
1790
|
declare interface ReportPreferencesAdapter {
|
|
1648
1791
|
load(key: string): Partial<ReportPreviewPreferences> | null | Promise<Partial<ReportPreviewPreferences> | null>;
|
|
1649
1792
|
save(key: string, value: Readonly<Partial<ReportPreviewPreferences>>): void | Promise<void>;
|
|
@@ -1654,7 +1797,13 @@ declare interface ReportPreferencesOptions {
|
|
|
1654
1797
|
key: string;
|
|
1655
1798
|
adapter: ReportPreferencesAdapter;
|
|
1656
1799
|
}
|
|
1800
|
+
declare interface ReportPreviewDataTarget extends ReportDataTarget_2 {
|
|
1801
|
+
/** Added by the query adapter; isolates identical dataset/row/field identities across reports. */
|
|
1802
|
+
reportScope?: string;
|
|
1803
|
+
}
|
|
1657
1804
|
declare interface ReportPreviewDiagnostic {
|
|
1805
|
+
valueState?: ReportValueState_2;
|
|
1806
|
+
target?: ReportPreviewDataTarget;
|
|
1658
1807
|
code: string;
|
|
1659
1808
|
severity: "warning" | "error" | "info";
|
|
1660
1809
|
message: string;
|
|
@@ -1677,6 +1826,35 @@ declare interface ReportPreviewTask {
|
|
|
1677
1826
|
}
|
|
1678
1827
|
declare type ReportPreviewTaskStage = "query" | "validate" | "layout" | "assets" | "import" | "encode" | "download" | "print";
|
|
1679
1828
|
declare type ReportPreviewTool = "search" | "thumbnails" | "zoom" | ReportExportFormat | "print" | "pdfWindow" | "editing" | "import";
|
|
1829
|
+
declare interface ReportPrintCalibration {
|
|
1830
|
+
offsetXmm?: number;
|
|
1831
|
+
offsetYmm?: number;
|
|
1832
|
+
}
|
|
1833
|
+
declare interface ReportPrintFont {
|
|
1834
|
+
/** Same family name used by the template. Sources are trusted application assets. */
|
|
1835
|
+
family: string;
|
|
1836
|
+
source: string;
|
|
1837
|
+
weight?: string;
|
|
1838
|
+
style?: "normal" | "italic" | "oblique";
|
|
1839
|
+
}
|
|
1840
|
+
declare interface ReportPrintMessages {
|
|
1841
|
+
printPrepareTimeout?: string;
|
|
1842
|
+
printImageFailed?: string;
|
|
1843
|
+
printFontFailed?: string;
|
|
1844
|
+
printPrepareFailed?: string;
|
|
1845
|
+
printCalibration?: string;
|
|
1846
|
+
printOffsetX?: string;
|
|
1847
|
+
printOffsetY?: string;
|
|
1848
|
+
printCalibrationTest?: string;
|
|
1849
|
+
printCalibrationHint?: string;
|
|
1850
|
+
}
|
|
1851
|
+
declare interface ReportPrintOptions {
|
|
1852
|
+
/** Defaults to 15 seconds for the entire font/image preparation stage. */
|
|
1853
|
+
resourceTimeoutMs?: number;
|
|
1854
|
+
fonts?: readonly ReportPrintFont[];
|
|
1855
|
+
/** Physical translation only; no scaling or mutation of the report data/plan. */
|
|
1856
|
+
calibration?: ReportPrintCalibration;
|
|
1857
|
+
}
|
|
1680
1858
|
/** 查询是唯一基础能力;权限、HTTP、数据库和事务都留在宿主适配器内。 */
|
|
1681
1859
|
declare interface ReportProvider {
|
|
1682
1860
|
query(context: ReportLoadContext): ReportQueryResult | Promise<ReportQueryResult>;
|
|
@@ -1787,6 +1965,10 @@ declare interface ReportTemplateRepeat_2 {
|
|
|
1787
1965
|
};
|
|
1788
1966
|
}
|
|
1789
1967
|
declare type ReportTemplateSummary = Omit<ReportTemplateDocument, "template">;
|
|
1968
|
+
/** Optional business explanations never replace raw data or schema validation. */
|
|
1969
|
+
declare type ReportValueState = "missing-source" | "not-applicable" | "not-calculable";
|
|
1970
|
+
/** Optional business explanations never replace raw data or schema validation. */
|
|
1971
|
+
declare type ReportValueState_2 = "missing-source" | "not-applicable" | "not-calculable";
|
|
1790
1972
|
declare interface RichParagraph {
|
|
1791
1973
|
segments: RichSegment[];
|
|
1792
1974
|
align?: ComponentStyle["align"];
|
|
@@ -1945,21 +2127,14 @@ declare type ValueFormat = ColumnFormat;
|
|
|
1945
2127
|
declare type ValueFormat_2 = ColumnFormat_2;
|
|
1946
2128
|
/** The same declarative formatting used by list columns, before any output backend. */
|
|
1947
2129
|
declare type ValueFormat_3 = ColumnFormat_3;
|
|
1948
|
-
declare
|
|
1949
|
-
/** Decoded bytes per unique embedded image; default 16 MiB. */
|
|
1950
|
-
maxImageBytes?: number;
|
|
1951
|
-
/** Total decoded bytes of unique images in this workbook; default 32 MiB. */
|
|
1952
|
-
maxTotalImageBytes?: number;
|
|
1953
|
-
/** Unique embedded media limit, default 1000; repeated placements reuse the same media. */
|
|
1954
|
-
maxImages?: number;
|
|
1955
|
-
}
|
|
2130
|
+
declare type XlsxImageOptions = ImageMediaOptions_2;
|
|
1956
2131
|
/**
|
|
1957
2132
|
* RenderPlan → xlsx 导出(B 端第二出口,对齐家族 @agile-team/mach-table-xlsx 路线):
|
|
1958
2133
|
* - 网格组件 → 真表格:列宽(mm→Excel 宽度)、行高(mm→pt)、colSpan/rowSpan 合并、
|
|
1959
2134
|
* 加粗/对齐/底色/字号直译(resolveGridLayout 复用单真相源几何)
|
|
1960
2135
|
* - 文本组件 → 合并标题行(顺序流式输出,保字号/加粗/对齐;非像素级定位,
|
|
1961
2136
|
* 目标是"财务能直接用的对账表"而非复刻版面)
|
|
1962
|
-
* -
|
|
2137
|
+
* - 原生 richText 保留基础字形;未支持组件、段落专有排版与单元格嵌套组件计入 diagnostics / warnings
|
|
1963
2138
|
*/
|
|
1964
2139
|
declare interface XlsxRenderOptions extends OutputDiagnosticOptions_2, XlsxImageOptions {
|
|
1965
2140
|
/** 工作表命名(连续表默认使用标题,其余默认 "Sheet1" 起序)。 */
|