@agile-team/mach-report 2.23.0 → 2.23.1
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 +3 -2
- package/dist/ExcelBindingWizard-BrTmdo7f.cjs +1 -0
- package/dist/ExcelBindingWizard-CcDMLO8Q.js +1486 -0
- package/dist/ParamEditor-BGjovFUe.js +737 -0
- package/dist/ParamEditor-CeNp4_zQ.cjs +1 -0
- package/dist/ReportBatchPanel-CHxBtG9R.cjs +1 -0
- package/dist/ReportBatchPanel-CJB67WNd.js +351 -0
- package/dist/ReportLabelStudio-Tplc1TLJ.js +784 -0
- package/dist/ReportLabelStudio-g8PkqJWn.cjs +1 -0
- package/dist/ReportParamPanel-C7fZTllk.cjs +1 -0
- package/dist/{ReportParamPanel-Dgmqro1Y.js → ReportParamPanel-GI43aGa0.js} +61 -56
- package/dist/{ReportPreview-FFIryrIr.cjs → ReportPreview-BoGBGyRr.cjs} +2 -2
- package/dist/{ReportPreview-DeWzG8jQ.js → ReportPreview-QLONCyci.js} +8 -8
- package/dist/ReportTemplateLibrary-BFQIX0sg.cjs +1 -0
- package/dist/ReportTemplateLibrary-KqX4E2sN.js +312 -0
- package/dist/RuleEditor-BZUP9yvL.cjs +1 -0
- package/dist/RuleEditor-OPX1awrH.js +2342 -0
- package/dist/TemplateOutlinePanel-CVYKVLv_.cjs +1 -0
- package/dist/TemplateOutlinePanel-DQS-eOs6.js +97 -0
- package/dist/TemplateReusePanel-CY6O93Zk.cjs +1 -0
- package/dist/TemplateReusePanel-DKXiFTyB.js +389 -0
- package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +1 -0
- package/dist/TemplateReviewPanel-Dijwm9YE.js +593 -0
- package/dist/artifact-integrity.json +68 -68
- package/dist/{auto-CTIJ6PnR.js → auto-BB99S802.js} +4 -4
- package/dist/{auto-4pK9HePf.cjs → auto-BrPWo7Xm.cjs} +1 -1
- package/dist/designer-BZoVWTgl.js +7172 -0
- package/dist/designer-zS2uKJmY.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +7 -0
- package/dist/designer.d.ts +7 -0
- package/dist/designer.js +2 -2
- package/dist/{encoding-BefcaHdp.cjs → encoding-7lquyj0w.cjs} +1 -1
- package/dist/{encoding-CL6rXEkR.js → encoding-CEd-dq9A.js} +2 -2
- package/dist/{font-loader-BT5baV-o.js → font-loader-CNWXomuV.js} +1 -1
- package/dist/{font-loader-Ga51c2VC.cjs → font-loader-D8pI87fL.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/{json-snapshot-OqkPyUk5.js → json-snapshot-BRnzKudk.js} +1 -1
- package/dist/{json-snapshot-1tvQNzQE.cjs → json-snapshot-DNiIbpOr.cjs} +1 -1
- package/dist/{pdf-aobetCsy.js → pdf-CJToa81Z.js} +2 -2
- package/dist/{pdf-HiEeXe9H.cjs → pdf-DpMkW72B.cjs} +1 -1
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.js +2 -2
- package/dist/{plugin-BFANt-i8.cjs → plugin-BWTp-X7b.cjs} +1 -1
- package/dist/{plugin-DeYYAL6F.js → plugin-_BkUVc2z.js} +1 -1
- package/dist/{prefill-Dk4C6S5R.js → prefill-CWGdnqQd.js} +1 -1
- package/dist/{prefill-DsUD5OoK.cjs → prefill-PaAy6wLk.cjs} +1 -1
- package/dist/{prepared-DCIxhKFo.js → prepared-CJy_qk7d.js} +1 -1
- package/dist/{prepared-Dv-XM3i1.cjs → prepared-D0yCSxSO.cjs} +1 -1
- package/dist/{protocol-DxeUKGYG.js → protocol-BG16rz6D.js} +2 -2
- package/dist/{protocol-B9YgfQ_d.cjs → protocol-wzhl1Fim.cjs} +1 -1
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/{runtime-DKlGd_D4.cjs → runtime-DYMOS_gz.cjs} +1 -1
- package/dist/{runtime-75Y5Oq5B.js → runtime-PiCax9zQ.js} +2 -2
- package/dist/sbom.cdx.json +1 -1
- package/dist/server-node.cjs +4 -4
- package/dist/server-node.js +737 -736
- package/dist/server.cjs +1 -1
- package/dist/server.js +5 -5
- package/dist/style.css +1 -1
- package/dist/{template-catalog--cjxzgH7.js → template-catalog-CRuZL3pi.js} +1 -1
- package/dist/{template-catalog-CoT7jm_6.cjs → template-catalog-DtrtT1FY.cjs} +1 -1
- package/dist/textwrap-D4ZksyMK.js +111 -0
- package/dist/textwrap-DEHqAjKZ.cjs +4 -0
- package/dist/vue/async.d.cts +7 -0
- package/dist/vue/async.d.ts +7 -0
- package/dist/vue/index.d.cts +7 -0
- package/dist/vue/index.d.ts +7 -0
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +6 -6
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +4 -4
- package/package.json +1 -1
- package/dist/ExcelBindingWizard-D4FLind-.js +0 -1485
- package/dist/ExcelBindingWizard-D4RS5Bpg.cjs +0 -1
- package/dist/ParamEditor-C-6C9rd2.cjs +0 -1
- package/dist/ParamEditor-CASZt-Ma.js +0 -732
- package/dist/ReportBatchPanel-Bq7t8a5r.js +0 -350
- package/dist/ReportBatchPanel-YVj5IO5y.cjs +0 -1
- package/dist/ReportLabelStudio-Cqhita1b.cjs +0 -1
- package/dist/ReportLabelStudio-Dj7GXhuv.js +0 -783
- package/dist/ReportParamPanel-DZbFVmDL.cjs +0 -1
- package/dist/ReportTemplateLibrary-BaWodmpm.cjs +0 -1
- package/dist/ReportTemplateLibrary-DdAAAD2I.js +0 -311
- package/dist/RuleEditor-D2UwQGF6.js +0 -2341
- package/dist/RuleEditor-DcT9xI1v.cjs +0 -1
- package/dist/TemplateOutlinePanel-CUHFFiNM.cjs +0 -1
- package/dist/TemplateOutlinePanel-DrT7XN0m.js +0 -96
- package/dist/TemplateReusePanel-4eejkNqi.js +0 -388
- package/dist/TemplateReusePanel-DZMyiX5I.cjs +0 -1
- package/dist/TemplateReviewPanel-BIhNLeNw.js +0 -592
- package/dist/TemplateReviewPanel-DnYImiXu.cjs +0 -1
- package/dist/designer-DhrE7jzw.js +0 -7169
- package/dist/designer-IAZu6kBX.cjs +0 -2
- package/dist/textwrap-BIjtEWmq.js +0 -110
- package/dist/textwrap-Cy7o1hIR.cjs +0 -4
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { D as M } from "./progress-ByiOxUD3.js";
|
|
2
|
-
const d = /[\u3000-\u9fff\uff00-\uffef]/, s = new Uint8Array(128);
|
|
3
|
-
{
|
|
4
|
-
for (const t of "iljtf.,:;'`|!()[]") s[t.charCodeAt(0)] = 1;
|
|
5
|
-
for (const t of "mwMW@") s[t.charCodeAt(0)] = 2;
|
|
6
|
-
for (let t = 48; t <= 57; t++) s[t] = 3;
|
|
7
|
-
for (let t = 65; t <= 90; t++) s[t] = 4;
|
|
8
|
-
s[32] = 5;
|
|
9
|
-
}
|
|
10
|
-
const w = [0.54, 0.26, 0.95, 0.59, 0.67, 0.3];
|
|
11
|
-
function g(t) {
|
|
12
|
-
const e = t.charCodeAt(0);
|
|
13
|
-
return e < 128 ? w[s[e]] : d.test(t) ? 1 : /[A-Z]/.test(t) ? 0.67 : 0.54;
|
|
14
|
-
}
|
|
15
|
-
const o = {
|
|
16
|
-
measureMm(t, e) {
|
|
17
|
-
const { fontSizePt: i, bold: c = !1, letterSpacingPt: f = 0 } = e, n = 25.4 / 72;
|
|
18
|
-
let r = 0;
|
|
19
|
-
for (const h of t)
|
|
20
|
-
r += g(h);
|
|
21
|
-
return c && (r *= 1.04), (r * i + f * Math.max(0, Array.from(t).length - 1)) * n;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
function S() {
|
|
25
|
-
return o;
|
|
26
|
-
}
|
|
27
|
-
function T(t, e) {
|
|
28
|
-
return o.measureMm(t, e);
|
|
29
|
-
}
|
|
30
|
-
function b(t) {
|
|
31
|
-
let e;
|
|
32
|
-
return {
|
|
33
|
-
measureMm(i, c) {
|
|
34
|
-
if (e === void 0 && (e = t()), !e) return o.measureMm(i, c);
|
|
35
|
-
const f = c.fontSizePt * 96 / 72;
|
|
36
|
-
e.font = `${c.italic ? "italic " : ""}${c.bold ? "bold " : ""}${f}px ${c.fontFamily ?? M}`, "letterSpacing" in e && (e.letterSpacing = "0px");
|
|
37
|
-
const n = (c.letterSpacingPt ?? 0) * Math.max(0, Array.from(i).length - 1);
|
|
38
|
-
return e.measureText(i).width * 25.4 / 96 + n * 25.4 / 72;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function p(t, e, i) {
|
|
43
|
-
const c = [];
|
|
44
|
-
let f = "";
|
|
45
|
-
const n = () => {
|
|
46
|
-
f && (c.push({ text: f, widthMm: i.measureMm(f, e), cjk: !1 }), f = "");
|
|
47
|
-
};
|
|
48
|
-
for (const r of t) {
|
|
49
|
-
if (r === `
|
|
50
|
-
`) {
|
|
51
|
-
n(), c.push({ text: `
|
|
52
|
-
`, widthMm: 0, cjk: !1, br: !0 });
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
if (r === " ") {
|
|
56
|
-
n(), c.push({ text: r, widthMm: i.measureMm(r, e), cjk: !1, space: !0 });
|
|
57
|
-
continue;
|
|
58
|
-
}
|
|
59
|
-
if (d.test(r)) {
|
|
60
|
-
n(), c.push({ text: r, widthMm: i.measureMm(r, e), cjk: !0 });
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
f += r;
|
|
64
|
-
}
|
|
65
|
-
return n(), c;
|
|
66
|
-
}
|
|
67
|
-
function j(t, e, i, c = o) {
|
|
68
|
-
if (!t) return [""];
|
|
69
|
-
t = t.replace(/\r\n?/g, `
|
|
70
|
-
`);
|
|
71
|
-
const f = [];
|
|
72
|
-
let n = "", r = 0;
|
|
73
|
-
const h = (i.letterSpacingPt ?? 0) * 25.4 / 72, u = () => {
|
|
74
|
-
f.push(n), n = "", r = 0;
|
|
75
|
-
};
|
|
76
|
-
for (const a of p(t, i, c)) {
|
|
77
|
-
if (a.br) {
|
|
78
|
-
u();
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
const m = n.length > 0 ? h : 0;
|
|
82
|
-
if (r + m + a.widthMm <= e) {
|
|
83
|
-
n += a.text, r += m + a.widthMm;
|
|
84
|
-
continue;
|
|
85
|
-
}
|
|
86
|
-
if (a.space) {
|
|
87
|
-
u();
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
if (a.cjk) {
|
|
91
|
-
n.length > 0 && u(), n = a.text, r = a.widthMm;
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
if (n.length > 0 && u(), a.widthMm <= e) {
|
|
95
|
-
n = a.text, r = a.widthMm;
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
for (const l of a.text)
|
|
99
|
-
c.measureMm(n + l, i) > e && n.length > 0 && u(), n += l, r = c.measureMm(n, i);
|
|
100
|
-
}
|
|
101
|
-
return u(), f;
|
|
102
|
-
}
|
|
103
|
-
export {
|
|
104
|
-
b as a,
|
|
105
|
-
S as b,
|
|
106
|
-
g as c,
|
|
107
|
-
o as h,
|
|
108
|
-
T as m,
|
|
109
|
-
j as w
|
|
110
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const g=require("./progress-WomPRP3B.cjs"),M=/[\u3000-\u9fff\uff00-\uffef]/,s=new Uint8Array(128);{for(const t of"iljtf.,:;'`|!()[]")s[t.charCodeAt(0)]=1;for(const t of"mwMW@")s[t.charCodeAt(0)]=2;for(let t=48;t<=57;t++)s[t]=3;for(let t=65;t<=90;t++)s[t]=4;s[32]=5}const w=[.54,.26,.95,.59,.67,.3];function d(t){const e=t.charCodeAt(0);return e<128?w[s[e]]:M.test(t)?1:/[A-Z]/.test(t)?.67:.54}const o={measureMm(t,e){const{fontSizePt:i,bold:c=!1,letterSpacingPt:u=0}=e,r=25.4/72;let n=0;for(const h of t)n+=d(h);return c&&(n*=1.04),(n*i+u*Math.max(0,Array.from(t).length-1))*r}};function p(){return o}function A(t,e){return o.measureMm(t,e)}function x(t){let e;return{measureMm(i,c){if(e===void 0&&(e=t()),!e)return o.measureMm(i,c);const u=c.fontSizePt*96/72;e.font=`${c.italic?"italic ":""}${c.bold?"bold ":""}${u}px ${c.fontFamily??g.DEFAULT_FONT_FAMILY}`,"letterSpacing"in e&&(e.letterSpacing="0px");const r=(c.letterSpacingPt??0)*Math.max(0,Array.from(i).length-1);return e.measureText(i).width*25.4/96+r*25.4/72}}}function T(t,e,i){const c=[];let u="";const r=()=>{u&&(c.push({text:u,widthMm:i.measureMm(u,e),cjk:!1}),u="")};for(const n of t){if(n===`
|
|
2
|
-
`){r(),c.push({text:`
|
|
3
|
-
`,widthMm:0,cjk:!1,br:!0});continue}if(n===" "){r(),c.push({text:n,widthMm:i.measureMm(n,e),cjk:!1,space:!0});continue}if(M.test(n)){r(),c.push({text:n,widthMm:i.measureMm(n,e),cjk:!0});continue}u+=n}return r(),c}function S(t,e,i,c=o){if(!t)return[""];t=t.replace(/\r\n?/g,`
|
|
4
|
-
`);const u=[];let r="",n=0;const h=(i.letterSpacingPt??0)*25.4/72,a=()=>{u.push(r),r="",n=0};for(const f of T(t,i,c)){if(f.br){a();continue}const m=r.length>0?h:0;if(n+m+f.widthMm<=e){r+=f.text,n+=m+f.widthMm;continue}if(f.space){a();continue}if(f.cjk){r.length>0&&a(),r=f.text,n=f.widthMm;continue}if(r.length>0&&a(),f.widthMm<=e){r=f.text,n=f.widthMm;continue}for(const l of f.text)c.measureMm(r+l,i)>e&&r.length>0&&a(),r+=l,n=c.measureMm(r,i)}return a(),u}exports.charWidthEm=d;exports.createCanvasMeasurer=x;exports.createHeuristicMeasurer=p;exports.heuristicMeasurer=o;exports.measureTextMm=A;exports.wrapText=S;
|