@agile-team/mach-report 2.24.0 → 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.
- package/README.md +4 -4
- package/dist/{ExcelBindingWizard-BV12hGiK.cjs → ExcelBindingWizard-BgJG-T6k.cjs} +1 -1
- package/dist/{ExcelBindingWizard-Cy_lPjWV.js → ExcelBindingWizard-NQ_v396s.js} +3 -3
- package/dist/{ParamEditor-DenKjvKu.cjs → ParamEditor-DEP38mBp.cjs} +1 -1
- package/dist/{ParamEditor-PyOqHzzw.js → ParamEditor-Z-3yodp5.js} +2 -2
- package/dist/{ReportBatchPanel-pQ6d0yqJ.cjs → ReportBatchPanel-D33LjMrA.cjs} +1 -1
- package/dist/{ReportBatchPanel-8EFtMrKk.js → ReportBatchPanel-DG8FV-5X.js} +2 -2
- package/dist/{ReportLabelStudio-HUeo2TsU.js → ReportLabelStudio-BZp23_hA.js} +3 -3
- package/dist/{ReportLabelStudio-B_KF3Zc_.cjs → ReportLabelStudio-Bz-xAayk.cjs} +1 -1
- package/dist/{ReportParamPanel-8xR85nz-.cjs → ReportParamPanel-B27IGJjk.cjs} +1 -1
- package/dist/{ReportParamPanel-DA-YpkvC.js → ReportParamPanel-DGXzBzl2.js} +1 -1
- package/dist/{ReportPreview-_wTJnsG1.js → ReportPreview-CilFAS9U.js} +2392 -2342
- package/dist/ReportPreview-dOOzPts2.cjs +6 -0
- package/dist/{ReportTemplateLibrary-DH8jl9IF.js → ReportTemplateLibrary-DpSGgvFa.js} +1 -1
- package/dist/{ReportTemplateLibrary-CjArKxRG.cjs → ReportTemplateLibrary-uG1gENaW.cjs} +1 -1
- package/dist/{RuleEditor-GDydlEHz.js → RuleEditor-BONALh1Q.js} +2 -3
- package/dist/{RuleEditor-Bmj98oC4.cjs → RuleEditor-bLXiRcxL.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-B554_qk1.cjs → TemplateOutlinePanel-C3nfHuaR.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-DjPqzU9h.js → TemplateOutlinePanel-JGBKeF3e.js} +2 -2
- package/dist/{TemplateReusePanel-D0628OYc.cjs → TemplateReusePanel-BKhgp6kg.cjs} +1 -1
- package/dist/{TemplateReusePanel-DtYbCN7U.js → TemplateReusePanel-DXQUO6nQ.js} +2 -2
- package/dist/{TemplateReviewPanel-CSwvCz3f.cjs → TemplateReviewPanel-5RWFUUEf.cjs} +1 -1
- package/dist/{TemplateReviewPanel-D_FR4ISq.js → TemplateReviewPanel-DhL7Hapy.js} +1 -1
- package/dist/analytics.d.cts +1 -1
- package/dist/analytics.d.ts +1 -1
- package/dist/artifact-integrity.json +98 -98
- package/dist/{assets-B4AJIOTB.cjs → assets-BYdpkTIt.cjs} +1 -1
- package/dist/{assets-D0FbszhB.js → assets-C4MIvzQ4.js} +2 -2
- package/dist/{auto-C3mGqzJ8.cjs → auto-D-eDZa_V.cjs} +1 -1
- package/dist/{auto-BksreoKc.js → auto-umW_ozwr.js} +10 -10
- package/dist/{capabilities-lqDEZSq5.js → capabilities-CN_kSVjO.js} +7 -7
- package/dist/{capabilities-CTwlcl8q.cjs → capabilities-D4nfhcvB.cjs} +1 -1
- package/dist/cell-style-B6Qffrx8.js +37 -0
- package/dist/cell-style-y_uh1pZp.cjs +1 -0
- package/dist/{data-bar-BnGtnJ82.js → data-bar-Bfh54sT4.js} +1 -1
- package/dist/{data-bar-2NLRzOCQ.cjs → data-bar-DzceAVeR.cjs} +1 -1
- package/dist/{designer-BNf7NWd6.js → designer-CCyj5WYS.js} +2254 -2248
- package/dist/designer-Cj7fn4Hh.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +6 -6
- package/dist/designer.d.ts +6 -6
- package/dist/designer.js +1 -1
- package/dist/diagnostic-collector-gB07PHy2.js +392 -0
- package/dist/diagnostic-collector-wASg6Fzs.cjs +1 -0
- package/dist/dom-CXWMmwh-.cjs +1 -0
- package/dist/{dom-C90cTM6Y.js → dom-DxdCMLzs.js} +185 -185
- package/dist/{encoding-DSc9zv2F.js → encoding-CEkBtlUP.js} +2 -2
- package/dist/{encoding-CkziAnZI.cjs → encoding-Cipno7dq.cjs} +1 -1
- package/dist/{font-loader-i7lZbqH_.js → font-loader-D4NLIKJL.js} +1 -1
- package/dist/{font-loader-D-znWNWS.cjs → font-loader-p_SyTvqt.cjs} +1 -1
- package/dist/{grid-strokes-BPiV1WHe.js → grid-strokes-DkZEZvcI.js} +1 -1
- package/dist/{grid-strokes-DYf-6DMl.cjs → grid-strokes-RFMR91jn.cjs} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +137 -137
- package/dist/json-snapshot-DQdkA_At.cjs +2 -0
- package/dist/{json-snapshot-BJWZNryO.js → json-snapshot-x0JpllWL.js} +8 -8
- package/dist/{pdf-DWuq6uxx.cjs → pdf-C060D5UY.cjs} +2 -2
- package/dist/{pdf-0_5XiTCx.js → pdf-DU8HelKd.js} +17 -17
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.js +2 -2
- package/dist/{plugin-BQBz2vLG.cjs → plugin-B_k23hut.cjs} +1 -1
- package/dist/{plugin-B1ydqEmS.js → plugin-CttO46hc.js} +1 -1
- package/dist/{prefill-Cuzh1wxf.js → prefill-BkF9Fw_p.js} +2 -2
- package/dist/{prefill-2p9wrpn9.cjs → prefill-BvkuwooY.cjs} +1 -1
- package/dist/{prepared-DAwe8Il2.cjs → prepared-CSywIEAZ.cjs} +1 -1
- package/dist/{prepared-CVbgO9KR.js → prepared-Cyuh61fJ.js} +2 -2
- package/dist/protocol-BwbJNVZl.cjs +1 -0
- package/dist/protocol-DwtxjXzO.js +96 -0
- package/dist/record-bindings-B7djSjNs.cjs +1 -0
- package/dist/{record-bindings-fhav-NLG.js → record-bindings-Cv7lFiof.js} +47 -47
- package/dist/{region-binding-workflow-DWCUgjZl.cjs → region-binding-workflow-COD8nISZ.cjs} +1 -1
- package/dist/{region-binding-workflow-Cm4mqhih.js → region-binding-workflow-D8I4QWRh.js} +2 -2
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/{rich-text-layout-YJHtCWQI.js → rich-text-layout-Ch_N0Ubu.js} +1 -1
- package/dist/{rich-text-layout-X9YOz1JD.cjs → rich-text-layout-yJGuThtC.cjs} +1 -1
- package/dist/runtime-BE30icyB.js +227 -0
- package/dist/runtime-DRSuy_SQ.cjs +1 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +1695 -1661
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +8 -8
- package/dist/style.css +1 -1
- package/dist/{template-catalog--yBX169M.cjs → template-catalog-C0riwrx7.cjs} +1 -1
- package/dist/{template-catalog-Bu7s7ReF.js → template-catalog-D_gl93va.js} +3 -3
- package/dist/{template-fragments-5EzVn7bm.cjs → template-fragments-CgzPdFKB.cjs} +1 -1
- package/dist/{template-fragments-Di2vDFnx.js → template-fragments-D94ZZmPc.js} +2 -2
- package/dist/{template-registry-Bnh5aEYf.cjs → template-registry-BMScUmM4.cjs} +1 -1
- package/dist/{template-registry-BCBF2b8j.js → template-registry-DZOtRY7t.js} +10 -10
- package/dist/{textwrap-CmVkhMhx.js → textwrap-BywMBMXM.js} +1 -1
- package/dist/{textwrap-BPFxhpOw.cjs → textwrap-LhJkHWb1.cjs} +1 -1
- package/dist/vue/async.d.cts +4 -4
- package/dist/vue/async.d.ts +4 -4
- package/dist/vue/index.d.cts +6 -6
- package/dist/vue/index.d.ts +6 -6
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +7 -7
- package/dist/{workbook-session-BnPK3T58.cjs → workbook-session-DR2j6Hxm.cjs} +3 -3
- package/dist/{workbook-session-B6P_-5a4.js → workbook-session-SzfILBJJ.js} +106 -107
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +4 -4
- package/dist/xlsx/node.d.cts +30 -1
- package/dist/xlsx/node.d.ts +30 -1
- package/dist/xlsx-node.cjs +42 -42
- package/dist/xlsx-node.js +3908 -3889
- package/dist/xlsx.cjs +2 -2
- package/dist/xlsx.d.cts +2 -2
- package/dist/xlsx.d.ts +2 -2
- package/dist/xlsx.js +151 -151
- package/package.json +1 -1
- package/dist/ReportPreview-CyUXJSVX.cjs +0 -6
- package/dist/designer-DWnZZ_ej.cjs +0 -2
- package/dist/diagnostic-collector-1sqd7DQP.js +0 -355
- package/dist/diagnostic-collector-D3rlvxm3.cjs +0 -1
- package/dist/dom-CxOkm_Sy.cjs +0 -1
- package/dist/json-snapshot-C7QZrRBf.cjs +0 -2
- package/dist/progress-BXzlVbIp.js +0 -29
- package/dist/progress-DJBd9Rb9.cjs +0 -1
- package/dist/protocol-BOri9qJL.js +0 -105
- package/dist/protocol-DD5dHSz-.cjs +0 -1
- package/dist/record-bindings-CAyM5tGg.cjs +0 -1
- package/dist/runtime-BpSAgOw1.js +0 -201
- package/dist/runtime-Cd2UTnwe.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as S, d as j, c as U, a as H } from "./prepared-
|
|
2
|
-
import { H as I } from "./json-snapshot-
|
|
3
|
-
import { b as W, R as
|
|
4
|
-
import {
|
|
5
|
-
import { c as K, e as X } from "./runtime-
|
|
6
|
-
import { D as
|
|
1
|
+
import { s as S, d as j, c as U, a as H } from "./prepared-Cyuh61fJ.js";
|
|
2
|
+
import { H as I } from "./json-snapshot-x0JpllWL.js";
|
|
3
|
+
import { b as W, R as z, v as $, c as N } from "./protocol-DwtxjXzO.js";
|
|
4
|
+
import { z as G } from "./diagnostic-collector-gB07PHy2.js";
|
|
5
|
+
import { c as K, e as X } from "./runtime-BE30icyB.js";
|
|
6
|
+
import { D as C, R as O, t as R, v as J, c as D, b as M } from "./sha256-BDQ1Qk7A.js";
|
|
7
7
|
class T extends Error {
|
|
8
8
|
constructor(r) {
|
|
9
9
|
super("报表 Worker 无法启动"), this.cause = r, this.name = "ReportWorkerStartError";
|
|
@@ -17,7 +17,7 @@ function F(e) {
|
|
|
17
17
|
function V(e, r) {
|
|
18
18
|
if (!e || typeof e != "object") return;
|
|
19
19
|
const t = e;
|
|
20
|
-
return t.protocol ===
|
|
20
|
+
return t.protocol === z && t.id === r ? t : void 0;
|
|
21
21
|
}
|
|
22
22
|
function Y(e, r = {}) {
|
|
23
23
|
const t = r.timeoutMs ?? 12e4;
|
|
@@ -65,7 +65,7 @@ function Y(e, r = {}) {
|
|
|
65
65
|
if (a?.addEventListener("abort", k, { once: !0 }), y = setTimeout(() => l(new W({ name: "ReportRuntimeError", code: "timeout", message: `报表 Worker 执行超过 ${t}ms` })), t), a?.aborted) k();
|
|
66
66
|
else {
|
|
67
67
|
const { onEvent: f, signal: c, ...g } = s, x = Z(g);
|
|
68
|
-
b.postMessage({ protocol:
|
|
68
|
+
b.postMessage({ protocol: z, id: E, operation: o, input: g, ...r.budget ? { budget: r.budget } : {} }, x);
|
|
69
69
|
}
|
|
70
70
|
} catch (f) {
|
|
71
71
|
l(f);
|
|
@@ -183,12 +183,12 @@ function B(e, r, t) {
|
|
|
183
183
|
M(t, "maxRows", e.stats.rows), M(t, "maxPages", e.stats.pages), M(t, "maxCells", e.stats.cells), M(t, "maxOutputBytes", e.bytes.byteLength), j({ ...r, prepared: { ...r.prepared, stats: e.stats } }, t);
|
|
184
184
|
}
|
|
185
185
|
function ae(e, r) {
|
|
186
|
-
const t = { ...
|
|
186
|
+
const t = { ...C, ...r.budget }, n = U(e.prepared, t.maxPreparedBytes, e.signal), o = { ...e, prepared: n.prepared, pdf: S(e.pdf), xlsx: H(e.xlsx) };
|
|
187
187
|
return { request: o, forward: () => ({ ...o, prepared: n.forward() }) };
|
|
188
188
|
}
|
|
189
189
|
function ie(e, r) {
|
|
190
190
|
ne(e);
|
|
191
|
-
const t = { ...e, thresholds: { ...e.thresholds }, budget: { ...
|
|
191
|
+
const t = { ...e, thresholds: { ...e.thresholds }, budget: { ...C, ...e.budget } }, n = t.timeoutMs ?? t.budget.maxDurationMs ?? 12e4, o = K({ reports: {}, budget: { ...t.budget, maxDurationMs: n } }), s = /* @__PURE__ */ new Set();
|
|
192
192
|
let a = !1;
|
|
193
193
|
const u = t.mode !== "worker" && t.fallback !== "error";
|
|
194
194
|
async function v(i, b) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as f, z as E, G as k, x as M, N as $, i as O, E as L, r as C } from "./diagnostic-collector-gB07PHy2.js";
|
|
2
2
|
function X(e, t) {
|
|
3
3
|
f(t.signal), E(() => t.onDiagnostic?.(e)), f(t.signal);
|
|
4
4
|
}
|
|
@@ -55,24 +55,24 @@ function D(e, t, i, n, s, o, a) {
|
|
|
55
55
|
const u = new Set(a).add(e), r = P(e, t);
|
|
56
56
|
r && o.push({ ...g(e, t, i, n, r), componentPath: s });
|
|
57
57
|
const d = h(e.style, t);
|
|
58
|
-
d && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: d }), componentPath: s }), w(e, t, i, n, o, s),
|
|
58
|
+
d && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: d }), componentPath: s }), w(e, t, i, n, o, s), T(e, t, i, n, s, o, u);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function N(e, t, i) {
|
|
61
61
|
if (e.grid) return { code: "nested-components-omitted", message: "XLSX cannot place a nested grid inside a single cell; the nested grid is omitted." };
|
|
62
62
|
const n = A(e);
|
|
63
63
|
if (n) return n;
|
|
64
64
|
if (O(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." };
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function R(e) {
|
|
67
67
|
let t;
|
|
68
68
|
return (i, n, s, o) => {
|
|
69
69
|
t ??= new Map(C(e.grid, e.widthMm, e.heightMm).cells.map((r) => [`${r.ri}:${r.ci}`, r]));
|
|
70
70
|
const a = t.get(`${n}:${s}`), u = 2 * (e.grid?.paddingMm ?? 0.5);
|
|
71
|
-
return
|
|
71
|
+
return N(i, (a?.widthMm ?? 0) - u - (o?.indentMm ?? 0), (a?.heightMm ?? 0) - u);
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const u =
|
|
74
|
+
function T(e, t, i, n, s, o, a) {
|
|
75
|
+
const u = R(e);
|
|
76
76
|
for (const [r, d] of (e.grid?.cells ?? []).entries()) for (const [c, l] of d.entries()) {
|
|
77
77
|
l?.dataBar !== void 0 && !L(l.dataBar) && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: "Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors." }), componentPath: [...s, r, c] });
|
|
78
78
|
const v = h(l?.style, t);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./diagnostic-collector-
|
|
1
|
+
"use strict";const c=require("./diagnostic-collector-wASg6Fzs.cjs");function D(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 p(e,t,i,n,s){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{...s,severity:"warning",format:t,pageIndex:i,componentIndex:n,kind:e.kind,nid:e.nid,...d?{extension:d}:{}}}function h(e,t){if(!e||t==="dom")return;const i=[];return e.rotateDeg&&i.push("rotateDeg"),e.opacity!==void 0&&e.opacity!==1&&i.push("opacity"),t!=="xlsx"&&e.align==="justify"&&i.push("justify"),t==="xlsx"&&e.letterSpacing&&i.push("letterSpacing"),i.length?`${t} does not preserve these styles: ${i.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 L(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,n,s,o){const a=u=>{s.push({...p(e,t,i,n,{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)??(t==="xlsx"?S(d.style):void 0);l&&a(l)}}}function w(e,t,i,n,s,o,a){if(a.has(e))return;const u=new Set(a).add(e),r=$(e,t);r&&o.push({...p(e,t,i,n,r),componentPath:s});const d=h(e.style,t);d&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:d}),componentPath:s}),m(e,t,i,n,o,s),B(e,t,i,n,s,o,u)}function X(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 n=L(e);if(n)return n;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 j(e){let t;return(i,n,s,o)=>{t??=new Map(c.resolveGridLayout(e.grid,e.widthMm,e.heightMm).cells.map(r=>[`${r.ri}:${r.ci}`,r]));const a=t.get(`${n}:${s}`),u=2*(e.grid?.paddingMm??.5);return X(i,(a?.widthMm??0)-u-(o?.indentMm??0),(a?.heightMm??0)-u)}}function B(e,t,i,n,s,o,a){const u=j(e);for(const[r,d]of(e.grid?.cells??[]).entries())for(const[l,g]of d.entries()){g?.dataBar!==void 0&&!c.validDataBar(g.dataBar)&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:"Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors."}),componentPath:[...s,r,l]});const v=h(g?.style,t);v&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:v}),componentPath:[...s,r,l]}),g?.richParagraphs?.length&&m({...e,richParagraphs:g.richParagraphs},t,i,n,o,[...s,r,l]);for(const[E,f]of(g?.children??[]).entries()){const O=[...s,r,l,E];if(t==="xlsx"){const b=u(f,r,l,g);if(b&&o.push({...p(f,t,i,n,b),componentPath:O}),f.grid)continue}w(f,t,i,n,O,o,a)}}}function y(e,t,i){c.assertBoundedRenderTree(e),e.pages.forEach((n,s)=>n.components.forEach((o,a)=>w(o,t,s,a,[],i,new Set)))}function A(e,t){const i=[];return y(e,t,i),i}function G(e,t,i=c.DEFAULT_DIAGNOSTIC_LIMIT){const n=c.createDiagnosticCollector(i);return y(e,t,n),n.snapshot()}function x(e,t,i,n){c.assertOutputActive(i.signal);const s=c.createDiagnosticCollector(i.diagnosticLimit);n?.diagnosticSummary?s.merge(n.diagnosticSummary):n?.diagnostics.forEach(r=>s.push(r));const o=s.entries.length,a=i.diagnosticLimit===void 0?void 0:new Set(s.entries);if(y(e,t,{push:r=>{c.assertOutputActive(i.signal),s.push(r)}}),(a?s.entries.filter(r=>!a.has(r)):s.entries.slice(o)).forEach(r=>D(r,i)),i.fidelity==="strict"&&s.total)throw new M(s.entries,i.diagnosticLimit===void 0?void 0:s.snapshot());return s}function P(e,t,i){return x(e,t,i).entries}exports.OutputFidelityError=M;exports.collectOutputDiagnostics=x;exports.inspectOutputCapabilities=A;exports.inspectOutputCapabilitiesSummary=G;exports.notifyOutputDiagnostic=D;exports.reportOutputDiagnostics=P;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
function s(e) {
|
|
2
|
+
if (e?.aborted) throw e.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
3
|
+
}
|
|
4
|
+
function u(e) {
|
|
5
|
+
try {
|
|
6
|
+
Promise.resolve(e()).catch(() => {
|
|
7
|
+
});
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function b(e, t) {
|
|
12
|
+
const o = Promise.resolve(e);
|
|
13
|
+
return t?.aborted ? (o.catch(() => {
|
|
14
|
+
}), Promise.reject(t.reason ?? new DOMException("The operation was aborted.", "AbortError"))) : t ? new Promise((c, i) => {
|
|
15
|
+
const r = () => t.removeEventListener("abort", n), n = () => {
|
|
16
|
+
r(), i(t.reason ?? new DOMException("The operation was aborted.", "AbortError"));
|
|
17
|
+
};
|
|
18
|
+
t.addEventListener("abort", n, { once: !0 }), o.then((a) => {
|
|
19
|
+
r(), c(a);
|
|
20
|
+
}, (a) => {
|
|
21
|
+
r(), i(a);
|
|
22
|
+
}), t.aborted && n();
|
|
23
|
+
}) : o;
|
|
24
|
+
}
|
|
25
|
+
function p(e, t = !1) {
|
|
26
|
+
return t || typeof e == "boolean" || e instanceof Date || typeof e == "number" && Number.isFinite(e) ? "center" : "left";
|
|
27
|
+
}
|
|
28
|
+
function f(e) {
|
|
29
|
+
return e !== void 0 && /[0#?]/.test(e.replace(/"[^"]*"|\\.|\[[^\]]*\]/g, ""));
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
p as a,
|
|
33
|
+
s as b,
|
|
34
|
+
f as h,
|
|
35
|
+
u as o,
|
|
36
|
+
b as w
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function u(t){if(t?.aborted)throw t.reason??new DOMException("The operation was aborted.","AbortError")}function s(t){try{Promise.resolve(t()).catch(()=>{})}catch{}}function b(t,e){const r=Promise.resolve(t);return e?.aborted?(r.catch(()=>{}),Promise.reject(e.reason??new DOMException("The operation was aborted.","AbortError"))):e?new Promise((a,c)=>{const o=()=>e.removeEventListener("abort",n),n=()=>{o(),c(e.reason??new DOMException("The operation was aborted.","AbortError"))};e.addEventListener("abort",n,{once:!0}),r.then(i=>{o(),a(i)},i=>{o(),c(i)}),e.aborted&&n()}):r}function p(t,e=!1){return e||typeof t=="boolean"||t instanceof Date||typeof t=="number"&&Number.isFinite(t)?"center":"left"}function m(t){return t!==void 0&&/[0#?]/.test(t.replace(/"[^"]*"|\\.|\[[^\]]*\]/g,""))}exports.assertOutputActive=u;exports.automaticCellAlignment=p;exports.hasNumericCellFormat=m;exports.observeOutput=s;exports.waitForOutput=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./diagnostic-collector-
|
|
1
|
+
"use strict";const d=require("./diagnostic-collector-wASg6Fzs.cjs");function i(t,r,c,o){if(!d.validDataBar(t)||t.start===t.end)return;const a=Math.max(0,r-2*o);return{x:o+a*t.start,y:o,width:a*(t.end-t.start),height:Math.max(0,c-2*o),color:t.color}}exports.dataBarBox=i;
|