@airalogy/aimd-recorder 1.27.1 → 1.27.2
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/{AimdDnaSequenceField-CcH4iNkt.js → AimdDnaSequenceField-CjcZ1fpz.js} +1 -1
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-CdfAwAUt.js → AimdEditor.vue_vue_type_style_index_0_lang-4yWDudoV.js} +908 -868
- package/dist/{AimdEntityRefField-D_oWNpqr.js → AimdEntityRefField-CiGP3IyQ.js} +1 -1
- package/dist/{AimdEntityRefField.vue_vue_type_script_setup_true_lang-Db_LDoBh.js → AimdEntityRefField.vue_vue_type_script_setup_true_lang-B-a446u5.js} +1 -1
- package/dist/{AimdMarkdownField-BKFxcFlr.js → AimdMarkdownField-BAJ7otCw.js} +3 -3
- package/dist/{AimdMarkdownNoteField-BT9p-czP.js → AimdMarkdownNoteField-Ca-kRvLz.js} +2 -2
- package/dist/{AimdResourceRefField-DTJrzEk0.js → AimdResourceRefField-Yc3j0Pgu.js} +2 -2
- package/dist/{arc-C4wUYsPP.js → arc-CAjOitck.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-CsDNdq7Q.js → architectureDiagram-3BPJPVTR-Dqk9MN5z.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-fKeT2D5b.js → blockDiagram-GPEHLZMM-DQLn0TV3.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-DVwh7NRj.js → c4Diagram-AAUBKEIU-DZZ_f9Fy.js} +2 -2
- package/dist/{channel-CH-usREe.js → channel-rjOxq-6_.js} +1 -1
- package/dist/{chunk-2J33WTMH-wsLH41rI.js → chunk-2J33WTMH-tQlc96HU.js} +1 -1
- package/dist/{chunk-4BX2VUAB-DAJr3925.js → chunk-4BX2VUAB-DJYTZE2c.js} +1 -1
- package/dist/{chunk-55IACEB6-Da4Ne6oY.js → chunk-55IACEB6-CRiTC3Ls.js} +1 -1
- package/dist/{chunk-727SXJPM-CP1g1Jx1.js → chunk-727SXJPM-BD2QhWqt.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-CrUHvBMG.js → chunk-AQP2D5EJ-B0aa98ib.js} +3 -3
- package/dist/{chunk-FMBD7UC4-2BS6vQ14.js → chunk-FMBD7UC4-ByDG3u38.js} +1 -1
- package/dist/{chunk-ND2GUHAM-DbptczhZ.js → chunk-ND2GUHAM-Cj1D7wW5.js} +1 -1
- package/dist/{chunk-QZHKN3VN-CmzoHGkh.js → chunk-QZHKN3VN-g2yBIr1b.js} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-BhWOa0pe.js → classDiagram-4FO5ZUOK-BHrQHB1_.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-BhWOa0pe.js → classDiagram-v2-Q7XG4LA2-BHrQHB1_.js} +2 -2
- package/dist/components.js +913 -911
- package/dist/composables.js +2 -2
- package/dist/{cose-bilkent-S5V4N54A-CVq2L78n.js → cose-bilkent-S5V4N54A-DoR6eiyr.js} +1 -1
- package/dist/{dagre-BM42HDAG-DgdlE5dv.js → dagre-BM42HDAG-Dojxqnuq.js} +3 -3
- package/dist/{diagram-2AECGRRQ-Bp_4Kx4E.js → diagram-2AECGRRQ-CXtd1KGZ.js} +2 -2
- package/dist/{diagram-5GNKFQAL-CvhaI19W.js → diagram-5GNKFQAL-BnJ2DhKE.js} +3 -3
- package/dist/{diagram-KO2AKTUF-zzkdurRu.js → diagram-KO2AKTUF-DJZFSngn.js} +2 -2
- package/dist/{diagram-LMA3HP47-LTnq6yjw.js → diagram-LMA3HP47-Dx6TLGwi.js} +2 -2
- package/dist/{diagram-OG6HWLK6-Cuz0JAg_.js → diagram-OG6HWLK6-BX5km_SS.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35-CIPjTfTT.js → erDiagram-TEJ5UH35-PWmJC0ho.js} +4 -4
- package/dist/{example-record-BJC4OLXj.js → example-record-AHkkwdqV.js} +2 -2
- package/dist/{flowDiagram-I6XJVG4X-CPaK4Xbu.js → flowDiagram-I6XJVG4X-ODu7JRxY.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-DgW97z1_.js → ganttDiagram-6RSMTGT7-CZY08InD.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-B5nDBDDz.js → gitGraphDiagram-PVQCEYII-1FOO5ySv.js} +3 -3
- package/dist/{graph-BPBu5cW4.js → graph-Dx1st3gR.js} +1 -1
- package/dist/index.js +5 -5
- package/dist/{infoDiagram-5YYISTIA-BRL6QS3D.js → infoDiagram-5YYISTIA-Rqn1YuSl.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-Clx8yAcX.js → ishikawaDiagram-YF4QCWOH-DTqjtgII.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-BgDIGN-f.js → journeyDiagram-JHISSGLW-Dfc2a9K3.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-CzITmCY8.js → kanban-definition-UN3LZRKU-DZz55ohU.js} +2 -2
- package/dist/{layout-CN9EF1w3.js → layout-k1LKX9WI.js} +2 -2
- package/dist/{linear-8L3HEUrZ.js → linear-DSz9nhkN.js} +1 -1
- package/dist/{mermaid.core-BKkg18RI.js → mermaid.core-iwpvEomj.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-CmOIakhY.js → mindmap-definition-RKZ34NQL-CEz0DgQr.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-Db3KkXWV.js → pieDiagram-4H26LBE5-BcuSLA0L.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-B3vtZnG7.js → quadrantDiagram-W4KKPZXB-D3IixvxS.js} +2 -2
- package/dist/record.js +3 -3
- package/dist/{requirementDiagram-4Y6WPE33-Ck8oKzEP.js → requirementDiagram-4Y6WPE33-Bk-lwb2t.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-CSeh32Zo.js → sankeyDiagram-5OEKKPKP-BmUhv9kI.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-NbBPwpmy.js → sequenceDiagram-3UESZ5HK-BhAJ2Wz1.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-4_Vpe-Zo.js → stateDiagram-AJRCARHV-DvH3mI9R.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-7SjLjguc.js → stateDiagram-v2-BHNVJYJU-DvkU8jpH.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-BNHrT4au.js → timeline-definition-PNZ67QCA-CQFLx2MG.js} +2 -2
- package/dist/{useFieldRendering-DR71Yx2E.js → useFieldRendering-Bj2H9CPx.js} +1 -1
- package/dist/{useVarHelpers-DCu81vu6.js → useVarHelpers-Bf3wNHxF.js} +1 -1
- package/dist/{validation-7k-val2c.js → validation-CH6pi638.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-Dg6RsGJi.js → vennDiagram-CIIHVFJN-D_qwBk9R.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-BKzJyt8_.js → wardleyDiagram-YWT4CUSO-BezUR1jm.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-DwYEckjZ.js → xychartDiagram-2RQKCTM6-CTFs3FiD.js} +2 -2
- package/package.json +3 -3
- package/src/__tests__/table-current-record.test.ts +29 -0
- package/src/components/AimdRecorder.vue +4 -1
package/dist/components.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as Ze, ref as P, getCurrentInstance as Kn, computed as C, watch as $e, nextTick as Ye, onMounted as en, onBeforeUnmount as Vt, openBlock as _, createElementBlock as S, normalizeStyle as zt, normalizeClass as Ne, createElementVNode as h, toDisplayString as $, createTextVNode as st, createCommentVNode as ne, withModifiers as St, Fragment as Oe, renderList as Qe, withKeys as Ua, unref as Ve, createBlock as
|
|
2
|
-
import { a as
|
|
3
|
-
import { aP as Gt, aT as Hn, aq as vi, aw as Ga, aZ as gi, be as qt, ag as dn, C as cn, a0 as ia, B as ha, a6 as pa, u as ca, b7 as aa, t as un, bf as hi, bg as pi, bh as yi, ba as fn, F as Un, bd as ya, G as Wn, bi, c as bt, bj as _i, z as ki, bb as $a, bc as Ra, bk as Qa, bl as Gn, a7 as wi, n as Si, af as Qn, b5 as ba, D as Ci, r as _t, ab as $i, N as xa, J as xi, E as Ai, O as Fi, as as tn, b1 as Ei, w as Ri, x as Ti, aG as Ut, a as Ya, f as
|
|
4
|
-
import { g as $t, a as wa, c as an, b as Gi, r as Qi, f as Yi, P as Ji, d as Xi, $ as Zi, e as
|
|
5
|
-
import { l as
|
|
6
|
-
import { renderToVue as
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import { isScaleQuizAnswerComplete as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as Ze, ref as P, getCurrentInstance as Kn, computed as C, watch as $e, nextTick as Ye, onMounted as en, onBeforeUnmount as Vt, openBlock as _, createElementBlock as S, normalizeStyle as zt, normalizeClass as Ne, createElementVNode as h, toDisplayString as $, createTextVNode as st, createCommentVNode as ne, withModifiers as St, Fragment as Oe, renderList as Qe, withKeys as Ua, unref as Ve, createBlock as ht, withDirectives as Ht, vModelText as Ca, inject as li, defineAsyncComponent as At, h as l, Transition as si, isVNode as oi, Comment as di, Text as ci, vModelRadio as sn, reactive as Wa, provide as ui, createVNode as wt, render as on, watchEffect as fi, mergeProps as jn, useAttrs as mi } from "vue";
|
|
2
|
+
import { a as ft, _ as Ct } from "./AimdRequiredMarker.vue_vue_type_script_setup_true_lang-B5qDiOZn.js";
|
|
3
|
+
import { aP as Gt, aT as Hn, aq as vi, aw as Ga, aZ as gi, be as qt, ag as dn, C as cn, a0 as ia, B as ha, a6 as pa, u as ca, b7 as aa, t as un, bf as hi, bg as pi, bh as yi, ba as fn, F as Un, bd as ya, G as Wn, bi, c as bt, bj as _i, z as ki, bb as $a, bc as Ra, bk as Qa, bl as Gn, a7 as wi, n as Si, af as Qn, b5 as ba, D as Ci, r as _t, ab as $i, N as xa, J as xi, E as Ai, O as Fi, as as tn, b1 as Ei, w as Ri, x as Ti, aG as Ut, a as Ya, f as ra, o as Mi, y as zi, h as qi, l as Vi, aa as Di, a8 as Ii, ae as Li, ad as Pi, aX as Bi, ar as Oi, I as Ni, U as Ki, bm as _a, _ as ka, a1 as ji, S as Hi, $ as Ui, a4 as Wi } from "./useVarHelpers-Bf3wNHxF.js";
|
|
4
|
+
import { g as $t, a as wa, c as an, b as Gi, r as Qi, f as Yi, P as Ji, d as Xi, $ as Zi, e as er, h as tr, i as ar, j as nr, k as ir, l as mn, m as rr, n as vn, N as lr, o as sr, p as or, q as dr, u as cr, s as ur, t as fr, A as mr, v as vr, w as gr, x as gn, y as hn, z as hr, B as pr, _ as yr } from "./AimdEditor.vue_vue_type_style_index_0_lang-4yWDudoV.js";
|
|
5
|
+
import { l as br, s as _r, n as pn, t as kr, o as wr, r as ua, y as Sr, x as Cr, d as $r, b as yn, A as xr, e as Ar, a as Fr, w as Er, z as Rr, v as Tr, m as Mr, u as zr, j as qr } from "./useFieldRendering-Bj2H9CPx.js";
|
|
6
|
+
import { renderToVue as Vr, parseAndExtract as jt } from "@airalogy/aimd-renderer";
|
|
7
|
+
import { g as Dr, m as Aa, b as Fa, a as Pa } from "./validation-CH6pi638.js";
|
|
8
|
+
import { u as Ir } from "./useCodeBlockRendering-IjoDTQ64.js";
|
|
9
|
+
import { isScaleQuizAnswerComplete as Lr, gradeScaleQuizLocally as Pr, validateAimdProtocolContract as Br } from "@airalogy/aimd-core";
|
|
10
|
+
const Or = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "aimd-assigner-graph__toolbar"
|
|
13
|
-
},
|
|
13
|
+
}, Nr = { class: "aimd-assigner-graph__toolbar-group" }, Kr = ["title", "aria-label"], jr = ["title", "aria-label"], Hr = ["title", "aria-label"], Ur = { class: "aimd-assigner-graph__zoom" }, Wr = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "aimd-assigner-graph__legend"
|
|
16
|
-
},
|
|
16
|
+
}, Gr = { class: "aimd-assigner-graph__legend-item" }, Qr = { class: "aimd-assigner-graph__legend-item" }, Yr = { class: "aimd-assigner-graph__legend-item" }, Jr = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "aimd-assigner-graph__state"
|
|
19
|
-
},
|
|
19
|
+
}, Xr = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "aimd-assigner-graph__state"
|
|
22
|
-
},
|
|
22
|
+
}, Zr = ["width", "height", "viewBox", "aria-label"], el = { class: "aimd-assigner-graph__edges" }, tl = ["d", "marker-end"], al = { class: "aimd-assigner-graph__nodes" }, nl = ["transform", "aria-label", "onClick", "onKeydown"], il = ["width", "height", "rx"], rl = ["x", "y"], bn = 48, _n = 260, kn = 86, fa = 36, ll = 132, wn = 232, Sn = 28, sl = /* @__PURE__ */ Ze({
|
|
23
23
|
name: "AimdAssignerGraph",
|
|
24
24
|
__name: "AimdAssignerGraph",
|
|
25
25
|
props: {
|
|
@@ -48,7 +48,7 @@ const Ol = {
|
|
|
48
48
|
empty: "No assigner graph available",
|
|
49
49
|
loading: "Loading assigner graph",
|
|
50
50
|
fullscreenTitle: "Assigner topology"
|
|
51
|
-
}, s = P(null), g = P(null), d = P(1), x = P(!1), V = P(!1), j = `aimd-assigner-graph-${Kn()?.uid ?? "0"}`,
|
|
51
|
+
}, s = P(null), g = P(null), d = P(1), x = P(!1), V = P(!1), j = `aimd-assigner-graph-${Kn()?.uid ?? "0"}`, X = `${j}-arrow`, pe = `${j}-arrow-highlighted`;
|
|
52
52
|
let ve = null;
|
|
53
53
|
const I = C(() => ({
|
|
54
54
|
...v,
|
|
@@ -92,7 +92,7 @@ const Ol = {
|
|
|
92
92
|
let ue = 0, p = 1;
|
|
93
93
|
for (const [F, U] of b)
|
|
94
94
|
ue = Math.max(ue, F), p = Math.max(p, U.length), [...U].sort(N).forEach((Me, We) => {
|
|
95
|
-
const w = a.nodeSchemaMap[Me.name], K =
|
|
95
|
+
const w = a.nodeSchemaMap[Me.name], K = re(Me, w), fe = R(K), Fe = O(fe), Le = g.value !== null, Q = Le && W.value.has(Me.name);
|
|
96
96
|
se.push({
|
|
97
97
|
name: Me.name,
|
|
98
98
|
type: Me.type,
|
|
@@ -127,7 +127,7 @@ const Ol = {
|
|
|
127
127
|
};
|
|
128
128
|
}), H = C(() => `${Math.round(d.value * 100)}%`), be = C(() => ({
|
|
129
129
|
"--aimd-assigner-graph-height": V.value ? "100vh" : a.height
|
|
130
|
-
})),
|
|
130
|
+
})), le = C(() => Math.max(E.value.width * d.value, 1)), te = C(() => Math.max(E.value.height * d.value, 1));
|
|
131
131
|
function B(M) {
|
|
132
132
|
return M === "dependent_field" ? 0 : M === "assigner" ? 1 : 2;
|
|
133
133
|
}
|
|
@@ -152,7 +152,7 @@ const Ol = {
|
|
|
152
152
|
}
|
|
153
153
|
return p;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function re(M, u) {
|
|
156
156
|
return x.value && u?.title ? u.title : M.name;
|
|
157
157
|
}
|
|
158
158
|
function R(M) {
|
|
@@ -160,7 +160,7 @@ const Ol = {
|
|
|
160
160
|
}
|
|
161
161
|
function O(M) {
|
|
162
162
|
const u = M.length * 8.5 + 36;
|
|
163
|
-
return Math.max(
|
|
163
|
+
return Math.max(ll, Math.min(wn, u));
|
|
164
164
|
}
|
|
165
165
|
function Z(M, u) {
|
|
166
166
|
const b = M.x + M.width, se = M.y + M.height / 2, ue = u.x, p = u.y + u.height / 2, D = Math.max(54, Math.min(110, Math.abs(ue - b) / 2));
|
|
@@ -240,8 +240,8 @@ const Ol = {
|
|
|
240
240
|
class: Ne(["aimd-assigner-graph", { "aimd-assigner-graph--fullscreen": V.value }]),
|
|
241
241
|
style: zt(be.value)
|
|
242
242
|
}, [
|
|
243
|
-
e.showToolbar ? (_(), S("div",
|
|
244
|
-
h("div",
|
|
243
|
+
e.showToolbar ? (_(), S("div", Or, [
|
|
244
|
+
h("div", Nr, [
|
|
245
245
|
h("button", {
|
|
246
246
|
type: "button",
|
|
247
247
|
class: "aimd-assigner-graph__icon-btn",
|
|
@@ -261,7 +261,7 @@ const Ol = {
|
|
|
261
261
|
}),
|
|
262
262
|
h("path", { d: "M16.5 16.5 21 21" })
|
|
263
263
|
], -1)
|
|
264
|
-
])], 8,
|
|
264
|
+
])], 8, Kr),
|
|
265
265
|
h("button", {
|
|
266
266
|
type: "button",
|
|
267
267
|
class: "aimd-assigner-graph__icon-btn",
|
|
@@ -275,7 +275,7 @@ const Ol = {
|
|
|
275
275
|
}, [
|
|
276
276
|
h("path", { d: "M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5" })
|
|
277
277
|
], -1)
|
|
278
|
-
])], 8,
|
|
278
|
+
])], 8, jr),
|
|
279
279
|
h("button", {
|
|
280
280
|
type: "button",
|
|
281
281
|
class: "aimd-assigner-graph__icon-btn",
|
|
@@ -295,8 +295,8 @@ const Ol = {
|
|
|
295
295
|
}),
|
|
296
296
|
h("path", { d: "M16.5 16.5 21 21" })
|
|
297
297
|
], -1)
|
|
298
|
-
])], 8,
|
|
299
|
-
h("span",
|
|
298
|
+
])], 8, Hr),
|
|
299
|
+
h("span", Ur, $(H.value), 1)
|
|
300
300
|
]),
|
|
301
301
|
h("button", {
|
|
302
302
|
type: "button",
|
|
@@ -326,16 +326,16 @@ const Ol = {
|
|
|
326
326
|
st(" " + $(V.value ? I.value.close : I.value.fullscreen), 1)
|
|
327
327
|
])) : ne("", !0)
|
|
328
328
|
])) : ne("", !0),
|
|
329
|
-
e.showLegend ? (_(), S("div",
|
|
330
|
-
h("span",
|
|
329
|
+
e.showLegend ? (_(), S("div", Wr, [
|
|
330
|
+
h("span", Gr, [
|
|
331
331
|
u[5] || (u[5] = h("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--dependent-field" }, null, -1)),
|
|
332
332
|
st(" " + $(I.value.dependentField), 1)
|
|
333
333
|
]),
|
|
334
|
-
h("span",
|
|
334
|
+
h("span", Qr, [
|
|
335
335
|
u[6] || (u[6] = h("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--assigner" }, null, -1)),
|
|
336
336
|
st(" " + $(I.value.assigner), 1)
|
|
337
337
|
]),
|
|
338
|
-
h("span",
|
|
338
|
+
h("span", Yr, [
|
|
339
339
|
u[7] || (u[7] = h("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--assigned-field" }, null, -1)),
|
|
340
340
|
st(" " + $(I.value.assignedField), 1)
|
|
341
341
|
])
|
|
@@ -346,16 +346,16 @@ const Ol = {
|
|
|
346
346
|
class: "aimd-assigner-graph__canvas",
|
|
347
347
|
onClick: St(ke, ["self"])
|
|
348
348
|
}, [
|
|
349
|
-
e.loading ? (_(), S("div",
|
|
349
|
+
e.loading ? (_(), S("div", Jr, [
|
|
350
350
|
u[8] || (u[8] = h("span", {
|
|
351
351
|
class: "aimd-assigner-graph__spinner",
|
|
352
352
|
"aria-hidden": "true"
|
|
353
353
|
}, null, -1)),
|
|
354
354
|
st(" " + $(I.value.loading), 1)
|
|
355
|
-
])) : E.value.nodes.length === 0 ? (_(), S("div",
|
|
355
|
+
])) : E.value.nodes.length === 0 ? (_(), S("div", Xr, $(I.value.empty), 1)) : (_(), S("svg", {
|
|
356
356
|
key: 2,
|
|
357
357
|
class: "aimd-assigner-graph__svg",
|
|
358
|
-
width:
|
|
358
|
+
width: le.value,
|
|
359
359
|
height: te.value,
|
|
360
360
|
viewBox: `0 0 ${E.value.width} ${E.value.height}`,
|
|
361
361
|
role: "img",
|
|
@@ -363,7 +363,7 @@ const Ol = {
|
|
|
363
363
|
}, [
|
|
364
364
|
h("defs", null, [
|
|
365
365
|
h("marker", {
|
|
366
|
-
id:
|
|
366
|
+
id: X,
|
|
367
367
|
viewBox: "0 0 10 10",
|
|
368
368
|
refX: "9",
|
|
369
369
|
refY: "5",
|
|
@@ -391,7 +391,7 @@ const Ol = {
|
|
|
391
391
|
}, null, -1)
|
|
392
392
|
])])
|
|
393
393
|
]),
|
|
394
|
-
h("g",
|
|
394
|
+
h("g", el, [
|
|
395
395
|
(_(!0), S(Oe, null, Qe(E.value.edges, (b) => (_(), S("path", {
|
|
396
396
|
key: `${b.from}->${b.to}`,
|
|
397
397
|
class: Ne(["aimd-assigner-graph__edge", {
|
|
@@ -400,10 +400,10 @@ const Ol = {
|
|
|
400
400
|
}]),
|
|
401
401
|
d: b.path,
|
|
402
402
|
fill: "none",
|
|
403
|
-
"marker-end": `url(#${b.highlighted ? pe :
|
|
404
|
-
}, null, 10,
|
|
403
|
+
"marker-end": `url(#${b.highlighted ? pe : X})`
|
|
404
|
+
}, null, 10, tl))), 128))
|
|
405
405
|
]),
|
|
406
|
-
h("g",
|
|
406
|
+
h("g", al, [
|
|
407
407
|
(_(!0), S(Oe, null, Qe(E.value.nodes, (b) => (_(), S("g", {
|
|
408
408
|
key: b.name,
|
|
409
409
|
class: Ne(["aimd-assigner-graph__node", [
|
|
@@ -429,46 +429,46 @@ const Ol = {
|
|
|
429
429
|
width: b.width,
|
|
430
430
|
height: b.height,
|
|
431
431
|
rx: b.type === "assigner" ? b.height / 2 : 8
|
|
432
|
-
}, null, 8,
|
|
432
|
+
}, null, 8, il),
|
|
433
433
|
h("text", {
|
|
434
434
|
class: "aimd-assigner-graph__node-label",
|
|
435
435
|
x: b.width / 2,
|
|
436
436
|
y: b.height / 2,
|
|
437
437
|
"dominant-baseline": "middle",
|
|
438
438
|
"text-anchor": "middle"
|
|
439
|
-
}, $(b.label), 9,
|
|
440
|
-
], 42,
|
|
439
|
+
}, $(b.label), 9, rl)
|
|
440
|
+
], 42, nl))), 128))
|
|
441
441
|
])
|
|
442
|
-
], 8,
|
|
442
|
+
], 8, Zr))
|
|
443
443
|
], 512)
|
|
444
444
|
], 6));
|
|
445
445
|
}
|
|
446
|
-
}), wu = /* @__PURE__ */
|
|
447
|
-
function
|
|
446
|
+
}), wu = /* @__PURE__ */ ft(sl, [["__scopeId", "data-v-091ecc08"]]), ol = ["checked", "annotation", "elapsed_ms", "started_at_ms", "ended_at_ms"], dl = ["checked", "annotation"];
|
|
447
|
+
function cl(e) {
|
|
448
448
|
return Array.isArray(e) && e.every((t) => t && typeof t == "object" && typeof t.key == "string");
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function rt(e) {
|
|
451
451
|
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
452
452
|
}
|
|
453
453
|
function Ba(e) {
|
|
454
454
|
if (typeof e == "string")
|
|
455
|
-
return
|
|
455
|
+
return rt(e);
|
|
456
456
|
if (Gt(e))
|
|
457
|
-
return
|
|
457
|
+
return rt(e.id) ?? rt(e.name);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function ul(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));
|
|
463
463
|
return n;
|
|
464
464
|
}
|
|
465
465
|
function Ea(e, t) {
|
|
466
|
-
return
|
|
466
|
+
return rt(t) ?? e;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function fl(e, t) {
|
|
469
469
|
return `${Ea(e.id, e.title)}.${Ea(t.id, t.title)}`;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function ml(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 mr(e) {
|
|
|
490
490
|
}
|
|
491
491
|
return `${t}:open`;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
return e ?
|
|
493
|
+
function vl(e) {
|
|
494
|
+
return e ? cl(e) ? [...e] : Yn(e) : [];
|
|
495
495
|
}
|
|
496
496
|
function kt(e, t, n) {
|
|
497
|
-
const a = n, i =
|
|
497
|
+
const a = n, i = rt(a?.title), v = rt(a?.type), s = `${e}:${t}`, g = e === "var" ? s : e === "step" ? `${s}:checked` : e === "check" ? `${s}:checked` : ml({ id: t, type: "open", ...n });
|
|
498
498
|
return {
|
|
499
499
|
key: s,
|
|
500
500
|
scope: e,
|
|
@@ -502,7 +502,7 @@ function kt(e, t, n) {
|
|
|
502
502
|
label: Ea(t, i),
|
|
503
503
|
title: i,
|
|
504
504
|
type: v,
|
|
505
|
-
description:
|
|
505
|
+
description: rt(a?.description),
|
|
506
506
|
examples: Array.isArray(a?.examples) ? [...a.examples] : void 0,
|
|
507
507
|
enum: Array.isArray(a?.enum) ? [...a.enum] : void 0,
|
|
508
508
|
storageScope: e,
|
|
@@ -510,7 +510,7 @@ function kt(e, t, n) {
|
|
|
510
510
|
focusKey: g
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function gl(e) {
|
|
514
514
|
const t = Hn(e), n = [];
|
|
515
515
|
for (const a of vi) {
|
|
516
516
|
const i = t[a];
|
|
@@ -533,15 +533,15 @@ function Yn(e) {
|
|
|
533
533
|
for (const i of e.var_table || []) {
|
|
534
534
|
if (!i?.id)
|
|
535
535
|
continue;
|
|
536
|
-
const v = i.subvars?.[0]?.id, s =
|
|
536
|
+
const v = i.subvars?.[0]?.id, s = rt(i.title), g = `var_table:${i.id}`;
|
|
537
537
|
t.push({
|
|
538
538
|
key: g,
|
|
539
539
|
scope: "var_table",
|
|
540
540
|
id: i.id,
|
|
541
541
|
label: Ea(i.id, s),
|
|
542
542
|
title: s,
|
|
543
|
-
type:
|
|
544
|
-
description:
|
|
543
|
+
type: rt(i.type_annotation),
|
|
544
|
+
description: rt(i.description),
|
|
545
545
|
examples: Array.isArray(i.examples) ? [...i.examples] : void 0,
|
|
546
546
|
storageScope: "var",
|
|
547
547
|
storageKey: i.id,
|
|
@@ -553,10 +553,10 @@ function Yn(e) {
|
|
|
553
553
|
key: `var_table:${i.id}:${d.id}`,
|
|
554
554
|
scope: "var_table",
|
|
555
555
|
id: d.id,
|
|
556
|
-
label:
|
|
557
|
-
title:
|
|
558
|
-
type:
|
|
559
|
-
description:
|
|
556
|
+
label: fl(i, d),
|
|
557
|
+
title: rt(d.title),
|
|
558
|
+
type: rt(d.type),
|
|
559
|
+
description: rt(d.description),
|
|
560
560
|
examples: Array.isArray(d.examples) ? [...d.examples] : void 0,
|
|
561
561
|
enum: Array.isArray(d.enum) ? [...d.enum] : void 0,
|
|
562
562
|
storageScope: "var",
|
|
@@ -580,9 +580,9 @@ function Yn(e) {
|
|
|
580
580
|
}
|
|
581
581
|
for (const i of e.quiz || [])
|
|
582
582
|
i?.id && t.push(kt("quiz", i.id, i));
|
|
583
|
-
return
|
|
583
|
+
return ul(t);
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function hl(e) {
|
|
586
586
|
const t = e.split(":"), n = t[0], a = t[1];
|
|
587
587
|
if (a) {
|
|
588
588
|
if (n === "var" || n === "step" || n === "check" || n === "quiz")
|
|
@@ -613,7 +613,7 @@ function hr(e) {
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function pl(e, t) {
|
|
617
617
|
const n = e[t];
|
|
618
618
|
return Gt(n) ? n : {};
|
|
619
619
|
}
|
|
@@ -627,11 +627,11 @@ function Cn(e, t) {
|
|
|
627
627
|
}
|
|
628
628
|
return n.join(" ");
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
const n = typeof t == "string" ?
|
|
630
|
+
function yl(e, t) {
|
|
631
|
+
const n = typeof t == "string" ? hl(t) : t;
|
|
632
632
|
if (!n)
|
|
633
633
|
return;
|
|
634
|
-
const a = Hn(e), v =
|
|
634
|
+
const a = Hn(e), v = pl(a, n.storageScope)[n.storageKey];
|
|
635
635
|
return n.scope === "var_table" && n.columnId ? (Array.isArray(v) ? v : []).map((g) => {
|
|
636
636
|
if (Gt(g))
|
|
637
637
|
return Ga(g[n.columnId]);
|
|
@@ -641,44 +641,44 @@ function Wt(e) {
|
|
|
641
641
|
const t = Ga(e);
|
|
642
642
|
return t == null ? "" : Array.isArray(t) ? t.map((n) => Wt(n)).filter(Boolean).join(" ") : Gt(t) ? Object.entries(t).filter(([n]) => !n.startsWith("__")).map(([, n]) => Wt(n)).filter(Boolean).join(" ") : gi(t);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function bl(e, t) {
|
|
645
645
|
const n = e == null ? "" : String(e);
|
|
646
646
|
return t ? n : n.toLocaleLowerCase();
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
const i =
|
|
648
|
+
function _l(e, t, n, a = {}) {
|
|
649
|
+
const i = bl(t, a.caseSensitive).trim();
|
|
650
650
|
if (!i)
|
|
651
651
|
return [];
|
|
652
|
-
const v = a.fieldKeys ? new Set(a.fieldKeys) : null, s =
|
|
652
|
+
const v = a.fieldKeys ? new Set(a.fieldKeys) : null, s = vl(n), g = s.length > 0 ? s : gl(e), d = [];
|
|
653
653
|
for (const x of g) {
|
|
654
654
|
if (v && !v.has(x.key))
|
|
655
655
|
continue;
|
|
656
|
-
const V =
|
|
657
|
-
(a.caseSensitive ? `${j}${
|
|
656
|
+
const V = yl(e, x), j = x.scope === "step" ? Cn(V, ol) : x.scope === "check" ? Cn(V, dl) : Wt(V), X = a.includeFieldLabels ? ` ${x.label} ${x.key}` : "";
|
|
657
|
+
(a.caseSensitive ? `${j}${X}` : `${j}${X}`.toLocaleLowerCase()).includes(i) && d.push({ field: x, value: V, text: j });
|
|
658
658
|
}
|
|
659
659
|
return d;
|
|
660
660
|
}
|
|
661
|
-
const
|
|
661
|
+
const kl = ["data-rec-collector"], wl = { class: "aimd-rec-collector__header" }, Sl = { class: "aimd-field__scope aimd-field__scope--var" }, Cl = { class: "aimd-rec-collector__identity" }, $l = { class: "aimd-rec-collector__title" }, xl = {
|
|
662
662
|
key: 1,
|
|
663
663
|
class: "aimd-rec-collector__key"
|
|
664
|
-
},
|
|
664
|
+
}, Al = ["title"], Fl = { class: "aimd-rec-collector__body" }, El = { class: "aimd-rec-collector__reading" }, Rl = ["title"], Tl = {
|
|
665
665
|
key: 1,
|
|
666
666
|
class: "aimd-rec-collector__empty"
|
|
667
|
-
},
|
|
667
|
+
}, Ml = {
|
|
668
668
|
key: 2,
|
|
669
669
|
class: "aimd-rec-collector__unit"
|
|
670
|
-
},
|
|
670
|
+
}, zl = { class: "aimd-rec-collector__meta" }, ql = { key: 0 }, Vl = { key: 1 }, Dl = { class: "aimd-rec-collector__actions" }, Il = ["disabled"], Ll = ["disabled"], Pl = ["disabled", "aria-expanded"], Bl = {
|
|
671
671
|
key: 0,
|
|
672
672
|
class: "aimd-rec-collector__message",
|
|
673
673
|
role: "status"
|
|
674
|
-
},
|
|
674
|
+
}, Ol = {
|
|
675
675
|
key: 1,
|
|
676
676
|
class: "aimd-rec-collector__manual"
|
|
677
|
-
},
|
|
677
|
+
}, Nl = ["data-rec-focus-key", "placeholder", "disabled"], Kl = ["placeholder", "disabled"], jl = ["disabled"], Hl = {
|
|
678
678
|
key: 0,
|
|
679
679
|
class: "aimd-rec-collector__message aimd-rec-collector__message--error",
|
|
680
680
|
role: "alert"
|
|
681
|
-
},
|
|
681
|
+
}, Ul = /* @__PURE__ */ Ze({
|
|
682
682
|
__name: "AimdCollectorField",
|
|
683
683
|
props: {
|
|
684
684
|
node: {},
|
|
@@ -694,7 +694,7 @@ const kr = ["data-rec-collector"], wr = { class: "aimd-rec-collector__header" },
|
|
|
694
694
|
},
|
|
695
695
|
emits: ["start", "stop", "manual", "blur"],
|
|
696
696
|
setup(e, { emit: t }) {
|
|
697
|
-
const n = e, a = t, i = P(!1), v = P(""), s = P(""), g = P(""), d = C(() => n.node.definition?.type || "Observation[str]"), x = C(() =>
|
|
697
|
+
const n = e, a = t, i = P(!1), v = P(""), s = P(""), g = P(""), d = C(() => n.node.definition?.type || "Observation[str]"), x = C(() => br(d.value)), V = C(() => n.fieldMeta?.title || qt(n.node.id, n.node.definition)), j = C(() => ["waiting_for_permission", "connecting", "collecting", "stopping"].includes(n.state.status)), X = C(() => !n.disabled && n.providerAvailable && !j.value && n.state.status !== "unsupported" && !n.binding.isSeries && n.binding.collector.mode !== "stream"), pe = C(() => !n.disabled && ["connecting", "collecting"].includes(n.state.status)), ve = C(() => (Array.isArray(n.value) ? n.value : [n.value]).filter((N) => !!(N && typeof N == "object" && !Array.isArray(N) && Object.prototype.hasOwnProperty.call(N, "value")))), I = C(() => ve.value[ve.value.length - 1]), z = C(() => H(I.value?.value)), q = C(() => I.value?.unit || String(n.node.definition?.kwargs?.unit ?? "")), W = C(() => {
|
|
698
698
|
const B = I.value?.observed_at || n.state.lastObservedAt;
|
|
699
699
|
if (!B) return "";
|
|
700
700
|
const N = new Date(B);
|
|
@@ -719,7 +719,7 @@ const kr = ["data-rec-collector"], wr = { class: "aimd-rec-collector__header" },
|
|
|
719
719
|
function be() {
|
|
720
720
|
g.value = "", a("start");
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function le() {
|
|
723
723
|
i.value = !i.value, g.value = "";
|
|
724
724
|
}
|
|
725
725
|
function te() {
|
|
@@ -727,7 +727,7 @@ const kr = ["data-rec-collector"], wr = { class: "aimd-rec-collector__header" },
|
|
|
727
727
|
g.value = n.messages.collector.reasonRequired;
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
const B =
|
|
730
|
+
const B = _r(d.value, v.value);
|
|
731
731
|
if (!B.ok) {
|
|
732
732
|
g.value = n.messages.collector.invalidValue;
|
|
733
733
|
return;
|
|
@@ -741,20 +741,20 @@ const kr = ["data-rec-collector"], wr = { class: "aimd-rec-collector__header" },
|
|
|
741
741
|
]]),
|
|
742
742
|
"data-rec-collector": e.binding.collector.id
|
|
743
743
|
}, [
|
|
744
|
-
h("span",
|
|
745
|
-
h("span",
|
|
746
|
-
h("span",
|
|
747
|
-
h("span", $
|
|
748
|
-
e.required ? (_(),
|
|
744
|
+
h("span", wl, [
|
|
745
|
+
h("span", Sl, $(Ve($t)("var", e.messages)), 1),
|
|
746
|
+
h("span", Cl, [
|
|
747
|
+
h("span", $l, $(V.value), 1),
|
|
748
|
+
e.required ? (_(), ht(Ct, {
|
|
749
749
|
key: 0,
|
|
750
750
|
label: e.messages.common.required
|
|
751
751
|
}, null, 8, ["label"])) : ne("", !0),
|
|
752
|
-
V.value !== e.node.id ? (_(), S("span",
|
|
752
|
+
V.value !== e.node.id ? (_(), S("span", xl, $(e.node.id), 1)) : ne("", !0)
|
|
753
753
|
]),
|
|
754
754
|
h("span", {
|
|
755
755
|
class: "aimd-rec-collector__source",
|
|
756
756
|
title: e.binding.connector.id
|
|
757
|
-
}, $(e.binding.collector.title || e.binding.collector.id), 9,
|
|
757
|
+
}, $(e.binding.collector.title || e.binding.collector.id), 9, Al),
|
|
758
758
|
h("span", {
|
|
759
759
|
class: Ne(["aimd-rec-collector__status", `aimd-rec-collector__status--${e.state.status}`])
|
|
760
760
|
}, [
|
|
@@ -765,45 +765,45 @@ const kr = ["data-rec-collector"], wr = { class: "aimd-rec-collector__header" },
|
|
|
765
765
|
st(" " + $(e.messages.collector.status[e.state.status]), 1)
|
|
766
766
|
], 2)
|
|
767
767
|
]),
|
|
768
|
-
h("span",
|
|
769
|
-
h("span",
|
|
768
|
+
h("span", Fl, [
|
|
769
|
+
h("span", El, [
|
|
770
770
|
z.value ? (_(), S("span", {
|
|
771
771
|
key: 0,
|
|
772
772
|
class: "aimd-rec-collector__value",
|
|
773
773
|
title: z.value
|
|
774
|
-
}, $(z.value), 9,
|
|
775
|
-
q.value ? (_(), S("span",
|
|
774
|
+
}, $(z.value), 9, Rl)) : (_(), S("span", Tl, $(e.messages.common.emptyValue), 1)),
|
|
775
|
+
q.value ? (_(), S("span", Ml, $(q.value), 1)) : ne("", !0)
|
|
776
776
|
]),
|
|
777
|
-
h("span",
|
|
778
|
-
e.binding.isList ? (_(), S("span",
|
|
779
|
-
W.value ? (_(), S("span",
|
|
777
|
+
h("span", zl, [
|
|
778
|
+
e.binding.isList ? (_(), S("span", ql, $(e.messages.collector.sampleCount(ve.value.length)), 1)) : ne("", !0),
|
|
779
|
+
W.value ? (_(), S("span", Vl, $(e.messages.collector.lastObserved(W.value)), 1)) : ne("", !0)
|
|
780
780
|
]),
|
|
781
|
-
h("span",
|
|
781
|
+
h("span", Dl, [
|
|
782
782
|
pe.value ? (_(), S("button", {
|
|
783
783
|
key: 0,
|
|
784
784
|
type: "button",
|
|
785
785
|
class: "aimd-rec-collector__button aimd-rec-collector__button--danger",
|
|
786
786
|
disabled: e.disabled,
|
|
787
787
|
onClick: N[0] || (N[0] = (ie) => a("stop"))
|
|
788
|
-
}, $(e.messages.collector.stop), 9,
|
|
788
|
+
}, $(e.messages.collector.stop), 9, Il)) : (_(), S("button", {
|
|
789
789
|
key: 1,
|
|
790
790
|
type: "button",
|
|
791
791
|
class: "aimd-rec-collector__button aimd-rec-collector__button--primary",
|
|
792
|
-
disabled: !
|
|
792
|
+
disabled: !X.value,
|
|
793
793
|
onClick: be
|
|
794
|
-
}, $(e.state.status === "error" ? e.messages.collector.retry : e.binding.collector.mode === "snapshot" ? e.messages.collector.snapshot : e.messages.collector.start), 9,
|
|
794
|
+
}, $(e.state.status === "error" ? e.messages.collector.retry : e.binding.collector.mode === "snapshot" ? e.messages.collector.snapshot : e.messages.collector.start), 9, Ll)),
|
|
795
795
|
e.binding.collector.manual_fallback ? (_(), S("button", {
|
|
796
796
|
key: 2,
|
|
797
797
|
type: "button",
|
|
798
798
|
class: "aimd-rec-collector__button",
|
|
799
799
|
disabled: e.disabled || j.value,
|
|
800
800
|
"aria-expanded": i.value,
|
|
801
|
-
onClick:
|
|
802
|
-
}, $(i.value ? e.messages.collector.cancelManual : e.messages.collector.manualEntry), 9,
|
|
801
|
+
onClick: le
|
|
802
|
+
}, $(i.value ? e.messages.collector.cancelManual : e.messages.collector.manualEntry), 9, Pl)) : ne("", !0)
|
|
803
803
|
])
|
|
804
804
|
]),
|
|
805
|
-
E.value ? (_(), S("span",
|
|
806
|
-
i.value ? (_(), S("span",
|
|
805
|
+
E.value ? (_(), S("span", Bl, $(E.value), 1)) : ne("", !0),
|
|
806
|
+
i.value ? (_(), S("span", Ol, [
|
|
807
807
|
Ht(h("textarea", {
|
|
808
808
|
"onUpdate:modelValue": N[1] || (N[1] = (ie) => v.value = ie),
|
|
809
809
|
"data-rec-focus-key": `var:${e.node.id}`,
|
|
@@ -812,7 +812,7 @@ const kr = ["data-rec-collector"], wr = { class: "aimd-rec-collector__header" },
|
|
|
812
812
|
placeholder: `${e.messages.collector.valuePlaceholder} (${x.value})`,
|
|
813
813
|
disabled: e.disabled,
|
|
814
814
|
onBlur: N[2] || (N[2] = (ie) => a("blur"))
|
|
815
|
-
}, null, 40,
|
|
815
|
+
}, null, 40, Nl), [
|
|
816
816
|
[Ca, v.value]
|
|
817
817
|
]),
|
|
818
818
|
Ht(h("input", {
|
|
@@ -822,7 +822,7 @@ const kr = ["data-rec-collector"], wr = { class: "aimd-rec-collector__header" },
|
|
|
822
822
|
placeholder: e.messages.collector.reasonPlaceholder,
|
|
823
823
|
disabled: e.disabled,
|
|
824
824
|
onBlur: N[4] || (N[4] = (ie) => a("blur"))
|
|
825
|
-
}, null, 40,
|
|
825
|
+
}, null, 40, Kl), [
|
|
826
826
|
[Ca, s.value]
|
|
827
827
|
]),
|
|
828
828
|
h("button", {
|
|
@@ -830,31 +830,31 @@ const kr = ["data-rec-collector"], wr = { class: "aimd-rec-collector__header" },
|
|
|
830
830
|
class: "aimd-rec-collector__button aimd-rec-collector__button--primary",
|
|
831
831
|
disabled: e.disabled,
|
|
832
832
|
onClick: te
|
|
833
|
-
}, $(e.messages.collector.saveManual), 9,
|
|
834
|
-
g.value ? (_(), S("span",
|
|
833
|
+
}, $(e.messages.collector.saveManual), 9, jl),
|
|
834
|
+
g.value ? (_(), S("span", Hl, $(g.value), 1)) : ne("", !0)
|
|
835
835
|
])) : ne("", !0)
|
|
836
|
-
], 10,
|
|
836
|
+
], 10, kl));
|
|
837
837
|
}
|
|
838
838
|
}), Jn = /* @__PURE__ */ Symbol("aimd-field-display");
|
|
839
839
|
function nn() {
|
|
840
|
-
return
|
|
840
|
+
return li(Jn, P("detailed"));
|
|
841
841
|
}
|
|
842
842
|
function Oa(e) {
|
|
843
843
|
return e.field.parentKey ? [e.field.key, e.field.parentKey] : [e.field.key];
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function Wl(e) {
|
|
846
846
|
return typeof HTMLInputElement < "u" && e instanceof HTMLInputElement || typeof HTMLTextAreaElement < "u" && e instanceof HTMLTextAreaElement;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Gl(e) {
|
|
849
849
|
return e.matches("input, textarea, select, button, [tabindex]:not([tabindex='-1'])") ? e : e.querySelector("input, textarea, select, button, [tabindex]:not([tabindex='-1'])") ?? e;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
852
|
-
return
|
|
851
|
+
function Ql(e) {
|
|
852
|
+
return Wl(e) ? e : e.querySelector("textarea, input");
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Yl(e) {
|
|
855
855
|
const t = P(""), n = P(""), a = P(0), i = P(e.defaultExpanded), v = P(/* @__PURE__ */ new Set());
|
|
856
856
|
let s = null;
|
|
857
|
-
const g = C(() => Yn(e.fields.value)), d = C(() => !!(t.value.trim() || n.value)), x = C(() => i.value || d.value), V = C(() =>
|
|
857
|
+
const g = C(() => Yn(e.fields.value)), d = C(() => !!(t.value.trim() || n.value)), x = C(() => i.value || d.value), V = C(() => _l(
|
|
858
858
|
e.record,
|
|
859
859
|
t.value,
|
|
860
860
|
g.value,
|
|
@@ -867,17 +867,17 @@ function Yr(e) {
|
|
|
867
867
|
return null;
|
|
868
868
|
const N = Math.min(Math.max(a.value, 0), V.value.length - 1);
|
|
869
869
|
return V.value[N] ?? null;
|
|
870
|
-
}),
|
|
870
|
+
}), X = C(() => {
|
|
871
871
|
const N = /* @__PURE__ */ new Set();
|
|
872
872
|
for (const ie of V.value)
|
|
873
|
-
for (const
|
|
874
|
-
N.add(
|
|
873
|
+
for (const re of Oa(ie))
|
|
874
|
+
N.add(re);
|
|
875
875
|
return N;
|
|
876
876
|
}), pe = C(() => {
|
|
877
877
|
const N = /* @__PURE__ */ new Set(), ie = j.value;
|
|
878
878
|
if (ie)
|
|
879
|
-
for (const
|
|
880
|
-
N.add(
|
|
879
|
+
for (const re of Oa(ie))
|
|
880
|
+
N.add(re);
|
|
881
881
|
return N;
|
|
882
882
|
}), ve = C(() => {
|
|
883
883
|
const N = V.value.length;
|
|
@@ -887,31 +887,31 @@ function Yr(e) {
|
|
|
887
887
|
if (!t.value.trim())
|
|
888
888
|
return [];
|
|
889
889
|
const ie = [];
|
|
890
|
-
return
|
|
890
|
+
return X.value.has(N) && ie.push("aimd-field--record-search-match"), pe.value.has(N) && ie.push("aimd-field--record-search-active"), v.value.has(N) && ie.push("aimd-field--record-search-pulse"), ie;
|
|
891
891
|
}
|
|
892
892
|
function z(N) {
|
|
893
893
|
if (!e.contentRoot.value)
|
|
894
894
|
return null;
|
|
895
895
|
const ie = e.contentRoot.value.querySelectorAll("[data-rec-focus-key]");
|
|
896
|
-
for (let
|
|
897
|
-
if (ie[
|
|
898
|
-
return ie[
|
|
899
|
-
for (let
|
|
900
|
-
if (ie[
|
|
901
|
-
return ie[
|
|
896
|
+
for (let re = 0; re < ie.length; re += 1)
|
|
897
|
+
if (ie[re].dataset.recFocusKey === N)
|
|
898
|
+
return ie[re];
|
|
899
|
+
for (let re = 0; re < ie.length; re += 1)
|
|
900
|
+
if (ie[re].dataset.recFocusKey?.startsWith(`${N}:`))
|
|
901
|
+
return ie[re];
|
|
902
902
|
return null;
|
|
903
903
|
}
|
|
904
904
|
function q(N, ie) {
|
|
905
|
-
const
|
|
906
|
-
if (!
|
|
905
|
+
const re = Ql(N);
|
|
906
|
+
if (!re)
|
|
907
907
|
return;
|
|
908
908
|
const R = t.value.trim();
|
|
909
909
|
if (!R)
|
|
910
910
|
return;
|
|
911
|
-
const G = (
|
|
911
|
+
const G = (re.value || ie.text).toLocaleLowerCase().indexOf(R.toLocaleLowerCase());
|
|
912
912
|
if (!(G < 0))
|
|
913
913
|
try {
|
|
914
|
-
|
|
914
|
+
re.setSelectionRange(G, G + R.length);
|
|
915
915
|
} catch {
|
|
916
916
|
}
|
|
917
917
|
}
|
|
@@ -927,20 +927,20 @@ function Yr(e) {
|
|
|
927
927
|
return;
|
|
928
928
|
const ie = V.value.length;
|
|
929
929
|
a.value = (N % ie + ie) % ie, await Ye();
|
|
930
|
-
const
|
|
931
|
-
if (!
|
|
930
|
+
const re = V.value[a.value];
|
|
931
|
+
if (!re)
|
|
932
932
|
return;
|
|
933
|
-
const R = z(
|
|
934
|
-
if (W(
|
|
933
|
+
const R = z(re.field.focusKey);
|
|
934
|
+
if (W(re), !R)
|
|
935
935
|
return;
|
|
936
936
|
R.scrollIntoView?.({ block: "center", inline: "nearest", behavior: "smooth" });
|
|
937
|
-
const O =
|
|
937
|
+
const O = Gl(R);
|
|
938
938
|
try {
|
|
939
939
|
O.focus({ preventScroll: !0 });
|
|
940
940
|
} catch {
|
|
941
941
|
O.focus();
|
|
942
942
|
}
|
|
943
|
-
q(O,
|
|
943
|
+
q(O, re);
|
|
944
944
|
}
|
|
945
945
|
function H() {
|
|
946
946
|
i.value = !0;
|
|
@@ -948,7 +948,7 @@ function Yr(e) {
|
|
|
948
948
|
function be() {
|
|
949
949
|
d.value || (i.value = !1);
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function le() {
|
|
952
952
|
E(a.value - 1);
|
|
953
953
|
}
|
|
954
954
|
function te() {
|
|
@@ -981,7 +981,7 @@ function Yr(e) {
|
|
|
981
981
|
fieldKey: n,
|
|
982
982
|
fieldRefs: g,
|
|
983
983
|
focusNextMatch: te,
|
|
984
|
-
focusPreviousMatch:
|
|
984
|
+
focusPreviousMatch: le,
|
|
985
985
|
getFieldClasses: I,
|
|
986
986
|
matches: V,
|
|
987
987
|
panelVisible: x,
|
|
@@ -989,7 +989,7 @@ function Yr(e) {
|
|
|
989
989
|
resultLabel: ve
|
|
990
990
|
};
|
|
991
991
|
}
|
|
992
|
-
const
|
|
992
|
+
const Jl = ["aria-label"], Xl = ["data-rec-focus-key", "checked", "disabled", "onChange"], Zl = ["disabled"], es = /* @__PURE__ */ Ze({
|
|
993
993
|
__name: "AimdMultiSelectField",
|
|
994
994
|
props: {
|
|
995
995
|
modelValue: {},
|
|
@@ -1024,11 +1024,11 @@ const Jr = ["aria-label"], Xr = ["data-rec-focus-key", "checked", "disabled", "o
|
|
|
1024
1024
|
h("input", {
|
|
1025
1025
|
type: "checkbox",
|
|
1026
1026
|
"data-rec-focus-key": j === 0 ? `var:${e.fieldId}` : `var:${e.fieldId}:${j}`,
|
|
1027
|
-
checked: i.value.some((
|
|
1027
|
+
checked: i.value.some((X) => Object.is(X, V)),
|
|
1028
1028
|
disabled: e.disabled,
|
|
1029
|
-
onChange: (
|
|
1030
|
-
onBlur: x[0] || (x[0] = (
|
|
1031
|
-
}, null, 40,
|
|
1029
|
+
onChange: (X) => s(V, X.target.checked),
|
|
1030
|
+
onBlur: x[0] || (x[0] = (X) => a("blur"))
|
|
1031
|
+
}, null, 40, Xl),
|
|
1032
1032
|
h("span", null, $(V === null ? e.emptyLabel : String(V)), 1)
|
|
1033
1033
|
]))), 128)),
|
|
1034
1034
|
e.nullable ? (_(), S("button", {
|
|
@@ -1038,10 +1038,10 @@ const Jr = ["aria-label"], Xr = ["data-rec-focus-key", "checked", "disabled", "o
|
|
|
1038
1038
|
disabled: e.disabled || v.value,
|
|
1039
1039
|
onClick: g,
|
|
1040
1040
|
onBlur: x[1] || (x[1] = (V) => a("blur"))
|
|
1041
|
-
}, $(e.emptyLabel), 41,
|
|
1042
|
-
], 8,
|
|
1041
|
+
}, $(e.emptyLabel), 41, Zl)) : ne("", !0)
|
|
1042
|
+
], 8, Jl));
|
|
1043
1043
|
}
|
|
1044
|
-
}), ts = /* @__PURE__ */
|
|
1044
|
+
}), ts = /* @__PURE__ */ ft(es, [["__scopeId", "data-v-84a55148"]]), $n = At(() => import("./AimdCodeField-lUbFTqiD.js")), as = At(() => import("./AimdEntityRefField-CiGP3IyQ.js")), ns = At(() => import("./AimdResourceRefField-Yc3j0Pgu.js"));
|
|
1045
1045
|
function ma(e) {
|
|
1046
1046
|
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
1047
1047
|
}
|
|
@@ -1061,7 +1061,7 @@ function is(e) {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
return t.push(n.trim()), t;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function rs(e) {
|
|
1065
1065
|
return e.split(/\r?\n/).map((t) => t.trim()).filter(Boolean).slice(0, 4).map(is);
|
|
1066
1066
|
}
|
|
1067
1067
|
function Kt(e, t) {
|
|
@@ -1098,7 +1098,7 @@ function xn(e, t = {}) {
|
|
|
1098
1098
|
size: Zn(e, ["size", "byteSize", "byte_size"]) ?? t.size
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function ls(e) {
|
|
1102
1102
|
if (!Number.isFinite(e) || e === void 0 || e < 0)
|
|
1103
1103
|
return "";
|
|
1104
1104
|
if (e < 1024)
|
|
@@ -1220,38 +1220,38 @@ function Mt(e) {
|
|
|
1220
1220
|
"stroke-linejoin": "round",
|
|
1221
1221
|
"aria-hidden": "true"
|
|
1222
1222
|
};
|
|
1223
|
-
return e === "download" ?
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
]) : e === "open" ?
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
]) : e === "replace" ?
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
]) : e === "preview" ?
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
]) : e === "add" ?
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
]) : e === "drag" ?
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
]) :
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1223
|
+
return e === "download" ? l("svg", t, [
|
|
1224
|
+
l("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
1225
|
+
l("path", { d: "M7 10l5 5 5-5" }),
|
|
1226
|
+
l("path", { d: "M12 15V3" })
|
|
1227
|
+
]) : e === "open" ? l("svg", t, [
|
|
1228
|
+
l("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
|
|
1229
|
+
l("path", { d: "M15 3h6v6" }),
|
|
1230
|
+
l("path", { d: "M10 14L21 3" })
|
|
1231
|
+
]) : e === "replace" ? l("svg", t, [
|
|
1232
|
+
l("path", { d: "M21 12a9 9 0 0 1-15.5 6.2" }),
|
|
1233
|
+
l("path", { d: "M3 12A9 9 0 0 1 18.5 5.8" }),
|
|
1234
|
+
l("path", { d: "M18 2v4h-4" }),
|
|
1235
|
+
l("path", { d: "M6 22v-4h4" })
|
|
1236
|
+
]) : e === "preview" ? l("svg", t, [
|
|
1237
|
+
l("path", { d: "M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7Z" }),
|
|
1238
|
+
l("circle", { cx: "12", cy: "12", r: "3" })
|
|
1239
|
+
]) : e === "add" ? l("svg", t, [
|
|
1240
|
+
l("path", { d: "M12 5v14" }),
|
|
1241
|
+
l("path", { d: "M5 12h14" })
|
|
1242
|
+
]) : e === "drag" ? l("svg", t, [
|
|
1243
|
+
l("circle", { cx: "9", cy: "6", r: "1" }),
|
|
1244
|
+
l("circle", { cx: "9", cy: "12", r: "1" }),
|
|
1245
|
+
l("circle", { cx: "9", cy: "18", r: "1" }),
|
|
1246
|
+
l("circle", { cx: "15", cy: "6", r: "1" }),
|
|
1247
|
+
l("circle", { cx: "15", cy: "12", r: "1" }),
|
|
1248
|
+
l("circle", { cx: "15", cy: "18", r: "1" })
|
|
1249
|
+
]) : l("svg", t, [
|
|
1250
|
+
l("path", { d: "M3 6h18" }),
|
|
1251
|
+
l("path", { d: "M8 6V4h8v2" }),
|
|
1252
|
+
l("path", { d: "M19 6l-1 14H6L5 6" }),
|
|
1253
|
+
l("path", { d: "M10 11v5" }),
|
|
1254
|
+
l("path", { d: "M14 11v5" })
|
|
1255
1255
|
]);
|
|
1256
1256
|
}
|
|
1257
1257
|
function _s(e, t) {
|
|
@@ -1267,15 +1267,15 @@ function ks(e) {
|
|
|
1267
1267
|
if (!e.description && e.examples.length === 0)
|
|
1268
1268
|
return null;
|
|
1269
1269
|
const t = [];
|
|
1270
|
-
return e.description && t.push(
|
|
1270
|
+
return e.description && t.push(l("span", {
|
|
1271
1271
|
class: "aimd-field__metadata-popover-line"
|
|
1272
|
-
}, e.description)), e.examples.length > 0 && t.push(
|
|
1273
|
-
|
|
1274
|
-
...e.examples.map((n, a) =>
|
|
1272
|
+
}, e.description)), e.examples.length > 0 && t.push(l("span", { class: "aimd-field__metadata-examples" }, [
|
|
1273
|
+
l("span", { class: "aimd-field__metadata-examples-label" }, "e.g."),
|
|
1274
|
+
...e.examples.map((n, a) => l("span", {
|
|
1275
1275
|
key: `${a}-${n}`,
|
|
1276
1276
|
class: "aimd-field__metadata-example"
|
|
1277
1277
|
}, n))
|
|
1278
|
-
])),
|
|
1278
|
+
])), l("span", {
|
|
1279
1279
|
class: "aimd-field__metadata-popover",
|
|
1280
1280
|
role: "tooltip"
|
|
1281
1281
|
}, t);
|
|
@@ -1313,13 +1313,13 @@ const ws = Ze({
|
|
|
1313
1313
|
$e(() => e.value, (I) => {
|
|
1314
1314
|
a.value = dn(I);
|
|
1315
1315
|
});
|
|
1316
|
-
const i = P(""), v = P(null), s = P(null), g = P(null), d = P(null), x = P("items"), V = P(null), j = P(""),
|
|
1316
|
+
const i = P(""), v = P(null), s = P(null), g = P(null), d = P(null), x = P("items"), V = P(null), j = P(""), X = P(null), pe = P(null);
|
|
1317
1317
|
let ve = 0;
|
|
1318
1318
|
return $e(
|
|
1319
1319
|
() => [e.inputKind, e.value],
|
|
1320
1320
|
([I, z]) => {
|
|
1321
1321
|
if (I !== "scalar-list") {
|
|
1322
|
-
d.value = null, x.value = "items", V.value = null, j.value = "",
|
|
1322
|
+
d.value = null, x.value = "items", V.value = null, j.value = "", X.value = null, pe.value = null;
|
|
1323
1323
|
return;
|
|
1324
1324
|
}
|
|
1325
1325
|
const q = cn(e.node.definition?.type || "str") ?? "string", W = ia(ha(z), q);
|
|
@@ -1344,7 +1344,7 @@ ${E}` : "";
|
|
|
1344
1344
|
`);
|
|
1345
1345
|
v.value = null, !(!q || typeof fetch != "function") && fetch(q).then((W) => W.ok ? W.text() : "").then((W) => {
|
|
1346
1346
|
if (z !== ve || !W) return;
|
|
1347
|
-
const E =
|
|
1347
|
+
const E = rs(W);
|
|
1348
1348
|
E.length > 0 && (v.value = { url: q, rows: E });
|
|
1349
1349
|
}).catch(() => {
|
|
1350
1350
|
});
|
|
@@ -1379,7 +1379,7 @@ ${E}` : "";
|
|
|
1379
1379
|
be
|
|
1380
1380
|
), !e.resolveFileInfo)
|
|
1381
1381
|
return;
|
|
1382
|
-
const
|
|
1382
|
+
const le = {
|
|
1383
1383
|
type: W,
|
|
1384
1384
|
normalizedType: E,
|
|
1385
1385
|
fieldKey: `var:${e.node.id}`,
|
|
@@ -1388,7 +1388,7 @@ ${E}` : "";
|
|
|
1388
1388
|
kind: q
|
|
1389
1389
|
};
|
|
1390
1390
|
try {
|
|
1391
|
-
const te = await e.resolveFileInfo(I,
|
|
1391
|
+
const te = await e.resolveFileInfo(I, le);
|
|
1392
1392
|
if (aa(e.value) !== I)
|
|
1393
1393
|
return;
|
|
1394
1394
|
s.value = xn(te, s.value ?? be);
|
|
@@ -1397,7 +1397,7 @@ ${E}` : "";
|
|
|
1397
1397
|
},
|
|
1398
1398
|
{ immediate: !0 }
|
|
1399
1399
|
), () => {
|
|
1400
|
-
const I = e.node, z = I.id, q = I.definition?.type || "str", W = pa(q), E = e.inputKind, H = hi(q), be = E === "number" && !H,
|
|
1400
|
+
const I = e.node, z = I.id, q = I.definition?.type || "str", W = pa(q), E = e.inputKind, H = hi(q), be = E === "number" && !H, le = e.fieldMeta, te = ma(le?.title) ?? qt(z, I.definition), B = e.disabled, N = e.extraClasses, ie = le?.placeholder ?? Ss(I, le) ?? (n.value === "compact" ? ma(le?.title ?? I.definition?.kwargs?.title) : void 0), re = e.displayValue, R = pi(q, le) ?? "plaintext", O = E === "number" ? yi(q, I.definition?.kwargs) : {}, Z = E === "number" ? fn(re, q, I.definition?.kwargs) : null;
|
|
1401
1401
|
function G(u) {
|
|
1402
1402
|
const b = wi(u, q, E, {
|
|
1403
1403
|
typePlugin: e.typePlugin
|
|
@@ -1418,14 +1418,14 @@ ${E}` : "";
|
|
|
1418
1418
|
if (b.value = "", !se)
|
|
1419
1419
|
return;
|
|
1420
1420
|
i.value = "";
|
|
1421
|
-
const ue = ca(q, I.definition?.kwargs,
|
|
1421
|
+
const ue = ca(q, I.definition?.kwargs, le);
|
|
1422
1422
|
try {
|
|
1423
1423
|
const D = (e.uploadFile ? await e.uploadFile(se, {
|
|
1424
1424
|
type: q,
|
|
1425
1425
|
normalizedType: W,
|
|
1426
1426
|
fieldKey: `var:${z}`,
|
|
1427
1427
|
node: I,
|
|
1428
|
-
fieldMeta:
|
|
1428
|
+
fieldMeta: le,
|
|
1429
1429
|
accept: ue.accept
|
|
1430
1430
|
}) : void 0) ?? Si(se), y = aa(D);
|
|
1431
1431
|
g.value = {
|
|
@@ -1446,18 +1446,18 @@ ${E}` : "";
|
|
|
1446
1446
|
}
|
|
1447
1447
|
const ke = (u) => {
|
|
1448
1448
|
const b = ["file", "code", "scalar-list", "entity-ref"].includes(E) && !!(e.assignerControl || e.assignerStatus);
|
|
1449
|
-
return !u && !b ? null :
|
|
1450
|
-
u ?
|
|
1451
|
-
e.assignerControl ?
|
|
1452
|
-
e.assignerStatus ?
|
|
1449
|
+
return !u && !b ? null : l("span", { class: "aimd-rec-inline__header-assigner-actions" }, [
|
|
1450
|
+
u ? l("span", { class: "aimd-rec-inline__header-extra-action" }, [u]) : null,
|
|
1451
|
+
e.assignerControl ? l("span", { class: "aimd-rec-inline__header-assigner-action" }, [e.assignerControl]) : null,
|
|
1452
|
+
e.assignerStatus ? l("span", { class: "aimd-rec-inline__header-assigner-state" }, [e.assignerStatus]) : null
|
|
1453
1453
|
]);
|
|
1454
1454
|
}, ce = (u) => {
|
|
1455
1455
|
if (n.value === "compact") {
|
|
1456
1456
|
const Me = ke(u);
|
|
1457
|
-
return Me ?
|
|
1457
|
+
return Me ? l("span", { class: "aimd-rec-inline__compact-actions" }, [Me]) : null;
|
|
1458
1458
|
}
|
|
1459
|
-
const b = ma(
|
|
1460
|
-
return
|
|
1459
|
+
const b = ma(le?.title), se = Qa(I.definition), ue = b ?? qt(z, I.definition), p = (b ?? se) !== void 0 && ue !== z, D = ma(le?.description) ?? Gn(I.definition), y = Xn(le), F = y.length > 0 ? y : $a(I.definition), U = _s(D, F), Ce = !!U.description || U.examples.length > 0;
|
|
1460
|
+
return l("span", {
|
|
1461
1461
|
class: [
|
|
1462
1462
|
"aimd-field",
|
|
1463
1463
|
"aimd-field--no-style",
|
|
@@ -1465,8 +1465,8 @@ ${E}` : "";
|
|
|
1465
1465
|
Ce ? "aimd-field__label--has-metadata" : void 0
|
|
1466
1466
|
]
|
|
1467
1467
|
}, [
|
|
1468
|
-
|
|
1469
|
-
|
|
1468
|
+
l("span", { class: "aimd-field__scope aimd-field__scope--var" }, $t("var", e.messages)),
|
|
1469
|
+
l("span", {
|
|
1470
1470
|
class: [
|
|
1471
1471
|
"aimd-field__name",
|
|
1472
1472
|
p || Ce ? "aimd-field__name--with-metadata" : void 0,
|
|
@@ -1475,23 +1475,23 @@ ${E}` : "";
|
|
|
1475
1475
|
tabindex: Ce ? 0 : void 0,
|
|
1476
1476
|
"aria-label": U.tooltip || void 0
|
|
1477
1477
|
}, [
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
e.required ?
|
|
1478
|
+
l("span", { class: "aimd-field__title-row" }, [
|
|
1479
|
+
l("span", { class: "aimd-field__title", title: ue }, ue),
|
|
1480
|
+
e.required ? l(Ct, { label: e.messages.common.required }) : null
|
|
1481
1481
|
]),
|
|
1482
|
-
p ?
|
|
1482
|
+
p ? l("span", { class: "aimd-field__key", title: z }, z) : null,
|
|
1483
1483
|
ks(U)
|
|
1484
1484
|
]),
|
|
1485
1485
|
ke(u)
|
|
1486
1486
|
]);
|
|
1487
|
-
}, ee = (u) => !e.assignerControl && !e.assignerStatus ? u :
|
|
1488
|
-
e.assignerControl ?
|
|
1489
|
-
|
|
1490
|
-
e.assignerStatus ?
|
|
1491
|
-
]), ye = () => e.assignerError ?
|
|
1487
|
+
}, ee = (u) => !e.assignerControl && !e.assignerStatus ? u : l("span", { class: "aimd-rec-inline__control-row" }, [
|
|
1488
|
+
e.assignerControl ? l("span", { class: "aimd-rec-inline__assigner-prefix" }, [e.assignerControl]) : null,
|
|
1489
|
+
l("span", { class: "aimd-rec-inline__control-main" }, [u]),
|
|
1490
|
+
e.assignerStatus ? l("span", { class: "aimd-rec-inline__assigner-status" }, [e.assignerStatus]) : null
|
|
1491
|
+
]), ye = () => e.assignerError ? l("span", { class: "aimd-rec-inline__assigner-error" }, e.assignerError) : null, he = le?.enumOptions ?? [];
|
|
1492
1492
|
if (he.length) {
|
|
1493
1493
|
const u = Un(he, e.value), b = ya(q) ? null : "", se = b === null || u === "", ue = b === null ? wa(e.messages) : ie ?? "";
|
|
1494
|
-
return
|
|
1494
|
+
return l("span", {
|
|
1495
1495
|
class: [
|
|
1496
1496
|
"aimd-rec-inline aimd-rec-inline--var-stacked aimd-field-wrapper",
|
|
1497
1497
|
e.assignerControl || e.assignerStatus ? "aimd-rec-inline--has-assigner-control" : void 0,
|
|
@@ -1499,7 +1499,7 @@ ${E}` : "";
|
|
|
1499
1499
|
]
|
|
1500
1500
|
}, [
|
|
1501
1501
|
ce(),
|
|
1502
|
-
ee(
|
|
1502
|
+
ee(l("select", {
|
|
1503
1503
|
"data-rec-focus-key": `var:${z}`,
|
|
1504
1504
|
class: "aimd-rec-inline__value-control aimd-rec-inline__input aimd-rec-inline__input--stacked aimd-rec-inline__select",
|
|
1505
1505
|
"aria-label": te,
|
|
@@ -1512,13 +1512,13 @@ ${E}` : "";
|
|
|
1512
1512
|
},
|
|
1513
1513
|
onBlur: Y
|
|
1514
1514
|
}, [
|
|
1515
|
-
se ?
|
|
1516
|
-
...he.map((p, D) =>
|
|
1515
|
+
se ? l("option", { value: "" }, ue) : null,
|
|
1516
|
+
...he.map((p, D) => l("option", { key: `${D}:${String(p.value)}`, value: String(D) }, p.label))
|
|
1517
1517
|
])),
|
|
1518
1518
|
ye()
|
|
1519
1519
|
]);
|
|
1520
1520
|
}
|
|
1521
|
-
const ae = (u, b, se = {}) =>
|
|
1521
|
+
const ae = (u, b, se = {}) => l("span", {
|
|
1522
1522
|
class: [
|
|
1523
1523
|
"aimd-rec-inline aimd-rec-inline--var-stacked aimd-field-wrapper aimd-field-wrapper--inline",
|
|
1524
1524
|
e.assignerControl || e.assignerStatus ? "aimd-rec-inline--has-assigner-control" : void 0,
|
|
@@ -1532,7 +1532,7 @@ ${E}` : "";
|
|
|
1532
1532
|
ye()
|
|
1533
1533
|
]);
|
|
1534
1534
|
if (E === "multi-select")
|
|
1535
|
-
return ae(
|
|
1535
|
+
return ae(l(ts, {
|
|
1536
1536
|
modelValue: e.value,
|
|
1537
1537
|
options: bi(q),
|
|
1538
1538
|
label: te,
|
|
@@ -1545,8 +1545,8 @@ ${E}` : "";
|
|
|
1545
1545
|
}), "aimd-rec-inline--multi-select");
|
|
1546
1546
|
if (E === "checkbox")
|
|
1547
1547
|
return ae(
|
|
1548
|
-
|
|
1549
|
-
|
|
1548
|
+
l("label", { class: "aimd-rec-inline__checkbox-row" }, [
|
|
1549
|
+
l("input", {
|
|
1550
1550
|
"data-rec-focus-key": `var:${z}`,
|
|
1551
1551
|
type: "checkbox",
|
|
1552
1552
|
"aria-label": te,
|
|
@@ -1561,40 +1561,40 @@ ${E}` : "";
|
|
|
1561
1561
|
},
|
|
1562
1562
|
onBlur: Y
|
|
1563
1563
|
}),
|
|
1564
|
-
n.value === "compact" ?
|
|
1564
|
+
n.value === "compact" ? l("span", { class: "aimd-rec-inline__boolean-state" }, a.value ? e.messages.boolean.true : e.messages.boolean.false) : null
|
|
1565
1565
|
]),
|
|
1566
1566
|
"aimd-rec-inline--var-stacked--checkbox"
|
|
1567
1567
|
);
|
|
1568
1568
|
if (E === "boolean-select")
|
|
1569
1569
|
return ae(
|
|
1570
|
-
|
|
1570
|
+
l("select", {
|
|
1571
1571
|
"data-rec-focus-key": `var:${z}`,
|
|
1572
1572
|
class: "aimd-rec-inline__value-control aimd-rec-inline__input aimd-rec-inline__input--stacked aimd-rec-inline__select aimd-rec-inline__boolean-select",
|
|
1573
1573
|
"aria-label": te,
|
|
1574
1574
|
"aria-required": e.required,
|
|
1575
1575
|
disabled: B,
|
|
1576
|
-
value: String(
|
|
1576
|
+
value: String(re),
|
|
1577
1577
|
onVnodeMounted: (u) => bt(u.el, E),
|
|
1578
1578
|
onVnodeUpdated: (u) => bt(u.el, E),
|
|
1579
1579
|
onChange: (u) => G(u.target.value),
|
|
1580
1580
|
onBlur: Y
|
|
1581
1581
|
}, [
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1582
|
+
l("option", { value: "" }, wa(e.messages)),
|
|
1583
|
+
l("option", { value: "true" }, e.messages.boolean.true),
|
|
1584
|
+
l("option", { value: "false" }, e.messages.boolean.false)
|
|
1585
1585
|
]),
|
|
1586
1586
|
"aimd-rec-inline--var-stacked--boolean-select"
|
|
1587
1587
|
);
|
|
1588
1588
|
if (E === "textarea" || E === "dna")
|
|
1589
1589
|
return ae(
|
|
1590
|
-
|
|
1590
|
+
l("textarea", {
|
|
1591
1591
|
"data-rec-focus-key": `var:${z}`,
|
|
1592
1592
|
class: "aimd-rec-inline__value-control aimd-rec-inline__textarea aimd-rec-inline__textarea--stacked",
|
|
1593
1593
|
"aria-label": te,
|
|
1594
1594
|
"aria-required": e.required,
|
|
1595
1595
|
disabled: B,
|
|
1596
1596
|
placeholder: ie,
|
|
1597
|
-
value:
|
|
1597
|
+
value: re,
|
|
1598
1598
|
onVnodeMounted: (u) => bt(u.el, E),
|
|
1599
1599
|
onVnodeUpdated: (u) => bt(u.el, E),
|
|
1600
1600
|
onInput: (u) => G(u.target.value),
|
|
@@ -1604,8 +1604,8 @@ ${E}` : "";
|
|
|
1604
1604
|
);
|
|
1605
1605
|
if (E === "code")
|
|
1606
1606
|
return ae(
|
|
1607
|
-
|
|
1608
|
-
modelValue: typeof
|
|
1607
|
+
l($n, {
|
|
1608
|
+
modelValue: typeof re == "number" ? String(re) : re,
|
|
1609
1609
|
language: R,
|
|
1610
1610
|
disabled: B,
|
|
1611
1611
|
"onUpdate:modelValue": (u) => G(u),
|
|
@@ -1615,14 +1615,14 @@ ${E}` : "";
|
|
|
1615
1615
|
{ controlRow: !1 }
|
|
1616
1616
|
);
|
|
1617
1617
|
if (E === "entity-ref") {
|
|
1618
|
-
const u = _i(q, I.definition?.kwargs,
|
|
1618
|
+
const u = _i(q, I.definition?.kwargs, le) ?? { multiple: !1 };
|
|
1619
1619
|
return ae(
|
|
1620
|
-
|
|
1620
|
+
l(as, {
|
|
1621
1621
|
node: I,
|
|
1622
1622
|
value: e.value,
|
|
1623
1623
|
disabled: B,
|
|
1624
1624
|
messages: e.messages,
|
|
1625
|
-
fieldMeta:
|
|
1625
|
+
fieldMeta: le,
|
|
1626
1626
|
type: q,
|
|
1627
1627
|
entityConfig: u,
|
|
1628
1628
|
entityResolvers: e.entityResolvers,
|
|
@@ -1639,19 +1639,19 @@ ${E}` : "";
|
|
|
1639
1639
|
);
|
|
1640
1640
|
}
|
|
1641
1641
|
if (E === "resource-ref") {
|
|
1642
|
-
const u = ki(q, I.definition?.kwargs,
|
|
1642
|
+
const u = ki(q, I.definition?.kwargs, le) ?? {
|
|
1643
1643
|
multiple: !1,
|
|
1644
1644
|
role: "reference",
|
|
1645
1645
|
containerRequired: !1,
|
|
1646
1646
|
bookingRequired: !1
|
|
1647
1647
|
};
|
|
1648
1648
|
return ae(
|
|
1649
|
-
|
|
1649
|
+
l(ns, {
|
|
1650
1650
|
node: I,
|
|
1651
1651
|
value: e.value,
|
|
1652
1652
|
disabled: B,
|
|
1653
1653
|
messages: e.messages,
|
|
1654
|
-
fieldMeta:
|
|
1654
|
+
fieldMeta: le,
|
|
1655
1655
|
type: q,
|
|
1656
1656
|
resourceConfig: u,
|
|
1657
1657
|
resourceResolvers: e.resourceResolvers,
|
|
@@ -1668,7 +1668,7 @@ ${E}` : "";
|
|
|
1668
1668
|
);
|
|
1669
1669
|
}
|
|
1670
1670
|
if (E === "file") {
|
|
1671
|
-
const u = ca(q, I.definition?.kwargs,
|
|
1671
|
+
const u = ca(q, I.definition?.kwargs, le), b = aa(e.value), se = s.value, ue = se?.name || un(e.value), p = !!(b || ue), D = ue || (p ? e.messages.file.selected : ie || e.messages.file.choose), y = se?.url || (b && e.resolveFile ? e.resolveFile(b) : null), F = se?.thumbnailUrl || y, U = ls(se?.size), Ce = [u.badge, U].filter(Boolean).join(" · "), Me = l("input", {
|
|
1672
1672
|
"data-rec-focus-key": `var:${z}`,
|
|
1673
1673
|
class: "aimd-rec-file-field__input",
|
|
1674
1674
|
"aria-label": te,
|
|
@@ -1677,20 +1677,20 @@ ${E}` : "";
|
|
|
1677
1677
|
disabled: B,
|
|
1678
1678
|
onChange: L,
|
|
1679
1679
|
onBlur: Y
|
|
1680
|
-
}), We =
|
|
1680
|
+
}), We = l("span", {
|
|
1681
1681
|
class: [
|
|
1682
1682
|
"aimd-rec-file-field__badge",
|
|
1683
1683
|
`aimd-rec-file-field__badge--${u.kind}`
|
|
1684
1684
|
],
|
|
1685
1685
|
"aria-hidden": "true"
|
|
1686
|
-
}, u.badge), w =
|
|
1686
|
+
}, u.badge), w = l("span", {
|
|
1687
1687
|
class: [
|
|
1688
1688
|
"aimd-rec-file-field__name",
|
|
1689
1689
|
ue ? void 0 : "aimd-rec-file-field__name--placeholder"
|
|
1690
1690
|
]
|
|
1691
1691
|
}, D), K = (Fe) => {
|
|
1692
1692
|
Fe.stopPropagation(), i.value = "", g.value = null, s.value = null, t("change", { id: z, value: ya(q) ? null : "", type: q, inputKind: E });
|
|
1693
|
-
}, fe = (Fe, Le, Q = {}) =>
|
|
1693
|
+
}, fe = (Fe, Le, Q = {}) => l("button", {
|
|
1694
1694
|
type: "button",
|
|
1695
1695
|
class: [
|
|
1696
1696
|
"aimd-rec-file-card__action",
|
|
@@ -1699,33 +1699,33 @@ ${E}` : "";
|
|
|
1699
1699
|
"aria-label": Le,
|
|
1700
1700
|
title: Le,
|
|
1701
1701
|
...Q
|
|
1702
|
-
}, [Mt(Fe),
|
|
1702
|
+
}, [Mt(Fe), l("span", { class: "aimd-rec-file-card__action-label" }, Le)]);
|
|
1703
1703
|
return ae(
|
|
1704
|
-
|
|
1704
|
+
l("span", {
|
|
1705
1705
|
class: "aimd-rec-inline__value-control aimd-rec-inline__file-control",
|
|
1706
1706
|
"data-file-kind": u.kind,
|
|
1707
1707
|
onVnodeMounted: (Fe) => me(Fe.el),
|
|
1708
1708
|
onVnodeUpdated: (Fe) => me(Fe.el)
|
|
1709
1709
|
}, [
|
|
1710
|
-
p ?
|
|
1711
|
-
|
|
1712
|
-
|
|
1710
|
+
p ? l("span", { class: "aimd-rec-file-card" }, [
|
|
1711
|
+
l("span", { class: "aimd-rec-file-card__header" }, [
|
|
1712
|
+
l("span", { class: "aimd-rec-file-card__identity", title: D }, [
|
|
1713
1713
|
We,
|
|
1714
|
-
|
|
1714
|
+
l("span", { class: "aimd-rec-file-card__text" }, [
|
|
1715
1715
|
w,
|
|
1716
|
-
Ce ?
|
|
1716
|
+
Ce ? l("span", { class: "aimd-rec-file-card__meta" }, Ce) : null
|
|
1717
1717
|
])
|
|
1718
1718
|
]),
|
|
1719
|
-
|
|
1720
|
-
B ? null :
|
|
1719
|
+
l("span", { class: "aimd-rec-file-card__actions" }, [
|
|
1720
|
+
B ? null : l("label", {
|
|
1721
1721
|
class: "aimd-rec-file-card__action aimd-rec-file-card__replace",
|
|
1722
1722
|
title: e.messages.file.replace
|
|
1723
1723
|
}, [
|
|
1724
1724
|
Me,
|
|
1725
1725
|
Mt("replace"),
|
|
1726
|
-
|
|
1726
|
+
l("span", { class: "aimd-rec-file-card__action-label" }, e.messages.file.replace)
|
|
1727
1727
|
]),
|
|
1728
|
-
y ?
|
|
1728
|
+
y ? l("a", {
|
|
1729
1729
|
class: "aimd-rec-file-card__action",
|
|
1730
1730
|
href: y,
|
|
1731
1731
|
download: D,
|
|
@@ -1734,9 +1734,9 @@ ${E}` : "";
|
|
|
1734
1734
|
onClick: (Fe) => Fe.stopPropagation()
|
|
1735
1735
|
}, [
|
|
1736
1736
|
Mt("download"),
|
|
1737
|
-
|
|
1737
|
+
l("span", { class: "aimd-rec-file-card__action-label" }, e.messages.file.download)
|
|
1738
1738
|
]) : null,
|
|
1739
|
-
y ?
|
|
1739
|
+
y ? l("a", {
|
|
1740
1740
|
class: "aimd-rec-file-card__action",
|
|
1741
1741
|
href: y,
|
|
1742
1742
|
target: "_blank",
|
|
@@ -1746,12 +1746,12 @@ ${E}` : "";
|
|
|
1746
1746
|
onClick: (Fe) => Fe.stopPropagation()
|
|
1747
1747
|
}, [
|
|
1748
1748
|
Mt("open"),
|
|
1749
|
-
|
|
1749
|
+
l("span", { class: "aimd-rec-file-card__action-label" }, e.messages.file.open)
|
|
1750
1750
|
]) : null,
|
|
1751
1751
|
B ? null : fe("clear", e.messages.file.clear, { onClick: K })
|
|
1752
1752
|
])
|
|
1753
1753
|
]),
|
|
1754
|
-
F && u.kind === "image" ?
|
|
1754
|
+
F && u.kind === "image" ? l("a", {
|
|
1755
1755
|
class: "aimd-rec-file-field__preview",
|
|
1756
1756
|
href: y ?? F,
|
|
1757
1757
|
target: "_blank",
|
|
@@ -1759,25 +1759,25 @@ ${E}` : "";
|
|
|
1759
1759
|
title: e.messages.file.preview,
|
|
1760
1760
|
onClick: (Fe) => Fe.stopPropagation()
|
|
1761
1761
|
}, [
|
|
1762
|
-
|
|
1762
|
+
l("img", {
|
|
1763
1763
|
src: F,
|
|
1764
1764
|
alt: D,
|
|
1765
1765
|
loading: "lazy"
|
|
1766
1766
|
})
|
|
1767
1767
|
]) : null,
|
|
1768
|
-
y && u.kind === "csv" && v.value?.url === y ?
|
|
1769
|
-
|
|
1768
|
+
y && u.kind === "csv" && v.value?.url === y ? l("span", { class: "aimd-rec-file-field__csv-preview" }, [
|
|
1769
|
+
l("span", { class: "aimd-rec-file-field__csv-grid" }, v.value.rows.map((Fe, Le) => l("span", {
|
|
1770
1770
|
key: Le,
|
|
1771
1771
|
class: [
|
|
1772
1772
|
"aimd-rec-file-field__csv-row",
|
|
1773
1773
|
Le === 0 ? "aimd-rec-file-field__csv-row--head" : void 0
|
|
1774
1774
|
]
|
|
1775
|
-
}, Fe.slice(0, 4).map((Q, Pe) =>
|
|
1775
|
+
}, Fe.slice(0, 4).map((Q, Pe) => l("span", {
|
|
1776
1776
|
key: `${Le}-${Pe}`,
|
|
1777
1777
|
class: "aimd-rec-file-field__csv-cell"
|
|
1778
1778
|
}, Q || " ")))))
|
|
1779
1779
|
]) : null
|
|
1780
|
-
]) :
|
|
1780
|
+
]) : l("label", {
|
|
1781
1781
|
class: [
|
|
1782
1782
|
"aimd-rec-file-field__trigger",
|
|
1783
1783
|
B ? "aimd-rec-file-field__trigger--disabled" : void 0
|
|
@@ -1788,7 +1788,7 @@ ${E}` : "";
|
|
|
1788
1788
|
We,
|
|
1789
1789
|
w
|
|
1790
1790
|
]),
|
|
1791
|
-
i.value ?
|
|
1791
|
+
i.value ? l("span", { class: "aimd-rec-file-field__error" }, i.value) : null
|
|
1792
1792
|
]),
|
|
1793
1793
|
"aimd-rec-inline--var-stacked--file",
|
|
1794
1794
|
{ controlRow: !1 }
|
|
@@ -1811,17 +1811,17 @@ ${E}` : "";
|
|
|
1811
1811
|
}, F = () => {
|
|
1812
1812
|
p([...ue, ""]);
|
|
1813
1813
|
}, U = () => {
|
|
1814
|
-
|
|
1814
|
+
X.value = null, pe.value = null;
|
|
1815
1815
|
}, Ce = (oe) => {
|
|
1816
1816
|
const ge = oe.dataTransfer?.getData("text/plain"), qe = ge ? Number.parseInt(ge, 10) : NaN;
|
|
1817
|
-
return Number.isInteger(qe) && qe >= 0 && qe < ue.length ? qe :
|
|
1817
|
+
return Number.isInteger(qe) && qe >= 0 && qe < ue.length ? qe : X.value;
|
|
1818
1818
|
}, Me = (oe, ge) => {
|
|
1819
1819
|
if (oe === ge || oe < 0 || ge < 0 || oe >= ue.length || ge >= ue.length)
|
|
1820
1820
|
return;
|
|
1821
1821
|
const qe = ue.slice(), [je] = qe.splice(oe, 1);
|
|
1822
1822
|
qe.splice(ge, 0, je), p(qe);
|
|
1823
1823
|
}, We = (oe, ge) => {
|
|
1824
|
-
|
|
1824
|
+
X.value = oe, pe.value = null, ge.dataTransfer && (ge.dataTransfer.effectAllowed = "move", ge.dataTransfer.setData("text/plain", String(oe)));
|
|
1825
1825
|
}, w = (oe, ge) => {
|
|
1826
1826
|
const qe = Ce(ge);
|
|
1827
1827
|
qe === null || qe === oe || (ge.preventDefault(), pe.value = oe, ge.dataTransfer && (ge.dataTransfer.dropEffect = "move"));
|
|
@@ -1844,7 +1844,7 @@ ${E}` : "";
|
|
|
1844
1844
|
});
|
|
1845
1845
|
}, Q = (oe) => {
|
|
1846
1846
|
x.value !== oe && (oe === "json" ? (V.value = En(d.value ?? e.value, u), j.value = "") : (V.value = null, j.value = ""), x.value = oe);
|
|
1847
|
-
}, Pe = (oe, ge) =>
|
|
1847
|
+
}, Pe = (oe, ge) => l("button", {
|
|
1848
1848
|
type: "button",
|
|
1849
1849
|
class: [
|
|
1850
1850
|
"aimd-rec-scalar-list__mode-button",
|
|
@@ -1853,29 +1853,29 @@ ${E}` : "";
|
|
|
1853
1853
|
disabled: B,
|
|
1854
1854
|
"aria-pressed": x.value === oe,
|
|
1855
1855
|
onClick: () => Q(oe)
|
|
1856
|
-
}, ge),
|
|
1857
|
-
|
|
1856
|
+
}, ge), mt = l("span", { class: "aimd-rec-scalar-list__toolbar" }, [
|
|
1857
|
+
l("span", { class: "aimd-rec-scalar-list__mode" }, [
|
|
1858
1858
|
Pe("items", e.messages.scalarList.itemsMode),
|
|
1859
1859
|
Pe("json", e.messages.scalarList.jsonMode)
|
|
1860
1860
|
])
|
|
1861
|
-
]), Dt =
|
|
1862
|
-
const qe = !B && (ue.length > 1 || oe.trim().length > 0), je = !B && ue.length > 1, He = pe.value === ge,
|
|
1863
|
-
"aria-label": `${te}: ${
|
|
1861
|
+
]), Dt = l("span", { class: "aimd-rec-scalar-list__rows" }, ue.map((oe, ge) => {
|
|
1862
|
+
const qe = !B && (ue.length > 1 || oe.trim().length > 0), je = !B && ue.length > 1, He = pe.value === ge, vt = He && X.value !== null && X.value < ge ? "after" : "before", gt = e.messages.scalarList.itemIndex(ge + 1), pt = ie ?? e.messages.scalarList.itemPlaceholder, Yt = !b && us(oe), Jt = !b && ms(oe, pt), It = {
|
|
1863
|
+
"aria-label": `${te}: ${gt}`,
|
|
1864
1864
|
"data-rec-focus-key": ge === 0 ? `var:${z}` : `var:${z}:${ge}`,
|
|
1865
1865
|
class: [
|
|
1866
1866
|
"aimd-rec-scalar-list__input",
|
|
1867
1867
|
b ? "aimd-rec-scalar-list__input--number" : "aimd-rec-scalar-list__input--text"
|
|
1868
1868
|
],
|
|
1869
1869
|
disabled: B,
|
|
1870
|
-
placeholder:
|
|
1870
|
+
placeholder: pt,
|
|
1871
1871
|
title: oe.trim().length > 0 ? oe : void 0,
|
|
1872
1872
|
value: oe,
|
|
1873
1873
|
style: {
|
|
1874
|
-
"--aimd-rec-scalar-list-input-width": `${fs(oe,
|
|
1874
|
+
"--aimd-rec-scalar-list-input-width": `${fs(oe, pt)}px`
|
|
1875
1875
|
},
|
|
1876
1876
|
onBlur: Y
|
|
1877
1877
|
};
|
|
1878
|
-
return
|
|
1878
|
+
return l("span", {
|
|
1879
1879
|
key: ge,
|
|
1880
1880
|
class: [
|
|
1881
1881
|
"aimd-rec-scalar-list__row",
|
|
@@ -1883,14 +1883,14 @@ ${E}` : "";
|
|
|
1883
1883
|
qe ? "aimd-rec-scalar-list__row--has-remove" : void 0,
|
|
1884
1884
|
b ? "aimd-rec-scalar-list__row--number" : "aimd-rec-scalar-list__row--text",
|
|
1885
1885
|
Yt || Jt ? "aimd-rec-scalar-list__row--multiline" : void 0,
|
|
1886
|
-
|
|
1886
|
+
X.value === ge ? "aimd-rec-scalar-list__row--dragging" : void 0,
|
|
1887
1887
|
He ? "aimd-rec-scalar-list__row--drop-target" : void 0,
|
|
1888
|
-
He ? `aimd-rec-scalar-list__row--drop-target-${
|
|
1888
|
+
He ? `aimd-rec-scalar-list__row--drop-target-${vt}` : void 0
|
|
1889
1889
|
],
|
|
1890
1890
|
onDragover: (Ie) => w(ge, Ie),
|
|
1891
1891
|
onDrop: (Ie) => K(ge, Ie)
|
|
1892
1892
|
}, [
|
|
1893
|
-
je ?
|
|
1893
|
+
je ? l("button", {
|
|
1894
1894
|
type: "button",
|
|
1895
1895
|
class: "aimd-rec-scalar-list__drag",
|
|
1896
1896
|
title: e.messages.scalarList.dragItem,
|
|
@@ -1900,14 +1900,14 @@ ${E}` : "";
|
|
|
1900
1900
|
onDragend: U
|
|
1901
1901
|
}, [
|
|
1902
1902
|
Mt("drag"),
|
|
1903
|
-
|
|
1903
|
+
l("span", { class: "aimd-rec-scalar-list__icon-label" }, e.messages.scalarList.dragItem)
|
|
1904
1904
|
]) : null,
|
|
1905
|
-
|
|
1905
|
+
l("span", {
|
|
1906
1906
|
class: "aimd-rec-scalar-list__index",
|
|
1907
|
-
title:
|
|
1908
|
-
"aria-label":
|
|
1907
|
+
title: gt,
|
|
1908
|
+
"aria-label": gt
|
|
1909
1909
|
}, String(ge + 1)),
|
|
1910
|
-
b ?
|
|
1910
|
+
b ? l("input", {
|
|
1911
1911
|
...It,
|
|
1912
1912
|
type: "number",
|
|
1913
1913
|
inputmode: u === "int" ? "numeric" : u === "float" ? "decimal" : void 0,
|
|
@@ -1924,7 +1924,7 @@ ${E}` : "";
|
|
|
1924
1924
|
const Xe = Ie.target;
|
|
1925
1925
|
Sa(Xe), D(ge, Xe.value);
|
|
1926
1926
|
}
|
|
1927
|
-
}) :
|
|
1927
|
+
}) : l("textarea", {
|
|
1928
1928
|
...It,
|
|
1929
1929
|
rows: 1,
|
|
1930
1930
|
wrap: "soft",
|
|
@@ -1941,7 +1941,7 @@ ${E}` : "";
|
|
|
1941
1941
|
Na(Xe), D(ge, Xe.value);
|
|
1942
1942
|
}
|
|
1943
1943
|
}),
|
|
1944
|
-
qe ?
|
|
1944
|
+
qe ? l("button", {
|
|
1945
1945
|
type: "button",
|
|
1946
1946
|
class: "aimd-rec-scalar-list__remove",
|
|
1947
1947
|
title: e.messages.scalarList.removeItem,
|
|
@@ -1949,22 +1949,22 @@ ${E}` : "";
|
|
|
1949
1949
|
onClick: () => y(ge)
|
|
1950
1950
|
}, [
|
|
1951
1951
|
Mt("clear"),
|
|
1952
|
-
|
|
1952
|
+
l("span", { class: "aimd-rec-scalar-list__icon-label" }, e.messages.scalarList.removeItem)
|
|
1953
1953
|
]) : null
|
|
1954
1954
|
]);
|
|
1955
|
-
})), Ge = B ? null :
|
|
1955
|
+
})), Ge = B ? null : l("button", {
|
|
1956
1956
|
type: "button",
|
|
1957
1957
|
class: "aimd-rec-scalar-list__add",
|
|
1958
1958
|
title: e.messages.scalarList.addItem,
|
|
1959
1959
|
onClick: F
|
|
1960
1960
|
}, [
|
|
1961
1961
|
Mt("add"),
|
|
1962
|
-
|
|
1963
|
-
]), Qt =
|
|
1962
|
+
l("span", { class: "aimd-rec-scalar-list__add-label" }, e.messages.scalarList.addItem)
|
|
1963
|
+
]), Qt = l("span", { class: "aimd-rec-scalar-list__items" }, [
|
|
1964
1964
|
Dt,
|
|
1965
1965
|
Ge
|
|
1966
|
-
].filter((oe) => !!oe)), Je =
|
|
1967
|
-
|
|
1966
|
+
].filter((oe) => !!oe)), Je = l("span", { class: "aimd-rec-scalar-list__json-wrap" }, [
|
|
1967
|
+
l($n, {
|
|
1968
1968
|
"data-rec-focus-key": `var:${z}:json`,
|
|
1969
1969
|
class: [
|
|
1970
1970
|
"aimd-rec-scalar-list__json-editor",
|
|
@@ -1978,10 +1978,10 @@ ${E}` : "";
|
|
|
1978
1978
|
"onUpdate:modelValue": (oe) => Le(oe),
|
|
1979
1979
|
onBlur: Y
|
|
1980
1980
|
}),
|
|
1981
|
-
j.value ?
|
|
1981
|
+
j.value ? l("span", { class: "aimd-rec-scalar-list__json-error" }, j.value) : null
|
|
1982
1982
|
]);
|
|
1983
1983
|
return ae(
|
|
1984
|
-
|
|
1984
|
+
l("span", {
|
|
1985
1985
|
class: "aimd-rec-inline__value-control aimd-rec-inline__scalar-list",
|
|
1986
1986
|
onVnodeMounted: (oe) => me(oe.el),
|
|
1987
1987
|
onVnodeUpdated: (oe) => me(oe.el)
|
|
@@ -1989,12 +1989,12 @@ ${E}` : "";
|
|
|
1989
1989
|
...x.value === "json" ? [Je] : [Qt]
|
|
1990
1990
|
]),
|
|
1991
1991
|
"aimd-rec-inline--var-stacked--scalar-list",
|
|
1992
|
-
{ controlRow: !1, headerAction:
|
|
1992
|
+
{ controlRow: !1, headerAction: mt }
|
|
1993
1993
|
);
|
|
1994
1994
|
}
|
|
1995
1995
|
if (E === "text")
|
|
1996
1996
|
return ae(
|
|
1997
|
-
|
|
1997
|
+
l("textarea", {
|
|
1998
1998
|
"data-rec-focus-key": `var:${z}`,
|
|
1999
1999
|
class: "aimd-rec-inline__value-control aimd-rec-inline__textarea aimd-rec-inline__textarea--stacked aimd-rec-inline__textarea--stacked-text",
|
|
2000
2000
|
"aria-label": te,
|
|
@@ -2002,7 +2002,7 @@ ${E}` : "";
|
|
|
2002
2002
|
rows: 1,
|
|
2003
2003
|
disabled: B,
|
|
2004
2004
|
placeholder: ie,
|
|
2005
|
-
value:
|
|
2005
|
+
value: re,
|
|
2006
2006
|
onVnodeMounted: (u) => {
|
|
2007
2007
|
const b = u.el;
|
|
2008
2008
|
de(b);
|
|
@@ -2026,7 +2026,7 @@ ${E}` : "";
|
|
|
2026
2026
|
u.setCustomValidity(b ?? "");
|
|
2027
2027
|
}
|
|
2028
2028
|
return ae(
|
|
2029
|
-
|
|
2029
|
+
l("input", {
|
|
2030
2030
|
"data-rec-focus-key": `var:${z}`,
|
|
2031
2031
|
class: "aimd-rec-inline__value-control aimd-rec-inline__input aimd-rec-inline__input--stacked",
|
|
2032
2032
|
"aria-label": te,
|
|
@@ -2040,7 +2040,7 @@ ${E}` : "";
|
|
|
2040
2040
|
step: E === "number" ? Se.step ?? (H ? "1" : void 0) : E === "time" ? "1" : void 0,
|
|
2041
2041
|
title: Z ?? void 0,
|
|
2042
2042
|
"aria-invalid": Z ? "true" : void 0,
|
|
2043
|
-
value:
|
|
2043
|
+
value: re,
|
|
2044
2044
|
onVnodeMounted: (u) => {
|
|
2045
2045
|
const b = u.el;
|
|
2046
2046
|
de(b), M(b);
|
|
@@ -2068,7 +2068,7 @@ function Ss(e, t) {
|
|
|
2068
2068
|
return Ra(i);
|
|
2069
2069
|
}
|
|
2070
2070
|
function Tn() {
|
|
2071
|
-
return
|
|
2071
|
+
return l("svg", {
|
|
2072
2072
|
viewBox: "0 0 24 24",
|
|
2073
2073
|
fill: "none",
|
|
2074
2074
|
stroke: "currentColor",
|
|
@@ -2077,15 +2077,15 @@ function Tn() {
|
|
|
2077
2077
|
"stroke-linejoin": "round",
|
|
2078
2078
|
"aria-hidden": "true"
|
|
2079
2079
|
}, [
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2080
|
+
l("path", { d: "M3 6h18" }),
|
|
2081
|
+
l("path", { d: "M8 6V4.8c0-.7.6-1.3 1.3-1.3h5.4c.7 0 1.3.6 1.3 1.3V6" }),
|
|
2082
|
+
l("path", { d: "M18 6l-1 13.1c-.1.8-.7 1.4-1.5 1.4H8.5c-.8 0-1.4-.6-1.5-1.4L6 6" }),
|
|
2083
|
+
l("path", { d: "M10 10.5v6" }),
|
|
2084
|
+
l("path", { d: "M14 10.5v6" })
|
|
2085
2085
|
]);
|
|
2086
2086
|
}
|
|
2087
2087
|
function Mn(e) {
|
|
2088
|
-
return
|
|
2088
|
+
return l("span", {
|
|
2089
2089
|
class: "aimd-rec-inline-table__row-number"
|
|
2090
2090
|
}, String(e + 1));
|
|
2091
2091
|
}
|
|
@@ -2129,15 +2129,15 @@ function qn(e) {
|
|
|
2129
2129
|
if (!e.description && e.examples.length === 0)
|
|
2130
2130
|
return null;
|
|
2131
2131
|
const t = [];
|
|
2132
|
-
return e.description && t.push(
|
|
2132
|
+
return e.description && t.push(l("span", {
|
|
2133
2133
|
class: "aimd-field__metadata-popover-line"
|
|
2134
|
-
}, e.description)), e.examples.length > 0 && t.push(
|
|
2135
|
-
|
|
2136
|
-
...e.examples.map((n, a) =>
|
|
2134
|
+
}, e.description)), e.examples.length > 0 && t.push(l("span", { class: "aimd-field__metadata-examples" }, [
|
|
2135
|
+
l("span", { class: "aimd-field__metadata-examples-label" }, "e.g."),
|
|
2136
|
+
...e.examples.map((n, a) => l("span", {
|
|
2137
2137
|
key: `${a}-${n}`,
|
|
2138
2138
|
class: "aimd-field__metadata-example"
|
|
2139
2139
|
}, n))
|
|
2140
|
-
])),
|
|
2140
|
+
])), l("span", {
|
|
2141
2141
|
class: "aimd-field__metadata-popover",
|
|
2142
2142
|
role: "tooltip"
|
|
2143
2143
|
}, t);
|
|
@@ -2183,11 +2183,11 @@ const xs = Ze({
|
|
|
2183
2183
|
const G = O.reduce((de, me) => Math.max(de, Ka(me[R])), Math.max(Ka(R), Ka(Z))), Y = Nt(R, Z);
|
|
2184
2184
|
return Y === "compact" ? Math.max(7, Math.min(12, G + 2)) : Y === "wide" ? Math.max(16, Math.min(42, G + 5)) : Math.max(10, Math.min(22, G + 4));
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function X(R, O, Z) {
|
|
2187
2187
|
return 122 + R.reduce((ke, ce) => ke + j(ce, O, Z(ce)) * 8.2 + 24, 0);
|
|
2188
2188
|
}
|
|
2189
2189
|
function pe(R, O) {
|
|
2190
|
-
return `${j(R, O,
|
|
2190
|
+
return `${j(R, O, le(R))}ch`;
|
|
2191
2191
|
}
|
|
2192
2192
|
function ve() {
|
|
2193
2193
|
if (!n.value) return 0;
|
|
@@ -2198,7 +2198,7 @@ const xs = Ze({
|
|
|
2198
2198
|
if (!n.value) return;
|
|
2199
2199
|
const R = ve();
|
|
2200
2200
|
if (R <= 0) return;
|
|
2201
|
-
const O =
|
|
2201
|
+
const O = X(e.columns, e.rows, le), Z = a.value ? O > R - x : O > R + x;
|
|
2202
2202
|
if (Z === a.value) {
|
|
2203
2203
|
g = null, d = 0;
|
|
2204
2204
|
return;
|
|
@@ -2238,7 +2238,7 @@ const xs = Ze({
|
|
|
2238
2238
|
const Z = ga(O?.description) ?? Gn(R), G = zn(O), Y = G.length > 0 ? G : $a(R);
|
|
2239
2239
|
return $s(Z, Y);
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function le(R) {
|
|
2242
2242
|
return ga(H(R)?.title) ?? qt(R, W(R));
|
|
2243
2243
|
}
|
|
2244
2244
|
function te(R) {
|
|
@@ -2255,7 +2255,7 @@ const xs = Ze({
|
|
|
2255
2255
|
const de = H(O)?.enumOptions ?? [], me = `var_table:${R}:${Z}:${O}`, L = V(O), ke = te(O), ce = `${qt(O, W(O))}: ${Z + 1}`;
|
|
2256
2256
|
if (de.length > 0) {
|
|
2257
2257
|
const ee = Un(de, G[O]), ye = ya(W(O)?.type) ? null : "", he = ye === null || ee === "", ae = ye === null ? wa(e.messages) : ke;
|
|
2258
|
-
return
|
|
2258
|
+
return l("select", {
|
|
2259
2259
|
"data-rec-focus-key": me,
|
|
2260
2260
|
"aria-label": ce,
|
|
2261
2261
|
class: [Y, "aimd-rec-enum-select"],
|
|
@@ -2272,14 +2272,14 @@ const xs = Ze({
|
|
|
2272
2272
|
},
|
|
2273
2273
|
onBlur: () => t("cell-blur", { tableName: R, column: O, rowIndex: Z })
|
|
2274
2274
|
}, [
|
|
2275
|
-
he ?
|
|
2276
|
-
...de.map((Te, Se) =>
|
|
2275
|
+
he ? l("option", { value: "" }, ae) : null,
|
|
2276
|
+
...de.map((Te, Se) => l("option", {
|
|
2277
2277
|
key: `${Se}:${String(Te.value)}`,
|
|
2278
2278
|
value: String(Se)
|
|
2279
2279
|
}, Te.label))
|
|
2280
2280
|
]);
|
|
2281
2281
|
}
|
|
2282
|
-
return
|
|
2282
|
+
return l("input", {
|
|
2283
2283
|
"data-rec-focus-key": me,
|
|
2284
2284
|
"aria-label": ce,
|
|
2285
2285
|
class: Y,
|
|
@@ -2309,7 +2309,7 @@ const xs = Ze({
|
|
|
2309
2309
|
}
|
|
2310
2310
|
function N(R, O, Z, G, Y) {
|
|
2311
2311
|
const de = `var_table:${R}:${Z}:${O}`, me = e.fieldState?.[de]?.validationError ?? e.fieldState?.[`var_table:${R}:${O}`]?.validationError, L = Array.isArray(Y) ? [...Y] : [Y];
|
|
2312
|
-
return me && L.push("aimd-rec-table-cell-input--error"),
|
|
2312
|
+
return me && L.push("aimd-rec-table-cell-input--error"), l("div", {
|
|
2313
2313
|
class: ["aimd-rec-table-cell-field", me ? "aimd-rec-table-cell-field--invalid" : void 0],
|
|
2314
2314
|
"data-aimd-validation-field": de
|
|
2315
2315
|
}, [
|
|
@@ -2320,12 +2320,12 @@ const xs = Ze({
|
|
|
2320
2320
|
G,
|
|
2321
2321
|
L
|
|
2322
2322
|
),
|
|
2323
|
-
me ?
|
|
2323
|
+
me ? l("span", { class: "aimd-rec-validation-message", role: "alert" }, me) : null
|
|
2324
2324
|
]);
|
|
2325
2325
|
}
|
|
2326
2326
|
function ie(R, O, Z, G, Y = !1) {
|
|
2327
2327
|
const de = ga(G?.title), me = Qa(O), L = de ?? qt(R, O), ke = (de ?? me) !== void 0 && L !== R, ce = be(O, G), ee = !!ce.description || ce.examples.length > 0;
|
|
2328
|
-
return
|
|
2328
|
+
return l("span", {
|
|
2329
2329
|
class: [
|
|
2330
2330
|
Z,
|
|
2331
2331
|
ke || ee ? `${Z}--with-metadata` : void 0,
|
|
@@ -2334,25 +2334,25 @@ const xs = Ze({
|
|
|
2334
2334
|
tabindex: ee ? 0 : void 0,
|
|
2335
2335
|
"aria-label": ce.tooltip || void 0
|
|
2336
2336
|
}, [
|
|
2337
|
-
|
|
2338
|
-
Y ?
|
|
2339
|
-
ke ?
|
|
2337
|
+
l("span", { class: "aimd-field__title" }, L),
|
|
2338
|
+
Y ? l(Ct, { label: e.messages.common.required }) : null,
|
|
2339
|
+
ke ? l("span", { class: "aimd-field__key" }, R) : null,
|
|
2340
2340
|
qn(ce)
|
|
2341
2341
|
]);
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function re(R, O, Z, G, Y) {
|
|
2344
2344
|
return Z.map((de, me) => {
|
|
2345
2345
|
const L = pn(de), ke = O[0] ?? "", ce = O.slice(ke ? 1 : 0);
|
|
2346
|
-
return
|
|
2346
|
+
return l("div", {
|
|
2347
2347
|
key: `${R}-card-${L}`,
|
|
2348
2348
|
class: "aimd-rec-card",
|
|
2349
2349
|
onDragover: (ee) => t("drag-over", { tableName: R, rowIndex: me, event: ee }),
|
|
2350
2350
|
onDrop: (ee) => t("drag-drop", { tableName: R, rowIndex: me, columns: O, event: ee })
|
|
2351
2351
|
}, [
|
|
2352
|
-
|
|
2353
|
-
|
|
2352
|
+
l("div", { class: "aimd-rec-card__toolbar" }, [
|
|
2353
|
+
l("span", { class: "aimd-rec-card__row-meta" }, [
|
|
2354
2354
|
Mn(me),
|
|
2355
|
-
|
|
2355
|
+
l("span", {
|
|
2356
2356
|
class: [
|
|
2357
2357
|
"aimd-rec-inline-table__drag-handle",
|
|
2358
2358
|
e.readonly ? "aimd-rec-inline-table__drag-handle--disabled" : ""
|
|
@@ -2361,12 +2361,12 @@ const xs = Ze({
|
|
|
2361
2361
|
draggable: !e.readonly,
|
|
2362
2362
|
onDragstart: (ee) => t("drag-start", { tableName: R, rowIndex: me, event: ee }),
|
|
2363
2363
|
onDragend: () => t("drag-end")
|
|
2364
|
-
}, Array.from({ length: 6 }, (ee, ye) =>
|
|
2364
|
+
}, Array.from({ length: 6 }, (ee, ye) => l("span", {
|
|
2365
2365
|
key: `${L}-card-drag-dot-${ye}`,
|
|
2366
2366
|
class: "aimd-rec-inline-table__drag-dot"
|
|
2367
2367
|
})))
|
|
2368
2368
|
]),
|
|
2369
|
-
|
|
2369
|
+
l("button", {
|
|
2370
2370
|
type: "button",
|
|
2371
2371
|
class: "aimd-rec-inline-table__icon-btn aimd-rec-inline-table__icon-btn--visible",
|
|
2372
2372
|
disabled: G || Z.length <= 1,
|
|
@@ -2375,11 +2375,11 @@ const xs = Ze({
|
|
|
2375
2375
|
onClick: () => t("remove-row", { tableName: R, rowIndex: me, columns: O })
|
|
2376
2376
|
}, [Tn()])
|
|
2377
2377
|
]),
|
|
2378
|
-
ke ?
|
|
2378
|
+
ke ? l("div", { class: "aimd-rec-card__field aimd-rec-card__field--title" }, [
|
|
2379
2379
|
ie(ke, W(ke), "aimd-rec-card__label", H(ke), e.requiredColumns.includes(ke)),
|
|
2380
2380
|
N(R, ke, me, de, "aimd-rec-card__input")
|
|
2381
2381
|
]) : null,
|
|
2382
|
-
|
|
2382
|
+
l("div", { class: "aimd-rec-card__body" }, ce.map((ee) => l("div", {
|
|
2383
2383
|
key: `${R}-${L}-${ee}`,
|
|
2384
2384
|
class: "aimd-rec-card__field"
|
|
2385
2385
|
}, [
|
|
@@ -2395,15 +2395,15 @@ const xs = Ze({
|
|
|
2395
2395
|
v?.disconnect(), s !== null && cancelAnimationFrame(s);
|
|
2396
2396
|
}), $e(() => e.columns, () => Ye(() => z())), $e(() => e.rows, () => Ye(() => z()), { deep: !0 }), () => {
|
|
2397
2397
|
const R = e.node.id, O = e.columns, Z = e.rows, G = e.disabled, Y = e.messages, de = E(), me = ga(de?.title), L = Qa(e.node.definition), ke = be(e.node.definition, de), ce = me ?? qt(R, e.node.definition), ee = (me ?? L) !== void 0 && ce !== R, ye = !!ke.description || ke.examples.length > 0;
|
|
2398
|
-
return
|
|
2398
|
+
return l("div", {
|
|
2399
2399
|
ref: n,
|
|
2400
2400
|
class: ["aimd-field aimd-field--var-table aimd-rec-inline-table", ...e.extraClasses],
|
|
2401
2401
|
"data-aimd-table-name": R,
|
|
2402
2402
|
"data-aimd-table-layout": i.value && a.value ? "cards" : "table"
|
|
2403
2403
|
}, [
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2404
|
+
l("div", { class: "aimd-field__header" }, [
|
|
2405
|
+
l("span", { class: "aimd-field__scope" }, $t("var_table", Y)),
|
|
2406
|
+
l("span", {
|
|
2407
2407
|
class: [
|
|
2408
2408
|
"aimd-field__name",
|
|
2409
2409
|
ee || ye ? "aimd-field__name--with-metadata" : void 0,
|
|
@@ -2412,58 +2412,58 @@ const xs = Ze({
|
|
|
2412
2412
|
tabindex: ye ? 0 : void 0,
|
|
2413
2413
|
"aria-label": ke.tooltip || void 0
|
|
2414
2414
|
}, [
|
|
2415
|
-
|
|
2416
|
-
e.required ?
|
|
2417
|
-
ee ?
|
|
2415
|
+
l("span", { class: "aimd-field__title" }, ce),
|
|
2416
|
+
e.required ? l(Ct, { label: Y.common.required }) : null,
|
|
2417
|
+
ee ? l("span", { class: "aimd-field__key" }, R) : null,
|
|
2418
2418
|
qn(ke)
|
|
2419
2419
|
]),
|
|
2420
|
-
e.assignerControl || e.assignerStatus ?
|
|
2421
|
-
e.assignerControl ?
|
|
2422
|
-
e.assignerStatus ?
|
|
2420
|
+
e.assignerControl || e.assignerStatus ? l("span", { class: "aimd-rec-inline-table__header-actions" }, [
|
|
2421
|
+
e.assignerControl ? l("span", { class: "aimd-rec-inline-table__header-action" }, [e.assignerControl]) : null,
|
|
2422
|
+
e.assignerStatus ? l("span", { class: "aimd-rec-inline-table__header-state" }, [e.assignerStatus]) : null
|
|
2423
2423
|
]) : null
|
|
2424
2424
|
]),
|
|
2425
|
-
e.assignerError ?
|
|
2426
|
-
|
|
2425
|
+
e.assignerError ? l("div", { class: "aimd-rec-inline__assigner-error aimd-rec-inline-table__assigner-error" }, e.assignerError) : null,
|
|
2426
|
+
l(si, {
|
|
2427
2427
|
name: "aimd-table-layout-switch",
|
|
2428
2428
|
mode: "out-in"
|
|
2429
2429
|
}, {
|
|
2430
|
-
default: () => i.value && a.value ?
|
|
2430
|
+
default: () => i.value && a.value ? l("div", {
|
|
2431
2431
|
key: "cards",
|
|
2432
2432
|
class: "aimd-rec-card-list"
|
|
2433
|
-
},
|
|
2433
|
+
}, re(R, O, Z, G, Y)) : l("table", {
|
|
2434
2434
|
key: "table",
|
|
2435
2435
|
class: "aimd-field__table-preview aimd-rec-inline-table__table"
|
|
2436
2436
|
}, [
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
...O.map((he) =>
|
|
2437
|
+
l("colgroup", [
|
|
2438
|
+
l("col", { class: "aimd-rec-inline-table__drag-col" }),
|
|
2439
|
+
...O.map((he) => l("col", {
|
|
2440
2440
|
key: `${R}-col-${he}`,
|
|
2441
2441
|
style: { width: pe(he, Z) }
|
|
2442
2442
|
})),
|
|
2443
|
-
|
|
2443
|
+
l("col", { class: "aimd-rec-inline-table__action-col" })
|
|
2444
2444
|
]),
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2445
|
+
l("thead", [
|
|
2446
|
+
l("tr", [
|
|
2447
|
+
l("th", { class: "aimd-rec-inline-table__drag-head" }, [
|
|
2448
|
+
l("span", { class: "aimd-rec-inline-table__row-head-label" }, "#")
|
|
2449
2449
|
]),
|
|
2450
|
-
...O.map((he) =>
|
|
2450
|
+
...O.map((he) => l("th", {
|
|
2451
2451
|
class: [
|
|
2452
2452
|
"aimd-rec-inline-table__column-head",
|
|
2453
|
-
`aimd-rec-inline-table__column-head--${Nt(he,
|
|
2453
|
+
`aimd-rec-inline-table__column-head--${Nt(he, le(he))}`
|
|
2454
2454
|
],
|
|
2455
2455
|
scope: "col",
|
|
2456
|
-
"data-column-kind": Nt(he,
|
|
2456
|
+
"data-column-kind": Nt(he, le(he)),
|
|
2457
2457
|
"data-column-id": he
|
|
2458
2458
|
}, [
|
|
2459
2459
|
ie(he, W(he), "aimd-rec-inline-table__column-label", H(he), e.requiredColumns.includes(he))
|
|
2460
2460
|
])),
|
|
2461
|
-
|
|
2461
|
+
l("th", { class: "aimd-rec-inline-table__action-head" }, Y.table.actionColumn)
|
|
2462
2462
|
])
|
|
2463
2463
|
]),
|
|
2464
|
-
|
|
2464
|
+
l("tbody", Z.map((he, ae) => {
|
|
2465
2465
|
const Te = pn(he);
|
|
2466
|
-
return
|
|
2466
|
+
return l("tr", {
|
|
2467
2467
|
key: `${R}-${Te}`,
|
|
2468
2468
|
class: [
|
|
2469
2469
|
"aimd-rec-inline-table__row",
|
|
@@ -2473,10 +2473,10 @@ const xs = Ze({
|
|
|
2473
2473
|
onDragover: (Se) => t("drag-over", { tableName: R, rowIndex: ae, event: Se }),
|
|
2474
2474
|
onDrop: (Se) => t("drag-drop", { tableName: R, rowIndex: ae, columns: O, event: Se })
|
|
2475
2475
|
}, [
|
|
2476
|
-
|
|
2477
|
-
|
|
2476
|
+
l("td", { class: "aimd-rec-inline-table__drag-cell" }, [
|
|
2477
|
+
l("span", { class: "aimd-rec-inline-table__row-control" }, [
|
|
2478
2478
|
Mn(ae),
|
|
2479
|
-
|
|
2479
|
+
l("span", {
|
|
2480
2480
|
class: [
|
|
2481
2481
|
"aimd-rec-inline-table__drag-handle",
|
|
2482
2482
|
e.readonly ? "aimd-rec-inline-table__drag-handle--disabled" : ""
|
|
@@ -2485,20 +2485,20 @@ const xs = Ze({
|
|
|
2485
2485
|
draggable: !e.readonly,
|
|
2486
2486
|
onDragstart: (Se) => t("drag-start", { tableName: R, rowIndex: ae, event: Se }),
|
|
2487
2487
|
onDragend: () => t("drag-end")
|
|
2488
|
-
}, Array.from({ length: 6 }, (Se, M) =>
|
|
2488
|
+
}, Array.from({ length: 6 }, (Se, M) => l("span", {
|
|
2489
2489
|
key: `${Te}-drag-dot-${M}`,
|
|
2490
2490
|
class: "aimd-rec-inline-table__drag-dot"
|
|
2491
2491
|
})))
|
|
2492
2492
|
])
|
|
2493
2493
|
]),
|
|
2494
|
-
...O.map((Se) =>
|
|
2494
|
+
...O.map((Se) => l("td", {
|
|
2495
2495
|
key: `${R}-${ae}-${Se}`,
|
|
2496
2496
|
class: [
|
|
2497
2497
|
"aimd-rec-inline-table__value-cell",
|
|
2498
|
-
`aimd-rec-inline-table__value-cell--${Nt(Se,
|
|
2498
|
+
`aimd-rec-inline-table__value-cell--${Nt(Se, le(Se))}`
|
|
2499
2499
|
],
|
|
2500
2500
|
"data-column-label": Se,
|
|
2501
|
-
"data-column-kind": Nt(Se,
|
|
2501
|
+
"data-column-kind": Nt(Se, le(Se))
|
|
2502
2502
|
}, [
|
|
2503
2503
|
(() => {
|
|
2504
2504
|
const u = [
|
|
@@ -2508,8 +2508,8 @@ const xs = Ze({
|
|
|
2508
2508
|
return N(R, Se, ae, he, u);
|
|
2509
2509
|
})()
|
|
2510
2510
|
])),
|
|
2511
|
-
|
|
2512
|
-
|
|
2511
|
+
l("td", { class: "aimd-rec-inline-table__action-cell" }, [
|
|
2512
|
+
l("button", {
|
|
2513
2513
|
type: "button",
|
|
2514
2514
|
class: "aimd-rec-inline-table__icon-btn",
|
|
2515
2515
|
disabled: G || Z.length <= 1,
|
|
@@ -2522,8 +2522,8 @@ const xs = Ze({
|
|
|
2522
2522
|
}))
|
|
2523
2523
|
])
|
|
2524
2524
|
}),
|
|
2525
|
-
|
|
2526
|
-
|
|
2525
|
+
l("div", { class: "aimd-rec-inline-table__actions" }, [
|
|
2526
|
+
l("button", {
|
|
2527
2527
|
type: "button",
|
|
2528
2528
|
class: "aimd-rec-inline-table__add-btn",
|
|
2529
2529
|
disabled: G,
|
|
@@ -2628,7 +2628,7 @@ const xs = Ze({
|
|
|
2628
2628
|
}, $(e.messages.search.label), 9, As))
|
|
2629
2629
|
], 2));
|
|
2630
2630
|
}
|
|
2631
|
-
}), Ps = /* @__PURE__ */
|
|
2631
|
+
}), Ps = /* @__PURE__ */ ft(Ls, [["__scopeId", "data-v-11b82720"]]), ti = At(() => import("./AimdMarkdownNoteField-Ca-kRvLz.js"));
|
|
2632
2632
|
function Ja(e) {
|
|
2633
2633
|
return e == null || typeof e == "boolean" ? !1 : typeof e == "string" ? e.trim().length > 0 : Array.isArray(e) ? e.some(Ja) : oi(e) ? e.type === di ? !1 : (e.type === "p" || e.type === ci || e.type === Oe) && (e.children == null || typeof e.children == "string" || Array.isArray(e.children)) ? Ja(e.children) : !0 : !0;
|
|
2634
2634
|
}
|
|
@@ -2659,7 +2659,7 @@ const Bs = Ze({
|
|
|
2659
2659
|
}, { immediate: !0 }), Vt(() => {
|
|
2660
2660
|
d && clearInterval(d), x && clearTimeout(x);
|
|
2661
2661
|
});
|
|
2662
|
-
const j = C(() => e.detailDisplay === "always"),
|
|
2662
|
+
const j = C(() => e.detailDisplay === "always"), X = C(() => Ci(e.state, a.value)), pe = C(() => _t(X.value, e.locale)), ve = C(() => typeof e.node.estimated_duration_ms == "number" ? _t(e.node.estimated_duration_ms, e.locale) : ""), I = C(() => $i(e.node)), z = C(() => xa(e.state)), q = C(() => xi(e.state)), W = C(() => !!e.state.annotation?.trim()), E = C(() => Ai(e.state, e.node.estimated_duration_ms, a.value)), H = C(() => I.value === "countdown" || I.value === "both"), be = C(() => I.value === "elapsed" || I.value === "both"), le = C(() => (z.value || q.value) && Fi(E.value, e.node.estimated_duration_ms)), te = C(() => typeof E.value == "number" && E.value < 0), B = C(() => E.value == null ? "" : te.value ? e.messages.step.overtimeBadge(_t(Math.abs(E.value), e.locale)) : e.messages.step.remainingBadge(_t(Math.max(0, E.value), e.locale))), N = C(() => E.value == null ? "" : te.value ? e.messages.step.overtimeDuration(_t(Math.abs(E.value), e.locale)) : e.messages.step.remainingDuration(_t(Math.max(0, E.value), e.locale))), ie = C(() => H.value), re = C(() => j.value || W.value || s.value), R = C(() => j.value || ie.value || z.value || q.value || g.value), O = C(() => !R.value && (z.value || q.value));
|
|
2663
2663
|
function Z() {
|
|
2664
2664
|
x && (clearTimeout(x), x = null);
|
|
2665
2665
|
}
|
|
@@ -2701,15 +2701,15 @@ const Bs = Ze({
|
|
|
2701
2701
|
if (R.value) {
|
|
2702
2702
|
const w = [];
|
|
2703
2703
|
H.value && B.value && w.push(
|
|
2704
|
-
|
|
2704
|
+
l("span", {
|
|
2705
2705
|
class: [
|
|
2706
2706
|
"aimd-step-timer__hero",
|
|
2707
|
-
te.value ? "aimd-step-timer__hero--overtime" :
|
|
2707
|
+
te.value ? "aimd-step-timer__hero--overtime" : le.value ? "aimd-step-timer__hero--warning" : "aimd-step-timer__hero--countdown"
|
|
2708
2708
|
],
|
|
2709
2709
|
title: N.value
|
|
2710
2710
|
}, B.value)
|
|
2711
2711
|
), be.value && w.push(
|
|
2712
|
-
|
|
2712
|
+
l("span", {
|
|
2713
2713
|
class: [
|
|
2714
2714
|
"aimd-step-timer__pill",
|
|
2715
2715
|
"aimd-step-timer__pill--actual",
|
|
@@ -2718,17 +2718,17 @@ const Bs = Ze({
|
|
|
2718
2718
|
title: e.messages.step.recordedDuration(pe.value)
|
|
2719
2719
|
}, e.messages.step.recordedBadge(pe.value))
|
|
2720
2720
|
), p.push(
|
|
2721
|
-
|
|
2721
|
+
l("span", {
|
|
2722
2722
|
class: "aimd-step-field__detail aimd-step-field__detail--timer"
|
|
2723
2723
|
}, [
|
|
2724
2724
|
...w,
|
|
2725
|
-
u ? null :
|
|
2726
|
-
|
|
2725
|
+
u ? null : l("span", { class: "aimd-step-timer__controls" }, [
|
|
2726
|
+
l("button", {
|
|
2727
2727
|
type: "button",
|
|
2728
2728
|
class: "aimd-step-timer__btn",
|
|
2729
2729
|
onClick: () => t(z.value ? "timer-pause" : "timer-start", { id: ye })
|
|
2730
2730
|
}, ue),
|
|
2731
|
-
|
|
2731
|
+
l("button", {
|
|
2732
2732
|
type: "button",
|
|
2733
2733
|
class: "aimd-step-timer__btn aimd-step-timer__btn--ghost",
|
|
2734
2734
|
disabled: !se,
|
|
@@ -2738,11 +2738,11 @@ const Bs = Ze({
|
|
|
2738
2738
|
])
|
|
2739
2739
|
);
|
|
2740
2740
|
}
|
|
2741
|
-
|
|
2742
|
-
|
|
2741
|
+
re.value && D.push(
|
|
2742
|
+
l("span", {
|
|
2743
2743
|
class: "aimd-step-field__detail aimd-step-field__detail--annotation"
|
|
2744
2744
|
}, [
|
|
2745
|
-
|
|
2745
|
+
l(ti, {
|
|
2746
2746
|
class: "aimd-step-field__annotation-editor",
|
|
2747
2747
|
disabled: u,
|
|
2748
2748
|
locale: e.locale,
|
|
@@ -2760,8 +2760,8 @@ const Bs = Ze({
|
|
|
2760
2760
|
})
|
|
2761
2761
|
])
|
|
2762
2762
|
), y.push(
|
|
2763
|
-
|
|
2764
|
-
Te ?
|
|
2763
|
+
l(Te ? "label" : "span", { class: "aimd-rec-inline__check-wrap" }, [
|
|
2764
|
+
Te ? l("input", {
|
|
2765
2765
|
"data-rec-focus-key": `step:${ye}:checked`,
|
|
2766
2766
|
"aria-label": `${$t("step", e.messages)} ${ae}${ee.title ? `: ${ee.title}` : ""}`,
|
|
2767
2767
|
type: "checkbox",
|
|
@@ -2775,21 +2775,21 @@ const Bs = Ze({
|
|
|
2775
2775
|
},
|
|
2776
2776
|
onBlur: () => t("blur", { id: ye })
|
|
2777
2777
|
}) : null,
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
ee.title?.trim() ?
|
|
2782
|
-
n.value === "detailed" ?
|
|
2778
|
+
l("span", { class: "aimd-field__scope" }, $t("step", e.messages)),
|
|
2779
|
+
l("span", { class: "aimd-rec-inline__step-num" }, ae),
|
|
2780
|
+
l("span", { class: "aimd-step-field__identity" }, [
|
|
2781
|
+
ee.title?.trim() ? l("span", { class: "aimd-step-field__title" }, ee.title.trim()) : null,
|
|
2782
|
+
n.value === "detailed" ? l("span", { class: "aimd-step-field__id" }, ye) : null
|
|
2783
2783
|
]),
|
|
2784
|
-
e.required ?
|
|
2784
|
+
e.required ? l(Ct, { label: e.messages.common.required }) : null
|
|
2785
2785
|
])
|
|
2786
2786
|
), ve.value && y.push(
|
|
2787
|
-
|
|
2787
|
+
l("span", {
|
|
2788
2788
|
class: "aimd-step-timer__pill aimd-step-timer__pill--estimate",
|
|
2789
2789
|
title: e.messages.step.estimatedDuration(ve.value)
|
|
2790
2790
|
}, e.messages.step.estimatedBadge(ve.value))
|
|
2791
2791
|
), O.value && y.push(
|
|
2792
|
-
|
|
2792
|
+
l("span", {
|
|
2793
2793
|
class: [
|
|
2794
2794
|
"aimd-step-timer__pill",
|
|
2795
2795
|
"aimd-step-timer__pill--actual",
|
|
@@ -2797,57 +2797,57 @@ const Bs = Ze({
|
|
|
2797
2797
|
],
|
|
2798
2798
|
title: e.messages.step.recordedDuration(pe.value)
|
|
2799
2799
|
}, e.messages.step.recordedBadge(pe.value))
|
|
2800
|
-
), !u && !M && !
|
|
2801
|
-
|
|
2800
|
+
), !u && !M && !re.value && F.push(
|
|
2801
|
+
l("button", {
|
|
2802
2802
|
type: "button",
|
|
2803
2803
|
class: "aimd-step-timer__btn aimd-step-timer__btn--ghost aimd-step-field__toggle aimd-step-field__toggle--annotation",
|
|
2804
2804
|
onMousedown: ke,
|
|
2805
2805
|
onClick: me
|
|
2806
2806
|
}, e.messages.step.annotationToggle)
|
|
2807
2807
|
), !u && !R.value && F.push(
|
|
2808
|
-
|
|
2808
|
+
l("button", {
|
|
2809
2809
|
type: "button",
|
|
2810
2810
|
class: "aimd-step-timer__btn aimd-step-timer__btn--ghost aimd-step-field__toggle aimd-step-field__toggle--timer",
|
|
2811
2811
|
onMousedown: ke,
|
|
2812
2812
|
onClick: L
|
|
2813
2813
|
}, e.messages.step.timerToggle)
|
|
2814
2814
|
);
|
|
2815
|
-
const U = M ?
|
|
2815
|
+
const U = M ? l("div", { key: "body", class: "aimd-step-field__body" }, Se) : null, Ce = M && !u && !re.value ? l("div", {
|
|
2816
2816
|
key: "body-annotation-actions",
|
|
2817
2817
|
class: "aimd-step-field__body-actions"
|
|
2818
2818
|
}, [
|
|
2819
|
-
|
|
2819
|
+
l("button", {
|
|
2820
2820
|
type: "button",
|
|
2821
2821
|
class: "aimd-step-timer__btn aimd-step-timer__btn--ghost aimd-step-field__toggle aimd-step-field__toggle--annotation aimd-step-field__body-action",
|
|
2822
2822
|
onMousedown: ke,
|
|
2823
2823
|
onClick: me
|
|
2824
2824
|
}, e.messages.step.annotationToggle)
|
|
2825
|
-
]) : null, Me = p.length > 0 ?
|
|
2825
|
+
]) : null, Me = p.length > 0 ? l("div", {
|
|
2826
2826
|
key: "timer-details-slot",
|
|
2827
2827
|
class: "aimd-step-field__details-slot aimd-step-field__details-slot--timer"
|
|
2828
2828
|
}, [
|
|
2829
|
-
|
|
2830
|
-
]) : null, We = D.length > 0 ?
|
|
2829
|
+
l("div", { class: "aimd-step-field__details" }, p)
|
|
2830
|
+
]) : null, We = D.length > 0 ? l("div", {
|
|
2831
2831
|
key: "annotation-details-slot",
|
|
2832
2832
|
ref: v,
|
|
2833
2833
|
class: "aimd-step-field__details-slot aimd-step-field__details-slot--annotation"
|
|
2834
2834
|
}, [
|
|
2835
|
-
|
|
2835
|
+
l("div", { class: "aimd-step-field__details" }, D)
|
|
2836
2836
|
]) : null;
|
|
2837
|
-
return
|
|
2837
|
+
return l("div", {
|
|
2838
2838
|
ref: i,
|
|
2839
2839
|
class: ["aimd-rec-inline aimd-rec-inline--step aimd-field aimd-field--step", ...b],
|
|
2840
2840
|
onFocusin: Y,
|
|
2841
2841
|
onFocusout: de
|
|
2842
2842
|
}, [
|
|
2843
|
-
|
|
2843
|
+
l("div", {
|
|
2844
2844
|
key: "main",
|
|
2845
2845
|
class: "aimd-step-field__main"
|
|
2846
2846
|
}, [
|
|
2847
|
-
|
|
2847
|
+
l("div", {
|
|
2848
2848
|
class: "aimd-step-field__main-meta"
|
|
2849
2849
|
}, y),
|
|
2850
|
-
F.length > 0 ?
|
|
2850
|
+
F.length > 0 ? l("div", {
|
|
2851
2851
|
class: "aimd-step-field__main-actions"
|
|
2852
2852
|
}, F) : null
|
|
2853
2853
|
]),
|
|
@@ -2884,7 +2884,7 @@ const Bs = Ze({
|
|
|
2884
2884
|
function j() {
|
|
2885
2885
|
x();
|
|
2886
2886
|
}
|
|
2887
|
-
function
|
|
2887
|
+
function X(z) {
|
|
2888
2888
|
const q = z.relatedTarget;
|
|
2889
2889
|
q instanceof Node && a.value?.contains(q) || (x(), s = setTimeout(() => {
|
|
2890
2890
|
s = null;
|
|
@@ -2911,18 +2911,18 @@ const Bs = Ze({
|
|
|
2911
2911
|
return Vt(() => {
|
|
2912
2912
|
x();
|
|
2913
2913
|
}), () => {
|
|
2914
|
-
const z = e.node, q = z.id, W = e.state, E = e.disabled, H = e.extraClasses, be = e.bodyNodes.length > 0,
|
|
2915
|
-
|
|
2914
|
+
const z = e.node, q = z.id, W = e.state, E = e.disabled, H = e.extraClasses, be = e.bodyNodes.length > 0, le = !!(W.checked && z.checked_message), te = z.label || q, B = W.checked ? "aimd-rec-inline--check-passed" : "aimd-rec-inline--check-open", N = be ? "aimd-rec-inline--check-with-body" : "aimd-rec-inline--check-bodyless", ie = !E && !d.value ? [
|
|
2915
|
+
l("button", {
|
|
2916
2916
|
type: "button",
|
|
2917
2917
|
class: "aimd-step-timer__btn aimd-step-timer__btn--ghost aimd-check-field__toggle-btn",
|
|
2918
2918
|
onMousedown: ve,
|
|
2919
2919
|
onClick: pe
|
|
2920
2920
|
}, e.messages.check.annotationPlaceholder)
|
|
2921
|
-
] : [],
|
|
2922
|
-
|
|
2921
|
+
] : [], re = d.value ? [
|
|
2922
|
+
l("span", {
|
|
2923
2923
|
class: "aimd-check-field__detail aimd-check-field__detail--annotation"
|
|
2924
2924
|
}, [
|
|
2925
|
-
|
|
2925
|
+
l(ti, {
|
|
2926
2926
|
class: "aimd-check-field__annotation-editor",
|
|
2927
2927
|
disabled: E,
|
|
2928
2928
|
locale: e.locale,
|
|
@@ -2940,16 +2940,16 @@ const Bs = Ze({
|
|
|
2940
2940
|
})
|
|
2941
2941
|
])
|
|
2942
2942
|
] : [];
|
|
2943
|
-
return
|
|
2943
|
+
return l("div", {
|
|
2944
2944
|
ref: a,
|
|
2945
2945
|
class: ["aimd-rec-inline aimd-rec-inline--check aimd-field aimd-field--check", B, N, ...H],
|
|
2946
2946
|
onFocusin: j,
|
|
2947
|
-
onFocusout:
|
|
2947
|
+
onFocusout: X
|
|
2948
2948
|
}, [
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2949
|
+
l("div", { class: "aimd-check-field__main" }, [
|
|
2950
|
+
l("div", { class: "aimd-check-field__header" }, [
|
|
2951
|
+
l("label", { class: "aimd-rec-inline__check-wrap aimd-check-field__toggle" }, [
|
|
2952
|
+
l("input", {
|
|
2953
2953
|
"data-rec-focus-key": `check:${q}:checked`,
|
|
2954
2954
|
"aria-label": `${$t("check", e.messages)} ${z.title || te}`,
|
|
2955
2955
|
type: "checkbox",
|
|
@@ -2964,27 +2964,27 @@ const Bs = Ze({
|
|
|
2964
2964
|
},
|
|
2965
2965
|
onBlur: () => t("blur", { id: q })
|
|
2966
2966
|
}),
|
|
2967
|
-
|
|
2968
|
-
z.title ?
|
|
2969
|
-
|
|
2970
|
-
n.value === "detailed" ?
|
|
2971
|
-
]) : be ? null :
|
|
2967
|
+
l("span", { class: "aimd-field__scope" }, $t("check", e.messages)),
|
|
2968
|
+
z.title ? l("span", { class: "aimd-check-field__identity" }, [
|
|
2969
|
+
l("span", { class: "aimd-check-field__title" }, z.title),
|
|
2970
|
+
n.value === "detailed" ? l("small", { class: "aimd-check-field__key" }, q) : null
|
|
2971
|
+
]) : be ? null : l("span", { class: "aimd-field__name aimd-check-field__key" }, [
|
|
2972
2972
|
te,
|
|
2973
|
-
e.required ?
|
|
2973
|
+
e.required ? l(Ct, { label: e.messages.common.required }) : null
|
|
2974
2974
|
]),
|
|
2975
|
-
(be || z.title) && e.required ?
|
|
2975
|
+
(be || z.title) && e.required ? l(Ct, { label: e.messages.common.required }) : null
|
|
2976
2976
|
]),
|
|
2977
|
-
ie.length > 0 ?
|
|
2977
|
+
ie.length > 0 ? l("div", { class: "aimd-check-field__actions" }, ie) : null
|
|
2978
2978
|
]),
|
|
2979
|
-
be ?
|
|
2979
|
+
be ? l("div", {
|
|
2980
2980
|
class: [
|
|
2981
2981
|
"aimd-check-field__body",
|
|
2982
2982
|
W.checked ? "aimd-check-field__body--checked" : ""
|
|
2983
2983
|
]
|
|
2984
2984
|
}, e.bodyNodes.slice()) : null
|
|
2985
2985
|
]),
|
|
2986
|
-
|
|
2987
|
-
|
|
2986
|
+
le ? l("div", { class: "aimd-check-field__banner" }, z.checked_message) : null,
|
|
2987
|
+
re.length > 0 ? l("div", { ref: i, class: "aimd-check-field__details" }, re) : null
|
|
2988
2988
|
]);
|
|
2989
2989
|
};
|
|
2990
2990
|
}
|
|
@@ -3043,7 +3043,7 @@ const Bs = Ze({
|
|
|
3043
3043
|
]))), 128))
|
|
3044
3044
|
]));
|
|
3045
3045
|
}
|
|
3046
|
-
}), ja = /* @__PURE__ */
|
|
3046
|
+
}), ja = /* @__PURE__ */ ft(Ws, [["__scopeId", "data-v-1f7a8e4f"]]), Gs = { class: "aimd-quiz__meta" }, Qs = { class: "aimd-field__scope" }, Ys = { class: "aimd-field__name" }, Js = { class: "aimd-field__type" }, Xs = {
|
|
3047
3047
|
key: 1,
|
|
3048
3048
|
class: "aimd-quiz__score"
|
|
3049
3049
|
}, Zs = {
|
|
@@ -3058,7 +3058,7 @@ const Bs = Ze({
|
|
|
3058
3058
|
}, io = {
|
|
3059
3059
|
key: 2,
|
|
3060
3060
|
class: "aimd-quiz-recorder__options"
|
|
3061
|
-
},
|
|
3061
|
+
}, ro = { class: "aimd-quiz-recorder__option" }, lo = ["data-rec-focus-key", "name", "value", "disabled"], so = { class: "aimd-quiz-recorder__option-content" }, oo = { class: "aimd-quiz-recorder__option-label" }, co = {
|
|
3062
3062
|
key: 0,
|
|
3063
3063
|
class: "aimd-quiz-recorder__option-explanation"
|
|
3064
3064
|
}, uo = {
|
|
@@ -3170,7 +3170,7 @@ const Bs = Ze({
|
|
|
3170
3170
|
function j() {
|
|
3171
3171
|
return s.value ? V(g(n.modelValue)?.followups) : {};
|
|
3172
3172
|
}
|
|
3173
|
-
function
|
|
3173
|
+
function X(p) {
|
|
3174
3174
|
const D = n.quiz.options?.find((F) => F.key === p), y = {};
|
|
3175
3175
|
for (const F of D?.followups || [])
|
|
3176
3176
|
F.default !== void 0 && (y[F.key] = F.default);
|
|
@@ -3180,7 +3180,7 @@ const Bs = Ze({
|
|
|
3180
3180
|
const y = x(p), F = {};
|
|
3181
3181
|
for (const U of y) {
|
|
3182
3182
|
const Ce = {
|
|
3183
|
-
...
|
|
3183
|
+
...X(U),
|
|
3184
3184
|
...D[U] || {}
|
|
3185
3185
|
};
|
|
3186
3186
|
Object.keys(Ce).length > 0 && (F[U] = Ce);
|
|
@@ -3227,7 +3227,7 @@ const Bs = Ze({
|
|
|
3227
3227
|
function be(p) {
|
|
3228
3228
|
return z.value.includes(p);
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3230
|
+
function le(p, D) {
|
|
3231
3231
|
const y = z.value, F = D ? [.../* @__PURE__ */ new Set([...y, p])] : y.filter((U) => U !== p);
|
|
3232
3232
|
ve(F);
|
|
3233
3233
|
}
|
|
@@ -3254,7 +3254,7 @@ const Bs = Ze({
|
|
|
3254
3254
|
const F = j(), U = { ...F[p] || {} }, Ce = N(D, y);
|
|
3255
3255
|
Ce === void 0 ? delete U[D.key] : U[D.key] = Ce, Object.keys(U).length > 0 ? F[p] = U : delete F[p], a("update:modelValue", pe(d(), F));
|
|
3256
3256
|
}
|
|
3257
|
-
function
|
|
3257
|
+
function re(p) {
|
|
3258
3258
|
if (typeof p != "object" || p === null || Array.isArray(p))
|
|
3259
3259
|
return {};
|
|
3260
3260
|
const D = {};
|
|
@@ -3263,11 +3263,11 @@ const Bs = Ze({
|
|
|
3263
3263
|
return D;
|
|
3264
3264
|
}
|
|
3265
3265
|
function R(p) {
|
|
3266
|
-
return
|
|
3266
|
+
return re(n.modelValue)[p] || "";
|
|
3267
3267
|
}
|
|
3268
3268
|
function O(p, D) {
|
|
3269
3269
|
const y = {
|
|
3270
|
-
...
|
|
3270
|
+
...re(n.modelValue),
|
|
3271
3271
|
[p]: D
|
|
3272
3272
|
};
|
|
3273
3273
|
a("update:modelValue", y);
|
|
@@ -3301,7 +3301,7 @@ const Bs = Ze({
|
|
|
3301
3301
|
function me(p) {
|
|
3302
3302
|
return typeof p.points == "number" && Number.isFinite(p.points) ? `${p.text} (${p.points})` : p.text;
|
|
3303
3303
|
}
|
|
3304
|
-
const L = C(() => an(n.locale, n.messages)), ke = C(() => Gi(n.quiz.type, L.value, n.quiz.mode)), ce = C(() => n.quiz.type === "scale" && Array.isArray(n.quiz.items) ? n.quiz.items : []), ee = C(() => n.quiz.type === "scale" && Array.isArray(n.quiz.options) ? n.quiz.options : []), ye = C(() => n.quiz.type === "scale" &&
|
|
3304
|
+
const L = C(() => an(n.locale, n.messages)), ke = C(() => Gi(n.quiz.type, L.value, n.quiz.mode)), ce = C(() => n.quiz.type === "scale" && Array.isArray(n.quiz.items) ? n.quiz.items : []), ee = C(() => n.quiz.type === "scale" && Array.isArray(n.quiz.options) ? n.quiz.options : []), ye = C(() => n.quiz.type === "scale" && Lr(n.quiz, n.modelValue)), he = C(() => n.quiz.type !== "scale" || !ye.value ? null : Pr(n.quiz, n.modelValue)), ae = C(() => {
|
|
3305
3305
|
if (n.grade)
|
|
3306
3306
|
return n.grade;
|
|
3307
3307
|
if (n.quiz.type !== "scale")
|
|
@@ -3361,7 +3361,7 @@ const Bs = Ze({
|
|
|
3361
3361
|
h("div", Gs, [
|
|
3362
3362
|
h("span", Qs, $(Ve($t)("quiz", L.value)), 1),
|
|
3363
3363
|
h("span", Ys, $(e.quiz.id), 1),
|
|
3364
|
-
e.required ? (_(),
|
|
3364
|
+
e.required ? (_(), ht(Ct, {
|
|
3365
3365
|
key: 0,
|
|
3366
3366
|
label: L.value.common.required
|
|
3367
3367
|
}, null, 8, ["label"])) : ne("", !0),
|
|
@@ -3391,7 +3391,7 @@ const Bs = Ze({
|
|
|
3391
3391
|
key: `${e.quiz.id}-true-false-${y.key}`,
|
|
3392
3392
|
class: "aimd-quiz-recorder__option-frame"
|
|
3393
3393
|
}, [
|
|
3394
|
-
h("label",
|
|
3394
|
+
h("label", ro, [
|
|
3395
3395
|
Ht(h("input", {
|
|
3396
3396
|
"onUpdate:modelValue": D[0] || (D[0] = (F) => W.value = F),
|
|
3397
3397
|
type: "radio",
|
|
@@ -3400,7 +3400,7 @@ const Bs = Ze({
|
|
|
3400
3400
|
name: `${e.quiz.id}-true-false`,
|
|
3401
3401
|
value: y.key === "true",
|
|
3402
3402
|
disabled: e.readonly
|
|
3403
|
-
}, null, 8,
|
|
3403
|
+
}, null, 8, lo), [
|
|
3404
3404
|
[sn, W.value]
|
|
3405
3405
|
]),
|
|
3406
3406
|
h("span", so, [
|
|
@@ -3408,7 +3408,7 @@ const Bs = Ze({
|
|
|
3408
3408
|
ue(y.key, y.explanation) ? (_(), S("span", co, $(y.explanation), 1)) : ne("", !0)
|
|
3409
3409
|
])
|
|
3410
3410
|
]),
|
|
3411
|
-
te(y) ? (_(),
|
|
3411
|
+
te(y) ? (_(), ht(ja, {
|
|
3412
3412
|
key: 0,
|
|
3413
3413
|
"quiz-id": e.quiz.id,
|
|
3414
3414
|
"option-key": y.key,
|
|
@@ -3443,7 +3443,7 @@ const Bs = Ze({
|
|
|
3443
3443
|
ue(y.key, y.explanation) ? (_(), S("span", ho, $(y.explanation), 1)) : ne("", !0)
|
|
3444
3444
|
])
|
|
3445
3445
|
]),
|
|
3446
|
-
te(y) ? (_(),
|
|
3446
|
+
te(y) ? (_(), ht(ja, {
|
|
3447
3447
|
key: 0,
|
|
3448
3448
|
"quiz-id": e.quiz.id,
|
|
3449
3449
|
"option-key": y.key,
|
|
@@ -3468,14 +3468,14 @@ const Bs = Ze({
|
|
|
3468
3468
|
"data-rec-focus-key": `${e.focusKeyPrefix || `quiz:${e.quiz.id}`}:multiple:${y.key}`,
|
|
3469
3469
|
disabled: e.readonly,
|
|
3470
3470
|
checked: be(y.key),
|
|
3471
|
-
onChange: (F) =>
|
|
3471
|
+
onChange: (F) => le(y.key, F.target.checked)
|
|
3472
3472
|
}, null, 40, bo),
|
|
3473
3473
|
h("span", _o, [
|
|
3474
3474
|
h("span", ko, $(y.key) + ". " + $(y.text), 1),
|
|
3475
3475
|
ue(y.key, y.explanation) ? (_(), S("span", wo, $(y.explanation), 1)) : ne("", !0)
|
|
3476
3476
|
])
|
|
3477
3477
|
]),
|
|
3478
|
-
te(y) ? (_(),
|
|
3478
|
+
te(y) ? (_(), ht(ja, {
|
|
3479
3479
|
key: 0,
|
|
3480
3480
|
"quiz-id": e.quiz.id,
|
|
3481
3481
|
"option-key": y.key,
|
|
@@ -3599,7 +3599,7 @@ const Bs = Ze({
|
|
|
3599
3599
|
], 2)) : ne("", !0)
|
|
3600
3600
|
], 2));
|
|
3601
3601
|
}
|
|
3602
|
-
}), Oo = /* @__PURE__ */
|
|
3602
|
+
}), Oo = /* @__PURE__ */ ft(Bo, [["__scopeId", "data-v-b59dec34"]]), No = {}, Ko = {
|
|
3603
3603
|
class: "aimd-rec-assigner-field__icon",
|
|
3604
3604
|
width: "1em",
|
|
3605
3605
|
height: "1em",
|
|
@@ -3618,7 +3618,7 @@ function jo(e, t) {
|
|
|
3618
3618
|
], -1)
|
|
3619
3619
|
])]);
|
|
3620
3620
|
}
|
|
3621
|
-
const Ho = /* @__PURE__ */
|
|
3621
|
+
const Ho = /* @__PURE__ */ ft(No, [["render", jo]]), Uo = {
|
|
3622
3622
|
class: "aimd-rec-assigner-field__status-icon",
|
|
3623
3623
|
viewBox: "0 0 24 24",
|
|
3624
3624
|
width: "1em",
|
|
@@ -3697,14 +3697,14 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
3697
3697
|
emits: ["update:modelValue", "fields-change", "error", "validation", "field-change", "field-blur", "assigner-request", "assigner-cancel", "table-add-row", "table-remove-row"],
|
|
3698
3698
|
setup(e, { expose: t, emit: n }) {
|
|
3699
3699
|
const a = e, i = n, v = P([]), s = P(""), g = P(null), d = Wa(tn()), x = P({});
|
|
3700
|
-
let V = 0, j = 0,
|
|
3700
|
+
let V = 0, j = 0, X = !1, pe = !1, ve = Promise.resolve(), I = !1, z = null, q = null;
|
|
3701
3701
|
const W = P(Date.now());
|
|
3702
3702
|
let E = null;
|
|
3703
3703
|
const H = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map();
|
|
3704
|
-
let
|
|
3704
|
+
let le = !1;
|
|
3705
3705
|
const te = C(() => Qi(a.locale));
|
|
3706
3706
|
ui(Jn, C(() => a.fieldDisplay));
|
|
3707
|
-
const B = C(() => an(te.value, a.messages)), N = C(() => Ei(a.typePlugins)), ie = C(() => a.serverAssigners ?? a.assigners),
|
|
3707
|
+
const B = C(() => an(te.value, a.messages)), N = C(() => Ei(a.typePlugins)), ie = C(() => a.serverAssigners ?? a.assigners), re = C(() => a.runServerAssigner ?? a.assignerRunner), R = Ze({
|
|
3708
3708
|
name: "AimdRecorderInlineNodesOutlet",
|
|
3709
3709
|
props: {
|
|
3710
3710
|
nodes: {
|
|
@@ -3712,19 +3712,19 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
3712
3712
|
required: !0
|
|
3713
3713
|
}
|
|
3714
3714
|
},
|
|
3715
|
-
setup(
|
|
3716
|
-
return () =>
|
|
3715
|
+
setup(r) {
|
|
3716
|
+
return () => r.nodes;
|
|
3717
3717
|
}
|
|
3718
3718
|
});
|
|
3719
|
-
function O(
|
|
3720
|
-
const _e = y.value[o]?.validationError, xe = r
|
|
3719
|
+
function O(r, o, m, A, T) {
|
|
3720
|
+
const _e = y.value[o]?.validationError, xe = l(r === "var" ? "span" : "div", {
|
|
3721
3721
|
class: ["aimd-rec-field-host", _e ? "aimd-rec-field-host--invalid" : void 0],
|
|
3722
3722
|
"data-aimd-recorder-field": o
|
|
3723
3723
|
}, [
|
|
3724
3724
|
T,
|
|
3725
|
-
_e ?
|
|
3725
|
+
_e ? l("span", { class: "aimd-rec-validation-message", role: "alert" }, _e) : null
|
|
3726
3726
|
]);
|
|
3727
|
-
return
|
|
3727
|
+
return zr(r, o, m, A, xe, {
|
|
3728
3728
|
fieldAdapters: a.fieldAdapters,
|
|
3729
3729
|
wrapField: a.wrapField,
|
|
3730
3730
|
readonly: a.readonly,
|
|
@@ -3735,20 +3735,20 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
3735
3735
|
fieldState: y.value
|
|
3736
3736
|
});
|
|
3737
3737
|
}
|
|
3738
|
-
function Z(
|
|
3739
|
-
return
|
|
3738
|
+
function Z(r, o) {
|
|
3739
|
+
return qr(r, o);
|
|
3740
3740
|
}
|
|
3741
|
-
function G(
|
|
3742
|
-
if (
|
|
3741
|
+
function G(r, o) {
|
|
3742
|
+
if (r === "var")
|
|
3743
3743
|
return ye.value.find((m) => m.mode === "manual" && m.assigned_fields.includes(o));
|
|
3744
3744
|
}
|
|
3745
|
-
function Y(
|
|
3746
|
-
const m = p.value[o], A = Z(
|
|
3745
|
+
function Y(r, o) {
|
|
3746
|
+
const m = p.value[o], A = Z(r, o), T = Se.value[o] ?? M.value[A], _e = m?.assigner || T ? void 0 : G(r, A);
|
|
3747
3747
|
if (!m?.assigner && !_e && !T || a.readonly)
|
|
3748
3748
|
return null;
|
|
3749
|
-
const xe = y.value[o], Ee = T ? Et(T) : void 0, Ue = !!(Ee && H.has(Ee)), De = xe?.loading === !0 || Ue, Ae = !!(T &&
|
|
3749
|
+
const xe = y.value[o], Ee = T ? Et(T) : void 0, Ue = !!(Ee && H.has(Ee)), De = xe?.loading === !0 || Ue, Ae = !!(T && re.value && Ee && H.has(Ee)), J = De && !Ae || xe?.disabled === !0, tt = Ae ? B.value.assigner.cancel : De ? B.value.assigner.running : B.value.assigner.run, dt = _e?.id ?? T?.assignedField ?? A;
|
|
3750
3750
|
return {
|
|
3751
|
-
fieldType:
|
|
3751
|
+
fieldType: r,
|
|
3752
3752
|
fieldKey: o,
|
|
3753
3753
|
payloadFieldKey: A,
|
|
3754
3754
|
clientAssigner: _e,
|
|
@@ -3756,76 +3756,76 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
3756
3756
|
serverRunKey: Ee,
|
|
3757
3757
|
state: xe,
|
|
3758
3758
|
loading: De,
|
|
3759
|
-
disabled:
|
|
3759
|
+
disabled: J,
|
|
3760
3760
|
label: tt,
|
|
3761
|
-
titleTarget:
|
|
3761
|
+
titleTarget: dt
|
|
3762
3762
|
};
|
|
3763
3763
|
}
|
|
3764
|
-
function de(
|
|
3765
|
-
return
|
|
3764
|
+
function de(r, o) {
|
|
3765
|
+
return l("button", {
|
|
3766
3766
|
type: "button",
|
|
3767
3767
|
class: "aimd-rec-assigner-field__button",
|
|
3768
|
-
disabled:
|
|
3769
|
-
"aria-label": `${
|
|
3768
|
+
disabled: r.disabled,
|
|
3769
|
+
"aria-label": `${r.label}: ${r.titleTarget}`,
|
|
3770
3770
|
onClick: (m) => {
|
|
3771
|
-
if (m.preventDefault(), m.stopPropagation(),
|
|
3772
|
-
|
|
3773
|
-
section:
|
|
3774
|
-
fieldKey:
|
|
3771
|
+
if (m.preventDefault(), m.stopPropagation(), r.loading) {
|
|
3772
|
+
r.serverAssigner && re.value ? gt(r.serverRunKey ?? r.fieldKey) : i("assigner-cancel", {
|
|
3773
|
+
section: r.fieldType,
|
|
3774
|
+
fieldKey: r.payloadFieldKey,
|
|
3775
3775
|
value: o
|
|
3776
3776
|
});
|
|
3777
3777
|
return;
|
|
3778
3778
|
}
|
|
3779
|
-
if (
|
|
3780
|
-
|
|
3779
|
+
if (r.clientAssigner) {
|
|
3780
|
+
yt.triggerClientAssigner(r.clientAssigner.id);
|
|
3781
3781
|
return;
|
|
3782
3782
|
}
|
|
3783
|
-
if (
|
|
3784
|
-
|
|
3783
|
+
if (r.serverAssigner && re.value) {
|
|
3784
|
+
la(r.serverAssigner, r.fieldType, r.fieldKey);
|
|
3785
3785
|
return;
|
|
3786
3786
|
}
|
|
3787
3787
|
i("assigner-request", {
|
|
3788
|
-
section:
|
|
3789
|
-
fieldKey:
|
|
3788
|
+
section: r.fieldType,
|
|
3789
|
+
fieldKey: r.payloadFieldKey,
|
|
3790
3790
|
value: o
|
|
3791
3791
|
});
|
|
3792
3792
|
},
|
|
3793
|
-
title: `${B.value.assigner.run}: ${
|
|
3793
|
+
title: `${B.value.assigner.run}: ${r.titleTarget}`
|
|
3794
3794
|
}, [
|
|
3795
|
-
|
|
3796
|
-
|
|
3795
|
+
r.loading ? l("span", { class: "aimd-rec-assigner-field__spinner", "aria-hidden": "true" }) : l(Ho),
|
|
3796
|
+
l("span", { class: "aimd-rec-assigner-field__label" }, r.label)
|
|
3797
3797
|
]);
|
|
3798
3798
|
}
|
|
3799
|
-
function me(
|
|
3800
|
-
const o =
|
|
3801
|
-
return o === "loading" ?
|
|
3799
|
+
function me(r) {
|
|
3800
|
+
const o = r.loading ? "loading" : r.state?.error ? "error" : r.state && r.state.loading === !1 ? "done" : "idle";
|
|
3801
|
+
return o === "loading" ? l("span", {
|
|
3802
3802
|
class: ["aimd-rec-assigner-field__status", "aimd-rec-assigner-field__status--loading"],
|
|
3803
|
-
title:
|
|
3803
|
+
title: r.label
|
|
3804
3804
|
}, [
|
|
3805
|
-
|
|
3806
|
-
]) :
|
|
3805
|
+
l("span", { class: "aimd-rec-assigner-field__status-spinner", "aria-hidden": "true" })
|
|
3806
|
+
]) : l("span", {
|
|
3807
3807
|
class: ["aimd-rec-assigner-field__status", `aimd-rec-assigner-field__status--${o}`],
|
|
3808
|
-
title: o === "done" ?
|
|
3808
|
+
title: o === "done" ? r.titleTarget : r.state?.error || r.titleTarget
|
|
3809
3809
|
}, [
|
|
3810
|
-
|
|
3810
|
+
l(Yo, {
|
|
3811
3811
|
variant: o === "done" ? "done" : "idle"
|
|
3812
3812
|
})
|
|
3813
3813
|
]);
|
|
3814
3814
|
}
|
|
3815
|
-
function L(
|
|
3816
|
-
const T = Y(
|
|
3817
|
-
return T ? r
|
|
3815
|
+
function L(r, o, m, A) {
|
|
3816
|
+
const T = Y(r, o);
|
|
3817
|
+
return T ? l(r === "var" ? "span" : "div", {
|
|
3818
3818
|
class: [
|
|
3819
3819
|
"aimd-rec-assigner-field",
|
|
3820
|
-
`aimd-rec-assigner-field--${
|
|
3820
|
+
`aimd-rec-assigner-field--${r}`,
|
|
3821
3821
|
T.loading ? "aimd-rec-assigner-field--loading" : void 0,
|
|
3822
3822
|
T.state?.error ? "aimd-rec-assigner-field--error" : void 0
|
|
3823
3823
|
],
|
|
3824
3824
|
"data-rec-assigner-key": o
|
|
3825
3825
|
}, [
|
|
3826
3826
|
de(T, m),
|
|
3827
|
-
|
|
3828
|
-
T.state?.error ?
|
|
3827
|
+
l("span", { class: "aimd-rec-assigner-field__control" }, [A]),
|
|
3828
|
+
T.state?.error ? l("span", { class: "aimd-rec-assigner-field__error" }, T.state.error) : null
|
|
3829
3829
|
]) : A;
|
|
3830
3830
|
}
|
|
3831
3831
|
const ke = {
|
|
@@ -3844,71 +3844,71 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
3844
3844
|
cite: [],
|
|
3845
3845
|
fig: []
|
|
3846
3846
|
}, ce = P(ke), ee = P(), ye = P([]), he = P({}), ae = C(() => {
|
|
3847
|
-
const
|
|
3847
|
+
const r = {};
|
|
3848
3848
|
for (const o of ce.value.var_definitions ?? [])
|
|
3849
|
-
|
|
3849
|
+
r[o.id] = {
|
|
3850
3850
|
type: o.type,
|
|
3851
3851
|
kwargs: o.kwargs
|
|
3852
3852
|
};
|
|
3853
|
-
return
|
|
3854
|
-
}), Te = C(() =>
|
|
3855
|
-
function u(
|
|
3856
|
-
return
|
|
3853
|
+
return r;
|
|
3854
|
+
}), Te = C(() => kr(ie.value, ce.value)), Se = C(() => Object.fromEntries(Te.value.map((r) => [r.fieldKey, r]))), M = C(() => Object.fromEntries(Te.value.map((r) => [r.assignedField, r])));
|
|
3855
|
+
function u(r) {
|
|
3856
|
+
return r.map((o) => ({
|
|
3857
3857
|
label: String(o),
|
|
3858
3858
|
value: o
|
|
3859
3859
|
}));
|
|
3860
3860
|
}
|
|
3861
|
-
function b(
|
|
3862
|
-
|
|
3863
|
-
...
|
|
3861
|
+
function b(r, o, m) {
|
|
3862
|
+
r[o] = {
|
|
3863
|
+
...r[o],
|
|
3864
3864
|
...m,
|
|
3865
|
-
assigner: m.assigner ??
|
|
3866
|
-
disabled: m.disabled ??
|
|
3865
|
+
assigner: m.assigner ?? r[o]?.assigner,
|
|
3866
|
+
disabled: m.disabled ?? r[o]?.disabled
|
|
3867
3867
|
};
|
|
3868
3868
|
}
|
|
3869
3869
|
const se = C(() => {
|
|
3870
|
-
const
|
|
3870
|
+
const r = {};
|
|
3871
3871
|
for (const o of ce.value.var_definitions ?? []) {
|
|
3872
3872
|
const m = ba(o);
|
|
3873
|
-
m.length > 0 && b(
|
|
3873
|
+
m.length > 0 && b(r, `var:${o.id}`, {
|
|
3874
3874
|
enumOptions: u(m)
|
|
3875
3875
|
});
|
|
3876
3876
|
}
|
|
3877
3877
|
for (const o of ce.value.var_table ?? [])
|
|
3878
3878
|
for (const m of o.subvars ?? []) {
|
|
3879
3879
|
const A = ba(m);
|
|
3880
|
-
A.length > 0 && b(
|
|
3880
|
+
A.length > 0 && b(r, `var_table:${o.id}:${m.id}`, {
|
|
3881
3881
|
enumOptions: u(A)
|
|
3882
3882
|
});
|
|
3883
3883
|
}
|
|
3884
|
-
return
|
|
3884
|
+
return r;
|
|
3885
3885
|
}), ue = C(() => {
|
|
3886
|
-
const
|
|
3886
|
+
const r = {};
|
|
3887
3887
|
for (const o of Te.value)
|
|
3888
|
-
|
|
3888
|
+
r[o.fieldKey] = {
|
|
3889
3889
|
assigner: { mode: ua(o.mode) },
|
|
3890
|
-
disabled:
|
|
3890
|
+
disabled: wr(o.mode) || void 0
|
|
3891
3891
|
};
|
|
3892
|
-
return
|
|
3892
|
+
return r;
|
|
3893
3893
|
}), p = C(() => {
|
|
3894
|
-
const
|
|
3894
|
+
const r = {};
|
|
3895
3895
|
for (const [o, m] of Object.entries(se.value))
|
|
3896
|
-
b(
|
|
3896
|
+
b(r, o, m);
|
|
3897
3897
|
for (const [o, m] of Object.entries(ue.value))
|
|
3898
|
-
b(
|
|
3898
|
+
b(r, o, m);
|
|
3899
3899
|
for (const [o, m] of Object.entries(a.fieldMeta ?? {}))
|
|
3900
|
-
b(
|
|
3901
|
-
return
|
|
3902
|
-
}), D = C(() =>
|
|
3900
|
+
b(r, o, m);
|
|
3901
|
+
return r;
|
|
3902
|
+
}), D = C(() => Dr(ce.value, {
|
|
3903
3903
|
fieldMeta: p.value,
|
|
3904
3904
|
schema: a.validationSchema
|
|
3905
3905
|
})), y = C(() => {
|
|
3906
|
-
const
|
|
3906
|
+
const r = /* @__PURE__ */ new Set([
|
|
3907
3907
|
...Object.keys(he.value),
|
|
3908
3908
|
...Object.keys(x.value),
|
|
3909
3909
|
...Object.keys(a.fieldState ?? {})
|
|
3910
3910
|
]), o = {};
|
|
3911
|
-
for (const m of
|
|
3911
|
+
for (const m of r) {
|
|
3912
3912
|
const A = he.value[m], T = x.value[m], _e = a.fieldState?.[m];
|
|
3913
3913
|
o[m] = {
|
|
3914
3914
|
...A,
|
|
@@ -3920,7 +3920,7 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
3920
3920
|
};
|
|
3921
3921
|
}
|
|
3922
3922
|
return o;
|
|
3923
|
-
}), F = C(() => Ri(ce.value.step_hierarchy ?? [])), U = C(() => Ti(d.step, W.value)), Ce = C(() => F.value > 0 || U.value > 0), Me = C(() => _t(F.value, te.value)), We = C(() => _t(U.value, te.value)), w = C(() => Object.values(d.step).some((
|
|
3923
|
+
}), F = C(() => Ri(ce.value.step_hierarchy ?? [])), U = C(() => Ti(d.step, W.value)), Ce = C(() => F.value > 0 || U.value > 0), Me = C(() => _t(F.value, te.value)), We = C(() => _t(U.value, te.value)), w = C(() => Object.values(d.step).some((r) => xa(r))), K = Yl({
|
|
3924
3924
|
contentRoot: g,
|
|
3925
3925
|
defaultExpanded: a.searchDefaultExpanded,
|
|
3926
3926
|
fields: ce,
|
|
@@ -3933,166 +3933,166 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
3933
3933
|
W.value = Date.now();
|
|
3934
3934
|
}, 1e3));
|
|
3935
3935
|
}
|
|
3936
|
-
function Le(
|
|
3936
|
+
function Le(r) {
|
|
3937
3937
|
return {
|
|
3938
|
-
elapsed_ms:
|
|
3939
|
-
timer_started_at_ms:
|
|
3940
|
-
started_at_ms:
|
|
3941
|
-
ended_at_ms:
|
|
3938
|
+
elapsed_ms: r.elapsed_ms,
|
|
3939
|
+
timer_started_at_ms: r.timer_started_at_ms,
|
|
3940
|
+
started_at_ms: r.started_at_ms,
|
|
3941
|
+
ended_at_ms: r.ended_at_ms
|
|
3942
3942
|
};
|
|
3943
3943
|
}
|
|
3944
3944
|
function Q() {
|
|
3945
|
-
|
|
3945
|
+
X || i("update:modelValue", ra(d));
|
|
3946
3946
|
}
|
|
3947
3947
|
function Pe() {
|
|
3948
|
-
z = $
|
|
3948
|
+
z = $r(g.value) ?? z, q = ++j, !pe && (pe = !0, ve = Promise.resolve().then(async () => {
|
|
3949
3949
|
pe = !1;
|
|
3950
|
-
const
|
|
3951
|
-
z = null, q = null, await ta(void 0,
|
|
3950
|
+
const r = z, o = q ?? j;
|
|
3951
|
+
z = null, q = null, await ta(void 0, r, o);
|
|
3952
3952
|
}));
|
|
3953
3953
|
}
|
|
3954
|
-
const { preRenderer:
|
|
3955
|
-
function Dt(
|
|
3956
|
-
const m = Object.keys(
|
|
3957
|
-
return m.length === A.length && m.every((T) =>
|
|
3954
|
+
const { preRenderer: mt } = Ir(Pe);
|
|
3955
|
+
function Dt(r, o) {
|
|
3956
|
+
const m = Object.keys(r), A = Object.keys(o);
|
|
3957
|
+
return m.length === A.length && m.every((T) => r[T]?.validationError === o[T]?.validationError);
|
|
3958
3958
|
}
|
|
3959
|
-
function Ge(
|
|
3959
|
+
function Ge(r, o = r.validatedFieldKeys) {
|
|
3960
3960
|
const m = o?.length ? { ...x.value } : {};
|
|
3961
3961
|
if (o?.length)
|
|
3962
3962
|
for (const A of Object.keys(m))
|
|
3963
3963
|
o.some((T) => Aa(A, T)) && delete m[A];
|
|
3964
|
-
Object.assign(m,
|
|
3964
|
+
Object.assign(m, r.fieldState), !Dt(m, x.value) && (x.value = m, Pe());
|
|
3965
3965
|
}
|
|
3966
|
-
function Qt(
|
|
3966
|
+
function Qt(r) {
|
|
3967
3967
|
if (Object.keys(x.value).length === 0) return;
|
|
3968
|
-
if (!
|
|
3968
|
+
if (!r) {
|
|
3969
3969
|
x.value = {}, Pe();
|
|
3970
3970
|
return;
|
|
3971
3971
|
}
|
|
3972
3972
|
const o = { ...x.value };
|
|
3973
3973
|
for (const m of Object.keys(o))
|
|
3974
|
-
Aa(m,
|
|
3974
|
+
Aa(m, r) && delete o[m];
|
|
3975
3975
|
Dt(o, x.value) || (x.value = o, Pe());
|
|
3976
3976
|
}
|
|
3977
|
-
function Je(
|
|
3978
|
-
const o = Array.from(g.value?.querySelectorAll("[data-rec-focus-key]") ?? []).find((A) => A.dataset.recFocusKey ===
|
|
3977
|
+
function Je(r) {
|
|
3978
|
+
const o = Array.from(g.value?.querySelectorAll("[data-rec-focus-key]") ?? []).find((A) => A.dataset.recFocusKey === r);
|
|
3979
3979
|
if (o)
|
|
3980
3980
|
return o.scrollIntoView({ behavior: "smooth", block: "center" }), o.focus({ preventScroll: !0 }), !0;
|
|
3981
|
-
const m = Array.from(g.value?.querySelectorAll("[data-aimd-recorder-field]") ?? []).find((A) => A.dataset.aimdRecorderField ===
|
|
3981
|
+
const m = Array.from(g.value?.querySelectorAll("[data-aimd-recorder-field]") ?? []).find((A) => A.dataset.aimdRecorderField === r);
|
|
3982
3982
|
return m ? (m.scrollIntoView({ behavior: "smooth", block: "center" }), m.querySelector("input, textarea, select, button, [tabindex]")?.focus({ preventScroll: !0 }), !0) : !1;
|
|
3983
3983
|
}
|
|
3984
3984
|
function oe() {
|
|
3985
|
-
const
|
|
3986
|
-
return
|
|
3985
|
+
const r = Object.keys(x.value)[0];
|
|
3986
|
+
return r ? Je(r) : !1;
|
|
3987
3987
|
}
|
|
3988
|
-
async function ge(
|
|
3988
|
+
async function ge(r = {}) {
|
|
3989
3989
|
const o = Fa(ce.value, d, {
|
|
3990
3990
|
fieldMeta: p.value,
|
|
3991
3991
|
schema: a.validationSchema,
|
|
3992
3992
|
messages: B.value.validation
|
|
3993
3993
|
});
|
|
3994
|
-
return Ge(o), i("validation", o), !o.valid &&
|
|
3994
|
+
return Ge(o), i("validation", o), !o.valid && r.focus !== !1 && (await ve, oe()), o;
|
|
3995
3995
|
}
|
|
3996
|
-
async function qe(
|
|
3996
|
+
async function qe(r, o = {}) {
|
|
3997
3997
|
const m = Fa(ce.value, d, {
|
|
3998
3998
|
fieldMeta: p.value,
|
|
3999
3999
|
schema: a.validationSchema,
|
|
4000
|
-
fieldKeys: [
|
|
4000
|
+
fieldKeys: [r],
|
|
4001
4001
|
messages: B.value.validation
|
|
4002
4002
|
});
|
|
4003
|
-
if (Ge(m, [
|
|
4003
|
+
if (Ge(m, [r]), i("validation", m), !m.valid && o.focus === !0) {
|
|
4004
4004
|
await ve;
|
|
4005
4005
|
const A = Object.keys(m.fieldState)[0];
|
|
4006
4006
|
A && Je(A);
|
|
4007
4007
|
}
|
|
4008
4008
|
return m;
|
|
4009
4009
|
}
|
|
4010
|
-
function je(
|
|
4011
|
-
a.validationTriggers.includes(
|
|
4010
|
+
function je(r, o) {
|
|
4011
|
+
a.validationTriggers.includes(r) && qe(o, {});
|
|
4012
4012
|
}
|
|
4013
|
-
function He(
|
|
4014
|
-
const o =
|
|
4015
|
-
Q(), (
|
|
4013
|
+
function He(r) {
|
|
4014
|
+
const o = r?.runClientAssigners ? yt.applyCurrentClientAssigners() : !1;
|
|
4015
|
+
Q(), (r?.rebuild || o) && Pe(), Lt();
|
|
4016
4016
|
}
|
|
4017
|
-
function
|
|
4017
|
+
function vt(r, o) {
|
|
4018
4018
|
const m = { ...he.value };
|
|
4019
4019
|
let A = !1;
|
|
4020
|
-
for (const T of
|
|
4020
|
+
for (const T of r)
|
|
4021
4021
|
T && (m[T] = {
|
|
4022
4022
|
...m[T],
|
|
4023
4023
|
...o
|
|
4024
4024
|
}, A = !0);
|
|
4025
4025
|
A && (he.value = m, Pe());
|
|
4026
4026
|
}
|
|
4027
|
-
function
|
|
4028
|
-
H.get(
|
|
4027
|
+
function gt(r) {
|
|
4028
|
+
H.get(r)?.abort();
|
|
4029
4029
|
}
|
|
4030
|
-
function
|
|
4031
|
-
return
|
|
4030
|
+
function pt(r) {
|
|
4031
|
+
return r.startsWith("var_table:") ? "var_table" : r.startsWith("step:") ? "step" : r.startsWith("check:") ? "check" : "var";
|
|
4032
4032
|
}
|
|
4033
|
-
function Yt(
|
|
4034
|
-
const o = ua(
|
|
4033
|
+
function Yt(r) {
|
|
4034
|
+
const o = ua(r);
|
|
4035
4035
|
return o === "auto" || o === "auto_first" || o === "auto_force" || o === "auto_readonly";
|
|
4036
4036
|
}
|
|
4037
|
-
function Jt(
|
|
4038
|
-
if (
|
|
4039
|
-
const [, o, ...m] =
|
|
4037
|
+
function Jt(r) {
|
|
4038
|
+
if (r.startsWith("var_table:")) {
|
|
4039
|
+
const [, o, ...m] = r.split(":"), A = d.var[o];
|
|
4040
4040
|
if (!Array.isArray(A)) return A;
|
|
4041
4041
|
const T = m.join(":");
|
|
4042
4042
|
return T ? A.map((_e) => _e && typeof _e == "object" && !Array.isArray(_e) ? _e[T] : void 0) : A;
|
|
4043
4043
|
}
|
|
4044
|
-
return
|
|
4044
|
+
return r.startsWith("step:") ? d.step[r.slice(5)] : r.startsWith("check:") ? d.check[r.slice(6)] : d.var[r.startsWith("var:") ? r.slice(4) : r];
|
|
4045
4045
|
}
|
|
4046
|
-
function It(
|
|
4047
|
-
return
|
|
4046
|
+
function It(r) {
|
|
4047
|
+
return r !== void 0;
|
|
4048
4048
|
}
|
|
4049
|
-
function Ie(
|
|
4050
|
-
return
|
|
4049
|
+
function Ie(r, o) {
|
|
4050
|
+
return r.dependentFields.length === 0 ? !1 : r.dependentFields.every((m) => Object.prototype.hasOwnProperty.call(o, m) && It(o[m]));
|
|
4051
4051
|
}
|
|
4052
|
-
function Xe(
|
|
4053
|
-
if (ua(
|
|
4052
|
+
function Xe(r) {
|
|
4053
|
+
if (ua(r.mode) !== "auto_first")
|
|
4054
4054
|
return !0;
|
|
4055
|
-
const o = Jt(
|
|
4055
|
+
const o = Jt(r.fieldKey);
|
|
4056
4056
|
return o === void 0 || o === "";
|
|
4057
4057
|
}
|
|
4058
|
-
function Ft(
|
|
4058
|
+
function Ft(r) {
|
|
4059
4059
|
return JSON.stringify({
|
|
4060
|
-
mode: ua(
|
|
4061
|
-
dependentFields:
|
|
4062
|
-
assigner:
|
|
4060
|
+
mode: ua(r.mode),
|
|
4061
|
+
dependentFields: r.dependentFields,
|
|
4062
|
+
assigner: r.assigner
|
|
4063
4063
|
});
|
|
4064
4064
|
}
|
|
4065
|
-
function Et(
|
|
4066
|
-
return Ft(
|
|
4065
|
+
function Et(r) {
|
|
4066
|
+
return Ft(r);
|
|
4067
4067
|
}
|
|
4068
4068
|
function Lt() {
|
|
4069
|
-
|
|
4070
|
-
|
|
4069
|
+
le || (le = !0, Promise.resolve().then(() => {
|
|
4070
|
+
le = !1, Ma();
|
|
4071
4071
|
}));
|
|
4072
4072
|
}
|
|
4073
4073
|
async function Ma() {
|
|
4074
|
-
if (a.readonly || !
|
|
4074
|
+
if (a.readonly || !re.value)
|
|
4075
4075
|
return;
|
|
4076
|
-
const
|
|
4076
|
+
const r = /* @__PURE__ */ new Set();
|
|
4077
4077
|
for (const o of Te.value) {
|
|
4078
4078
|
if (!Yt(o.mode))
|
|
4079
4079
|
continue;
|
|
4080
4080
|
const m = Et(o);
|
|
4081
|
-
if (
|
|
4081
|
+
if (r.has(m) || (r.add(m), H.has(m)) || !Xe(o))
|
|
4082
4082
|
continue;
|
|
4083
4083
|
const A = yn(d, o);
|
|
4084
4084
|
if (!Ie(o, A))
|
|
4085
4085
|
continue;
|
|
4086
4086
|
const T = JSON.stringify(A);
|
|
4087
|
-
be.get(m) !== T && (be.set(m, T), await
|
|
4087
|
+
be.get(m) !== T && (be.set(m, T), await la(
|
|
4088
4088
|
o,
|
|
4089
|
-
|
|
4089
|
+
pt(o.fieldKey),
|
|
4090
4090
|
o.fieldKey
|
|
4091
4091
|
));
|
|
4092
4092
|
}
|
|
4093
4093
|
}
|
|
4094
|
-
function Pt(
|
|
4095
|
-
const o =
|
|
4094
|
+
function Pt(r) {
|
|
4095
|
+
const o = r.trim();
|
|
4096
4096
|
if (!o)
|
|
4097
4097
|
return "";
|
|
4098
4098
|
const m = M.value[o];
|
|
@@ -4104,8 +4104,8 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
return `var:${o}`;
|
|
4106
4106
|
}
|
|
4107
|
-
function ot(
|
|
4108
|
-
const m = Array.isArray(
|
|
4107
|
+
function ot(r, o) {
|
|
4108
|
+
const m = Array.isArray(r.assigner.assigned_fields) ? r.assigner.assigned_fields : Array.isArray(r.assigner.assignedFields) ? r.assigner.assignedFields : [], A = /* @__PURE__ */ new Set([o]);
|
|
4109
4109
|
for (const T of m) {
|
|
4110
4110
|
if (typeof T != "string") continue;
|
|
4111
4111
|
const _e = Pt(T);
|
|
@@ -4113,8 +4113,8 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4113
4113
|
}
|
|
4114
4114
|
return [...A];
|
|
4115
4115
|
}
|
|
4116
|
-
function za(
|
|
4117
|
-
const m = Et(
|
|
4116
|
+
function za(r, o) {
|
|
4117
|
+
const m = Et(r), A = new Set(ot(r, o));
|
|
4118
4118
|
for (const T of Te.value)
|
|
4119
4119
|
if (Et(T) === m) {
|
|
4120
4120
|
A.add(T.fieldKey);
|
|
@@ -4123,62 +4123,62 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4123
4123
|
}
|
|
4124
4124
|
return [...A];
|
|
4125
4125
|
}
|
|
4126
|
-
function qa(
|
|
4126
|
+
function qa(r, o) {
|
|
4127
4127
|
const m = /* @__PURE__ */ new Set([o]);
|
|
4128
|
-
for (const A of Object.keys(
|
|
4128
|
+
for (const A of Object.keys(r)) {
|
|
4129
4129
|
const T = Pt(A);
|
|
4130
4130
|
T && m.add(T);
|
|
4131
4131
|
}
|
|
4132
4132
|
return [...m];
|
|
4133
4133
|
}
|
|
4134
|
-
async function
|
|
4135
|
-
const A =
|
|
4134
|
+
async function la(r, o, m) {
|
|
4135
|
+
const A = re.value;
|
|
4136
4136
|
if (!A) return;
|
|
4137
|
-
const T = Et(
|
|
4137
|
+
const T = Et(r), _e = za(r, m);
|
|
4138
4138
|
H.get(T)?.abort();
|
|
4139
4139
|
const xe = new AbortController();
|
|
4140
|
-
H.set(T, xe),
|
|
4140
|
+
H.set(T, xe), vt(_e, { loading: !0, error: void 0 });
|
|
4141
4141
|
try {
|
|
4142
4142
|
const Ee = await A({
|
|
4143
4143
|
section: o,
|
|
4144
4144
|
fieldKey: m,
|
|
4145
|
-
assignedField:
|
|
4146
|
-
dependentData: yn(d,
|
|
4147
|
-
record:
|
|
4148
|
-
assigner:
|
|
4145
|
+
assignedField: r.assignedField,
|
|
4146
|
+
dependentData: yn(d, r),
|
|
4147
|
+
record: ra(d),
|
|
4148
|
+
assigner: r.assigner,
|
|
4149
4149
|
signal: xe.signal
|
|
4150
|
-
}), Ue =
|
|
4150
|
+
}), Ue = xr(Ee);
|
|
4151
4151
|
if (Ue)
|
|
4152
4152
|
throw new Error(Ue);
|
|
4153
|
-
const De =
|
|
4154
|
-
Object.keys(De).length > 0 ? (
|
|
4153
|
+
const De = Ar(Ee), Ae = qa(De, m), J = [.../* @__PURE__ */ new Set([..._e, ...Ae])];
|
|
4154
|
+
Object.keys(De).length > 0 ? (Fr(d, De), He({ rebuild: !0, runClientAssigners: !0 })) : Q(), H.get(T) === xe && vt(J, { loading: !1, error: void 0 });
|
|
4155
4155
|
} catch (Ee) {
|
|
4156
4156
|
if (xe.signal.aborted) {
|
|
4157
|
-
H.get(T) === xe &&
|
|
4157
|
+
H.get(T) === xe && vt(_e, { loading: !1, error: void 0 });
|
|
4158
4158
|
return;
|
|
4159
4159
|
}
|
|
4160
4160
|
const Ue = Ee instanceof Error ? Ee.message : String(Ee);
|
|
4161
|
-
|
|
4161
|
+
vt(_e, { loading: !1, error: Ue });
|
|
4162
4162
|
} finally {
|
|
4163
4163
|
H.get(T) === xe && H.delete(T);
|
|
4164
4164
|
}
|
|
4165
4165
|
}
|
|
4166
|
-
const
|
|
4166
|
+
const yt = Er({
|
|
4167
4167
|
readonly: () => a.readonly,
|
|
4168
4168
|
clientAssigners: ye,
|
|
4169
4169
|
fieldDefinitions: () => ae.value,
|
|
4170
4170
|
localRecord: d,
|
|
4171
|
-
onError: (
|
|
4171
|
+
onError: (r) => i("error", r),
|
|
4172
4172
|
emitRecordUpdate: Q,
|
|
4173
4173
|
scheduleInlineRebuild: Pe
|
|
4174
|
-
}),
|
|
4174
|
+
}), lt = Rr({
|
|
4175
4175
|
readonly: () => a.readonly,
|
|
4176
4176
|
localRecord: d,
|
|
4177
4177
|
markRecordChanged: He,
|
|
4178
4178
|
scheduleInlineRebuild: Pe,
|
|
4179
|
-
emitTableAddRow: (
|
|
4180
|
-
emitTableRemoveRow: (
|
|
4181
|
-
}), Ke =
|
|
4179
|
+
emitTableAddRow: (r) => i("table-add-row", r),
|
|
4180
|
+
emitTableRemoveRow: (r) => i("table-remove-row", r)
|
|
4181
|
+
}), Ke = Sr({
|
|
4182
4182
|
readonly: () => a.readonly,
|
|
4183
4183
|
currentUserName: () => a.currentUserName,
|
|
4184
4184
|
now: () => a.now,
|
|
@@ -4186,51 +4186,51 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4186
4186
|
fieldState: () => y.value,
|
|
4187
4187
|
typePlugins: () => N.value,
|
|
4188
4188
|
wrapField: () => a.wrapField
|
|
4189
|
-
}), et =
|
|
4189
|
+
}), et = Cr({
|
|
4190
4190
|
fields: () => ce.value,
|
|
4191
4191
|
record: d,
|
|
4192
4192
|
providers: () => a.collectorProviders,
|
|
4193
4193
|
requestPermission: () => a.requestCollectorPermission,
|
|
4194
4194
|
actorId: () => a.collectorActorId,
|
|
4195
|
-
onChange: (
|
|
4196
|
-
d.var[
|
|
4195
|
+
onChange: (r, o) => {
|
|
4196
|
+
d.var[r] = o, He({ rebuild: !0, runClientAssigners: !0 }), i("field-change", { section: "var", fieldKey: r, value: o });
|
|
4197
4197
|
}
|
|
4198
4198
|
});
|
|
4199
|
-
function Xt(
|
|
4200
|
-
const o =
|
|
4199
|
+
function Xt(r) {
|
|
4200
|
+
const o = r.id, m = `var:${o}`, A = D.value.has(m), T = p.value[m], _e = ba(r.definition), xe = _e.length > 0 && !T?.enumOptions ? {
|
|
4201
4201
|
...T ?? {},
|
|
4202
4202
|
enumOptions: u(_e)
|
|
4203
4203
|
} : T;
|
|
4204
4204
|
if (a.customRenderers?.var) {
|
|
4205
|
-
const Be = a.customRenderers.var(
|
|
4205
|
+
const Be = a.customRenderers.var(r, {}, []);
|
|
4206
4206
|
if (Be) {
|
|
4207
4207
|
const Re = L("var", m, d.var[o], Be);
|
|
4208
|
-
return O("var", m,
|
|
4208
|
+
return O("var", m, r, d.var[o], Re);
|
|
4209
4209
|
}
|
|
4210
4210
|
}
|
|
4211
|
-
const Ee =
|
|
4211
|
+
const Ee = r.definition?.type || "str", Ue = Ke.getTypePlugin(m, Ee), De = Ni(Ee, {
|
|
4212
4212
|
inputType: xe?.inputType,
|
|
4213
4213
|
codeLanguage: xe?.codeLanguage,
|
|
4214
|
-
kwargs:
|
|
4214
|
+
kwargs: r.definition?.kwargs,
|
|
4215
4215
|
fieldMeta: xe,
|
|
4216
4216
|
typePlugin: Ue
|
|
4217
|
-
}), Ae = xe?.placeholder ?? Ke.getVarPlaceholder(
|
|
4218
|
-
function
|
|
4217
|
+
}), Ae = xe?.placeholder ?? Ke.getVarPlaceholder(r, xe);
|
|
4218
|
+
function J(Be) {
|
|
4219
4219
|
Ke.clearVarInputDisplayOverride(o), d.var[o] = Be, He({ rebuild: De === "file", runClientAssigners: !0 }), i("field-change", { section: "var", fieldKey: o, value: Be }), je("change", m);
|
|
4220
4220
|
}
|
|
4221
4221
|
function tt() {
|
|
4222
4222
|
i("field-blur", { section: "var", fieldKey: o }), je("blur", m);
|
|
4223
4223
|
}
|
|
4224
4224
|
if (!(o in d.var)) {
|
|
4225
|
-
d.var[o] = Ke.getVarInitialValue(
|
|
4226
|
-
const Be = Ke.getVarInitialDisplayOverride(
|
|
4225
|
+
d.var[o] = Ke.getVarInitialValue(r, Ee, m);
|
|
4226
|
+
const Be = Ke.getVarInitialDisplayOverride(r, Ee, m);
|
|
4227
4227
|
Be && Ke.setVarInputDisplayOverride(o, Be), I = !0;
|
|
4228
4228
|
}
|
|
4229
|
-
const
|
|
4230
|
-
if (
|
|
4231
|
-
const Be = Ke.isFieldDisabled(m), Re =
|
|
4232
|
-
node:
|
|
4233
|
-
binding:
|
|
4229
|
+
const dt = et.resolveBinding(o);
|
|
4230
|
+
if (dt) {
|
|
4231
|
+
const Be = Ke.isFieldDisabled(m), Re = l(Ul, {
|
|
4232
|
+
node: r,
|
|
4233
|
+
binding: dt,
|
|
4234
4234
|
value: d.var[o],
|
|
4235
4235
|
state: et.getState(o),
|
|
4236
4236
|
disabled: Be,
|
|
@@ -4251,28 +4251,28 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4251
4251
|
},
|
|
4252
4252
|
onBlur: tt
|
|
4253
4253
|
});
|
|
4254
|
-
return O("var", m,
|
|
4254
|
+
return O("var", m, r, d.var[o], Re);
|
|
4255
4255
|
}
|
|
4256
4256
|
if (De === "datetime") {
|
|
4257
4257
|
const Be = Ki(d.var[o]);
|
|
4258
4258
|
Be !== d.var[o] && (d.var[o] = Be, I = !0);
|
|
4259
4259
|
}
|
|
4260
|
-
const
|
|
4261
|
-
|
|
4260
|
+
const ct = Ke.normalizeVarValue(
|
|
4261
|
+
r,
|
|
4262
4262
|
Ee,
|
|
4263
4263
|
m,
|
|
4264
4264
|
d.var[o],
|
|
4265
4265
|
De
|
|
4266
4266
|
);
|
|
4267
|
-
JSON.stringify(
|
|
4267
|
+
JSON.stringify(ct) !== JSON.stringify(d.var[o]) && (d.var[o] = ct, I = !0);
|
|
4268
4268
|
const at = Ke.getVarDisplayValue(
|
|
4269
4269
|
o,
|
|
4270
|
-
|
|
4270
|
+
r,
|
|
4271
4271
|
Ee,
|
|
4272
4272
|
d.var[o],
|
|
4273
4273
|
De,
|
|
4274
4274
|
m
|
|
4275
|
-
),
|
|
4275
|
+
), ut = Ke.isFieldDisabled(m), c = [
|
|
4276
4276
|
...Ke.fieldStateClasses(m),
|
|
4277
4277
|
...K.getFieldClasses(m)
|
|
4278
4278
|
], f = !!xe?.enumOptions?.length || ["number", "date", "datetime", "time", "text", "textarea", "scalar-list", "entity-ref", "resource-ref", "checkbox", "boolean-select", "file", "code"].includes(De), k = Y("var", m), we = f ? k : null;
|
|
@@ -4281,7 +4281,7 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4281
4281
|
type: Ee,
|
|
4282
4282
|
normalizedType: pa(Ee),
|
|
4283
4283
|
fieldKey: m,
|
|
4284
|
-
node:
|
|
4284
|
+
node: r,
|
|
4285
4285
|
value: d.var[o],
|
|
4286
4286
|
inputKind: De,
|
|
4287
4287
|
fieldMeta: xe,
|
|
@@ -4289,7 +4289,7 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4289
4289
|
currentUserName: a.currentUserName,
|
|
4290
4290
|
now: a.now,
|
|
4291
4291
|
readonly: a.readonly,
|
|
4292
|
-
disabled:
|
|
4292
|
+
disabled: ut,
|
|
4293
4293
|
locale: te.value,
|
|
4294
4294
|
messages: B.value,
|
|
4295
4295
|
record: d,
|
|
@@ -4305,18 +4305,18 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4305
4305
|
resolveFileInfo: a.resolveFileInfo,
|
|
4306
4306
|
entityResolvers: a.entityResolvers,
|
|
4307
4307
|
resourceResolvers: a.resourceResolvers,
|
|
4308
|
-
emitChange:
|
|
4308
|
+
emitChange: J,
|
|
4309
4309
|
emitBlur: tt
|
|
4310
4310
|
});
|
|
4311
4311
|
if (nt) {
|
|
4312
|
-
const
|
|
4313
|
-
return O("var", m,
|
|
4312
|
+
const ri = Re ? nt : L("var", m, d.var[o], nt);
|
|
4313
|
+
return O("var", m, r, d.var[o], ri);
|
|
4314
4314
|
}
|
|
4315
4315
|
}
|
|
4316
|
-
const ze =
|
|
4317
|
-
node:
|
|
4316
|
+
const ze = l(ws, {
|
|
4317
|
+
node: r,
|
|
4318
4318
|
value: d.var[o],
|
|
4319
|
-
disabled:
|
|
4319
|
+
disabled: ut,
|
|
4320
4320
|
extraClasses: c,
|
|
4321
4321
|
messages: B.value,
|
|
4322
4322
|
fieldMeta: xe,
|
|
@@ -4335,159 +4335,161 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4335
4335
|
resourceResolvers: a.resourceResolvers,
|
|
4336
4336
|
record: d,
|
|
4337
4337
|
onChange: (Be) => {
|
|
4338
|
-
|
|
4338
|
+
J(Be.value);
|
|
4339
4339
|
},
|
|
4340
4340
|
onBlur: () => tt()
|
|
4341
4341
|
}), it = we ? ze : L("var", m, d.var[o], ze);
|
|
4342
|
-
return O("var", m,
|
|
4342
|
+
return O("var", m, r, d.var[o], it);
|
|
4343
4343
|
}
|
|
4344
|
-
function sa(
|
|
4345
|
-
const o =
|
|
4344
|
+
function sa(r) {
|
|
4345
|
+
const o = r.id, m = `var_table:${o}`, A = Mr(r), T = lt.ensureVarTableRows(o, A), _e = Ke.isFieldDisabled(m), xe = A.filter((J) => !!p.value[`var_table:${o}:${J}`]?.disabled), Ee = Y("var_table", m), Ue = [
|
|
4346
4346
|
...Ke.fieldStateClasses(m),
|
|
4347
4347
|
...K.getFieldClasses(m)
|
|
4348
|
-
], De =
|
|
4349
|
-
node:
|
|
4348
|
+
], De = l(xs, {
|
|
4349
|
+
node: r,
|
|
4350
4350
|
rows: T,
|
|
4351
4351
|
columns: A,
|
|
4352
4352
|
disabled: _e,
|
|
4353
4353
|
readonly: a.readonly,
|
|
4354
4354
|
extraClasses: Ue,
|
|
4355
|
-
settlingRowKey:
|
|
4355
|
+
settlingRowKey: lt.getSettlingVarTableRowKey(),
|
|
4356
4356
|
messages: B.value,
|
|
4357
4357
|
fieldMeta: p.value,
|
|
4358
4358
|
required: D.value.has(m),
|
|
4359
|
-
requiredColumns: A.filter((
|
|
4359
|
+
requiredColumns: A.filter((J) => D.value.has(`${m}:${J}`)),
|
|
4360
4360
|
fieldState: y.value,
|
|
4361
4361
|
assignerControl: Ee ? de(Ee, T) : void 0,
|
|
4362
4362
|
assignerStatus: Ee ? me(Ee) : void 0,
|
|
4363
4363
|
assignerError: Ee?.state?.error,
|
|
4364
|
-
onCellInput: (
|
|
4365
|
-
|
|
4366
|
-
|
|
4364
|
+
onCellInput: (J) => {
|
|
4365
|
+
const tt = d.var[J.tableName];
|
|
4366
|
+
if (!Array.isArray(tt) || !tt[J.rowIndex]) return;
|
|
4367
|
+
tt[J.rowIndex][J.column] = J.value, He({ runClientAssigners: !0 });
|
|
4368
|
+
const dt = Pa(J.tableName, J.rowIndex, J.column);
|
|
4367
4369
|
i("field-change", {
|
|
4368
4370
|
section: "var_table",
|
|
4369
|
-
fieldKey: `${
|
|
4370
|
-
value:
|
|
4371
|
-
rowIndex:
|
|
4372
|
-
column:
|
|
4373
|
-
}), je("change",
|
|
4371
|
+
fieldKey: `${J.tableName}:${J.column}`,
|
|
4372
|
+
value: J.value,
|
|
4373
|
+
rowIndex: J.rowIndex,
|
|
4374
|
+
column: J.column
|
|
4375
|
+
}), je("change", dt);
|
|
4374
4376
|
},
|
|
4375
|
-
onCellPaste: (
|
|
4376
|
-
const tt = A.indexOf(
|
|
4377
|
+
onCellPaste: (J) => {
|
|
4378
|
+
const tt = A.indexOf(J.column);
|
|
4377
4379
|
if (tt < 0)
|
|
4378
4380
|
return;
|
|
4379
|
-
const
|
|
4381
|
+
const dt = Bi(J.text), ct = Oi(
|
|
4380
4382
|
T,
|
|
4381
4383
|
A,
|
|
4382
|
-
|
|
4384
|
+
J.rowIndex,
|
|
4383
4385
|
tt,
|
|
4384
|
-
|
|
4386
|
+
dt,
|
|
4385
4387
|
{ disabledColumns: xe }
|
|
4386
4388
|
);
|
|
4387
|
-
if (!(
|
|
4389
|
+
if (!(ct.rowsAdded === 0 && ct.changedCells.length === 0)) {
|
|
4388
4390
|
He({ rebuild: !0, runClientAssigners: !0 });
|
|
4389
|
-
for (let at = 0; at <
|
|
4390
|
-
i("table-add-row", { tableName:
|
|
4391
|
-
for (const at of
|
|
4392
|
-
const
|
|
4391
|
+
for (let at = 0; at < ct.rowsAdded; at += 1)
|
|
4392
|
+
i("table-add-row", { tableName: J.tableName, columns: A });
|
|
4393
|
+
for (const at of ct.changedCells) {
|
|
4394
|
+
const ut = Pa(J.tableName, at.rowIndex, at.column);
|
|
4393
4395
|
i("field-change", {
|
|
4394
4396
|
section: "var_table",
|
|
4395
|
-
fieldKey: `${
|
|
4397
|
+
fieldKey: `${J.tableName}:${at.column}`,
|
|
4396
4398
|
value: at.value,
|
|
4397
4399
|
rowIndex: at.rowIndex,
|
|
4398
4400
|
column: at.column
|
|
4399
|
-
}), je("change",
|
|
4401
|
+
}), je("change", ut);
|
|
4400
4402
|
}
|
|
4401
4403
|
}
|
|
4402
4404
|
},
|
|
4403
|
-
onCellBlur: (
|
|
4405
|
+
onCellBlur: (J) => {
|
|
4404
4406
|
i("field-blur", {
|
|
4405
4407
|
section: "var_table",
|
|
4406
|
-
fieldKey: `${
|
|
4407
|
-
rowIndex:
|
|
4408
|
-
column:
|
|
4409
|
-
}), je("blur", Pa(
|
|
4408
|
+
fieldKey: `${J.tableName}:${J.column}`,
|
|
4409
|
+
rowIndex: J.rowIndex,
|
|
4410
|
+
column: J.column
|
|
4411
|
+
}), je("blur", Pa(J.tableName, J.rowIndex, J.column));
|
|
4410
4412
|
},
|
|
4411
|
-
onAddRow: (
|
|
4412
|
-
|
|
4413
|
+
onAddRow: (J) => {
|
|
4414
|
+
lt.addVarTableRow(J.tableName, J.columns), je("change", `var_table:${J.tableName}`);
|
|
4413
4415
|
},
|
|
4414
|
-
onRemoveRow: (
|
|
4415
|
-
|
|
4416
|
+
onRemoveRow: (J) => {
|
|
4417
|
+
lt.removeVarTableRow(J.tableName, J.rowIndex, J.columns), je("change", `var_table:${J.tableName}`);
|
|
4416
4418
|
},
|
|
4417
|
-
onDragStart: (
|
|
4418
|
-
|
|
4419
|
+
onDragStart: (J) => {
|
|
4420
|
+
lt.startVarTableRowDrag(J.tableName, J.rowIndex, J.event);
|
|
4419
4421
|
},
|
|
4420
|
-
onDragOver: (
|
|
4421
|
-
|
|
4422
|
+
onDragOver: (J) => {
|
|
4423
|
+
lt.handleVarTableRowDragOver(J.tableName, J.rowIndex, J.event);
|
|
4422
4424
|
},
|
|
4423
|
-
onDragDrop: (
|
|
4424
|
-
|
|
4425
|
+
onDragDrop: (J) => {
|
|
4426
|
+
lt.handleVarTableRowDrop(J.tableName, J.rowIndex, J.columns, J.event), je("change", `var_table:${J.tableName}`);
|
|
4425
4427
|
},
|
|
4426
4428
|
onDragEnd: () => {
|
|
4427
|
-
|
|
4429
|
+
lt.endVarTableRowDrag();
|
|
4428
4430
|
}
|
|
4429
4431
|
}), Ae = Ee ? De : L("var_table", m, T, De);
|
|
4430
|
-
return O("var_table", m,
|
|
4432
|
+
return O("var_table", m, r, T, Ae);
|
|
4431
4433
|
}
|
|
4432
|
-
function Zt(
|
|
4433
|
-
if (!
|
|
4434
|
+
function Zt(r) {
|
|
4435
|
+
if (!r || typeof r != "object")
|
|
4434
4436
|
return !1;
|
|
4435
|
-
const o =
|
|
4437
|
+
const o = r.props;
|
|
4436
4438
|
if (!o)
|
|
4437
4439
|
return !1;
|
|
4438
4440
|
const m = ea(o.class);
|
|
4439
4441
|
return o["data-aimd-step-body"] === "true" || o["data-aimd-step-body"] === !0 || o.dataAimdStepBody === "true" || o.dataAimdStepBody === !0 || m.some((A) => typeof A == "string" && A.includes("aimd-step-body"));
|
|
4440
4442
|
}
|
|
4441
|
-
function Bt(
|
|
4442
|
-
if (
|
|
4443
|
+
function Bt(r = []) {
|
|
4444
|
+
if (r.length === 0)
|
|
4443
4445
|
return [];
|
|
4444
|
-
const o =
|
|
4446
|
+
const o = r.find((A) => Zt(A));
|
|
4445
4447
|
if (!o || typeof o != "object" || o === null)
|
|
4446
|
-
return
|
|
4448
|
+
return r;
|
|
4447
4449
|
const m = o.children;
|
|
4448
4450
|
return Array.isArray(m) ? m : m == null ? [] : [m];
|
|
4449
4451
|
}
|
|
4450
|
-
function Va(
|
|
4451
|
-
if (!
|
|
4452
|
+
function Va(r) {
|
|
4453
|
+
if (!r || typeof r != "object" || !("props" in r))
|
|
4452
4454
|
return !1;
|
|
4453
|
-
const o =
|
|
4455
|
+
const o = r.props;
|
|
4454
4456
|
if (!o)
|
|
4455
4457
|
return !1;
|
|
4456
4458
|
const m = o.class, A = Array.isArray(m) ? m : typeof m == "string" ? [m] : [];
|
|
4457
4459
|
return o["data-aimd-check-body"] === "true" || o["data-aimd-check-body"] === !0 || o.dataAimdCheckBody === "true" || o.dataAimdCheckBody === !0 || A.some((T) => typeof T == "string" && T.includes("aimd-check-body"));
|
|
4458
4460
|
}
|
|
4459
|
-
function ea(
|
|
4460
|
-
return Array.isArray(
|
|
4461
|
+
function ea(r) {
|
|
4462
|
+
return Array.isArray(r) ? r.flatMap((o) => ea(o)) : typeof r == "string" ? r.split(/\s+/).filter(Boolean) : r && typeof r == "object" ? Object.entries(r).filter(([, o]) => !!o).map(([o]) => o) : [];
|
|
4461
4463
|
}
|
|
4462
|
-
function oa(
|
|
4463
|
-
if (!
|
|
4464
|
+
function oa(r) {
|
|
4465
|
+
if (!r || typeof r != "object" || !("type" in r) || !("props" in r))
|
|
4464
4466
|
return !1;
|
|
4465
|
-
const o =
|
|
4467
|
+
const o = r, m = o.props;
|
|
4466
4468
|
if (!m)
|
|
4467
4469
|
return !1;
|
|
4468
4470
|
const A = ea(m.class);
|
|
4469
4471
|
return o.type === "input" && m.type === "checkbox" && A.includes("aimd-checkbox") || o.type === "span" && (A.includes("aimd-field__label") || A.includes("aimd-field__scope"));
|
|
4470
4472
|
}
|
|
4471
|
-
function Rt(
|
|
4472
|
-
if (
|
|
4473
|
+
function Rt(r = []) {
|
|
4474
|
+
if (r.length === 0)
|
|
4473
4475
|
return [];
|
|
4474
|
-
const o =
|
|
4476
|
+
const o = r.find((A) => Va(A));
|
|
4475
4477
|
if (o && typeof o == "object" && o !== null) {
|
|
4476
4478
|
const A = o.children;
|
|
4477
4479
|
return Array.isArray(A) ? A : A == null ? [] : [A];
|
|
4478
4480
|
}
|
|
4479
|
-
const m =
|
|
4480
|
-
return m.length !==
|
|
4481
|
+
const m = r.filter((A) => !oa(A));
|
|
4482
|
+
return m.length !== r.length ? m : r;
|
|
4481
4483
|
}
|
|
4482
4484
|
const Ot = P({});
|
|
4483
|
-
function Da(
|
|
4484
|
-
const m =
|
|
4485
|
+
function Da(r, o = []) {
|
|
4486
|
+
const m = r.id, A = `step:${m}`;
|
|
4485
4487
|
m in d.step || (d.step[m] = Vi(), I = !0);
|
|
4486
4488
|
const T = d.step[m], _e = Ke.isFieldDisabled(A), xe = [
|
|
4487
4489
|
...Ke.fieldStateClasses(A),
|
|
4488
4490
|
...K.getFieldClasses(A)
|
|
4489
|
-
], Ee = Bt(o), Ue =
|
|
4490
|
-
node: { ...
|
|
4491
|
+
], Ee = Bt(o), Ue = l(Bs, {
|
|
4492
|
+
node: { ...r, step: Ot.value[m] ?? r.step },
|
|
4491
4493
|
state: T,
|
|
4492
4494
|
bodyNodes: Ee,
|
|
4493
4495
|
disabled: _e,
|
|
@@ -4497,8 +4499,8 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4497
4499
|
messages: B.value,
|
|
4498
4500
|
required: D.value.has(A),
|
|
4499
4501
|
onCheckChange: (Ae) => {
|
|
4500
|
-
const
|
|
4501
|
-
Pi(T, Ae.value, Date.now()), W.value = Date.now(), He(), i("field-change", { section: "step", fieldKey: Ae.id, value: Ae.value }), je("change", A),
|
|
4502
|
+
const J = xa(T);
|
|
4503
|
+
Pi(T, Ae.value, Date.now()), W.value = Date.now(), He(), i("field-change", { section: "step", fieldKey: Ae.id, value: Ae.value }), je("change", A), J && i("field-change", { section: "step", fieldKey: `${Ae.id}:timer`, value: Le(T) });
|
|
4502
4504
|
},
|
|
4503
4505
|
onAnnotationChange: (Ae) => {
|
|
4504
4506
|
T.annotation = Ae.value, He(), i("field-change", { section: "step", fieldKey: `${Ae.id}:annotation`, value: Ae.value });
|
|
@@ -4516,16 +4518,16 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4516
4518
|
i("field-blur", { section: "step", fieldKey: Ae.id }), je("blur", A);
|
|
4517
4519
|
}
|
|
4518
4520
|
}), De = L("step", A, T, Ue);
|
|
4519
|
-
return O("step", A,
|
|
4521
|
+
return O("step", A, r, T, De);
|
|
4520
4522
|
}
|
|
4521
|
-
function da(
|
|
4522
|
-
const m =
|
|
4523
|
+
function da(r, o = []) {
|
|
4524
|
+
const m = r.id, A = `check:${m}`;
|
|
4523
4525
|
m in d.check || (d.check[m] = qi(), I = !0);
|
|
4524
4526
|
const T = d.check[m], _e = Ke.isFieldDisabled(A), xe = [
|
|
4525
4527
|
...Ke.fieldStateClasses(A),
|
|
4526
4528
|
...K.getFieldClasses(A)
|
|
4527
|
-
], Ee = Rt(o), Ue =
|
|
4528
|
-
node:
|
|
4529
|
+
], Ee = Rt(o), Ue = l(Os, {
|
|
4530
|
+
node: r,
|
|
4529
4531
|
state: T,
|
|
4530
4532
|
bodyNodes: Ee,
|
|
4531
4533
|
disabled: _e,
|
|
@@ -4543,28 +4545,28 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4543
4545
|
i("field-blur", { section: "check", fieldKey: Ae.id }), je("blur", A);
|
|
4544
4546
|
}
|
|
4545
4547
|
}), De = L("check", A, T, Ue);
|
|
4546
|
-
return O("check", A,
|
|
4548
|
+
return O("check", A, r, T, De);
|
|
4547
4549
|
}
|
|
4548
|
-
function Ia(
|
|
4549
|
-
const o =
|
|
4550
|
+
function Ia(r) {
|
|
4551
|
+
const o = r.id, m = `quiz:${o}`, A = {
|
|
4550
4552
|
id: o,
|
|
4551
|
-
type:
|
|
4552
|
-
stem:
|
|
4553
|
-
title:
|
|
4554
|
-
description:
|
|
4555
|
-
mode:
|
|
4556
|
-
display:
|
|
4557
|
-
options:
|
|
4558
|
-
blanks:
|
|
4559
|
-
items:
|
|
4560
|
-
grading:
|
|
4561
|
-
default:
|
|
4562
|
-
rubric:
|
|
4563
|
-
score:
|
|
4564
|
-
extra:
|
|
4553
|
+
type: r.quizType,
|
|
4554
|
+
stem: r.stem,
|
|
4555
|
+
title: r.title,
|
|
4556
|
+
description: r.description,
|
|
4557
|
+
mode: r.mode,
|
|
4558
|
+
display: r.display,
|
|
4559
|
+
options: r.options,
|
|
4560
|
+
blanks: r.blanks,
|
|
4561
|
+
items: r.items,
|
|
4562
|
+
grading: r.grading,
|
|
4563
|
+
default: r.default,
|
|
4564
|
+
rubric: r.rubric,
|
|
4565
|
+
score: r.score,
|
|
4566
|
+
extra: r.extra
|
|
4565
4567
|
};
|
|
4566
4568
|
o in d.quiz || (d.quiz[o] = zi(A));
|
|
4567
|
-
const T =
|
|
4569
|
+
const T = l(Oo, {
|
|
4568
4570
|
class: "aimd-rec-inline aimd-rec-inline--quiz",
|
|
4569
4571
|
extraClasses: K.getFieldClasses(m),
|
|
4570
4572
|
quiz: A,
|
|
@@ -4582,11 +4584,11 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4582
4584
|
d.quiz[o] = _e, He({ rebuild: !0 }), i("field-change", { section: "quiz", fieldKey: o, value: _e }), je("change", m);
|
|
4583
4585
|
}
|
|
4584
4586
|
});
|
|
4585
|
-
return O("quiz", m,
|
|
4587
|
+
return O("quiz", m, r, d.quiz[o], T);
|
|
4586
4588
|
}
|
|
4587
|
-
async function ta(
|
|
4589
|
+
async function ta(r, o, m) {
|
|
4588
4590
|
I = !1;
|
|
4589
|
-
const A = await
|
|
4591
|
+
const A = await Vr(a.content || "", {
|
|
4590
4592
|
locale: te.value,
|
|
4591
4593
|
groupStepBodies: !0,
|
|
4592
4594
|
groupCheckBodies: !0,
|
|
@@ -4599,7 +4601,7 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4599
4601
|
resolveAssetUrl: a.resolveFile,
|
|
4600
4602
|
collectorContext: ee.value,
|
|
4601
4603
|
elementRenderers: {
|
|
4602
|
-
pre:
|
|
4604
|
+
pre: mt
|
|
4603
4605
|
},
|
|
4604
4606
|
aimdRenderers: {
|
|
4605
4607
|
var: (T) => Xt(T),
|
|
@@ -4609,10 +4611,10 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4609
4611
|
quiz: (T) => Ia(T)
|
|
4610
4612
|
}
|
|
4611
4613
|
});
|
|
4612
|
-
|
|
4614
|
+
r !== void 0 && r !== V || m !== void 0 && m !== j || (v.value = A.nodes, await Ye(), Tr(g.value, o ?? null), I && Q());
|
|
4613
4615
|
}
|
|
4614
4616
|
async function La() {
|
|
4615
|
-
const
|
|
4617
|
+
const r = ++V, o = ++j;
|
|
4616
4618
|
be.clear();
|
|
4617
4619
|
try {
|
|
4618
4620
|
s.value = "";
|
|
@@ -4625,12 +4627,12 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4625
4627
|
const A = jt([a.protocolContext, a.content].filter(Boolean).join(`
|
|
4626
4628
|
|
|
4627
4629
|
`));
|
|
4628
|
-
if (
|
|
4630
|
+
if (r !== V) return;
|
|
4629
4631
|
ce.value = A, ye.value = A.client_assigner || [], x.value = {}, i("fields-change", A);
|
|
4630
|
-
const T = Mi(d, A), _e =
|
|
4631
|
-
(T || _e) && Q(), await ta(
|
|
4632
|
+
const T = Mi(d, A), _e = yt.applyCurrentClientAssigners();
|
|
4633
|
+
(T || _e) && Q(), await ta(r, void 0, o), Lt();
|
|
4632
4634
|
} catch (m) {
|
|
4633
|
-
if (
|
|
4635
|
+
if (r !== V)
|
|
4634
4636
|
return;
|
|
4635
4637
|
const A = m instanceof Error ? m.message : String(m);
|
|
4636
4638
|
s.value = A, v.value = [], ce.value = ke, ee.value = void 0, ye.value = [], i("fields-change", ke), i("error", A);
|
|
@@ -4638,12 +4640,12 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4638
4640
|
}
|
|
4639
4641
|
return $e(
|
|
4640
4642
|
() => a.modelValue,
|
|
4641
|
-
(
|
|
4642
|
-
const o = Ut(
|
|
4643
|
+
(r) => {
|
|
4644
|
+
const o = Ut(r) !== Ut(d);
|
|
4643
4645
|
if (!o)
|
|
4644
4646
|
return;
|
|
4645
|
-
|
|
4646
|
-
const m =
|
|
4647
|
+
X = !0, Ya(d, r), X = !1;
|
|
4648
|
+
const m = yt.applyCurrentClientAssigners();
|
|
4647
4649
|
m && Q(), (o || m) && Pe(), Lt();
|
|
4648
4650
|
},
|
|
4649
4651
|
{ deep: !0, immediate: !0 }
|
|
@@ -4690,8 +4692,8 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4690
4692
|
() => et.stopAll({ resetPermissions: !0 })
|
|
4691
4693
|
), $e(
|
|
4692
4694
|
() => a.readonly,
|
|
4693
|
-
(
|
|
4694
|
-
|
|
4695
|
+
(r) => {
|
|
4696
|
+
r && et.stopAll();
|
|
4695
4697
|
}
|
|
4696
4698
|
), $e(
|
|
4697
4699
|
() => a.quizGrades,
|
|
@@ -4721,23 +4723,23 @@ const Ho = /* @__PURE__ */ ut(No, [["render", jo]]), Uo = {
|
|
|
4721
4723
|
}
|
|
4722
4724
|
), Vt(() => {
|
|
4723
4725
|
et.stopAll({ resetPermissions: !0 });
|
|
4724
|
-
for (const
|
|
4725
|
-
|
|
4726
|
+
for (const r of H.values())
|
|
4727
|
+
r.abort();
|
|
4726
4728
|
H.clear(), E && clearInterval(E);
|
|
4727
4729
|
}), t({
|
|
4728
4730
|
validate: ge,
|
|
4729
4731
|
validateField: qe,
|
|
4730
4732
|
clearValidation: Qt,
|
|
4731
4733
|
focusFirstInvalidField: oe,
|
|
4732
|
-
runClientAssigner:
|
|
4733
|
-
runManualClientAssigners:
|
|
4734
|
+
runClientAssigner: yt.triggerClientAssigner,
|
|
4735
|
+
runManualClientAssigners: yt.triggerManualClientAssigners,
|
|
4734
4736
|
startCollector: et.start,
|
|
4735
4737
|
stopCollector: et.stop
|
|
4736
|
-
}), (
|
|
4738
|
+
}), (r, o) => (_(), S("div", {
|
|
4737
4739
|
class: Ne(["aimd-protocol-recorder", { "aimd-protocol-recorder--compact": e.fieldDisplay === "compact" }])
|
|
4738
4740
|
}, [
|
|
4739
4741
|
s.value ? (_(), S("div", Jo, $(s.value), 1)) : (_(), S(Oe, { key: 1 }, [
|
|
4740
|
-
fe.value ? (_(),
|
|
4742
|
+
fe.value ? (_(), ht(Ps, {
|
|
4741
4743
|
key: 0,
|
|
4742
4744
|
"field-key": Ve(K).fieldKey.value,
|
|
4743
4745
|
"onUpdate:fieldKey": o[0] || (o[0] = (m) => Ve(K).fieldKey.value = m),
|
|
@@ -4806,7 +4808,7 @@ function Ln(e, t, n, a) {
|
|
|
4806
4808
|
}
|
|
4807
4809
|
return { segmentStart: t, segmentEnd: n };
|
|
4808
4810
|
}
|
|
4809
|
-
function
|
|
4811
|
+
function rn(e) {
|
|
4810
4812
|
const t = e.search(/,\s*(?=\w+\s*=)/), n = t >= 0 ? e.slice(0, t) : e, a = t >= 0 ? e.slice(t) : "", i = n.trim();
|
|
4811
4813
|
if (!i.includes(":")) {
|
|
4812
4814
|
const x = i.indexOf("=");
|
|
@@ -4854,7 +4856,7 @@ function id(e) {
|
|
|
4854
4856
|
const n = t.indexOf(":");
|
|
4855
4857
|
return n >= 0 ? t.slice(0, n).trim() : t;
|
|
4856
4858
|
}
|
|
4857
|
-
function
|
|
4859
|
+
function rd(e) {
|
|
4858
4860
|
const t = e.trim(), n = t.match(/^([A-Za-z_][\w-]*)\s*\(([^)]*)\)\s*$/);
|
|
4859
4861
|
if (n) {
|
|
4860
4862
|
const s = n[2].split(",").map((g) => g.trim()).filter(Boolean).join(", ");
|
|
@@ -4869,7 +4871,7 @@ function ld(e) {
|
|
|
4869
4871
|
subvarsText: v || "col1, col2"
|
|
4870
4872
|
};
|
|
4871
4873
|
}
|
|
4872
|
-
function
|
|
4874
|
+
function ld(e) {
|
|
4873
4875
|
return {
|
|
4874
4876
|
id: e.trim().split(/,\s*/)[0]?.trim() || "my_step"
|
|
4875
4877
|
};
|
|
@@ -4898,7 +4900,7 @@ function cd(e, t, n) {
|
|
|
4898
4900
|
return e;
|
|
4899
4901
|
const i = a[1];
|
|
4900
4902
|
if (t === "var") {
|
|
4901
|
-
const v =
|
|
4903
|
+
const v = rn(i);
|
|
4902
4904
|
return Xa(e, ai({
|
|
4903
4905
|
...v,
|
|
4904
4906
|
id: n
|
|
@@ -4910,7 +4912,7 @@ function ud(e, t) {
|
|
|
4910
4912
|
const n = e.match(/^\{\{var\s*\|\s*([\s\S]*?)\}\}$/);
|
|
4911
4913
|
if (!n)
|
|
4912
4914
|
return e;
|
|
4913
|
-
const a =
|
|
4915
|
+
const a = rn(n[1]);
|
|
4914
4916
|
return Xa(e, ai({
|
|
4915
4917
|
...a,
|
|
4916
4918
|
valueType: t
|
|
@@ -4992,7 +4994,7 @@ options:
|
|
|
4992
4994
|
}
|
|
4993
4995
|
}
|
|
4994
4996
|
}
|
|
4995
|
-
function
|
|
4997
|
+
function ln(e, t) {
|
|
4996
4998
|
const n = t?.id?.trim();
|
|
4997
4999
|
switch (e) {
|
|
4998
5000
|
case "var":
|
|
@@ -5042,7 +5044,7 @@ function Za(e) {
|
|
|
5042
5044
|
if (!["var", "var_table", "step", "check"].includes(i)) continue;
|
|
5043
5045
|
const d = Ln(e, s, g, "inline");
|
|
5044
5046
|
if (i === "var" && !nd(v)) {
|
|
5045
|
-
const V =
|
|
5047
|
+
const V = rn(v);
|
|
5046
5048
|
t.push({
|
|
5047
5049
|
uid: `inline:${s}:${g}`,
|
|
5048
5050
|
fieldType: "var",
|
|
@@ -5058,7 +5060,7 @@ function Za(e) {
|
|
|
5058
5060
|
continue;
|
|
5059
5061
|
}
|
|
5060
5062
|
if (i === "var" || i === "var_table") {
|
|
5061
|
-
const V =
|
|
5063
|
+
const V = rd(v);
|
|
5062
5064
|
t.push({
|
|
5063
5065
|
uid: `inline:${s}:${g}`,
|
|
5064
5066
|
fieldType: "var_table",
|
|
@@ -5074,7 +5076,7 @@ function Za(e) {
|
|
|
5074
5076
|
continue;
|
|
5075
5077
|
}
|
|
5076
5078
|
if (i === "step") {
|
|
5077
|
-
const V =
|
|
5079
|
+
const V = ld(v);
|
|
5078
5080
|
t.push({
|
|
5079
5081
|
uid: `inline:${s}:${g}`,
|
|
5080
5082
|
fieldType: "step",
|
|
@@ -5128,7 +5130,7 @@ function Pn(e, t, n) {
|
|
|
5128
5130
|
return `${i}_${v}`;
|
|
5129
5131
|
}
|
|
5130
5132
|
function ni(e, t, n) {
|
|
5131
|
-
const a =
|
|
5133
|
+
const a = ln(t, n), i = e.replace(/\s+$/, "");
|
|
5132
5134
|
return i ? `${i}
|
|
5133
5135
|
|
|
5134
5136
|
${a}` : a;
|
|
@@ -5136,7 +5138,7 @@ ${a}` : a;
|
|
|
5136
5138
|
function gd(e, t, n, a, i) {
|
|
5137
5139
|
if (t.length === 0)
|
|
5138
5140
|
return ni(e, a, i);
|
|
5139
|
-
const v =
|
|
5141
|
+
const v = ln(a, i), s = Math.max(0, Math.min(n, t.length)), g = s >= t.length ? t[t.length - 1].segmentEnd : t[s].segmentStart, x = (a === "quiz" ? "block" : "inline") === "block" ? vd(e, g, v) : md(e, g, v);
|
|
5140
5142
|
return xt(e, g, g, x);
|
|
5141
5143
|
}
|
|
5142
5144
|
function hd(e, t) {
|
|
@@ -5152,7 +5154,7 @@ function pd(e, t, n) {
|
|
|
5152
5154
|
function yd(e, t, n) {
|
|
5153
5155
|
if (n === t.fieldType)
|
|
5154
5156
|
return e;
|
|
5155
|
-
const a =
|
|
5157
|
+
const a = ln(n, {
|
|
5156
5158
|
id: t.id,
|
|
5157
5159
|
valueType: t.valueType,
|
|
5158
5160
|
subvarsText: t.subvarsText,
|
|
@@ -5175,13 +5177,13 @@ function _d(e, t, n) {
|
|
|
5175
5177
|
return !a || a === t.raw ? e : xt(e, t.start, t.end, a);
|
|
5176
5178
|
}
|
|
5177
5179
|
function kd(e, t, n, a) {
|
|
5178
|
-
const i = t.find((
|
|
5180
|
+
const i = t.find((X) => X.uid === n);
|
|
5179
5181
|
if (!i)
|
|
5180
5182
|
return e;
|
|
5181
|
-
const v = t.filter((
|
|
5182
|
-
...
|
|
5183
|
-
segmentStart:
|
|
5184
|
-
segmentEnd:
|
|
5183
|
+
const v = t.filter((X) => X.uid !== n), s = Math.max(0, Math.min(a, v.length)), g = e.slice(i.segmentStart, i.segmentEnd), d = xt(e, i.segmentStart, i.segmentEnd, ""), x = i.segmentEnd - i.segmentStart, V = v.map((X) => ({
|
|
5184
|
+
...X,
|
|
5185
|
+
segmentStart: X.segmentStart > i.segmentStart ? X.segmentStart - x : X.segmentStart,
|
|
5186
|
+
segmentEnd: X.segmentEnd > i.segmentStart ? X.segmentEnd - x : X.segmentEnd
|
|
5185
5187
|
})), j = s >= V.length ? V.length === 0 ? d.length : V[V.length - 1].segmentEnd : V[s].segmentStart;
|
|
5186
5188
|
return xt(d, j, j, g);
|
|
5187
5189
|
}
|
|
@@ -5214,20 +5216,20 @@ class Sd {
|
|
|
5214
5216
|
updateOverlay() {
|
|
5215
5217
|
let t = this.editorView.state.doc.resolve(this.cursorPos), n = !t.parent.inlineContent, a, i = this.editorView.dom, v = i.getBoundingClientRect(), s = v.width / i.offsetWidth, g = v.height / i.offsetHeight;
|
|
5216
5218
|
if (n) {
|
|
5217
|
-
let j = t.nodeBefore,
|
|
5218
|
-
if (j ||
|
|
5219
|
+
let j = t.nodeBefore, X = t.nodeAfter;
|
|
5220
|
+
if (j || X) {
|
|
5219
5221
|
let pe = this.editorView.nodeDOM(this.cursorPos - (j ? j.nodeSize : 0));
|
|
5220
5222
|
if (pe) {
|
|
5221
5223
|
let ve = pe.getBoundingClientRect(), I = j ? ve.bottom : ve.top;
|
|
5222
|
-
j &&
|
|
5224
|
+
j && X && (I = (I + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2);
|
|
5223
5225
|
let z = this.width / 2 * g;
|
|
5224
5226
|
a = { left: ve.left, right: ve.right, top: I - z, bottom: I + z };
|
|
5225
5227
|
}
|
|
5226
5228
|
}
|
|
5227
5229
|
}
|
|
5228
5230
|
if (!a) {
|
|
5229
|
-
let j = this.editorView.coordsAtPos(this.cursorPos),
|
|
5230
|
-
a = { left: j.left -
|
|
5231
|
+
let j = this.editorView.coordsAtPos(this.cursorPos), X = this.width / 2 * s;
|
|
5232
|
+
a = { left: j.left - X, right: j.left + X, top: j.top, bottom: j.bottom };
|
|
5231
5233
|
}
|
|
5232
5234
|
let d = this.editorView.dom.offsetParent;
|
|
5233
5235
|
this.element || (this.element = d.appendChild(document.createElement("div")), this.class && (this.element.className = this.class), this.element.style.cssText = "position: absolute; z-index: 50; pointer-events: none;", this.color && (this.element.style.backgroundColor = this.color)), this.element.classList.toggle("prosemirror-dropcursor-block", n), this.element.classList.toggle("prosemirror-dropcursor-inline", !n);
|
|
@@ -5235,8 +5237,8 @@ class Sd {
|
|
|
5235
5237
|
if (!d || d == document.body && getComputedStyle(d).position == "static")
|
|
5236
5238
|
x = -pageXOffset, V = -pageYOffset;
|
|
5237
5239
|
else {
|
|
5238
|
-
let j = d.getBoundingClientRect(),
|
|
5239
|
-
x = j.left - d.scrollLeft *
|
|
5240
|
+
let j = d.getBoundingClientRect(), X = j.width / d.offsetWidth, pe = j.height / d.offsetHeight;
|
|
5241
|
+
x = j.left - d.scrollLeft * X, V = j.top - d.scrollTop * pe;
|
|
5240
5242
|
}
|
|
5241
5243
|
this.element.style.left = (a.left - x) / s + "px", this.element.style.top = (a.top - V) / g + "px", this.element.style.width = (a.right - a.left) / s + "px", this.element.style.height = (a.bottom - a.top) / g + "px";
|
|
5242
5244
|
}
|
|
@@ -5278,7 +5280,7 @@ const Cd = /* @__PURE__ */ Ze({
|
|
|
5278
5280
|
return (a, i) => (_(), S("div", {
|
|
5279
5281
|
class: Ne(["aimd-recorder-wysiwyg-field-host", `aimd-recorder-wysiwyg-field-host--${e.displayMode}`])
|
|
5280
5282
|
}, [
|
|
5281
|
-
(_(),
|
|
5283
|
+
(_(), ht(Ta, {
|
|
5282
5284
|
key: e.surfaceState.validationEpoch,
|
|
5283
5285
|
content: n.value,
|
|
5284
5286
|
"model-value": e.surfaceState.record,
|
|
@@ -5329,7 +5331,7 @@ const Cd = /* @__PURE__ */ Ze({
|
|
|
5329
5331
|
}, null, 8, ["content", "model-value", "readonly", "field-display", "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", "resource-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"]))
|
|
5330
5332
|
], 2));
|
|
5331
5333
|
}
|
|
5332
|
-
}), $d = /* @__PURE__ */
|
|
5334
|
+
}), $d = /* @__PURE__ */ ft(Cd, [["__scopeId", "data-v-5a443fea"]]), ii = "aimdRecorderQuizBlock", xd = /* @__PURE__ */ new Set(["var", "var_table", "step", "check"]), Ad = {
|
|
5333
5335
|
var: "#2563eb",
|
|
5334
5336
|
var_table: "#059669",
|
|
5335
5337
|
step: "#d97706",
|
|
@@ -5411,7 +5413,7 @@ function zd() {
|
|
|
5411
5413
|
}
|
|
5412
5414
|
return e;
|
|
5413
5415
|
}
|
|
5414
|
-
const qd = Zi("aimdRecorderQuizBlock", () => zd()), On =
|
|
5416
|
+
const qd = Zi("aimdRecorderQuizBlock", () => zd()), On = er("aimd_recorder_quiz", () => ({
|
|
5415
5417
|
group: "block",
|
|
5416
5418
|
atom: !0,
|
|
5417
5419
|
draggable: !0,
|
|
@@ -5461,14 +5463,14 @@ class Nn {
|
|
|
5461
5463
|
if (V.preventDefault(), V.stopPropagation(), this.options.surfaceState.readonly)
|
|
5462
5464
|
return;
|
|
5463
5465
|
const j = this.resolveIdentity();
|
|
5464
|
-
j && this.options.onEditField?.(j, (
|
|
5466
|
+
j && this.options.onEditField?.(j, (X) => {
|
|
5465
5467
|
const pe = this.getPos();
|
|
5466
5468
|
if (typeof pe != "number" || this.options.surfaceState.readonly) return !1;
|
|
5467
5469
|
const ve = this.view.state.doc.nodeAt(pe);
|
|
5468
5470
|
if (!ve || !ve.eq(this.node)) return !1;
|
|
5469
|
-
const I = this.view.state.tr.setNodeMarkup(pe, void 0, { ...ve.attrs, fieldContent:
|
|
5471
|
+
const I = this.view.state.tr.setNodeMarkup(pe, void 0, { ...ve.attrs, fieldContent: X });
|
|
5470
5472
|
if (j.fieldType === "var") {
|
|
5471
|
-
const z = _a(
|
|
5473
|
+
const z = _a(X).id;
|
|
5472
5474
|
z !== j.id && this.view.state.doc.descendants((q, W) => {
|
|
5473
5475
|
q.type.name === "aimd_field" && q.attrs.fieldType === "ref_var" && q.attrs.fieldContent.trim() === j.id && I.setNodeMarkup(W, void 0, { ...q.attrs, fieldContent: z });
|
|
5474
5476
|
});
|
|
@@ -5480,10 +5482,10 @@ class Nn {
|
|
|
5480
5482
|
return;
|
|
5481
5483
|
const j = this.resolveIdentity();
|
|
5482
5484
|
j && this.options.onDeleteField?.(j, () => {
|
|
5483
|
-
const
|
|
5484
|
-
if (typeof
|
|
5485
|
-
const pe = this.view.state.doc.nodeAt(
|
|
5486
|
-
!pe || !pe.eq(this.node) || this.view.dispatch(this.view.state.tr.delete(
|
|
5485
|
+
const X = this.getPos();
|
|
5486
|
+
if (typeof X != "number" || this.options.surfaceState.readonly) return;
|
|
5487
|
+
const pe = this.view.state.doc.nodeAt(X);
|
|
5488
|
+
!pe || !pe.eq(this.node) || this.view.dispatch(this.view.state.tr.delete(X, X + pe.nodeSize));
|
|
5487
5489
|
});
|
|
5488
5490
|
}), x.appendChild(this.deleteButtonEl), this.dragHandleEl = document.createElement("span"), this.dragHandleEl.className = "aimd-recorder-wysiwyg-node__drag", this.dragHandleEl.textContent = "::", this.dragHandleEl.title = g.dragTitle, this.dragHandleEl.setAttribute("data-drag-handle", "true"), this.dragHandleEl.draggable = !this.options.surfaceState.readonly, this.dragHandleEl.addEventListener("mousedown", (V) => {
|
|
5489
5491
|
this.selectThisNode();
|
|
@@ -5495,7 +5497,7 @@ class Nn {
|
|
|
5495
5497
|
const t = this.getPos();
|
|
5496
5498
|
if (typeof t != "number")
|
|
5497
5499
|
return;
|
|
5498
|
-
const n = this.view.state.tr.setSelection(
|
|
5500
|
+
const n = this.view.state.tr.setSelection(lr.create(this.view.state.doc, t));
|
|
5499
5501
|
this.view.dispatch(n);
|
|
5500
5502
|
}
|
|
5501
5503
|
resolveIdentity() {
|
|
@@ -5513,7 +5515,7 @@ class Nn {
|
|
|
5513
5515
|
renderField() {
|
|
5514
5516
|
const t = this.resolveIdentity(), n = this.resolveFieldType() === "step", a = t?.id ? `${t.fieldType} ${t.id}` : this.resolveFieldType();
|
|
5515
5517
|
this.summaryEl.textContent = a, this.summaryEl.title = a, this.dom.setAttribute("data-field-type", this.resolveFieldType()), this.dom.classList.toggle("aimd-recorder-wysiwyg-node--step", n), 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);
|
|
5516
|
-
const i =
|
|
5518
|
+
const i = l($d, {
|
|
5517
5519
|
surfaceState: this.options.surfaceState,
|
|
5518
5520
|
rawContent: this.resolveRaw(),
|
|
5519
5521
|
displayMode: this.block || n ? "block" : "inline"
|
|
@@ -5614,10 +5616,10 @@ class Vd {
|
|
|
5614
5616
|
destroy() {
|
|
5615
5617
|
}
|
|
5616
5618
|
}
|
|
5617
|
-
const Dd =
|
|
5619
|
+
const Dd = tr.extendSchema((e) => (t) => ({
|
|
5618
5620
|
...e(t),
|
|
5619
|
-
toDOM: (a) => ["br", t.get(
|
|
5620
|
-
})), Id =
|
|
5621
|
+
toDOM: (a) => ["br", t.get(ar.key)(a)]
|
|
5622
|
+
})), Id = nr(() => wd({
|
|
5621
5623
|
class: "aimd-recorder-dropcursor",
|
|
5622
5624
|
color: !1,
|
|
5623
5625
|
width: 4
|
|
@@ -5628,7 +5630,7 @@ function Ld(e) {
|
|
|
5628
5630
|
return xd.has(s) ? new Nn(a, i, v, e, !1) : new Vd(a, i, v);
|
|
5629
5631
|
}), n = vn(On, () => (a, i, v) => new Nn(a, i, v, e, !0));
|
|
5630
5632
|
return [
|
|
5631
|
-
|
|
5633
|
+
ir,
|
|
5632
5634
|
qd,
|
|
5633
5635
|
mn,
|
|
5634
5636
|
On,
|
|
@@ -5636,7 +5638,7 @@ function Ld(e) {
|
|
|
5636
5638
|
n,
|
|
5637
5639
|
Dd,
|
|
5638
5640
|
Id,
|
|
5639
|
-
|
|
5641
|
+
rr
|
|
5640
5642
|
].flat();
|
|
5641
5643
|
}
|
|
5642
5644
|
const Pd = /* @__PURE__ */ Ze({
|
|
@@ -5683,7 +5685,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5683
5685
|
},
|
|
5684
5686
|
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", "switch-mode", "request-image"],
|
|
5685
5687
|
setup(e, { expose: t, emit: n }) {
|
|
5686
|
-
const a = ["var", "var_table", "quiz", "step", "check"], i = new Set(a), v = [...a], s = e, g = n, d = C(() =>
|
|
5688
|
+
const a = ["var", "var_table", "quiz", "step", "check"], i = new Set(a), v = [...a], s = e, g = n, d = C(() => sr(s.locale)), x = C(() => or(d.value).filter((w) => i.has(w.type))), V = C(() => dr(d.value)), j = C(() => (s.locale || "").toLowerCase().startsWith("zh") ? "拖到这里" : "Drop here"), X = C(() => ({
|
|
5687
5689
|
"--aimd-recorder-drop-label": JSON.stringify(j.value)
|
|
5688
5690
|
})), pe = C(() => (s.typePlugins ?? []).map((w) => ({
|
|
5689
5691
|
key: w.type,
|
|
@@ -5697,7 +5699,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5697
5699
|
handleMdAction: q,
|
|
5698
5700
|
onMilkdownMarkdownUpdated: W,
|
|
5699
5701
|
onMilkdownReady: E
|
|
5700
|
-
} =
|
|
5702
|
+
} = cr({
|
|
5701
5703
|
initialContent: s.content,
|
|
5702
5704
|
initialMode: "wysiwyg",
|
|
5703
5705
|
resolvedMessages: d,
|
|
@@ -5714,8 +5716,8 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5714
5716
|
g("error", K instanceof Error ? K.message : String(K));
|
|
5715
5717
|
}
|
|
5716
5718
|
}, { immediate: !0 });
|
|
5717
|
-
const H = Wa(tn()), be = P(null),
|
|
5718
|
-
const w = s.fieldState ?? {}, K =
|
|
5719
|
+
const H = Wa(tn()), be = P(null), le = P({}), te = P(0), B = C(() => an(s.locale, s.messages)), N = C(() => {
|
|
5720
|
+
const w = s.fieldState ?? {}, K = le.value;
|
|
5719
5721
|
if (Object.keys(w).length === 0 && Object.keys(K).length === 0) return;
|
|
5720
5722
|
const fe = { ...w };
|
|
5721
5723
|
for (const [Fe, Le] of Object.entries(K))
|
|
@@ -5725,25 +5727,25 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5725
5727
|
function ie(w) {
|
|
5726
5728
|
const K = w.validatedFieldKeys;
|
|
5727
5729
|
if (!K?.length) {
|
|
5728
|
-
|
|
5730
|
+
le.value = { ...w.fieldState };
|
|
5729
5731
|
return;
|
|
5730
5732
|
}
|
|
5731
|
-
const fe = { ...
|
|
5733
|
+
const fe = { ...le.value };
|
|
5732
5734
|
for (const Fe of Object.keys(fe))
|
|
5733
5735
|
K.some((Le) => Aa(Fe, Le)) && delete fe[Fe];
|
|
5734
|
-
Object.assign(fe, w.fieldState),
|
|
5736
|
+
Object.assign(fe, w.fieldState), le.value = fe;
|
|
5735
5737
|
}
|
|
5736
|
-
function
|
|
5738
|
+
function re(w) {
|
|
5737
5739
|
ie(w), g("validation", w);
|
|
5738
5740
|
}
|
|
5739
5741
|
function R(w) {
|
|
5740
5742
|
if (!w)
|
|
5741
|
-
|
|
5743
|
+
le.value = {};
|
|
5742
5744
|
else {
|
|
5743
|
-
const K = { ...
|
|
5745
|
+
const K = { ...le.value };
|
|
5744
5746
|
for (const fe of Object.keys(K))
|
|
5745
5747
|
Aa(fe, w) && delete K[fe];
|
|
5746
|
-
|
|
5748
|
+
le.value = K;
|
|
5747
5749
|
}
|
|
5748
5750
|
te.value += 1;
|
|
5749
5751
|
}
|
|
@@ -5755,7 +5757,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5755
5757
|
return fe ? (fe.scrollIntoView({ behavior: "smooth", block: "center" }), fe.querySelector("input, textarea, select, button, [tabindex]")?.focus({ preventScroll: !0 }), !0) : !1;
|
|
5756
5758
|
}
|
|
5757
5759
|
function Z() {
|
|
5758
|
-
const w = Object.keys(
|
|
5760
|
+
const w = Object.keys(le.value)[0];
|
|
5759
5761
|
return w ? O(w) : !1;
|
|
5760
5762
|
}
|
|
5761
5763
|
async function G(w = {}) {
|
|
@@ -5764,7 +5766,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5764
5766
|
schema: s.validationSchema,
|
|
5765
5767
|
messages: B.value.validation
|
|
5766
5768
|
});
|
|
5767
|
-
return te.value += 1,
|
|
5769
|
+
return te.value += 1, re(K), !K.valid && w.focus !== !1 && (await Ye(), Z()), K;
|
|
5768
5770
|
}
|
|
5769
5771
|
async function Y(w, K = {}) {
|
|
5770
5772
|
const fe = Fa(jt(ve.value), H, {
|
|
@@ -5773,7 +5775,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5773
5775
|
fieldKeys: [w],
|
|
5774
5776
|
messages: B.value.validation
|
|
5775
5777
|
});
|
|
5776
|
-
if (te.value += 1,
|
|
5778
|
+
if (te.value += 1, re(fe), !fe.valid && K.focus === !0) {
|
|
5777
5779
|
await Ye();
|
|
5778
5780
|
const Fe = Object.keys(fe.fieldState)[0];
|
|
5779
5781
|
Fe && O(Fe);
|
|
@@ -5791,7 +5793,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5791
5793
|
Ut(K) !== Ut(H) && Ya(H, K);
|
|
5792
5794
|
}, { deep: !0, immediate: !0 });
|
|
5793
5795
|
function me(w) {
|
|
5794
|
-
Ya(H, w), g("update:modelValue",
|
|
5796
|
+
Ya(H, w), g("update:modelValue", ra(H));
|
|
5795
5797
|
}
|
|
5796
5798
|
const L = Wa({
|
|
5797
5799
|
record: H,
|
|
@@ -5837,7 +5839,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5837
5839
|
onAssignerCancel: (w) => g("assigner-cancel", w),
|
|
5838
5840
|
onTableAddRow: (w) => g("table-add-row", w),
|
|
5839
5841
|
onTableRemoveRow: (w) => g("table-remove-row", w),
|
|
5840
|
-
onValidation:
|
|
5842
|
+
onValidation: re
|
|
5841
5843
|
});
|
|
5842
5844
|
fi(() => {
|
|
5843
5845
|
L.readonly = s.readonly, L.fieldDisplay = s.fieldDisplay, L.currentUserName = s.currentUserName, L.now = s.now, L.locale = s.locale, L.messages = s.messages, L.quizGrades = s.quizGrades, L.submitted = s.submitted, L.choiceOptionExplanationMode = s.choiceOptionExplanationMode, L.scaleGradeDisplayMode = s.scaleGradeDisplayMode, L.stepDetailDisplay = s.stepDetailDisplay, L.fieldMeta = s.fieldMeta, L.serverAssigners = s.serverAssigners, L.assigners = s.assigners, L.fieldState = N.value, L.validationSchema = s.validationSchema, L.validationTriggers = s.validationTriggers, L.validationEpoch = te.value, L.wrapField = s.wrapField, L.customRenderers = s.customRenderers, L.fieldAdapters = s.fieldAdapters, L.entityResolvers = s.entityResolvers, L.resourceResolvers = s.resourceResolvers, L.collectorProviders = s.collectorProviders, L.requestCollectorPermission = s.requestCollectorPermission, L.collectorActorId = s.collectorActorId, L.collectorRecordKey = s.collectorRecordKey, L.protocolContext = de(ve.value), L.resolveFile = s.resolveFile, L.resolveFileInfo = s.resolveFileInfo, L.uploadFile = s.uploadFile, L.runServerAssigner = s.runServerAssigner, L.assignerRunner = s.assignerRunner, L.typePlugins = s.typePlugins;
|
|
@@ -5885,7 +5887,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5885
5887
|
if (Se.value) {
|
|
5886
5888
|
const K = _a(Se.value.content).id, fe = _a(w).id;
|
|
5887
5889
|
if (!Se.value.apply(w)) return;
|
|
5888
|
-
fe !== K && Object.prototype.hasOwnProperty.call(H.var, K) && (H.var[fe] =
|
|
5890
|
+
fe !== K && Object.prototype.hasOwnProperty.call(H.var, K) && (H.var[fe] = ra(H).var[K], g("update:modelValue", ra(H)));
|
|
5889
5891
|
} else
|
|
5890
5892
|
z(`{{var|${w}}}`);
|
|
5891
5893
|
}
|
|
@@ -5908,7 +5910,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5908
5910
|
function y(w) {
|
|
5909
5911
|
s.readonly || !i.has(w) || z(w === "var" ? `{{var|${gn([...hn(ve.value), ...Object.keys(H.var)])}: str}}` : w === "step" ? `{{step|${gn([...hn(ve.value), ...Object.keys(H.step)], "step")}, check=True}}
|
|
5910
5912
|
|
|
5911
|
-
` :
|
|
5913
|
+
` : hr(w, d.value));
|
|
5912
5914
|
}
|
|
5913
5915
|
function F(w) {
|
|
5914
5916
|
s.readonly || z(w);
|
|
@@ -5931,7 +5933,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5931
5933
|
if (w === "wysiwyg") return;
|
|
5932
5934
|
const K = Me.value?.getEditor?.();
|
|
5933
5935
|
if (K) {
|
|
5934
|
-
const fe = K.action(
|
|
5936
|
+
const fe = K.action(pr());
|
|
5935
5937
|
W(null, fe, ve.value);
|
|
5936
5938
|
}
|
|
5937
5939
|
g("switch-mode", w);
|
|
@@ -5947,9 +5949,9 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5947
5949
|
ref_key: "surfaceRoot",
|
|
5948
5950
|
ref: be,
|
|
5949
5951
|
class: Ne(["aimd-recorder-wysiwyg-surface", { "aimd-recorder-wysiwyg-surface--compact": e.fieldDisplay === "compact" }]),
|
|
5950
|
-
style: zt(
|
|
5952
|
+
style: zt(X.value)
|
|
5951
5953
|
}, [
|
|
5952
|
-
wt(Ve(
|
|
5954
|
+
wt(Ve(ur), {
|
|
5953
5955
|
"show-top-bar": e.showModeSwitch,
|
|
5954
5956
|
"show-md-toolbar": !0,
|
|
5955
5957
|
"show-aimd-toolbar": !0,
|
|
@@ -5963,7 +5965,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5963
5965
|
onQuickInsertAimd: y,
|
|
5964
5966
|
onInsertInput: D
|
|
5965
5967
|
}, null, 8, ["show-top-bar", "resolved-messages", "localized-field-types", "localized-md-toolbar-items"]),
|
|
5966
|
-
wt(Ve(
|
|
5968
|
+
wt(Ve(fr), {
|
|
5967
5969
|
ref_key: "wysiwygEditorRef",
|
|
5968
5970
|
ref: Me,
|
|
5969
5971
|
content: Ve(ve),
|
|
@@ -5978,7 +5980,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5978
5980
|
onReady: Ce,
|
|
5979
5981
|
onOpenAimdDialog: p
|
|
5980
5982
|
}, null, 8, ["content", "min-height", "enable-block-handle", "readonly", "resolved-messages", "localized-field-types", "onMarkdownUpdated"]),
|
|
5981
|
-
wt(Ve(
|
|
5983
|
+
wt(Ve(mr), {
|
|
5982
5984
|
visible: M.value,
|
|
5983
5985
|
"onUpdate:visible": K[0] || (K[0] = (fe) => M.value = fe),
|
|
5984
5986
|
"field-type": u.value,
|
|
@@ -5988,7 +5990,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5988
5990
|
messages: d.value,
|
|
5989
5991
|
onSave: se
|
|
5990
5992
|
}, null, 8, ["visible", "field-type", "content", "field-content", "reserved-ids", "messages"]),
|
|
5991
|
-
wt(Ve(
|
|
5993
|
+
wt(Ve(vr), {
|
|
5992
5994
|
visible: ae.value,
|
|
5993
5995
|
"onUpdate:visible": K[1] || (K[1] = (fe) => ae.value = fe),
|
|
5994
5996
|
content: Ve(ve),
|
|
@@ -5999,7 +6001,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
5999
6001
|
"var-type-plugins": pe.value,
|
|
6000
6002
|
onSave: ue
|
|
6001
6003
|
}, null, 8, ["visible", "content", "field-content", "initial-preset", "reserved-ids", "messages", "var-type-plugins"]),
|
|
6002
|
-
wt(Ve(
|
|
6004
|
+
wt(Ve(gr), {
|
|
6003
6005
|
visible: ye.value,
|
|
6004
6006
|
"initial-type": he.value,
|
|
6005
6007
|
messages: d.value,
|
|
@@ -6011,7 +6013,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6011
6013
|
}, null, 8, ["visible", "initial-type", "messages", "ref-suggestions", "var-type-plugins"])
|
|
6012
6014
|
], 6));
|
|
6013
6015
|
}
|
|
6014
|
-
}), Bd = /* @__PURE__ */
|
|
6016
|
+
}), Bd = /* @__PURE__ */ ft(Pd, [["__scopeId", "data-v-0f5e93b2"]]), Od = {
|
|
6015
6017
|
key: 0,
|
|
6016
6018
|
class: "aimd-recorder-workbench__panel aimd-recorder-workbench__panel--source"
|
|
6017
6019
|
}, Nd = { class: "aimd-recorder-workbench__panel-head-row" }, Kd = { class: "aimd-recorder-workbench__panel-title" }, jd = ["aria-label", "aria-valuenow"], Hd = { class: "aimd-recorder-workbench__panel-head-row" }, Ud = { class: "aimd-recorder-workbench__panel-head-copy" }, Wd = { class: "aimd-recorder-workbench__panel-title" }, Gd = {
|
|
@@ -6029,7 +6031,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6029
6031
|
}, Xd = ["aria-label"], Zd = ["onClick"], ec = {
|
|
6030
6032
|
key: 0,
|
|
6031
6033
|
class: "aimd-recorder-workbench__side-tab-badge"
|
|
6032
|
-
}, tc = { class: "aimd-recorder-workbench__recorder-toolbar-note" }, ac = { class: "aimd-recorder-workbench__structure" }, nc = { class: "aimd-recorder-workbench__structure-description" }, ic = { class: "aimd-recorder-workbench__structure-toolbar" },
|
|
6034
|
+
}, tc = { class: "aimd-recorder-workbench__recorder-toolbar-note" }, ac = { class: "aimd-recorder-workbench__structure" }, nc = { class: "aimd-recorder-workbench__structure-description" }, ic = { class: "aimd-recorder-workbench__structure-toolbar" }, rc = ["disabled"], lc = ["disabled"], sc = ["disabled"], oc = ["disabled"], dc = ["disabled"], cc = {
|
|
6033
6035
|
key: 0,
|
|
6034
6036
|
class: "aimd-recorder-workbench__field-list"
|
|
6035
6037
|
}, uc = {
|
|
@@ -6053,7 +6055,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6053
6055
|
}, Xc = ["disabled"], Zc = { class: "aimd-recorder-workbench__dialog-foot" }, eu = {
|
|
6054
6056
|
key: 0,
|
|
6055
6057
|
class: "aimd-recorder-workbench__dialog-hint"
|
|
6056
|
-
}, tu = { class: "aimd-recorder-workbench__dialog-actions" }, au = ["disabled"], nu = ["disabled"], iu = 120,
|
|
6058
|
+
}, tu = { class: "aimd-recorder-workbench__dialog-actions" }, au = ["disabled"], nu = ["disabled"], iu = 120, ru = 1600, lu = 2e3, su = /* @__PURE__ */ Ze({
|
|
6057
6059
|
__name: "AimdRecorderEditor",
|
|
6058
6060
|
props: {
|
|
6059
6061
|
content: { default: "" },
|
|
@@ -6127,7 +6129,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6127
6129
|
ref_fig: [],
|
|
6128
6130
|
cite: [],
|
|
6129
6131
|
fig: []
|
|
6130
|
-
}, s = P(null), g = P(null), d = P(null), x = P(null), V = P(null), j = P(null),
|
|
6132
|
+
}, s = P(null), g = P(null), d = P(null), x = P(null), V = P(null), j = P(null), X = P(null), pe = P(null), ve = P(null), I = P(null), z = P(v), q = P(a.content || ""), W = P(a.content || ""), E = P(ka(a.modelValue)), H = P(null), be = P(a.initialVisualEditMode), le = P(null), te = P("recorder"), B = P(a.initialSourceCollapsed), N = P(50), ie = P(!1), re = P(a.editorMinHeight), R = P(a.recorderMinHeight), O = P(Math.max(320, a.recorderMinHeight)), Z = P(null), G = P(null), Y = P(""), de = P(null);
|
|
6131
6133
|
let me = 0, L = null, ke = null, ce = [], ee = /* @__PURE__ */ new Map(), ye = /* @__PURE__ */ new Map();
|
|
6132
6134
|
const he = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Set();
|
|
6133
6135
|
function Te(c) {
|
|
@@ -6156,7 +6158,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6156
6158
|
he,
|
|
6157
6159
|
ee,
|
|
6158
6160
|
c,
|
|
6159
|
-
|
|
6161
|
+
ru
|
|
6160
6162
|
);
|
|
6161
6163
|
}
|
|
6162
6164
|
function ue(c) {
|
|
@@ -6164,7 +6166,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6164
6166
|
ae,
|
|
6165
6167
|
ye,
|
|
6166
6168
|
c,
|
|
6167
|
-
|
|
6169
|
+
lu
|
|
6168
6170
|
);
|
|
6169
6171
|
}
|
|
6170
6172
|
function p(c) {
|
|
@@ -6270,23 +6272,23 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6270
6272
|
function Pe() {
|
|
6271
6273
|
return typeof window > "u" ? 0 : window.visualViewport?.height ?? window.innerHeight;
|
|
6272
6274
|
}
|
|
6273
|
-
function
|
|
6275
|
+
function mt(c) {
|
|
6274
6276
|
return c?.getBoundingClientRect().height ?? 0;
|
|
6275
6277
|
}
|
|
6276
6278
|
function Dt() {
|
|
6277
6279
|
if (a.fillParent) {
|
|
6278
|
-
|
|
6280
|
+
re.value = 0, R.value = 0, O.value = 0, Z.value = null;
|
|
6279
6281
|
return;
|
|
6280
6282
|
}
|
|
6281
6283
|
if (!a.fitViewport || typeof window > "u") {
|
|
6282
|
-
|
|
6284
|
+
re.value = a.editorMinHeight, R.value = a.recorderMinHeight, O.value = Math.max(320, a.recorderMinHeight), Z.value = null;
|
|
6283
6285
|
return;
|
|
6284
6286
|
}
|
|
6285
|
-
const c = Math.max(x.value?.getBoundingClientRect().top ?? 0, 0), f = Math.max(0, Math.floor(Pe() - c - a.viewportOffset)), k =
|
|
6287
|
+
const c = Math.max(x.value?.getBoundingClientRect().top ?? 0, 0), f = Math.max(0, Math.floor(Pe() - c - a.viewportOffset)), k = mt(pe.value?.querySelector(".aimd-editor-toolbar")), we = mt(j.value), ze = mt(X.value), it = Math.max(
|
|
6286
6288
|
a.recorderMinHeight,
|
|
6287
6289
|
Math.floor(f - ze)
|
|
6288
|
-
), Be =
|
|
6289
|
-
|
|
6290
|
+
), Be = mt(I.value), Re = mt(ve.value?.querySelector(".aimd-editor-toolbar"));
|
|
6291
|
+
re.value = Math.max(
|
|
6290
6292
|
a.editorMinHeight,
|
|
6291
6293
|
Math.floor(f - we - k)
|
|
6292
6294
|
), R.value = it, O.value = Math.max(
|
|
@@ -6294,7 +6296,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6294
6296
|
Math.floor(it - Be - Re)
|
|
6295
6297
|
), Z.value = Math.max(
|
|
6296
6298
|
ze + it,
|
|
6297
|
-
we + k +
|
|
6299
|
+
we + k + re.value
|
|
6298
6300
|
);
|
|
6299
6301
|
}
|
|
6300
6302
|
function Ge() {
|
|
@@ -6309,7 +6311,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6309
6311
|
modelValue: q.value,
|
|
6310
6312
|
mode: a.editorMode,
|
|
6311
6313
|
locale: c.locale ?? a.locale,
|
|
6312
|
-
minHeight: c.minHeight ?? (a.fillParent ? 0 :
|
|
6314
|
+
minHeight: c.minHeight ?? (a.fillParent ? 0 : re.value),
|
|
6313
6315
|
readonly: a.readonly || c.readonly === !0
|
|
6314
6316
|
};
|
|
6315
6317
|
}), Je = C(() => Za(q.value)), oe = C(() => {
|
|
@@ -6348,17 +6350,17 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6348
6350
|
function He(c) {
|
|
6349
6351
|
return Object.keys(c.var).length + Object.keys(c.step).length + Object.keys(c.check).length + Object.keys(c.quiz).length;
|
|
6350
6352
|
}
|
|
6351
|
-
const
|
|
6353
|
+
const vt = C(() => je(E.value, z.value)), gt = C(() => He(vt.value)), pt = C(() => gt.value > 0), Yt = C(() => JSON.stringify(E.value, null, 2)), Jt = C(() => JSON.stringify(vt.value, null, 2)), It = C(() => ({
|
|
6352
6354
|
...B.value ? {} : { "--aimd-recorder-source-panel-width": `${N.value}%` },
|
|
6353
6355
|
...Z.value === null ? {} : { "--aimd-recorder-workbench-main-height": `${Z.value}px` }
|
|
6354
6356
|
})), Ie = C(() => a.fillParent ? {} : { height: `${R.value}px` }), Xe = C(() => a.fillParent ? 0 : O.value), Ft = C(() => {
|
|
6355
6357
|
const c = [
|
|
6356
6358
|
{ key: "recorder", label: Me.value }
|
|
6357
6359
|
];
|
|
6358
|
-
return a.showFieldStructure && c.push({ key: "structure", label: fe.value }), a.showRecordData && c.push({ key: "record", label: We.value }), a.showDetachedData &&
|
|
6360
|
+
return a.showFieldStructure && c.push({ key: "structure", label: fe.value }), a.showRecordData && c.push({ key: "record", label: We.value }), a.showDetachedData && pt.value && c.push({
|
|
6359
6361
|
key: "detached",
|
|
6360
6362
|
label: w.value,
|
|
6361
|
-
badge:
|
|
6363
|
+
badge: gt.value
|
|
6362
6364
|
}), c;
|
|
6363
6365
|
}), Et = C(() => Ft.value.length > 1), Lt = C(() => Ft.value.find((c) => c.key === te.value) ?? Ft.value[0]), Ma = C(() => Lt.value?.label ?? Me.value);
|
|
6364
6366
|
$e(Ft, (c) => {
|
|
@@ -6378,7 +6380,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6378
6380
|
[
|
|
6379
6381
|
te,
|
|
6380
6382
|
be,
|
|
6381
|
-
|
|
6383
|
+
pt,
|
|
6382
6384
|
() => a.fitViewport,
|
|
6383
6385
|
() => a.fillParent,
|
|
6384
6386
|
() => a.viewportOffset,
|
|
@@ -6409,20 +6411,20 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6409
6411
|
}
|
|
6410
6412
|
}
|
|
6411
6413
|
function za(c) {
|
|
6412
|
-
|
|
6414
|
+
le.value = "source", se(c), Pt(c, "debounced");
|
|
6413
6415
|
}
|
|
6414
6416
|
function qa(c) {
|
|
6415
|
-
ae.has(c) ||
|
|
6417
|
+
ae.has(c) || le.value === "source" && he.has(c) || (le.value = "visual", Pt(c, "immediate"));
|
|
6416
6418
|
}
|
|
6417
|
-
function
|
|
6418
|
-
|
|
6419
|
+
function la() {
|
|
6420
|
+
le.value = "source";
|
|
6419
6421
|
}
|
|
6420
|
-
function
|
|
6421
|
-
|
|
6422
|
+
function yt() {
|
|
6423
|
+
le.value = "visual";
|
|
6422
6424
|
}
|
|
6423
|
-
function
|
|
6425
|
+
function lt(c, f) {
|
|
6424
6426
|
const k = f.currentTarget, we = f.relatedTarget;
|
|
6425
|
-
k instanceof Node && we instanceof Node && k.contains(we) ||
|
|
6427
|
+
k instanceof Node && we instanceof Node && k.contains(we) || le.value === c && (le.value = null);
|
|
6426
6428
|
}
|
|
6427
6429
|
function Ke(c) {
|
|
6428
6430
|
E.value = ka(c), i("update:modelValue", c);
|
|
@@ -6510,7 +6512,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6510
6512
|
function La(c, f) {
|
|
6511
6513
|
ot(bd(q.value, c, f), c);
|
|
6512
6514
|
}
|
|
6513
|
-
function
|
|
6515
|
+
function r(c, f) {
|
|
6514
6516
|
La(c, f.target.value);
|
|
6515
6517
|
}
|
|
6516
6518
|
function o(c) {
|
|
@@ -6566,7 +6568,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6566
6568
|
function Ae() {
|
|
6567
6569
|
H.value = null;
|
|
6568
6570
|
}
|
|
6569
|
-
function
|
|
6571
|
+
function J(c) {
|
|
6570
6572
|
a.readonly || (c.preventDefault(), c.dataTransfer && (c.dataTransfer.dropEffect = "move"));
|
|
6571
6573
|
}
|
|
6572
6574
|
function tt(c) {
|
|
@@ -6580,17 +6582,17 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6580
6582
|
);
|
|
6581
6583
|
H.value = null, ot(k, f);
|
|
6582
6584
|
}
|
|
6583
|
-
function
|
|
6585
|
+
function dt(c) {
|
|
6584
6586
|
if (H.value)
|
|
6585
6587
|
return [
|
|
6586
|
-
|
|
6588
|
+
l("span", { class: "aimd-recorder-workbench__drop-zone-label" }, Q.value.dropHere)
|
|
6587
6589
|
];
|
|
6588
6590
|
if (a.readonly)
|
|
6589
6591
|
return;
|
|
6590
6592
|
const f = de.value === c;
|
|
6591
6593
|
return [
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
+
l("span", { class: "aimd-recorder-workbench__visual-insert-wrap" }, [
|
|
6595
|
+
l("button", {
|
|
6594
6596
|
type: "button",
|
|
6595
6597
|
class: [
|
|
6596
6598
|
"aimd-recorder-workbench__visual-insert-trigger",
|
|
@@ -6600,28 +6602,28 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6600
6602
|
k.preventDefault(), k.stopPropagation(), A(c);
|
|
6601
6603
|
}
|
|
6602
6604
|
}, "+"),
|
|
6603
|
-
f ?
|
|
6604
|
-
|
|
6605
|
+
f ? l("span", { class: "aimd-recorder-workbench__visual-insert-menu" }, [
|
|
6606
|
+
l("button", {
|
|
6605
6607
|
type: "button",
|
|
6606
6608
|
class: "aimd-recorder-workbench__visual-insert-option",
|
|
6607
6609
|
onClick: () => T("var", c)
|
|
6608
6610
|
}, Q.value.addVar),
|
|
6609
|
-
|
|
6611
|
+
l("button", {
|
|
6610
6612
|
type: "button",
|
|
6611
6613
|
class: "aimd-recorder-workbench__visual-insert-option",
|
|
6612
6614
|
onClick: () => T("var_table", c)
|
|
6613
6615
|
}, Q.value.addTable),
|
|
6614
|
-
|
|
6616
|
+
l("button", {
|
|
6615
6617
|
type: "button",
|
|
6616
6618
|
class: "aimd-recorder-workbench__visual-insert-option",
|
|
6617
6619
|
onClick: () => T("step", c)
|
|
6618
6620
|
}, Q.value.addStep),
|
|
6619
|
-
|
|
6621
|
+
l("button", {
|
|
6620
6622
|
type: "button",
|
|
6621
6623
|
class: "aimd-recorder-workbench__visual-insert-option",
|
|
6622
6624
|
onClick: () => T("check", c)
|
|
6623
6625
|
}, Q.value.addCheck),
|
|
6624
|
-
|
|
6626
|
+
l("button", {
|
|
6625
6627
|
type: "button",
|
|
6626
6628
|
class: "aimd-recorder-workbench__visual-insert-option",
|
|
6627
6629
|
onClick: () => T("quiz", c)
|
|
@@ -6630,17 +6632,17 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6630
6632
|
])
|
|
6631
6633
|
];
|
|
6632
6634
|
}
|
|
6633
|
-
function
|
|
6634
|
-
return
|
|
6635
|
+
function ct(c) {
|
|
6636
|
+
return l("span", {
|
|
6635
6637
|
class: [
|
|
6636
6638
|
"aimd-recorder-workbench__visual-drop-zone",
|
|
6637
6639
|
H.value ? "aimd-recorder-workbench__visual-drop-zone--active" : ""
|
|
6638
6640
|
],
|
|
6639
|
-
onDragover:
|
|
6641
|
+
onDragover: J,
|
|
6640
6642
|
onDrop: (f) => {
|
|
6641
6643
|
f.preventDefault(), tt(c);
|
|
6642
6644
|
}
|
|
6643
|
-
},
|
|
6645
|
+
}, dt(c));
|
|
6644
6646
|
}
|
|
6645
6647
|
function at(c, f, k) {
|
|
6646
6648
|
if (!be.value)
|
|
@@ -6648,27 +6650,27 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6648
6650
|
const we = oe.value.get(c);
|
|
6649
6651
|
if (!we)
|
|
6650
6652
|
return a.wrapField ? a.wrapField(c, f, k) : k;
|
|
6651
|
-
const ze = ge.value.get(we.uid) ?? 0, it =
|
|
6653
|
+
const ze = ge.value.get(we.uid) ?? 0, it = l("span", {
|
|
6652
6654
|
class: [
|
|
6653
6655
|
"aimd-recorder-workbench__visual-field",
|
|
6654
6656
|
we.sourceKind === "block" ? "aimd-recorder-workbench__visual-field--block" : "aimd-recorder-workbench__visual-field--inline",
|
|
6655
6657
|
H.value === we.uid ? "aimd-recorder-workbench__visual-field--dragging" : ""
|
|
6656
6658
|
]
|
|
6657
6659
|
}, [
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6660
|
+
ct(ze),
|
|
6661
|
+
l("span", { class: "aimd-recorder-workbench__visual-header" }, [
|
|
6662
|
+
l("span", { class: "aimd-recorder-workbench__visual-summary" }, [
|
|
6663
|
+
l("span", { class: "aimd-recorder-workbench__visual-badge" }, Q.value.typeLabels[we.fieldType]),
|
|
6664
|
+
l("span", { class: "aimd-recorder-workbench__visual-field-id" }, we.id)
|
|
6663
6665
|
]),
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
+
l("span", { class: "aimd-recorder-workbench__visual-actions" }, [
|
|
6667
|
+
l("button", {
|
|
6666
6668
|
type: "button",
|
|
6667
6669
|
class: "aimd-recorder-workbench__visual-open-dialog",
|
|
6668
6670
|
disabled: a.readonly,
|
|
6669
6671
|
onClick: () => o(we)
|
|
6670
6672
|
}, Q.value.edit),
|
|
6671
|
-
|
|
6673
|
+
l("span", {
|
|
6672
6674
|
class: "aimd-recorder-workbench__visual-drag-handle",
|
|
6673
6675
|
draggable: !a.readonly,
|
|
6674
6676
|
title: Q.value.drag,
|
|
@@ -6677,21 +6679,21 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6677
6679
|
}, `:: ${Q.value.drag}`)
|
|
6678
6680
|
])
|
|
6679
6681
|
]),
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
+
l("span", { class: "aimd-recorder-workbench__visual-body" }, [k]),
|
|
6683
|
+
ct(ze + 1)
|
|
6682
6684
|
]);
|
|
6683
6685
|
return a.wrapField ? a.wrapField(c, f, it) : it;
|
|
6684
6686
|
}
|
|
6685
|
-
function
|
|
6687
|
+
function ut() {
|
|
6686
6688
|
return be.value ? d.value : g.value;
|
|
6687
6689
|
}
|
|
6688
6690
|
return t({
|
|
6689
6691
|
getEditor: () => s.value,
|
|
6690
|
-
getRecorder:
|
|
6691
|
-
validate: (c) =>
|
|
6692
|
-
validateField: (c, f) =>
|
|
6693
|
-
clearValidation: (c) =>
|
|
6694
|
-
focusFirstInvalidField: () =>
|
|
6692
|
+
getRecorder: ut,
|
|
6693
|
+
validate: (c) => ut()?.validate(c),
|
|
6694
|
+
validateField: (c, f) => ut()?.validateField(c, f),
|
|
6695
|
+
clearValidation: (c) => ut()?.clearValidation(c),
|
|
6696
|
+
focusFirstInvalidField: () => ut()?.focusFirstInvalidField(),
|
|
6695
6697
|
runClientAssigner: (c) => g.value?.runClientAssigner(c),
|
|
6696
6698
|
runManualClientAssigners: () => g.value?.runManualClientAssigners()
|
|
6697
6699
|
}), (c, f) => (_(), S("div", {
|
|
@@ -6727,10 +6729,10 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6727
6729
|
ref_key: "editorPanelBodyRef",
|
|
6728
6730
|
ref: pe,
|
|
6729
6731
|
class: "aimd-recorder-workbench__panel-body aimd-recorder-workbench__panel-body--editor",
|
|
6730
|
-
onFocusinCapture:
|
|
6731
|
-
onFocusoutCapture: f[3] || (f[3] = (k) =>
|
|
6732
|
+
onFocusinCapture: la,
|
|
6733
|
+
onFocusoutCapture: f[3] || (f[3] = (k) => lt("source", k))
|
|
6732
6734
|
}, [
|
|
6733
|
-
wt(Ve(
|
|
6735
|
+
wt(Ve(yr), jn({
|
|
6734
6736
|
ref_key: "editorRef",
|
|
6735
6737
|
ref: s
|
|
6736
6738
|
}, Qt.value, {
|
|
@@ -6762,14 +6764,14 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6762
6764
|
}, [
|
|
6763
6765
|
h("header", {
|
|
6764
6766
|
ref_key: "sidePanelHeadRef",
|
|
6765
|
-
ref:
|
|
6767
|
+
ref: X,
|
|
6766
6768
|
class: "aimd-recorder-workbench__panel-head"
|
|
6767
6769
|
}, [
|
|
6768
6770
|
h("div", Hd, [
|
|
6769
6771
|
h("div", Ud, [
|
|
6770
6772
|
h("h3", Wd, [
|
|
6771
6773
|
st($(Ma.value) + " ", 1),
|
|
6772
|
-
te.value === "detached" ? (_(), S("span", Gd, " (" + $(
|
|
6774
|
+
te.value === "detached" ? (_(), S("span", Gd, " (" + $(gt.value) + ") ", 1)) : ne("", !0)
|
|
6773
6775
|
]),
|
|
6774
6776
|
e.showVisualEditToggle && te.value === "recorder" ? (_(), S("p", Qd, $(Le.value), 1)) : ne("", !0)
|
|
6775
6777
|
]),
|
|
@@ -6815,8 +6817,8 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6815
6817
|
ref: ve,
|
|
6816
6818
|
class: Ne(["aimd-recorder-workbench__panel-body", be.value ? "aimd-recorder-workbench__panel-body--visual-editor" : "aimd-recorder-workbench__panel-body--recorder"]),
|
|
6817
6819
|
style: zt(Ie.value),
|
|
6818
|
-
onFocusinCapture: f[23] || (f[23] = (k) => be.value &&
|
|
6819
|
-
onFocusoutCapture: f[24] || (f[24] = (k) => be.value &&
|
|
6820
|
+
onFocusinCapture: f[23] || (f[23] = (k) => be.value && yt()),
|
|
6821
|
+
onFocusoutCapture: f[24] || (f[24] = (k) => be.value && lt("visual", k))
|
|
6820
6822
|
}, [
|
|
6821
6823
|
be.value ? (_(), S("div", {
|
|
6822
6824
|
key: 0,
|
|
@@ -6826,7 +6828,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6826
6828
|
}, [
|
|
6827
6829
|
h("p", tc, $(Q.value.addEndHint), 1)
|
|
6828
6830
|
], 512)) : ne("", !0),
|
|
6829
|
-
be.value ? (_(),
|
|
6831
|
+
be.value ? (_(), ht(Bd, {
|
|
6830
6832
|
key: 1,
|
|
6831
6833
|
ref_key: "visualRecorderRef",
|
|
6832
6834
|
ref: d,
|
|
@@ -6880,7 +6882,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6880
6882
|
onValidation: f[14] || (f[14] = (k) => i("validation", k)),
|
|
6881
6883
|
onEditField: Ee,
|
|
6882
6884
|
onDeleteField: Ue
|
|
6883
|
-
}, null, 8, ["content", "model-value", "min-height", "locale", "readonly", "current-user-name", "now", "messages", "quiz-grades", "submitted", "choice-option-explanation-mode", "scale-grade-display-mode", "step-detail-display", "field-display", "field-meta", "server-assigners", "assigners", "field-state", "validation-schema", "validation-triggers", "wrap-field", "custom-renderers", "field-adapters", "entity-resolvers", "resource-resolvers", "collector-providers", "request-collector-permission", "collector-actor-id", "collector-record-key", "resolve-file", "resolve-file-info", "upload-file", "run-server-assigner", "assigner-runner", "type-plugins", "enable-block-handle"])) : (_(),
|
|
6885
|
+
}, null, 8, ["content", "model-value", "min-height", "locale", "readonly", "current-user-name", "now", "messages", "quiz-grades", "submitted", "choice-option-explanation-mode", "scale-grade-display-mode", "step-detail-display", "field-display", "field-meta", "server-assigners", "assigners", "field-state", "validation-schema", "validation-triggers", "wrap-field", "custom-renderers", "field-adapters", "entity-resolvers", "resource-resolvers", "collector-providers", "request-collector-permission", "collector-actor-id", "collector-record-key", "resolve-file", "resolve-file-info", "upload-file", "run-server-assigner", "assigner-runner", "type-plugins", "enable-block-handle"])) : (_(), ht(Ta, {
|
|
6884
6886
|
key: 2,
|
|
6885
6887
|
ref_key: "recorderRef",
|
|
6886
6888
|
ref: g,
|
|
@@ -6941,12 +6943,12 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6941
6943
|
class: "aimd-recorder-workbench__add-btn",
|
|
6942
6944
|
disabled: e.readonly,
|
|
6943
6945
|
onClick: f[25] || (f[25] = (k) => Rt("var"))
|
|
6944
|
-
}, $(Q.value.addVar), 9,
|
|
6946
|
+
}, $(Q.value.addVar), 9, rc),
|
|
6945
6947
|
h("button", {
|
|
6946
6948
|
class: "aimd-recorder-workbench__add-btn",
|
|
6947
6949
|
disabled: e.readonly,
|
|
6948
6950
|
onClick: f[26] || (f[26] = (k) => Rt("var_table"))
|
|
6949
|
-
}, $(Q.value.addTable), 9,
|
|
6951
|
+
}, $(Q.value.addTable), 9, lc),
|
|
6950
6952
|
h("button", {
|
|
6951
6953
|
class: "aimd-recorder-workbench__add-btn",
|
|
6952
6954
|
disabled: e.readonly,
|
|
@@ -6966,7 +6968,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
6966
6968
|
Je.value.length ? (_(), S("div", cc, [
|
|
6967
6969
|
h("div", {
|
|
6968
6970
|
class: Ne(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!H.value }]),
|
|
6969
|
-
onDragover:
|
|
6971
|
+
onDragover: J,
|
|
6970
6972
|
onDrop: f[30] || (f[30] = St((k) => tt(0), ["prevent"]))
|
|
6971
6973
|
}, [
|
|
6972
6974
|
H.value ? (_(), S("span", uc, $(Q.value.dropHere), 1)) : ne("", !0)
|
|
@@ -7020,14 +7022,14 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
7020
7022
|
h("input", {
|
|
7021
7023
|
value: k.valueType || "str",
|
|
7022
7024
|
disabled: e.readonly,
|
|
7023
|
-
onChange: (ze) =>
|
|
7025
|
+
onChange: (ze) => r(k, ze)
|
|
7024
7026
|
}, null, 40, Fc)
|
|
7025
7027
|
])) : ne("", !0)
|
|
7026
7028
|
])
|
|
7027
7029
|
], 42, fc),
|
|
7028
7030
|
h("div", {
|
|
7029
7031
|
class: Ne(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!H.value }]),
|
|
7030
|
-
onDragover:
|
|
7032
|
+
onDragover: J,
|
|
7031
7033
|
onDrop: St((ze) => tt(we + 1), ["prevent"])
|
|
7032
7034
|
}, [
|
|
7033
7035
|
H.value ? (_(), S("span", Rc, $(Q.value.dropHere), 1)) : ne("", !0)
|
|
@@ -7102,7 +7104,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
7102
7104
|
h("input", {
|
|
7103
7105
|
value: G.value.valueType || "str",
|
|
7104
7106
|
disabled: e.readonly,
|
|
7105
|
-
onChange: f[33] || (f[33] = (k) =>
|
|
7107
|
+
onChange: f[33] || (f[33] = (k) => r(G.value, k))
|
|
7106
7108
|
}, null, 40, Yc)
|
|
7107
7109
|
])) : ne("", !0),
|
|
7108
7110
|
e.allowRawFieldSourceEditing ? (_(), S("label", Jc, [
|
|
@@ -7138,7 +7140,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
7138
7140
|
])) : ne("", !0)
|
|
7139
7141
|
], 2));
|
|
7140
7142
|
}
|
|
7141
|
-
}), Su = /* @__PURE__ */
|
|
7143
|
+
}), Su = /* @__PURE__ */ ft(su, [["__scopeId", "data-v-bbe141c9"]]), ou = { class: "aimd-resource-form" }, du = {
|
|
7142
7144
|
key: 0,
|
|
7143
7145
|
class: "aimd-resource-form__header"
|
|
7144
7146
|
}, cu = {
|
|
@@ -7164,7 +7166,7 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
7164
7166
|
const a = n, i = mi(), v = P(null);
|
|
7165
7167
|
function s(d) {
|
|
7166
7168
|
a("fields-change", d);
|
|
7167
|
-
const x =
|
|
7169
|
+
const x = Br(
|
|
7168
7170
|
{ kind: "resource_definition" },
|
|
7169
7171
|
d
|
|
7170
7172
|
);
|
|
@@ -7204,10 +7206,10 @@ const Pd = /* @__PURE__ */ Ze({
|
|
|
7204
7206
|
}), null, 16, ["content", "model-value", "readonly", "locale", "resource-resolvers"])
|
|
7205
7207
|
]));
|
|
7206
7208
|
}
|
|
7207
|
-
}), Cu = /* @__PURE__ */
|
|
7209
|
+
}), Cu = /* @__PURE__ */ ft(fu, [["__scopeId", "data-v-76a22432"]]), $u = At(() => import("./AimdDnaSequenceField-CjcZ1fpz.js")), xu = At(() => import("./AimdMarkdownField-BAJ7otCw.js")), Au = At(() => import("./AimdEntityRefField-CiGP3IyQ.js")), Fu = At(() => import("./AimdResourceRefField-Yc3j0Pgu.js")), Eu = Ta;
|
|
7208
7210
|
export {
|
|
7209
7211
|
wu as AimdAssignerGraph,
|
|
7210
|
-
|
|
7212
|
+
Ul as AimdCollectorField,
|
|
7211
7213
|
$u as AimdDnaSequenceField,
|
|
7212
7214
|
Au as AimdEntityRefField,
|
|
7213
7215
|
xu as AimdMarkdownField,
|