@agile-team/mach-report 2.23.1 → 2.25.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 (159) hide show
  1. package/README.md +10 -4
  2. package/dist/{ExcelBindingWizard-BrTmdo7f.cjs → ExcelBindingWizard-BgJG-T6k.cjs} +1 -1
  3. package/dist/{ExcelBindingWizard-CcDMLO8Q.js → ExcelBindingWizard-NQ_v396s.js} +3 -3
  4. package/dist/ParamEditor-DEP38mBp.cjs +1 -0
  5. package/dist/ParamEditor-Z-3yodp5.js +750 -0
  6. package/dist/{ReportBatchPanel-CHxBtG9R.cjs → ReportBatchPanel-D33LjMrA.cjs} +1 -1
  7. package/dist/{ReportBatchPanel-CJB67WNd.js → ReportBatchPanel-DG8FV-5X.js} +2 -2
  8. package/dist/{ReportLabelStudio-Tplc1TLJ.js → ReportLabelStudio-BZp23_hA.js} +68 -68
  9. package/dist/ReportLabelStudio-Bz-xAayk.cjs +1 -0
  10. package/dist/ReportParamPanel-B27IGJjk.cjs +1 -0
  11. package/dist/{ReportParamPanel-GI43aGa0.js → ReportParamPanel-DGXzBzl2.js} +328 -298
  12. package/dist/ReportPreview-CilFAS9U.js +7170 -0
  13. package/dist/ReportPreview-dOOzPts2.cjs +6 -0
  14. package/dist/{ReportTemplateLibrary-KqX4E2sN.js → ReportTemplateLibrary-DpSGgvFa.js} +28 -28
  15. package/dist/{ReportTemplateLibrary-BFQIX0sg.cjs → ReportTemplateLibrary-uG1gENaW.cjs} +1 -1
  16. package/dist/{RuleEditor-OPX1awrH.js → RuleEditor-BONALh1Q.js} +846 -835
  17. package/dist/RuleEditor-bLXiRcxL.cjs +1 -0
  18. package/dist/{TemplateOutlinePanel-CVYKVLv_.cjs → TemplateOutlinePanel-C3nfHuaR.cjs} +1 -1
  19. package/dist/{TemplateOutlinePanel-DQS-eOs6.js → TemplateOutlinePanel-JGBKeF3e.js} +10 -10
  20. package/dist/{TemplateReusePanel-CY6O93Zk.cjs → TemplateReusePanel-BKhgp6kg.cjs} +1 -1
  21. package/dist/{TemplateReusePanel-DKXiFTyB.js → TemplateReusePanel-DXQUO6nQ.js} +2 -2
  22. package/dist/TemplateReviewPanel-5RWFUUEf.cjs +1 -0
  23. package/dist/TemplateReviewPanel-DhL7Hapy.js +602 -0
  24. package/dist/analytics.d.cts +1 -1
  25. package/dist/analytics.d.ts +1 -1
  26. package/dist/artifact-integrity.json +98 -98
  27. package/dist/assets-BYdpkTIt.cjs +1 -0
  28. package/dist/assets-C4MIvzQ4.js +137 -0
  29. package/dist/auto-D-eDZa_V.cjs +1 -0
  30. package/dist/{auto-BB99S802.js → auto-umW_ozwr.js} +10 -10
  31. package/dist/capabilities-CN_kSVjO.js +121 -0
  32. package/dist/capabilities-D4nfhcvB.cjs +1 -0
  33. package/dist/cell-style-B6Qffrx8.js +37 -0
  34. package/dist/cell-style-y_uh1pZp.cjs +1 -0
  35. package/dist/{data-bar-IkI6VvMQ.js → data-bar-Bfh54sT4.js} +1 -1
  36. package/dist/data-bar-DzceAVeR.cjs +1 -0
  37. package/dist/designer-CCyj5WYS.js +7595 -0
  38. package/dist/designer-Cj7fn4Hh.cjs +2 -0
  39. package/dist/designer.cjs +1 -1
  40. package/dist/designer.d.cts +143 -10
  41. package/dist/designer.d.ts +143 -10
  42. package/dist/designer.js +5 -5
  43. package/dist/diagnostic-collector-gB07PHy2.js +392 -0
  44. package/dist/diagnostic-collector-wASg6Fzs.cjs +1 -0
  45. package/dist/dom-CXWMmwh-.cjs +1 -0
  46. package/dist/{dom-JWrchIre.js → dom-DxdCMLzs.js} +185 -185
  47. package/dist/{encoding-CEd-dq9A.js → encoding-CEkBtlUP.js} +2 -2
  48. package/dist/{encoding-7lquyj0w.cjs → encoding-Cipno7dq.cjs} +1 -1
  49. package/dist/{font-loader-CNWXomuV.js → font-loader-D4NLIKJL.js} +1 -1
  50. package/dist/{font-loader-D8pI87fL.cjs → font-loader-p_SyTvqt.cjs} +1 -1
  51. package/dist/{grid-strokes-EoY66L2f.js → grid-strokes-DkZEZvcI.js} +1 -1
  52. package/dist/grid-strokes-RFMR91jn.cjs +1 -0
  53. package/dist/index.cjs +5 -5
  54. package/dist/index.d.cts +48 -9
  55. package/dist/index.d.ts +48 -9
  56. package/dist/index.js +137 -136
  57. package/dist/json-snapshot-DQdkA_At.cjs +2 -0
  58. package/dist/{json-snapshot-BRnzKudk.js → json-snapshot-x0JpllWL.js} +919 -791
  59. package/dist/{pdf-DpMkW72B.cjs → pdf-C060D5UY.cjs} +31 -31
  60. package/dist/{pdf-CJToa81Z.js → pdf-DU8HelKd.js} +2499 -2492
  61. package/dist/pdf.cjs +1 -1
  62. package/dist/pdf.d.cts +18 -0
  63. package/dist/pdf.d.ts +18 -0
  64. package/dist/pdf.js +2 -2
  65. package/dist/{plugin-BWTp-X7b.cjs → plugin-B_k23hut.cjs} +1 -1
  66. package/dist/{plugin-_BkUVc2z.js → plugin-CttO46hc.js} +1 -1
  67. package/dist/{prefill-CWGdnqQd.js → prefill-BkF9Fw_p.js} +13 -13
  68. package/dist/prefill-BvkuwooY.cjs +1 -0
  69. package/dist/prepared-CSywIEAZ.cjs +1 -0
  70. package/dist/prepared-Cyuh61fJ.js +128 -0
  71. package/dist/protocol-BwbJNVZl.cjs +1 -0
  72. package/dist/protocol-DwtxjXzO.js +96 -0
  73. package/dist/record-bindings-B7djSjNs.cjs +1 -0
  74. package/dist/{record-bindings-DatJZv_e.js → record-bindings-Cv7lFiof.js} +47 -47
  75. package/dist/{region-binding-workflow-l7NGfagJ.cjs → region-binding-workflow-COD8nISZ.cjs} +1 -1
  76. package/dist/{region-binding-workflow-DjrXuR1q.js → region-binding-workflow-D8I4QWRh.js} +2 -2
  77. package/dist/report-encoding-worker.cjs +1 -1
  78. package/dist/report-encoding-worker.js +1 -1
  79. package/dist/{rich-text-layout-Ciwa6D2o.js → rich-text-layout-Ch_N0Ubu.js} +1 -1
  80. package/dist/rich-text-layout-yJGuThtC.cjs +3 -0
  81. package/dist/runtime-BE30icyB.js +227 -0
  82. package/dist/runtime-DRSuy_SQ.cjs +1 -0
  83. package/dist/sbom.cdx.json +1 -1
  84. package/dist/server/node.d.cts +55 -7
  85. package/dist/server/node.d.ts +55 -7
  86. package/dist/server-node.cjs +5 -5
  87. package/dist/server-node.js +2742 -2417
  88. package/dist/server.cjs +1 -1
  89. package/dist/server.d.cts +51 -16
  90. package/dist/server.d.ts +51 -16
  91. package/dist/server.js +8 -8
  92. package/dist/style.css +1 -1
  93. package/dist/{template-catalog-DtrtT1FY.cjs → template-catalog-C0riwrx7.cjs} +1 -1
  94. package/dist/{template-catalog-CRuZL3pi.js → template-catalog-D_gl93va.js} +3 -3
  95. package/dist/template-fragments-CgzPdFKB.cjs +1 -0
  96. package/dist/{template-fragments-CPpGpQoz.js → template-fragments-D94ZZmPc.js} +2 -2
  97. package/dist/template-registry-BMScUmM4.cjs +1 -0
  98. package/dist/{template-registry-O0hNIOfB.js → template-registry-DZOtRY7t.js} +19 -19
  99. package/dist/{textwrap-D4ZksyMK.js → textwrap-BywMBMXM.js} +1 -1
  100. package/dist/textwrap-LhJkHWb1.cjs +4 -0
  101. package/dist/vue/async.d.cts +101 -22
  102. package/dist/vue/async.d.ts +101 -22
  103. package/dist/vue/index.d.cts +133 -34
  104. package/dist/vue/index.d.ts +133 -34
  105. package/dist/vue-async.cjs +1 -1
  106. package/dist/vue-async.js +3 -3
  107. package/dist/vue.cjs +1 -1
  108. package/dist/vue.js +192 -162
  109. package/dist/{workbook-session-C6-SrnCT.cjs → workbook-session-DR2j6Hxm.cjs} +3 -3
  110. package/dist/{workbook-session-C9ZmCBwY.js → workbook-session-SzfILBJJ.js} +106 -107
  111. package/dist/worker.cjs +1 -1
  112. package/dist/worker.d.cts +55 -7
  113. package/dist/worker.d.ts +55 -7
  114. package/dist/worker.js +4 -4
  115. package/dist/xlsx/node.d.cts +30 -1
  116. package/dist/xlsx/node.d.ts +30 -1
  117. package/dist/xlsx-node.cjs +42 -42
  118. package/dist/xlsx-node.js +3908 -3889
  119. package/dist/xlsx.cjs +4 -4
  120. package/dist/xlsx.d.cts +20 -3
  121. package/dist/xlsx.d.ts +20 -3
  122. package/dist/xlsx.js +302 -295
  123. package/package.json +1 -1
  124. package/dist/ParamEditor-BGjovFUe.js +0 -737
  125. package/dist/ParamEditor-CeNp4_zQ.cjs +0 -1
  126. package/dist/ReportLabelStudio-g8PkqJWn.cjs +0 -1
  127. package/dist/ReportParamPanel-C7fZTllk.cjs +0 -1
  128. package/dist/ReportPreview-BoGBGyRr.cjs +0 -6
  129. package/dist/ReportPreview-QLONCyci.js +0 -6257
  130. package/dist/RuleEditor-BZUP9yvL.cjs +0 -1
  131. package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +0 -1
  132. package/dist/TemplateReviewPanel-Dijwm9YE.js +0 -593
  133. package/dist/assets-D2gHc4Mz.cjs +0 -1
  134. package/dist/assets-T_gDeFaz.js +0 -132
  135. package/dist/auto-BrPWo7Xm.cjs +0 -1
  136. package/dist/capabilities-DiBj4Qgl.cjs +0 -1
  137. package/dist/capabilities-pg7j7VLT.js +0 -106
  138. package/dist/data-bar-CeZuFmYl.cjs +0 -1
  139. package/dist/designer-BZoVWTgl.js +0 -7172
  140. package/dist/designer-zS2uKJmY.cjs +0 -2
  141. package/dist/dom-ChE5D-L-.cjs +0 -1
  142. package/dist/grid-strokes-Be24LGuV.cjs +0 -1
  143. package/dist/json-snapshot-DNiIbpOr.cjs +0 -2
  144. package/dist/prefill-PaAy6wLk.cjs +0 -1
  145. package/dist/prepared-CJy_qk7d.js +0 -94
  146. package/dist/prepared-D0yCSxSO.cjs +0 -1
  147. package/dist/progress-BXzlVbIp.js +0 -29
  148. package/dist/progress-ByiOxUD3.js +0 -250
  149. package/dist/progress-DJBd9Rb9.cjs +0 -1
  150. package/dist/progress-WomPRP3B.cjs +0 -1
  151. package/dist/protocol-BG16rz6D.js +0 -90
  152. package/dist/protocol-wzhl1Fim.cjs +0 -1
  153. package/dist/record-bindings-MBxbeBsi.cjs +0 -1
  154. package/dist/rich-text-layout-DK7A_a5r.cjs +0 -3
  155. package/dist/runtime-DYMOS_gz.cjs +0 -1
  156. package/dist/runtime-PiCax9zQ.js +0 -171
  157. package/dist/template-fragments-GVjpew_q.cjs +0 -1
  158. package/dist/template-registry-DI59PXVK.cjs +0 -1
  159. package/dist/textwrap-DEHqAjKZ.cjs +0 -4
package/dist/index.d.ts CHANGED
@@ -462,6 +462,19 @@ export declare function defineReportTemplate(document: Omit<ReportTemplateDocume
462
462
  schemaVersion?: typeof REPORT_TEMPLATE_DOCUMENT_VERSION;
463
463
  }): ReportTemplateDocument;
464
464
 
465
+ /** Bounded detail window with exact occurrence totals. Unknown business codes beyond 128 buckets share `other`. */
466
+ export declare interface DiagnosticSummary<T> {
467
+ readonly total: number;
468
+ readonly counts: Readonly<Record<string, number>>;
469
+ readonly entries: readonly T[];
470
+ readonly omitted: number;
471
+ /** Business value explanations form a separate presentation channel, including omitted locations. */
472
+ readonly explanations?: {
473
+ readonly total: number;
474
+ readonly counts: Readonly<Record<string, number>>;
475
+ };
476
+ }
477
+
465
478
  /** Semantic column identities keep a reorder distinct from deleting or rebinding a field. */
466
479
  export declare function diffReportTemplates(previous: ReportTemplateDocument, next: ReportTemplateDocument, options?: {
467
480
  maxChanges?: number;
@@ -634,8 +647,12 @@ export declare function imposeLabelSheets(plan: RenderPlan, options: LabelSheetO
634
647
  /** Explicit replacement is atomic and preserves surrounding components and the document CAS revision. */
635
648
  export declare function insertTemplateFragment(input: ReportTemplateDocument, fragment: ReportTemplateFragment, options: TemplateFragmentInsertOptions): TemplateFragmentResult;
636
649
 
650
+ /** Complete enumeration retained for callers that explicitly need every issue location. */
637
651
  export declare function inspectOutputCapabilities(plan: RenderPlan, format: OutputFormat): OutputDiagnostic[];
638
652
 
653
+ /** Exact issue totals and a bounded location window, without materializing every issue. */
654
+ export declare function inspectOutputCapabilitiesSummary(plan: RenderPlan, format: OutputFormat, limit?: number): DiagnosticSummary<OutputDiagnostic>;
655
+
639
656
  /** Check before applying a stored template to a new host dataset. Missing provenance is explicit. */
640
657
  export declare function inspectReportTemplateCompatibility(template: ReportTemplate, target: ReportTemplateDataContract): ReportTemplateCompatibilityResult;
641
658
 
@@ -732,7 +749,7 @@ export declare type LabelTemplatePage = Pick<TemplatePage, "components" | "meta"
732
749
  /** 默认行高倍数(基线距 = 字号 × 该系数) */
733
750
  export declare const LINE_HEIGHT = 1.35;
734
751
 
735
- /** auto:真实数字/显式数值格式居右,日期与布尔居中,其他内容居左。 */
752
+ /** auto:真实数字、显式数值格式、日期与布尔居中,其他内容居左。 */
736
753
  export declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
737
754
 
738
755
  export declare interface ListColumn {
@@ -791,7 +808,7 @@ export declare interface ListComponent {
791
808
  paddingMm?: number;
792
809
  headerEveryPage?: boolean;
793
810
  headerBackgroundColor?: string;
794
- /** 内容默认对齐,列配置可覆盖;低层模板缺省仍为 left。 */
811
+ /** 内容默认对齐,列配置可覆盖,缺省为 auto。 */
795
812
  align?: ListAlignment;
796
813
  /** 表头默认对齐,列配置可覆盖。 */
797
814
  headerAlign?: ComponentStyle["align"];
@@ -956,12 +973,15 @@ export declare interface OutputDiagnosticOptions extends OutputTaskOptions {
956
973
  onDiagnostic?: (diagnostic: OutputDiagnostic) => void;
957
974
  /** Reject known unsupported content before creating an incomplete file. Default warn. */
958
975
  fidelity?: "warn" | "strict";
976
+ /** Explicit bounded detail window (0–1000); omitted retains the complete diagnostic array. */
977
+ diagnosticLimit?: number;
959
978
  }
960
979
 
961
980
  export declare class OutputFidelityError extends Error {
962
981
  readonly diagnostics: readonly OutputDiagnostic[];
982
+ readonly diagnosticSummary?: DiagnosticSummary<OutputDiagnostic> | undefined;
963
983
  readonly code = "output-fidelity";
964
- constructor(diagnostics: readonly OutputDiagnostic[]);
984
+ constructor(diagnostics: readonly OutputDiagnostic[], diagnosticSummary?: DiagnosticSummary<OutputDiagnostic> | undefined);
965
985
  }
966
986
 
967
987
  export declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
@@ -1628,7 +1648,7 @@ export declare interface ReportDefinitionOptions<TData> extends Omit<ReportDefin
1628
1648
  mapData: (data: TData, context: ReportLoadContext) => DatasetRows;
1629
1649
  }
1630
1650
 
1631
- export declare interface ReportDiagnostic {
1651
+ export declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
1632
1652
  code: string;
1633
1653
  message: string;
1634
1654
  path?: string;
@@ -1975,6 +1995,11 @@ export declare interface ReportProvider {
1975
1995
  templates?: ReportTemplateProvider;
1976
1996
  }
1977
1997
 
1998
+ export declare interface ReportProviderConflict extends Pick<ReportEditConflict, "message" | "currentValue" | "revision"> {
1999
+ editIndex: number;
2000
+ code: string;
2001
+ }
2002
+
1978
2003
  export declare interface ReportProviderExportInput extends ReportLoadContext {
1979
2004
  format: "pdf" | "xlsx";
1980
2005
  }
@@ -1986,6 +2011,14 @@ export declare interface ReportProviderExportResult {
1986
2011
  diagnostics?: ReportDiagnostic[];
1987
2012
  }
1988
2013
 
2014
+ /** Context of an accepted query, independent of an unsubmitted filter form. */
2015
+ export declare interface ReportQueryContext {
2016
+ queryId?: string;
2017
+ reportIds: readonly string[];
2018
+ params: Readonly<Record<string, string>>;
2019
+ sources: readonly Readonly<ReportQuerySource>[];
2020
+ }
2021
+
1989
2022
  export declare interface ReportQueryResult {
1990
2023
  datasets: DatasetRows;
1991
2024
  revision?: string;
@@ -1993,6 +2026,15 @@ export declare interface ReportQueryResult {
1993
2026
  diagnostics?: ReportDiagnostic[];
1994
2027
  }
1995
2028
 
2029
+ /** One ordered query occurrence, shared by browser editing and Node preparation. */
2030
+ export declare interface ReportQuerySource {
2031
+ reportId: string;
2032
+ reportIndex: number;
2033
+ reportScope: string;
2034
+ revision?: string;
2035
+ sourceToken?: string;
2036
+ }
2037
+
1996
2038
  export declare type ReportRegistry = Record<string, ReportDefinition>;
1997
2039
 
1998
2040
  export declare interface ReportSaveInput extends ReportLoadContext {
@@ -2006,11 +2048,7 @@ export declare interface ReportSaveInput extends ReportLoadContext {
2006
2048
  export declare interface ReportSaveResult {
2007
2049
  revision: string;
2008
2050
  sourceToken?: string;
2009
- conflicts?: Array<{
2010
- editIndex: number;
2011
- code: string;
2012
- message: string;
2013
- }>;
2051
+ conflicts?: ReportProviderConflict[];
2014
2052
  diagnostics?: ReportDiagnostic[];
2015
2053
  }
2016
2054
 
@@ -2430,6 +2468,7 @@ export declare function resolvePaper(paper: PaperName | {
2430
2468
  export declare function resolvePlanAssets(plan: RenderPlan, options?: ResolvePlanAssetsOptions): Promise<{
2431
2469
  plan: RenderPlan;
2432
2470
  diagnostics: OutputDiagnostic[];
2471
+ diagnosticSummary?: DiagnosticSummary<OutputDiagnostic>;
2433
2472
  }>;
2434
2473
 
2435
2474
  export declare interface ResolvePlanAssetsOptions extends AssetRenderOptions {
package/dist/index.js CHANGED
@@ -1,29 +1,29 @@
1
- import { a as V, b as Q, c as fe, i as he, D as ge, o as nt, d as le, p as _, e as rt, r as it, f as ot, m as at, g as st, P as ee, w as Pe } from "./progress-ByiOxUD3.js";
2
- import { C as lr, h as mr, j as dr, k as fr, L as hr, M as gr, R as ur, S as pr, l as wr, n as br, q as yr, s as Mr } from "./progress-ByiOxUD3.js";
3
- import { P as xr, e as Er, f as Sr, R as Rr, g as Cr, h as Tr, p as Pr, b as $r, t as Or, j as Ar } from "./record-bindings-DatJZv_e.js";
4
- import { v as Fe, R as je, a as me, p as X, b as ct } from "./template-registry-O0hNIOfB.js";
5
- import { c as Dr, d as Lr, e as Nr, i as kr, s as Fr, f as jr, g as zr, h as Hr } from "./template-registry-O0hNIOfB.js";
1
+ import { a as V, c as Q, d as fe, i as he, D as ge, o as nt, e as le, p as _, f as rt, r as it, g as ot, b as at, h as st, P as ee, w as Pe } from "./diagnostic-collector-gB07PHy2.js";
2
+ import { C as lr, j as mr, k as dr, l as fr, L as hr, M as gr, R as ur, S as pr, m as wr, n as br, q as yr, s as Mr, t as vr } from "./diagnostic-collector-gB07PHy2.js";
3
+ import { P as Er, e as Sr, f as Rr, R as Cr, g as Tr, h as Pr, p as $r, b as Or, t as Ar, j as Ir } from "./record-bindings-Cv7lFiof.js";
4
+ import { v as Fe, R as je, a as me, p as X, b as ct } from "./template-registry-DZOtRY7t.js";
5
+ import { c as Lr, d as Nr, e as kr, i as Fr, s as jr, f as zr, g as Hr, h as Br } from "./template-registry-DZOtRY7t.js";
6
6
  import { v as lt } from "./dataset-DL83majE.js";
7
- import { d as _r } from "./dataset-DL83majE.js";
8
- import { h as ue, w as ze } from "./textwrap-D4ZksyMK.js";
9
- import { c as Ur, a as qr, b as Vr, m as Jr } from "./textwrap-D4ZksyMK.js";
10
- import { R as pe, d as mt, s as He, a as dt, p as ft } from "./json-snapshot-BRnzKudk.js";
11
- import { D as Kr, b as Yr, c as Xr, e as Zr, f as Qr, g as ei, h as ti, i as ni, j as ri, k as ii, l as oi, m as ai, n as si, o as ci, q as li, r as mi, t as di, u as fi, v as hi, w as gi, x as ui, y as pi, z as wi, A as bi, B as yi, C as Mi, E as vi, F as xi, G as Ei } from "./json-snapshot-BRnzKudk.js";
12
- import { c as Ri, a as Ci, b as Ti, i as Pi, r as $i, d as Oi, e as Ai, t as Ii } from "./dom-JWrchIre.js";
13
- import { d as ht } from "./data-bar-IkI6VvMQ.js";
14
- import { d as gt } from "./rich-text-layout-Ciwa6D2o.js";
15
- import { r as re, n as Be, O as ut } from "./capabilities-pg7j7VLT.js";
16
- import { i as Li } from "./capabilities-pg7j7VLT.js";
17
- import { r as we } from "./assets-T_gDeFaz.js";
18
- import { O as ki } from "./assets-T_gDeFaz.js";
19
- import { r as pt } from "./grid-strokes-EoY66L2f.js";
20
- import { c as wt } from "./prefill-CWGdnqQd.js";
21
- import { R as ji, a as zi, b as Hi, d as Bi, e as _i, m as Wi, r as Ui, f as qi, g as Vi, v as Ji } from "./prefill-CWGdnqQd.js";
22
- import { R as Ki, a as Yi, f as Xi, b as Zi, c as Qi, d as eo, i as to, e as no, g as ro, p as io, h as oo, j as ao, k as so, r as co, v as lo, l as mo } from "./param-validation-CnDEd2l-.js";
23
- import { n as ho, f as go, o as uo, r as po, l as wo } from "./computed-f3pOqWLX.js";
24
- import { c as yo, a as Mo, d as vo, r as xo, b as Eo } from "./template-catalog-CRuZL3pi.js";
25
- import { a as Ro, c as Co, i as To, b as Po } from "./template-fragments-CPpGpQoz.js";
26
- import { T as Oo, c as Ao, a as Io } from "./template-serialization-CWmHq7lX.js";
7
+ import { d as Wr } from "./dataset-DL83majE.js";
8
+ import { h as ue, w as ze } from "./textwrap-BywMBMXM.js";
9
+ import { c as qr, a as Vr, b as Jr, m as Gr } from "./textwrap-BywMBMXM.js";
10
+ import { R as pe, d as mt, s as He, a as dt, p as ft } from "./json-snapshot-x0JpllWL.js";
11
+ import { D as Yr, b as Xr, c as Zr, e as Qr, f as ei, g as ti, h as ni, i as ri, j as ii, k as oi, l as ai, m as si, n as ci, o as li, q as mi, r as di, t as fi, u as hi, v as gi, w as ui, x as pi, y as wi, z as bi, A as yi, B as Mi, C as vi, E as xi, F as Ei, G as Si } from "./json-snapshot-x0JpllWL.js";
12
+ import { c as Ci, a as Ti, b as Pi, i as $i, r as Oi, d as Ai, e as Ii, t as Di } from "./dom-DxdCMLzs.js";
13
+ import { d as ht } from "./data-bar-Bfh54sT4.js";
14
+ import { d as gt } from "./rich-text-layout-Ch_N0Ubu.js";
15
+ import { r as re, n as Be, O as ut } from "./capabilities-CN_kSVjO.js";
16
+ import { i as Ni, a as ki } from "./capabilities-CN_kSVjO.js";
17
+ import { r as we } from "./assets-C4MIvzQ4.js";
18
+ import { O as ji } from "./assets-C4MIvzQ4.js";
19
+ import { r as pt } from "./grid-strokes-DkZEZvcI.js";
20
+ import { c as wt } from "./prefill-BkF9Fw_p.js";
21
+ import { R as Hi, a as Bi, b as _i, d as Wi, e as Ui, m as qi, r as Vi, f as Ji, g as Gi, v as Ki } from "./prefill-BkF9Fw_p.js";
22
+ import { R as Xi, a as Zi, f as Qi, b as eo, c as to, d as no, i as ro, e as io, g as oo, p as ao, h as so, j as co, k as lo, r as mo, v as fo, l as ho } from "./param-validation-CnDEd2l-.js";
23
+ import { n as uo, f as po, o as wo, r as bo, l as yo } from "./computed-f3pOqWLX.js";
24
+ import { c as vo, a as xo, d as Eo, r as So, b as Ro } from "./template-catalog-D_gl93va.js";
25
+ import { a as To, c as Po, i as $o, b as Oo } from "./template-fragments-D94ZZmPc.js";
26
+ import { T as Io, c as Do, a as Lo } from "./template-serialization-CWmHq7lX.js";
27
27
  function be(e, t, n, r, i, o, l, s = "top") {
28
28
  e.font = `${t.italic ? "italic " : ""}${t.bold ? "bold " : ""}${t.fontSizePx}px ${l}`, "letterSpacing" in e && (e.letterSpacing = "0px"), e.fillStyle = t.color, e.textBaseline = "alphabetic";
29
29
  const a = t.fontSizePx * t.lineHeight, c = t.text === "" ? [""] : t.text.split(`
@@ -155,7 +155,7 @@ function Tt(e, t, n, r, i, o, l, s, a, c, m, f) {
155
155
  for (const h of d.cells) Pt(e, h, n, r, i, s, a, c, m, f);
156
156
  }
157
157
  function Pt(e, t, n, r, i, o, l, s, a, c) {
158
- const m = n.grid?.paddingMm ?? 0.5, f = t.cell.text ?? "", d = at(n.style, t.cell.style), h = V(d, l), g = t.cell.indentMm ?? 0, S = Math.max(0, t.widthMm - 2 * m - g), E = ze(f, S, { fontSizePt: h.fontSizePt, bold: d.bold, italic: d.italic, fontFamily: d.fontFamily ?? s, letterSpacingPt: d.letterSpacing }, a).join(`
158
+ const m = n.grid?.paddingMm ?? 0.5, f = t.cell.text ?? "", d = at(n.style, t.cell), h = V(d, l), g = t.cell.indentMm ?? 0, S = Math.max(0, t.widthMm - 2 * m - g), E = ze(f, S, { fontSizePt: h.fontSizePt, bold: d.bold, italic: d.italic, fontFamily: d.fontFamily ?? s, letterSpacingPt: d.letterSpacing }, a).join(`
159
159
  `), b = { x: r + (t.xMm + m + g) * o, y: i + (t.yMm + m) * o, width: S * o, height: Math.max(0, t.heightMm - 2 * m) * o };
160
160
  e.save(), e.beginPath(), e.rect(b.x, b.y, b.width, b.height), e.clip(), t.cell.richParagraphs?.length ? _e(e, { ...n, richParagraphs: t.cell.richParagraphs, style: { verticalAlign: "middle", ...d } }, b, l, s) : be(
161
161
  e,
@@ -1516,180 +1516,181 @@ export {
1516
1516
  mr as DEFAULT_BORDER_PT,
1517
1517
  ge as DEFAULT_FONT_FAMILY,
1518
1518
  dr as DEFAULT_FONT_PT,
1519
- Kr as DEFAULT_LABEL_PAGE_LIMIT,
1519
+ Yr as DEFAULT_LABEL_PAGE_LIMIT,
1520
1520
  fr as DEFAULT_STROKE_COLOR,
1521
1521
  st as DEFAULT_TEXT_COLOR,
1522
1522
  hr as LINE_HEIGHT,
1523
1523
  P as LabelSheetError,
1524
1524
  gr as MM_PER_INCH,
1525
- ki as OutputAssetError,
1525
+ ji as OutputAssetError,
1526
1526
  ut as OutputFidelityError,
1527
1527
  ee as PAPER_SIZES,
1528
1528
  Dt as PageBuilder,
1529
- xr as PaginateCellLimitError,
1530
- Er as PaginateChartComponentLimitError,
1531
- Sr as PaginatePageLimitError,
1529
+ Er as PaginateCellLimitError,
1530
+ Sr as PaginateChartComponentLimitError,
1531
+ Rr as PaginatePageLimitError,
1532
1532
  ur as RENDER_PLAN_SCHEMA_VERSION,
1533
1533
  me as REPORT_TEMPLATE_DOCUMENT_VERSION,
1534
- Rr as ReportBindingError,
1534
+ Cr as ReportBindingError,
1535
1535
  y as ReportCalculationError,
1536
1536
  dt as ReportCellEditError,
1537
1537
  nn as ReportCellFieldError,
1538
1538
  u as ReportComponentExtensionError,
1539
- ji as ReportDataError,
1540
- zi as ReportDrillError,
1541
- Ki as ReportParamValidationError,
1539
+ Hi as ReportDataError,
1540
+ Bi as ReportDrillError,
1541
+ Xi as ReportParamValidationError,
1542
1542
  pe as ReportSourceError,
1543
1543
  je as ReportTemplateError,
1544
1544
  N as ReportTemplateMigrationError,
1545
1545
  L as ReportTemplateStoreError,
1546
- Yr as ReportValidationError,
1546
+ Xr as ReportValidationError,
1547
1547
  pr as SCHEMA_VERSION_MACH,
1548
1548
  It as TemplateBuilder,
1549
- Oo as TreeRowLimitError,
1550
- Xr as applyReportCellEdit,
1551
- Zr as applyReportCellEditBatch,
1552
- Ro as applyReportDocumentStyle,
1553
- Qr as applyReportEditResult,
1554
- ei as applyReportSourceMetadata,
1555
- Dr as assertRenderPlan,
1556
- Yi as assertReportParams,
1557
- ti as assertReportValidation,
1549
+ Io as TreeRowLimitError,
1550
+ Zr as applyReportCellEdit,
1551
+ Qr as applyReportCellEditBatch,
1552
+ To as applyReportDocumentStyle,
1553
+ ei as applyReportEditResult,
1554
+ ti as applyReportSourceMetadata,
1555
+ Lr as assertRenderPlan,
1556
+ Zi as assertReportParams,
1557
+ ni as assertReportValidation,
1558
1558
  ar as bindReportTemplateContext,
1559
1559
  rr as calculateReportSelection,
1560
- Co as captureTemplateFragment,
1561
- Ur as charWidthEm,
1562
- Ri as classOf,
1563
- yo as cloneReportTemplate,
1564
- Ci as collectTemplateOutline,
1560
+ Po as captureTemplateFragment,
1561
+ qr as charWidthEm,
1562
+ Ci as classOf,
1563
+ vo as cloneReportTemplate,
1564
+ Ti as collectTemplateOutline,
1565
1565
  Vn as columnsFromContract,
1566
- Hi as compareReportData,
1567
- ho as compileReportPredicate,
1566
+ _i as compareReportData,
1567
+ uo as compileReportPredicate,
1568
1568
  St as computePageWindow,
1569
- ni as countTemplatePages,
1570
- qr as createCanvasMeasurer,
1569
+ ri as countTemplatePages,
1570
+ Vr as createCanvasMeasurer,
1571
1571
  Un as createCanvasPager,
1572
- Vr as createHeuristicMeasurer,
1572
+ Jr as createHeuristicMeasurer,
1573
1573
  Gn as createLabelTemplate,
1574
- Mo as createLocalTemplateCatalog,
1574
+ xo as createLocalTemplateCatalog,
1575
1575
  Zn as createMemoryTemplateStore,
1576
- Ti as createPageViewportRenderer,
1576
+ Pi as createPageViewportRenderer,
1577
1577
  Yn as createProviderReport,
1578
- ri as createReportCellEdit,
1579
- ii as createReportCellEditBatch,
1580
- oi as createReportCellResolver,
1581
- go as createReportChartData,
1578
+ ii as createReportCellEdit,
1579
+ oi as createReportCellEditBatch,
1580
+ ai as createReportCellResolver,
1581
+ po as createReportChartData,
1582
1582
  Qn as createReportComponentRegistry,
1583
- Bi as createReportDrillRequest,
1584
- ai as createReportEditSession,
1585
- _i as createReportPrefill,
1586
- si as createReportSource,
1583
+ Wi as createReportDrillRequest,
1584
+ si as createReportEditSession,
1585
+ Ui as createReportPrefill,
1586
+ ci as createReportSource,
1587
1587
  Jn as createTableTemplate,
1588
1588
  qn as createTemplate,
1589
1589
  Xn as createTemplateManager,
1590
1590
  Wt as createTemplateMigrator,
1591
- Lr as createTemplateRegistry,
1592
- Ao as createTreeTable,
1593
- _r as datasetJsonSchema,
1591
+ Nr as createTemplateRegistry,
1592
+ Do as createTreeTable,
1593
+ Wr as datasetJsonSchema,
1594
1594
  Kn as defineLabelReport,
1595
1595
  mt as defineReport,
1596
- Nr as defineReportTemplate,
1597
- vo as diffReportTemplates,
1598
- ci as estimateListLayoutCells,
1599
- Cr as evalStyleRule,
1596
+ kr as defineReportTemplate,
1597
+ Eo as diffReportTemplates,
1598
+ li as estimateListLayoutCells,
1599
+ Tr as evalStyleRule,
1600
1600
  Sn as evaluateReportAggregateExpression,
1601
- uo as evaluateReportPredicate,
1602
- li as explainDatasetField,
1603
- Xi as formatReportCascaderPath,
1604
- mi as formatReportCellEdit,
1601
+ wo as evaluateReportPredicate,
1602
+ mi as explainDatasetField,
1603
+ Qi as formatReportCascaderPath,
1604
+ di as formatReportCellEdit,
1605
1605
  er as formatReportClipboard,
1606
- Zi as formatReportDateRange,
1607
- Qi as formatReportNumberRange,
1608
- eo as formatReportParamSelection,
1609
- Tr as formatValue,
1610
- di as getReportCellContext,
1611
- fi as getReportEditSession,
1612
- hi as hasValidDataExplanation,
1606
+ eo as formatReportDateRange,
1607
+ to as formatReportNumberRange,
1608
+ no as formatReportParamSelection,
1609
+ Pr as formatValue,
1610
+ fi as getReportCellContext,
1611
+ hi as getReportEditSession,
1612
+ gi as hasValidDataExplanation,
1613
1613
  ue as heuristicMeasurer,
1614
1614
  ir as imposeLabelSheets,
1615
- To as insertTemplateFragment,
1616
- Li as inspectOutputCapabilities,
1617
- kr as inspectReportTemplateCompatibility,
1618
- Pi as inspectTemplateFieldUsage,
1619
- Po as inspectTemplateFragmentBindings,
1615
+ $o as insertTemplateFragment,
1616
+ Ni as inspectOutputCapabilities,
1617
+ ki as inspectOutputCapabilitiesSummary,
1618
+ Fr as inspectReportTemplateCompatibility,
1619
+ $i as inspectTemplateFieldUsage,
1620
+ Oo as inspectTemplateFragmentBindings,
1620
1621
  he as isImageBackedComponent,
1621
- gi as isReportDataTarget,
1622
- to as isReportDate,
1623
- no as isReportMonth,
1624
- ui as isReportValueState,
1625
- ro as isReportYear,
1622
+ ui as isReportDataTarget,
1623
+ ro as isReportDate,
1624
+ io as isReportMonth,
1625
+ pi as isReportValueState,
1626
+ oo as isReportYear,
1626
1627
  ot as isRichText,
1627
- Wi as matchReportDrillActions,
1628
+ qi as matchReportDrillActions,
1628
1629
  ve as measurePageSizePx,
1629
- Jr as measureTextMm,
1630
- at as mergeComponentStyles,
1631
- wr as mmToPx,
1632
- br as mmToPxFactor,
1633
- pi as paginateTemplate,
1634
- wi as paginateTemplatePages,
1635
- Pr as parseDateLocal,
1636
- io as parseReportCascaderPath,
1630
+ Gr as measureTextMm,
1631
+ wr as mergeComponentStyles,
1632
+ br as mmToPx,
1633
+ yr as mmToPxFactor,
1634
+ wi as paginateTemplate,
1635
+ bi as paginateTemplatePages,
1636
+ $r as parseDateLocal,
1637
+ ao as parseReportCascaderPath,
1637
1638
  nr as parseReportCellFieldInput,
1638
1639
  ft as parseReportCellInput,
1639
1640
  tr as parseReportClipboard,
1640
- oo as parseReportDateRange,
1641
- ao as parseReportNumberRange,
1642
- so as parseReportParamSelection,
1641
+ so as parseReportDateRange,
1642
+ co as parseReportNumberRange,
1643
+ lo as parseReportParamSelection,
1643
1644
  X as parseReportTemplate,
1644
1645
  Hn as planFontSizePx,
1645
- bi as projectListColumns,
1646
+ yi as projectListColumns,
1646
1647
  _ as ptToPx,
1647
- yr as pxToMm,
1648
- yi as registerReportEditSession,
1649
- Mi as relocateReportCellEdits,
1650
- $i as renderComponent,
1651
- Oi as renderPage,
1652
- Ai as renderPlan,
1648
+ Mr as pxToMm,
1649
+ Mi as registerReportEditSession,
1650
+ vi as relocateReportCellEdits,
1651
+ Oi as renderComponent,
1652
+ Ai as renderPage,
1653
+ Ii as renderPlan,
1653
1654
  _n as renderPlanToCanvas,
1654
1655
  Wn as renderPlanToCanvasAsync,
1655
1656
  Bn as renderPlanToImages,
1656
- vi as reportCellEditKey,
1657
- Ui as reportDataSnapshotFromPlan,
1657
+ xi as reportCellEditKey,
1658
+ Vi as reportDataSnapshotFromPlan,
1658
1659
  or as reportDateDefault,
1659
1660
  re as reportOutputDiagnostics,
1660
- co as reportParamsJsonSchema,
1661
- po as reportPredicateFields,
1662
- qi as reportPrefillInputs,
1661
+ mo as reportParamsJsonSchema,
1662
+ bo as reportPredicateFields,
1663
+ Ji as reportPrefillInputs,
1663
1664
  rt as resolveBoxBorders,
1664
- $r as resolveComponentBinding,
1665
+ Or as resolveComponentBinding,
1665
1666
  V as resolveFontSize,
1666
1667
  it as resolveGridLayout,
1667
1668
  Q as resolveLineHeight,
1668
1669
  Je as resolvePaper,
1669
1670
  we as resolvePlanAssets,
1670
- Vi as resolveReportDrillReturn,
1671
+ Gi as resolveReportDrillReturn,
1671
1672
  le as resolveStroke,
1672
1673
  fe as resolveTextColor,
1673
- xo as reviewReportTemplate,
1674
- Eo as reviewReportTemplateAsync,
1675
- Mr as round,
1676
- Fr as serializeReportTemplate,
1677
- xi as summarizeReportCellEdits,
1678
- Ii as templatePathLocation,
1679
- Or as toExcelNumberFormat,
1680
- Ar as toNumber,
1681
- jr as validateComponent,
1674
+ So as reviewReportTemplate,
1675
+ Ro as reviewReportTemplateAsync,
1676
+ vr as round,
1677
+ jr as serializeReportTemplate,
1678
+ Ei as summarizeReportCellEdits,
1679
+ Di as templatePathLocation,
1680
+ Ar as toExcelNumberFormat,
1681
+ Ir as toNumber,
1682
+ zr as validateComponent,
1682
1683
  lt as validateDatasetRows,
1683
- zr as validatePage,
1684
+ Hr as validatePage,
1684
1685
  ct as validateRenderPlan,
1685
1686
  dn as validateReportCellFieldDefinition,
1686
- wo as validateReportChartBinding,
1687
- Ei as validateReportDataset,
1688
- Ji as validateReportDrillActions,
1689
- lo as validateReportParamDefinitions,
1690
- mo as validateReportParams,
1687
+ yo as validateReportChartBinding,
1688
+ Si as validateReportDataset,
1689
+ Ki as validateReportDrillActions,
1690
+ fo as validateReportParamDefinitions,
1691
+ ho as validateReportParams,
1691
1692
  Fe as validateReportTemplate,
1692
- Hr as validateReportTemplateDocument,
1693
- Io as validateTreeOptions,
1693
+ Br as validateReportTemplateDocument,
1694
+ Lo as validateTreeOptions,
1694
1695
  ze as wrapText
1695
1696
  };