@airalogy/aimd-recorder 1.24.3 → 1.24.5
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/dist/{AimdCodeField-6Qe-i2Fr.js → AimdCodeField-lUbFTqiD.js} +1 -1
- package/dist/{AimdDnaSequenceField-UkWAd5eE.js → AimdDnaSequenceField-CxFtD5Au.js} +2 -2
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-BzzZoCeB.js → AimdEditor.vue_vue_type_style_index_0_lang-B0n0inzY.js} +1 -1
- package/dist/{AimdEntityRefField-DSaP0MiW.js → AimdEntityRefField-DCE79vca.js} +1 -1
- package/dist/{AimdMarkdownField-1QfCkIo7.js → AimdMarkdownField-Du0Fh5sG.js} +4 -4
- package/dist/{AimdMarkdownNoteField-DI9CGLRp.js → AimdMarkdownNoteField-YnyNmBvM.js} +3 -3
- package/dist/AimdRequiredMarker.vue_vue_type_script_setup_true_lang-B5qDiOZn.js +25 -0
- package/dist/aimd-recorder.css +1 -1
- package/dist/{arc-DsbVIrtD.js → arc-B0vwJ3nm.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-BoKfuFBs.js → architectureDiagram-3BPJPVTR-B5niz6cr.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-CVI9ZAHu.js → blockDiagram-GPEHLZMM-Qtk9HFm8.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-DZjOGfIh.js → c4Diagram-AAUBKEIU-DfTlAW2e.js} +2 -2
- package/dist/{channel-ClyYV6L9.js → channel-CTIJccfL.js} +1 -1
- package/dist/{chunk-2J33WTMH-DAiwEd4z.js → chunk-2J33WTMH-9xMy_Pgx.js} +1 -1
- package/dist/{chunk-4BX2VUAB-C86LRjbo.js → chunk-4BX2VUAB-BYosfXC9.js} +1 -1
- package/dist/{chunk-55IACEB6-B240gM_h.js → chunk-55IACEB6-B8fHTImy.js} +1 -1
- package/dist/{chunk-727SXJPM-DLSdClpw.js → chunk-727SXJPM-C83DIicG.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-CrvCTB0u.js → chunk-AQP2D5EJ-C-IOiRzH.js} +3 -3
- package/dist/{chunk-FMBD7UC4-CK8Xlkyf.js → chunk-FMBD7UC4-BtkEX_DM.js} +1 -1
- package/dist/{chunk-ND2GUHAM-BiTVkaJ4.js → chunk-ND2GUHAM-DIB3ib7j.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DfLR8ET3.js → chunk-QZHKN3VN-BRsoqg2B.js} +1 -1
- package/dist/{classDiagram-4FO5ZUOK-CdGgcwcI.js → classDiagram-4FO5ZUOK-D39GKFwR.js} +2 -2
- package/dist/{classDiagram-v2-Q7XG4LA2-CdGgcwcI.js → classDiagram-v2-Q7XG4LA2-D39GKFwR.js} +2 -2
- package/dist/components.js +570 -569
- package/dist/composables.js +2 -2
- package/dist/{cose-bilkent-S5V4N54A-DNovPAAV.js → cose-bilkent-S5V4N54A-CyRaJD1S.js} +1 -1
- package/dist/{dagre-BM42HDAG-B7Y59pTv.js → dagre-BM42HDAG-K85xJEFU.js} +3 -3
- package/dist/{diagram-2AECGRRQ-DedulIP4.js → diagram-2AECGRRQ-DET7fuM5.js} +2 -2
- package/dist/{diagram-5GNKFQAL-CyLxoNz3.js → diagram-5GNKFQAL-Dlba-FRw.js} +3 -3
- package/dist/{diagram-KO2AKTUF-C-cOuKaw.js → diagram-KO2AKTUF-J4PMcx3F.js} +2 -2
- package/dist/{diagram-LMA3HP47-Bkrl6O9n.js → diagram-LMA3HP47-ldR5Az83.js} +2 -2
- package/dist/{diagram-OG6HWLK6-BFgGWMrC.js → diagram-OG6HWLK6-UM1_l5na.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35-CMkLSr99.js → erDiagram-TEJ5UH35-eGmNSbi1.js} +4 -4
- package/dist/{flowDiagram-I6XJVG4X-aBHYqu-v.js → flowDiagram-I6XJVG4X-rHTJn3LZ.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-CPEIeMYJ.js → ganttDiagram-6RSMTGT7-DKmi_hWM.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-7xsKXhbX.js → gitGraphDiagram-PVQCEYII-DpQ1cu5h.js} +3 -3
- package/dist/{graph-C_zDc2Lu.js → graph-CSRKgcbg.js} +1 -1
- package/dist/index.js +14 -12
- package/dist/{infoDiagram-5YYISTIA-fqTV1DiG.js → infoDiagram-5YYISTIA-v8jIxUL5.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-oFqWJGC1.js → ishikawaDiagram-YF4QCWOH-BaV5bCe8.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-DXKZrVVD.js → journeyDiagram-JHISSGLW-DeU65SpU.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-CyETGwWQ.js → kanban-definition-UN3LZRKU-TGHAcp6_.js} +2 -2
- package/dist/{layout-CJbxE-hP.js → layout-D_sj0Eed.js} +2 -2
- package/dist/{linear-CA6cJfSx.js → linear-TldV7C5w.js} +1 -1
- package/dist/{mermaid.core-BfkFhA7S.js → mermaid.core-CRSTqrrD.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-K9_vO_sM.js → mindmap-definition-RKZ34NQL-CejyEBat.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-7MAWO90T.js → pieDiagram-4H26LBE5-CWLZWcAW.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-eKvwOhuh.js → quadrantDiagram-W4KKPZXB-CYidUieH.js} +2 -2
- package/dist/record.js +2 -2
- package/dist/{requirementDiagram-4Y6WPE33-BdTNg93D.js → requirementDiagram-4Y6WPE33-Cw4ko-tB.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-Co6Zc9b1.js → sankeyDiagram-5OEKKPKP-BnX4Evuh.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-Aac-pALW.js → sequenceDiagram-3UESZ5HK-BiGVMmS5.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-CKTvUK5C.js → stateDiagram-AJRCARHV-DIaBI1Uq.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-Dn0HRX6t.js → stateDiagram-v2-BHNVJYJU-BgfV-ldT.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-4kyjawEk.js → timeline-definition-PNZ67QCA-C0_5OwxD.js} +2 -2
- package/dist/{useFieldRendering-DXdYwpSA.js → useFieldRendering-B2iMfsEA.js} +1 -1
- package/dist/{useVarHelpers-sM7Fe3SM.js → useVarHelpers-CSogsd1T.js} +121 -116
- package/dist/{validation-D8cXKg1z.js → validation-BYjlufCM.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-DwkHwkFa.js → vennDiagram-CIIHVFJN-_ktbUOEm.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-BPWdxrxm.js → wardleyDiagram-YWT4CUSO-iwftOr4-.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-DJVYSAwS.js → xychartDiagram-2RQKCTM6-C_h9QW07.js} +2 -2
- package/package.json +1 -1
- package/src/__tests__/required-marker.test.ts +27 -0
- package/src/__tests__/var-field-render.test.ts +48 -0
- package/src/components/AimdRequiredMarker.vue +1 -0
- package/src/components/AimdVarField.vue +2 -1
- package/src/components/index.ts +2 -0
- package/src/composables/__tests__/useVarHelpers.test.ts +47 -0
- package/src/composables/useVarHelpers.ts +9 -1
- package/src/index.ts +8 -1
- package/src/styles/recorder.css +8 -4
- package/dist/AimdRequiredMarker.vue_vue_type_script_setup_true_lang-oAsIq2Q_.js +0 -24
package/dist/components.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as Ye, ref as O, getCurrentInstance as In, computed as k, watch as Se, nextTick as je, onMounted as Ya, onBeforeUnmount as Mt, openBlock as _, createElementBlock as w, normalizeStyle as Rt, normalizeClass as Oe, createElementVNode as g, toDisplayString as C, createTextVNode as nt, createCommentVNode as re, withModifiers as yt, Fragment as Be, renderList as Ue, withKeys as Ba, unref as Ve, createBlock as ft, withDirectives as Nt, vModelText as ba, defineAsyncComponent as Ht, h as l, Transition as Jn, vModelRadio as an, reactive as Oa, createVNode as ea, render as nn, watchEffect as Xn, mergeProps as Zn } from "vue";
|
|
2
|
-
import { a as kt, _ as bt } from "./AimdRequiredMarker.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { aN as Ut, aR as Ln, ao as ei, au as Na, aX as ti, b8 as ta, B as rn, _ as aa, z as va, a4 as ga, u as da, b1 as Xt, t as ln, b9 as ai, ba as ni, b4 as sn, E as Pn, b7 as Ka, F as Bn, c as gt, ae as
|
|
4
|
-
import { g as Wt, a as Wa, c as Xa, b as
|
|
5
|
-
import { l as
|
|
6
|
-
import { renderToVue as
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import { isScaleQuizAnswerComplete as
|
|
10
|
-
const
|
|
2
|
+
import { a as kt, _ as bt } from "./AimdRequiredMarker.vue_vue_type_script_setup_true_lang-B5qDiOZn.js";
|
|
3
|
+
import { aN as Ut, aR as Ln, ao as ei, au as Na, aX as ti, b8 as ta, B as rn, _ as aa, z as va, a4 as ga, u as da, b1 as Xt, t as ln, b9 as ai, ba as ni, bb as ii, b4 as sn, E as Pn, b7 as Ka, F as Bn, c as gt, ae as ri, bc as li, b5 as _a, b6 as xa, bd as ja, be as On, a5 as si, n as oi, ad as Nn, bf as ha, C as di, r as ht, a9 as ci, L as ka, I as ui, D as fi, M as mi, aq as Ja, a$ as vi, w as gi, x as hi, aE as Kt, a as Ha, f as Ua, o as pi, y as yi, h as bi, l as _i, a8 as ki, a6 as wi, ac as Si, ab as Ci, aV as xi, ap as $i, H as Ai, S as Ei, Y as pa, $ as Fi, Q as Ti, Z as Ri, a2 as Mi } from "./useVarHelpers-CSogsd1T.js";
|
|
4
|
+
import { g as Wt, a as Wa, c as Xa, b as zi, r as qi, P as Vi, d as Di, $ as Ii, e as Li, h as Pi, f as Bi, i as Oi, j as Ni, k as on, l as Ki, m as dn, N as ji, n as Hi, o as Ui, p as Wi, u as Gi, q as Qi, s as Yi, t as Ji, v as Xi, _ as Zi } from "./AimdEditor.vue_vue_type_style_index_0_lang-B0n0inzY.js";
|
|
5
|
+
import { l as er, s as tr, n as cn, t as ar, o as nr, r as ca, y as ir, x as rr, d as lr, b as un, A as sr, e as or, a as dr, w as cr, z as ur, v as fr, m as mr, u as vr, j as gr } from "./useFieldRendering-B2iMfsEA.js";
|
|
6
|
+
import { renderToVue as hr, parseAndExtract as Ot } from "@airalogy/aimd-renderer";
|
|
7
|
+
import { g as pr, m as wa, b as Sa, a as za } from "./validation-BYjlufCM.js";
|
|
8
|
+
import { u as yr } from "./useCodeBlockRendering-D2viVPtA.js";
|
|
9
|
+
import { isScaleQuizAnswerComplete as br, gradeScaleQuizLocally as _r } from "@airalogy/aimd-core";
|
|
10
|
+
const kr = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "aimd-assigner-graph__toolbar"
|
|
13
|
-
},
|
|
13
|
+
}, wr = { class: "aimd-assigner-graph__toolbar-group" }, Sr = ["title", "aria-label"], Cr = ["title", "aria-label"], xr = ["title", "aria-label"], $r = { class: "aimd-assigner-graph__zoom" }, Ar = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "aimd-assigner-graph__legend"
|
|
16
|
-
},
|
|
16
|
+
}, Er = { class: "aimd-assigner-graph__legend-item" }, Fr = { class: "aimd-assigner-graph__legend-item" }, Tr = { class: "aimd-assigner-graph__legend-item" }, Rr = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "aimd-assigner-graph__state"
|
|
19
|
-
},
|
|
19
|
+
}, Mr = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "aimd-assigner-graph__state"
|
|
22
|
-
},
|
|
22
|
+
}, zr = ["width", "height", "viewBox", "aria-label"], qr = { class: "aimd-assigner-graph__edges" }, Vr = ["d", "marker-end"], Dr = { class: "aimd-assigner-graph__nodes" }, Ir = ["transform", "aria-label", "onClick", "onKeydown"], Lr = ["width", "height", "rx"], Pr = ["x", "y"], fn = 48, mn = 260, vn = 86, ua = 36, Br = 132, gn = 232, hn = 28, Or = /* @__PURE__ */ Ye({
|
|
23
23
|
name: "AimdAssignerGraph",
|
|
24
24
|
__name: "AimdAssignerGraph",
|
|
25
25
|
props: {
|
|
@@ -53,7 +53,7 @@ const _r = {
|
|
|
53
53
|
const E = k(() => ({
|
|
54
54
|
...h,
|
|
55
55
|
...a.labels
|
|
56
|
-
})),
|
|
56
|
+
})), U = k(() => {
|
|
57
57
|
const x = a.assignerGraph;
|
|
58
58
|
if (!x) return [];
|
|
59
59
|
const $ = /* @__PURE__ */ new Map();
|
|
@@ -64,14 +64,14 @@ const _r = {
|
|
|
64
64
|
return [...$.values()];
|
|
65
65
|
}), R = k(() => {
|
|
66
66
|
const x = /* @__PURE__ */ new Map();
|
|
67
|
-
for (const $ of
|
|
67
|
+
for (const $ of U.value)
|
|
68
68
|
x.set($.name, { inputs: [], outputs: [] });
|
|
69
69
|
for (const [$, v] of a.assignerGraph?.edges ?? [])
|
|
70
70
|
x.get($)?.outputs.push(v), x.get(v)?.inputs.push($);
|
|
71
71
|
return x;
|
|
72
72
|
}), ne = k(() => {
|
|
73
73
|
if (!m.value) return /* @__PURE__ */ new Set();
|
|
74
|
-
const x = m.value, $ =
|
|
74
|
+
const x = m.value, $ = U.value.find((I) => I.name === x), v = /* @__PURE__ */ new Set();
|
|
75
75
|
if (!$) return v;
|
|
76
76
|
if ($.type === "assigner") {
|
|
77
77
|
v.add(x);
|
|
@@ -80,7 +80,7 @@ const _r = {
|
|
|
80
80
|
}
|
|
81
81
|
return W(x, v), de(x, v), v;
|
|
82
82
|
}), ge = k(() => {
|
|
83
|
-
const x =
|
|
83
|
+
const x = U.value;
|
|
84
84
|
if (!x.length)
|
|
85
85
|
return { nodes: [], edges: [], width: 480, height: 320 };
|
|
86
86
|
const $ = le(x, a.assignerGraph?.edges ?? []), v = /* @__PURE__ */ new Map();
|
|
@@ -125,7 +125,7 @@ const _r = {
|
|
|
125
125
|
width: ua * 2 + j * mn + gn,
|
|
126
126
|
height: ua * 2 + (p - 1) * vn + fn
|
|
127
127
|
};
|
|
128
|
-
}),
|
|
128
|
+
}), H = k(() => `${Math.round(c.value * 100)}%`), ie = k(() => ({
|
|
129
129
|
"--aimd-assigner-graph-height": P.value ? "100vh" : a.height
|
|
130
130
|
})), ye = k(() => Math.max(ge.value.width * c.value, 1)), oe = k(() => Math.max(ge.value.height * c.value, 1));
|
|
131
131
|
function N(x) {
|
|
@@ -160,7 +160,7 @@ const _r = {
|
|
|
160
160
|
}
|
|
161
161
|
function q(x) {
|
|
162
162
|
const $ = x.length * 8.5 + 36;
|
|
163
|
-
return Math.max(
|
|
163
|
+
return Math.max(Br, Math.min(gn, $));
|
|
164
164
|
}
|
|
165
165
|
function X(x, $) {
|
|
166
166
|
const v = x.x + x.width, I = x.y + x.height / 2, j = $.x, p = $.y + $.height / 2, D = Math.max(54, Math.min(110, Math.abs(j - v) / 2));
|
|
@@ -240,8 +240,8 @@ const _r = {
|
|
|
240
240
|
class: Oe(["aimd-assigner-graph", { "aimd-assigner-graph--fullscreen": P.value }]),
|
|
241
241
|
style: Rt(ie.value)
|
|
242
242
|
}, [
|
|
243
|
-
e.showToolbar ? (_(), w("div",
|
|
244
|
-
g("div",
|
|
243
|
+
e.showToolbar ? (_(), w("div", kr, [
|
|
244
|
+
g("div", wr, [
|
|
245
245
|
g("button", {
|
|
246
246
|
type: "button",
|
|
247
247
|
class: "aimd-assigner-graph__icon-btn",
|
|
@@ -261,7 +261,7 @@ const _r = {
|
|
|
261
261
|
}),
|
|
262
262
|
g("path", { d: "M16.5 16.5 21 21" })
|
|
263
263
|
], -1)
|
|
264
|
-
])], 8,
|
|
264
|
+
])], 8, Sr),
|
|
265
265
|
g("button", {
|
|
266
266
|
type: "button",
|
|
267
267
|
class: "aimd-assigner-graph__icon-btn",
|
|
@@ -275,7 +275,7 @@ const _r = {
|
|
|
275
275
|
}, [
|
|
276
276
|
g("path", { d: "M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5" })
|
|
277
277
|
], -1)
|
|
278
|
-
])], 8,
|
|
278
|
+
])], 8, Cr),
|
|
279
279
|
g("button", {
|
|
280
280
|
type: "button",
|
|
281
281
|
class: "aimd-assigner-graph__icon-btn",
|
|
@@ -295,8 +295,8 @@ const _r = {
|
|
|
295
295
|
}),
|
|
296
296
|
g("path", { d: "M16.5 16.5 21 21" })
|
|
297
297
|
], -1)
|
|
298
|
-
])], 8,
|
|
299
|
-
g("span",
|
|
298
|
+
])], 8, xr),
|
|
299
|
+
g("span", $r, C(H.value), 1)
|
|
300
300
|
]),
|
|
301
301
|
g("button", {
|
|
302
302
|
type: "button",
|
|
@@ -326,16 +326,16 @@ const _r = {
|
|
|
326
326
|
nt(" " + C(P.value ? E.value.close : E.value.fullscreen), 1)
|
|
327
327
|
])) : re("", !0)
|
|
328
328
|
])) : re("", !0),
|
|
329
|
-
e.showLegend ? (_(), w("div",
|
|
330
|
-
g("span",
|
|
329
|
+
e.showLegend ? (_(), w("div", Ar, [
|
|
330
|
+
g("span", Er, [
|
|
331
331
|
$[5] || ($[5] = g("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--dependent-field" }, null, -1)),
|
|
332
332
|
nt(" " + C(E.value.dependentField), 1)
|
|
333
333
|
]),
|
|
334
|
-
g("span",
|
|
334
|
+
g("span", Fr, [
|
|
335
335
|
$[6] || ($[6] = g("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--assigner" }, null, -1)),
|
|
336
336
|
nt(" " + C(E.value.assigner), 1)
|
|
337
337
|
]),
|
|
338
|
-
g("span",
|
|
338
|
+
g("span", Tr, [
|
|
339
339
|
$[7] || ($[7] = g("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--assigned-field" }, null, -1)),
|
|
340
340
|
nt(" " + C(E.value.assignedField), 1)
|
|
341
341
|
])
|
|
@@ -346,13 +346,13 @@ const _r = {
|
|
|
346
346
|
class: "aimd-assigner-graph__canvas",
|
|
347
347
|
onClick: yt(be, ["self"])
|
|
348
348
|
}, [
|
|
349
|
-
e.loading ? (_(), w("div",
|
|
349
|
+
e.loading ? (_(), w("div", Rr, [
|
|
350
350
|
$[8] || ($[8] = g("span", {
|
|
351
351
|
class: "aimd-assigner-graph__spinner",
|
|
352
352
|
"aria-hidden": "true"
|
|
353
353
|
}, null, -1)),
|
|
354
354
|
nt(" " + C(E.value.loading), 1)
|
|
355
|
-
])) : ge.value.nodes.length === 0 ? (_(), w("div",
|
|
355
|
+
])) : ge.value.nodes.length === 0 ? (_(), w("div", Mr, C(E.value.empty), 1)) : (_(), w("svg", {
|
|
356
356
|
key: 2,
|
|
357
357
|
class: "aimd-assigner-graph__svg",
|
|
358
358
|
width: ye.value,
|
|
@@ -391,7 +391,7 @@ const _r = {
|
|
|
391
391
|
}, null, -1)
|
|
392
392
|
])])
|
|
393
393
|
]),
|
|
394
|
-
g("g",
|
|
394
|
+
g("g", qr, [
|
|
395
395
|
(_(!0), w(Be, null, Ue(ge.value.edges, (v) => (_(), w("path", {
|
|
396
396
|
key: `${v.from}->${v.to}`,
|
|
397
397
|
class: Oe(["aimd-assigner-graph__edge", {
|
|
@@ -401,9 +401,9 @@ const _r = {
|
|
|
401
401
|
d: v.path,
|
|
402
402
|
fill: "none",
|
|
403
403
|
"marker-end": `url(#${v.highlighted ? J : ue})`
|
|
404
|
-
}, null, 10,
|
|
404
|
+
}, null, 10, Vr))), 128))
|
|
405
405
|
]),
|
|
406
|
-
g("g",
|
|
406
|
+
g("g", Dr, [
|
|
407
407
|
(_(!0), w(Be, null, Ue(ge.value.nodes, (v) => (_(), w("g", {
|
|
408
408
|
key: v.name,
|
|
409
409
|
class: Oe(["aimd-assigner-graph__node", [
|
|
@@ -429,22 +429,22 @@ const _r = {
|
|
|
429
429
|
width: v.width,
|
|
430
430
|
height: v.height,
|
|
431
431
|
rx: v.type === "assigner" ? v.height / 2 : 8
|
|
432
|
-
}, null, 8,
|
|
432
|
+
}, null, 8, Lr),
|
|
433
433
|
g("text", {
|
|
434
434
|
class: "aimd-assigner-graph__node-label",
|
|
435
435
|
x: v.width / 2,
|
|
436
436
|
y: v.height / 2,
|
|
437
437
|
"dominant-baseline": "middle",
|
|
438
438
|
"text-anchor": "middle"
|
|
439
|
-
}, C(v.label), 9,
|
|
440
|
-
], 42,
|
|
439
|
+
}, C(v.label), 9, Pr)
|
|
440
|
+
], 42, Ir))), 128))
|
|
441
441
|
])
|
|
442
|
-
], 8,
|
|
442
|
+
], 8, zr))
|
|
443
443
|
], 512)
|
|
444
444
|
], 6));
|
|
445
445
|
}
|
|
446
|
-
}),
|
|
447
|
-
function
|
|
446
|
+
}), Wc = /* @__PURE__ */ kt(Or, [["__scopeId", "data-v-091ecc08"]]), Nr = ["checked", "annotation", "elapsed_ms", "started_at_ms", "ended_at_ms"], Kr = ["checked", "annotation"];
|
|
447
|
+
function jr(e) {
|
|
448
448
|
return Array.isArray(e) && e.every((t) => t && typeof t == "object" && typeof t.key == "string");
|
|
449
449
|
}
|
|
450
450
|
function Ze(e) {
|
|
@@ -456,7 +456,7 @@ function qa(e) {
|
|
|
456
456
|
if (Ut(e))
|
|
457
457
|
return Ze(e.id) ?? Ze(e.name);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function Hr(e) {
|
|
460
460
|
const t = /* @__PURE__ */ new Set(), n = [];
|
|
461
461
|
for (const a of e)
|
|
462
462
|
t.has(a.key) || (t.add(a.key), n.push(a));
|
|
@@ -465,10 +465,10 @@ function jr(e) {
|
|
|
465
465
|
function Ca(e, t) {
|
|
466
466
|
return Ze(t) ?? e;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Ur(e, t) {
|
|
469
469
|
return `${Ca(e.id, e.title)}.${Ca(t.id, t.title)}`;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Wr(e) {
|
|
472
472
|
const t = `quiz:${e.id}`;
|
|
473
473
|
if (e.type === "blank") {
|
|
474
474
|
const n = e.blanks?.[0]?.key;
|
|
@@ -490,11 +490,11 @@ function Ur(e) {
|
|
|
490
490
|
}
|
|
491
491
|
return `${t}:open`;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
return e ?
|
|
493
|
+
function Gr(e) {
|
|
494
|
+
return e ? jr(e) ? [...e] : Kn(e) : [];
|
|
495
495
|
}
|
|
496
496
|
function pt(e, t, n) {
|
|
497
|
-
const a = n, i = Ze(a?.title), h = Ze(a?.type), o = `${e}:${t}`, m = e === "var" ? o : e === "step" ? `${o}:checked` : e === "check" ? `${o}:checked` :
|
|
497
|
+
const a = n, i = Ze(a?.title), h = Ze(a?.type), o = `${e}:${t}`, m = e === "var" ? o : e === "step" ? `${o}:checked` : e === "check" ? `${o}:checked` : Wr({ id: t, type: "open", ...n });
|
|
498
498
|
return {
|
|
499
499
|
key: o,
|
|
500
500
|
scope: e,
|
|
@@ -509,7 +509,7 @@ function pt(e, t, n) {
|
|
|
509
509
|
focusKey: m
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Qr(e) {
|
|
513
513
|
const t = Ln(e), n = [];
|
|
514
514
|
for (const a of ei) {
|
|
515
515
|
const i = t[a];
|
|
@@ -551,7 +551,7 @@ function Kn(e) {
|
|
|
551
551
|
key: `var_table:${i.id}:${c.id}`,
|
|
552
552
|
scope: "var_table",
|
|
553
553
|
id: c.id,
|
|
554
|
-
label:
|
|
554
|
+
label: Ur(i, c),
|
|
555
555
|
title: Ze(c.title),
|
|
556
556
|
type: Ze(c.type),
|
|
557
557
|
description: Ze(c.description),
|
|
@@ -577,9 +577,9 @@ function Kn(e) {
|
|
|
577
577
|
}
|
|
578
578
|
for (const i of e.quiz || [])
|
|
579
579
|
i?.id && t.push(pt("quiz", i.id, i));
|
|
580
|
-
return
|
|
580
|
+
return Hr(t);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Yr(e) {
|
|
583
583
|
const t = e.split(":"), n = t[0], a = t[1];
|
|
584
584
|
if (a) {
|
|
585
585
|
if (n === "var" || n === "step" || n === "check" || n === "quiz")
|
|
@@ -610,7 +610,7 @@ function Qr(e) {
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Jr(e, t) {
|
|
614
614
|
const n = e[t];
|
|
615
615
|
return Ut(n) ? n : {};
|
|
616
616
|
}
|
|
@@ -624,11 +624,11 @@ function pn(e, t) {
|
|
|
624
624
|
}
|
|
625
625
|
return n.join(" ");
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
const n = typeof t == "string" ?
|
|
627
|
+
function Xr(e, t) {
|
|
628
|
+
const n = typeof t == "string" ? Yr(t) : t;
|
|
629
629
|
if (!n)
|
|
630
630
|
return;
|
|
631
|
-
const a = Ln(e), h =
|
|
631
|
+
const a = Ln(e), h = Jr(a, n.storageScope)[n.storageKey];
|
|
632
632
|
return n.scope === "var_table" && n.columnId ? (Array.isArray(h) ? h : []).map((m) => {
|
|
633
633
|
if (Ut(m))
|
|
634
634
|
return Na(m[n.columnId]);
|
|
@@ -638,44 +638,44 @@ function jt(e) {
|
|
|
638
638
|
const t = Na(e);
|
|
639
639
|
return t == null ? "" : Array.isArray(t) ? t.map((n) => jt(n)).filter(Boolean).join(" ") : Ut(t) ? Object.entries(t).filter(([n]) => !n.startsWith("__")).map(([, n]) => jt(n)).filter(Boolean).join(" ") : ti(t);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Zr(e, t) {
|
|
642
642
|
const n = e == null ? "" : String(e);
|
|
643
643
|
return t ? n : n.toLocaleLowerCase();
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
const i =
|
|
645
|
+
function el(e, t, n, a = {}) {
|
|
646
|
+
const i = Zr(t, a.caseSensitive).trim();
|
|
647
647
|
if (!i)
|
|
648
648
|
return [];
|
|
649
|
-
const h = a.fieldKeys ? new Set(a.fieldKeys) : null, o =
|
|
649
|
+
const h = a.fieldKeys ? new Set(a.fieldKeys) : null, o = Gr(n), m = o.length > 0 ? o : Qr(e), c = [];
|
|
650
650
|
for (const z of m) {
|
|
651
651
|
if (h && !h.has(z.key))
|
|
652
652
|
continue;
|
|
653
|
-
const P =
|
|
653
|
+
const P = Xr(e, z), ae = z.scope === "step" ? pn(P, Nr) : z.scope === "check" ? pn(P, Kr) : jt(P), ue = a.includeFieldLabels ? ` ${z.label} ${z.key}` : "";
|
|
654
654
|
(a.caseSensitive ? `${ae}${ue}` : `${ae}${ue}`.toLocaleLowerCase()).includes(i) && c.push({ field: z, value: P, text: ae });
|
|
655
655
|
}
|
|
656
656
|
return c;
|
|
657
657
|
}
|
|
658
|
-
const
|
|
658
|
+
const tl = ["data-rec-collector"], al = { class: "aimd-rec-collector__header" }, nl = { class: "aimd-field__scope aimd-field__scope--var" }, il = { class: "aimd-rec-collector__identity" }, rl = { class: "aimd-rec-collector__title" }, ll = {
|
|
659
659
|
key: 1,
|
|
660
660
|
class: "aimd-rec-collector__key"
|
|
661
|
-
},
|
|
661
|
+
}, sl = ["title"], ol = { class: "aimd-rec-collector__body" }, dl = { class: "aimd-rec-collector__reading" }, cl = ["title"], ul = {
|
|
662
662
|
key: 1,
|
|
663
663
|
class: "aimd-rec-collector__empty"
|
|
664
|
-
},
|
|
664
|
+
}, fl = {
|
|
665
665
|
key: 2,
|
|
666
666
|
class: "aimd-rec-collector__unit"
|
|
667
|
-
},
|
|
667
|
+
}, ml = { class: "aimd-rec-collector__meta" }, vl = { key: 0 }, gl = { key: 1 }, hl = { class: "aimd-rec-collector__actions" }, pl = ["disabled"], yl = ["disabled"], bl = ["disabled", "aria-expanded"], _l = {
|
|
668
668
|
key: 0,
|
|
669
669
|
class: "aimd-rec-collector__message",
|
|
670
670
|
role: "status"
|
|
671
|
-
},
|
|
671
|
+
}, kl = {
|
|
672
672
|
key: 1,
|
|
673
673
|
class: "aimd-rec-collector__manual"
|
|
674
|
-
},
|
|
674
|
+
}, wl = ["data-rec-focus-key", "placeholder", "disabled"], Sl = ["placeholder", "disabled"], Cl = ["disabled"], xl = {
|
|
675
675
|
key: 0,
|
|
676
676
|
class: "aimd-rec-collector__message aimd-rec-collector__message--error",
|
|
677
677
|
role: "alert"
|
|
678
|
-
},
|
|
678
|
+
}, $l = /* @__PURE__ */ Ye({
|
|
679
679
|
__name: "AimdCollectorField",
|
|
680
680
|
props: {
|
|
681
681
|
node: {},
|
|
@@ -691,7 +691,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
691
691
|
},
|
|
692
692
|
emits: ["start", "stop", "manual", "blur"],
|
|
693
693
|
setup(e, { emit: t }) {
|
|
694
|
-
const n = e, a = t, i = O(!1), h = O(""), o = O(""), m = O(""), c = k(() => n.node.definition?.type || "Observation[str]"), z = k(() =>
|
|
694
|
+
const n = e, a = t, i = O(!1), h = O(""), o = O(""), m = O(""), c = k(() => n.node.definition?.type || "Observation[str]"), z = k(() => er(c.value)), P = k(() => n.fieldMeta?.title || ta(n.node.id, n.node.definition)), ae = k(() => ["waiting_for_permission", "connecting", "collecting", "stopping"].includes(n.state.status)), ue = k(() => !n.disabled && n.providerAvailable && !ae.value && n.state.status !== "unsupported" && !n.binding.isSeries && n.binding.collector.mode !== "stream"), J = k(() => !n.disabled && ["connecting", "collecting"].includes(n.state.status)), K = k(() => (Array.isArray(n.value) ? n.value : [n.value]).filter((B) => !!(B && typeof B == "object" && !Array.isArray(B) && Object.prototype.hasOwnProperty.call(B, "value")))), E = k(() => K.value[K.value.length - 1]), U = k(() => H(E.value?.value)), R = k(() => E.value?.unit || String(n.node.definition?.kwargs?.unit ?? "")), ne = k(() => {
|
|
695
695
|
const N = E.value?.observed_at || n.state.lastObservedAt;
|
|
696
696
|
if (!N) return "";
|
|
697
697
|
const B = new Date(N);
|
|
@@ -703,7 +703,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
703
703
|
N && (i.value = !1);
|
|
704
704
|
}
|
|
705
705
|
);
|
|
706
|
-
function
|
|
706
|
+
function H(N) {
|
|
707
707
|
if (N == null) return "";
|
|
708
708
|
if (typeof N == "string") return N;
|
|
709
709
|
if (["number", "boolean", "bigint"].includes(typeof N)) return String(N);
|
|
@@ -724,7 +724,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
724
724
|
m.value = n.messages.collector.reasonRequired;
|
|
725
725
|
return;
|
|
726
726
|
}
|
|
727
|
-
const N =
|
|
727
|
+
const N = tr(c.value, h.value);
|
|
728
728
|
if (!N.ok) {
|
|
729
729
|
m.value = n.messages.collector.invalidValue;
|
|
730
730
|
return;
|
|
@@ -738,20 +738,20 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
738
738
|
]]),
|
|
739
739
|
"data-rec-collector": e.binding.collector.id
|
|
740
740
|
}, [
|
|
741
|
-
g("span",
|
|
742
|
-
g("span",
|
|
743
|
-
g("span",
|
|
744
|
-
g("span",
|
|
741
|
+
g("span", al, [
|
|
742
|
+
g("span", nl, C(Ve(Wt)("var", e.messages)), 1),
|
|
743
|
+
g("span", il, [
|
|
744
|
+
g("span", rl, C(P.value), 1),
|
|
745
745
|
e.required ? (_(), ft(bt, {
|
|
746
746
|
key: 0,
|
|
747
747
|
label: e.messages.common.required
|
|
748
748
|
}, null, 8, ["label"])) : re("", !0),
|
|
749
|
-
P.value !== e.node.id ? (_(), w("span",
|
|
749
|
+
P.value !== e.node.id ? (_(), w("span", ll, C(e.node.id), 1)) : re("", !0)
|
|
750
750
|
]),
|
|
751
751
|
g("span", {
|
|
752
752
|
class: "aimd-rec-collector__source",
|
|
753
753
|
title: e.binding.connector.id
|
|
754
|
-
}, C(e.binding.collector.title || e.binding.collector.id), 9,
|
|
754
|
+
}, C(e.binding.collector.title || e.binding.collector.id), 9, sl),
|
|
755
755
|
g("span", {
|
|
756
756
|
class: Oe(["aimd-rec-collector__status", `aimd-rec-collector__status--${e.state.status}`])
|
|
757
757
|
}, [
|
|
@@ -762,33 +762,33 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
762
762
|
nt(" " + C(e.messages.collector.status[e.state.status]), 1)
|
|
763
763
|
], 2)
|
|
764
764
|
]),
|
|
765
|
-
g("span",
|
|
766
|
-
g("span",
|
|
767
|
-
|
|
765
|
+
g("span", ol, [
|
|
766
|
+
g("span", dl, [
|
|
767
|
+
U.value ? (_(), w("span", {
|
|
768
768
|
key: 0,
|
|
769
769
|
class: "aimd-rec-collector__value",
|
|
770
|
-
title:
|
|
771
|
-
}, C(
|
|
772
|
-
R.value ? (_(), w("span",
|
|
770
|
+
title: U.value
|
|
771
|
+
}, C(U.value), 9, cl)) : (_(), w("span", ul, C(e.messages.common.emptyValue), 1)),
|
|
772
|
+
R.value ? (_(), w("span", fl, C(R.value), 1)) : re("", !0)
|
|
773
773
|
]),
|
|
774
|
-
g("span",
|
|
775
|
-
e.binding.isList ? (_(), w("span",
|
|
776
|
-
ne.value ? (_(), w("span",
|
|
774
|
+
g("span", ml, [
|
|
775
|
+
e.binding.isList ? (_(), w("span", vl, C(e.messages.collector.sampleCount(K.value.length)), 1)) : re("", !0),
|
|
776
|
+
ne.value ? (_(), w("span", gl, C(e.messages.collector.lastObserved(ne.value)), 1)) : re("", !0)
|
|
777
777
|
]),
|
|
778
|
-
g("span",
|
|
778
|
+
g("span", hl, [
|
|
779
779
|
J.value ? (_(), w("button", {
|
|
780
780
|
key: 0,
|
|
781
781
|
type: "button",
|
|
782
782
|
class: "aimd-rec-collector__button aimd-rec-collector__button--danger",
|
|
783
783
|
disabled: e.disabled,
|
|
784
784
|
onClick: B[0] || (B[0] = (le) => a("stop"))
|
|
785
|
-
}, C(e.messages.collector.stop), 9,
|
|
785
|
+
}, C(e.messages.collector.stop), 9, pl)) : (_(), w("button", {
|
|
786
786
|
key: 1,
|
|
787
787
|
type: "button",
|
|
788
788
|
class: "aimd-rec-collector__button aimd-rec-collector__button--primary",
|
|
789
789
|
disabled: !ue.value,
|
|
790
790
|
onClick: ie
|
|
791
|
-
}, C(e.state.status === "error" ? e.messages.collector.retry : e.binding.collector.mode === "snapshot" ? e.messages.collector.snapshot : e.messages.collector.start), 9,
|
|
791
|
+
}, C(e.state.status === "error" ? e.messages.collector.retry : e.binding.collector.mode === "snapshot" ? e.messages.collector.snapshot : e.messages.collector.start), 9, yl)),
|
|
792
792
|
e.binding.collector.manual_fallback ? (_(), w("button", {
|
|
793
793
|
key: 2,
|
|
794
794
|
type: "button",
|
|
@@ -796,11 +796,11 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
796
796
|
disabled: e.disabled || ae.value,
|
|
797
797
|
"aria-expanded": i.value,
|
|
798
798
|
onClick: ye
|
|
799
|
-
}, C(i.value ? e.messages.collector.cancelManual : e.messages.collector.manualEntry), 9,
|
|
799
|
+
}, C(i.value ? e.messages.collector.cancelManual : e.messages.collector.manualEntry), 9, bl)) : re("", !0)
|
|
800
800
|
])
|
|
801
801
|
]),
|
|
802
|
-
ge.value ? (_(), w("span",
|
|
803
|
-
i.value ? (_(), w("span",
|
|
802
|
+
ge.value ? (_(), w("span", _l, C(ge.value), 1)) : re("", !0),
|
|
803
|
+
i.value ? (_(), w("span", kl, [
|
|
804
804
|
Nt(g("textarea", {
|
|
805
805
|
"onUpdate:modelValue": B[1] || (B[1] = (le) => h.value = le),
|
|
806
806
|
"data-rec-focus-key": `var:${e.node.id}`,
|
|
@@ -809,7 +809,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
809
809
|
placeholder: `${e.messages.collector.valuePlaceholder} (${z.value})`,
|
|
810
810
|
disabled: e.disabled,
|
|
811
811
|
onBlur: B[2] || (B[2] = (le) => a("blur"))
|
|
812
|
-
}, null, 40,
|
|
812
|
+
}, null, 40, wl), [
|
|
813
813
|
[ba, h.value]
|
|
814
814
|
]),
|
|
815
815
|
Nt(g("input", {
|
|
@@ -819,7 +819,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
819
819
|
placeholder: e.messages.collector.reasonPlaceholder,
|
|
820
820
|
disabled: e.disabled,
|
|
821
821
|
onBlur: B[4] || (B[4] = (le) => a("blur"))
|
|
822
|
-
}, null, 40,
|
|
822
|
+
}, null, 40, Sl), [
|
|
823
823
|
[ba, o.value]
|
|
824
824
|
]),
|
|
825
825
|
g("button", {
|
|
@@ -827,28 +827,28 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
|
|
|
827
827
|
class: "aimd-rec-collector__button aimd-rec-collector__button--primary",
|
|
828
828
|
disabled: e.disabled,
|
|
829
829
|
onClick: oe
|
|
830
|
-
}, C(e.messages.collector.saveManual), 9,
|
|
831
|
-
m.value ? (_(), w("span",
|
|
830
|
+
}, C(e.messages.collector.saveManual), 9, Cl),
|
|
831
|
+
m.value ? (_(), w("span", xl, C(m.value), 1)) : re("", !0)
|
|
832
832
|
])) : re("", !0)
|
|
833
|
-
], 10,
|
|
833
|
+
], 10, tl));
|
|
834
834
|
}
|
|
835
835
|
});
|
|
836
836
|
function Va(e) {
|
|
837
837
|
return e.field.parentKey ? [e.field.key, e.field.parentKey] : [e.field.key];
|
|
838
838
|
}
|
|
839
|
-
function $l(e) {
|
|
840
|
-
return typeof HTMLInputElement < "u" && e instanceof HTMLInputElement || typeof HTMLTextAreaElement < "u" && e instanceof HTMLTextAreaElement;
|
|
841
|
-
}
|
|
842
839
|
function Al(e) {
|
|
843
|
-
return
|
|
840
|
+
return typeof HTMLInputElement < "u" && e instanceof HTMLInputElement || typeof HTMLTextAreaElement < "u" && e instanceof HTMLTextAreaElement;
|
|
844
841
|
}
|
|
845
842
|
function El(e) {
|
|
846
|
-
return
|
|
843
|
+
return e.matches("input, textarea, select, button, [tabindex]:not([tabindex='-1'])") ? e : e.querySelector("input, textarea, select, button, [tabindex]:not([tabindex='-1'])") ?? e;
|
|
847
844
|
}
|
|
848
845
|
function Fl(e) {
|
|
846
|
+
return Al(e) ? e : e.querySelector("textarea, input");
|
|
847
|
+
}
|
|
848
|
+
function Tl(e) {
|
|
849
849
|
const t = O(""), n = O(""), a = O(0), i = O(e.defaultExpanded), h = O(/* @__PURE__ */ new Set());
|
|
850
850
|
let o = null;
|
|
851
|
-
const m = k(() => Kn(e.fields.value)), c = k(() => !!(t.value.trim() || n.value)), z = k(() => i.value || c.value), P = k(() =>
|
|
851
|
+
const m = k(() => Kn(e.fields.value)), c = k(() => !!(t.value.trim() || n.value)), z = k(() => i.value || c.value), P = k(() => el(
|
|
852
852
|
e.record,
|
|
853
853
|
t.value,
|
|
854
854
|
m.value,
|
|
@@ -883,7 +883,7 @@ function Fl(e) {
|
|
|
883
883
|
const le = [];
|
|
884
884
|
return ue.value.has(B) && le.push("aimd-field--record-search-match"), J.value.has(B) && le.push("aimd-field--record-search-active"), h.value.has(B) && le.push("aimd-field--record-search-pulse"), le;
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function U(B) {
|
|
887
887
|
if (!e.contentRoot.value)
|
|
888
888
|
return null;
|
|
889
889
|
const le = e.contentRoot.value.querySelectorAll("[data-rec-focus-key]");
|
|
@@ -896,7 +896,7 @@ function Fl(e) {
|
|
|
896
896
|
return null;
|
|
897
897
|
}
|
|
898
898
|
function R(B, le) {
|
|
899
|
-
const se =
|
|
899
|
+
const se = Fl(B);
|
|
900
900
|
if (!se)
|
|
901
901
|
return;
|
|
902
902
|
const F = t.value.trim();
|
|
@@ -924,11 +924,11 @@ function Fl(e) {
|
|
|
924
924
|
const se = P.value[a.value];
|
|
925
925
|
if (!se)
|
|
926
926
|
return;
|
|
927
|
-
const F =
|
|
927
|
+
const F = U(se.field.focusKey);
|
|
928
928
|
if (ne(se), !F)
|
|
929
929
|
return;
|
|
930
930
|
F.scrollIntoView?.({ block: "center", inline: "nearest", behavior: "smooth" });
|
|
931
|
-
const q =
|
|
931
|
+
const q = El(F);
|
|
932
932
|
try {
|
|
933
933
|
q.focus({ preventScroll: !0 });
|
|
934
934
|
} catch {
|
|
@@ -936,7 +936,7 @@ function Fl(e) {
|
|
|
936
936
|
}
|
|
937
937
|
R(q, se);
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function H() {
|
|
940
940
|
i.value = !0;
|
|
941
941
|
}
|
|
942
942
|
function ie() {
|
|
@@ -971,7 +971,7 @@ function Fl(e) {
|
|
|
971
971
|
activeMatchIndex: a,
|
|
972
972
|
clear: N,
|
|
973
973
|
collapse: ie,
|
|
974
|
-
expand:
|
|
974
|
+
expand: H,
|
|
975
975
|
fieldKey: n,
|
|
976
976
|
fieldRefs: m,
|
|
977
977
|
focusNextMatch: oe,
|
|
@@ -983,7 +983,7 @@ function Fl(e) {
|
|
|
983
983
|
resultLabel: K
|
|
984
984
|
};
|
|
985
985
|
}
|
|
986
|
-
const yn = Ht(() => import("./AimdCodeField-
|
|
986
|
+
const yn = Ht(() => import("./AimdCodeField-lUbFTqiD.js")), Rl = Ht(() => import("./AimdEntityRefField-DCE79vca.js"));
|
|
987
987
|
function bn(e) {
|
|
988
988
|
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
989
989
|
}
|
|
@@ -994,7 +994,7 @@ function jn(e) {
|
|
|
994
994
|
const t = e.example;
|
|
995
995
|
return t == null ? [] : [t];
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function Ml(e) {
|
|
998
998
|
const t = [];
|
|
999
999
|
let n = "", a = !1;
|
|
1000
1000
|
for (let i = 0; i < e.length; i += 1) {
|
|
@@ -1003,8 +1003,8 @@ function Rl(e) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
return t.push(n.trim()), t;
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return e.split(/\r?\n/).map((t) => t.trim()).filter(Boolean).slice(0, 4).map(
|
|
1006
|
+
function zl(e) {
|
|
1007
|
+
return e.split(/\r?\n/).map((t) => t.trim()).filter(Boolean).slice(0, 4).map(Ml);
|
|
1008
1008
|
}
|
|
1009
1009
|
function Bt(e, t) {
|
|
1010
1010
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
@@ -1040,7 +1040,7 @@ function _n(e, t = {}) {
|
|
|
1040
1040
|
size: Hn(e, ["size", "byteSize", "byte_size"]) ?? t.size
|
|
1041
1041
|
};
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function ql(e) {
|
|
1044
1044
|
if (!Number.isFinite(e) || e === void 0 || e < 0)
|
|
1045
1045
|
return "";
|
|
1046
1046
|
if (e < 1024)
|
|
@@ -1054,28 +1054,28 @@ function zl(e) {
|
|
|
1054
1054
|
function kn(e, t) {
|
|
1055
1055
|
return e.length === t.length && e.every((n, a) => Object.is(n, t[a]));
|
|
1056
1056
|
}
|
|
1057
|
-
const
|
|
1057
|
+
const Vl = 50, Dl = 8, Il = 42;
|
|
1058
1058
|
let Ft;
|
|
1059
|
-
function
|
|
1059
|
+
function Ll(e) {
|
|
1060
1060
|
return Array.from(e).reduce((t, n) => (n.codePointAt(0) ?? 0) >= 4352 ? t + 1 : /\s/.test(n) ? t + 0.35 : /[ilI|.,'`!:;]/.test(n) ? t + 0.3 : /[mwMW@#%&]/.test(n) ? t + 0.82 : /[A-Z0-9]/.test(n) ? t + 0.62 : /[a-z]/.test(n) ? t + 0.56 : t + 0.65, 0);
|
|
1061
1061
|
}
|
|
1062
1062
|
function wn(e) {
|
|
1063
|
-
return e.split(/\r\n|\r|\n/).reduce((t, n) => Math.max(t,
|
|
1063
|
+
return e.split(/\r\n|\r|\n/).reduce((t, n) => Math.max(t, Ll(n)), 0);
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function Pl(e) {
|
|
1066
1066
|
return /\r|\n/.test(e);
|
|
1067
1067
|
}
|
|
1068
1068
|
function Un(e, t) {
|
|
1069
1069
|
const n = e.trim();
|
|
1070
1070
|
return n.length > 0 ? Math.ceil(Math.max(2.4, wn(n) + 0.75) * 10) / 10 : Math.ceil(Math.max(3.4, wn(t ?? "") + 0.75) * 10) / 10;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Bl(e, t) {
|
|
1073
1073
|
return Math.ceil(Un(e, t) * 14 + 16);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return e.trim().length > 0 && Un(e, t) >
|
|
1075
|
+
function Ol(e, t) {
|
|
1076
|
+
return e.trim().length > 0 && Un(e, t) > Il;
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function Nl() {
|
|
1079
1079
|
if (Ft !== void 0)
|
|
1080
1080
|
return Ft;
|
|
1081
1081
|
if (typeof document > "u")
|
|
@@ -1088,32 +1088,32 @@ function Ol() {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
return Ft;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function Kl(e) {
|
|
1092
1092
|
return e.font && e.font !== "" ? e.font : `${e.fontStyle} ${e.fontVariant} ${e.fontWeight} ${e.fontSize} ${e.fontFamily}`;
|
|
1093
1093
|
}
|
|
1094
1094
|
function fa(e) {
|
|
1095
1095
|
const t = Number.parseFloat(e);
|
|
1096
1096
|
return Number.isFinite(t) ? t : 0;
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function jl(e) {
|
|
1099
1099
|
return e.boxSizing !== "border-box" ? 0 : fa(e.paddingLeft) + fa(e.paddingRight) + fa(e.borderLeftWidth) + fa(e.borderRightWidth);
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function Hl(e) {
|
|
1102
1102
|
if (typeof window > "u" || typeof window.getComputedStyle != "function")
|
|
1103
1103
|
return null;
|
|
1104
|
-
const t =
|
|
1104
|
+
const t = Nl();
|
|
1105
1105
|
if (!t)
|
|
1106
1106
|
return null;
|
|
1107
1107
|
const n = window.getComputedStyle(e);
|
|
1108
|
-
t.font =
|
|
1108
|
+
t.font = Kl(n);
|
|
1109
1109
|
const i = (e.value.length > 0 ? e.value : e.placeholder).split(/\r\n|\r|\n/).reduce((h, o) => Math.max(h, t.measureText(o).width), 0);
|
|
1110
1110
|
return Math.ceil(Math.max(
|
|
1111
|
-
|
|
1112
|
-
i +
|
|
1111
|
+
Vl,
|
|
1112
|
+
i + jl(n) + Dl
|
|
1113
1113
|
));
|
|
1114
1114
|
}
|
|
1115
1115
|
function ya(e) {
|
|
1116
|
-
const t =
|
|
1116
|
+
const t = Hl(e);
|
|
1117
1117
|
t !== null && e.style.setProperty("--aimd-rec-scalar-list-input-width", `${t}px`);
|
|
1118
1118
|
}
|
|
1119
1119
|
function Da(e) {
|
|
@@ -1122,7 +1122,7 @@ function Da(e) {
|
|
|
1122
1122
|
function Sn(e, t) {
|
|
1123
1123
|
return JSON.stringify(aa(va(e), t), null, 2);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Ul(e, t) {
|
|
1126
1126
|
if (e === null || Array.isArray(e) || typeof e == "object")
|
|
1127
1127
|
return !1;
|
|
1128
1128
|
if (t === "string")
|
|
@@ -1145,9 +1145,9 @@ function Cn(e, t) {
|
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
return { ok: !1, error: "syntax" };
|
|
1147
1147
|
}
|
|
1148
|
-
return Array.isArray(a) ? a.every((i) =>
|
|
1148
|
+
return Array.isArray(a) ? a.every((i) => Ul(i, t)) ? { ok: !0, value: aa(a, t) } : { ok: !1, error: "item" } : { ok: !1, error: "array" };
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Wl(e) {
|
|
1151
1151
|
return e === "int" ? "[1, 2]" : e === "float" ? "[1.2, 3.4]" : '["alpha", "beta"]';
|
|
1152
1152
|
}
|
|
1153
1153
|
function Tt(e) {
|
|
@@ -1196,7 +1196,7 @@ function Tt(e) {
|
|
|
1196
1196
|
l("path", { d: "M14 11v5" })
|
|
1197
1197
|
]);
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Gl(e, t) {
|
|
1200
1200
|
const n = t.map(xa).map((h) => h.trim()).filter(Boolean), a = n.length > 0 ? `e.g. ${n.join(", ")}` : void 0;
|
|
1201
1201
|
return {
|
|
1202
1202
|
tooltip: [e, a].filter((h) => !!h).join(`
|
|
@@ -1205,7 +1205,7 @@ function Wl(e, t) {
|
|
|
1205
1205
|
examples: n
|
|
1206
1206
|
};
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Ql(e) {
|
|
1209
1209
|
if (!e.description && e.examples.length === 0)
|
|
1210
1210
|
return null;
|
|
1211
1211
|
const t = [];
|
|
@@ -1222,7 +1222,7 @@ function Gl(e) {
|
|
|
1222
1222
|
role: "tooltip"
|
|
1223
1223
|
}, t);
|
|
1224
1224
|
}
|
|
1225
|
-
const
|
|
1225
|
+
const Yl = Ye({
|
|
1226
1226
|
name: "AimdVarField",
|
|
1227
1227
|
props: {
|
|
1228
1228
|
node: { type: Object, required: !0 },
|
|
@@ -1259,29 +1259,29 @@ const Ql = Ye({
|
|
|
1259
1259
|
o.value = null, m.value = "items", c.value = null, z.value = "", P.value = null, ae.value = null;
|
|
1260
1260
|
return;
|
|
1261
1261
|
}
|
|
1262
|
-
const E = rn(e.node.definition?.type || "str") ?? "string",
|
|
1262
|
+
const E = rn(e.node.definition?.type || "str") ?? "string", U = aa(va(K), E);
|
|
1263
1263
|
if (o.value) {
|
|
1264
1264
|
const R = aa(o.value, E);
|
|
1265
|
-
kn(
|
|
1265
|
+
kn(U, R) || (o.value = null);
|
|
1266
1266
|
}
|
|
1267
1267
|
if (c.value !== null) {
|
|
1268
1268
|
const R = Cn(c.value, E);
|
|
1269
|
-
R.ok && !kn(
|
|
1269
|
+
R.ok && !kn(U, R.value) && (c.value = null, z.value = "");
|
|
1270
1270
|
}
|
|
1271
1271
|
},
|
|
1272
1272
|
{ immediate: !0 }
|
|
1273
1273
|
), Se(
|
|
1274
1274
|
() => {
|
|
1275
|
-
const J = e.node.definition?.type || "str", K = ga(J), E = da(J, e.node.definition?.kwargs, e.fieldMeta),
|
|
1275
|
+
const J = e.node.definition?.type || "str", K = ga(J), E = da(J, e.node.definition?.kwargs, e.fieldMeta), U = Xt(e.value), R = i.value?.url || (U && e.resolveFile ? e.resolveFile(U) : null);
|
|
1276
1276
|
return E.kind === "csv" && R ? `${K}
|
|
1277
1277
|
${R}` : "";
|
|
1278
1278
|
},
|
|
1279
1279
|
(J) => {
|
|
1280
1280
|
const K = ++ue, [, E] = J.split(`
|
|
1281
1281
|
`);
|
|
1282
|
-
a.value = null, !(!E || typeof fetch != "function") && fetch(E).then((
|
|
1283
|
-
if (K !== ue || !
|
|
1284
|
-
const R =
|
|
1282
|
+
a.value = null, !(!E || typeof fetch != "function") && fetch(E).then((U) => U.ok ? U.text() : "").then((U) => {
|
|
1283
|
+
if (K !== ue || !U) return;
|
|
1284
|
+
const R = zl(U);
|
|
1285
1285
|
R.length > 0 && (a.value = { url: E, rows: R });
|
|
1286
1286
|
}).catch(() => {
|
|
1287
1287
|
});
|
|
@@ -1289,16 +1289,16 @@ ${R}` : "";
|
|
|
1289
1289
|
{ immediate: !0 }
|
|
1290
1290
|
), Se(
|
|
1291
1291
|
() => {
|
|
1292
|
-
const J = e.node.definition?.type || "str", K = ga(J), E = da(J, e.node.definition?.kwargs, e.fieldMeta),
|
|
1292
|
+
const J = e.node.definition?.type || "str", K = ga(J), E = da(J, e.node.definition?.kwargs, e.fieldMeta), U = Xt(e.value), R = U && e.resolveFile ? e.resolveFile(U) : null;
|
|
1293
1293
|
return {
|
|
1294
|
-
fileId:
|
|
1294
|
+
fileId: U ?? "",
|
|
1295
1295
|
fallbackUrl: R ?? "",
|
|
1296
1296
|
kind: E.kind,
|
|
1297
1297
|
type: J,
|
|
1298
1298
|
normalizedType: K
|
|
1299
1299
|
};
|
|
1300
1300
|
},
|
|
1301
|
-
async ({ fileId: J, fallbackUrl: K, kind: E, type:
|
|
1301
|
+
async ({ fileId: J, fallbackUrl: K, kind: E, type: U, normalizedType: R }) => {
|
|
1302
1302
|
if (!J) {
|
|
1303
1303
|
i.value = null;
|
|
1304
1304
|
return;
|
|
@@ -1316,8 +1316,8 @@ ${R}` : "";
|
|
|
1316
1316
|
ge
|
|
1317
1317
|
), !e.resolveFileInfo)
|
|
1318
1318
|
return;
|
|
1319
|
-
const
|
|
1320
|
-
type:
|
|
1319
|
+
const H = {
|
|
1320
|
+
type: U,
|
|
1321
1321
|
normalizedType: R,
|
|
1322
1322
|
fieldKey: `var:${e.node.id}`,
|
|
1323
1323
|
node: e.node,
|
|
@@ -1325,7 +1325,7 @@ ${R}` : "";
|
|
|
1325
1325
|
kind: E
|
|
1326
1326
|
};
|
|
1327
1327
|
try {
|
|
1328
|
-
const ie = await e.resolveFileInfo(J,
|
|
1328
|
+
const ie = await e.resolveFileInfo(J, H);
|
|
1329
1329
|
if (Xt(e.value) !== J)
|
|
1330
1330
|
return;
|
|
1331
1331
|
i.value = _n(ie, i.value ?? ge);
|
|
@@ -1334,9 +1334,9 @@ ${R}` : "";
|
|
|
1334
1334
|
},
|
|
1335
1335
|
{ immediate: !0 }
|
|
1336
1336
|
), () => {
|
|
1337
|
-
const J = e.node, K = J.id, E = J.definition?.type || "str",
|
|
1337
|
+
const J = e.node, K = J.id, E = J.definition?.type || "str", U = ga(E), R = e.inputKind, ne = ai(E), ge = R === "number" && !ne, H = e.fieldMeta, ie = e.disabled, ye = e.extraClasses, oe = H?.placeholder ?? Jl(J, H), N = e.displayValue, B = ni(E, H) ?? "plaintext", le = R === "number" ? ii(E, J.definition?.kwargs) : {}, se = R === "number" ? sn(N, E, J.definition?.kwargs) : null;
|
|
1338
1338
|
function F(A) {
|
|
1339
|
-
const L =
|
|
1339
|
+
const L = si(A, E, R, {
|
|
1340
1340
|
typePlugin: e.typePlugin
|
|
1341
1341
|
});
|
|
1342
1342
|
t("change", { id: K, value: L, type: E, inputKind: R });
|
|
@@ -1355,16 +1355,16 @@ ${R}` : "";
|
|
|
1355
1355
|
if (L.value = "", !x)
|
|
1356
1356
|
return;
|
|
1357
1357
|
n.value = "";
|
|
1358
|
-
const $ = da(E, J.definition?.kwargs,
|
|
1358
|
+
const $ = da(E, J.definition?.kwargs, H);
|
|
1359
1359
|
try {
|
|
1360
1360
|
const I = (e.uploadFile ? await e.uploadFile(x, {
|
|
1361
1361
|
type: E,
|
|
1362
|
-
normalizedType:
|
|
1362
|
+
normalizedType: U,
|
|
1363
1363
|
fieldKey: `var:${K}`,
|
|
1364
1364
|
node: J,
|
|
1365
|
-
fieldMeta:
|
|
1365
|
+
fieldMeta: H,
|
|
1366
1366
|
accept: $.accept
|
|
1367
|
-
}) : void 0) ??
|
|
1367
|
+
}) : void 0) ?? oi(x), j = Xt(I);
|
|
1368
1368
|
h.value = {
|
|
1369
1369
|
id: j,
|
|
1370
1370
|
name: x.name,
|
|
@@ -1389,7 +1389,7 @@ ${R}` : "";
|
|
|
1389
1389
|
e.assignerStatus ? l("span", { class: "aimd-rec-inline__header-assigner-state" }, [e.assignerStatus]) : null
|
|
1390
1390
|
]);
|
|
1391
1391
|
}, he = (A) => {
|
|
1392
|
-
const L = bn(
|
|
1392
|
+
const L = bn(H?.title), x = ja(J.definition), $ = L ?? ta(K, J.definition), v = (L ?? x) !== void 0 && $ !== K, I = bn(H?.description) ?? On(J.definition), j = jn(H), p = j.length > 0 ? j : _a(J.definition), D = Gl(I, p), b = !!D.description || D.examples.length > 0;
|
|
1393
1393
|
return l("span", {
|
|
1394
1394
|
class: [
|
|
1395
1395
|
"aimd-field",
|
|
@@ -1411,7 +1411,7 @@ ${R}` : "";
|
|
|
1411
1411
|
l("span", { class: "aimd-field__title", title: $ }, $),
|
|
1412
1412
|
e.required ? l(bt, { label: e.messages.common.required }) : null,
|
|
1413
1413
|
v ? l("span", { class: "aimd-field__key", title: K }, K) : null,
|
|
1414
|
-
|
|
1414
|
+
Ql(D)
|
|
1415
1415
|
]),
|
|
1416
1416
|
me(A)
|
|
1417
1417
|
]);
|
|
@@ -1419,7 +1419,7 @@ ${R}` : "";
|
|
|
1419
1419
|
e.assignerControl ? l("span", { class: "aimd-rec-inline__assigner-prefix" }, [e.assignerControl]) : null,
|
|
1420
1420
|
l("span", { class: "aimd-rec-inline__control-main" }, [A]),
|
|
1421
1421
|
e.assignerStatus ? l("span", { class: "aimd-rec-inline__assigner-status" }, [e.assignerStatus]) : null
|
|
1422
|
-
]), be = () => e.assignerError ? l("span", { class: "aimd-rec-inline__assigner-error" }, e.assignerError) : null, G =
|
|
1422
|
+
]), be = () => e.assignerError ? l("span", { class: "aimd-rec-inline__assigner-error" }, e.assignerError) : null, G = H?.enumOptions ?? [];
|
|
1423
1423
|
if (G.length) {
|
|
1424
1424
|
const A = Pn(G, e.value), L = Ka(E) ? null : "", x = L === null || A === "", $ = L === null ? Wa(e.messages) : oe ?? "";
|
|
1425
1425
|
return l("span", {
|
|
@@ -1467,7 +1467,7 @@ ${R}` : "";
|
|
|
1467
1467
|
"data-rec-focus-key": `var:${K}`,
|
|
1468
1468
|
type: "checkbox",
|
|
1469
1469
|
disabled: ie,
|
|
1470
|
-
checked:
|
|
1470
|
+
checked: ri(e.value),
|
|
1471
1471
|
onVnodeMounted: (A) => gt(A.el, R),
|
|
1472
1472
|
onVnodeUpdated: (A) => gt(A.el, R),
|
|
1473
1473
|
onChange: (A) => {
|
|
@@ -1525,14 +1525,14 @@ ${R}` : "";
|
|
|
1525
1525
|
{ controlRow: !1 }
|
|
1526
1526
|
);
|
|
1527
1527
|
if (R === "entity-ref") {
|
|
1528
|
-
const A =
|
|
1528
|
+
const A = li(E, J.definition?.kwargs, H) ?? { multiple: !1 };
|
|
1529
1529
|
return Q(
|
|
1530
|
-
l(
|
|
1530
|
+
l(Rl, {
|
|
1531
1531
|
node: J,
|
|
1532
1532
|
value: e.value,
|
|
1533
1533
|
disabled: ie,
|
|
1534
1534
|
messages: e.messages,
|
|
1535
|
-
fieldMeta:
|
|
1535
|
+
fieldMeta: H,
|
|
1536
1536
|
type: E,
|
|
1537
1537
|
entityConfig: A,
|
|
1538
1538
|
entityResolvers: e.entityResolvers,
|
|
@@ -1549,7 +1549,7 @@ ${R}` : "";
|
|
|
1549
1549
|
);
|
|
1550
1550
|
}
|
|
1551
1551
|
if (R === "file") {
|
|
1552
|
-
const A = da(E, J.definition?.kwargs,
|
|
1552
|
+
const A = da(E, J.definition?.kwargs, H), L = Xt(e.value), x = i.value, $ = x?.name || ln(e.value), v = !!(L || $), I = $ || (v ? e.messages.file.selected : oe || e.messages.file.choose), j = x?.url || (L && e.resolveFile ? e.resolveFile(L) : null), p = x?.thumbnailUrl || j, D = ql(x?.size), b = [A.badge, D].filter(Boolean).join(" · "), M = l("input", {
|
|
1553
1553
|
"data-rec-focus-key": `var:${K}`,
|
|
1554
1554
|
class: "aimd-rec-file-field__input",
|
|
1555
1555
|
type: "file",
|
|
@@ -1739,7 +1739,7 @@ ${R}` : "";
|
|
|
1739
1739
|
it("json", e.messages.scalarList.jsonMode)
|
|
1740
1740
|
])
|
|
1741
1741
|
]), ee = l("span", { class: "aimd-rec-scalar-list__rows" }, $.map((Y, fe) => {
|
|
1742
|
-
const ke = !ie && ($.length > 1 || Y.trim().length > 0), ot = !ie && $.length > 1, wt = ae.value === fe, St = wt && P.value !== null && P.value < fe ? "after" : "before", Ke = e.messages.scalarList.itemIndex(fe + 1), Le = oe ?? e.messages.scalarList.itemPlaceholder, dt = !L &&
|
|
1742
|
+
const ke = !ie && ($.length > 1 || Y.trim().length > 0), ot = !ie && $.length > 1, wt = ae.value === fe, St = wt && P.value !== null && P.value < fe ? "after" : "before", Ke = e.messages.scalarList.itemIndex(fe + 1), Le = oe ?? e.messages.scalarList.itemPlaceholder, dt = !L && Pl(Y), Ct = !L && Ol(Y, Le), xt = {
|
|
1743
1743
|
"data-rec-focus-key": fe === 0 ? `var:${K}` : `var:${K}:${fe}`,
|
|
1744
1744
|
class: [
|
|
1745
1745
|
"aimd-rec-scalar-list__input",
|
|
@@ -1750,7 +1750,7 @@ ${R}` : "";
|
|
|
1750
1750
|
title: Y.trim().length > 0 ? Y : void 0,
|
|
1751
1751
|
value: Y,
|
|
1752
1752
|
style: {
|
|
1753
|
-
"--aimd-rec-scalar-list-input-width": `${
|
|
1753
|
+
"--aimd-rec-scalar-list-input-width": `${Bl(Y, Le)}px`
|
|
1754
1754
|
},
|
|
1755
1755
|
onBlur: q
|
|
1756
1756
|
};
|
|
@@ -1853,7 +1853,7 @@ ${R}` : "";
|
|
|
1853
1853
|
language: "json",
|
|
1854
1854
|
disabled: ie,
|
|
1855
1855
|
compact: !0,
|
|
1856
|
-
"aria-label":
|
|
1856
|
+
"aria-label": Wl(A),
|
|
1857
1857
|
"onUpdate:modelValue": (Y) => Ce(Y),
|
|
1858
1858
|
onBlur: q
|
|
1859
1859
|
}),
|
|
@@ -1934,7 +1934,7 @@ ${R}` : "";
|
|
|
1934
1934
|
};
|
|
1935
1935
|
}
|
|
1936
1936
|
});
|
|
1937
|
-
function
|
|
1937
|
+
function Jl(e, t) {
|
|
1938
1938
|
const n = e.definition?.kwargs?.placeholder;
|
|
1939
1939
|
if (typeof n == "string" && n.trim())
|
|
1940
1940
|
return n.trim();
|
|
@@ -1978,7 +1978,7 @@ function Pt(e, t = e) {
|
|
|
1978
1978
|
function ma(e) {
|
|
1979
1979
|
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function Xl(e) {
|
|
1982
1982
|
return e.map((t) => ({
|
|
1983
1983
|
label: String(t),
|
|
1984
1984
|
value: t
|
|
@@ -1991,7 +1991,7 @@ function An(e) {
|
|
|
1991
1991
|
const t = e.example;
|
|
1992
1992
|
return t == null ? [] : [t];
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function Zl(e, t) {
|
|
1995
1995
|
const n = t.map(xa).map((h) => h.trim()).filter(Boolean), a = n.length > 0 ? `e.g. ${n.join(", ")}` : void 0;
|
|
1996
1996
|
return {
|
|
1997
1997
|
tooltip: [e, a].filter((h) => !!h).join(`
|
|
@@ -2017,7 +2017,7 @@ function En(e) {
|
|
|
2017
2017
|
role: "tooltip"
|
|
2018
2018
|
}, t);
|
|
2019
2019
|
}
|
|
2020
|
-
const
|
|
2020
|
+
const es = Ye({
|
|
2021
2021
|
name: "AimdVarTableField",
|
|
2022
2022
|
props: {
|
|
2023
2023
|
node: { type: Object, required: !0 },
|
|
@@ -2080,7 +2080,7 @@ const Zl = Ye({
|
|
|
2080
2080
|
}
|
|
2081
2081
|
m === X ? c += 1 : (m = X, c = 1), c >= 2 && (a.value = X, m = null, c = 0);
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function U() {
|
|
2084
2084
|
o !== null && cancelAnimationFrame(o), o = requestAnimationFrame(() => {
|
|
2085
2085
|
o = null, E();
|
|
2086
2086
|
});
|
|
@@ -2088,11 +2088,11 @@ const Zl = Ye({
|
|
|
2088
2088
|
function R() {
|
|
2089
2089
|
let F = 4;
|
|
2090
2090
|
const q = () => {
|
|
2091
|
-
if (
|
|
2091
|
+
if (U(), F -= 1, F > 0) {
|
|
2092
2092
|
requestAnimationFrame(q);
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
2095
|
-
i.value = !0,
|
|
2095
|
+
i.value = !0, U();
|
|
2096
2096
|
};
|
|
2097
2097
|
requestAnimationFrame(q);
|
|
2098
2098
|
}
|
|
@@ -2102,22 +2102,22 @@ const Zl = Ye({
|
|
|
2102
2102
|
function ge() {
|
|
2103
2103
|
return e.fieldMeta?.[`var_table:${e.node.id}`];
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function H(F) {
|
|
2106
2106
|
const q = e.fieldMeta?.[`var_table:${e.node.id}:${F}`], X = ha(ne(F));
|
|
2107
2107
|
return X.length > 0 && !q?.enumOptions ? {
|
|
2108
2108
|
...q ?? {},
|
|
2109
|
-
enumOptions:
|
|
2109
|
+
enumOptions: Xl(X)
|
|
2110
2110
|
} : q;
|
|
2111
2111
|
}
|
|
2112
2112
|
function ie(F, q) {
|
|
2113
2113
|
const X = ma(q?.description) ?? On(F), W = An(q), de = W.length > 0 ? W : _a(F);
|
|
2114
|
-
return
|
|
2114
|
+
return Zl(X, de);
|
|
2115
2115
|
}
|
|
2116
2116
|
function ye(F) {
|
|
2117
|
-
return ma(
|
|
2117
|
+
return ma(H(F)?.title) ?? ta(F, ne(F));
|
|
2118
2118
|
}
|
|
2119
2119
|
function oe(F) {
|
|
2120
|
-
const q = ne(F), X =
|
|
2120
|
+
const q = ne(F), X = H(F);
|
|
2121
2121
|
if (typeof X?.placeholder == "string" && X.placeholder.trim())
|
|
2122
2122
|
return X.placeholder.trim();
|
|
2123
2123
|
const W = q?.kwargs?.placeholder;
|
|
@@ -2127,7 +2127,7 @@ const Zl = Ye({
|
|
|
2127
2127
|
return me != null && typeof me != "object" ? xa(me) : "";
|
|
2128
2128
|
}
|
|
2129
2129
|
function N(F, q, X, W, de) {
|
|
2130
|
-
const me =
|
|
2130
|
+
const me = H(q)?.enumOptions ?? [], he = `var_table:${F}:${X}:${q}`, V = P(q), be = oe(q);
|
|
2131
2131
|
if (me.length > 0) {
|
|
2132
2132
|
const G = Pn(me, W[q]), Q = Ka(ne(q)?.type) ? null : "", Ae = Q === null || G === "", pe = Q === null ? Wa(e.messages) : be;
|
|
2133
2133
|
return l("select", {
|
|
@@ -2249,24 +2249,24 @@ const Zl = Ye({
|
|
|
2249
2249
|
}, [xn()])
|
|
2250
2250
|
]),
|
|
2251
2251
|
be ? l("div", { class: "aimd-rec-card__field aimd-rec-card__field--title" }, [
|
|
2252
|
-
le(be, ne(be), "aimd-rec-card__label",
|
|
2252
|
+
le(be, ne(be), "aimd-rec-card__label", H(be), e.requiredColumns.includes(be)),
|
|
2253
2253
|
B(F, be, he, me, "aimd-rec-card__input")
|
|
2254
2254
|
]) : null,
|
|
2255
2255
|
l("div", { class: "aimd-rec-card__body" }, G.map((Q) => l("div", {
|
|
2256
2256
|
key: `${F}-${V}-${Q}`,
|
|
2257
2257
|
class: "aimd-rec-card__field"
|
|
2258
2258
|
}, [
|
|
2259
|
-
le(Q, ne(Q), "aimd-rec-card__label",
|
|
2259
|
+
le(Q, ne(Q), "aimd-rec-card__label", H(Q), e.requiredColumns.includes(Q)),
|
|
2260
2260
|
B(F, Q, he, me, "aimd-rec-card__input")
|
|
2261
2261
|
])))
|
|
2262
2262
|
]);
|
|
2263
2263
|
});
|
|
2264
2264
|
}
|
|
2265
2265
|
return Ya(() => {
|
|
2266
|
-
n.value && (h = new ResizeObserver(() =>
|
|
2266
|
+
n.value && (h = new ResizeObserver(() => U()), h.observe(n.value), je(() => R()));
|
|
2267
2267
|
}), Mt(() => {
|
|
2268
2268
|
h?.disconnect(), o !== null && cancelAnimationFrame(o);
|
|
2269
|
-
}), Se(() => e.columns, () => je(() =>
|
|
2269
|
+
}), Se(() => e.columns, () => je(() => U())), Se(() => e.rows, () => je(() => U()), { deep: !0 }), () => {
|
|
2270
2270
|
const F = e.node.id, q = e.columns, X = e.rows, W = e.disabled, de = e.messages, me = ge(), he = ma(me?.title), V = ja(e.node.definition), be = ie(e.node.definition, me), G = he ?? ta(F, e.node.definition), Q = (he ?? V) !== void 0 && G !== F, Ae = !!be.description || be.examples.length > 0;
|
|
2271
2271
|
return l("div", {
|
|
2272
2272
|
ref: n,
|
|
@@ -2329,7 +2329,7 @@ const Zl = Ye({
|
|
|
2329
2329
|
"data-column-kind": Pt(pe, ye(pe)),
|
|
2330
2330
|
"data-column-id": pe
|
|
2331
2331
|
}, [
|
|
2332
|
-
le(pe, ne(pe), "aimd-rec-inline-table__column-label",
|
|
2332
|
+
le(pe, ne(pe), "aimd-rec-inline-table__column-label", H(pe), e.requiredColumns.includes(pe))
|
|
2333
2333
|
])),
|
|
2334
2334
|
l("th", { class: "aimd-rec-inline-table__action-head" }, de.table.actionColumn)
|
|
2335
2335
|
])
|
|
@@ -2406,13 +2406,13 @@ const Zl = Ye({
|
|
|
2406
2406
|
]);
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
|
-
}),
|
|
2409
|
+
}), ts = ["aria-label"], as = {
|
|
2410
2410
|
key: 1,
|
|
2411
2411
|
class: "aimd-protocol-recorder__search"
|
|
2412
|
-
},
|
|
2412
|
+
}, ns = ["aria-label", "value"], is = { value: "" }, rs = ["value"], ls = ["value", "placeholder", "aria-label"], ss = {
|
|
2413
2413
|
key: 0,
|
|
2414
2414
|
class: "aimd-protocol-recorder__search-count"
|
|
2415
|
-
},
|
|
2415
|
+
}, os = ["disabled", "aria-label", "title"], ds = ["disabled", "aria-label", "title"], cs = ["aria-label", "title"], us = ["aria-label", "title"], fs = /* @__PURE__ */ Ye({
|
|
2416
2416
|
__name: "AimdRecorderSearchToolbar",
|
|
2417
2417
|
props: {
|
|
2418
2418
|
fieldKey: {},
|
|
@@ -2434,19 +2434,19 @@ const Zl = Ye({
|
|
|
2434
2434
|
), (h, o) => (_(), w("div", {
|
|
2435
2435
|
class: Oe(["aimd-protocol-recorder__search-shell", { "aimd-protocol-recorder__search-shell--expanded": e.panelVisible }])
|
|
2436
2436
|
}, [
|
|
2437
|
-
e.panelVisible ? (_(), w("div",
|
|
2437
|
+
e.panelVisible ? (_(), w("div", as, [
|
|
2438
2438
|
g("select", {
|
|
2439
2439
|
class: "aimd-protocol-recorder__search-field",
|
|
2440
2440
|
"aria-label": e.messages.search.fieldLabel,
|
|
2441
2441
|
value: e.fieldKey,
|
|
2442
2442
|
onChange: o[1] || (o[1] = (m) => a("update:fieldKey", m.target.value))
|
|
2443
2443
|
}, [
|
|
2444
|
-
g("option",
|
|
2444
|
+
g("option", is, C(e.messages.search.allFields), 1),
|
|
2445
2445
|
(_(!0), w(Be, null, Ue(e.fieldRefs, (m) => (_(), w("option", {
|
|
2446
2446
|
key: m.key,
|
|
2447
2447
|
value: m.key
|
|
2448
|
-
}, C(m.label), 9,
|
|
2449
|
-
], 40,
|
|
2448
|
+
}, C(m.label), 9, rs))), 128))
|
|
2449
|
+
], 40, ns),
|
|
2450
2450
|
g("input", {
|
|
2451
2451
|
ref_key: "searchInputRef",
|
|
2452
2452
|
ref: i,
|
|
@@ -2457,8 +2457,8 @@ const Zl = Ye({
|
|
|
2457
2457
|
"aria-label": e.messages.search.label,
|
|
2458
2458
|
onInput: o[2] || (o[2] = (m) => a("update:query", m.target.value)),
|
|
2459
2459
|
onKeydown: o[3] || (o[3] = Ba(yt((m) => a("next"), ["prevent"]), ["enter"]))
|
|
2460
|
-
}, null, 40,
|
|
2461
|
-
e.resultLabel ? (_(), w("span",
|
|
2460
|
+
}, null, 40, ls),
|
|
2461
|
+
e.resultLabel ? (_(), w("span", ss, C(e.resultLabel), 1)) : re("", !0),
|
|
2462
2462
|
g("button", {
|
|
2463
2463
|
type: "button",
|
|
2464
2464
|
class: "aimd-protocol-recorder__search-button",
|
|
@@ -2466,7 +2466,7 @@ const Zl = Ye({
|
|
|
2466
2466
|
"aria-label": e.messages.search.previous,
|
|
2467
2467
|
title: e.messages.search.previous,
|
|
2468
2468
|
onClick: o[4] || (o[4] = (m) => a("previous"))
|
|
2469
|
-
}, " < ", 8,
|
|
2469
|
+
}, " < ", 8, os),
|
|
2470
2470
|
g("button", {
|
|
2471
2471
|
type: "button",
|
|
2472
2472
|
class: "aimd-protocol-recorder__search-button",
|
|
@@ -2474,7 +2474,7 @@ const Zl = Ye({
|
|
|
2474
2474
|
"aria-label": e.messages.search.next,
|
|
2475
2475
|
title: e.messages.search.next,
|
|
2476
2476
|
onClick: o[5] || (o[5] = (m) => a("next"))
|
|
2477
|
-
}, " > ", 8,
|
|
2477
|
+
}, " > ", 8, ds),
|
|
2478
2478
|
e.query || e.fieldKey ? (_(), w("button", {
|
|
2479
2479
|
key: 1,
|
|
2480
2480
|
type: "button",
|
|
@@ -2482,7 +2482,7 @@ const Zl = Ye({
|
|
|
2482
2482
|
"aria-label": e.messages.search.clear,
|
|
2483
2483
|
title: e.messages.search.clear,
|
|
2484
2484
|
onClick: o[6] || (o[6] = (m) => a("clear"))
|
|
2485
|
-
}, " x ", 8,
|
|
2485
|
+
}, " x ", 8, cs)) : (_(), w("button", {
|
|
2486
2486
|
key: 2,
|
|
2487
2487
|
type: "button",
|
|
2488
2488
|
class: "aimd-protocol-recorder__search-button aimd-protocol-recorder__search-button--collapse",
|
|
@@ -2490,7 +2490,7 @@ const Zl = Ye({
|
|
|
2490
2490
|
"aria-label": e.messages.search.collapse,
|
|
2491
2491
|
title: e.messages.search.collapse,
|
|
2492
2492
|
onClick: o[7] || (o[7] = (m) => a("collapse"))
|
|
2493
|
-
}, C(e.messages.search.collapse), 9,
|
|
2493
|
+
}, C(e.messages.search.collapse), 9, us))
|
|
2494
2494
|
])) : (_(), w("button", {
|
|
2495
2495
|
key: 0,
|
|
2496
2496
|
type: "button",
|
|
@@ -2498,10 +2498,10 @@ const Zl = Ye({
|
|
|
2498
2498
|
"data-rec-search-toggle": "",
|
|
2499
2499
|
"aria-label": e.messages.search.label,
|
|
2500
2500
|
onClick: o[0] || (o[0] = (m) => a("expand"))
|
|
2501
|
-
}, C(e.messages.search.label), 9,
|
|
2501
|
+
}, C(e.messages.search.label), 9, ts))
|
|
2502
2502
|
], 2));
|
|
2503
2503
|
}
|
|
2504
|
-
}),
|
|
2504
|
+
}), ms = /* @__PURE__ */ kt(fs, [["__scopeId", "data-v-11b82720"]]), Wn = Ht(() => import("./AimdMarkdownNoteField-YnyNmBvM.js")), vs = Ye({
|
|
2505
2505
|
name: "AimdStepField",
|
|
2506
2506
|
props: {
|
|
2507
2507
|
node: { type: Object, required: !0 },
|
|
@@ -2528,12 +2528,12 @@ const Zl = Ye({
|
|
|
2528
2528
|
}, { immediate: !0 }), Mt(() => {
|
|
2529
2529
|
m && clearInterval(m), c && clearTimeout(c);
|
|
2530
2530
|
});
|
|
2531
|
-
const P = k(() => e.detailDisplay === "always"), ae = k(() =>
|
|
2531
|
+
const P = k(() => e.detailDisplay === "always"), ae = k(() => di(e.state, n.value)), ue = k(() => ht(ae.value, e.locale)), J = k(() => typeof e.node.estimated_duration_ms == "number" ? ht(e.node.estimated_duration_ms, e.locale) : ""), K = k(() => ci(e.node)), E = k(() => ka(e.state)), U = k(() => ui(e.state)), R = k(() => !!e.state.annotation?.trim()), ne = k(() => fi(e.state, e.node.estimated_duration_ms, n.value)), ge = k(() => K.value === "countdown" || K.value === "both"), H = k(() => K.value === "elapsed" || K.value === "both"), ie = k(() => (E.value || U.value) && mi(ne.value, e.node.estimated_duration_ms)), ye = k(() => typeof ne.value == "number" && ne.value < 0), oe = k(() => ne.value == null ? "" : ye.value ? e.messages.step.overtimeBadge(ht(Math.abs(ne.value), e.locale)) : e.messages.step.remainingBadge(ht(Math.max(0, ne.value), e.locale))), N = k(() => ne.value == null ? "" : ye.value ? e.messages.step.overtimeDuration(ht(Math.abs(ne.value), e.locale)) : e.messages.step.remainingDuration(ht(Math.max(0, ne.value), e.locale))), B = k(() => ge.value), le = k(() => P.value || R.value || h.value), se = k(() => P.value || B.value || E.value || U.value || o.value), F = k(() => !se.value && (E.value || U.value));
|
|
2532
2532
|
function q() {
|
|
2533
2533
|
c && (clearTimeout(c), c = null);
|
|
2534
2534
|
}
|
|
2535
2535
|
function X() {
|
|
2536
|
-
R.value || (h.value = !1), !B.value && !E.value && !
|
|
2536
|
+
R.value || (h.value = !1), !B.value && !E.value && !U.value && (o.value = !1);
|
|
2537
2537
|
}
|
|
2538
2538
|
function W() {
|
|
2539
2539
|
q();
|
|
@@ -2566,7 +2566,7 @@ const Zl = Ye({
|
|
|
2566
2566
|
});
|
|
2567
2567
|
}
|
|
2568
2568
|
return () => {
|
|
2569
|
-
const G = e.node, Q = G.id, Ae = e.state, pe = G.step || "?", ce = !!G.check, A = e.bodyNodes.length > 0, L = e.disabled, x = e.extraClasses, $ =
|
|
2569
|
+
const G = e.node, Q = G.id, Ae = e.state, pe = G.step || "?", ce = !!G.check, A = e.bodyNodes.length > 0, L = e.disabled, x = e.extraClasses, $ = U.value || E.value, v = E.value ? e.messages.step.pauseTimer : U.value ? e.messages.step.resumeTimer : e.messages.step.startTimer, I = [], j = [], p = [], D = [];
|
|
2570
2570
|
if (se.value) {
|
|
2571
2571
|
const Te = [];
|
|
2572
2572
|
ge.value && oe.value && Te.push(
|
|
@@ -2577,7 +2577,7 @@ const Zl = Ye({
|
|
|
2577
2577
|
],
|
|
2578
2578
|
title: N.value
|
|
2579
2579
|
}, oe.value)
|
|
2580
|
-
),
|
|
2580
|
+
), H.value && Te.push(
|
|
2581
2581
|
l("span", {
|
|
2582
2582
|
class: [
|
|
2583
2583
|
"aimd-step-timer__pill",
|
|
@@ -2723,7 +2723,7 @@ const Zl = Ye({
|
|
|
2723
2723
|
]);
|
|
2724
2724
|
};
|
|
2725
2725
|
}
|
|
2726
|
-
}),
|
|
2726
|
+
}), gs = Ye({
|
|
2727
2727
|
name: "AimdCheckField",
|
|
2728
2728
|
props: {
|
|
2729
2729
|
node: { type: Object, required: !0 },
|
|
@@ -2750,8 +2750,8 @@ const Zl = Ye({
|
|
|
2750
2750
|
c();
|
|
2751
2751
|
}
|
|
2752
2752
|
function ae(E) {
|
|
2753
|
-
const
|
|
2754
|
-
|
|
2753
|
+
const U = E.relatedTarget;
|
|
2754
|
+
U instanceof Node && n.value?.contains(U) || (c(), h = setTimeout(() => {
|
|
2755
2755
|
h = null;
|
|
2756
2756
|
const R = typeof document < "u" ? document.activeElement : null;
|
|
2757
2757
|
R instanceof Node && n.value?.contains(R) || z();
|
|
@@ -2776,7 +2776,7 @@ const Zl = Ye({
|
|
|
2776
2776
|
return Mt(() => {
|
|
2777
2777
|
c();
|
|
2778
2778
|
}), () => {
|
|
2779
|
-
const E = e.node,
|
|
2779
|
+
const E = e.node, U = E.id, R = e.state, ne = e.disabled, ge = e.extraClasses, H = e.bodyNodes.length > 0, ie = !!(R.checked && E.checked_message), ye = E.label || U, oe = R.checked ? "aimd-rec-inline--check-passed" : "aimd-rec-inline--check-open", N = H ? "aimd-rec-inline--check-with-body" : "aimd-rec-inline--check-bodyless", B = !ne && !m.value ? [
|
|
2780
2780
|
l("button", {
|
|
2781
2781
|
type: "button",
|
|
2782
2782
|
class: "aimd-step-timer__btn aimd-step-timer__btn--ghost aimd-check-field__toggle-btn",
|
|
@@ -2794,14 +2794,14 @@ const Zl = Ye({
|
|
|
2794
2794
|
modelValue: R.annotation || "",
|
|
2795
2795
|
"onUpdate:modelValue": (se) => {
|
|
2796
2796
|
t("annotation-change", {
|
|
2797
|
-
id:
|
|
2797
|
+
id: U,
|
|
2798
2798
|
value: se
|
|
2799
2799
|
});
|
|
2800
2800
|
},
|
|
2801
2801
|
onClose: () => {
|
|
2802
|
-
i.value = !1, t("blur", { id:
|
|
2802
|
+
i.value = !1, t("blur", { id: U });
|
|
2803
2803
|
},
|
|
2804
|
-
onBlur: () => t("blur", { id:
|
|
2804
|
+
onBlur: () => t("blur", { id: U })
|
|
2805
2805
|
})
|
|
2806
2806
|
])
|
|
2807
2807
|
] : [];
|
|
@@ -2815,29 +2815,29 @@ const Zl = Ye({
|
|
|
2815
2815
|
l("div", { class: "aimd-check-field__header" }, [
|
|
2816
2816
|
l("label", { class: "aimd-rec-inline__check-wrap aimd-check-field__toggle" }, [
|
|
2817
2817
|
l("input", {
|
|
2818
|
-
"data-rec-focus-key": `check:${
|
|
2818
|
+
"data-rec-focus-key": `check:${U}:checked`,
|
|
2819
2819
|
type: "checkbox",
|
|
2820
2820
|
class: "aimd-checkbox",
|
|
2821
2821
|
disabled: ne,
|
|
2822
2822
|
checked: !!R.checked,
|
|
2823
2823
|
onChange: (se) => {
|
|
2824
2824
|
t("check-change", {
|
|
2825
|
-
id:
|
|
2825
|
+
id: U,
|
|
2826
2826
|
value: se.target.checked
|
|
2827
2827
|
});
|
|
2828
2828
|
},
|
|
2829
|
-
onBlur: () => t("blur", { id:
|
|
2829
|
+
onBlur: () => t("blur", { id: U })
|
|
2830
2830
|
}),
|
|
2831
2831
|
l("span", { class: "aimd-field__scope" }, Wt("check", e.messages)),
|
|
2832
|
-
|
|
2832
|
+
H ? null : l("span", { class: "aimd-field__name aimd-check-field__key" }, [
|
|
2833
2833
|
ye,
|
|
2834
2834
|
e.required ? l(bt, { label: e.messages.common.required }) : null
|
|
2835
2835
|
]),
|
|
2836
|
-
|
|
2836
|
+
H && e.required ? l(bt, { label: e.messages.common.required }) : null
|
|
2837
2837
|
]),
|
|
2838
2838
|
B.length > 0 ? l("div", { class: "aimd-check-field__actions" }, B) : null
|
|
2839
2839
|
]),
|
|
2840
|
-
|
|
2840
|
+
H ? l("div", {
|
|
2841
2841
|
class: [
|
|
2842
2842
|
"aimd-check-field__body",
|
|
2843
2843
|
R.checked ? "aimd-check-field__body--checked" : ""
|
|
@@ -2849,10 +2849,10 @@ const Zl = Ye({
|
|
|
2849
2849
|
]);
|
|
2850
2850
|
};
|
|
2851
2851
|
}
|
|
2852
|
-
}),
|
|
2852
|
+
}), hs = { class: "aimd-quiz-recorder__followups" }, ps = { class: "aimd-quiz-recorder__followup-label" }, ys = ["data-rec-focus-key", "checked", "disabled", "onChange"], bs = ["type", "step", "data-rec-focus-key", "value", "readonly", "onInput"], _s = {
|
|
2853
2853
|
key: 2,
|
|
2854
2854
|
class: "aimd-quiz-recorder__followup-unit"
|
|
2855
|
-
},
|
|
2855
|
+
}, ks = /* @__PURE__ */ Ye({
|
|
2856
2856
|
__name: "AimdQuizOptionFollowups",
|
|
2857
2857
|
props: {
|
|
2858
2858
|
quizId: {},
|
|
@@ -2876,12 +2876,12 @@ const Zl = Ye({
|
|
|
2876
2876
|
function o(m) {
|
|
2877
2877
|
return n.values[m.key] === !0;
|
|
2878
2878
|
}
|
|
2879
|
-
return (m, c) => (_(), w("div",
|
|
2879
|
+
return (m, c) => (_(), w("div", hs, [
|
|
2880
2880
|
(_(!0), w(Be, null, Ue(e.followups, (z) => (_(), w("label", {
|
|
2881
2881
|
key: `${e.quizId}-${e.inputScope}-${e.optionKey}-followup-${z.key}`,
|
|
2882
2882
|
class: "aimd-quiz-recorder__followup"
|
|
2883
2883
|
}, [
|
|
2884
|
-
g("span",
|
|
2884
|
+
g("span", ps, C(i(z)), 1),
|
|
2885
2885
|
z.type === "bool" ? (_(), w("input", {
|
|
2886
2886
|
key: 0,
|
|
2887
2887
|
type: "checkbox",
|
|
@@ -2890,7 +2890,7 @@ const Zl = Ye({
|
|
|
2890
2890
|
checked: o(z),
|
|
2891
2891
|
disabled: e.readonly,
|
|
2892
2892
|
onChange: (P) => a("update", z, P.target.checked)
|
|
2893
|
-
}, null, 40,
|
|
2893
|
+
}, null, 40, ys)) : (_(), w("input", {
|
|
2894
2894
|
key: 1,
|
|
2895
2895
|
type: z.type === "str" ? "text" : "number",
|
|
2896
2896
|
step: z.type === "int" ? "1" : void 0,
|
|
@@ -2899,69 +2899,69 @@ const Zl = Ye({
|
|
|
2899
2899
|
value: h(z),
|
|
2900
2900
|
readonly: e.readonly,
|
|
2901
2901
|
onInput: (P) => a("update", z, P.target.value)
|
|
2902
|
-
}, null, 40,
|
|
2903
|
-
z.unit ? (_(), w("span",
|
|
2902
|
+
}, null, 40, bs)),
|
|
2903
|
+
z.unit ? (_(), w("span", _s, C(z.unit), 1)) : re("", !0)
|
|
2904
2904
|
]))), 128))
|
|
2905
2905
|
]));
|
|
2906
2906
|
}
|
|
2907
|
-
}), La = /* @__PURE__ */ kt(
|
|
2907
|
+
}), La = /* @__PURE__ */ kt(ks, [["__scopeId", "data-v-1f7a8e4f"]]), ws = { class: "aimd-quiz__meta" }, Ss = { class: "aimd-field__scope" }, Cs = { class: "aimd-field__name" }, xs = { class: "aimd-field__type" }, $s = {
|
|
2908
2908
|
key: 1,
|
|
2909
2909
|
class: "aimd-quiz__score"
|
|
2910
|
-
},
|
|
2910
|
+
}, As = {
|
|
2911
2911
|
key: 0,
|
|
2912
2912
|
class: "aimd-quiz__title"
|
|
2913
|
-
},
|
|
2913
|
+
}, Es = { class: "aimd-quiz__stem" }, Fs = {
|
|
2914
2914
|
key: 0,
|
|
2915
2915
|
class: "aimd-quiz-recorder__stem-text"
|
|
2916
|
-
},
|
|
2916
|
+
}, Ts = ["data-rec-focus-key", "placeholder", "readonly", "value", "onInput"], Rs = {
|
|
2917
2917
|
key: 1,
|
|
2918
2918
|
class: "aimd-quiz__description"
|
|
2919
|
-
},
|
|
2919
|
+
}, Ms = {
|
|
2920
2920
|
key: 2,
|
|
2921
2921
|
class: "aimd-quiz-recorder__options"
|
|
2922
|
-
},
|
|
2922
|
+
}, zs = { class: "aimd-quiz-recorder__option" }, qs = ["data-rec-focus-key", "name", "value", "disabled"], Vs = { class: "aimd-quiz-recorder__option-content" }, Ds = { class: "aimd-quiz-recorder__option-label" }, Is = {
|
|
2923
2923
|
key: 0,
|
|
2924
2924
|
class: "aimd-quiz-recorder__option-explanation"
|
|
2925
|
-
},
|
|
2925
|
+
}, Ls = {
|
|
2926
2926
|
key: 3,
|
|
2927
2927
|
class: "aimd-quiz-recorder__options"
|
|
2928
|
-
},
|
|
2928
|
+
}, Ps = { class: "aimd-quiz-recorder__option" }, Bs = ["data-rec-focus-key", "name", "value", "disabled"], Os = { class: "aimd-quiz-recorder__option-content" }, Ns = { class: "aimd-quiz-recorder__option-label" }, Ks = {
|
|
2929
2929
|
key: 0,
|
|
2930
2930
|
class: "aimd-quiz-recorder__option-explanation"
|
|
2931
|
-
},
|
|
2931
|
+
}, js = {
|
|
2932
2932
|
key: 4,
|
|
2933
2933
|
class: "aimd-quiz-recorder__options"
|
|
2934
|
-
},
|
|
2934
|
+
}, Hs = { class: "aimd-quiz-recorder__option" }, Us = ["data-rec-focus-key", "disabled", "checked", "onChange"], Ws = { class: "aimd-quiz-recorder__option-content" }, Gs = { class: "aimd-quiz-recorder__option-label" }, Qs = {
|
|
2935
2935
|
key: 0,
|
|
2936
2936
|
class: "aimd-quiz-recorder__option-explanation"
|
|
2937
|
-
},
|
|
2937
|
+
}, Ys = ["data-rec-focus-key", "placeholder", "readonly"], Js = {
|
|
2938
2938
|
key: 6,
|
|
2939
2939
|
class: "aimd-scale"
|
|
2940
|
-
},
|
|
2940
|
+
}, Xs = { class: "aimd-scale__item-stem" }, Zs = { class: "aimd-scale__item-options" }, eo = ["data-rec-focus-key", "name", "value", "checked", "disabled", "onChange"], to = {
|
|
2941
2941
|
key: 7,
|
|
2942
2942
|
class: "aimd-scale"
|
|
2943
|
-
},
|
|
2943
|
+
}, ao = { class: "aimd-scale__table" }, no = {
|
|
2944
2944
|
class: "aimd-scale__item-stem",
|
|
2945
2945
|
scope: "row"
|
|
2946
|
-
},
|
|
2946
|
+
}, io = { class: "aimd-scale__cell-label" }, ro = ["data-rec-focus-key", "name", "value", "checked", "disabled", "onChange"], lo = { class: "aimd-quiz__grade-meta" }, so = {
|
|
2947
2947
|
key: 0,
|
|
2948
2948
|
class: "aimd-quiz__grade-band"
|
|
2949
|
-
},
|
|
2949
|
+
}, oo = {
|
|
2950
2950
|
key: 1,
|
|
2951
2951
|
class: "aimd-quiz__grade-band"
|
|
2952
|
-
},
|
|
2952
|
+
}, co = {
|
|
2953
2953
|
key: 2,
|
|
2954
2954
|
class: "aimd-quiz__grade-review"
|
|
2955
|
-
},
|
|
2955
|
+
}, uo = {
|
|
2956
2956
|
key: 3,
|
|
2957
2957
|
class: "aimd-quiz__grade-feedback"
|
|
2958
|
-
},
|
|
2958
|
+
}, fo = {
|
|
2959
2959
|
key: 4,
|
|
2960
2960
|
class: "aimd-quiz__grade-list"
|
|
2961
|
-
},
|
|
2961
|
+
}, mo = {
|
|
2962
2962
|
key: 5,
|
|
2963
2963
|
class: "aimd-quiz__grade-list"
|
|
2964
|
-
},
|
|
2964
|
+
}, vo = /* @__PURE__ */ Ye({
|
|
2965
2965
|
__name: "AimdQuizRecorder",
|
|
2966
2966
|
props: {
|
|
2967
2967
|
quiz: {},
|
|
@@ -3066,10 +3066,10 @@ const Zl = Ye({
|
|
|
3066
3066
|
set(p) {
|
|
3067
3067
|
K(p);
|
|
3068
3068
|
}
|
|
3069
|
-
}),
|
|
3069
|
+
}), U = k(() => {
|
|
3070
3070
|
const p = c();
|
|
3071
3071
|
return Array.isArray(p) ? p.filter((D) => typeof D == "string") : [];
|
|
3072
|
-
}), R = k(() => n.quiz.type !== "choice" ? [] : n.quiz.mode === "single" ? E.value ? [E.value] : [] :
|
|
3072
|
+
}), R = k(() => n.quiz.type !== "choice" ? [] : n.quiz.mode === "single" ? E.value ? [E.value] : [] : U.value), ne = k({
|
|
3073
3073
|
get() {
|
|
3074
3074
|
const p = c();
|
|
3075
3075
|
return typeof p == "boolean" ? p : null;
|
|
@@ -3084,16 +3084,16 @@ const Zl = Ye({
|
|
|
3084
3084
|
}), ge = k(() => n.quiz.type !== "true_false" ? [] : (Array.isArray(n.quiz.options) && n.quiz.options.length > 0 ? n.quiz.options : [
|
|
3085
3085
|
{ key: "true", text: "True" },
|
|
3086
3086
|
{ key: "false", text: "False" }
|
|
3087
|
-
]).filter((D) => D.key === "true" || D.key === "false")),
|
|
3087
|
+
]).filter((D) => D.key === "true" || D.key === "false")), H = k(() => n.quiz.type === "true_false" ? typeof ne.value == "boolean" ? [String(ne.value)] : [] : R.value);
|
|
3088
3088
|
function ie(p) {
|
|
3089
|
-
return
|
|
3089
|
+
return U.value.includes(p);
|
|
3090
3090
|
}
|
|
3091
3091
|
function ye(p, D) {
|
|
3092
|
-
const b =
|
|
3092
|
+
const b = U.value, M = D ? [.../* @__PURE__ */ new Set([...b, p])] : b.filter((Z) => Z !== p);
|
|
3093
3093
|
K(M);
|
|
3094
3094
|
}
|
|
3095
3095
|
function oe(p) {
|
|
3096
|
-
return Array.isArray(p.followups) && p.followups.length > 0 &&
|
|
3096
|
+
return Array.isArray(p.followups) && p.followups.length > 0 && H.value.includes(p.key);
|
|
3097
3097
|
}
|
|
3098
3098
|
function N(p) {
|
|
3099
3099
|
return ae()[p] || {};
|
|
@@ -3162,7 +3162,7 @@ const Zl = Ye({
|
|
|
3162
3162
|
function he(p) {
|
|
3163
3163
|
return typeof p.points == "number" && Number.isFinite(p.points) ? `${p.text} (${p.points})` : p.text;
|
|
3164
3164
|
}
|
|
3165
|
-
const V = k(() => Xa(n.locale, n.messages)), be = k(() =>
|
|
3165
|
+
const V = k(() => Xa(n.locale, n.messages)), be = k(() => zi(n.quiz.type, V.value, n.quiz.mode)), G = k(() => n.quiz.type === "scale" && Array.isArray(n.quiz.items) ? n.quiz.items : []), Q = k(() => n.quiz.type === "scale" && Array.isArray(n.quiz.options) ? n.quiz.options : []), Ae = k(() => n.quiz.type === "scale" && br(n.quiz, n.modelValue)), pe = k(() => n.quiz.type !== "scale" || !Ae.value ? null : _r(n.quiz, n.modelValue)), ce = k(() => {
|
|
3166
3166
|
if (n.grade)
|
|
3167
3167
|
return n.grade;
|
|
3168
3168
|
if (n.quiz.type !== "scale")
|
|
@@ -3214,27 +3214,27 @@ const Zl = Ye({
|
|
|
3214
3214
|
}
|
|
3215
3215
|
}), x = k(() => Array.isArray(ce.value?.blank_results) ? ce.value.blank_results : []), $ = k(() => Array.isArray(ce.value?.rubric_results) ? ce.value.rubric_results : []), v = k(() => !!(ce.value && ce.value.status !== "ungraded")), I = k(() => !(!ce.value || ce.value.status === "ungraded" && !ce.value.feedback && !ce.value.review_required && !ce.value.band && x.value.length === 0 && $.value.length === 0));
|
|
3216
3216
|
function j(p, D) {
|
|
3217
|
-
return !D?.trim() || !
|
|
3217
|
+
return !D?.trim() || !H.value.includes(p) ? !1 : n.choiceOptionExplanationMode === "selected" ? !0 : n.choiceOptionExplanationMode === "submitted" ? n.submitted : n.choiceOptionExplanationMode === "graded" ? v.value : !1;
|
|
3218
3218
|
}
|
|
3219
3219
|
return (p, D) => (_(), w("div", {
|
|
3220
3220
|
class: Oe(["aimd-quiz-recorder aimd-field aimd-field--quiz", ...e.extraClasses])
|
|
3221
3221
|
}, [
|
|
3222
|
-
g("div",
|
|
3223
|
-
g("span",
|
|
3224
|
-
g("span",
|
|
3222
|
+
g("div", ws, [
|
|
3223
|
+
g("span", Ss, C(Ve(Wt)("quiz", V.value)), 1),
|
|
3224
|
+
g("span", Cs, C(e.quiz.id), 1),
|
|
3225
3225
|
e.required ? (_(), ft(bt, {
|
|
3226
3226
|
key: 0,
|
|
3227
3227
|
label: V.value.common.required
|
|
3228
3228
|
}, null, 8, ["label"])) : re("", !0),
|
|
3229
|
-
g("span",
|
|
3230
|
-
typeof e.quiz.score == "number" ? (_(), w("span",
|
|
3229
|
+
g("span", xs, "(" + C(be.value) + ")", 1),
|
|
3230
|
+
typeof e.quiz.score == "number" ? (_(), w("span", $s, C(V.value.quiz.score(e.quiz.score)), 1)) : re("", !0)
|
|
3231
3231
|
]),
|
|
3232
|
-
e.quiz.title ? (_(), w("div",
|
|
3233
|
-
g("div",
|
|
3232
|
+
e.quiz.title ? (_(), w("div", As, C(e.quiz.title), 1)) : re("", !0),
|
|
3233
|
+
g("div", Es, [
|
|
3234
3234
|
(_(!0), w(Be, null, Ue(h.value, (b, M) => (_(), w(Be, {
|
|
3235
3235
|
key: `${e.quiz.id}-stem-${M}`
|
|
3236
3236
|
}, [
|
|
3237
|
-
b.type === "text" ? (_(), w("span",
|
|
3237
|
+
b.type === "text" ? (_(), w("span", Fs, C(b.value), 1)) : (_(), w("input", {
|
|
3238
3238
|
key: 1,
|
|
3239
3239
|
class: "aimd-quiz-recorder__blank-input",
|
|
3240
3240
|
type: "text",
|
|
@@ -3243,16 +3243,16 @@ const Zl = Ye({
|
|
|
3243
3243
|
readonly: e.readonly,
|
|
3244
3244
|
value: F(b.key),
|
|
3245
3245
|
onInput: (Z) => q(b.key, Z.target.value)
|
|
3246
|
-
}, null, 40,
|
|
3246
|
+
}, null, 40, Ts))
|
|
3247
3247
|
], 64))), 128))
|
|
3248
3248
|
]),
|
|
3249
|
-
e.quiz.description ? (_(), w("div",
|
|
3250
|
-
e.quiz.type === "true_false" && ge.value.length ? (_(), w("div",
|
|
3249
|
+
e.quiz.description ? (_(), w("div", Rs, C(e.quiz.description), 1)) : re("", !0),
|
|
3250
|
+
e.quiz.type === "true_false" && ge.value.length ? (_(), w("div", Ms, [
|
|
3251
3251
|
(_(!0), w(Be, null, Ue(ge.value, (b) => (_(), w("div", {
|
|
3252
3252
|
key: `${e.quiz.id}-true-false-${b.key}`,
|
|
3253
3253
|
class: "aimd-quiz-recorder__option-frame"
|
|
3254
3254
|
}, [
|
|
3255
|
-
g("label",
|
|
3255
|
+
g("label", zs, [
|
|
3256
3256
|
Nt(g("input", {
|
|
3257
3257
|
"onUpdate:modelValue": D[0] || (D[0] = (M) => ne.value = M),
|
|
3258
3258
|
type: "radio",
|
|
@@ -3261,12 +3261,12 @@ const Zl = Ye({
|
|
|
3261
3261
|
name: `${e.quiz.id}-true-false`,
|
|
3262
3262
|
value: b.key === "true",
|
|
3263
3263
|
disabled: e.readonly
|
|
3264
|
-
}, null, 8,
|
|
3264
|
+
}, null, 8, qs), [
|
|
3265
3265
|
[an, ne.value]
|
|
3266
3266
|
]),
|
|
3267
|
-
g("span",
|
|
3268
|
-
g("span",
|
|
3269
|
-
j(b.key, b.explanation) ? (_(), w("span",
|
|
3267
|
+
g("span", Vs, [
|
|
3268
|
+
g("span", Ds, C(b.text), 1),
|
|
3269
|
+
j(b.key, b.explanation) ? (_(), w("span", Is, C(b.explanation), 1)) : re("", !0)
|
|
3270
3270
|
])
|
|
3271
3271
|
]),
|
|
3272
3272
|
oe(b) ? (_(), ft(La, {
|
|
@@ -3282,12 +3282,12 @@ const Zl = Ye({
|
|
|
3282
3282
|
}, null, 8, ["quiz-id", "option-key", "followups", "values", "readonly", "focus-key-prefix", "onUpdate"])) : re("", !0)
|
|
3283
3283
|
]))), 128))
|
|
3284
3284
|
])) : re("", !0),
|
|
3285
|
-
e.quiz.type === "choice" && e.quiz.mode === "single" && e.quiz.options?.length ? (_(), w("div",
|
|
3285
|
+
e.quiz.type === "choice" && e.quiz.mode === "single" && e.quiz.options?.length ? (_(), w("div", Ls, [
|
|
3286
3286
|
(_(!0), w(Be, null, Ue(e.quiz.options, (b) => (_(), w("div", {
|
|
3287
3287
|
key: `${e.quiz.id}-single-${b.key}`,
|
|
3288
3288
|
class: "aimd-quiz-recorder__option-frame"
|
|
3289
3289
|
}, [
|
|
3290
|
-
g("label",
|
|
3290
|
+
g("label", Ps, [
|
|
3291
3291
|
Nt(g("input", {
|
|
3292
3292
|
"onUpdate:modelValue": D[1] || (D[1] = (M) => E.value = M),
|
|
3293
3293
|
type: "radio",
|
|
@@ -3296,12 +3296,12 @@ const Zl = Ye({
|
|
|
3296
3296
|
name: `${e.quiz.id}-single`,
|
|
3297
3297
|
value: b.key,
|
|
3298
3298
|
disabled: e.readonly
|
|
3299
|
-
}, null, 8,
|
|
3299
|
+
}, null, 8, Bs), [
|
|
3300
3300
|
[an, E.value]
|
|
3301
3301
|
]),
|
|
3302
|
-
g("span",
|
|
3303
|
-
g("span",
|
|
3304
|
-
j(b.key, b.explanation) ? (_(), w("span",
|
|
3302
|
+
g("span", Os, [
|
|
3303
|
+
g("span", Ns, C(b.key) + ". " + C(b.text), 1),
|
|
3304
|
+
j(b.key, b.explanation) ? (_(), w("span", Ks, C(b.explanation), 1)) : re("", !0)
|
|
3305
3305
|
])
|
|
3306
3306
|
]),
|
|
3307
3307
|
oe(b) ? (_(), ft(La, {
|
|
@@ -3317,12 +3317,12 @@ const Zl = Ye({
|
|
|
3317
3317
|
}, null, 8, ["quiz-id", "option-key", "followups", "values", "readonly", "focus-key-prefix", "onUpdate"])) : re("", !0)
|
|
3318
3318
|
]))), 128))
|
|
3319
3319
|
])) : re("", !0),
|
|
3320
|
-
e.quiz.type === "choice" && e.quiz.mode === "multiple" && e.quiz.options?.length ? (_(), w("div",
|
|
3320
|
+
e.quiz.type === "choice" && e.quiz.mode === "multiple" && e.quiz.options?.length ? (_(), w("div", js, [
|
|
3321
3321
|
(_(!0), w(Be, null, Ue(e.quiz.options, (b) => (_(), w("div", {
|
|
3322
3322
|
key: `${e.quiz.id}-multiple-${b.key}`,
|
|
3323
3323
|
class: "aimd-quiz-recorder__option-frame"
|
|
3324
3324
|
}, [
|
|
3325
|
-
g("label",
|
|
3325
|
+
g("label", Hs, [
|
|
3326
3326
|
g("input", {
|
|
3327
3327
|
type: "checkbox",
|
|
3328
3328
|
class: "aimd-quiz-recorder__choice-input",
|
|
@@ -3330,10 +3330,10 @@ const Zl = Ye({
|
|
|
3330
3330
|
disabled: e.readonly,
|
|
3331
3331
|
checked: ie(b.key),
|
|
3332
3332
|
onChange: (M) => ye(b.key, M.target.checked)
|
|
3333
|
-
}, null, 40,
|
|
3334
|
-
g("span",
|
|
3335
|
-
g("span",
|
|
3336
|
-
j(b.key, b.explanation) ? (_(), w("span",
|
|
3333
|
+
}, null, 40, Us),
|
|
3334
|
+
g("span", Ws, [
|
|
3335
|
+
g("span", Gs, C(b.key) + ". " + C(b.text), 1),
|
|
3336
|
+
j(b.key, b.explanation) ? (_(), w("span", Qs, C(b.explanation), 1)) : re("", !0)
|
|
3337
3337
|
])
|
|
3338
3338
|
]),
|
|
3339
3339
|
oe(b) ? (_(), ft(La, {
|
|
@@ -3357,16 +3357,16 @@ const Zl = Ye({
|
|
|
3357
3357
|
placeholder: V.value.quiz.openPlaceholder,
|
|
3358
3358
|
rows: "4",
|
|
3359
3359
|
readonly: e.readonly
|
|
3360
|
-
}, null, 8,
|
|
3360
|
+
}, null, 8, Ys)), [
|
|
3361
3361
|
[ba, me.value]
|
|
3362
3362
|
]) : re("", !0),
|
|
3363
|
-
e.quiz.type === "scale" && G.value.length && Q.value.length && e.quiz.display === "list" ? (_(), w("div",
|
|
3363
|
+
e.quiz.type === "scale" && G.value.length && Q.value.length && e.quiz.display === "list" ? (_(), w("div", Js, [
|
|
3364
3364
|
(_(!0), w(Be, null, Ue(G.value, (b) => (_(), w("div", {
|
|
3365
3365
|
key: `${e.quiz.id}-scale-list-${b.key}`,
|
|
3366
3366
|
class: "aimd-scale__list-item"
|
|
3367
3367
|
}, [
|
|
3368
|
-
g("div",
|
|
3369
|
-
g("div",
|
|
3368
|
+
g("div", Xs, C(b.stem), 1),
|
|
3369
|
+
g("div", Zs, [
|
|
3370
3370
|
(_(!0), w(Be, null, Ue(Q.value, (M) => (_(), w("label", {
|
|
3371
3371
|
key: `${e.quiz.id}-scale-list-${b.key}-${M.key}`,
|
|
3372
3372
|
class: "aimd-scale__option"
|
|
@@ -3380,14 +3380,14 @@ const Zl = Ye({
|
|
|
3380
3380
|
checked: W(b.key) === M.key,
|
|
3381
3381
|
disabled: e.readonly,
|
|
3382
3382
|
onChange: (Z) => de(b.key, M.key)
|
|
3383
|
-
}, null, 40,
|
|
3383
|
+
}, null, 40, eo),
|
|
3384
3384
|
g("span", null, C(he(M)), 1)
|
|
3385
3385
|
]))), 128))
|
|
3386
3386
|
])
|
|
3387
3387
|
]))), 128))
|
|
3388
3388
|
])) : re("", !0),
|
|
3389
|
-
e.quiz.type === "scale" && G.value.length && Q.value.length && e.quiz.display !== "list" ? (_(), w("div",
|
|
3390
|
-
g("table",
|
|
3389
|
+
e.quiz.type === "scale" && G.value.length && Q.value.length && e.quiz.display !== "list" ? (_(), w("div", to, [
|
|
3390
|
+
g("table", ao, [
|
|
3391
3391
|
g("thead", null, [
|
|
3392
3392
|
g("tr", null, [
|
|
3393
3393
|
D[3] || (D[3] = g("th", { class: "aimd-scale__item-header" }, "Item", -1)),
|
|
@@ -3400,12 +3400,12 @@ const Zl = Ye({
|
|
|
3400
3400
|
(_(!0), w(Be, null, Ue(G.value, (b) => (_(), w("tr", {
|
|
3401
3401
|
key: `${e.quiz.id}-scale-row-${b.key}`
|
|
3402
3402
|
}, [
|
|
3403
|
-
g("th",
|
|
3403
|
+
g("th", no, C(b.stem), 1),
|
|
3404
3404
|
(_(!0), w(Be, null, Ue(Q.value, (M) => (_(), w("td", {
|
|
3405
3405
|
key: `${e.quiz.id}-scale-cell-${b.key}-${M.key}`,
|
|
3406
3406
|
class: "aimd-scale__cell"
|
|
3407
3407
|
}, [
|
|
3408
|
-
g("label",
|
|
3408
|
+
g("label", io, [
|
|
3409
3409
|
g("input", {
|
|
3410
3410
|
type: "radio",
|
|
3411
3411
|
class: "aimd-quiz-recorder__choice-input",
|
|
@@ -3415,7 +3415,7 @@ const Zl = Ye({
|
|
|
3415
3415
|
checked: W(b.key) === M.key,
|
|
3416
3416
|
disabled: e.readonly,
|
|
3417
3417
|
onChange: (Z) => de(b.key, M.key)
|
|
3418
|
-
}, null, 40,
|
|
3418
|
+
}, null, 40, ro)
|
|
3419
3419
|
])
|
|
3420
3420
|
]))), 128))
|
|
3421
3421
|
]))), 128))
|
|
@@ -3426,7 +3426,7 @@ const Zl = Ye({
|
|
|
3426
3426
|
key: 8,
|
|
3427
3427
|
class: Oe(["aimd-quiz__grade-panel", `aimd-quiz__grade-panel--${A.value}`])
|
|
3428
3428
|
}, [
|
|
3429
|
-
g("div",
|
|
3429
|
+
g("div", lo, [
|
|
3430
3430
|
g("span", {
|
|
3431
3431
|
class: Oe(["aimd-quiz__grade-status", `aimd-quiz__grade-status--${A.value}`])
|
|
3432
3432
|
}, C(L.value), 3),
|
|
@@ -3434,25 +3434,25 @@ const Zl = Ye({
|
|
|
3434
3434
|
class: Oe(["aimd-quiz__grade-score", `aimd-quiz__grade-score--${A.value}`])
|
|
3435
3435
|
}, C(V.value.quiz.gradedScore(ce.value.earned_score, ce.value.max_score)), 3)
|
|
3436
3436
|
]),
|
|
3437
|
-
ce.value.band ? (_(), w("div",
|
|
3437
|
+
ce.value.band ? (_(), w("div", so, [
|
|
3438
3438
|
g("strong", null, C(V.value.quiz.classification) + ":", 1),
|
|
3439
3439
|
nt(" " + C(ce.value.band.label), 1)
|
|
3440
3440
|
])) : re("", !0),
|
|
3441
|
-
ce.value.band?.interpretation ? (_(), w("div",
|
|
3441
|
+
ce.value.band?.interpretation ? (_(), w("div", oo, [
|
|
3442
3442
|
g("strong", null, C(V.value.quiz.interpretation) + ":", 1),
|
|
3443
3443
|
nt(" " + C(ce.value.band.interpretation), 1)
|
|
3444
3444
|
])) : re("", !0),
|
|
3445
|
-
ce.value.review_required ? (_(), w("div",
|
|
3446
|
-
ce.value.feedback ? (_(), w("div",
|
|
3445
|
+
ce.value.review_required ? (_(), w("div", co, C(V.value.quiz.reviewRequired), 1)) : re("", !0),
|
|
3446
|
+
ce.value.feedback ? (_(), w("div", uo, [
|
|
3447
3447
|
g("strong", null, C(V.value.quiz.feedback) + ":", 1),
|
|
3448
3448
|
nt(" " + C(ce.value.feedback), 1)
|
|
3449
3449
|
])) : re("", !0),
|
|
3450
|
-
x.value.length ? (_(), w("ul",
|
|
3450
|
+
x.value.length ? (_(), w("ul", fo, [
|
|
3451
3451
|
(_(!0), w(Be, null, Ue(x.value, (b) => (_(), w("li", {
|
|
3452
3452
|
key: `${e.quiz.id}-grade-blank-${b.key}`
|
|
3453
3453
|
}, C(b.key) + " · " + C(V.value.quiz.gradedScore(b.earned_score, b.max_score)), 1))), 128))
|
|
3454
3454
|
])) : re("", !0),
|
|
3455
|
-
$.value.length ? (_(), w("ul",
|
|
3455
|
+
$.value.length ? (_(), w("ul", mo, [
|
|
3456
3456
|
(_(!0), w(Be, null, Ue($.value, (b) => (_(), w("li", {
|
|
3457
3457
|
key: `${e.quiz.id}-grade-rubric-${b.id}`
|
|
3458
3458
|
}, C(b.id) + " · " + C(V.value.quiz.gradedScore(b.earned_score, b.max_score)), 1))), 128))
|
|
@@ -3460,15 +3460,15 @@ const Zl = Ye({
|
|
|
3460
3460
|
], 2)) : re("", !0)
|
|
3461
3461
|
], 2));
|
|
3462
3462
|
}
|
|
3463
|
-
}),
|
|
3463
|
+
}), go = /* @__PURE__ */ kt(vo, [["__scopeId", "data-v-b59dec34"]]), ho = {}, po = {
|
|
3464
3464
|
class: "aimd-rec-assigner-field__icon",
|
|
3465
3465
|
width: "1em",
|
|
3466
3466
|
height: "1em",
|
|
3467
3467
|
viewBox: "0 0 24 24",
|
|
3468
3468
|
"aria-hidden": "true"
|
|
3469
3469
|
};
|
|
3470
|
-
function
|
|
3471
|
-
return _(), w("svg",
|
|
3470
|
+
function yo(e, t) {
|
|
3471
|
+
return _(), w("svg", po, [...t[0] || (t[0] = [
|
|
3472
3472
|
g("g", {
|
|
3473
3473
|
fill: "currentColor",
|
|
3474
3474
|
"fill-rule": "evenodd",
|
|
@@ -3479,39 +3479,39 @@ function po(e, t) {
|
|
|
3479
3479
|
], -1)
|
|
3480
3480
|
])]);
|
|
3481
3481
|
}
|
|
3482
|
-
const
|
|
3482
|
+
const bo = /* @__PURE__ */ kt(ho, [["render", yo]]), _o = {
|
|
3483
3483
|
class: "aimd-rec-assigner-field__status-icon",
|
|
3484
3484
|
viewBox: "0 0 24 24",
|
|
3485
3485
|
width: "1em",
|
|
3486
3486
|
height: "1em",
|
|
3487
3487
|
"aria-hidden": "true"
|
|
3488
|
-
},
|
|
3488
|
+
}, ko = ["d"], wo = "M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H18C20.76 20 23 17.76 23 15C23 12.36 20.95 10.22 18.35 10.04H19.35ZM10.2 17.2L6.7 13.7L8.1 12.3L10.2 14.4L15.9 8.7L17.3 10.1L10.2 17.2Z", So = "M12 18.5c0 .5.07 1 .18 1.5H6.5c-1.5 0-2.81-.5-3.89-1.57C1.54 17.38 1 16.09 1 14.58q0-1.95 1.17-3.48C3.34 9.57 4 9.43 5.25 9.15c.42-1.53 1.25-2.77 2.5-3.72S10.42 4 12 4c1.95 0 3.6.68 4.96 2.04S19 9.05 19 11c1.15.13 2.1.63 2.86 1.5c.24.26.43.55.6.86A6.37 6.37 0 0 0 18.5 12c-.5 0-1 .07-1.5.18V11c0-1.38-.5-2.56-1.46-3.54C14.56 6.5 13.38 6 12 6s-2.56.5-3.54 1.46C7.5 8.44 7 9.62 7 11h-.5c-.97 0-1.79.34-2.47 1.03c-.69.68-1.03 1.5-1.03 2.47s.34 1.79 1.03 2.5c.68.66 1.5 1 2.47 1h5.53c-.03.17-.03.33-.03.5m11 0c0 2.5-2 4.5-4.5 4.5S14 21 14 18.5s2-4.5 4.5-4.5s4.5 2 4.5 4.5m-3 2.58L15.92 17c-.27.42-.42.94-.42 1.5c0 1.66 1.34 3 3 3c.56 0 1.08-.15 1.5-.42m1.5-2.58c0-1.66-1.34-3-3-3c-.56 0-1.08.15-1.5.42L21.08 20c.27-.42.42-.94.42-1.5", Co = /* @__PURE__ */ Ye({
|
|
3489
3489
|
__name: "AimdAssignerCloudStatusIcon",
|
|
3490
3490
|
props: {
|
|
3491
3491
|
variant: { default: "idle" }
|
|
3492
3492
|
},
|
|
3493
3493
|
setup(e) {
|
|
3494
3494
|
const t = e;
|
|
3495
|
-
return (n, a) => (_(), w("svg",
|
|
3495
|
+
return (n, a) => (_(), w("svg", _o, [
|
|
3496
3496
|
g("path", {
|
|
3497
3497
|
fill: "currentColor",
|
|
3498
|
-
d: t.variant === "done" ?
|
|
3499
|
-
}, null, 8,
|
|
3498
|
+
d: t.variant === "done" ? wo : So
|
|
3499
|
+
}, null, 8, ko)
|
|
3500
3500
|
]));
|
|
3501
3501
|
}
|
|
3502
|
-
}),
|
|
3502
|
+
}), xo = { class: "aimd-protocol-recorder" }, $o = {
|
|
3503
3503
|
key: 0,
|
|
3504
3504
|
class: "aimd-protocol-recorder__error"
|
|
3505
|
-
},
|
|
3505
|
+
}, Ao = {
|
|
3506
3506
|
key: 1,
|
|
3507
3507
|
class: "aimd-protocol-recorder__timing"
|
|
3508
|
-
},
|
|
3508
|
+
}, Eo = {
|
|
3509
3509
|
key: 0,
|
|
3510
3510
|
class: "aimd-protocol-recorder__timing-pill aimd-protocol-recorder__timing-pill--estimate"
|
|
3511
|
-
},
|
|
3511
|
+
}, Fo = {
|
|
3512
3512
|
key: 1,
|
|
3513
3513
|
class: "aimd-protocol-recorder__timing-pill"
|
|
3514
|
-
},
|
|
3514
|
+
}, To = {
|
|
3515
3515
|
key: 3,
|
|
3516
3516
|
class: "aimd-protocol-recorder__empty"
|
|
3517
3517
|
}, Za = /* @__PURE__ */ Ye({
|
|
@@ -3556,12 +3556,12 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3556
3556
|
emits: ["update:modelValue", "fields-change", "error", "validation", "field-change", "field-blur", "assigner-request", "assigner-cancel", "table-add-row", "table-remove-row"],
|
|
3557
3557
|
setup(e, { expose: t, emit: n }) {
|
|
3558
3558
|
const a = e, i = n, h = O([]), o = O(""), m = O(null), c = Oa(Ja()), z = O({});
|
|
3559
|
-
let P = 0, ae = 0, ue = !1, J = !1, K = Promise.resolve(), E = !1,
|
|
3559
|
+
let P = 0, ae = 0, ue = !1, J = !1, K = Promise.resolve(), E = !1, U = null, R = null;
|
|
3560
3560
|
const ne = O(Date.now());
|
|
3561
3561
|
let ge = null;
|
|
3562
|
-
const
|
|
3562
|
+
const H = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map();
|
|
3563
3563
|
let ye = !1;
|
|
3564
|
-
const oe = k(() =>
|
|
3564
|
+
const oe = k(() => qi(a.locale)), N = k(() => Xa(oe.value, a.messages)), B = k(() => vi(a.typePlugins)), le = k(() => a.serverAssigners ?? a.assigners), se = k(() => a.runServerAssigner ?? a.assignerRunner), F = Ye({
|
|
3565
3565
|
name: "AimdRecorderInlineNodesOutlet",
|
|
3566
3566
|
props: {
|
|
3567
3567
|
nodes: {
|
|
@@ -3581,7 +3581,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3581
3581
|
T,
|
|
3582
3582
|
ve ? l("span", { class: "aimd-rec-validation-message", role: "alert" }, ve) : null
|
|
3583
3583
|
]);
|
|
3584
|
-
return
|
|
3584
|
+
return vr(r, s, f, S, $e, {
|
|
3585
3585
|
fieldAdapters: a.fieldAdapters,
|
|
3586
3586
|
wrapField: a.wrapField,
|
|
3587
3587
|
readonly: a.readonly,
|
|
@@ -3593,7 +3593,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3593
3593
|
});
|
|
3594
3594
|
}
|
|
3595
3595
|
function X(r, s) {
|
|
3596
|
-
return
|
|
3596
|
+
return gr(r, s);
|
|
3597
3597
|
}
|
|
3598
3598
|
function W(r, s) {
|
|
3599
3599
|
if (r === "var")
|
|
@@ -3603,7 +3603,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3603
3603
|
const f = p.value[s], S = X(r, s), T = L.value[s] ?? x.value[S], ve = f?.assigner || T ? void 0 : W(r, S);
|
|
3604
3604
|
if (!f?.assigner && !ve && !T || a.readonly)
|
|
3605
3605
|
return null;
|
|
3606
|
-
const $e = b.value[s], xe = T ? At(T) : void 0, Pe = !!(xe &&
|
|
3606
|
+
const $e = b.value[s], xe = T ? At(T) : void 0, Pe = !!(xe && H.has(xe)), qe = $e?.loading === !0 || Pe, we = !!(T && se.value && xe && H.has(xe)), te = qe && !we || $e?.disabled === !0, Xe = we ? N.value.assigner.cancel : qe ? N.value.assigner.running : N.value.assigner.run, lt = ve?.id ?? T?.assignedField ?? S;
|
|
3607
3607
|
return {
|
|
3608
3608
|
fieldType: r,
|
|
3609
3609
|
fieldKey: s,
|
|
@@ -3649,7 +3649,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3649
3649
|
},
|
|
3650
3650
|
title: `${N.value.assigner.run}: ${r.titleTarget}`
|
|
3651
3651
|
}, [
|
|
3652
|
-
r.loading ? l("span", { class: "aimd-rec-assigner-field__spinner", "aria-hidden": "true" }) : l(
|
|
3652
|
+
r.loading ? l("span", { class: "aimd-rec-assigner-field__spinner", "aria-hidden": "true" }) : l(bo),
|
|
3653
3653
|
l("span", { class: "aimd-rec-assigner-field__label" }, r.label)
|
|
3654
3654
|
]);
|
|
3655
3655
|
}
|
|
@@ -3664,7 +3664,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3664
3664
|
class: ["aimd-rec-assigner-field__status", `aimd-rec-assigner-field__status--${s}`],
|
|
3665
3665
|
title: s === "done" ? r.titleTarget : r.state?.error || r.titleTarget
|
|
3666
3666
|
}, [
|
|
3667
|
-
l(
|
|
3667
|
+
l(Co, {
|
|
3668
3668
|
variant: s === "done" ? "done" : "idle"
|
|
3669
3669
|
})
|
|
3670
3670
|
]);
|
|
@@ -3708,7 +3708,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3708
3708
|
kwargs: s.kwargs
|
|
3709
3709
|
};
|
|
3710
3710
|
return r;
|
|
3711
|
-
}), A = k(() =>
|
|
3711
|
+
}), A = k(() => ar(le.value, G.value)), L = k(() => Object.fromEntries(A.value.map((r) => [r.fieldKey, r]))), x = k(() => Object.fromEntries(A.value.map((r) => [r.assignedField, r])));
|
|
3712
3712
|
function $(r) {
|
|
3713
3713
|
return r.map((s) => ({
|
|
3714
3714
|
label: String(s),
|
|
@@ -3744,7 +3744,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3744
3744
|
for (const s of A.value)
|
|
3745
3745
|
r[s.fieldKey] = {
|
|
3746
3746
|
assigner: { mode: ca(s.mode) },
|
|
3747
|
-
disabled:
|
|
3747
|
+
disabled: nr(s.mode) || void 0
|
|
3748
3748
|
};
|
|
3749
3749
|
return r;
|
|
3750
3750
|
}), p = k(() => {
|
|
@@ -3756,7 +3756,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3756
3756
|
for (const [s, f] of Object.entries(a.fieldMeta ?? {}))
|
|
3757
3757
|
v(r, s, f);
|
|
3758
3758
|
return r;
|
|
3759
|
-
}), D = k(() =>
|
|
3759
|
+
}), D = k(() => pr(G.value, {
|
|
3760
3760
|
fieldMeta: p.value,
|
|
3761
3761
|
schema: a.validationSchema
|
|
3762
3762
|
})), b = k(() => {
|
|
@@ -3777,7 +3777,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3777
3777
|
};
|
|
3778
3778
|
}
|
|
3779
3779
|
return s;
|
|
3780
|
-
}), M = k(() =>
|
|
3780
|
+
}), M = k(() => gi(G.value.step_hierarchy ?? [])), Z = k(() => hi(c.step, ne.value)), Ee = k(() => M.value > 0 || Z.value > 0), Te = k(() => ht(M.value, oe.value)), Je = k(() => ht(Z.value, oe.value)), Fe = k(() => Object.values(c.step).some((r) => ka(r))), Ce = Tl({
|
|
3781
3781
|
contentRoot: m,
|
|
3782
3782
|
defaultExpanded: a.searchDefaultExpanded,
|
|
3783
3783
|
fields: G,
|
|
@@ -3802,13 +3802,13 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3802
3802
|
ue || i("update:modelValue", Ua(c));
|
|
3803
3803
|
}
|
|
3804
3804
|
function Ne() {
|
|
3805
|
-
|
|
3805
|
+
U = lr(m.value) ?? U, R = ++ae, !J && (J = !0, K = Promise.resolve().then(async () => {
|
|
3806
3806
|
J = !1;
|
|
3807
|
-
const r =
|
|
3808
|
-
|
|
3807
|
+
const r = U, s = R ?? ae;
|
|
3808
|
+
U = null, R = null, await sa(void 0, r, s);
|
|
3809
3809
|
}));
|
|
3810
3810
|
}
|
|
3811
|
-
const { preRenderer: st } =
|
|
3811
|
+
const { preRenderer: st } = yr(Ne);
|
|
3812
3812
|
function zt(r, s) {
|
|
3813
3813
|
const f = Object.keys(r), S = Object.keys(s);
|
|
3814
3814
|
return f.length === S.length && f.every((T) => r[T]?.validationError === s[T]?.validationError);
|
|
@@ -3882,7 +3882,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3882
3882
|
S && (pe.value = f, Ne());
|
|
3883
3883
|
}
|
|
3884
3884
|
function Ct(r) {
|
|
3885
|
-
|
|
3885
|
+
H.get(r)?.abort();
|
|
3886
3886
|
}
|
|
3887
3887
|
function xt(r) {
|
|
3888
3888
|
return r.startsWith("var_table:") ? "var_table" : r.startsWith("step:") ? "step" : r.startsWith("check:") ? "check" : "var";
|
|
@@ -3935,7 +3935,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3935
3935
|
if (!De(s.mode))
|
|
3936
3936
|
continue;
|
|
3937
3937
|
const f = At(s);
|
|
3938
|
-
if (r.has(f) || (r.add(f),
|
|
3938
|
+
if (r.has(f) || (r.add(f), H.has(f)) || !Aa(s))
|
|
3939
3939
|
continue;
|
|
3940
3940
|
const S = un(c, s);
|
|
3941
3941
|
if (!qt(s, S))
|
|
@@ -3992,9 +3992,9 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
3992
3992
|
const S = se.value;
|
|
3993
3993
|
if (!S) return;
|
|
3994
3994
|
const T = At(r), ve = Fa(r, f);
|
|
3995
|
-
|
|
3995
|
+
H.get(T)?.abort();
|
|
3996
3996
|
const $e = new AbortController();
|
|
3997
|
-
|
|
3997
|
+
H.set(T, $e), dt(ve, { loading: !0, error: void 0 });
|
|
3998
3998
|
try {
|
|
3999
3999
|
const xe = await S({
|
|
4000
4000
|
section: s,
|
|
@@ -4004,23 +4004,23 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4004
4004
|
record: Ua(c),
|
|
4005
4005
|
assigner: r.assigner,
|
|
4006
4006
|
signal: $e.signal
|
|
4007
|
-
}), Pe =
|
|
4007
|
+
}), Pe = sr(xe);
|
|
4008
4008
|
if (Pe)
|
|
4009
4009
|
throw new Error(Pe);
|
|
4010
|
-
const qe =
|
|
4011
|
-
Object.keys(qe).length > 0 ? (
|
|
4010
|
+
const qe = or(xe), we = Ta(qe, f), te = [.../* @__PURE__ */ new Set([...ve, ...we])];
|
|
4011
|
+
Object.keys(qe).length > 0 ? (dr(c, qe), Le({ rebuild: !0, runClientAssigners: !0 })) : ee(), H.get(T) === $e && dt(te, { loading: !1, error: void 0 });
|
|
4012
4012
|
} catch (xe) {
|
|
4013
4013
|
if ($e.signal.aborted) {
|
|
4014
|
-
|
|
4014
|
+
H.get(T) === $e && dt(ve, { loading: !1, error: void 0 });
|
|
4015
4015
|
return;
|
|
4016
4016
|
}
|
|
4017
4017
|
const Pe = xe instanceof Error ? xe.message : String(xe);
|
|
4018
4018
|
dt(ve, { loading: !1, error: Pe });
|
|
4019
4019
|
} finally {
|
|
4020
|
-
|
|
4020
|
+
H.get(T) === $e && H.delete(T);
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
4023
|
-
const mt =
|
|
4023
|
+
const mt = cr({
|
|
4024
4024
|
readonly: () => a.readonly,
|
|
4025
4025
|
clientAssigners: Ae,
|
|
4026
4026
|
fieldDefinitions: () => ce.value,
|
|
@@ -4028,14 +4028,14 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4028
4028
|
onError: (r) => i("error", r),
|
|
4029
4029
|
emitRecordUpdate: ee,
|
|
4030
4030
|
scheduleInlineRebuild: Ne
|
|
4031
|
-
}), at =
|
|
4031
|
+
}), at = ur({
|
|
4032
4032
|
readonly: () => a.readonly,
|
|
4033
4033
|
localRecord: c,
|
|
4034
4034
|
markRecordChanged: Le,
|
|
4035
4035
|
scheduleInlineRebuild: Ne,
|
|
4036
4036
|
emitTableAddRow: (r) => i("table-add-row", r),
|
|
4037
4037
|
emitTableRemoveRow: (r) => i("table-remove-row", r)
|
|
4038
|
-
}), Ie =
|
|
4038
|
+
}), Ie = ir({
|
|
4039
4039
|
readonly: () => a.readonly,
|
|
4040
4040
|
currentUserName: () => a.currentUserName,
|
|
4041
4041
|
now: () => a.now,
|
|
@@ -4043,7 +4043,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4043
4043
|
fieldState: () => b.value,
|
|
4044
4044
|
typePlugins: () => B.value,
|
|
4045
4045
|
wrapField: () => a.wrapField
|
|
4046
|
-
}), We =
|
|
4046
|
+
}), We = rr({
|
|
4047
4047
|
fields: () => G.value,
|
|
4048
4048
|
record: c,
|
|
4049
4049
|
providers: () => a.collectorProviders,
|
|
@@ -4065,7 +4065,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4065
4065
|
return q("var", f, r, c.var[s], Ge);
|
|
4066
4066
|
}
|
|
4067
4067
|
}
|
|
4068
|
-
const xe = r.definition?.type || "str", Pe = Ie.getTypePlugin(f, xe), qe =
|
|
4068
|
+
const xe = r.definition?.type || "str", Pe = Ie.getTypePlugin(f, xe), qe = Ai(xe, {
|
|
4069
4069
|
inputType: $e?.inputType,
|
|
4070
4070
|
codeLanguage: $e?.codeLanguage,
|
|
4071
4071
|
kwargs: r.definition?.kwargs,
|
|
@@ -4085,7 +4085,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4085
4085
|
}
|
|
4086
4086
|
const lt = We.resolveBinding(s);
|
|
4087
4087
|
if (lt) {
|
|
4088
|
-
const Me = Ie.isFieldDisabled(f), Ge = l(
|
|
4088
|
+
const Me = Ie.isFieldDisabled(f), Ge = l($l, {
|
|
4089
4089
|
node: r,
|
|
4090
4090
|
binding: lt,
|
|
4091
4091
|
value: c.var[s],
|
|
@@ -4111,7 +4111,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4111
4111
|
return q("var", f, r, c.var[s], Ge);
|
|
4112
4112
|
}
|
|
4113
4113
|
if (qe === "datetime") {
|
|
4114
|
-
const Me =
|
|
4114
|
+
const Me = Ei(c.var[s]);
|
|
4115
4115
|
Me !== c.var[s] && (c.var[s] = Me, E = !0);
|
|
4116
4116
|
}
|
|
4117
4117
|
const ct = Ie.normalizeVarValue(
|
|
@@ -4169,7 +4169,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4169
4169
|
return q("var", f, r, c.var[s], ut);
|
|
4170
4170
|
}
|
|
4171
4171
|
}
|
|
4172
|
-
const _e = l(
|
|
4172
|
+
const _e = l(Yl, {
|
|
4173
4173
|
node: r,
|
|
4174
4174
|
value: c.var[s],
|
|
4175
4175
|
disabled: Lt,
|
|
@@ -4197,10 +4197,10 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4197
4197
|
return q("var", f, r, c.var[s], Re);
|
|
4198
4198
|
}
|
|
4199
4199
|
function ia(r) {
|
|
4200
|
-
const s = r.id, f = `var_table:${s}`, S =
|
|
4200
|
+
const s = r.id, f = `var_table:${s}`, S = mr(r), T = at.ensureVarTableRows(s, S), ve = Ie.isFieldDisabled(f), $e = S.filter((te) => !!p.value[`var_table:${s}:${te}`]?.disabled), xe = de("var_table", f), Pe = [
|
|
4201
4201
|
...Ie.fieldStateClasses(f),
|
|
4202
4202
|
...Ce.getFieldClasses(f)
|
|
4203
|
-
], qe = l(
|
|
4203
|
+
], qe = l(es, {
|
|
4204
4204
|
node: r,
|
|
4205
4205
|
rows: T,
|
|
4206
4206
|
columns: S,
|
|
@@ -4231,7 +4231,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4231
4231
|
const Xe = S.indexOf(te.column);
|
|
4232
4232
|
if (Xe < 0)
|
|
4233
4233
|
return;
|
|
4234
|
-
const lt =
|
|
4234
|
+
const lt = xi(te.text), ct = $i(
|
|
4235
4235
|
T,
|
|
4236
4236
|
S,
|
|
4237
4237
|
te.rowIndex,
|
|
@@ -4336,11 +4336,11 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4336
4336
|
}
|
|
4337
4337
|
function Jt(r, s = []) {
|
|
4338
4338
|
const f = r.id, S = `step:${f}`;
|
|
4339
|
-
f in c.step || (c.step[f] =
|
|
4339
|
+
f in c.step || (c.step[f] = _i(), E = !0);
|
|
4340
4340
|
const T = c.step[f], ve = Ie.isFieldDisabled(S), $e = [
|
|
4341
4341
|
...Ie.fieldStateClasses(S),
|
|
4342
4342
|
...Ce.getFieldClasses(S)
|
|
4343
|
-
], xe = It(s), Pe = l(
|
|
4343
|
+
], xe = It(s), Pe = l(vs, {
|
|
4344
4344
|
node: r,
|
|
4345
4345
|
state: T,
|
|
4346
4346
|
bodyNodes: xe,
|
|
@@ -4352,19 +4352,19 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4352
4352
|
required: D.value.has(S),
|
|
4353
4353
|
onCheckChange: (we) => {
|
|
4354
4354
|
const te = ka(T);
|
|
4355
|
-
|
|
4355
|
+
Ci(T, we.value, Date.now()), ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: we.id, value: we.value }), Ke("change", S), te && i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) });
|
|
4356
4356
|
},
|
|
4357
4357
|
onAnnotationChange: (we) => {
|
|
4358
4358
|
T.annotation = we.value, Le(), i("field-change", { section: "step", fieldKey: `${we.id}:annotation`, value: we.value });
|
|
4359
4359
|
},
|
|
4360
4360
|
onTimerStart: (we) => {
|
|
4361
|
-
|
|
4361
|
+
Si(T, Date.now()) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
|
|
4362
4362
|
},
|
|
4363
4363
|
onTimerPause: (we) => {
|
|
4364
|
-
|
|
4364
|
+
wi(T, Date.now()) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
|
|
4365
4365
|
},
|
|
4366
4366
|
onTimerReset: (we) => {
|
|
4367
|
-
|
|
4367
|
+
ki(T) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
|
|
4368
4368
|
},
|
|
4369
4369
|
onBlur: (we) => {
|
|
4370
4370
|
i("field-blur", { section: "step", fieldKey: we.id }), Ke("blur", S);
|
|
@@ -4374,11 +4374,11 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4374
4374
|
}
|
|
4375
4375
|
function Ma(r, s = []) {
|
|
4376
4376
|
const f = r.id, S = `check:${f}`;
|
|
4377
|
-
f in c.check || (c.check[f] =
|
|
4377
|
+
f in c.check || (c.check[f] = bi(), E = !0);
|
|
4378
4378
|
const T = c.check[f], ve = Ie.isFieldDisabled(S), $e = [
|
|
4379
4379
|
...Ie.fieldStateClasses(S),
|
|
4380
4380
|
...Ce.getFieldClasses(S)
|
|
4381
|
-
], xe = Et(s), Pe = l(
|
|
4381
|
+
], xe = Et(s), Pe = l(gs, {
|
|
4382
4382
|
node: r,
|
|
4383
4383
|
state: T,
|
|
4384
4384
|
bodyNodes: xe,
|
|
@@ -4417,8 +4417,8 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4417
4417
|
score: r.score,
|
|
4418
4418
|
extra: r.extra
|
|
4419
4419
|
};
|
|
4420
|
-
s in c.quiz || (c.quiz[s] =
|
|
4421
|
-
const T = l(
|
|
4420
|
+
s in c.quiz || (c.quiz[s] = yi(S));
|
|
4421
|
+
const T = l(go, {
|
|
4422
4422
|
class: "aimd-rec-inline aimd-rec-inline--quiz",
|
|
4423
4423
|
extraClasses: Ce.getFieldClasses(f),
|
|
4424
4424
|
quiz: S,
|
|
@@ -4440,7 +4440,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4440
4440
|
}
|
|
4441
4441
|
async function sa(r, s, f) {
|
|
4442
4442
|
E = !1;
|
|
4443
|
-
const S = await
|
|
4443
|
+
const S = await hr(a.content || "", {
|
|
4444
4444
|
locale: oe.value,
|
|
4445
4445
|
groupStepBodies: !0,
|
|
4446
4446
|
groupCheckBodies: !0,
|
|
@@ -4463,7 +4463,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4463
4463
|
quiz: (T) => la(T)
|
|
4464
4464
|
}
|
|
4465
4465
|
});
|
|
4466
|
-
r !== void 0 && r !== P || f !== void 0 && f !== ae || (h.value = S.nodes, await je(),
|
|
4466
|
+
r !== void 0 && r !== P || f !== void 0 && f !== ae || (h.value = S.nodes, await je(), fr(m.value, s ?? null), E && ee());
|
|
4467
4467
|
}
|
|
4468
4468
|
async function oa() {
|
|
4469
4469
|
const r = ++P, s = ++ae;
|
|
@@ -4481,7 +4481,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4481
4481
|
`));
|
|
4482
4482
|
if (r !== P) return;
|
|
4483
4483
|
G.value = S, Ae.value = S.client_assigner || [], z.value = {}, i("fields-change", S);
|
|
4484
|
-
const T =
|
|
4484
|
+
const T = pi(c, S), ve = mt.applyCurrentClientAssigners();
|
|
4485
4485
|
(T || ve) && ee(), await sa(r, void 0, s), Vt();
|
|
4486
4486
|
} catch (f) {
|
|
4487
4487
|
if (r !== P)
|
|
@@ -4570,9 +4570,9 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4570
4570
|
}
|
|
4571
4571
|
), Mt(() => {
|
|
4572
4572
|
We.stopAll({ resetPermissions: !0 });
|
|
4573
|
-
for (const r of
|
|
4573
|
+
for (const r of H.values())
|
|
4574
4574
|
r.abort();
|
|
4575
|
-
|
|
4575
|
+
H.clear(), ge && clearInterval(ge);
|
|
4576
4576
|
}), t({
|
|
4577
4577
|
validate: wt,
|
|
4578
4578
|
validateField: St,
|
|
@@ -4582,9 +4582,9 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4582
4582
|
runManualClientAssigners: mt.triggerManualClientAssigners,
|
|
4583
4583
|
startCollector: We.start,
|
|
4584
4584
|
stopCollector: We.stop
|
|
4585
|
-
}), (r, s) => (_(), w("div",
|
|
4586
|
-
o.value ? (_(), w("div",
|
|
4587
|
-
et.value ? (_(), ft(
|
|
4585
|
+
}), (r, s) => (_(), w("div", xo, [
|
|
4586
|
+
o.value ? (_(), w("div", $o, C(o.value), 1)) : (_(), w(Be, { key: 1 }, [
|
|
4587
|
+
et.value ? (_(), ft(ms, {
|
|
4588
4588
|
key: 0,
|
|
4589
4589
|
"field-key": Ve(Ce).fieldKey.value,
|
|
4590
4590
|
"onUpdate:fieldKey": s[0] || (s[0] = (f) => Ve(Ce).fieldKey.value = f),
|
|
@@ -4601,9 +4601,9 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4601
4601
|
onNext: Ve(Ce).focusNextMatch,
|
|
4602
4602
|
onPrevious: Ve(Ce).focusPreviousMatch
|
|
4603
4603
|
}, null, 8, ["field-key", "query", "field-refs", "match-count", "messages", "panel-visible", "result-label", "onClear", "onCollapse", "onExpand", "onNext", "onPrevious"])) : re("", !0),
|
|
4604
|
-
Ee.value ? (_(), w("div",
|
|
4605
|
-
M.value > 0 ? (_(), w("span",
|
|
4606
|
-
Z.value > 0 ? (_(), w("span",
|
|
4604
|
+
Ee.value ? (_(), w("div", Ao, [
|
|
4605
|
+
M.value > 0 ? (_(), w("span", Eo, C(N.value.step.protocolEstimatedTotal(Te.value)), 1)) : re("", !0),
|
|
4606
|
+
Z.value > 0 ? (_(), w("span", Fo, C(N.value.step.protocolRecordedTotal(Je.value)), 1)) : re("", !0)
|
|
4607
4607
|
])) : re("", !0),
|
|
4608
4608
|
h.value.length ? (_(), w("div", {
|
|
4609
4609
|
key: 2,
|
|
@@ -4612,11 +4612,11 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
|
|
|
4612
4612
|
class: "aimd-protocol-recorder__content aimd-renderer"
|
|
4613
4613
|
}, [
|
|
4614
4614
|
ea(Ve(F), { nodes: h.value }, null, 8, ["nodes"])
|
|
4615
|
-
], 512)) : (_(), w("div",
|
|
4615
|
+
], 512)) : (_(), w("div", To, C(N.value.common.emptyContent), 1))
|
|
4616
4616
|
], 64))
|
|
4617
4617
|
]));
|
|
4618
4618
|
}
|
|
4619
|
-
}),
|
|
4619
|
+
}), Ro = /\{\{(var_table|var|step|check)\s*\|\s*([^}]+)\}\}/g, Mo = /```quiz[^\n]*\n[\s\S]*?\n```/g;
|
|
4620
4620
|
function Fn(e) {
|
|
4621
4621
|
const t = e.trim();
|
|
4622
4622
|
return t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'") ? t.slice(1, -1) : t;
|
|
@@ -4687,10 +4687,10 @@ function Gn(e) {
|
|
|
4687
4687
|
const n = (e.valueType || "").trim(), a = (e.defaultPart || "").trim();
|
|
4688
4688
|
return n && (t += `: ${n}`), a && (t += ` = ${a}`), t + (e.suffixRaw || "");
|
|
4689
4689
|
}
|
|
4690
|
-
function
|
|
4690
|
+
function zo(e) {
|
|
4691
4691
|
return /subvars\s*=\s*\[/.test(e) ? !0 : /^[A-Za-z_][\w-]*\s*\([^)]*\)\s*$/.test(e.trim());
|
|
4692
4692
|
}
|
|
4693
|
-
function
|
|
4693
|
+
function qo(e) {
|
|
4694
4694
|
const t = e.trim();
|
|
4695
4695
|
if (!t)
|
|
4696
4696
|
return "";
|
|
@@ -4701,7 +4701,7 @@ function zo(e) {
|
|
|
4701
4701
|
const n = t.indexOf(":");
|
|
4702
4702
|
return n >= 0 ? t.slice(0, n).trim() : t;
|
|
4703
4703
|
}
|
|
4704
|
-
function
|
|
4704
|
+
function Vo(e) {
|
|
4705
4705
|
const t = e.trim(), n = t.match(/^([A-Za-z_][\w-]*)\s*\(([^)]*)\)\s*$/);
|
|
4706
4706
|
if (n) {
|
|
4707
4707
|
const o = n[2].split(",").map((m) => m.trim()).filter(Boolean).join(", ");
|
|
@@ -4710,23 +4710,23 @@ function qo(e) {
|
|
|
4710
4710
|
subvarsText: o || "col1, col2"
|
|
4711
4711
|
};
|
|
4712
4712
|
}
|
|
4713
|
-
const a = t.split(",")[0]?.trim() || "my_table", h = t.match(/subvars\s*=\s*\[([\s\S]*?)\]/)?.[1]?.split(",").map((o) =>
|
|
4713
|
+
const a = t.split(",")[0]?.trim() || "my_table", h = t.match(/subvars\s*=\s*\[([\s\S]*?)\]/)?.[1]?.split(",").map((o) => qo(o)).filter(Boolean).join(", ");
|
|
4714
4714
|
return {
|
|
4715
4715
|
id: a,
|
|
4716
4716
|
subvarsText: h || "col1, col2"
|
|
4717
4717
|
};
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function Do(e) {
|
|
4720
4720
|
return {
|
|
4721
4721
|
id: e.trim().split(/,\s*/)[0]?.trim() || "my_step"
|
|
4722
4722
|
};
|
|
4723
4723
|
}
|
|
4724
|
-
function
|
|
4724
|
+
function Io(e) {
|
|
4725
4725
|
return {
|
|
4726
4726
|
id: e.trim().split(/,\s*/)[0]?.trim() || "my_check"
|
|
4727
4727
|
};
|
|
4728
4728
|
}
|
|
4729
|
-
function
|
|
4729
|
+
function Lo(e) {
|
|
4730
4730
|
const t = e.match(/^\s*id:\s*(.+)\s*$/m), n = e.match(/^\s*type:\s*(.+)\s*$/m);
|
|
4731
4731
|
return {
|
|
4732
4732
|
id: Fn(t?.[1] || "quiz_choice_1"),
|
|
@@ -4736,10 +4736,10 @@ function Io(e) {
|
|
|
4736
4736
|
function Ga(e, t) {
|
|
4737
4737
|
return e.replace(/^(\{\{(?:var_table|var|step|check)\s*\|\s*)([\s\S]*?)(\}\})$/, `$1${t}$3`);
|
|
4738
4738
|
}
|
|
4739
|
-
function
|
|
4739
|
+
function Po(e, t) {
|
|
4740
4740
|
return e.replace(/^(\s*)([A-Za-z_][\w-]*)/, `$1${t}`);
|
|
4741
4741
|
}
|
|
4742
|
-
function
|
|
4742
|
+
function Bo(e, t, n) {
|
|
4743
4743
|
const a = e.match(/^\{\{(?:var_table|var|step|check)\s*\|\s*([\s\S]*?)\}\}$/);
|
|
4744
4744
|
if (!a)
|
|
4745
4745
|
return e;
|
|
@@ -4751,9 +4751,9 @@ function Po(e, t, n) {
|
|
|
4751
4751
|
id: n
|
|
4752
4752
|
}));
|
|
4753
4753
|
}
|
|
4754
|
-
return Ga(e,
|
|
4754
|
+
return Ga(e, Po(i, n));
|
|
4755
4755
|
}
|
|
4756
|
-
function
|
|
4756
|
+
function Oo(e, t) {
|
|
4757
4757
|
const n = e.match(/^\{\{var\s*\|\s*([\s\S]*?)\}\}$/);
|
|
4758
4758
|
if (!n)
|
|
4759
4759
|
return e;
|
|
@@ -4763,7 +4763,7 @@ function Bo(e, t) {
|
|
|
4763
4763
|
valueType: t
|
|
4764
4764
|
}));
|
|
4765
4765
|
}
|
|
4766
|
-
function
|
|
4766
|
+
function No(e, t) {
|
|
4767
4767
|
return /^\s*id:\s*.+$/m.test(e) ? e.replace(/^\s*id:\s*.+$/m, `id: ${t}`) : e.replace(/^```quiz[^\n]*\n/, (n) => `${n}id: ${t}
|
|
4768
4768
|
`);
|
|
4769
4769
|
}
|
|
@@ -4872,11 +4872,11 @@ function tn(e, t) {
|
|
|
4872
4872
|
function _t(e, t, n, a) {
|
|
4873
4873
|
return e.slice(0, t) + a + e.slice(n);
|
|
4874
4874
|
}
|
|
4875
|
-
function
|
|
4875
|
+
function Ko(e, t, n) {
|
|
4876
4876
|
const a = t > 0 ? e[t - 1] : "", i = t < e.length ? e[t] : "", h = !!a && !/\s/.test(a), o = !!i && !/\s/.test(i);
|
|
4877
4877
|
return `${h ? " " : ""}${n}${o ? " " : ""}`;
|
|
4878
4878
|
}
|
|
4879
|
-
function
|
|
4879
|
+
function jo(e, t, n) {
|
|
4880
4880
|
const a = e.slice(0, t), i = e.slice(t), h = a.match(/\n*$/)?.[0].length ?? 0, o = i.match(/^\n*/)?.[0].length ?? 0, m = a.length === 0 || h >= 2 ? "" : `
|
|
4881
4881
|
`.repeat(2 - h), c = i.length === 0 || o >= 2 ? "" : `
|
|
4882
4882
|
`.repeat(2 - o);
|
|
@@ -4884,9 +4884,9 @@ function Ko(e, t, n) {
|
|
|
4884
4884
|
}
|
|
4885
4885
|
function Qa(e) {
|
|
4886
4886
|
const t = [];
|
|
4887
|
-
for (const n of e.matchAll(
|
|
4887
|
+
for (const n of e.matchAll(Ro)) {
|
|
4888
4888
|
const a = n[0], i = n[1], h = n[2], o = n.index ?? 0, m = o + a.length, c = Mn(e, o, m, "inline");
|
|
4889
|
-
if (i === "var" && !
|
|
4889
|
+
if (i === "var" && !zo(h)) {
|
|
4890
4890
|
const P = en(h);
|
|
4891
4891
|
t.push({
|
|
4892
4892
|
uid: `inline:${o}:${m}`,
|
|
@@ -4903,7 +4903,7 @@ function Qa(e) {
|
|
|
4903
4903
|
continue;
|
|
4904
4904
|
}
|
|
4905
4905
|
if (i === "var" || i === "var_table") {
|
|
4906
|
-
const P =
|
|
4906
|
+
const P = Vo(h);
|
|
4907
4907
|
t.push({
|
|
4908
4908
|
uid: `inline:${o}:${m}`,
|
|
4909
4909
|
fieldType: "var_table",
|
|
@@ -4919,7 +4919,7 @@ function Qa(e) {
|
|
|
4919
4919
|
continue;
|
|
4920
4920
|
}
|
|
4921
4921
|
if (i === "step") {
|
|
4922
|
-
const P =
|
|
4922
|
+
const P = Do(h);
|
|
4923
4923
|
t.push({
|
|
4924
4924
|
uid: `inline:${o}:${m}`,
|
|
4925
4925
|
fieldType: "step",
|
|
@@ -4933,7 +4933,7 @@ function Qa(e) {
|
|
|
4933
4933
|
});
|
|
4934
4934
|
continue;
|
|
4935
4935
|
}
|
|
4936
|
-
const z =
|
|
4936
|
+
const z = Io(h);
|
|
4937
4937
|
t.push({
|
|
4938
4938
|
uid: `inline:${o}:${m}`,
|
|
4939
4939
|
fieldType: "check",
|
|
@@ -4946,8 +4946,8 @@ function Qa(e) {
|
|
|
4946
4946
|
segmentEnd: c.segmentEnd
|
|
4947
4947
|
});
|
|
4948
4948
|
}
|
|
4949
|
-
for (const n of e.matchAll(
|
|
4950
|
-
const a = n[0], i = n.index ?? 0, h = i + a.length, o = Mn(e, i, h, "block"), m =
|
|
4949
|
+
for (const n of e.matchAll(Mo)) {
|
|
4950
|
+
const a = n[0], i = n.index ?? 0, h = i + a.length, o = Mn(e, i, h, "block"), m = Lo(a);
|
|
4951
4951
|
t.push({
|
|
4952
4952
|
uid: `block:${i}:${h}`,
|
|
4953
4953
|
fieldType: "quiz",
|
|
@@ -4978,23 +4978,23 @@ function Qn(e, t, n) {
|
|
|
4978
4978
|
|
|
4979
4979
|
${a}` : a;
|
|
4980
4980
|
}
|
|
4981
|
-
function
|
|
4981
|
+
function Ho(e, t, n, a, i) {
|
|
4982
4982
|
if (t.length === 0)
|
|
4983
4983
|
return Qn(e, a, i);
|
|
4984
|
-
const h = tn(a, i), o = Math.max(0, Math.min(n, t.length)), m = o >= t.length ? t[t.length - 1].segmentEnd : t[o].segmentStart, z = (a === "quiz" ? "block" : "inline") === "block" ?
|
|
4984
|
+
const h = tn(a, i), o = Math.max(0, Math.min(n, t.length)), m = o >= t.length ? t[t.length - 1].segmentEnd : t[o].segmentStart, z = (a === "quiz" ? "block" : "inline") === "block" ? jo(e, m, h) : Ko(e, m, h);
|
|
4985
4985
|
return _t(e, m, m, z);
|
|
4986
4986
|
}
|
|
4987
|
-
function
|
|
4987
|
+
function Uo(e, t) {
|
|
4988
4988
|
return _t(e, t.segmentStart, t.segmentEnd, "");
|
|
4989
4989
|
}
|
|
4990
|
-
function
|
|
4990
|
+
function Wo(e, t, n) {
|
|
4991
4991
|
const a = n.trim();
|
|
4992
4992
|
if (!a || a === t.id)
|
|
4993
4993
|
return e;
|
|
4994
|
-
const i = t.fieldType === "quiz" ?
|
|
4994
|
+
const i = t.fieldType === "quiz" ? No(t.raw, a) : Bo(t.raw, t.fieldType, a);
|
|
4995
4995
|
return _t(e, t.start, t.end, i);
|
|
4996
4996
|
}
|
|
4997
|
-
function
|
|
4997
|
+
function Go(e, t, n) {
|
|
4998
4998
|
if (n === t.fieldType)
|
|
4999
4999
|
return e;
|
|
5000
5000
|
const a = tn(n, {
|
|
@@ -5005,21 +5005,21 @@ function Wo(e, t, n) {
|
|
|
5005
5005
|
});
|
|
5006
5006
|
return _t(e, t.start, t.end, a);
|
|
5007
5007
|
}
|
|
5008
|
-
function
|
|
5008
|
+
function Qo(e, t, n) {
|
|
5009
5009
|
if (t.fieldType !== "var")
|
|
5010
5010
|
return e;
|
|
5011
5011
|
const a = n.trim();
|
|
5012
5012
|
if (a === (t.valueType || "").trim())
|
|
5013
5013
|
return e;
|
|
5014
|
-
const i =
|
|
5014
|
+
const i = Oo(t.raw, a);
|
|
5015
5015
|
return _t(e, t.start, t.end, i);
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function Yo(e, t, n) {
|
|
5018
5018
|
const a = (t.sourceKind === "block" ? n.trimEnd() : n.trim()).replace(/\r\n?/g, `
|
|
5019
5019
|
`);
|
|
5020
5020
|
return !a || a === t.raw ? e : _t(e, t.start, t.end, a);
|
|
5021
5021
|
}
|
|
5022
|
-
function
|
|
5022
|
+
function Jo(e, t, n, a) {
|
|
5023
5023
|
const i = t.find((ue) => ue.uid === n);
|
|
5024
5024
|
if (!i)
|
|
5025
5025
|
return e;
|
|
@@ -5030,14 +5030,14 @@ function Yo(e, t, n, a) {
|
|
|
5030
5030
|
})), ae = o >= P.length ? P.length === 0 ? c.length : P[P.length - 1].segmentEnd : P[o].segmentStart;
|
|
5031
5031
|
return _t(c, ae, ae, m);
|
|
5032
5032
|
}
|
|
5033
|
-
function
|
|
5034
|
-
return new
|
|
5033
|
+
function Xo(e = {}) {
|
|
5034
|
+
return new Vi({
|
|
5035
5035
|
view(t) {
|
|
5036
|
-
return new
|
|
5036
|
+
return new Zo(t, e);
|
|
5037
5037
|
}
|
|
5038
5038
|
});
|
|
5039
5039
|
}
|
|
5040
|
-
class
|
|
5040
|
+
class Zo {
|
|
5041
5041
|
constructor(t, n) {
|
|
5042
5042
|
var a;
|
|
5043
5043
|
this.editorView = t, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (a = n.width) !== null && a !== void 0 ? a : 1, this.color = n.color === !1 ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((i) => {
|
|
@@ -5065,8 +5065,8 @@ class Xo {
|
|
|
5065
5065
|
if (J) {
|
|
5066
5066
|
let K = J.getBoundingClientRect(), E = ae ? K.bottom : K.top;
|
|
5067
5067
|
ae && ue && (E = (E + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2);
|
|
5068
|
-
let
|
|
5069
|
-
a = { left: K.left, right: K.right, top: E -
|
|
5068
|
+
let U = this.width / 2 * m;
|
|
5069
|
+
a = { left: K.left, right: K.right, top: E - U, bottom: E + U };
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
5072
|
}
|
|
@@ -5095,7 +5095,7 @@ class Xo {
|
|
|
5095
5095
|
if (n && !h) {
|
|
5096
5096
|
let o = n.pos;
|
|
5097
5097
|
if (this.editorView.dragging && this.editorView.dragging.slice) {
|
|
5098
|
-
let m =
|
|
5098
|
+
let m = Di(this.editorView.state.doc, o, this.editorView.dragging.slice);
|
|
5099
5099
|
m != null && (o = m);
|
|
5100
5100
|
}
|
|
5101
5101
|
this.setCursor(o), this.scheduleRemoval(5e3);
|
|
@@ -5111,7 +5111,7 @@ class Xo {
|
|
|
5111
5111
|
this.editorView.dom.contains(t.relatedTarget) || this.setCursor(null);
|
|
5112
5112
|
}
|
|
5113
5113
|
}
|
|
5114
|
-
const
|
|
5114
|
+
const ed = /* @__PURE__ */ Ye({
|
|
5115
5115
|
__name: "AimdRecorderWysiwygFieldHost",
|
|
5116
5116
|
props: {
|
|
5117
5117
|
surfaceState: {},
|
|
@@ -5171,7 +5171,7 @@ const Zo = /* @__PURE__ */ Ye({
|
|
|
5171
5171
|
}, null, 8, ["content", "model-value", "readonly", "current-user-name", "now", "locale", "messages", "quiz-grades", "submitted", "choice-option-explanation-mode", "scale-grade-display-mode", "step-detail-display", "field-meta", "server-assigners", "assigners", "field-state", "validation-schema", "validation-triggers", "wrap-field", "custom-renderers", "field-adapters", "entity-resolvers", "collector-providers", "request-collector-permission", "collector-actor-id", "collector-record-key", "protocol-context", "resolve-file", "resolve-file-info", "upload-file", "run-server-assigner", "assigner-runner", "type-plugins", "onUpdate:modelValue"]))
|
|
5172
5172
|
], 2));
|
|
5173
5173
|
}
|
|
5174
|
-
}),
|
|
5174
|
+
}), td = /* @__PURE__ */ kt(ed, [["__scopeId", "data-v-3b94d62c"]]), Yn = "aimdRecorderQuizBlock", ad = /* @__PURE__ */ new Set(["var", "var_table", "step", "check"]), nd = {
|
|
5175
5175
|
var: "#2563eb",
|
|
5176
5176
|
var_table: "#059669",
|
|
5177
5177
|
step: "#d97706",
|
|
@@ -5190,11 +5190,11 @@ const Zo = /* @__PURE__ */ Ye({
|
|
|
5190
5190
|
ref_fig: "ref_fig",
|
|
5191
5191
|
cite: "cite"
|
|
5192
5192
|
};
|
|
5193
|
-
function
|
|
5193
|
+
function id(e) {
|
|
5194
5194
|
return (e || "").toLowerCase().startsWith("zh");
|
|
5195
5195
|
}
|
|
5196
|
-
function
|
|
5197
|
-
const t =
|
|
5196
|
+
function rd(e) {
|
|
5197
|
+
const t = id(e);
|
|
5198
5198
|
return {
|
|
5199
5199
|
edit: t ? "编辑" : "Edit",
|
|
5200
5200
|
editTitle: t ? "编辑字段" : "Edit field",
|
|
@@ -5203,16 +5203,16 @@ function id(e) {
|
|
|
5203
5203
|
dragTitle: t ? "拖动字段" : "Drag field"
|
|
5204
5204
|
};
|
|
5205
5205
|
}
|
|
5206
|
-
function
|
|
5206
|
+
function ld(e, t) {
|
|
5207
5207
|
return `{{${e}|${t}}}`;
|
|
5208
5208
|
}
|
|
5209
|
-
function
|
|
5209
|
+
function sd(e) {
|
|
5210
5210
|
return `\`\`\`quiz
|
|
5211
5211
|
${e.replace(/\r\n?/g, `
|
|
5212
5212
|
`).replace(/\n+$/, "")}
|
|
5213
5213
|
\`\`\``;
|
|
5214
5214
|
}
|
|
5215
|
-
function
|
|
5215
|
+
function od(e, t) {
|
|
5216
5216
|
const n = Qa(e)[0];
|
|
5217
5217
|
return n ? {
|
|
5218
5218
|
fieldType: n.fieldType,
|
|
@@ -5225,9 +5225,9 @@ function sd(e, t) {
|
|
|
5225
5225
|
};
|
|
5226
5226
|
}
|
|
5227
5227
|
function Pa(e) {
|
|
5228
|
-
return
|
|
5228
|
+
return nd[e] || "#6b7280";
|
|
5229
5229
|
}
|
|
5230
|
-
function
|
|
5230
|
+
function dd() {
|
|
5231
5231
|
function e(n) {
|
|
5232
5232
|
t(n);
|
|
5233
5233
|
}
|
|
@@ -5253,7 +5253,7 @@ function od() {
|
|
|
5253
5253
|
}
|
|
5254
5254
|
return e;
|
|
5255
5255
|
}
|
|
5256
|
-
const
|
|
5256
|
+
const cd = Ii("aimdRecorderQuizBlock", () => dd()), Vn = Li("aimd_recorder_quiz", () => ({
|
|
5257
5257
|
group: "block",
|
|
5258
5258
|
atom: !0,
|
|
5259
5259
|
draggable: !0,
|
|
@@ -5288,7 +5288,7 @@ const dd = Di("aimdRecorderQuizBlock", () => od()), Vn = Ii("aimd_recorder_quiz"
|
|
|
5288
5288
|
class Dn {
|
|
5289
5289
|
constructor(t, n, a, i, h) {
|
|
5290
5290
|
this.node = t, this.view = n, this.getPos = a, this.options = i, this.block = h, this.editButtonEl = null, this.deleteButtonEl = null, this.dragHandleEl = null;
|
|
5291
|
-
const o = h ? "div" : "span", m =
|
|
5291
|
+
const o = h ? "div" : "span", m = rd(this.options.surfaceState.locale);
|
|
5292
5292
|
this.dom = document.createElement(o), this.dom.className = [
|
|
5293
5293
|
"aimd-recorder-wysiwyg-node",
|
|
5294
5294
|
h ? "aimd-recorder-wysiwyg-node--block" : "aimd-recorder-wysiwyg-node--inline"
|
|
@@ -5319,17 +5319,17 @@ class Dn {
|
|
|
5319
5319
|
const t = this.getPos();
|
|
5320
5320
|
if (typeof t != "number")
|
|
5321
5321
|
return;
|
|
5322
|
-
const n = this.view.state.tr.setSelection(
|
|
5322
|
+
const n = this.view.state.tr.setSelection(ji.create(this.view.state.doc, t));
|
|
5323
5323
|
this.view.dispatch(n);
|
|
5324
5324
|
}
|
|
5325
5325
|
resolveIdentity() {
|
|
5326
|
-
return
|
|
5326
|
+
return od(this.resolveRaw(), this.resolveFieldType());
|
|
5327
5327
|
}
|
|
5328
5328
|
resolveFieldType() {
|
|
5329
5329
|
return this.block ? "quiz" : this.node.attrs.fieldType || "var";
|
|
5330
5330
|
}
|
|
5331
5331
|
resolveRaw() {
|
|
5332
|
-
return this.block ?
|
|
5332
|
+
return this.block ? sd(String(this.node.attrs.fieldContent || "")) : ld(
|
|
5333
5333
|
String(this.node.attrs.fieldType || "var"),
|
|
5334
5334
|
String(this.node.attrs.fieldContent || "")
|
|
5335
5335
|
);
|
|
@@ -5337,7 +5337,7 @@ class Dn {
|
|
|
5337
5337
|
renderField() {
|
|
5338
5338
|
const t = this.resolveIdentity(), n = t?.id ? `${t.fieldType} ${t.id}` : this.resolveFieldType();
|
|
5339
5339
|
this.summaryEl.textContent = n, this.summaryEl.title = n, this.dom.setAttribute("data-field-type", this.resolveFieldType()), this.dom.draggable = !this.options.surfaceState.readonly, this.dragHandleEl && (this.dragHandleEl.draggable = !this.options.surfaceState.readonly), this.editButtonEl && (this.editButtonEl.disabled = this.options.surfaceState.readonly), this.deleteButtonEl && (this.deleteButtonEl.disabled = this.options.surfaceState.readonly);
|
|
5340
|
-
const a = l(
|
|
5340
|
+
const a = l(td, {
|
|
5341
5341
|
surfaceState: this.options.surfaceState,
|
|
5342
5342
|
rawContent: this.resolveRaw(),
|
|
5343
5343
|
displayMode: this.block ? "block" : "inline"
|
|
@@ -5364,7 +5364,7 @@ class Dn {
|
|
|
5364
5364
|
nn(null, this.bodyEl);
|
|
5365
5365
|
}
|
|
5366
5366
|
}
|
|
5367
|
-
class
|
|
5367
|
+
class ud {
|
|
5368
5368
|
constructor(t, n, a) {
|
|
5369
5369
|
this.editing = !1, this.node = t, this.view = n, this.getPos = a;
|
|
5370
5370
|
const i = String(t.attrs.fieldType || "var"), h = String(t.attrs.fieldContent || ""), o = Pa(i);
|
|
@@ -5438,32 +5438,32 @@ class cd {
|
|
|
5438
5438
|
destroy() {
|
|
5439
5439
|
}
|
|
5440
5440
|
}
|
|
5441
|
-
const
|
|
5441
|
+
const fd = Pi.extendSchema((e) => (t) => ({
|
|
5442
5442
|
...e(t),
|
|
5443
|
-
toDOM: (a) => ["br", t.get(
|
|
5444
|
-
})),
|
|
5443
|
+
toDOM: (a) => ["br", t.get(Bi.key)(a)]
|
|
5444
|
+
})), md = Oi(() => Xo({
|
|
5445
5445
|
class: "aimd-recorder-dropcursor",
|
|
5446
5446
|
color: !1,
|
|
5447
5447
|
width: 4
|
|
5448
5448
|
}));
|
|
5449
|
-
function
|
|
5449
|
+
function vd(e) {
|
|
5450
5450
|
const t = dn(on, () => (a, i, h) => {
|
|
5451
5451
|
const o = String(a.attrs.fieldType || "var");
|
|
5452
|
-
return
|
|
5452
|
+
return ad.has(o) ? new Dn(a, i, h, e, !1) : new ud(a, i, h);
|
|
5453
5453
|
}), n = dn(Vn, () => (a, i, h) => new Dn(a, i, h, e, !0));
|
|
5454
5454
|
return [
|
|
5455
|
-
|
|
5456
|
-
|
|
5455
|
+
Ni,
|
|
5456
|
+
cd,
|
|
5457
5457
|
on,
|
|
5458
5458
|
Vn,
|
|
5459
5459
|
t,
|
|
5460
5460
|
n,
|
|
5461
|
-
ud,
|
|
5462
5461
|
fd,
|
|
5463
|
-
|
|
5462
|
+
md,
|
|
5463
|
+
Ki
|
|
5464
5464
|
].flat();
|
|
5465
5465
|
}
|
|
5466
|
-
const
|
|
5466
|
+
const gd = /* @__PURE__ */ Ye({
|
|
5467
5467
|
__name: "AimdRecorderWysiwygSurface",
|
|
5468
5468
|
props: {
|
|
5469
5469
|
content: {},
|
|
@@ -5503,7 +5503,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5503
5503
|
},
|
|
5504
5504
|
emits: ["update:content", "update:modelValue", "ready", "fields-change", "error", "field-change", "field-blur", "assigner-request", "assigner-cancel", "table-add-row", "table-remove-row", "validation", "edit-field", "delete-field"],
|
|
5505
5505
|
setup(e, { expose: t, emit: n }) {
|
|
5506
|
-
const a = ["var", "var_table", "quiz", "step", "check"], i = new Set(a), h = [...a], o = e, m = n, c = k(() =>
|
|
5506
|
+
const a = ["var", "var_table", "quiz", "step", "check"], i = new Set(a), h = [...a], o = e, m = n, c = k(() => Hi(o.locale)), z = k(() => Ui(c.value).filter((v) => i.has(v.type))), P = k(() => Wi(c.value)), ae = k(() => (o.locale || "").toLowerCase().startsWith("zh") ? "拖到这里" : "Drop here"), ue = k(() => ({
|
|
5507
5507
|
"--aimd-recorder-drop-label": JSON.stringify(ae.value)
|
|
5508
5508
|
})), J = k(() => (o.typePlugins ?? []).map((v) => ({
|
|
5509
5509
|
key: v.type,
|
|
@@ -5513,11 +5513,11 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5513
5513
|
}))), {
|
|
5514
5514
|
content: K,
|
|
5515
5515
|
syncFromProp: E,
|
|
5516
|
-
insertTextIntoActiveEditor:
|
|
5516
|
+
insertTextIntoActiveEditor: U,
|
|
5517
5517
|
handleMdAction: R,
|
|
5518
5518
|
onMilkdownMarkdownUpdated: ne,
|
|
5519
5519
|
onMilkdownReady: ge
|
|
5520
|
-
} =
|
|
5520
|
+
} = Gi({
|
|
5521
5521
|
initialContent: o.content,
|
|
5522
5522
|
initialMode: "wysiwyg",
|
|
5523
5523
|
resolvedMessages: c,
|
|
@@ -5534,7 +5534,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5534
5534
|
m("error", I instanceof Error ? I.message : String(I));
|
|
5535
5535
|
}
|
|
5536
5536
|
}, { immediate: !0 });
|
|
5537
|
-
const
|
|
5537
|
+
const H = Oa(Ja()), ie = O(null), ye = O({}), oe = O(0), N = k(() => Xa(o.locale, o.messages)), B = k(() => {
|
|
5538
5538
|
const v = o.fieldState ?? {}, I = ye.value;
|
|
5539
5539
|
if (Object.keys(v).length === 0 && Object.keys(I).length === 0) return;
|
|
5540
5540
|
const j = { ...v };
|
|
@@ -5579,7 +5579,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5579
5579
|
return v ? q(v) : !1;
|
|
5580
5580
|
}
|
|
5581
5581
|
async function W(v = {}) {
|
|
5582
|
-
const I = Sa(Ot(K.value),
|
|
5582
|
+
const I = Sa(Ot(K.value), H, {
|
|
5583
5583
|
fieldMeta: o.fieldMeta,
|
|
5584
5584
|
schema: o.validationSchema,
|
|
5585
5585
|
messages: N.value.validation
|
|
@@ -5587,7 +5587,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5587
5587
|
return oe.value += 1, se(I), !I.valid && v.focus !== !1 && (await je(), X()), I;
|
|
5588
5588
|
}
|
|
5589
5589
|
async function de(v, I = {}) {
|
|
5590
|
-
const j = Sa(Ot(K.value),
|
|
5590
|
+
const j = Sa(Ot(K.value), H, {
|
|
5591
5591
|
fieldMeta: o.fieldMeta,
|
|
5592
5592
|
schema: o.validationSchema,
|
|
5593
5593
|
fieldKeys: [v],
|
|
@@ -5608,13 +5608,13 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5608
5608
|
}
|
|
5609
5609
|
Se(() => o.modelValue, (v) => {
|
|
5610
5610
|
const I = pa(v);
|
|
5611
|
-
Kt(I) !== Kt(
|
|
5611
|
+
Kt(I) !== Kt(H) && Ha(H, I);
|
|
5612
5612
|
}, { deep: !0, immediate: !0 });
|
|
5613
5613
|
function he(v) {
|
|
5614
|
-
Ha(
|
|
5614
|
+
Ha(H, v), m("update:modelValue", Ua(H));
|
|
5615
5615
|
}
|
|
5616
5616
|
const V = Oa({
|
|
5617
|
-
record:
|
|
5617
|
+
record: H,
|
|
5618
5618
|
readonly: o.readonly,
|
|
5619
5619
|
currentUserName: o.currentUserName,
|
|
5620
5620
|
now: o.now,
|
|
@@ -5661,7 +5661,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5661
5661
|
V.readonly = o.readonly, V.currentUserName = o.currentUserName, V.now = o.now, V.locale = o.locale, V.messages = o.messages, V.quizGrades = o.quizGrades, V.submitted = o.submitted, V.choiceOptionExplanationMode = o.choiceOptionExplanationMode, V.scaleGradeDisplayMode = o.scaleGradeDisplayMode, V.stepDetailDisplay = o.stepDetailDisplay, V.fieldMeta = o.fieldMeta, V.serverAssigners = o.serverAssigners, V.assigners = o.assigners, V.fieldState = B.value, V.validationSchema = o.validationSchema, V.validationTriggers = o.validationTriggers, V.validationEpoch = oe.value, V.wrapField = o.wrapField, V.customRenderers = o.customRenderers, V.fieldAdapters = o.fieldAdapters, V.entityResolvers = o.entityResolvers, V.collectorProviders = o.collectorProviders, V.requestCollectorPermission = o.requestCollectorPermission, V.collectorActorId = o.collectorActorId, V.collectorRecordKey = o.collectorRecordKey, V.protocolContext = me(K.value), V.resolveFile = o.resolveFile, V.resolveFileInfo = o.resolveFileInfo, V.uploadFile = o.uploadFile, V.runServerAssigner = o.runServerAssigner, V.assignerRunner = o.assignerRunner, V.typePlugins = o.typePlugins;
|
|
5662
5662
|
});
|
|
5663
5663
|
const be = In(), G = [
|
|
5664
|
-
...
|
|
5664
|
+
...vd({
|
|
5665
5665
|
appContext: be?.appContext ?? null,
|
|
5666
5666
|
surfaceState: V,
|
|
5667
5667
|
onEditField: (v) => m("edit-field", v),
|
|
@@ -5679,10 +5679,10 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5679
5679
|
pe.value = i.has(v) ? v : "var", Ae.value = !0;
|
|
5680
5680
|
}
|
|
5681
5681
|
function A(v) {
|
|
5682
|
-
i.has(v) &&
|
|
5682
|
+
i.has(v) && U(Xi(v, c.value));
|
|
5683
5683
|
}
|
|
5684
5684
|
function L(v) {
|
|
5685
|
-
|
|
5685
|
+
U(v);
|
|
5686
5686
|
}
|
|
5687
5687
|
function x(v) {
|
|
5688
5688
|
ge(v), m("ready", { milkdown: v });
|
|
@@ -5700,7 +5700,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5700
5700
|
class: "aimd-recorder-wysiwyg-surface",
|
|
5701
5701
|
style: Rt(ue.value)
|
|
5702
5702
|
}, [
|
|
5703
|
-
ea(Ve(
|
|
5703
|
+
ea(Ve(Qi), {
|
|
5704
5704
|
"show-top-bar": !1,
|
|
5705
5705
|
"show-md-toolbar": !0,
|
|
5706
5706
|
"show-aimd-toolbar": !0,
|
|
@@ -5712,7 +5712,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5712
5712
|
onOpenAimdDialog: ce,
|
|
5713
5713
|
onQuickInsertAimd: A
|
|
5714
5714
|
}, null, 8, ["resolved-messages", "localized-field-types", "localized-md-toolbar-items", "onMdAction"]),
|
|
5715
|
-
ea(Ve(
|
|
5715
|
+
ea(Ve(Yi), {
|
|
5716
5716
|
ref_key: "wysiwygEditorRef",
|
|
5717
5717
|
ref: $,
|
|
5718
5718
|
content: Ve(K),
|
|
@@ -5727,7 +5727,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5727
5727
|
onReady: x,
|
|
5728
5728
|
onOpenAimdDialog: ce
|
|
5729
5729
|
}, null, 8, ["content", "min-height", "enable-block-handle", "readonly", "resolved-messages", "localized-field-types", "onMarkdownUpdated"]),
|
|
5730
|
-
ea(Ve(
|
|
5730
|
+
ea(Ve(Ji), {
|
|
5731
5731
|
visible: Ae.value,
|
|
5732
5732
|
"initial-type": pe.value,
|
|
5733
5733
|
messages: c.value,
|
|
@@ -5739,49 +5739,49 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5739
5739
|
}, null, 8, ["visible", "initial-type", "messages", "ref-suggestions", "var-type-plugins"])
|
|
5740
5740
|
], 4));
|
|
5741
5741
|
}
|
|
5742
|
-
}),
|
|
5742
|
+
}), hd = /* @__PURE__ */ kt(gd, [["__scopeId", "data-v-4d0c2a8e"]]), pd = {
|
|
5743
5743
|
key: 0,
|
|
5744
5744
|
class: "aimd-recorder-workbench__panel aimd-recorder-workbench__panel--source"
|
|
5745
|
-
},
|
|
5745
|
+
}, yd = { class: "aimd-recorder-workbench__panel-head-row" }, bd = { class: "aimd-recorder-workbench__panel-title" }, _d = ["aria-label", "aria-valuenow"], kd = { class: "aimd-recorder-workbench__panel-head-row" }, wd = { class: "aimd-recorder-workbench__panel-head-copy" }, Sd = { class: "aimd-recorder-workbench__panel-title" }, Cd = {
|
|
5746
5746
|
key: 0,
|
|
5747
5747
|
class: "aimd-recorder-workbench__panel-title-count"
|
|
5748
|
-
},
|
|
5748
|
+
}, xd = {
|
|
5749
5749
|
key: 0,
|
|
5750
5750
|
class: "aimd-recorder-workbench__panel-head-note"
|
|
5751
|
-
},
|
|
5751
|
+
}, $d = {
|
|
5752
5752
|
key: 0,
|
|
5753
5753
|
class: "aimd-recorder-workbench__panel-actions"
|
|
5754
|
-
},
|
|
5754
|
+
}, Ad = {
|
|
5755
5755
|
key: 1,
|
|
5756
5756
|
class: "aimd-recorder-workbench__panel-actions"
|
|
5757
|
-
},
|
|
5757
|
+
}, Ed = ["aria-label"], Fd = ["onClick"], Td = {
|
|
5758
5758
|
key: 0,
|
|
5759
5759
|
class: "aimd-recorder-workbench__side-tab-badge"
|
|
5760
|
-
},
|
|
5760
|
+
}, Rd = { class: "aimd-recorder-workbench__recorder-toolbar-note" }, Md = { class: "aimd-recorder-workbench__structure" }, zd = { class: "aimd-recorder-workbench__structure-description" }, qd = { class: "aimd-recorder-workbench__structure-toolbar" }, Vd = ["disabled"], Dd = ["disabled"], Id = ["disabled"], Ld = ["disabled"], Pd = ["disabled"], Bd = {
|
|
5761
5761
|
key: 0,
|
|
5762
5762
|
class: "aimd-recorder-workbench__field-list"
|
|
5763
|
-
},
|
|
5763
|
+
}, Od = {
|
|
5764
5764
|
key: 0,
|
|
5765
5765
|
class: "aimd-recorder-workbench__drop-zone-label"
|
|
5766
|
-
},
|
|
5766
|
+
}, Nd = ["draggable", "onDragstart"], Kd = { class: "aimd-recorder-workbench__field-item-top" }, jd = ["title"], Hd = { class: "aimd-recorder-workbench__field-badge" }, Ud = ["disabled", "onClick"], Wd = { class: "aimd-recorder-workbench__field-grid" }, Gd = { class: "aimd-recorder-workbench__field-label" }, Qd = ["value", "disabled", "onChange"], Yd = { value: "var" }, Jd = { value: "var_table" }, Xd = { value: "step" }, Zd = { value: "check" }, ec = { value: "quiz" }, tc = { class: "aimd-recorder-workbench__field-label" }, ac = ["value", "disabled", "onChange"], nc = {
|
|
5767
5767
|
key: 0,
|
|
5768
5768
|
class: "aimd-recorder-workbench__field-label"
|
|
5769
|
-
},
|
|
5769
|
+
}, ic = ["value", "disabled", "onChange"], rc = ["onDrop"], lc = {
|
|
5770
5770
|
key: 0,
|
|
5771
5771
|
class: "aimd-recorder-workbench__drop-zone-label"
|
|
5772
|
-
},
|
|
5772
|
+
}, sc = {
|
|
5773
5773
|
key: 1,
|
|
5774
5774
|
class: "aimd-recorder-workbench__structure-empty"
|
|
5775
|
-
},
|
|
5775
|
+
}, oc = { class: "aimd-recorder-workbench__code" }, dc = { class: "aimd-recorder-workbench__detached-description" }, cc = { class: "aimd-recorder-workbench__code aimd-recorder-workbench__code--detached" }, uc = ["aria-label"], fc = { class: "aimd-recorder-workbench__dialog-head" }, mc = { class: "aimd-recorder-workbench__dialog-title" }, vc = { class: "aimd-recorder-workbench__dialog-summary" }, gc = { class: "aimd-recorder-workbench__dialog-body" }, hc = { class: "aimd-recorder-workbench__dialog-label" }, pc = ["value", "disabled"], yc = { value: "var" }, bc = { value: "var_table" }, _c = { value: "step" }, kc = { value: "check" }, wc = { value: "quiz" }, Sc = { class: "aimd-recorder-workbench__dialog-label" }, Cc = ["value", "disabled"], xc = {
|
|
5776
5776
|
key: 0,
|
|
5777
5777
|
class: "aimd-recorder-workbench__dialog-label"
|
|
5778
|
-
},
|
|
5778
|
+
}, $c = ["value", "disabled"], Ac = {
|
|
5779
5779
|
key: 1,
|
|
5780
5780
|
class: "aimd-recorder-workbench__dialog-label aimd-recorder-workbench__dialog-label--wide"
|
|
5781
|
-
},
|
|
5781
|
+
}, Ec = ["disabled"], Fc = { class: "aimd-recorder-workbench__dialog-foot" }, Tc = {
|
|
5782
5782
|
key: 0,
|
|
5783
5783
|
class: "aimd-recorder-workbench__dialog-hint"
|
|
5784
|
-
},
|
|
5784
|
+
}, Rc = { class: "aimd-recorder-workbench__dialog-actions" }, Mc = ["disabled"], zc = ["disabled"], qc = 120, Vc = 1600, Dc = 2e3, Ic = /* @__PURE__ */ Ye({
|
|
5785
5785
|
__name: "AimdRecorderEditor",
|
|
5786
5786
|
props: {
|
|
5787
5787
|
content: { default: "" },
|
|
@@ -5853,7 +5853,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5853
5853
|
ref_fig: [],
|
|
5854
5854
|
cite: [],
|
|
5855
5855
|
fig: []
|
|
5856
|
-
}, o = O(null), m = O(null), c = O(null), z = O(null), P = O(null), ae = O(null), ue = O(null), J = O(null), K = O(null), E = O(null),
|
|
5856
|
+
}, o = O(null), m = O(null), c = O(null), z = O(null), P = O(null), ae = O(null), ue = O(null), J = O(null), K = O(null), E = O(null), U = O(h), R = O(a.content || ""), ne = O(a.content || ""), ge = O(pa(a.modelValue)), H = O(null), ie = O(a.initialVisualEditMode), ye = O(null), oe = O("recorder"), N = O(a.initialSourceCollapsed), B = O(50), le = O(!1), se = O(a.editorMinHeight), F = O(a.recorderMinHeight), q = O(Math.max(320, a.recorderMinHeight)), X = O(null), W = O(null), de = O(""), me = O(null);
|
|
5857
5857
|
let he = 0, V = null, be = null, G = [], Q = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new Map();
|
|
5858
5858
|
const pe = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Set();
|
|
5859
5859
|
function A(d) {
|
|
@@ -5882,7 +5882,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5882
5882
|
pe,
|
|
5883
5883
|
Q,
|
|
5884
5884
|
d,
|
|
5885
|
-
|
|
5885
|
+
Vc
|
|
5886
5886
|
);
|
|
5887
5887
|
}
|
|
5888
5888
|
function j(d) {
|
|
@@ -5890,7 +5890,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5890
5890
|
ce,
|
|
5891
5891
|
Ae,
|
|
5892
5892
|
d,
|
|
5893
|
-
|
|
5893
|
+
Dc
|
|
5894
5894
|
);
|
|
5895
5895
|
}
|
|
5896
5896
|
function p(d) {
|
|
@@ -5899,7 +5899,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
5899
5899
|
function D(d) {
|
|
5900
5900
|
x(), be = setTimeout(() => {
|
|
5901
5901
|
be = null, j(d), ne.value = d;
|
|
5902
|
-
},
|
|
5902
|
+
}, qc);
|
|
5903
5903
|
}
|
|
5904
5904
|
function b(d) {
|
|
5905
5905
|
const u = A(d), y = G.indexOf(u);
|
|
@@ -6058,8 +6058,8 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6058
6058
|
return d.find((_e) => _e.start === u.start) ?? d.find((_e) => _e.uid === u.uid) ?? d.find((_e) => _e.fieldType === u.fieldType && _e.id === u.id) ?? null;
|
|
6059
6059
|
}
|
|
6060
6060
|
function Ke(d, u) {
|
|
6061
|
-
const y = Ja(), _e = new Set(u.var), Re = new Set(
|
|
6062
|
-
for (const ze of
|
|
6061
|
+
const y = Ja(), _e = new Set(u.var), Re = new Set(Fi(u.step).map((ze) => ze.name)), Me = new Set(Ti(u.check).map((ze) => ze.name)), Ge = new Set(Ri(u.quiz).map((ze) => ze.id));
|
|
6062
|
+
for (const ze of Mi(u.var_table))
|
|
6063
6063
|
_e.add(ze.id);
|
|
6064
6064
|
for (const [ze, ut] of Object.entries(d.var))
|
|
6065
6065
|
_e.has(ze) || (y.var[ze] = ut);
|
|
@@ -6074,7 +6074,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6074
6074
|
function Le(d) {
|
|
6075
6075
|
return Object.keys(d.var).length + Object.keys(d.step).length + Object.keys(d.check).length + Object.keys(d.quiz).length;
|
|
6076
6076
|
}
|
|
6077
|
-
const dt = k(() => Ke(ge.value,
|
|
6077
|
+
const dt = k(() => Ke(ge.value, U.value)), Ct = k(() => Le(dt.value)), xt = k(() => Ct.value > 0), De = k(() => JSON.stringify(ge.value, null, 2)), He = k(() => JSON.stringify(dt.value, null, 2)), $a = k(() => ({
|
|
6078
6078
|
...N.value ? {} : { "--aimd-recorder-source-panel-width": `${B.value}%` },
|
|
6079
6079
|
...X.value === null ? {} : { "--aimd-recorder-workbench-main-height": `${X.value}px` }
|
|
6080
6080
|
})), qt = k(() => a.fillParent ? {} : { height: `${F.value}px` }), Aa = k(() => a.fillParent ? 0 : q.value), $t = k(() => {
|
|
@@ -6199,7 +6199,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6199
6199
|
}
|
|
6200
6200
|
}
|
|
6201
6201
|
function ra(d) {
|
|
6202
|
-
|
|
6202
|
+
U.value = d, i("fields-change", d);
|
|
6203
6203
|
}
|
|
6204
6204
|
function Et(d) {
|
|
6205
6205
|
const u = zn(ke.value, d, d === "quiz" ? "choice" : void 0);
|
|
@@ -6212,11 +6212,11 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6212
6212
|
});
|
|
6213
6213
|
}
|
|
6214
6214
|
function Jt(d) {
|
|
6215
|
-
W.value?.uid === d.uid && S(), Dt(
|
|
6215
|
+
W.value?.uid === d.uid && S(), Dt(Uo(R.value, d));
|
|
6216
6216
|
}
|
|
6217
6217
|
function Ma(d, u) {
|
|
6218
6218
|
const y = u.trim();
|
|
6219
|
-
y && rt(
|
|
6219
|
+
y && rt(Wo(R.value, d, y), d, {
|
|
6220
6220
|
fieldType: d.fieldType,
|
|
6221
6221
|
id: y
|
|
6222
6222
|
});
|
|
@@ -6225,7 +6225,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6225
6225
|
Ma(d, u.target.value);
|
|
6226
6226
|
}
|
|
6227
6227
|
function sa(d, u) {
|
|
6228
|
-
rt(
|
|
6228
|
+
rt(Go(R.value, d, u), d, {
|
|
6229
6229
|
fieldType: u,
|
|
6230
6230
|
id: d.id
|
|
6231
6231
|
});
|
|
@@ -6234,7 +6234,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6234
6234
|
sa(d, u.target.value);
|
|
6235
6235
|
}
|
|
6236
6236
|
function r(d, u) {
|
|
6237
|
-
rt(
|
|
6237
|
+
rt(Qo(R.value, d, u), d);
|
|
6238
6238
|
}
|
|
6239
6239
|
function s(d, u) {
|
|
6240
6240
|
r(d, u.target.value);
|
|
@@ -6250,7 +6250,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6250
6250
|
}
|
|
6251
6251
|
function ve(d, u) {
|
|
6252
6252
|
const y = zn(ke.value, d, d === "quiz" ? "choice" : void 0);
|
|
6253
|
-
me.value = null, rt(
|
|
6253
|
+
me.value = null, rt(Ho(
|
|
6254
6254
|
R.value,
|
|
6255
6255
|
ke.value,
|
|
6256
6256
|
u,
|
|
@@ -6265,7 +6265,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6265
6265
|
});
|
|
6266
6266
|
}
|
|
6267
6267
|
function $e() {
|
|
6268
|
-
!a.allowRawFieldSourceEditing || !W.value || rt(
|
|
6268
|
+
!a.allowRawFieldSourceEditing || !W.value || rt(Yo(
|
|
6269
6269
|
R.value,
|
|
6270
6270
|
W.value,
|
|
6271
6271
|
de.value
|
|
@@ -6287,27 +6287,27 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6287
6287
|
u.preventDefault();
|
|
6288
6288
|
return;
|
|
6289
6289
|
}
|
|
6290
|
-
|
|
6290
|
+
H.value = d.uid, me.value = null, u.dataTransfer?.setData("text/plain", d.uid), u.dataTransfer && (u.dataTransfer.effectAllowed = "move");
|
|
6291
6291
|
}
|
|
6292
6292
|
function te() {
|
|
6293
|
-
|
|
6293
|
+
H.value = null;
|
|
6294
6294
|
}
|
|
6295
6295
|
function Xe(d) {
|
|
6296
6296
|
a.readonly || (d.preventDefault(), d.dataTransfer && (d.dataTransfer.dropEffect = "move"));
|
|
6297
6297
|
}
|
|
6298
6298
|
function lt(d) {
|
|
6299
|
-
if (a.readonly || !
|
|
6299
|
+
if (a.readonly || !H.value)
|
|
6300
6300
|
return;
|
|
6301
|
-
const u = ke.value.find((_e) => _e.uid ===
|
|
6301
|
+
const u = ke.value.find((_e) => _e.uid === H.value), y = Jo(
|
|
6302
6302
|
R.value,
|
|
6303
6303
|
ke.value,
|
|
6304
|
-
|
|
6304
|
+
H.value,
|
|
6305
6305
|
d
|
|
6306
6306
|
);
|
|
6307
|
-
|
|
6307
|
+
H.value = null, rt(y, u);
|
|
6308
6308
|
}
|
|
6309
6309
|
function ct(d) {
|
|
6310
|
-
if (
|
|
6310
|
+
if (H.value)
|
|
6311
6311
|
return [
|
|
6312
6312
|
l("span", { class: "aimd-recorder-workbench__drop-zone-label" }, ee.value.dropHere)
|
|
6313
6313
|
];
|
|
@@ -6360,7 +6360,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6360
6360
|
return l("span", {
|
|
6361
6361
|
class: [
|
|
6362
6362
|
"aimd-recorder-workbench__visual-drop-zone",
|
|
6363
|
-
|
|
6363
|
+
H.value ? "aimd-recorder-workbench__visual-drop-zone--active" : ""
|
|
6364
6364
|
],
|
|
6365
6365
|
onDragover: Xe,
|
|
6366
6366
|
onDrop: (u) => {
|
|
@@ -6378,7 +6378,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6378
6378
|
class: [
|
|
6379
6379
|
"aimd-recorder-workbench__visual-field",
|
|
6380
6380
|
_e.sourceKind === "block" ? "aimd-recorder-workbench__visual-field--block" : "aimd-recorder-workbench__visual-field--inline",
|
|
6381
|
-
|
|
6381
|
+
H.value === _e.uid ? "aimd-recorder-workbench__visual-field--dragging" : ""
|
|
6382
6382
|
]
|
|
6383
6383
|
}, [
|
|
6384
6384
|
Qe(Re),
|
|
@@ -6434,14 +6434,14 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6434
6434
|
}]),
|
|
6435
6435
|
style: Rt($a.value)
|
|
6436
6436
|
}, [
|
|
6437
|
-
N.value ? re("", !0) : (_(), w("section",
|
|
6437
|
+
N.value ? re("", !0) : (_(), w("section", pd, [
|
|
6438
6438
|
g("header", {
|
|
6439
6439
|
ref_key: "editorPanelHeadRef",
|
|
6440
6440
|
ref: ae,
|
|
6441
6441
|
class: "aimd-recorder-workbench__panel-head"
|
|
6442
6442
|
}, [
|
|
6443
|
-
g("div",
|
|
6444
|
-
g("h3",
|
|
6443
|
+
g("div", yd, [
|
|
6444
|
+
g("h3", bd, C(Ee.value), 1),
|
|
6445
6445
|
g("button", {
|
|
6446
6446
|
class: "aimd-recorder-workbench__panel-head-action",
|
|
6447
6447
|
type: "button",
|
|
@@ -6456,7 +6456,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6456
6456
|
onFocusinCapture: na,
|
|
6457
6457
|
onFocusoutCapture: u[3] || (u[3] = (y) => at("source", y))
|
|
6458
6458
|
}, [
|
|
6459
|
-
ea(Ve(
|
|
6459
|
+
ea(Ve(Zi), Zn({
|
|
6460
6460
|
ref_key: "editorRef",
|
|
6461
6461
|
ref: o
|
|
6462
6462
|
}, fe.value, {
|
|
@@ -6479,7 +6479,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6479
6479
|
"aria-valuenow": Math.round(B.value),
|
|
6480
6480
|
onPointerdown: Ra,
|
|
6481
6481
|
onKeydown: Yt
|
|
6482
|
-
}, null, 40,
|
|
6482
|
+
}, null, 40, _d)),
|
|
6483
6483
|
g("section", {
|
|
6484
6484
|
class: Oe(["aimd-recorder-workbench__panel", {
|
|
6485
6485
|
"aimd-recorder-workbench__panel--structure": oe.value === "structure",
|
|
@@ -6491,15 +6491,15 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6491
6491
|
ref: ue,
|
|
6492
6492
|
class: "aimd-recorder-workbench__panel-head"
|
|
6493
6493
|
}, [
|
|
6494
|
-
g("div",
|
|
6495
|
-
g("div",
|
|
6496
|
-
g("h3",
|
|
6494
|
+
g("div", kd, [
|
|
6495
|
+
g("div", wd, [
|
|
6496
|
+
g("h3", Sd, [
|
|
6497
6497
|
nt(C(Ea.value) + " ", 1),
|
|
6498
|
-
oe.value === "detached" ? (_(), w("span",
|
|
6498
|
+
oe.value === "detached" ? (_(), w("span", Cd, " (" + C(Ct.value) + ") ", 1)) : re("", !0)
|
|
6499
6499
|
]),
|
|
6500
|
-
e.showVisualEditToggle && oe.value === "recorder" ? (_(), w("p",
|
|
6500
|
+
e.showVisualEditToggle && oe.value === "recorder" ? (_(), w("p", xd, C(tt.value), 1)) : re("", !0)
|
|
6501
6501
|
]),
|
|
6502
|
-
e.showVisualEditToggle && oe.value === "recorder" ? (_(), w("div",
|
|
6502
|
+
e.showVisualEditToggle && oe.value === "recorder" ? (_(), w("div", $d, [
|
|
6503
6503
|
N.value ? (_(), w("button", {
|
|
6504
6504
|
key: 0,
|
|
6505
6505
|
class: "aimd-recorder-workbench__panel-head-action",
|
|
@@ -6511,7 +6511,7 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6511
6511
|
type: "button",
|
|
6512
6512
|
onClick: u[5] || (u[5] = (y) => ie.value = !ie.value)
|
|
6513
6513
|
}, C(ie.value ? ee.value.visualEditOn : ee.value.visualEditOff), 3)
|
|
6514
|
-
])) : N.value ? (_(), w("div",
|
|
6514
|
+
])) : N.value ? (_(), w("div", Ad, [
|
|
6515
6515
|
g("button", {
|
|
6516
6516
|
class: "aimd-recorder-workbench__panel-head-action",
|
|
6517
6517
|
type: "button",
|
|
@@ -6531,9 +6531,9 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6531
6531
|
onClick: (_e) => oe.value = y.key
|
|
6532
6532
|
}, [
|
|
6533
6533
|
g("span", null, C(y.label), 1),
|
|
6534
|
-
typeof y.badge == "number" ? (_(), w("span",
|
|
6535
|
-
], 10,
|
|
6536
|
-
], 8,
|
|
6534
|
+
typeof y.badge == "number" ? (_(), w("span", Td, C(y.badge), 1)) : re("", !0)
|
|
6535
|
+
], 10, Fd))), 128))
|
|
6536
|
+
], 8, Ed)) : re("", !0)
|
|
6537
6537
|
], 512),
|
|
6538
6538
|
oe.value === "recorder" ? (_(), w("div", {
|
|
6539
6539
|
key: 0,
|
|
@@ -6550,9 +6550,9 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6550
6550
|
ref: E,
|
|
6551
6551
|
class: "aimd-recorder-workbench__recorder-toolbar"
|
|
6552
6552
|
}, [
|
|
6553
|
-
g("p",
|
|
6553
|
+
g("p", Rd, C(ee.value.addEndHint), 1)
|
|
6554
6554
|
], 512)) : re("", !0),
|
|
6555
|
-
ie.value ? (_(), ft(
|
|
6555
|
+
ie.value ? (_(), ft(hd, {
|
|
6556
6556
|
key: 1,
|
|
6557
6557
|
ref_key: "visualRecorderRef",
|
|
6558
6558
|
ref: c,
|
|
@@ -6656,120 +6656,120 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6656
6656
|
class: "aimd-recorder-workbench__panel-body aimd-recorder-workbench__panel-body--side",
|
|
6657
6657
|
style: Rt(qt.value)
|
|
6658
6658
|
}, [
|
|
6659
|
-
g("div",
|
|
6660
|
-
g("p",
|
|
6661
|
-
g("div",
|
|
6659
|
+
g("div", Md, [
|
|
6660
|
+
g("p", zd, C(it.value), 1),
|
|
6661
|
+
g("div", qd, [
|
|
6662
6662
|
g("button", {
|
|
6663
6663
|
class: "aimd-recorder-workbench__add-btn",
|
|
6664
6664
|
disabled: e.readonly,
|
|
6665
6665
|
onClick: u[25] || (u[25] = (y) => Et("var"))
|
|
6666
|
-
}, C(ee.value.addVar), 9,
|
|
6666
|
+
}, C(ee.value.addVar), 9, Vd),
|
|
6667
6667
|
g("button", {
|
|
6668
6668
|
class: "aimd-recorder-workbench__add-btn",
|
|
6669
6669
|
disabled: e.readonly,
|
|
6670
6670
|
onClick: u[26] || (u[26] = (y) => Et("var_table"))
|
|
6671
|
-
}, C(ee.value.addTable), 9,
|
|
6671
|
+
}, C(ee.value.addTable), 9, Dd),
|
|
6672
6672
|
g("button", {
|
|
6673
6673
|
class: "aimd-recorder-workbench__add-btn",
|
|
6674
6674
|
disabled: e.readonly,
|
|
6675
6675
|
onClick: u[27] || (u[27] = (y) => Et("step"))
|
|
6676
|
-
}, C(ee.value.addStep), 9,
|
|
6676
|
+
}, C(ee.value.addStep), 9, Id),
|
|
6677
6677
|
g("button", {
|
|
6678
6678
|
class: "aimd-recorder-workbench__add-btn",
|
|
6679
6679
|
disabled: e.readonly,
|
|
6680
6680
|
onClick: u[28] || (u[28] = (y) => Et("check"))
|
|
6681
|
-
}, C(ee.value.addCheck), 9,
|
|
6681
|
+
}, C(ee.value.addCheck), 9, Ld),
|
|
6682
6682
|
g("button", {
|
|
6683
6683
|
class: "aimd-recorder-workbench__add-btn",
|
|
6684
6684
|
disabled: e.readonly,
|
|
6685
6685
|
onClick: u[29] || (u[29] = (y) => Et("quiz"))
|
|
6686
|
-
}, C(ee.value.addQuiz), 9,
|
|
6686
|
+
}, C(ee.value.addQuiz), 9, Pd)
|
|
6687
6687
|
]),
|
|
6688
|
-
ke.value.length ? (_(), w("div",
|
|
6688
|
+
ke.value.length ? (_(), w("div", Bd, [
|
|
6689
6689
|
g("div", {
|
|
6690
|
-
class: Oe(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!
|
|
6690
|
+
class: Oe(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!H.value }]),
|
|
6691
6691
|
onDragover: Xe,
|
|
6692
6692
|
onDrop: u[30] || (u[30] = yt((y) => lt(0), ["prevent"]))
|
|
6693
6693
|
}, [
|
|
6694
|
-
|
|
6694
|
+
H.value ? (_(), w("span", Od, C(ee.value.dropHere), 1)) : re("", !0)
|
|
6695
6695
|
], 34),
|
|
6696
6696
|
(_(!0), w(Be, null, Ue(ke.value, (y, _e) => (_(), w(Be, {
|
|
6697
6697
|
key: y.uid
|
|
6698
6698
|
}, [
|
|
6699
6699
|
g("article", {
|
|
6700
|
-
class: Oe(["aimd-recorder-workbench__field-item", { "aimd-recorder-workbench__field-item--dragging":
|
|
6700
|
+
class: Oe(["aimd-recorder-workbench__field-item", { "aimd-recorder-workbench__field-item--dragging": H.value === y.uid }]),
|
|
6701
6701
|
draggable: !e.readonly,
|
|
6702
6702
|
onDragstart: (Re) => we(y, Re),
|
|
6703
6703
|
onDragend: te
|
|
6704
6704
|
}, [
|
|
6705
|
-
g("div",
|
|
6705
|
+
g("div", Kd, [
|
|
6706
6706
|
g("span", {
|
|
6707
6707
|
class: "aimd-recorder-workbench__drag-handle",
|
|
6708
6708
|
title: ee.value.drag
|
|
6709
|
-
}, " :: " + C(ee.value.drag), 9,
|
|
6710
|
-
g("span",
|
|
6709
|
+
}, " :: " + C(ee.value.drag), 9, jd),
|
|
6710
|
+
g("span", Hd, C(ee.value.typeLabels[y.fieldType]), 1),
|
|
6711
6711
|
g("button", {
|
|
6712
6712
|
class: "aimd-recorder-workbench__delete-btn",
|
|
6713
6713
|
disabled: e.readonly,
|
|
6714
6714
|
onClick: (Re) => Jt(y)
|
|
6715
|
-
}, C(ee.value.delete), 9,
|
|
6715
|
+
}, C(ee.value.delete), 9, Ud)
|
|
6716
6716
|
]),
|
|
6717
|
-
g("div",
|
|
6718
|
-
g("label",
|
|
6717
|
+
g("div", Wd, [
|
|
6718
|
+
g("label", Gd, [
|
|
6719
6719
|
g("span", null, C(ee.value.kind), 1),
|
|
6720
6720
|
g("select", {
|
|
6721
6721
|
value: y.fieldType,
|
|
6722
6722
|
disabled: e.readonly,
|
|
6723
6723
|
onChange: (Re) => oa(y, Re)
|
|
6724
6724
|
}, [
|
|
6725
|
-
g("option",
|
|
6726
|
-
g("option",
|
|
6727
|
-
g("option",
|
|
6728
|
-
g("option",
|
|
6729
|
-
g("option",
|
|
6730
|
-
], 40,
|
|
6725
|
+
g("option", Yd, C(ee.value.typeLabels.var), 1),
|
|
6726
|
+
g("option", Jd, C(ee.value.typeLabels.var_table), 1),
|
|
6727
|
+
g("option", Xd, C(ee.value.typeLabels.step), 1),
|
|
6728
|
+
g("option", Zd, C(ee.value.typeLabels.check), 1),
|
|
6729
|
+
g("option", ec, C(ee.value.typeLabels.quiz), 1)
|
|
6730
|
+
], 40, Qd)
|
|
6731
6731
|
]),
|
|
6732
|
-
g("label",
|
|
6732
|
+
g("label", tc, [
|
|
6733
6733
|
g("span", null, C(ee.value.id), 1),
|
|
6734
6734
|
g("input", {
|
|
6735
6735
|
value: y.id,
|
|
6736
6736
|
disabled: e.readonly,
|
|
6737
6737
|
onChange: (Re) => la(y, Re)
|
|
6738
|
-
}, null, 40,
|
|
6738
|
+
}, null, 40, ac)
|
|
6739
6739
|
]),
|
|
6740
|
-
y.fieldType === "var" ? (_(), w("label",
|
|
6740
|
+
y.fieldType === "var" ? (_(), w("label", nc, [
|
|
6741
6741
|
g("span", null, C(ee.value.valueType), 1),
|
|
6742
6742
|
g("input", {
|
|
6743
6743
|
value: y.valueType || "str",
|
|
6744
6744
|
disabled: e.readonly,
|
|
6745
6745
|
onChange: (Re) => s(y, Re)
|
|
6746
|
-
}, null, 40,
|
|
6746
|
+
}, null, 40, ic)
|
|
6747
6747
|
])) : re("", !0)
|
|
6748
6748
|
])
|
|
6749
|
-
], 42,
|
|
6749
|
+
], 42, Nd),
|
|
6750
6750
|
g("div", {
|
|
6751
|
-
class: Oe(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!
|
|
6751
|
+
class: Oe(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!H.value }]),
|
|
6752
6752
|
onDragover: Xe,
|
|
6753
6753
|
onDrop: yt((Re) => lt(_e + 1), ["prevent"])
|
|
6754
6754
|
}, [
|
|
6755
|
-
|
|
6756
|
-
], 42,
|
|
6755
|
+
H.value ? (_(), w("span", lc, C(ee.value.dropHere), 1)) : re("", !0)
|
|
6756
|
+
], 42, rc)
|
|
6757
6757
|
], 64))), 128))
|
|
6758
|
-
])) : (_(), w("p",
|
|
6758
|
+
])) : (_(), w("p", sc, C(ee.value.empty), 1))
|
|
6759
6759
|
])
|
|
6760
6760
|
], 4)) : oe.value === "record" ? (_(), w("div", {
|
|
6761
6761
|
key: 2,
|
|
6762
6762
|
class: "aimd-recorder-workbench__panel-body aimd-recorder-workbench__panel-body--code",
|
|
6763
6763
|
style: Rt(qt.value)
|
|
6764
6764
|
}, [
|
|
6765
|
-
g("pre",
|
|
6765
|
+
g("pre", oc, C(De.value), 1)
|
|
6766
6766
|
], 4)) : oe.value === "detached" ? (_(), w("div", {
|
|
6767
6767
|
key: 3,
|
|
6768
6768
|
class: "aimd-recorder-workbench__panel-body aimd-recorder-workbench__panel-body--code",
|
|
6769
6769
|
style: Rt(qt.value)
|
|
6770
6770
|
}, [
|
|
6771
|
-
g("p",
|
|
6772
|
-
g("pre",
|
|
6771
|
+
g("p", dc, C(Ce.value), 1),
|
|
6772
|
+
g("pre", cc, " " + C(He.value) + `
|
|
6773
6773
|
`, 1)
|
|
6774
6774
|
], 4)) : re("", !0)
|
|
6775
6775
|
], 2)
|
|
@@ -6785,10 +6785,10 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6785
6785
|
role: "dialog",
|
|
6786
6786
|
"aria-modal": "true"
|
|
6787
6787
|
}, [
|
|
6788
|
-
g("header",
|
|
6788
|
+
g("header", fc, [
|
|
6789
6789
|
g("div", null, [
|
|
6790
|
-
g("h4",
|
|
6791
|
-
g("p",
|
|
6790
|
+
g("h4", mc, C(ee.value.visualDialogTitle), 1),
|
|
6791
|
+
g("p", vc, C(ee.value.visualDialogSummary), 1)
|
|
6792
6792
|
]),
|
|
6793
6793
|
g("button", {
|
|
6794
6794
|
class: "aimd-recorder-workbench__dialog-close",
|
|
@@ -6796,79 +6796,80 @@ const vd = /* @__PURE__ */ Ye({
|
|
|
6796
6796
|
onClick: S
|
|
6797
6797
|
}, C(ee.value.close), 1)
|
|
6798
6798
|
]),
|
|
6799
|
-
g("div",
|
|
6800
|
-
g("label",
|
|
6799
|
+
g("div", gc, [
|
|
6800
|
+
g("label", hc, [
|
|
6801
6801
|
g("span", null, C(ee.value.kind), 1),
|
|
6802
6802
|
g("select", {
|
|
6803
6803
|
value: W.value.fieldType,
|
|
6804
6804
|
disabled: e.readonly,
|
|
6805
6805
|
onChange: u[31] || (u[31] = (y) => oa(W.value, y))
|
|
6806
6806
|
}, [
|
|
6807
|
-
g("option",
|
|
6808
|
-
g("option",
|
|
6809
|
-
g("option",
|
|
6810
|
-
g("option",
|
|
6811
|
-
g("option",
|
|
6812
|
-
], 40,
|
|
6807
|
+
g("option", yc, C(ee.value.typeLabels.var), 1),
|
|
6808
|
+
g("option", bc, C(ee.value.typeLabels.var_table), 1),
|
|
6809
|
+
g("option", _c, C(ee.value.typeLabels.step), 1),
|
|
6810
|
+
g("option", kc, C(ee.value.typeLabels.check), 1),
|
|
6811
|
+
g("option", wc, C(ee.value.typeLabels.quiz), 1)
|
|
6812
|
+
], 40, pc)
|
|
6813
6813
|
]),
|
|
6814
|
-
g("label",
|
|
6814
|
+
g("label", Sc, [
|
|
6815
6815
|
g("span", null, C(ee.value.id), 1),
|
|
6816
6816
|
g("input", {
|
|
6817
6817
|
value: W.value.id,
|
|
6818
6818
|
disabled: e.readonly,
|
|
6819
6819
|
onChange: u[32] || (u[32] = (y) => la(W.value, y))
|
|
6820
|
-
}, null, 40,
|
|
6820
|
+
}, null, 40, Cc)
|
|
6821
6821
|
]),
|
|
6822
|
-
W.value.fieldType === "var" ? (_(), w("label",
|
|
6822
|
+
W.value.fieldType === "var" ? (_(), w("label", xc, [
|
|
6823
6823
|
g("span", null, C(ee.value.valueType), 1),
|
|
6824
6824
|
g("input", {
|
|
6825
6825
|
value: W.value.valueType || "str",
|
|
6826
6826
|
disabled: e.readonly,
|
|
6827
6827
|
onChange: u[33] || (u[33] = (y) => s(W.value, y))
|
|
6828
|
-
}, null, 40,
|
|
6828
|
+
}, null, 40, $c)
|
|
6829
6829
|
])) : re("", !0),
|
|
6830
|
-
e.allowRawFieldSourceEditing ? (_(), w("label",
|
|
6830
|
+
e.allowRawFieldSourceEditing ? (_(), w("label", Ac, [
|
|
6831
6831
|
g("span", null, C(ee.value.source), 1),
|
|
6832
6832
|
Nt(g("textarea", {
|
|
6833
6833
|
"onUpdate:modelValue": u[34] || (u[34] = (y) => de.value = y),
|
|
6834
6834
|
class: "aimd-recorder-workbench__dialog-textarea",
|
|
6835
6835
|
disabled: e.readonly
|
|
6836
|
-
}, null, 8,
|
|
6836
|
+
}, null, 8, Ec), [
|
|
6837
6837
|
[ba, de.value]
|
|
6838
6838
|
])
|
|
6839
6839
|
])) : re("", !0)
|
|
6840
6840
|
]),
|
|
6841
|
-
g("footer",
|
|
6842
|
-
e.allowRawFieldSourceEditing ? (_(), w("p",
|
|
6843
|
-
g("div",
|
|
6841
|
+
g("footer", Fc, [
|
|
6842
|
+
e.allowRawFieldSourceEditing ? (_(), w("p", Tc, C(ee.value.sourceHint), 1)) : re("", !0),
|
|
6843
|
+
g("div", Rc, [
|
|
6844
6844
|
g("button", {
|
|
6845
6845
|
class: "aimd-recorder-workbench__dialog-delete",
|
|
6846
6846
|
type: "button",
|
|
6847
6847
|
disabled: e.readonly,
|
|
6848
6848
|
onClick: u[35] || (u[35] = (y) => Jt(W.value))
|
|
6849
|
-
}, C(ee.value.delete), 9,
|
|
6849
|
+
}, C(ee.value.delete), 9, Mc),
|
|
6850
6850
|
e.allowRawFieldSourceEditing ? (_(), w("button", {
|
|
6851
6851
|
key: 0,
|
|
6852
6852
|
class: "aimd-recorder-workbench__dialog-apply",
|
|
6853
6853
|
type: "button",
|
|
6854
6854
|
disabled: e.readonly,
|
|
6855
6855
|
onClick: $e
|
|
6856
|
-
}, C(ee.value.applySource), 9,
|
|
6856
|
+
}, C(ee.value.applySource), 9, zc)) : re("", !0)
|
|
6857
6857
|
])
|
|
6858
6858
|
])
|
|
6859
|
-
], 8,
|
|
6859
|
+
], 8, uc)
|
|
6860
6860
|
])) : re("", !0)
|
|
6861
6861
|
], 2));
|
|
6862
6862
|
}
|
|
6863
|
-
}),
|
|
6863
|
+
}), Gc = /* @__PURE__ */ kt(Ic, [["__scopeId", "data-v-061016ee"]]), Qc = Ht(() => import("./AimdDnaSequenceField-CxFtD5Au.js")), Yc = Ht(() => import("./AimdMarkdownField-Du0Fh5sG.js")), Jc = Ht(() => import("./AimdEntityRefField-DCE79vca.js")), Xc = Za;
|
|
6864
6864
|
export {
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6865
|
+
Wc as AimdAssignerGraph,
|
|
6866
|
+
$l as AimdCollectorField,
|
|
6867
|
+
Qc as AimdDnaSequenceField,
|
|
6868
|
+
Jc as AimdEntityRefField,
|
|
6869
|
+
Yc as AimdMarkdownField,
|
|
6870
|
+
Xc as AimdProtocolRecorder,
|
|
6871
|
+
go as AimdQuizRecorder,
|
|
6872
6872
|
Za as AimdRecorder,
|
|
6873
|
-
|
|
6873
|
+
Gc as AimdRecorderEditor,
|
|
6874
|
+
bt as AimdRequiredMarker
|
|
6874
6875
|
};
|