@agile-team/mach-report 2.16.0 → 2.18.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 +25 -12
- package/dist/{ExcelBindingWizard-CP6h2x1f.cjs → ExcelBindingWizard-Czn3C2yE.cjs} +1 -1
- package/dist/{ExcelBindingWizard-HhB3hAJE.js → ExcelBindingWizard-DMGZj6I6.js} +3 -3
- package/dist/ParamEditor-KzDQvbHY.js +732 -0
- package/dist/ParamEditor-oDfD8LgE.cjs +1 -0
- package/dist/{ReportBatchPanel-ruxcbfY6.js → ReportBatchPanel-BJK7PvZ4.js} +39 -39
- package/dist/ReportBatchPanel-DnmNRssu.cjs +1 -0
- package/dist/ReportParamPanel-mQkeN70Q.js +1020 -0
- package/dist/ReportParamPanel-sOANVRz-.cjs +1 -0
- package/dist/ReportPreview-BxWWTUL5.js +5583 -0
- package/dist/ReportPreview-Yf99omi3.cjs +6 -0
- package/dist/{ReportTemplateLibrary-DcwrH-63.js → ReportTemplateLibrary-BFjB08Wu.js} +1 -1
- package/dist/{ReportTemplateLibrary-BDlNT8JN.cjs → ReportTemplateLibrary-BO42QnWd.cjs} +1 -1
- package/dist/RuleEditor-CqxT1a-W.js +2337 -0
- package/dist/RuleEditor-D7YWigD9.cjs +1 -0
- package/dist/{TemplateOutlinePanel-CGrT5DFN.cjs → TemplateOutlinePanel-B0XX350V.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-SXCjaPKR.js → TemplateOutlinePanel-zG0DrsIB.js} +2 -2
- package/dist/{TemplateReusePanel-6Z3wRFz8.cjs → TemplateReusePanel-BD0HSKp_.cjs} +1 -1
- package/dist/{TemplateReusePanel-lHLOS9Wn.js → TemplateReusePanel-Czwe5GbC.js} +2 -2
- package/dist/{TemplateReviewPanel-Dpk7sLcF.cjs → TemplateReviewPanel-CA5sdffM.cjs} +1 -1
- package/dist/{TemplateReviewPanel-CJ9PLc48.js → TemplateReviewPanel-NhmQI65C.js} +2 -2
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.d.cts +163 -42
- package/dist/analytics.d.ts +163 -42
- package/dist/analytics.js +76 -141
- package/dist/artifact-integrity.json +110 -108
- package/dist/assets-2eC3mOcV.js +232 -0
- package/dist/assets-B0Hxn4l6.cjs +1 -0
- package/dist/{auto-uVBjX1j5.cjs → auto-B0EZFIK1.cjs} +1 -1
- package/dist/{auto-YR7a4BtF.js → auto-BlchZ1b8.js} +10 -10
- package/dist/{batch-WzDIXJAt.js → batch-DGCt44XM.js} +1 -1
- package/dist/{batch-z6Aw5GEY.cjs → batch-DYcokH4v.cjs} +1 -1
- package/dist/charts-Dlv8j2AG.js +141 -0
- package/dist/charts-aCtoswXq.cjs +1 -0
- package/dist/codes.cjs +9 -9
- package/dist/codes.d.cts +54 -0
- package/dist/codes.d.ts +54 -0
- package/dist/codes.js +12097 -13668
- package/dist/column-visual-BpgQVWwT.js +238 -0
- package/dist/column-visual-CtYxnBCP.cjs +1 -0
- package/dist/component-tree-6TV7W6Yj.cjs +1 -0
- package/dist/component-tree-CvW4lzpv.js +67 -0
- package/dist/computed-4TnxzgIh.cjs +1 -0
- package/dist/computed-C8NRZQss.js +739 -0
- package/dist/data-bar-Ce38juRZ.cjs +1 -0
- package/dist/data-bar-PtjXhMgN.js +9 -0
- package/dist/dataset-DL83majE.js +161 -0
- package/dist/dataset-IrlXbUvh.cjs +1 -0
- package/dist/designer--TKECSEc.cjs +2 -0
- package/dist/designer-d6hJS41w.js +5683 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +835 -45
- package/dist/designer.d.ts +835 -45
- package/dist/designer.js +23 -20
- package/dist/{encoding-BYF9ZTl9.cjs → encoding-B--eZpp1.cjs} +1 -1
- package/dist/{encoding-BOGq4qYL.js → encoding-mctOLocI.js} +2 -2
- package/dist/{font-loader-EKLzOJxf.cjs → font-loader-DBBJ5KE9.cjs} +1 -1
- package/dist/{font-loader-CzI1GuBc.js → font-loader-DW8tIaNp.js} +1 -1
- package/dist/index-CPh6tqge.js +1575 -0
- package/dist/index-CUNw7dL9.cjs +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +534 -16
- package/dist/index.d.ts +534 -16
- package/dist/index.js +1393 -955
- package/dist/json-snapshot-By4ZVVUt.js +1967 -0
- package/dist/json-snapshot-jiXff4lc.cjs +2 -0
- package/dist/matrix-0hywp0-F.cjs +1 -0
- package/dist/matrix-Dy-tyY7E.js +381 -0
- package/dist/param-validation-C-8sRJLq.cjs +1 -0
- package/dist/param-validation-CnDEd2l-.js +333 -0
- package/dist/{pdf-DJ5S6ukC.js → pdf-CKROKygt.js} +1845 -1845
- package/dist/{pdf-ByVCb1i6.cjs → pdf-DqyxJ96U.cjs} +47 -47
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.d.cts +66 -0
- package/dist/pdf.d.ts +66 -0
- package/dist/pdf.js +2 -2
- package/dist/{plugin-C2j5_mhx.js → plugin-ByjF2kiV.js} +5 -5
- package/dist/{plugin-Dr39GBRG.cjs → plugin-DM1M2wlI.cjs} +1 -1
- package/dist/prefill-B8H9qwE4.js +371 -0
- package/dist/prefill-D7EswyTI.cjs +1 -0
- package/dist/{prepared-DqtpvRTn.js → prepared-BE-4jfX5.js} +2 -2
- package/dist/{prepared-DdrjLC7L.cjs → prepared-CGVphji3.cjs} +1 -1
- package/dist/{protocol-BzwMP4Vw.cjs → protocol-ByRVzzQG.cjs} +1 -1
- package/dist/{protocol-kt4Iy6-3.js → protocol-Cr81vFSQ.js} +3 -3
- package/dist/{record-bindings-CZWBJ1fU.js → record-bindings-DEJtmo3p.js} +67 -107
- package/dist/record-bindings-ehjnCDHt.cjs +1 -0
- package/dist/{region-binding-workflow-CWNvIjkV.js → region-binding-workflow-CBg0l_tj.js} +2 -2
- package/dist/{region-binding-workflow-CqSMxQ4p.cjs → region-binding-workflow-D05tOYn3.cjs} +1 -1
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/{report-params-B1RzkhJj.js → report-params-D9tBuM9B.js} +1 -1
- package/dist/{report-params-WDGrA4oP.cjs → report-params-VTg8MoCp.cjs} +1 -1
- package/dist/runtime-CDA6d263.cjs +1 -0
- package/dist/runtime-CEMvybO7.js +170 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server/node.d.cts +121 -7
- package/dist/server/node.d.ts +121 -7
- package/dist/server-node.cjs +4 -4
- package/dist/server-node.js +3446 -2115
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +417 -29
- package/dist/server.d.ts +417 -29
- package/dist/server.js +787 -544
- package/dist/sha256-BDQ1Qk7A.js +158 -0
- package/dist/sha256-DgZAKXqI.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/template-bindings-Cg5oBLFT.cjs +1 -0
- package/dist/template-bindings-TKnXM7ll.js +62 -0
- package/dist/{template-catalog-BtR2JmCL.js → template-catalog-CmbWOJqy.js} +16 -16
- package/dist/template-catalog-Utu4GP09.cjs +1 -0
- package/dist/{template-fragments-BVsbxs4a.cjs → template-fragments-C_zSHJAa.cjs} +1 -1
- package/dist/{template-fragments-By0aZC1D.js → template-fragments-DWgo9tlZ.js} +2 -2
- package/dist/{template-outline-BwRV_eRo.cjs → template-outline-DWkzZXVC.cjs} +1 -1
- package/dist/{template-outline-cnWfT_LK.js → template-outline-DiADphlq.js} +1 -1
- package/dist/{template-registry-Cw3vRTX2.js → template-registry-BIhIHOab.js} +319 -314
- package/dist/template-registry-DzWswQI5.cjs +1 -0
- package/dist/vue/async.d.cts +636 -35
- package/dist/vue/async.d.ts +636 -35
- package/dist/vue/index.d.cts +746 -67
- package/dist/vue/index.d.ts +746 -67
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +94 -89
- package/dist/{workbook-session-Cbts-22R.cjs → workbook-session-B94EwVa_.cjs} +1 -1
- package/dist/{workbook-session-BeSO8PFB.js → workbook-session-BoScoOg-.js} +2 -2
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +75 -7
- package/dist/worker.d.ts +75 -7
- package/dist/worker.js +4 -4
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.d.cts +208 -15
- package/dist/xlsx.d.ts +208 -15
- package/dist/xlsx.js +288 -252
- package/package.json +1 -1
- package/dist/ParamEditor-CUQLgoxa.cjs +0 -1
- package/dist/ParamEditor-OKesP_nO.js +0 -594
- package/dist/ReportBatchPanel-cZCAMAwH.cjs +0 -1
- package/dist/ReportPreview-BcDKCLiK.js +0 -4834
- package/dist/ReportPreview-Bk9nLfO9.cjs +0 -6
- package/dist/RuleEditor-BX5S8RSF.cjs +0 -1
- package/dist/RuleEditor-CGl9XY2s.js +0 -2037
- package/dist/assets-CqIbfbTr.js +0 -126
- package/dist/assets-e4YSke8n.cjs +0 -1
- package/dist/capabilities-DDwXr_cA.js +0 -103
- package/dist/capabilities-DNLyZdNw.cjs +0 -1
- package/dist/component-tree-Ca6YYfHq.js +0 -61
- package/dist/component-tree-DkGLEfZC.cjs +0 -1
- package/dist/computed-C-4C2S5h.js +0 -521
- package/dist/computed-CGV2a809.cjs +0 -1
- package/dist/config-Dg_o8e7m.cjs +0 -1
- package/dist/config-XQ4qrQ7Q.js +0 -844
- package/dist/dataset-BkRmwgeJ.cjs +0 -1
- package/dist/dataset-H5pFuQGU.js +0 -121
- package/dist/designer-BfQSahxq.js +0 -5163
- package/dist/designer-CPPdeM5_.cjs +0 -2
- package/dist/diagnostic-notification-B9K9We3h.cjs +0 -1
- package/dist/diagnostic-notification-qGAYZdkB.js +0 -7
- package/dist/drill-CsdjgkRM.cjs +0 -1
- package/dist/drill-DIGsZfyB.js +0 -145
- package/dist/json-snapshot-D6ioHth9.js +0 -1702
- package/dist/json-snapshot-DknkjvxP.cjs +0 -2
- package/dist/matrix-CGRGkn5s.js +0 -112
- package/dist/matrix-gEO7ZM_u.cjs +0 -1
- package/dist/param-validation-C3HlcLLO.cjs +0 -1
- package/dist/param-validation-Do7Eg8Zv.js +0 -181
- package/dist/record-bindings-DUX1VMlR.cjs +0 -1
- package/dist/runtime-BjKBI530.js +0 -168
- package/dist/runtime-CBFEPKEs.cjs +0 -1
- package/dist/sha256-BshdOkCC.cjs +0 -1
- package/dist/sha256-DTG-Gq8i.js +0 -157
- package/dist/template-bindings-C2SpvsMU.js +0 -58
- package/dist/template-bindings-CEtWyiLX.cjs +0 -1
- package/dist/template-catalog-C2NLdrwB.cjs +0 -1
- package/dist/template-registry-C62vpv4a.cjs +0 -1
- package/dist/tree-BX380Rr7.cjs +0 -1
- package/dist/tree-CjVZLRw7.js +0 -172
package/dist/drill-DIGsZfyB.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { q as w, B as j, k as K } from "./json-snapshot-D6ioHth9.js";
|
|
2
|
-
import { r as D } from "./grid-geometry-BNptEcMm.js";
|
|
3
|
-
function m(e) {
|
|
4
|
-
return Number.isFinite(e) ? Math.max(0, e) : 0;
|
|
5
|
-
}
|
|
6
|
-
function B(e, t = 0) {
|
|
7
|
-
const r = e.length, n = m(t), o = new Array(r + 1);
|
|
8
|
-
o[0] = 0;
|
|
9
|
-
for (let s = 0; s < r; s++)
|
|
10
|
-
o[s + 1] = o[s] + m(e[s] ?? 0) + n;
|
|
11
|
-
const u = o[r];
|
|
12
|
-
function l(s) {
|
|
13
|
-
let i = 0, d = r - 1, g = 0;
|
|
14
|
-
for (; i <= d; ) {
|
|
15
|
-
const p = i + d >>> 1;
|
|
16
|
-
o[p] <= s ? (g = p, i = p + 1) : d = p - 1;
|
|
17
|
-
}
|
|
18
|
-
return g;
|
|
19
|
-
}
|
|
20
|
-
function a(s, i, d = 1) {
|
|
21
|
-
if (r === 0) return { start: 0, end: -1, padTopPx: 0, padBottomPx: 0 };
|
|
22
|
-
const g = Math.floor(m(d)), p = m(i), v = l(p), I = Math.max(0, v - g), M = p + m(s);
|
|
23
|
-
let y = v, b = r - 1, S = r - 1;
|
|
24
|
-
for (; y <= b; ) {
|
|
25
|
-
const h = y + b >>> 1;
|
|
26
|
-
o[h + 1] < M ? y = h + 1 : (S = h, b = h - 1);
|
|
27
|
-
}
|
|
28
|
-
const x = Math.min(r - 1, S + g);
|
|
29
|
-
return {
|
|
30
|
-
start: I,
|
|
31
|
-
end: x,
|
|
32
|
-
padTopPx: o[I],
|
|
33
|
-
padBottomPx: Math.max(0, u - o[x + 1])
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
totalHeightPx: u,
|
|
38
|
-
pageAt: l,
|
|
39
|
-
offsetAt: (s) => o[Math.max(0, Math.min(r, Math.floor(s)))] ?? 0,
|
|
40
|
-
window: a
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
class c extends Error {
|
|
44
|
-
constructor(t) {
|
|
45
|
-
super(`Report drill: ${t}`), this.code = t, this.name = "ReportDrillError";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function f(e) {
|
|
49
|
-
return typeof e == "string" && e.trim().length > 0 && e.length <= 256;
|
|
50
|
-
}
|
|
51
|
-
function O(e) {
|
|
52
|
-
if (typeof e == "number" && Number.isFinite(e) || typeof e == "boolean") return String(e);
|
|
53
|
-
if (typeof e == "string" && e.length > 0 && e.length <= 4096) return e;
|
|
54
|
-
throw new c("missing-value");
|
|
55
|
-
}
|
|
56
|
-
function E(e, t) {
|
|
57
|
-
return Object.getOwnPropertyDescriptor(e, t)?.value;
|
|
58
|
-
}
|
|
59
|
-
function R(e) {
|
|
60
|
-
if (!Array.isArray(e) || e.length > 64) throw new c("config");
|
|
61
|
-
const t = /* @__PURE__ */ new Set();
|
|
62
|
-
for (const r of e) {
|
|
63
|
-
if (!r || !f(r.id) || !f(r.label) || !r.target || !f(r.target.field) || t.has(r.id)) throw new c("config");
|
|
64
|
-
t.add(r.id);
|
|
65
|
-
const n = r.target;
|
|
66
|
-
if (n.datasetId !== void 0 && !f(n.datasetId) || n.reportScope !== void 0 && !f(n.reportScope)) throw new c("config");
|
|
67
|
-
if (n.roles !== void 0 && (!Array.isArray(n.roles) || n.roles.length > 16 || n.roles.some((o) => !f(o)))) throw new c("config");
|
|
68
|
-
q(r.params);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function q(e) {
|
|
72
|
-
if (e !== void 0) {
|
|
73
|
-
if (!e || typeof e != "object" || Array.isArray(e) || Object.keys(e).length > 32) throw new c("config");
|
|
74
|
-
for (const [t, r] of Object.entries(e)) {
|
|
75
|
-
if (!f(t) || ["__proto__", "constructor", "prototype"].includes(t) || !r || typeof r != "object") throw new c("config");
|
|
76
|
-
if ("value" in r)
|
|
77
|
-
try {
|
|
78
|
-
O(r.value);
|
|
79
|
-
} catch {
|
|
80
|
-
throw new c("config");
|
|
81
|
-
}
|
|
82
|
-
else if (!["value", "rowKey", "query", "field"].includes(r.from) || (r.from === "query" || r.from === "field") && !f(r.field)) throw new c("config");
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function A(e, t, r) {
|
|
87
|
-
const { target: n } = r, o = t.source?.datasetId ?? t.component.table?.source?.datasetId;
|
|
88
|
-
return (t.source?.field ?? t.table?.columnKey) === n.field && (n.datasetId === void 0 || o === n.datasetId) && (n.reportScope === void 0 || e.pages[t.address.pageIndex]?.meta?.reportScope === n.reportScope) && (n.roles ? n.roles.includes(t.table?.role ?? "") : t.table?.role !== "header");
|
|
89
|
-
}
|
|
90
|
-
function C(e, t, r) {
|
|
91
|
-
R(r);
|
|
92
|
-
const n = w(e, t);
|
|
93
|
-
return n ? r.filter((o) => A(e, n, o)) : [];
|
|
94
|
-
}
|
|
95
|
-
function z(e, t, r, n) {
|
|
96
|
-
if ("value" in e) return e.value;
|
|
97
|
-
switch (e.from) {
|
|
98
|
-
case "value":
|
|
99
|
-
return r.value;
|
|
100
|
-
case "rowKey":
|
|
101
|
-
return r.source?.rowKey;
|
|
102
|
-
case "query":
|
|
103
|
-
return E(n, e.field);
|
|
104
|
-
case "field": {
|
|
105
|
-
const o = r.component.table?.columnKeys.indexOf(e.field) ?? -1;
|
|
106
|
-
return o < 0 ? void 0 : w(t, { ...r.address, columnIndex: o })?.value;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function _(e, t, r, n = {}) {
|
|
111
|
-
R([r]);
|
|
112
|
-
const o = w(e, t);
|
|
113
|
-
if (!o || !A(e, o, r)) throw new c("target");
|
|
114
|
-
const u = Object.fromEntries(Object.entries(r.params ?? {}).map(([s, i]) => [s, O(z(i, e, o, n))])), l = Object.entries(n);
|
|
115
|
-
if (l.length > 128 || l.some(([s, i]) => !f(s) || typeof i != "string" || i.length > 4096)) throw new c("config");
|
|
116
|
-
const a = e.pages[t.pageIndex]?.meta?.reportScope;
|
|
117
|
-
return Object.freeze({ actionId: r.id, params: Object.freeze(u), returnState: Object.freeze({
|
|
118
|
-
params: Object.freeze(Object.fromEntries(l)),
|
|
119
|
-
address: Object.freeze({ ...t }),
|
|
120
|
-
...typeof a == "string" ? { reportScope: a } : {},
|
|
121
|
-
...o.source ? { source: Object.freeze({ sourceScope: o.source.sourceScope, datasetId: o.source.datasetId, rowKey: o.source.rowKey, field: o.source.field }) } : {}
|
|
122
|
-
}) });
|
|
123
|
-
}
|
|
124
|
-
function N(e, t) {
|
|
125
|
-
if (!t.source) return e.pages[t.address.pageIndex]?.meta?.reportScope === t.reportScope && w(e, t.address) ? { ...t.address } : null;
|
|
126
|
-
const r = K(e), n = j({ address: t.address, source: t.source });
|
|
127
|
-
for (const [o, u] of e.pages.entries())
|
|
128
|
-
if (!(t.reportScope !== void 0 && u.meta?.reportScope !== t.reportScope)) {
|
|
129
|
-
for (const [l, a] of u.components.entries())
|
|
130
|
-
if (a.grid)
|
|
131
|
-
for (const s of D(a.grid, a.widthMm, a.heightMm).cells) {
|
|
132
|
-
const i = { pageIndex: o, componentIndex: l, rowIndex: s.ri, columnIndex: s.ci }, d = r(i);
|
|
133
|
-
if (d?.source && j(d) === n) return i;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
export {
|
|
139
|
-
c as R,
|
|
140
|
-
_ as a,
|
|
141
|
-
B as c,
|
|
142
|
-
C as m,
|
|
143
|
-
N as r,
|
|
144
|
-
R as v
|
|
145
|
-
};
|