@agile-team/mach-report 2.26.1 → 2.27.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 (155) hide show
  1. package/README.md +16 -5
  2. package/dist/ExcelBindingWizard-CnjjpYxD.cjs +1 -0
  3. package/dist/{ExcelBindingWizard-Bzndrp_z.js → ExcelBindingWizard-DAprCgn-.js} +4 -4
  4. package/dist/{ParamEditor-BrUrInJH.js → ParamEditor-CY9d8QZD.js} +3 -3
  5. package/dist/ParamEditor-CiVjpbc-.cjs +1 -0
  6. package/dist/ReportBatchPanel-0-Oymcdm.cjs +1 -0
  7. package/dist/{ReportBatchPanel-2mXS1uol.js → ReportBatchPanel-CDp7xRHp.js} +4 -4
  8. package/dist/ReportLabelStudio-CsyHqBco.cjs +1 -0
  9. package/dist/{ReportLabelStudio-BUKNmYUY.js → ReportLabelStudio-DtKxk9n0.js} +4 -4
  10. package/dist/ReportParamPanel-CoKcXzSy.cjs +1 -0
  11. package/dist/{ReportParamPanel-Czm3OPo_.js → ReportParamPanel-jKDJVar2.js} +2 -2
  12. package/dist/ReportPreview-D0UTiSpz.js +7507 -0
  13. package/dist/ReportPreview-ratPQxxZ.cjs +6 -0
  14. package/dist/ReportTemplateLibrary-CsUm6edm.cjs +1 -0
  15. package/dist/{ReportTemplateLibrary-ovj03u0F.js → ReportTemplateLibrary-qPQX0Dt_.js} +2 -2
  16. package/dist/RuleEditor-CJBibiLY.cjs +1 -0
  17. package/dist/{RuleEditor-4JTKq_N7.js → RuleEditor-Di-JZ2Lb.js} +6 -6
  18. package/dist/{TemplateOutlinePanel-DfFRc91I.js → TemplateOutlinePanel-D0mKfVWf.js} +3 -3
  19. package/dist/TemplateOutlinePanel-RiRgXnnH.cjs +1 -0
  20. package/dist/TemplateReusePanel-BdK91T7z.cjs +1 -0
  21. package/dist/{TemplateReusePanel-CmX1rq69.js → TemplateReusePanel-J6PvD2Sf.js} +3 -3
  22. package/dist/TemplateReviewPanel-B5yUgOgb.cjs +1 -0
  23. package/dist/{TemplateReviewPanel-BKMo7Qd7.js → TemplateReviewPanel-BlUbD2GY.js} +3 -3
  24. package/dist/analytics.cjs +1 -1
  25. package/dist/analytics.js +5 -5
  26. package/dist/artifact-integrity.json +112 -114
  27. package/dist/assets-CylgPA6P.cjs +1 -0
  28. package/dist/assets-Vt10jCtl.js +136 -0
  29. package/dist/auto-D3UNXBrM.cjs +1 -0
  30. package/dist/{auto-C7udkeAa.js → auto-Hq-xgrvS.js} +28 -25
  31. package/dist/{batch-DGCt44XM.js → batch-Be_NbW7U.js} +1 -1
  32. package/dist/{batch-DYcokH4v.cjs → batch-CI4ZpuoX.cjs} +1 -1
  33. package/dist/{charts-D-Vg-ak9.cjs → charts-Cy7muNWi.cjs} +1 -1
  34. package/dist/{charts-D48XCefN.js → charts-DLTz0OEG.js} +1 -1
  35. package/dist/{computed-BQgBrma-.cjs → computed-8nFyVnok.cjs} +1 -1
  36. package/dist/{computed-CH3NYPOW.js → computed-BR_O8uAv.js} +14 -20
  37. package/dist/{data-bar-DzceAVeR.cjs → data-bar--_aPWr-W.cjs} +1 -1
  38. package/dist/{data-bar-DjOgTLqu.js → data-bar-BVnzVbE9.js} +1 -1
  39. package/dist/designer-Bc5AXS38.cjs +2 -0
  40. package/dist/designer-CZqnLTyE.js +8350 -0
  41. package/dist/designer.cjs +1 -1
  42. package/dist/designer.d.cts +108 -1
  43. package/dist/designer.d.ts +108 -1
  44. package/dist/designer.js +1 -1
  45. package/dist/{diagnostic-collector-C-JBA016.js → diagnostic-collector-CZ8DV6wA.js} +208 -186
  46. package/dist/diagnostic-collector-DwMJWEHo.cjs +1 -0
  47. package/dist/{dom-DgWc-DY1.js → dom-CbOWY7KE.js} +5 -5
  48. package/dist/dom-VuLh_fhL.cjs +1 -0
  49. package/dist/{encoding-tWc2Wn89.cjs → encoding-D0ITsCCp.cjs} +1 -1
  50. package/dist/{encoding-D480EM2r.js → encoding-TbA3oQLr.js} +2 -2
  51. package/dist/{execution-result-Ba65gieT.js → execution-result-BUPPNlaS.js} +3 -3
  52. package/dist/{execution-result-7sG_mdcD.cjs → execution-result-BgZtqlOT.cjs} +1 -1
  53. package/dist/{font-loader-CHmEwkHl.js → font-loader-BSRR-a0C.js} +1 -1
  54. package/dist/{font-loader-BIxme_9g.cjs → font-loader-BZ4CRPys.cjs} +1 -1
  55. package/dist/{grid-strokes-DsoICRjZ.js → grid-strokes-CovSH3A2.js} +1 -1
  56. package/dist/{grid-strokes-RFMR91jn.cjs → grid-strokes-G5omPT3s.cjs} +1 -1
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.js +23 -23
  59. package/dist/{json-snapshot-BZ0CIQln.js → json-snapshot-DRQmh_k5.js} +718 -683
  60. package/dist/json-snapshot-HR8bez8j.cjs +2 -0
  61. package/dist/{matrix-CB9TqTEy.js → matrix-6wjFVN0Z.js} +149 -142
  62. package/dist/matrix-DeA6__cd.cjs +1 -0
  63. package/dist/media-IV_r4Sp7.cjs +1 -0
  64. package/dist/media-jiLdCn3i.js +208 -0
  65. package/dist/{pdf-DTR7fAIr.js → pdf-BqnoP1L_.js} +14 -15
  66. package/dist/{pdf-d9oJ6V0P.cjs → pdf-Ddm0HCuT.cjs} +48 -48
  67. package/dist/pdf.cjs +1 -1
  68. package/dist/pdf.js +2 -2
  69. package/dist/{plugin-OKDFQFS4.js → plugin-CK8Mm9VY.js} +1 -1
  70. package/dist/{plugin-B7Bi-1te.cjs → plugin-CmkPYdRI.cjs} +1 -1
  71. package/dist/{prefill-C8fF91JB.js → prefill-BqbuktRt.js} +3 -3
  72. package/dist/{prefill-C_Bf_AMo.cjs → prefill-DPLV68I7.cjs} +1 -1
  73. package/dist/prepared-Cl7C69N7.cjs +1 -0
  74. package/dist/{prepared-DhgQ0d-h.js → prepared-V7tYf1qj.js} +68 -64
  75. package/dist/{protocol-CZ-BILne.cjs → protocol-BVhKnBmX.cjs} +1 -1
  76. package/dist/{protocol-DHO91-Jt.js → protocol-Bf33Gu9J.js} +3 -3
  77. package/dist/{record-bindings-KEs-DKCS.cjs → record-bindings-DVs_g_No.cjs} +1 -1
  78. package/dist/{record-bindings-DBrCu6zO.js → record-bindings-hxJqcLSK.js} +3 -3
  79. package/dist/{region-binding-workflow-ikpY1Kbw.cjs → region-binding-workflow-Bu31bqCr.cjs} +1 -1
  80. package/dist/{region-binding-workflow-FSyIZge8.js → region-binding-workflow-DRvX25XH.js} +2 -2
  81. package/dist/report-encoding-worker.cjs +1 -1
  82. package/dist/report-encoding-worker.js +1 -1
  83. package/dist/{rich-text-layout-BYbIc3eJ.cjs → rich-text-layout-6VphrIcj.cjs} +1 -1
  84. package/dist/{rich-text-layout-BtygMWZC.js → rich-text-layout-BCdxMT4m.js} +1 -1
  85. package/dist/{runtime-BsvAqz4a.js → runtime-ChdUbPvs.js} +9 -9
  86. package/dist/{runtime-B5HG8poy.cjs → runtime-D2noLfgC.cjs} +1 -1
  87. package/dist/sbom.cdx.json +1 -1
  88. package/dist/server-node.cjs +5 -5
  89. package/dist/server-node.js +2099 -1959
  90. package/dist/server.cjs +1 -1
  91. package/dist/server.js +17 -13
  92. package/dist/sha256-C26wdjDi.cjs +1 -0
  93. package/dist/sha256-D-msitGX.js +166 -0
  94. package/dist/style.css +1 -1
  95. package/dist/{template-catalog-BbrN9dgu.js → template-catalog-CZfnMXKc.js} +4 -4
  96. package/dist/template-catalog-Dv4sOYaB.cjs +1 -0
  97. package/dist/{template-fragments-CUTE8-_I.js → template-fragments-BO6i19kt.js} +3 -3
  98. package/dist/{template-fragments-cyAQu7aw.cjs → template-fragments-CTfJeHoM.cjs} +1 -1
  99. package/dist/{template-registry-PSuLsnyq.js → template-registry-CIaC6qBW.js} +168 -171
  100. package/dist/template-registry-CKo-bogM.cjs +1 -0
  101. package/dist/template-serialization-Cb1ospyK.js +367 -0
  102. package/dist/template-serialization-D4Fofl9c.cjs +1 -0
  103. package/dist/{textwrap-LhJkHWb1.cjs → textwrap-BYSqmGGV.cjs} +1 -1
  104. package/dist/{textwrap-Bt_tnI6V.js → textwrap-CGjFy7gf.js} +1 -1
  105. package/dist/usePopoverBounds-C3hn7F1s.js +84 -0
  106. package/dist/usePopoverBounds-mJhJ-VqG.cjs +1 -0
  107. package/dist/vue/async.d.cts +28 -0
  108. package/dist/vue/async.d.ts +28 -0
  109. package/dist/vue/index.d.cts +36 -0
  110. package/dist/vue/index.d.ts +36 -0
  111. package/dist/vue-async.cjs +1 -1
  112. package/dist/vue-async.js +3 -3
  113. package/dist/vue.cjs +1 -1
  114. package/dist/vue.js +164 -157
  115. package/dist/{workbook-session-BJfZVp4q.cjs → workbook-session-DL3uBAl8.cjs} +1 -1
  116. package/dist/{workbook-session-DRnMjIFK.js → workbook-session-nkvroJUE.js} +2 -2
  117. package/dist/worker.cjs +1 -1
  118. package/dist/worker.js +4 -4
  119. package/dist/xlsx.cjs +4 -4
  120. package/dist/xlsx.js +28 -29
  121. package/package.json +1 -1
  122. package/dist/ExcelBindingWizard-D1LZxm93.cjs +0 -1
  123. package/dist/ParamEditor-BTIx9UDt.cjs +0 -1
  124. package/dist/ReportBatchPanel-CU2BbpBg.cjs +0 -1
  125. package/dist/ReportLabelStudio-BXKE0GVs.cjs +0 -1
  126. package/dist/ReportParamPanel-Chxu4MTx.cjs +0 -1
  127. package/dist/ReportPreview-C9c0Rp7Y.js +0 -7380
  128. package/dist/ReportPreview-CIMR4ERo.cjs +0 -6
  129. package/dist/ReportTemplateLibrary-tv1sNa78.cjs +0 -1
  130. package/dist/RuleEditor-CvyjPyR6.cjs +0 -1
  131. package/dist/TemplateOutlinePanel-hb8cKkKR.cjs +0 -1
  132. package/dist/TemplateReusePanel-CR5jF00y.cjs +0 -1
  133. package/dist/TemplateReviewPanel-BU35FHwG.cjs +0 -1
  134. package/dist/_plugin-vue_export-helper-8SL1F89S.js +0 -53
  135. package/dist/_plugin-vue_export-helper-BLmdZLlg.cjs +0 -1
  136. package/dist/assets-BFTP-0WR.js +0 -137
  137. package/dist/assets-CZiZhTf2.cjs +0 -1
  138. package/dist/auto-CXd2E2aZ.cjs +0 -1
  139. package/dist/capabilities-D8UU2clQ.cjs +0 -1
  140. package/dist/capabilities-g0a2j9Yy.js +0 -125
  141. package/dist/designer-CEMTZomv.cjs +0 -2
  142. package/dist/designer-_IKm_n5N.js +0 -8002
  143. package/dist/diagnostic-collector-wASg6Fzs.cjs +0 -1
  144. package/dist/dom-Fk4NF-gN.cjs +0 -1
  145. package/dist/json-snapshot-DGFeI30h.cjs +0 -2
  146. package/dist/matrix-CcqYOuq_.cjs +0 -1
  147. package/dist/media-B7vnpD8k.cjs +0 -1
  148. package/dist/media-Y90dHK9z.js +0 -70
  149. package/dist/prepared-BLhV7vdE.cjs +0 -1
  150. package/dist/sha256-BDQ1Qk7A.js +0 -158
  151. package/dist/sha256-DgZAKXqI.cjs +0 -1
  152. package/dist/template-catalog-DDH-5J57.cjs +0 -1
  153. package/dist/template-registry-D24Z8aQf.cjs +0 -1
  154. package/dist/template-serialization-BOUidUlh.cjs +0 -1
  155. package/dist/template-serialization-BgGWYV_1.js +0 -307
@@ -1 +0,0 @@
1
- "use strict";const c=require("./diagnostic-collector-wASg6Fzs.cjs");function b(e,t){c.assertOutputActive(t.signal),c.observeOutput(()=>t.onDiagnostic?.(e)),c.assertOutputActive(t.signal)}class M extends Error{constructor(t,i){super(`Output contains ${i?.total??t.length} known fidelity issue(s): ${t[0]?.code??Object.keys(i?.counts??{})[0]??"unknown"}`),this.diagnostics=t,this.diagnosticSummary=i,this.code="output-fidelity",this.name="OutputFidelityError"}}const C=new Set(["text","rect","line","ellipse"]),k=new Set(["image","chart","barcode","qrcode"]);function $(e,t){if(!e.grid){if(c.isImageBackedComponent(e))return(t==="pdf"||t==="xlsx")&&!/^data:image\/(png|jpe?g);base64,/i.test(e.imageData)?{code:"unsupported-image-format",message:`${t.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.`}:void 0;if(k.has(e.kind))return{code:"missing-image",message:`${e.kind} requires imageData or a renderer adapter before output.`};if(!C.has(e.kind))return{code:"unsupported-component",message:`Unsupported component kind: ${e.kind}.`};if(t==="xlsx"&&e.kind!=="text")return{code:"unsupported-component",message:`XLSX data export omits ${e.kind} geometry.`}}}function g(e,t,i,s,n){const o=Object.getOwnPropertyDescriptor(e,"meta")?.value,a=o&&Object.getOwnPropertyDescriptor(o,"componentExtension")?.value,u=a&&Object.getOwnPropertyDescriptor(a,"id")?.value,r=a&&Object.getOwnPropertyDescriptor(a,"version")?.value,d=typeof u=="string"&&u.length<=128&&typeof r=="string"&&r.length<=64?{id:u,version:r}:void 0;return{...n,severity:"warning",format:t,pageIndex:i,componentIndex:s,kind:e.kind,nid:e.nid,...d?{extension:d}:{}}}function L(e,t){const i=[];return e.rotateDeg&&(t||!Number.isFinite(e.rotateDeg))&&i.push("rotateDeg"),e.opacity!==void 0&&e.opacity!==1&&(t||!Number.isFinite(e.opacity)||e.opacity<0||e.opacity>1)&&i.push("opacity"),i}function h(e,t,i=!1){if(!e||t==="dom")return;const s=t==="pdf"?L(e,i):[];return t!=="pdf"&&(e.rotateDeg&&s.push("rotateDeg"),e.opacity!==void 0&&e.opacity!==1&&s.push("opacity"),t!=="xlsx"&&e.align==="justify"&&s.push("justify")),t==="xlsx"&&e.letterSpacing&&s.push("letterSpacing"),s.length?`${t} does not preserve these styles: ${s.join(", ")}.`:void 0}function S(e){if(!e)return;const t=["backgroundColor","align","verticalAlign","lineHeight","borderTop","borderRight","borderBottom","borderLeft","borderColor","lineColor","lineWidthPt"].filter(i=>e[i]!==void 0);return t.length?`XLSX rich text does not retain independent run styles: ${t.join(", ")}.`:void 0}function X(e){if(e.kind!=="text")return;const t=S(e.style);if(e.leftMm||e.topMm||t)return{code:"unsupported-style",message:`Nested XLSX text is retained as rich text in component order; absolute child offsets and independent paragraph styles are not retained.${t?` ${t}`:""}`}}function m(e,t,i,s,n,o){const a=u=>{n.push({...g(e,t,i,s,{code:"unsupported-style",message:u}),componentPath:o})};for(const u of e.richParagraphs??[]){t==="xlsx"&&(u.spaceBeforeMm||u.spaceAfterMm||u.indentMm||u.align||u.lineHeight)&&a("XLSX rich text preserves fonts and paragraph newlines; paragraph spacing, indentation and alignment are not retained.");const r=h({align:u.align},t);r&&a(r);for(const d of u.segments){const l=h(d.style,t,!0)??(t==="xlsx"?S(d.style):void 0);l&&a(l)}}}function w(e,t,i,s,n,o,a){if(a.has(e))return;const u=new Set(a).add(e),r=$(e,t);r&&o.push({...g(e,t,i,s,r),componentPath:n});const d=h(e.style,t);d&&o.push({...g(e,t,i,s,{code:"unsupported-style",message:d}),componentPath:n}),m(e,t,i,s,o,n),A(e,t,i,s,n,o,u)}function j(e,t,i){if(e.grid)return{code:"nested-components-omitted",message:"XLSX cannot place a nested grid inside a single cell; the nested grid is omitted."};const s=X(e);if(s)return s;if(c.isImageBackedComponent(e)&&(e.leftMm<0||e.topMm<0||e.leftMm+e.widthMm>t+.001||e.topMm+e.heightMm>i+.001))return{code:"unsupported-style",message:"XLSX cannot clip a child image to a cell; it retains the original image dimensions."}}function B(e){let t;return(i,s,n,o)=>{t??=new Map(c.resolveGridLayout(e.grid,e.widthMm,e.heightMm).cells.map(r=>[`${r.ri}:${r.ci}`,r]));const a=t.get(`${s}:${n}`),u=2*(e.grid?.paddingMm??.5);return j(i,(a?.widthMm??0)-u-(o?.indentMm??0),(a?.heightMm??0)-u)}}function A(e,t,i,s,n,o,a){const u=B(e);for(const[r,d]of(e.grid?.cells??[]).entries())for(const[l,p]of d.entries()){p?.dataBar!==void 0&&!c.validDataBar(p.dataBar)&&o.push({...g(e,t,i,s,{code:"unsupported-style",message:"Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors."}),componentPath:[...n,r,l]});const v=h(p?.style,t);v&&o.push({...g(e,t,i,s,{code:"unsupported-style",message:v}),componentPath:[...n,r,l]}),p?.richParagraphs?.length&&m({...e,richParagraphs:p.richParagraphs},t,i,s,o,[...n,r,l]);for(const[E,f]of(p?.children??[]).entries()){const O=[...n,r,l,E];if(t==="xlsx"){const D=u(f,r,l,p);if(D&&o.push({...g(f,t,i,s,D),componentPath:O}),f.grid)continue}w(f,t,i,s,O,o,a)}}}function y(e,t,i){c.assertBoundedRenderTree(e),e.pages.forEach((s,n)=>s.components.forEach((o,a)=>w(o,t,n,a,[],i,new Set)))}function G(e,t){const i=[];return y(e,t,i),i}function P(e,t,i=c.DEFAULT_DIAGNOSTIC_LIMIT){const s=c.createDiagnosticCollector(i);return y(e,t,s),s.snapshot()}function x(e,t,i,s){c.assertOutputActive(i.signal);const n=c.createDiagnosticCollector(i.diagnosticLimit);s?.diagnosticSummary?n.merge(s.diagnosticSummary):s?.diagnostics.forEach(r=>n.push(r));const o=n.entries.length,a=i.diagnosticLimit===void 0?void 0:new Set(n.entries);if(y(e,t,{push:r=>{c.assertOutputActive(i.signal),n.push(r)}}),(a?n.entries.filter(r=>!a.has(r)):n.entries.slice(o)).forEach(r=>b(r,i)),i.fidelity==="strict"&&n.total)throw new M(n.entries,i.diagnosticLimit===void 0?void 0:n.snapshot());return n}function N(e,t,i){return x(e,t,i).entries}exports.OutputFidelityError=M;exports.collectOutputDiagnostics=x;exports.inspectOutputCapabilities=G;exports.inspectOutputCapabilitiesSummary=P;exports.notifyOutputDiagnostic=b;exports.reportOutputDiagnostics=N;
@@ -1,125 +0,0 @@
1
- import { z as f, A as E, G as k, x, N as $, i as M, E as L, r as C } from "./diagnostic-collector-C-JBA016.js";
2
- function X(e, t) {
3
- f(t.signal), E(() => t.onDiagnostic?.(e)), f(t.signal);
4
- }
5
- class j extends Error {
6
- constructor(t, i) {
7
- super(`Output contains ${i?.total ?? t.length} known fidelity issue(s): ${t[0]?.code ?? Object.keys(i?.counts ?? {})[0] ?? "unknown"}`), this.diagnostics = t, this.diagnosticSummary = i, this.code = "output-fidelity", this.name = "OutputFidelityError";
8
- }
9
- }
10
- const G = /* @__PURE__ */ new Set(["text", "rect", "line", "ellipse"]), B = /* @__PURE__ */ new Set(["image", "chart", "barcode", "qrcode"]);
11
- function N(e, t) {
12
- if (!e.grid) {
13
- if (M(e))
14
- return (t === "pdf" || t === "xlsx") && !/^data:image\/(png|jpe?g);base64,/i.test(e.imageData) ? { code: "unsupported-image-format", message: `${t.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.` } : void 0;
15
- if (B.has(e.kind)) return { code: "missing-image", message: `${e.kind} requires imageData or a renderer adapter before output.` };
16
- if (!G.has(e.kind)) return { code: "unsupported-component", message: `Unsupported component kind: ${e.kind}.` };
17
- if (t === "xlsx" && e.kind !== "text") return { code: "unsupported-component", message: `XLSX data export omits ${e.kind} geometry.` };
18
- }
19
- }
20
- function g(e, t, i, s, n) {
21
- const o = Object.getOwnPropertyDescriptor(e, "meta")?.value, a = o && Object.getOwnPropertyDescriptor(o, "componentExtension")?.value, u = a && Object.getOwnPropertyDescriptor(a, "id")?.value, r = a && Object.getOwnPropertyDescriptor(a, "version")?.value, d = typeof u == "string" && u.length <= 128 && typeof r == "string" && r.length <= 64 ? { id: u, version: r } : void 0;
22
- return { ...n, severity: "warning", format: t, pageIndex: i, componentIndex: s, kind: e.kind, nid: e.nid, ...d ? { extension: d } : {} };
23
- }
24
- function P(e, t) {
25
- const i = [];
26
- return e.rotateDeg && (t || !Number.isFinite(e.rotateDeg)) && i.push("rotateDeg"), e.opacity !== void 0 && e.opacity !== 1 && (t || !Number.isFinite(e.opacity) || e.opacity < 0 || e.opacity > 1) && i.push("opacity"), i;
27
- }
28
- function h(e, t, i = !1) {
29
- if (!e || t === "dom") return;
30
- const s = t === "pdf" ? P(e, i) : [];
31
- return t !== "pdf" && (e.rotateDeg && s.push("rotateDeg"), e.opacity !== void 0 && e.opacity !== 1 && s.push("opacity"), t !== "xlsx" && e.align === "justify" && s.push("justify")), t === "xlsx" && e.letterSpacing && s.push("letterSpacing"), s.length ? `${t} does not preserve these styles: ${s.join(", ")}.` : void 0;
32
- }
33
- function O(e) {
34
- if (!e) return;
35
- const t = ["backgroundColor", "align", "verticalAlign", "lineHeight", "borderTop", "borderRight", "borderBottom", "borderLeft", "borderColor", "lineColor", "lineWidthPt"].filter((i) => e[i] !== void 0);
36
- return t.length ? `XLSX rich text does not retain independent run styles: ${t.join(", ")}.` : void 0;
37
- }
38
- function A(e) {
39
- if (e.kind !== "text") return;
40
- const t = O(e.style);
41
- if (e.leftMm || e.topMm || t) return { code: "unsupported-style", message: `Nested XLSX text is retained as rich text in component order; absolute child offsets and independent paragraph styles are not retained.${t ? ` ${t}` : ""}` };
42
- }
43
- function S(e, t, i, s, n, o) {
44
- const a = (u) => {
45
- n.push({ ...g(e, t, i, s, { code: "unsupported-style", message: u }), componentPath: o });
46
- };
47
- for (const u of e.richParagraphs ?? []) {
48
- t === "xlsx" && (u.spaceBeforeMm || u.spaceAfterMm || u.indentMm || u.align || u.lineHeight) && a("XLSX rich text preserves fonts and paragraph newlines; paragraph spacing, indentation and alignment are not retained.");
49
- const r = h({ align: u.align }, t);
50
- r && a(r);
51
- for (const d of u.segments) {
52
- const c = h(d.style, t, !0) ?? (t === "xlsx" ? O(d.style) : void 0);
53
- c && a(c);
54
- }
55
- }
56
- }
57
- function w(e, t, i, s, n, o, a) {
58
- if (a.has(e)) return;
59
- const u = new Set(a).add(e), r = N(e, t);
60
- r && o.push({ ...g(e, t, i, s, r), componentPath: n });
61
- const d = h(e.style, t);
62
- d && o.push({ ...g(e, t, i, s, { code: "unsupported-style", message: d }), componentPath: n }), S(e, t, i, s, o, n), F(e, t, i, s, n, o, u);
63
- }
64
- function T(e, t, i) {
65
- if (e.grid) return { code: "nested-components-omitted", message: "XLSX cannot place a nested grid inside a single cell; the nested grid is omitted." };
66
- const s = A(e);
67
- if (s) return s;
68
- if (M(e) && (e.leftMm < 0 || e.topMm < 0 || e.leftMm + e.widthMm > t + 1e-3 || e.topMm + e.heightMm > i + 1e-3)) return { code: "unsupported-style", message: "XLSX cannot clip a child image to a cell; it retains the original image dimensions." };
69
- }
70
- function R(e) {
71
- let t;
72
- return (i, s, n, o) => {
73
- t ??= new Map(C(e.grid, e.widthMm, e.heightMm).cells.map((r) => [`${r.ri}:${r.ci}`, r]));
74
- const a = t.get(`${s}:${n}`), u = 2 * (e.grid?.paddingMm ?? 0.5);
75
- return T(i, (a?.widthMm ?? 0) - u - (o?.indentMm ?? 0), (a?.heightMm ?? 0) - u);
76
- };
77
- }
78
- function F(e, t, i, s, n, o, a) {
79
- const u = R(e);
80
- for (const [r, d] of (e.grid?.cells ?? []).entries()) for (const [c, l] of d.entries()) {
81
- l?.dataBar !== void 0 && !L(l.dataBar) && o.push({ ...g(e, t, i, s, { code: "unsupported-style", message: "Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors." }), componentPath: [...n, r, c] });
82
- const v = h(l?.style, t);
83
- v && o.push({ ...g(e, t, i, s, { code: "unsupported-style", message: v }), componentPath: [...n, r, c] }), l?.richParagraphs?.length && S({ ...e, richParagraphs: l.richParagraphs }, t, i, s, o, [...n, r, c]);
84
- for (const [m, p] of (l?.children ?? []).entries()) {
85
- const b = [...n, r, c, m];
86
- if (t === "xlsx") {
87
- const D = u(p, r, c, l);
88
- if (D && o.push({ ...g(p, t, i, s, D), componentPath: b }), p.grid) continue;
89
- }
90
- w(p, t, i, s, b, o, a);
91
- }
92
- }
93
- }
94
- function y(e, t, i) {
95
- $(e), e.pages.forEach((s, n) => s.components.forEach((o, a) => w(o, t, n, a, [], i, /* @__PURE__ */ new Set())));
96
- }
97
- function _(e, t) {
98
- const i = [];
99
- return y(e, t, i), i;
100
- }
101
- function q(e, t, i = k) {
102
- const s = x(i);
103
- return y(e, t, s), s.snapshot();
104
- }
105
- function I(e, t, i, s) {
106
- f(i.signal);
107
- const n = x(i.diagnosticLimit);
108
- s?.diagnosticSummary ? n.merge(s.diagnosticSummary) : s?.diagnostics.forEach((r) => n.push(r));
109
- const o = n.entries.length, a = i.diagnosticLimit === void 0 ? void 0 : new Set(n.entries);
110
- if (y(e, t, { push: (r) => {
111
- f(i.signal), n.push(r);
112
- } }), (a ? n.entries.filter((r) => !a.has(r)) : n.entries.slice(o)).forEach((r) => X(r, i)), i.fidelity === "strict" && n.total) throw new j(n.entries, i.diagnosticLimit === void 0 ? void 0 : n.snapshot());
113
- return n;
114
- }
115
- function H(e, t, i) {
116
- return I(e, t, i).entries;
117
- }
118
- export {
119
- j as O,
120
- q as a,
121
- I as c,
122
- _ as i,
123
- X as n,
124
- H as r
125
- };