@agile-team/mach-report 2.11.2 → 2.12.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.
Files changed (73) hide show
  1. package/README.md +14 -5
  2. package/THIRD_PARTY_NOTICES.md +270 -0
  3. package/dist/{ExcelBindingWizard-LWX6G1A2.js → ExcelBindingWizard-CeAf4QSE.js} +2 -2
  4. package/dist/{ExcelBindingWizard-a4kslPHF.cjs → ExcelBindingWizard-y0mT-AHR.cjs} +1 -1
  5. package/dist/{RuleEditor-C2QsOHOs.cjs → RuleEditor-ChRzNQuF.cjs} +1 -1
  6. package/dist/{RuleEditor-D9wQHrkf.js → RuleEditor-DzAmW5YH.js} +1 -1
  7. package/dist/analytics.d.cts +28 -0
  8. package/dist/analytics.d.ts +28 -0
  9. package/dist/assets-C2U-e-Sz.cjs +4 -0
  10. package/dist/assets-Q0wUwNrV.js +217 -0
  11. package/dist/code-options-BKXXY7NI.js +18 -0
  12. package/dist/code-options-BUTChiZZ.cjs +1 -0
  13. package/dist/codes.cjs +9 -0
  14. package/dist/codes.d.cts +223 -0
  15. package/dist/codes.d.ts +223 -0
  16. package/dist/codes.js +26917 -0
  17. package/dist/designer.cjs +2 -2
  18. package/dist/designer.d.cts +267 -0
  19. package/dist/designer.d.ts +267 -0
  20. package/dist/designer.js +2737 -1941
  21. package/dist/grid-strokes-Cr7DwUux.cjs +1 -0
  22. package/dist/grid-strokes-DyyG1q_o.js +53 -0
  23. package/dist/index.cjs +7 -7
  24. package/dist/index.d.cts +80 -1
  25. package/dist/index.d.ts +80 -1
  26. package/dist/index.js +404 -374
  27. package/dist/pdf.cjs +76 -59
  28. package/dist/pdf.d.cts +51 -0
  29. package/dist/pdf.d.ts +51 -0
  30. package/dist/pdf.js +32128 -32048
  31. package/dist/record-bindings-By_UKZ2g.cjs +1 -0
  32. package/dist/{list-cell-ClFra1zS.js → record-bindings-D-5jQlTj.js} +67 -44
  33. package/dist/{region-binding-workflow-DhQvu1co.cjs → region-binding-workflow-BzfbxRiR.cjs} +1 -1
  34. package/dist/{region-binding-workflow-CXDmt9Bs.js → region-binding-workflow-CcUq8W2Q.js} +1 -1
  35. package/dist/server/node.d.cts +52 -1
  36. package/dist/server/node.d.ts +52 -1
  37. package/dist/server-node.cjs +1 -1
  38. package/dist/server-node.js +239 -210
  39. package/dist/server.cjs +1 -1
  40. package/dist/server.d.cts +95 -3
  41. package/dist/server.d.ts +95 -3
  42. package/dist/server.js +456 -433
  43. package/dist/style.css +1 -1
  44. package/dist/{template-registry-WNXdkiET.js → template-registry-BjE1VS6g.js} +221 -157
  45. package/dist/template-registry-D3SjENi6.cjs +1 -0
  46. package/dist/template-review-BfCC8Ng9.cjs +2 -0
  47. package/dist/{template-review-BdcXSYbx.js → template-review-BzpcI-tR.js} +772 -666
  48. package/dist/validate-BJ5HIWY8.cjs +1 -0
  49. package/dist/validate-DbgEM1Hh.js +163 -0
  50. package/dist/vue/async.d.cts +121 -2
  51. package/dist/vue/async.d.ts +121 -2
  52. package/dist/vue/index.d.cts +114 -6
  53. package/dist/vue/index.d.ts +114 -6
  54. package/dist/{workbook-session-BKOTwcoq.js → workbook-session-BPb3TMnT.js} +1 -1
  55. package/dist/{workbook-session-CLYLhZWu.cjs → workbook-session-DNa2RHNG.cjs} +1 -1
  56. package/dist/worker.cjs +1 -1
  57. package/dist/worker.d.cts +52 -1
  58. package/dist/worker.d.ts +52 -1
  59. package/dist/worker.js +2 -2
  60. package/dist/xlsx.cjs +1 -1
  61. package/dist/xlsx.d.cts +40 -0
  62. package/dist/xlsx.d.ts +40 -0
  63. package/dist/xlsx.js +3 -3
  64. package/package.json +16 -3
  65. package/dist/assets-Bu6UohJx.cjs +0 -1
  66. package/dist/assets-DegqDNqY.js +0 -160
  67. package/dist/list-cell-BuYn4tGF.cjs +0 -1
  68. package/dist/template-registry-ukBGlm8N.cjs +0 -1
  69. package/dist/template-review-BXp2oyqg.cjs +0 -1
  70. package/dist/textwrap-CWHyzkBH.cjs +0 -4
  71. package/dist/textwrap-DE1kgcJB.js +0 -110
  72. package/dist/validate-7s0yn6ii.js +0 -148
  73. package/dist/validate-DsRiNw8h.cjs +0 -1
@@ -85,6 +85,39 @@ declare const BASE_TEMPLATE_EDITOR_MESSAGES: {
85
85
  note: string;
86
86
  invalid: string;
87
87
  };
88
+ /** Serializable symbol settings. Encoders remain in the optional /codes entry. */
89
+ declare interface CodeOptions {
90
+ /** Explicit content, including an empty value, takes precedence over legacy fallbackText. */
91
+ value?: string;
92
+ symbology?: "code128" | "code39" | "ean13" | "ean8";
93
+ errorCorrection?: "L" | "M" | "Q" | "H";
94
+ /** White modules around a symbol: QR >=4, linear >=10, EAN >=11. */
95
+ quietZoneModules?: number;
96
+ /** Human-readable content below a linear barcode. */
97
+ showText?: boolean;
98
+ }
99
+ /** Serializable symbol settings. Encoders remain in the optional /codes entry. */
100
+ declare interface CodeOptions_2 {
101
+ /** Explicit content, including an empty value, takes precedence over legacy fallbackText. */
102
+ value?: string;
103
+ symbology?: "code128" | "code39" | "ean13" | "ean8";
104
+ errorCorrection?: "L" | "M" | "Q" | "H";
105
+ /** White modules around a symbol: QR >=4, linear >=10, EAN >=11. */
106
+ quietZoneModules?: number;
107
+ /** Human-readable content below a linear barcode. */
108
+ showText?: boolean;
109
+ }
110
+ /** Serializable symbol settings. Encoders remain in the optional /codes entry. */
111
+ declare interface CodeOptions_3 {
112
+ /** Explicit content, including an empty value, takes precedence over legacy fallbackText. */
113
+ value?: string;
114
+ symbology?: "code128" | "code39" | "ean13" | "ean8";
115
+ errorCorrection?: "L" | "M" | "Q" | "H";
116
+ /** White modules around a symbol: QR >=4, linear >=10, EAN >=11. */
117
+ quietZoneModules?: number;
118
+ /** Human-readable content below a linear barcode. */
119
+ showText?: boolean;
120
+ }
88
121
  /**
89
122
  * 列值格式化(声明式、JSON 可序列化)。
90
123
  * 在 paginate 的 cellText 出口统一消费:格式化发生在进 RenderPlan 之前,
@@ -151,6 +184,30 @@ declare type ColumnFormat_3 = {
151
184
  kind: "date";
152
185
  pattern?: string;
153
186
  };
187
+ /** A literal own field of the current label record; expressions and paths are not evaluated. */
188
+ declare interface ComponentBinding {
189
+ field: string;
190
+ format?: ValueFormat;
191
+ prefix?: string;
192
+ suffix?: string;
193
+ emptyText?: string;
194
+ }
195
+ /** A literal own field of the current label record; expressions and paths are not evaluated. */
196
+ declare interface ComponentBinding_2 {
197
+ field: string;
198
+ format?: ValueFormat_2;
199
+ prefix?: string;
200
+ suffix?: string;
201
+ emptyText?: string;
202
+ }
203
+ /** A literal own field of the current label record; expressions and paths are not evaluated. */
204
+ declare interface ComponentBinding_3 {
205
+ field: string;
206
+ format?: ValueFormat_3;
207
+ prefix?: string;
208
+ suffix?: string;
209
+ emptyText?: string;
210
+ }
154
211
  declare interface ComponentImageContext {
155
212
  readonly component: Readonly<PlanComponent>;
156
213
  readonly pageIndex: number;
@@ -1465,6 +1522,18 @@ declare interface OutputDiagnostic {
1465
1522
  nid?: string;
1466
1523
  message: string;
1467
1524
  }
1525
+ declare interface OutputDiagnostic_2 {
1526
+ 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";
1527
+ severity: "warning";
1528
+ format: OutputFormat_2;
1529
+ pageIndex: number;
1530
+ componentIndex: number;
1531
+ /** Nested grid child location as repeating [rowIndex, columnIndex, childIndex] triples. */
1532
+ componentPath?: readonly number[];
1533
+ kind: string;
1534
+ nid?: string;
1535
+ message: string;
1536
+ }
1468
1537
  declare interface OutputDiagnosticOptions extends OutputTaskOptions {
1469
1538
  /** Structured fidelity diagnostics; rendering never silently invents missing content. */
1470
1539
  onDiagnostic?: (diagnostic: OutputDiagnostic) => void;
@@ -1472,6 +1541,7 @@ declare interface OutputDiagnosticOptions extends OutputTaskOptions {
1472
1541
  fidelity?: "warn" | "strict";
1473
1542
  }
1474
1543
  declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
1544
+ declare type OutputFormat_2 = "dom" | "canvas" | "pdf" | "xlsx";
1475
1545
  /** Stage counts are exact completed units; encoding libraries may remain indeterminate. */
1476
1546
  declare interface OutputTaskOptions {
1477
1547
  signal?: AbortSignal;
@@ -1554,6 +1624,10 @@ export declare interface ParamEditorOptions {
1554
1624
  accept(definitions: ReportParamDef[]): boolean;
1555
1625
  }
1556
1626
  declare interface PlanComponent {
1627
+ /** Optional QR/barcode encoding configuration; no encoder is loaded by the core. */
1628
+ code?: CodeOptions;
1629
+ /** Template-only binding; resolved and removed before constructing the output plan. */
1630
+ binding?: ComponentBinding;
1557
1631
  /** Template page furniture repeats per page and reserves its vertical band. */
1558
1632
  pageAnchor?: "header" | "footer";
1559
1633
  kind: ComponentKind;
@@ -1578,6 +1652,10 @@ declare interface PlanComponent {
1578
1652
  fallbackText?: string;
1579
1653
  }
1580
1654
  declare interface PlanComponent_2 {
1655
+ /** Optional QR/barcode encoding configuration; no encoder is loaded by the core. */
1656
+ code?: CodeOptions_2;
1657
+ /** Template-only binding; resolved and removed before constructing the output plan. */
1658
+ binding?: ComponentBinding_2;
1581
1659
  /** Template page furniture repeats per page and reserves its vertical band. */
1582
1660
  pageAnchor?: "header" | "footer";
1583
1661
  kind: ComponentKind_2;
@@ -1602,6 +1680,10 @@ declare interface PlanComponent_2 {
1602
1680
  fallbackText?: string;
1603
1681
  }
1604
1682
  declare interface PlanComponent_3 {
1683
+ /** Optional QR/barcode encoding configuration; no encoder is loaded by the core. */
1684
+ code?: CodeOptions_3;
1685
+ /** Template-only binding; resolved and removed before constructing the output plan. */
1686
+ binding?: ComponentBinding_3;
1605
1687
  /** Template page furniture repeats per page and reserves its vertical band. */
1606
1688
  pageAnchor?: "header" | "footer";
1607
1689
  kind: ComponentKind_3;
@@ -1701,6 +1783,78 @@ declare interface PlanTableFragment_3 {
1701
1783
  };
1702
1784
  }
1703
1785
  declare const PRODUCT_TEMPLATE_EDITOR_MESSAGES: {
1786
+ paperAndPages: string;
1787
+ pageDirectory: string;
1788
+ pageName: string;
1789
+ addPage: string;
1790
+ duplicatePage: string;
1791
+ removePage: string;
1792
+ removePageConfirm: string;
1793
+ confirmRemovePage: string;
1794
+ paperPreset: string;
1795
+ labelPaper: string;
1796
+ customPaper: string;
1797
+ paperWidth: string;
1798
+ paperHeight: string;
1799
+ pageLayout: string;
1800
+ fixedPaper: string;
1801
+ completeWide: string;
1802
+ pageMargins: string;
1803
+ marginTop: string;
1804
+ marginRight: string;
1805
+ marginBottom: string;
1806
+ marginLeft: string;
1807
+ pageOverflow: string;
1808
+ pageOverflowHint: string;
1809
+ locateOverflow: string;
1810
+ repeatRecords: string;
1811
+ repeatRecordsHint: string;
1812
+ recordDataset: string;
1813
+ recordRowKey: string;
1814
+ labelCopies: string;
1815
+ fixedCopies: string;
1816
+ fieldCopies: string;
1817
+ copiesPerRecord: string;
1818
+ copiesField: string;
1819
+ repeatBoundHint: string;
1820
+ repeatOrderHint: string;
1821
+ repeatNeedsFixed: string;
1822
+ dataBinding: string;
1823
+ contentSource: string;
1824
+ staticContent: string;
1825
+ recordField: string;
1826
+ bindingField: string;
1827
+ bindingNeedsRepeat: string;
1828
+ bindingRecordHint: string;
1829
+ bindingImageHint: string;
1830
+ valueFormat: string;
1831
+ naturalFormat: string;
1832
+ numberFormat: string;
1833
+ percentFormat: string;
1834
+ dateFormat: string;
1835
+ decimalPlaces: string;
1836
+ datePattern: string;
1837
+ bindingDecoration: string;
1838
+ valuePrefix: string;
1839
+ valueSuffix: string;
1840
+ emptyValueText: string;
1841
+ insertQrcode: string;
1842
+ insertBarcode: string;
1843
+ codeSettings: string;
1844
+ codeValue: string;
1845
+ codeSymbology: string;
1846
+ codeCorrection: string;
1847
+ codeQuietZone: string;
1848
+ codeShowText: string;
1849
+ eanContentHint: string;
1850
+ code39ContentHint: string;
1851
+ code128ContentHint: string;
1852
+ codePlaceholder: string;
1853
+ codePreviewHint: string;
1854
+ boundImagePlaceholder: string;
1855
+ rulerLabel: string;
1856
+ rulerToggle: string;
1857
+ designSample: string;
1704
1858
  repeatPage: string;
1705
1859
  repeatNone: string;
1706
1860
  repeatHeader: string;
@@ -2263,18 +2417,24 @@ declare interface ReportTemplate {
2263
2417
  schemaVersion?: string;
2264
2418
  /** 参数定义(可选;宿主也可经 ReportPreview 的 paramDefs prop 提供,prop 优先) */
2265
2419
  params?: ReportParamDef[];
2420
+ /** Fixed label pages repeat in record → copy → template-page order. */
2421
+ repeat?: ReportTemplateRepeat;
2266
2422
  pages: TemplatePage[];
2267
2423
  }
2268
2424
  declare interface ReportTemplate_2 {
2269
2425
  schemaVersion?: string;
2270
2426
  /** 参数定义(可选;宿主也可经 ReportPreview 的 paramDefs prop 提供,prop 优先) */
2271
2427
  params?: ReportParamDef_2[];
2428
+ /** Fixed label pages repeat in record → copy → template-page order. */
2429
+ repeat?: ReportTemplateRepeat_2;
2272
2430
  pages: TemplatePage_2[];
2273
2431
  }
2274
2432
  declare interface ReportTemplate_3 {
2275
2433
  schemaVersion?: string;
2276
2434
  /** 参数定义(可选;宿主也可经 ReportPreview 的 paramDefs prop 提供,prop 优先) */
2277
2435
  params?: ReportParamDef_3[];
2436
+ /** Fixed label pages repeat in record → copy → template-page order. */
2437
+ repeat?: ReportTemplateRepeat_3;
2278
2438
  pages: TemplatePage_3[];
2279
2439
  }
2280
2440
  declare interface ReportTemplateCatalogEntry extends ReportTemplateSummary {
@@ -2366,6 +2526,33 @@ export declare const ReportTemplateLibrary: DefineComponent<TemplateLibraryOptio
2366
2526
  }, string, MachReportVuePublicProps, Readonly<TemplateLibraryOptions> & Readonly<{
2367
2527
  onOpen?: ((document: ReportTemplateDocument_3, context?: ReportTemplateCatalogOpenContext_2 | undefined) => any) | undefined;
2368
2528
  }>, {}>;
2529
+ /** Every record emits its copies, each containing all template pages in their original order. */
2530
+ declare interface ReportTemplateRepeat {
2531
+ dataset: string;
2532
+ rowKey?: string;
2533
+ /** Whole copies per record, 1..1000. The field value must be a number, never a numeric string. */
2534
+ copies?: number | {
2535
+ field: string;
2536
+ };
2537
+ }
2538
+ /** Every record emits its copies, each containing all template pages in their original order. */
2539
+ declare interface ReportTemplateRepeat_2 {
2540
+ dataset: string;
2541
+ rowKey?: string;
2542
+ /** Whole copies per record, 1..1000. The field value must be a number, never a numeric string. */
2543
+ copies?: number | {
2544
+ field: string;
2545
+ };
2546
+ }
2547
+ /** Every record emits its copies, each containing all template pages in their original order. */
2548
+ declare interface ReportTemplateRepeat_3 {
2549
+ dataset: string;
2550
+ rowKey?: string;
2551
+ /** Whole copies per record, 1..1000. The field value must be a number, never a numeric string. */
2552
+ copies?: number | {
2553
+ field: string;
2554
+ };
2555
+ }
2369
2556
  declare interface ReportTemplateReviewIssue {
2370
2557
  code: "template" | "compatibility" | "dataset" | "field" | "sample" | "layout" | "output" | "params";
2371
2558
  severity: "error" | "warning";
@@ -2375,6 +2562,8 @@ declare interface ReportTemplateReviewIssue {
2375
2562
  pageIndex?: number;
2376
2563
  componentIndex?: number;
2377
2564
  field?: string;
2565
+ /** Original structured output finding, retained for trusted publication resource handling. */
2566
+ diagnostic?: OutputDiagnostic_2;
2378
2567
  }
2379
2568
  declare type ReportTemplateSummary = Omit<ReportTemplateDocument, "template">;
2380
2569
  declare interface RichParagraph {
@@ -2623,6 +2812,78 @@ declare interface StyleRule_3 {
2623
2812
  style: Record<string, unknown>;
2624
2813
  }
2625
2814
  export declare const TEMPLATE_EDITOR_MESSAGES: {
2815
+ paperAndPages: string;
2816
+ pageDirectory: string;
2817
+ pageName: string;
2818
+ addPage: string;
2819
+ duplicatePage: string;
2820
+ removePage: string;
2821
+ removePageConfirm: string;
2822
+ confirmRemovePage: string;
2823
+ paperPreset: string;
2824
+ labelPaper: string;
2825
+ customPaper: string;
2826
+ paperWidth: string;
2827
+ paperHeight: string;
2828
+ pageLayout: string;
2829
+ fixedPaper: string;
2830
+ completeWide: string;
2831
+ pageMargins: string;
2832
+ marginTop: string;
2833
+ marginRight: string;
2834
+ marginBottom: string;
2835
+ marginLeft: string;
2836
+ pageOverflow: string;
2837
+ pageOverflowHint: string;
2838
+ locateOverflow: string;
2839
+ repeatRecords: string;
2840
+ repeatRecordsHint: string;
2841
+ recordDataset: string;
2842
+ recordRowKey: string;
2843
+ labelCopies: string;
2844
+ fixedCopies: string;
2845
+ fieldCopies: string;
2846
+ copiesPerRecord: string;
2847
+ copiesField: string;
2848
+ repeatBoundHint: string;
2849
+ repeatOrderHint: string;
2850
+ repeatNeedsFixed: string;
2851
+ dataBinding: string;
2852
+ contentSource: string;
2853
+ staticContent: string;
2854
+ recordField: string;
2855
+ bindingField: string;
2856
+ bindingNeedsRepeat: string;
2857
+ bindingRecordHint: string;
2858
+ bindingImageHint: string;
2859
+ valueFormat: string;
2860
+ naturalFormat: string;
2861
+ numberFormat: string;
2862
+ percentFormat: string;
2863
+ dateFormat: string;
2864
+ decimalPlaces: string;
2865
+ datePattern: string;
2866
+ bindingDecoration: string;
2867
+ valuePrefix: string;
2868
+ valueSuffix: string;
2869
+ emptyValueText: string;
2870
+ insertQrcode: string;
2871
+ insertBarcode: string;
2872
+ codeSettings: string;
2873
+ codeValue: string;
2874
+ codeSymbology: string;
2875
+ codeCorrection: string;
2876
+ codeQuietZone: string;
2877
+ codeShowText: string;
2878
+ eanContentHint: string;
2879
+ code39ContentHint: string;
2880
+ code128ContentHint: string;
2881
+ codePlaceholder: string;
2882
+ codePreviewHint: string;
2883
+ boundImagePlaceholder: string;
2884
+ rulerLabel: string;
2885
+ rulerToggle: string;
2886
+ designSample: string;
2626
2887
  repeatPage: string;
2627
2888
  repeatNone: string;
2628
2889
  repeatHeader: string;
@@ -3029,6 +3290,12 @@ declare interface TreeTableOptions_3 {
3029
3290
  /** Bounded leaf-to-ancestor aggregate work; default one million. */
3030
3291
  maxAggregationVisits?: number;
3031
3292
  }
3293
+ /** The same declarative formatting used by list columns, before any output backend. */
3294
+ declare type ValueFormat = ColumnFormat;
3295
+ /** The same declarative formatting used by list columns, before any output backend. */
3296
+ declare type ValueFormat_2 = ColumnFormat_2;
3297
+ /** The same declarative formatting used by list columns, before any output backend. */
3298
+ declare type ValueFormat_3 = ColumnFormat_3;
3032
3299
  declare interface XlsxImageOptions {
3033
3300
  /** Decoded bytes per unique embedded image; default 16 MiB. */
3034
3301
  maxImageBytes?: number;