@agile-team/mach-report 2.22.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 +8 -6
- 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-BHSKVL8k.js → ReportParamPanel-GI43aGa0.js} +146 -127
- package/dist/ReportPreview-BoGBGyRr.cjs +6 -0
- package/dist/ReportPreview-QLONCyci.js +6257 -0
- 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/analytics.cjs +1 -1
- package/dist/analytics.js +26 -26
- package/dist/artifact-integrity.json +106 -104
- package/dist/assets-D2gHc4Mz.cjs +1 -0
- package/dist/assets-T_gDeFaz.js +132 -0
- package/dist/auto-BB99S802.js +257 -0
- package/dist/auto-BrPWo7Xm.cjs +1 -0
- package/dist/capabilities-DiBj4Qgl.cjs +1 -0
- package/dist/capabilities-pg7j7VLT.js +106 -0
- package/dist/charts-Cjw5AYkg.cjs +1 -0
- package/dist/{charts-Dlv8j2AG.js → charts-CxJZ0XaY.js} +1 -1
- package/dist/computed-DK6BruFz.cjs +1 -0
- package/dist/{computed-C8NRZQss.js → computed-f3pOqWLX.js} +381 -301
- package/dist/data-bar-CeZuFmYl.cjs +1 -0
- package/dist/{data-bar-8baGYEZ9.js → data-bar-IkI6VvMQ.js} +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 +105 -45
- package/dist/designer.d.ts +105 -45
- package/dist/designer.js +4 -4
- package/dist/dom-ChE5D-L-.cjs +1 -0
- package/dist/dom-JWrchIre.js +452 -0
- package/dist/dom-cell-address-DLD1mkTB.cjs +1 -0
- package/dist/dom-cell-address-Fn-8nk7D.js +11 -0
- package/dist/{encoding-ncQAvyOv.cjs → encoding-7lquyj0w.cjs} +1 -1
- package/dist/{encoding-DbnhbwI8.js → encoding-CEd-dq9A.js} +2 -2
- package/dist/{font-loader-Di0lQKFf.js → font-loader-CNWXomuV.js} +1 -1
- package/dist/{font-loader-BB372_XN.cjs → font-loader-D8pI87fL.cjs} +1 -1
- package/dist/grid-strokes-Be24LGuV.cjs +1 -0
- package/dist/grid-strokes-EoY66L2f.js +53 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +944 -1259
- package/dist/{json-snapshot-DvQbZlD7.js → json-snapshot-BRnzKudk.js} +763 -776
- package/dist/json-snapshot-DNiIbpOr.cjs +2 -0
- package/dist/matrix-B8QWbsGM.cjs +1 -0
- package/dist/matrix-C6e_r_vp.js +302 -0
- package/dist/{pdf-DmlnL5eB.js → pdf-CJToa81Z.js} +20 -20
- package/dist/{pdf-CARdBcuw.cjs → pdf-DpMkW72B.cjs} +42 -42
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.js +2 -2
- package/dist/{plugin-AcAQ2m9X.cjs → plugin-BWTp-X7b.cjs} +1 -1
- package/dist/{plugin-w5Nyt08U.js → plugin-_BkUVc2z.js} +1 -1
- package/dist/{prefill-BXBxx5We.js → prefill-CWGdnqQd.js} +21 -21
- package/dist/prefill-PaAy6wLk.cjs +1 -0
- package/dist/prepared-CJy_qk7d.js +94 -0
- package/dist/prepared-D0yCSxSO.cjs +1 -0
- package/dist/progress-ByiOxUD3.js +250 -0
- package/dist/progress-WomPRP3B.cjs +1 -0
- package/dist/{protocol-fjaeKkjf.js → protocol-BG16rz6D.js} +3 -3
- package/dist/{protocol-C9ZaylID.cjs → protocol-wzhl1Fim.cjs} +1 -1
- package/dist/record-bindings-DatJZv_e.js +200 -0
- package/dist/record-bindings-MBxbeBsi.cjs +1 -0
- package/dist/{region-binding-workflow-aA8nxmkZ.js → region-binding-workflow-DjrXuR1q.js} +2 -2
- package/dist/{region-binding-workflow-BiJQ7NU6.cjs → region-binding-workflow-l7NGfagJ.cjs} +2 -2
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/rich-text-layout-Ciwa6D2o.js +52 -0
- package/dist/rich-text-layout-DK7A_a5r.cjs +3 -0
- package/dist/runtime-DYMOS_gz.cjs +1 -0
- package/dist/{runtime-BTtpjF3D.js → runtime-PiCax9zQ.js} +52 -51
- package/dist/sbom.cdx.json +1 -1
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +1676 -1619
- package/dist/server.cjs +1 -1
- package/dist/server.js +24 -24
- package/dist/style.css +1 -1
- package/dist/{template-catalog-JSxSqk5y.js → template-catalog-CRuZL3pi.js} +17 -17
- package/dist/template-catalog-DtrtT1FY.cjs +1 -0
- package/dist/{template-fragments-D2JFj7Du.js → template-fragments-CPpGpQoz.js} +12 -12
- package/dist/template-fragments-GVjpew_q.cjs +1 -0
- package/dist/template-registry-DI59PXVK.cjs +1 -0
- package/dist/{template-registry-Do1Uav2Z.js → template-registry-O0hNIOfB.js} +17 -17
- package/dist/{template-serialization-CU4n_Miu.js → template-serialization-CWmHq7lX.js} +1 -1
- package/dist/{template-serialization-CgqBo6s-.cjs → template-serialization-CqQY4zDg.cjs} +1 -1
- package/dist/textwrap-D4ZksyMK.js +111 -0
- package/dist/textwrap-DEHqAjKZ.cjs +4 -0
- package/dist/vue/async.d.cts +31 -0
- package/dist/vue/async.d.ts +31 -0
- package/dist/vue/index.d.cts +32 -1
- package/dist/vue/index.d.ts +32 -1
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +52 -47
- package/dist/{workbook-session-BvEBRRMz.cjs → workbook-session-C6-SrnCT.cjs} +4 -4
- package/dist/{workbook-session-f0wVlzst.js → workbook-session-C9ZmCBwY.js} +15 -16
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +4 -4
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.js +184 -179
- package/package.json +1 -1
- package/dist/ExcelBindingWizard-CW79I6Gl.cjs +0 -1
- package/dist/ExcelBindingWizard-CZyppD7I.js +0 -1485
- package/dist/ParamEditor-CiYCJI0b.cjs +0 -1
- package/dist/ParamEditor-DQit-Gdf.js +0 -732
- package/dist/ReportBatchPanel-DKTpV7MU.js +0 -350
- package/dist/ReportBatchPanel-Db6TAfG5.cjs +0 -1
- package/dist/ReportLabelStudio-B0i9ohQj.cjs +0 -1
- package/dist/ReportLabelStudio-BYnRqmje.js +0 -780
- package/dist/ReportParamPanel-lngONOEz.cjs +0 -1
- package/dist/ReportPreview-BDgKssYR.js +0 -5887
- package/dist/ReportPreview-Dw-4icG6.cjs +0 -6
- package/dist/ReportTemplateLibrary-BZuKn0YK.js +0 -311
- package/dist/ReportTemplateLibrary-DEXH07ND.cjs +0 -1
- package/dist/RuleEditor-CIQn547x.js +0 -2341
- package/dist/RuleEditor-zSUmPjKa.cjs +0 -1
- package/dist/TemplateOutlinePanel-B5SfGYVN.cjs +0 -1
- package/dist/TemplateOutlinePanel-D0PgOSQE.js +0 -96
- package/dist/TemplateReusePanel-BKlAEF8-.js +0 -388
- package/dist/TemplateReusePanel-DAy_Hwqz.cjs +0 -1
- package/dist/TemplateReviewPanel-CowmHaQQ.cjs +0 -1
- package/dist/TemplateReviewPanel-div-EH_m.js +0 -592
- package/dist/assets-CxHunY_9.js +0 -232
- package/dist/assets-vbjAGgk8.cjs +0 -1
- package/dist/auto-DcUHlKob.cjs +0 -1
- package/dist/auto-moShblh1.js +0 -240
- package/dist/charts-aCtoswXq.cjs +0 -1
- package/dist/component-tree-1_QCiQJX.js +0 -67
- package/dist/component-tree-BjZIp6w9.cjs +0 -1
- package/dist/computed-4TnxzgIh.cjs +0 -1
- package/dist/data-bar-YltqGTaC.cjs +0 -1
- package/dist/designer-B7jJeAeG.js +0 -6914
- package/dist/designer-BWQVpJeN.cjs +0 -2
- package/dist/grid-geometry-D3SJgWFv.js +0 -136
- package/dist/grid-geometry-D8ReblRV.cjs +0 -1
- package/dist/json-snapshot-nyV63AbB.cjs +0 -2
- package/dist/matrix-0hywp0-F.cjs +0 -1
- package/dist/matrix-Dy-tyY7E.js +0 -381
- package/dist/prefill-DUvejVt1.cjs +0 -1
- package/dist/prepared-YXy-fVLw.cjs +0 -1
- package/dist/prepared-rXCKqdHY.js +0 -88
- package/dist/progress-B0ctFpKf.cjs +0 -1
- package/dist/progress-Hc2vxoCs.js +0 -52
- package/dist/record-bindings-Ct1HkPrc.cjs +0 -1
- package/dist/record-bindings-VZGS-Qd8.js +0 -155
- package/dist/rich-text-layout-K48VHUoW.cjs +0 -3
- package/dist/rich-text-layout-wxBhnAS7.js +0 -102
- package/dist/runtime-Dq0LUsyS.cjs +0 -1
- package/dist/template-catalog-CLAM4w7H.cjs +0 -1
- package/dist/template-fragments-Ca25Jt7e.cjs +0 -1
- package/dist/template-outline-CDWXptuj.js +0 -88
- package/dist/template-outline-K4jGhATu.cjs +0 -1
- package/dist/template-registry-CWnuGqyP.cjs +0 -1
- package/dist/textwrap-CkGjRFT3.js +0 -110
- package/dist/textwrap-OTOUMr4f.cjs +0 -4
|
@@ -1,592 +0,0 @@
|
|
|
1
|
-
import { shallowRef as q, ref as C, computed as P, watch as H, onBeforeUnmount as re, toRaw as ne, defineComponent as se, openBlock as r, createElementBlock as n, toDisplayString as t, createCommentVNode as v, Fragment as N, createElementVNode as l, createVNode as X, unref as s, createTextVNode as R, withDirectives as U, isRef as L, vModelSelect as oe, renderList as B, vModelText as Y, vModelCheckbox as Z, normalizeClass as K, createBlock as ue } from "vue";
|
|
2
|
-
import { reviewReportTemplateAsync as ie, paginateTemplate as ce } from "@agile-team/mach-report";
|
|
3
|
-
import { T as Q } from "./designer-B7jJeAeG.js";
|
|
4
|
-
import { ReportPreview as ee } from "@agile-team/mach-report/vue";
|
|
5
|
-
import { b as de } from "./template-serialization-CU4n_Miu.js";
|
|
6
|
-
import { _ as le } from "./_plugin-vue_export-helper-8SL1F89S.js";
|
|
7
|
-
function ve(o, d = () => o.fixtures) {
|
|
8
|
-
const i = q(), u = q([]), e = C("20"), c = C(!1), g = C(!1), m = C(!1), _ = C(""), h = q(), w = C(!1), M = q(), b = P(
|
|
9
|
-
() => new Set(
|
|
10
|
-
o.document.template.pages.flatMap((f) => f.components).flatMap(
|
|
11
|
-
(f) => f.kind === "list" && f.tree ? [f.dataset] : []
|
|
12
|
-
)
|
|
13
|
-
)
|
|
14
|
-
), A = P(() => b.value.size > 0);
|
|
15
|
-
let k = 0, p;
|
|
16
|
-
function j() {
|
|
17
|
-
k++, p?.abort(), p = void 0, g.value = !1, w.value = !1, h.value = void 0, m.value = !!i.value, _.value = "";
|
|
18
|
-
}
|
|
19
|
-
for (const f of [() => o.document, () => o.previous])
|
|
20
|
-
H(
|
|
21
|
-
f,
|
|
22
|
-
() => {
|
|
23
|
-
c.value = !1, j();
|
|
24
|
-
},
|
|
25
|
-
{ deep: !0, flush: "sync" }
|
|
26
|
-
);
|
|
27
|
-
for (const f of [
|
|
28
|
-
() => o.datasets,
|
|
29
|
-
() => o.dataSchemas,
|
|
30
|
-
() => o.formats,
|
|
31
|
-
d
|
|
32
|
-
])
|
|
33
|
-
H(f, j, { deep: !0, flush: "sync" });
|
|
34
|
-
H([e, c], j, { flush: "sync" }), re(() => {
|
|
35
|
-
k++, p?.abort();
|
|
36
|
-
});
|
|
37
|
-
const z = P(
|
|
38
|
-
() => i.value?.issues.filter((f) => f.severity === "error").length ?? 0
|
|
39
|
-
);
|
|
40
|
-
function F() {
|
|
41
|
-
p?.abort(), p = new AbortController();
|
|
42
|
-
const f = ++k, $ = p;
|
|
43
|
-
g.value = !0, _.value = "", w.value = !1, h.value = void 0, J(f, $);
|
|
44
|
-
}
|
|
45
|
-
async function J(f, $) {
|
|
46
|
-
try {
|
|
47
|
-
const x = Number(e.value), G = Object.fromEntries(
|
|
48
|
-
Object.entries(o.datasets ?? {}).map(([O, S]) => [
|
|
49
|
-
O,
|
|
50
|
-
x < 0 || b.value.has(O) ? S : S.slice(0, x)
|
|
51
|
-
])
|
|
52
|
-
), V = d(), T = V?.length ? [...V] : x === 0 ? [] : [{ name: e.value, datasets: G }], D = await ie(o.document, {
|
|
53
|
-
previous: o.previous,
|
|
54
|
-
dataSchemas: o.dataSchemas,
|
|
55
|
-
formats: o.formats,
|
|
56
|
-
allowBreakingChanges: c.value,
|
|
57
|
-
...!V?.length && A.value && x > 0 ? { maxSampleRows: x } : {},
|
|
58
|
-
fixtures: T,
|
|
59
|
-
signal: $.signal,
|
|
60
|
-
onProgress: (O) => {
|
|
61
|
-
f === k && (h.value = O);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
if (f !== k) return;
|
|
65
|
-
i.value = D, m.value = !1, u.value = T, M.value = {
|
|
66
|
-
requested: e.value,
|
|
67
|
-
rows: D.samples.reduce((O, S) => O + S.rows, 0),
|
|
68
|
-
datasets: new Set(
|
|
69
|
-
T.flatMap((O) => Object.keys(O.datasets))
|
|
70
|
-
).size,
|
|
71
|
-
formats: [...o.formats ?? []]
|
|
72
|
-
};
|
|
73
|
-
} catch (x) {
|
|
74
|
-
f === k && !$.signal.aborted && (_.value = x instanceof Error ? x.message : String(x));
|
|
75
|
-
} finally {
|
|
76
|
-
f === k && (g.value = !1, p = void 0);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function W() {
|
|
80
|
-
k++, p?.abort(), p = void 0, g.value = !1, w.value = !0, h.value = void 0;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
report: i,
|
|
84
|
-
sampleSize: e,
|
|
85
|
-
acknowledged: c,
|
|
86
|
-
running: g,
|
|
87
|
-
stale: m,
|
|
88
|
-
failure: _,
|
|
89
|
-
checkedScope: M,
|
|
90
|
-
checkedFixtures: u,
|
|
91
|
-
hasTree: A,
|
|
92
|
-
errors: z,
|
|
93
|
-
run: F,
|
|
94
|
-
cancel: W,
|
|
95
|
-
progress: h,
|
|
96
|
-
cancelled: w
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function me(o) {
|
|
100
|
-
const d = Object.getPrototypeOf(o);
|
|
101
|
-
if (d !== Object.prototype && d !== Array.prototype && d !== null)
|
|
102
|
-
throw new Error("Sample data must contain plain JSON objects");
|
|
103
|
-
if (Object.getOwnPropertySymbols(o).length)
|
|
104
|
-
throw new Error("Sample data must not contain symbols");
|
|
105
|
-
if (Array.isArray(o) && Object.keys(o).length !== o.length)
|
|
106
|
-
throw new Error("Sample arrays must not contain holes or extra properties");
|
|
107
|
-
}
|
|
108
|
-
function pe(o) {
|
|
109
|
-
let d = 0, i = 0;
|
|
110
|
-
const u = /* @__PURE__ */ new Set();
|
|
111
|
-
function e(c, g) {
|
|
112
|
-
if (++d > 1e5 || g > 32)
|
|
113
|
-
throw new RangeError("Sample data exceeds the capture budget");
|
|
114
|
-
if (typeof c == "string") {
|
|
115
|
-
if (i += c.length, i > 2e6)
|
|
116
|
-
throw new RangeError("Sample text exceeds the capture budget");
|
|
117
|
-
return c;
|
|
118
|
-
}
|
|
119
|
-
if (c === null || typeof c == "boolean" || typeof c == "number" && Number.isFinite(c)) return c;
|
|
120
|
-
if (!c || typeof c != "object")
|
|
121
|
-
throw new Error("Sample data must contain plain JSON values");
|
|
122
|
-
const m = ne(c);
|
|
123
|
-
if (u.has(m))
|
|
124
|
-
throw new Error("Sample data must not contain cycles");
|
|
125
|
-
me(m), u.add(m);
|
|
126
|
-
const _ = Array.isArray(m) ? [] : /* @__PURE__ */ Object.create(null);
|
|
127
|
-
for (const h of Object.keys(m)) {
|
|
128
|
-
const w = Object.getOwnPropertyDescriptor(m, h);
|
|
129
|
-
if (w.get || w.set || ["__proto__", "constructor", "prototype"].includes(h))
|
|
130
|
-
throw new Error("Sample data must not contain getters or unsafe keys");
|
|
131
|
-
_[h] = e(
|
|
132
|
-
w.value,
|
|
133
|
-
g + 1
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
return u.delete(m), _;
|
|
137
|
-
}
|
|
138
|
-
return e(o, 0);
|
|
139
|
-
}
|
|
140
|
-
function fe(o, d = () => Q) {
|
|
141
|
-
const i = C([]), u = C(""), e = C(!1), c = C(""), g = C({}), m = P(() => [...o.fixtures ?? [], ...i.value]);
|
|
142
|
-
function _() {
|
|
143
|
-
c.value = "";
|
|
144
|
-
try {
|
|
145
|
-
if (!e.value) throw new Error(d().sampleConsentMissing);
|
|
146
|
-
if (!u.value.trim()) throw new Error(d().sampleNameMissing);
|
|
147
|
-
if (m.value.length >= 20) throw new Error(d().sampleLimit);
|
|
148
|
-
if (m.value.some((M) => M.name === u.value.trim()))
|
|
149
|
-
throw new Error(d().sampleNameDuplicate);
|
|
150
|
-
const w = pe(o.datasets ?? {});
|
|
151
|
-
if (Object.values(w).reduce((M, b) => M + b.length, 0) > 1e3)
|
|
152
|
-
throw new Error(d().sampleRowsLimit);
|
|
153
|
-
i.value.push({
|
|
154
|
-
name: u.value.trim(),
|
|
155
|
-
datasets: w,
|
|
156
|
-
...Object.keys(g.value).length ? { params: { ...g.value } } : {}
|
|
157
|
-
}), u.value = "", e.value = !1;
|
|
158
|
-
} catch (w) {
|
|
159
|
-
c.value = w instanceof Error ? w.message : String(w);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
function h(w) {
|
|
163
|
-
i.value.splice(w, 1);
|
|
164
|
-
}
|
|
165
|
-
return { fixtures: i, name: u, consent: e, failure: c, params: g, suite: m, capture: _, remove: h };
|
|
166
|
-
}
|
|
167
|
-
function te(o, d) {
|
|
168
|
-
const i = ce(o.template, d.datasets, {
|
|
169
|
-
maxPages: 100,
|
|
170
|
-
maxCells: 25e4
|
|
171
|
-
}), u = [
|
|
172
|
-
...new Set(
|
|
173
|
-
de(o.template).flatMap(
|
|
174
|
-
(e) => e.fields.map((c) => `${e.dataset}.${c.field}`)
|
|
175
|
-
)
|
|
176
|
-
)
|
|
177
|
-
];
|
|
178
|
-
return {
|
|
179
|
-
pages: i.plan.pages.length,
|
|
180
|
-
dimensions: [
|
|
181
|
-
...new Set(
|
|
182
|
-
i.plan.pages.map(
|
|
183
|
-
(e) => `${e.pageWidthMm} × ${e.pageHeightMm} mm`
|
|
184
|
-
)
|
|
185
|
-
)
|
|
186
|
-
],
|
|
187
|
-
fields: u,
|
|
188
|
-
fetcher: async () => i.plan
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
function he(o, d, i) {
|
|
192
|
-
const u = te(o, d), e = i ? te(i, d) : void 0, c = new Set(e?.fields), g = new Set(u.fields);
|
|
193
|
-
return {
|
|
194
|
-
current: u,
|
|
195
|
-
previous: e,
|
|
196
|
-
addedFields: u.fields.filter((m) => !c.has(m)),
|
|
197
|
-
removedFields: e?.fields.filter((m) => !g.has(m)) ?? []
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
const we = ["aria-label"], ge = {
|
|
201
|
-
key: 0,
|
|
202
|
-
role: "alert"
|
|
203
|
-
}, ye = { class: "mr-fixture-previews" }, be = { key: 0 }, _e = /* @__PURE__ */ se({
|
|
204
|
-
__name: "TemplateFixtureComparison",
|
|
205
|
-
props: {
|
|
206
|
-
document: {},
|
|
207
|
-
previous: {},
|
|
208
|
-
fixture: {},
|
|
209
|
-
messages: {}
|
|
210
|
-
},
|
|
211
|
-
setup(o) {
|
|
212
|
-
const d = o, i = P(() => ({ ...Q, ...d.messages })), u = P(() => {
|
|
213
|
-
try {
|
|
214
|
-
return {
|
|
215
|
-
result: he(
|
|
216
|
-
d.document,
|
|
217
|
-
d.fixture,
|
|
218
|
-
d.previous
|
|
219
|
-
)
|
|
220
|
-
};
|
|
221
|
-
} catch (e) {
|
|
222
|
-
return { error: e instanceof Error ? e.message : String(e) };
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
return (e, c) => (r(), n("section", {
|
|
226
|
-
class: "mr-fixture-comparison",
|
|
227
|
-
"aria-label": i.value.compare
|
|
228
|
-
}, [
|
|
229
|
-
u.value.error ? (r(), n("p", ge, t(u.value.error), 1)) : v("", !0),
|
|
230
|
-
u.value.result ? (r(), n(N, { key: 1 }, [
|
|
231
|
-
l("dl", null, [
|
|
232
|
-
l("dt", null, t(i.value.pages), 1),
|
|
233
|
-
l("dd", null, t(u.value.result.previous?.pages ?? "—") + " → " + t(u.value.result.current.pages), 1),
|
|
234
|
-
l("dt", null, t(i.value.dimensions), 1),
|
|
235
|
-
l("dd", null, t(u.value.result.previous?.dimensions.join(" / ") ?? "—") + " → " + t(u.value.result.current.dimensions.join(" / ")), 1),
|
|
236
|
-
l("dt", null, t(i.value.fieldsAdded), 1),
|
|
237
|
-
l("dd", null, t(u.value.result.addedFields.join("、") || "—"), 1),
|
|
238
|
-
l("dt", null, t(i.value.fieldsRemoved), 1),
|
|
239
|
-
l("dd", null, t(u.value.result.removedFields.join("、") || "—"), 1)
|
|
240
|
-
]),
|
|
241
|
-
l("div", ye, [
|
|
242
|
-
u.value.result.previous ? (r(), n("article", be, [
|
|
243
|
-
l("h4", null, t(i.value.baselinePreview), 1),
|
|
244
|
-
X(s(ee), {
|
|
245
|
-
"report-id": "baseline",
|
|
246
|
-
fetcher: u.value.result.previous.fetcher,
|
|
247
|
-
"show-params": !1,
|
|
248
|
-
"show-export": !1,
|
|
249
|
-
"show-print": !1,
|
|
250
|
-
"show-pdf-window": !1,
|
|
251
|
-
editable: !1,
|
|
252
|
-
"excel-import": !1,
|
|
253
|
-
height: "400px"
|
|
254
|
-
}, null, 8, ["fetcher"])
|
|
255
|
-
])) : v("", !0),
|
|
256
|
-
l("article", null, [
|
|
257
|
-
l("h4", null, t(i.value.draftPreview), 1),
|
|
258
|
-
X(s(ee), {
|
|
259
|
-
"report-id": "draft",
|
|
260
|
-
fetcher: u.value.result.current.fetcher,
|
|
261
|
-
"show-params": !1,
|
|
262
|
-
"show-export": !1,
|
|
263
|
-
"show-print": !1,
|
|
264
|
-
"show-pdf-window": !1,
|
|
265
|
-
editable: !1,
|
|
266
|
-
"excel-import": !1,
|
|
267
|
-
height: "400px"
|
|
268
|
-
}, null, 8, ["fetcher"])
|
|
269
|
-
])
|
|
270
|
-
])
|
|
271
|
-
], 64)) : v("", !0)
|
|
272
|
-
], 8, we));
|
|
273
|
-
}
|
|
274
|
-
}), ke = /* @__PURE__ */ le(_e, [["__scopeId", "data-v-211ee4bf"]]), xe = ["aria-label", "aria-busy"], Se = {
|
|
275
|
-
key: 0,
|
|
276
|
-
role: "status"
|
|
277
|
-
}, Ce = ["disabled"], Ee = {
|
|
278
|
-
key: 0,
|
|
279
|
-
class: "mr-review-stale",
|
|
280
|
-
role: "status"
|
|
281
|
-
}, je = { class: "mr-review-controls" }, Fe = ["aria-label", "disabled"], Oe = { value: "0" }, Te = { value: "20" }, Re = { value: "100" }, Ne = { value: "-1" }, Me = {
|
|
282
|
-
key: 0,
|
|
283
|
-
class: "mr-review-note"
|
|
284
|
-
}, Pe = { class: "mr-review-fixtures" }, $e = { class: "mr-review-note" }, Ve = { key: 0 }, Ae = ["disabled", "onClick"], De = { class: "mr-review-fixture-form" }, Ue = ["placeholder", "disabled"], Be = { key: 0 }, ze = ["onUpdate:modelValue", "placeholder", "disabled"], Ie = { class: "mr-review-consent" }, qe = ["disabled"], Le = ["disabled"], He = {
|
|
285
|
-
key: 1,
|
|
286
|
-
role: "alert",
|
|
287
|
-
class: "is-error"
|
|
288
|
-
}, Je = {
|
|
289
|
-
key: 1,
|
|
290
|
-
class: "mr-review-note"
|
|
291
|
-
}, We = {
|
|
292
|
-
key: 2,
|
|
293
|
-
class: "is-error",
|
|
294
|
-
role: "alert"
|
|
295
|
-
}, Ge = {
|
|
296
|
-
key: 3,
|
|
297
|
-
class: "mr-review-stale",
|
|
298
|
-
role: "status"
|
|
299
|
-
}, Ke = {
|
|
300
|
-
key: 4,
|
|
301
|
-
class: "mr-review-note"
|
|
302
|
-
}, Qe = {
|
|
303
|
-
key: 0,
|
|
304
|
-
class: "mr-review-summary",
|
|
305
|
-
role: "status"
|
|
306
|
-
}, Xe = {
|
|
307
|
-
key: 0,
|
|
308
|
-
class: "mr-review-note"
|
|
309
|
-
}, Ye = {
|
|
310
|
-
key: 1,
|
|
311
|
-
class: "mr-review-note"
|
|
312
|
-
}, Ze = {
|
|
313
|
-
key: 2,
|
|
314
|
-
class: "mr-review-list"
|
|
315
|
-
}, et = { key: 0 }, tt = ["onClick"], st = {
|
|
316
|
-
key: 3,
|
|
317
|
-
class: "mr-review-note"
|
|
318
|
-
}, lt = {
|
|
319
|
-
key: 4,
|
|
320
|
-
class: "mr-review-ack"
|
|
321
|
-
}, at = {
|
|
322
|
-
key: 0,
|
|
323
|
-
class: "mr-review-note"
|
|
324
|
-
}, rt = {
|
|
325
|
-
key: 1,
|
|
326
|
-
class: "mr-review-list"
|
|
327
|
-
}, nt = ["onClick"], ot = {
|
|
328
|
-
key: 0,
|
|
329
|
-
class: "mr-review-scope"
|
|
330
|
-
}, ut = { key: 0 }, it = ["disabled", "onClick"], ct = { class: "mr-review-note" }, dt = /* @__PURE__ */ se({
|
|
331
|
-
__name: "TemplateReviewPanel",
|
|
332
|
-
props: {
|
|
333
|
-
document: {},
|
|
334
|
-
previous: {},
|
|
335
|
-
datasets: {},
|
|
336
|
-
dataSchemas: {},
|
|
337
|
-
formats: {},
|
|
338
|
-
fixtures: {},
|
|
339
|
-
messages: {}
|
|
340
|
-
},
|
|
341
|
-
emits: ["locate"],
|
|
342
|
-
setup(o, { emit: d }) {
|
|
343
|
-
const i = o, u = d, e = P(() => ({ ...Q, ...i.messages })), {
|
|
344
|
-
name: c,
|
|
345
|
-
consent: g,
|
|
346
|
-
failure: m,
|
|
347
|
-
params: _,
|
|
348
|
-
suite: h,
|
|
349
|
-
capture: w,
|
|
350
|
-
remove: M
|
|
351
|
-
} = fe(i, () => e.value), {
|
|
352
|
-
report: b,
|
|
353
|
-
sampleSize: A,
|
|
354
|
-
acknowledged: k,
|
|
355
|
-
running: p,
|
|
356
|
-
stale: j,
|
|
357
|
-
failure: z,
|
|
358
|
-
checkedScope: F,
|
|
359
|
-
checkedFixtures: J,
|
|
360
|
-
hasTree: W,
|
|
361
|
-
errors: f,
|
|
362
|
-
run: $,
|
|
363
|
-
cancel: x,
|
|
364
|
-
cancelled: G,
|
|
365
|
-
progress: V
|
|
366
|
-
} = ve(i, () => h.value), T = C(), D = P(
|
|
367
|
-
() => J.value.find((S) => S.name === T.value)
|
|
368
|
-
);
|
|
369
|
-
H(j, (S) => {
|
|
370
|
-
S && (T.value = void 0);
|
|
371
|
-
});
|
|
372
|
-
function O(S) {
|
|
373
|
-
const y = /\.pages\[(\d+)\]\.components\[(\d+)\]/.exec(S);
|
|
374
|
-
u("locate", {
|
|
375
|
-
path: S,
|
|
376
|
-
...y ? { pageIndex: Number(y[1]), componentIndex: Number(y[2]) } : {}
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
return (S, y) => (r(), n("section", {
|
|
380
|
-
class: "mr-template-review",
|
|
381
|
-
"aria-label": e.value.title,
|
|
382
|
-
"aria-busy": s(p)
|
|
383
|
-
}, [
|
|
384
|
-
l("header", null, [
|
|
385
|
-
l("strong", null, t(e.value.title), 1),
|
|
386
|
-
s(p) && s(V) ? (r(), n("span", Se, t(s(V).completed) + " / " + t(s(V).total) + " " + t(e.value.progress), 1)) : v("", !0),
|
|
387
|
-
s(p) ? (r(), n("button", {
|
|
388
|
-
key: 1,
|
|
389
|
-
type: "button",
|
|
390
|
-
onClick: y[0] || (y[0] = //@ts-ignore
|
|
391
|
-
(...a) => s(x) && s(x)(...a))
|
|
392
|
-
}, t(e.value.cancel), 1)) : v("", !0),
|
|
393
|
-
l("button", {
|
|
394
|
-
type: "button",
|
|
395
|
-
disabled: s(p),
|
|
396
|
-
onClick: y[1] || (y[1] = //@ts-ignore
|
|
397
|
-
(...a) => s($) && s($)(...a))
|
|
398
|
-
}, t(s(p) ? e.value.running : e.value.run), 9, Ce)
|
|
399
|
-
]),
|
|
400
|
-
s(G) ? (r(), n("p", Ee, t(e.value.cancelled), 1)) : v("", !0),
|
|
401
|
-
l("div", je, [
|
|
402
|
-
l("label", null, [
|
|
403
|
-
R(t(e.value.samples), 1),
|
|
404
|
-
U(l("select", {
|
|
405
|
-
"onUpdate:modelValue": y[2] || (y[2] = (a) => L(A) ? A.value = a : null),
|
|
406
|
-
"aria-label": e.value.samples,
|
|
407
|
-
disabled: s(p) || !!s(h).length
|
|
408
|
-
}, [
|
|
409
|
-
l("option", Oe, t(e.value.none), 1),
|
|
410
|
-
l("option", Te, t(e.value.first20), 1),
|
|
411
|
-
l("option", Re, t(e.value.first100), 1),
|
|
412
|
-
l("option", Ne, t(e.value.all), 1)
|
|
413
|
-
], 8, Fe), [
|
|
414
|
-
[oe, s(A)]
|
|
415
|
-
])
|
|
416
|
-
]),
|
|
417
|
-
s(h).length ? (r(), n("span", Me, t(e.value.namedFixtures) + " · " + t(s(h).length), 1)) : v("", !0)
|
|
418
|
-
]),
|
|
419
|
-
l("details", Pe, [
|
|
420
|
-
l("summary", null, [
|
|
421
|
-
R(t(e.value.namedFixtures) + " ", 1),
|
|
422
|
-
l("small", null, t(s(h).length) + " / 20", 1)
|
|
423
|
-
]),
|
|
424
|
-
l("p", $e, t(e.value.fixtureHint), 1),
|
|
425
|
-
s(h).length ? (r(), n("ul", Ve, [
|
|
426
|
-
(r(!0), n(N, null, B(s(h), (a, E) => (r(), n("li", {
|
|
427
|
-
key: a.name
|
|
428
|
-
}, [
|
|
429
|
-
l("strong", null, t(a.name), 1),
|
|
430
|
-
l("span", null, t(Object.values(a.datasets).reduce(
|
|
431
|
-
(I, ae) => I + ae.length,
|
|
432
|
-
0
|
|
433
|
-
)) + " " + t(e.value.rows), 1),
|
|
434
|
-
E >= (o.fixtures?.length ?? 0) ? (r(), n("button", {
|
|
435
|
-
key: 0,
|
|
436
|
-
type: "button",
|
|
437
|
-
disabled: s(p),
|
|
438
|
-
onClick: (I) => s(M)(E - (o.fixtures?.length ?? 0))
|
|
439
|
-
}, t(e.value.remove), 9, Ae)) : v("", !0)
|
|
440
|
-
]))), 128))
|
|
441
|
-
])) : v("", !0),
|
|
442
|
-
l("div", De, [
|
|
443
|
-
l("label", null, [
|
|
444
|
-
R(t(e.value.fixtureName), 1),
|
|
445
|
-
U(l("input", {
|
|
446
|
-
"onUpdate:modelValue": y[3] || (y[3] = (a) => L(c) ? c.value = a : null),
|
|
447
|
-
placeholder: e.value.fixturePlaceholder,
|
|
448
|
-
disabled: s(p)
|
|
449
|
-
}, null, 8, Ue), [
|
|
450
|
-
[Y, s(c)]
|
|
451
|
-
])
|
|
452
|
-
]),
|
|
453
|
-
o.document.template.params?.length ? (r(), n("details", Be, [
|
|
454
|
-
l("summary", null, t(e.value.parameters), 1),
|
|
455
|
-
(r(!0), n(N, null, B(o.document.template.params, (a) => (r(), n("label", {
|
|
456
|
-
key: a.field
|
|
457
|
-
}, [
|
|
458
|
-
R(t(a.label ?? a.field), 1),
|
|
459
|
-
U(l("input", {
|
|
460
|
-
"onUpdate:modelValue": (E) => s(_)[a.field] = E,
|
|
461
|
-
placeholder: a.defaultValue,
|
|
462
|
-
disabled: s(p)
|
|
463
|
-
}, null, 8, ze), [
|
|
464
|
-
[Y, s(_)[a.field]]
|
|
465
|
-
])
|
|
466
|
-
]))), 128))
|
|
467
|
-
])) : v("", !0),
|
|
468
|
-
l("label", Ie, [
|
|
469
|
-
U(l("input", {
|
|
470
|
-
"onUpdate:modelValue": y[4] || (y[4] = (a) => L(g) ? g.value = a : null),
|
|
471
|
-
type: "checkbox",
|
|
472
|
-
disabled: s(p)
|
|
473
|
-
}, null, 8, qe), [
|
|
474
|
-
[Z, s(g)]
|
|
475
|
-
]),
|
|
476
|
-
R(t(e.value.deidentified), 1)
|
|
477
|
-
]),
|
|
478
|
-
l("button", {
|
|
479
|
-
type: "button",
|
|
480
|
-
disabled: s(p) || !s(g) || !s(c).trim() || s(h).length >= 20,
|
|
481
|
-
onClick: y[5] || (y[5] = //@ts-ignore
|
|
482
|
-
(...a) => s(w) && s(w)(...a))
|
|
483
|
-
}, t(e.value.capture), 9, Le),
|
|
484
|
-
s(m) ? (r(), n("p", He, t(s(m)), 1)) : v("", !0)
|
|
485
|
-
])
|
|
486
|
-
]),
|
|
487
|
-
s(W) ? (r(), n("p", Je, t(e.value.treeHint), 1)) : v("", !0),
|
|
488
|
-
s(z) ? (r(), n("p", We, t(s(z)), 1)) : v("", !0),
|
|
489
|
-
s(j) ? (r(), n("p", Ge, t(e.value.stale), 1)) : v("", !0),
|
|
490
|
-
s(b) ? (r(), n(N, { key: 5 }, [
|
|
491
|
-
s(j) ? v("", !0) : (r(), n("div", Qe, [
|
|
492
|
-
l("span", {
|
|
493
|
-
class: K({ "is-error": s(f) })
|
|
494
|
-
}, t(s(f)) + " " + t(e.value.errors), 3),
|
|
495
|
-
l("span", null, t(s(b).issues.length - s(f)) + " " + t(e.value.warnings), 1)
|
|
496
|
-
])),
|
|
497
|
-
l("section", null, [
|
|
498
|
-
l("h3", null, [
|
|
499
|
-
R(t(e.value.changes) + " ", 1),
|
|
500
|
-
l("small", null, t(s(b).changes?.totalChanges ?? 0), 1)
|
|
501
|
-
]),
|
|
502
|
-
o.previous ? s(b).changes?.totalChanges ? (r(), n("ol", Ze, [
|
|
503
|
-
(r(!0), n(N, null, B(s(b).changes?.changes, (a, E) => (r(), n("li", { key: E }, [
|
|
504
|
-
l("div", null, [
|
|
505
|
-
l("span", null, t(e.value.categories[a.category]) + " · " + t(e.value.kinds[a.kind]), 1),
|
|
506
|
-
a.breaking ? (r(), n("b", et, t(e.value.breaking), 1)) : v("", !0),
|
|
507
|
-
l("button", {
|
|
508
|
-
type: "button",
|
|
509
|
-
onClick: (I) => O(a.path)
|
|
510
|
-
}, t(e.value.locate), 9, tt)
|
|
511
|
-
]),
|
|
512
|
-
l("code", null, t(a.path), 1),
|
|
513
|
-
l("dl", null, [
|
|
514
|
-
a.before !== void 0 ? (r(), n(N, { key: 0 }, [
|
|
515
|
-
l("dt", null, t(e.value.before), 1),
|
|
516
|
-
l("dd", null, t(a.before), 1)
|
|
517
|
-
], 64)) : v("", !0),
|
|
518
|
-
a.after !== void 0 ? (r(), n(N, { key: 1 }, [
|
|
519
|
-
l("dt", null, t(e.value.after), 1),
|
|
520
|
-
l("dd", null, t(a.after), 1)
|
|
521
|
-
], 64)) : v("", !0)
|
|
522
|
-
])
|
|
523
|
-
]))), 128))
|
|
524
|
-
])) : (r(), n("p", Ye, t(e.value.noChanges), 1)) : (r(), n("p", Xe, t(e.value.baseline), 1)),
|
|
525
|
-
s(b).changes?.truncated ? (r(), n("p", st, t(e.value.truncated), 1)) : v("", !0),
|
|
526
|
-
s(b).changes?.breakingChanges ? (r(), n("label", lt, [
|
|
527
|
-
U(l("input", {
|
|
528
|
-
"onUpdate:modelValue": y[6] || (y[6] = (a) => L(k) ? k.value = a : null),
|
|
529
|
-
type: "checkbox"
|
|
530
|
-
}, null, 512), [
|
|
531
|
-
[Z, s(k)]
|
|
532
|
-
]),
|
|
533
|
-
R(t(e.value.acknowledge), 1)
|
|
534
|
-
])) : v("", !0)
|
|
535
|
-
]),
|
|
536
|
-
l("section", null, [
|
|
537
|
-
l("h3", null, t(e.value.issues), 1),
|
|
538
|
-
s(b).issues.length ? (r(), n("ol", rt, [
|
|
539
|
-
(r(!0), n(N, null, B(s(b).issues, (a, E) => (r(), n("li", { key: E }, [
|
|
540
|
-
l("div", null, [
|
|
541
|
-
l("span", {
|
|
542
|
-
class: K({ "is-error": a.severity === "error" })
|
|
543
|
-
}, t(a.severity === "error" ? e.value.errors : e.value.warnings), 3),
|
|
544
|
-
l("button", {
|
|
545
|
-
type: "button",
|
|
546
|
-
onClick: (I) => u("locate", a)
|
|
547
|
-
}, t(e.value.locate), 9, nt)
|
|
548
|
-
]),
|
|
549
|
-
l("p", null, t(a.message), 1),
|
|
550
|
-
l("code", null, t(a.path), 1)
|
|
551
|
-
]))), 128))
|
|
552
|
-
])) : (r(), n("p", at, t(e.value.noIssues), 1))
|
|
553
|
-
]),
|
|
554
|
-
s(b).samples.length ? (r(), n("section", {
|
|
555
|
-
key: 1,
|
|
556
|
-
class: K({ "is-stale": s(j) })
|
|
557
|
-
}, [
|
|
558
|
-
l("h3", null, t(e.value.results), 1),
|
|
559
|
-
s(F) ? (r(), n("p", ot, [
|
|
560
|
-
R(t(e.value.scope) + " · " + t(s(h).length ? e.value.namedFixtures : s(F).requested === "-1" ? e.value.all : s(F).requested === "0" ? e.value.none : s(F).requested + " " + e.value.rows) + " · " + t(s(F).datasets) + " " + t(e.value.datasets) + " · " + t(s(F).rows) + " " + t(e.value.rows), 1),
|
|
561
|
-
s(F).formats.length ? (r(), n("span", ut, " · " + t(s(F).formats.join(" / ")), 1)) : v("", !0)
|
|
562
|
-
])) : v("", !0),
|
|
563
|
-
(r(!0), n(N, null, B(s(b).samples, (a) => (r(), n("div", {
|
|
564
|
-
key: a.name,
|
|
565
|
-
class: "mr-review-sample"
|
|
566
|
-
}, [
|
|
567
|
-
l("p", null, [
|
|
568
|
-
l("strong", null, t(a.name), 1),
|
|
569
|
-
R(" · " + t(a.rows) + " " + t(e.value.rows) + " · " + t(a.pages) + " " + t(e.value.pages) + " · " + t(s(b).issues.filter((E) => E.fixture === a.name).length) + " " + t(e.value.issues), 1)
|
|
570
|
-
]),
|
|
571
|
-
l("button", {
|
|
572
|
-
type: "button",
|
|
573
|
-
disabled: s(j) || s(p),
|
|
574
|
-
onClick: (E) => T.value = T.value === a.name ? void 0 : a.name
|
|
575
|
-
}, t(T.value === a.name ? e.value.closeCompare : e.value.compare), 9, it)
|
|
576
|
-
]))), 128))
|
|
577
|
-
], 2)) : v("", !0),
|
|
578
|
-
D.value && !s(j) ? (r(), ue(ke, {
|
|
579
|
-
key: 2,
|
|
580
|
-
document: o.document,
|
|
581
|
-
previous: o.previous,
|
|
582
|
-
fixture: D.value,
|
|
583
|
-
messages: o.messages
|
|
584
|
-
}, null, 8, ["document", "previous", "fixture", "messages"])) : v("", !0),
|
|
585
|
-
l("p", ct, t(e.value.checked), 1)
|
|
586
|
-
], 64)) : (r(), n("p", Ke, t(e.value.empty), 1))
|
|
587
|
-
], 8, xe));
|
|
588
|
-
}
|
|
589
|
-
}), gt = /* @__PURE__ */ le(dt, [["__scopeId", "data-v-0a5dda64"]]);
|
|
590
|
-
export {
|
|
591
|
-
gt as default
|
|
592
|
-
};
|