@airalogy/aimd-recorder 1.27.2 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/README.zh-CN.md +5 -1
- package/dist/{AimdDnaSequenceField-CjcZ1fpz.js → AimdDnaSequenceField-CC07idJ1.js} +1 -1
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-4yWDudoV.js → AimdEditor.vue_vue_type_style_index_0_lang-C9xOPWUf.js} +6731 -6636
- package/dist/{AimdEntityRefField-CiGP3IyQ.js → AimdEntityRefField-Bc55EWW7.js} +1 -1
- package/dist/{AimdEntityRefField.vue_vue_type_script_setup_true_lang-B-a446u5.js → AimdEntityRefField.vue_vue_type_script_setup_true_lang-B539YY-u.js} +1 -1
- package/dist/{AimdMarkdownField-BAJ7otCw.js → AimdMarkdownField-DaYdXrEN.js} +3 -3
- package/dist/{AimdMarkdownNoteField-Ca-kRvLz.js → AimdMarkdownNoteField-DE2eyIeG.js} +2 -2
- package/dist/{AimdResourceRefField-Yc3j0Pgu.js → AimdResourceRefField-Dv1EfosL.js} +2 -2
- package/dist/aimd-recorder.css +1 -1
- package/dist/{arc-CAjOitck.js → arc-COg5ULhj.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-Dqk9MN5z.js → architectureDiagram-3BPJPVTR-Cl6dfzfF.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-DQLn0TV3.js → blockDiagram-GPEHLZMM-BACKnDKc.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-DZZ_f9Fy.js → c4Diagram-AAUBKEIU-zq3HwKb_.js} +2 -2
- package/dist/{channel-rjOxq-6_.js → channel-BJlkYmQY.js} +1 -1
- package/dist/{chunk-2J33WTMH-tQlc96HU.js → chunk-2J33WTMH-B7oyQtnK.js} +1 -1
- package/dist/{chunk-4BX2VUAB-DJYTZE2c.js → chunk-4BX2VUAB-DVmdXl0Z.js} +1 -1
- package/dist/{chunk-55IACEB6-CRiTC3Ls.js → chunk-55IACEB6-C6G6r1Hs.js} +1 -1
- package/dist/{chunk-727SXJPM-BD2QhWqt.js → chunk-727SXJPM-DRauMxlM.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-B0aa98ib.js → chunk-AQP2D5EJ-CFOFED2g.js} +3 -3
- package/dist/{chunk-FMBD7UC4-ByDG3u38.js → chunk-FMBD7UC4-D6pbxcrd.js} +1 -1
- package/dist/{chunk-ND2GUHAM-Cj1D7wW5.js → chunk-ND2GUHAM-CTRvR7V6.js} +1 -1
- package/dist/{chunk-QZHKN3VN-g2yBIr1b.js → chunk-QZHKN3VN-JYLI2Fou.js} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-BHrQHB1_.js → classDiagram-4FO5ZUOK-CvWmPFSb.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-BHrQHB1_.js → classDiagram-v2-Q7XG4LA2-CvWmPFSb.js} +2 -2
- package/dist/components.js +3621 -3567
- package/dist/composables.js +2 -2
- package/dist/{cose-bilkent-S5V4N54A-DoR6eiyr.js → cose-bilkent-S5V4N54A-g5sJsJsO.js} +1 -1
- package/dist/{dagre-BM42HDAG-Dojxqnuq.js → dagre-BM42HDAG-CgURX0XQ.js} +3 -3
- package/dist/{diagram-2AECGRRQ-CXtd1KGZ.js → diagram-2AECGRRQ-DkDoyjIE.js} +2 -2
- package/dist/{diagram-5GNKFQAL-BnJ2DhKE.js → diagram-5GNKFQAL-CjmQeZ1p.js} +3 -3
- package/dist/{diagram-KO2AKTUF-DJZFSngn.js → diagram-KO2AKTUF-xkwe4Z-T.js} +2 -2
- package/dist/{diagram-LMA3HP47-Dx6TLGwi.js → diagram-LMA3HP47-B4XAB0Ul.js} +2 -2
- package/dist/{diagram-OG6HWLK6-BX5km_SS.js → diagram-OG6HWLK6-DIDrCkjk.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35-PWmJC0ho.js → erDiagram-TEJ5UH35-HCGS4huB.js} +4 -4
- package/dist/{example-record-AHkkwdqV.js → example-record-6TUyxByY.js} +2 -2
- package/dist/{flowDiagram-I6XJVG4X-ODu7JRxY.js → flowDiagram-I6XJVG4X-DCR0zjVf.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-CZY08InD.js → ganttDiagram-6RSMTGT7-D0cqiqhS.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-1FOO5ySv.js → gitGraphDiagram-PVQCEYII-CjEJrOfY.js} +3 -3
- package/dist/{graph-Dx1st3gR.js → graph-vXOGPp0B.js} +1 -1
- package/dist/index.js +5 -5
- package/dist/{infoDiagram-5YYISTIA-Rqn1YuSl.js → infoDiagram-5YYISTIA-Cwa9CA9R.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-DTqjtgII.js → ishikawaDiagram-YF4QCWOH-Dtm2EQRM.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-Dfc2a9K3.js → journeyDiagram-JHISSGLW-Cwsyan_q.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-DZz55ohU.js → kanban-definition-UN3LZRKU-Cocu6oQX.js} +2 -2
- package/dist/{layout-k1LKX9WI.js → layout-BQZ5CVhn.js} +2 -2
- package/dist/{linear-DSz9nhkN.js → linear-Dl1Cl9MO.js} +1 -1
- package/dist/{mermaid.core-iwpvEomj.js → mermaid.core-CcTsVOub.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-CEz0DgQr.js → mindmap-definition-RKZ34NQL-CJD4ZSsv.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-BcuSLA0L.js → pieDiagram-4H26LBE5-miM6t9w3.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-D3IixvxS.js → quadrantDiagram-W4KKPZXB-BbjEmdfP.js} +2 -2
- package/dist/record.js +3 -3
- package/dist/{requirementDiagram-4Y6WPE33-Bk-lwb2t.js → requirementDiagram-4Y6WPE33-Btxs6bPP.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-BmUhv9kI.js → sankeyDiagram-5OEKKPKP-BFlv9Za2.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-BhAJ2Wz1.js → sequenceDiagram-3UESZ5HK-CzsCwM84.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-DvH3mI9R.js → stateDiagram-AJRCARHV-Cr-X25OO.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-DvkU8jpH.js → stateDiagram-v2-BHNVJYJU-BU8pS5zo.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-CQFLx2MG.js → timeline-definition-PNZ67QCA-CCxtC3I1.js} +2 -2
- package/dist/{useFieldRendering-Bj2H9CPx.js → useFieldRendering-fRL0kBSG.js} +57 -57
- package/dist/{useVarHelpers-Bf3wNHxF.js → useVarHelpers-CC6Jk-Vu.js} +1308 -1292
- package/dist/{validation-CH6pi638.js → validation-qjnL_HTT.js} +1431 -1426
- package/dist/{vennDiagram-CIIHVFJN-D_qwBk9R.js → vennDiagram-CIIHVFJN-DoQdCEMx.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-BezUR1jm.js → wardleyDiagram-YWT4CUSO-3t148oYZ.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-CTFs3FiD.js → xychartDiagram-2RQKCTM6-DCni6kCQ.js} +2 -2
- package/package.json +4 -4
- package/src/__tests__/field-panel.test.ts +45 -0
- package/src/__tests__/record-validation.test.ts +41 -3
- package/src/__tests__/var-field-render.test.ts +28 -0
- package/src/components/AimdRecorder.vue +64 -13
- package/src/components/AimdRecorderWysiwygSurface.vue +5 -0
- package/src/components/AimdVarField.vue +41 -17
- package/src/composables/__tests__/useVarHelpers.test.ts +7 -1
- package/src/composables/useFieldPresentation.ts +2 -2
- package/src/composables/useFieldRendering.ts +2 -1
- package/src/locales.ts +12 -0
- package/src/record/validation.ts +18 -9
- package/src/styles/recorder-compact.css +17 -0
- package/src/styles/recorder.css +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as a, b as t, a as r, S as s } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { _ as i } from "./mermaid.core-
|
|
1
|
+
import { s as a, b as t, a as r, S as s } from "./chunk-AQP2D5EJ-CFOFED2g.js";
|
|
2
|
+
import { _ as i } from "./mermaid.core-CcTsVOub.js";
|
|
3
3
|
var _ = {
|
|
4
4
|
parser: r,
|
|
5
5
|
get db() {
|
package/dist/{timeline-definition-PNZ67QCA-CQFLx2MG.js → timeline-definition-PNZ67QCA-CCxtC3I1.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o, F as gt, ac as Rt, ad as Ct, ae as Wt, c as pt, l as E, L as Pt, a4 as Bt, af as ft, d as X, E as Vt, ag as Ft, A as zt } from "./mermaid.core-
|
|
2
|
-
import { d as ot } from "./arc-
|
|
1
|
+
import { _ as o, F as gt, ac as Rt, ad as Ct, ae as Wt, c as pt, l as E, L as Pt, a4 as Bt, af as ft, d as X, E as Vt, ag as Ft, A as zt } from "./mermaid.core-CcTsVOub.js";
|
|
2
|
+
import { d as ot } from "./arc-COg5ULhj.js";
|
|
3
3
|
var tt = (function() {
|
|
4
4
|
var e = /* @__PURE__ */ o(function(k, s, d, l) {
|
|
5
5
|
for (d = d || {}, l = k.length; l--; d[k[l]] = s) ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { f as
|
|
1
|
+
import { reactive as z } from "vue";
|
|
2
|
+
import { f as B, b6 as re, a2 as ne, T as oe, b7 as ie, b8 as se, b9 as ae, ba as ce, m as le, a5 as ue, bb as fe, bc as de, a6 as D, Z as L, bd as $, a0 as me, C as pe, B as ge, ag as ye, I as H, q as be, ai as we, H as he, b2 as Ae } from "./useVarHelpers-CC6Jk-Vu.js";
|
|
3
3
|
function x(e) {
|
|
4
4
|
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
5
5
|
}
|
|
@@ -120,7 +120,7 @@ function dt(e, t) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function mt(e) {
|
|
123
|
-
const t =
|
|
123
|
+
const t = z({}), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
124
124
|
let s = 0;
|
|
125
125
|
function c(o) {
|
|
126
126
|
return Ee(e.fields(), o);
|
|
@@ -128,7 +128,7 @@ function mt(e) {
|
|
|
128
128
|
function f(o) {
|
|
129
129
|
const a = t[o];
|
|
130
130
|
if (a) return a;
|
|
131
|
-
const u =
|
|
131
|
+
const u = z({
|
|
132
132
|
status: "idle",
|
|
133
133
|
sampleCount: W(e.record.var[o])
|
|
134
134
|
});
|
|
@@ -137,13 +137,13 @@ function mt(e) {
|
|
|
137
137
|
function d(o, a) {
|
|
138
138
|
Object.assign(f(o), a);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function p(o, a) {
|
|
141
141
|
const u = c(o);
|
|
142
142
|
if (!u) return;
|
|
143
|
-
const m = e.record.var[o],
|
|
144
|
-
e.onChange(o,
|
|
143
|
+
const m = e.record.var[o], g = u.isList ? [...Array.isArray(m) ? m : [], a] : a;
|
|
144
|
+
e.onChange(o, g), d(o, {
|
|
145
145
|
lastObservedAt: a.observed_at,
|
|
146
|
-
sampleCount: W(
|
|
146
|
+
sampleCount: W(g)
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
async function h(o) {
|
|
@@ -155,7 +155,7 @@ function mt(e) {
|
|
|
155
155
|
connector: o.connector,
|
|
156
156
|
collector: o.collector,
|
|
157
157
|
fieldKey: o.fieldKey,
|
|
158
|
-
record:
|
|
158
|
+
record: B(e.record)
|
|
159
159
|
});
|
|
160
160
|
return u === "record" && n.add(o.collector.id), u === !0 || u === "once" || u === "record";
|
|
161
161
|
}
|
|
@@ -166,10 +166,10 @@ function mt(e) {
|
|
|
166
166
|
connector: o.connector,
|
|
167
167
|
collector: o.collector,
|
|
168
168
|
fieldKey: o.fieldKey,
|
|
169
|
-
record:
|
|
169
|
+
record: B(e.record),
|
|
170
170
|
signal: a
|
|
171
171
|
});
|
|
172
|
-
a.aborted ||
|
|
172
|
+
a.aborted || p(o.field.id, ve(m, o));
|
|
173
173
|
}
|
|
174
174
|
async function E(o) {
|
|
175
175
|
const a = c(o);
|
|
@@ -185,14 +185,14 @@ function mt(e) {
|
|
|
185
185
|
const u = s;
|
|
186
186
|
i.add(o);
|
|
187
187
|
try {
|
|
188
|
-
const
|
|
188
|
+
const g = await h(a);
|
|
189
189
|
if (u !== s) return;
|
|
190
|
-
if (!
|
|
190
|
+
if (!g) {
|
|
191
191
|
d(o, { status: "error", error: "permission_denied" });
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
|
-
} catch (
|
|
195
|
-
const O = X(
|
|
194
|
+
} catch (g) {
|
|
195
|
+
const O = X(g);
|
|
196
196
|
d(o, { status: "error", error: O }), e.onError?.(O);
|
|
197
197
|
return;
|
|
198
198
|
} finally {
|
|
@@ -206,13 +206,13 @@ function mt(e) {
|
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
d(o, { status: "collecting" });
|
|
209
|
-
const
|
|
209
|
+
const g = a.collector.interval_ms ?? 1e3;
|
|
210
210
|
for (; !m.signal.aborted && (await T(a, m.signal), !m.signal.aborted); )
|
|
211
|
-
await Fe(
|
|
211
|
+
await Fe(g, m.signal);
|
|
212
212
|
d(o, { status: "completed" });
|
|
213
|
-
} catch (
|
|
213
|
+
} catch (g) {
|
|
214
214
|
if (!m.signal.aborted) {
|
|
215
|
-
const O = X(
|
|
215
|
+
const O = X(g);
|
|
216
216
|
d(o, { status: "error", error: O }), e.onError?.(O);
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
@@ -233,7 +233,7 @@ function mt(e) {
|
|
|
233
233
|
}
|
|
234
234
|
function v(o, a, u) {
|
|
235
235
|
const m = c(o);
|
|
236
|
-
return !m || !m.collector.manual_fallback || !u.trim() ? !1 : (
|
|
236
|
+
return !m || !m.collector.manual_fallback || !u.trim() ? !1 : (p(o, xe(a, u, m, e.actorId())), d(o, { status: "completed", error: void 0 }), !0);
|
|
237
237
|
}
|
|
238
238
|
function F(o) {
|
|
239
239
|
const a = c(o);
|
|
@@ -316,7 +316,7 @@ const Ve = [
|
|
|
316
316
|
"prototype",
|
|
317
317
|
"constructor"
|
|
318
318
|
]);
|
|
319
|
-
function
|
|
319
|
+
function P(e, t) {
|
|
320
320
|
if (!(!e || typeof e != "object")) {
|
|
321
321
|
t(e);
|
|
322
322
|
for (const r of Object.keys(e)) {
|
|
@@ -324,8 +324,8 @@ function z(e, t) {
|
|
|
324
324
|
const n = e[r];
|
|
325
325
|
if (Array.isArray(n))
|
|
326
326
|
for (const i of n)
|
|
327
|
-
i && typeof i.type == "string" &&
|
|
328
|
-
else n && typeof n == "object" && typeof n.type == "string" &&
|
|
327
|
+
i && typeof i.type == "string" && P(i, t);
|
|
328
|
+
else n && typeof n == "object" && typeof n.type == "string" && P(n, t);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -348,7 +348,7 @@ function Re(e, t) {
|
|
|
348
348
|
throw new Error(`client assigner "${t}" contains invalid JavaScript syntax`);
|
|
349
349
|
}
|
|
350
350
|
let n = 0, i = !1;
|
|
351
|
-
if (
|
|
351
|
+
if (P(r, (s) => {
|
|
352
352
|
const c = De[s.type];
|
|
353
353
|
if (c)
|
|
354
354
|
throw new Error(`client assigner "${t}" ${c}`);
|
|
@@ -539,11 +539,11 @@ function At(e, t) {
|
|
|
539
539
|
const s = n.trim();
|
|
540
540
|
if (s) {
|
|
541
541
|
if (s.includes(".")) {
|
|
542
|
-
const [c, ...f] = s.split("."), d = f.join("."),
|
|
543
|
-
if (Array.isArray(
|
|
544
|
-
Array.isArray(i) ?
|
|
542
|
+
const [c, ...f] = s.split("."), d = f.join("."), p = e.var[c];
|
|
543
|
+
if (Array.isArray(p) && d) {
|
|
544
|
+
Array.isArray(i) ? p.forEach((h, T) => {
|
|
545
545
|
A(h) && T < i.length && (h[d] = i[T]);
|
|
546
|
-
}) :
|
|
546
|
+
}) : p.forEach((h) => {
|
|
547
547
|
A(h) && (h[d] = i);
|
|
548
548
|
}), r = !0;
|
|
549
549
|
continue;
|
|
@@ -654,14 +654,14 @@ function N(e) {
|
|
|
654
654
|
Object.entries(e).map(([t, r]) => [t, N(r)])
|
|
655
655
|
) : e;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function I(e, t) {
|
|
658
658
|
if (Object.is(e, t))
|
|
659
659
|
return !0;
|
|
660
660
|
if (Array.isArray(e) && Array.isArray(t))
|
|
661
|
-
return e.length !== t.length ? !1 : e.every((r, n) =>
|
|
661
|
+
return e.length !== t.length ? !1 : e.every((r, n) => I(r, t[n]));
|
|
662
662
|
if (R(e) && R(t)) {
|
|
663
663
|
const r = Object.keys(e), n = Object.keys(t);
|
|
664
|
-
return r.length !== n.length ? !1 : r.every((i) => i in t &&
|
|
664
|
+
return r.length !== n.length ? !1 : r.every((i) => i in t && I(e[i], t[i]));
|
|
665
665
|
}
|
|
666
666
|
return !1;
|
|
667
667
|
}
|
|
@@ -778,8 +778,8 @@ function it(e, t, r) {
|
|
|
778
778
|
if (!rt(s, t, r) || !n.has(s.id) && (s.mode === "manual" || s.mode === "auto_first" && !tt(s, t)))
|
|
779
779
|
continue;
|
|
780
780
|
const f = ot(s, t);
|
|
781
|
-
for (const [d,
|
|
782
|
-
|
|
781
|
+
for (const [d, p] of Object.entries(f))
|
|
782
|
+
I(t[d], p) || (t[d] = p, i.add(d));
|
|
783
783
|
}
|
|
784
784
|
return {
|
|
785
785
|
changed: i.size > 0,
|
|
@@ -809,7 +809,7 @@ function St(e) {
|
|
|
809
809
|
return s(`Client assigner error: ${S}`), !1;
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function p() {
|
|
813
813
|
return d();
|
|
814
814
|
}
|
|
815
815
|
function h(E) {
|
|
@@ -825,7 +825,7 @@ function St(e) {
|
|
|
825
825
|
}
|
|
826
826
|
return {
|
|
827
827
|
runClientAssigners: d,
|
|
828
|
-
applyCurrentClientAssigners:
|
|
828
|
+
applyCurrentClientAssigners: p,
|
|
829
829
|
triggerClientAssigner: h,
|
|
830
830
|
triggerManualClientAssigners: T
|
|
831
831
|
};
|
|
@@ -846,8 +846,8 @@ function st(e, t, r, n, i, s) {
|
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
848
|
function Ot(e, t, r, n, i, s) {
|
|
849
|
-
const c = st(e, t, r, n, i, s), f = s.fieldAdapters?.[e],
|
|
850
|
-
return s.wrapField ? s.wrapField(t, e,
|
|
849
|
+
const c = st(e, t, r, n, i, s), f = s.fieldAdapters?.[e], p = (f ? f(c) : void 0) ?? i;
|
|
850
|
+
return s.wrapField ? s.wrapField(t, e, p) : p;
|
|
851
851
|
}
|
|
852
852
|
const U = /* @__PURE__ */ new WeakMap();
|
|
853
853
|
let K = 0;
|
|
@@ -872,7 +872,7 @@ function xt(e) {
|
|
|
872
872
|
emitTableAddRow: s,
|
|
873
873
|
emitTableRemoveRow: c
|
|
874
874
|
} = e;
|
|
875
|
-
let f = null, d = null,
|
|
875
|
+
let f = null, d = null, p = null, h = null, T = null, E = null, _ = null;
|
|
876
876
|
function S(y, w) {
|
|
877
877
|
const b = ue(r.var[y], w);
|
|
878
878
|
return r.var[y] = b, b;
|
|
@@ -884,8 +884,8 @@ function xt(e) {
|
|
|
884
884
|
const V = S(y, j);
|
|
885
885
|
if (w === b || w < 0 || b < 0 || w >= V.length || b >= V.length)
|
|
886
886
|
return;
|
|
887
|
-
const
|
|
888
|
-
V.splice(b, 0,
|
|
887
|
+
const q = V.splice(w, 1)[0];
|
|
888
|
+
V.splice(b, 0, q), E = at(q), _ && clearTimeout(_), _ = setTimeout(() => {
|
|
889
889
|
E = null, _ = null, i();
|
|
890
890
|
}, 520), n({ rebuild: !0, runClientAssigners: !0 });
|
|
891
891
|
}
|
|
@@ -894,14 +894,14 @@ function xt(e) {
|
|
|
894
894
|
j.length <= 1 || (j.splice(w, 1), n({ rebuild: !0, runClientAssigners: !0 }), c({ tableName: y, rowIndex: w, columns: b }));
|
|
895
895
|
}
|
|
896
896
|
function o() {
|
|
897
|
-
d && (d.classList.remove("aimd-rec-inline-table__row--drag-over"), d = null),
|
|
897
|
+
d && (d.classList.remove("aimd-rec-inline-table__row--drag-over"), d = null), p && (p.classList.remove("aimd-rec-inline-table__drag-handle--dragging"), p = null), h && (h.classList.remove("aimd-rec-inline-table__row--dragging-source"), h = null), T && (T.classList.remove("aimd-rec-inline-table__table--dragging"), T = null);
|
|
898
898
|
}
|
|
899
899
|
function a(y) {
|
|
900
900
|
const w = y instanceof HTMLTableRowElement ? y : null;
|
|
901
901
|
d !== w && (d && d.classList.remove("aimd-rec-inline-table__row--drag-over"), d = w, d?.classList.add("aimd-rec-inline-table__row--drag-over"));
|
|
902
902
|
}
|
|
903
903
|
function u(y, w, b) {
|
|
904
|
-
t() || (f = { tableName: y, rowIndex: w },
|
|
904
|
+
t() || (f = { tableName: y, rowIndex: w }, p = b.currentTarget instanceof HTMLElement ? b.currentTarget : null, h = p?.closest("tr"), T = p?.closest("table"), p?.classList.add("aimd-rec-inline-table__drag-handle--dragging"), h?.classList.add("aimd-rec-inline-table__row--dragging-source"), T?.classList.add("aimd-rec-inline-table__table--dragging"), b.dataTransfer && (b.dataTransfer.effectAllowed = "move", b.dataTransfer.setData("text/plain", `${y}:${w}`)));
|
|
905
905
|
}
|
|
906
906
|
function m(y, w, b) {
|
|
907
907
|
if (!(!f || f.tableName !== y)) {
|
|
@@ -912,7 +912,7 @@ function xt(e) {
|
|
|
912
912
|
a(b.currentTarget);
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function g(y, w, b, j) {
|
|
916
916
|
if (!f || f.tableName !== y) {
|
|
917
917
|
o(), f = null;
|
|
918
918
|
return;
|
|
@@ -934,7 +934,7 @@ function xt(e) {
|
|
|
934
934
|
removeVarTableRow: l,
|
|
935
935
|
startVarTableRowDrag: u,
|
|
936
936
|
handleVarTableRowDragOver: m,
|
|
937
|
-
handleVarTableRowDrop:
|
|
937
|
+
handleVarTableRowDrop: g,
|
|
938
938
|
endVarTableRowDrag: O,
|
|
939
939
|
getSettlingVarTableRowKey: C
|
|
940
940
|
};
|
|
@@ -950,7 +950,7 @@ function lt(e) {
|
|
|
950
950
|
return e === "auto_force" || e === "auto_readonly" || e === "manual_readonly";
|
|
951
951
|
}
|
|
952
952
|
function Ft(e) {
|
|
953
|
-
const t =
|
|
953
|
+
const t = z({});
|
|
954
954
|
function r(l, o, a) {
|
|
955
955
|
const u = e.wrapField();
|
|
956
956
|
return u ? u(l, o, a) : a;
|
|
@@ -994,7 +994,7 @@ function Ft(e) {
|
|
|
994
994
|
inputKind: m
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function p(l, o, a) {
|
|
998
998
|
const u = l.definition?.defaultRaw?.trim();
|
|
999
999
|
if (!u)
|
|
1000
1000
|
return null;
|
|
@@ -1010,15 +1010,15 @@ function Ft(e) {
|
|
|
1010
1010
|
expectedValue: l.definition.default
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
function h(l, o, a, u, m,
|
|
1014
|
-
const O = t[l], C = we(u), y = c(
|
|
1013
|
+
function h(l, o, a, u, m, g) {
|
|
1014
|
+
const O = t[l], C = we(u), y = c(g, a);
|
|
1015
1015
|
if (O) {
|
|
1016
1016
|
if (m === "number" && Object.is(C, O.expectedValue))
|
|
1017
1017
|
return O.display;
|
|
1018
1018
|
delete t[l];
|
|
1019
1019
|
}
|
|
1020
1020
|
return y?.getDisplayValue ? y.getDisplayValue(
|
|
1021
|
-
d(o, a,
|
|
1021
|
+
d(o, a, g, u, m)
|
|
1022
1022
|
) : he(u, m, { type: a, typePlugin: y });
|
|
1023
1023
|
}
|
|
1024
1024
|
function T(l) {
|
|
@@ -1034,26 +1034,26 @@ function Ft(e) {
|
|
|
1034
1034
|
const m = D(o);
|
|
1035
1035
|
if (l.definition && Object.prototype.hasOwnProperty.call(l.definition, "default"))
|
|
1036
1036
|
return m === "dnasequence" ? L(l.definition.default) : l.definition.default;
|
|
1037
|
-
const
|
|
1037
|
+
const g = H(o, {
|
|
1038
1038
|
inputType: e.fieldMeta()?.[a]?.inputType,
|
|
1039
1039
|
codeLanguage: e.fieldMeta()?.[a]?.codeLanguage,
|
|
1040
1040
|
kwargs: l.definition?.kwargs,
|
|
1041
1041
|
fieldMeta: e.fieldMeta()?.[a],
|
|
1042
1042
|
typePlugin: u
|
|
1043
1043
|
});
|
|
1044
|
-
return
|
|
1044
|
+
return g === "boolean-select" || $(o) && g !== "checkbox" ? null : g === "multi-select" ? [] : g === "checkbox" ? !1 : g === "scalar-list" ? [] : g === "dna" ? L(void 0) : m === "currenttime" ? be(s()) : m === "username" && typeof e.currentUserName() == "string" ? e.currentUserName() : "";
|
|
1045
1045
|
}
|
|
1046
1046
|
function S(l, o, a, u, m) {
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
return
|
|
1047
|
+
const g = c(a, o);
|
|
1048
|
+
if (g?.normalizeValue)
|
|
1049
|
+
return g.normalizeValue(
|
|
1050
1050
|
d(l, o, a, u, m)
|
|
1051
1051
|
);
|
|
1052
1052
|
const O = D(o);
|
|
1053
|
-
return m === "dna" || O === "dnasequence" ? L(u) : m === "scalar-list" ? me(
|
|
1053
|
+
return m === "dna" || O === "dnasequence" ? L(u) : m === "scalar-list" ? u == null && $(o) ? null : me(
|
|
1054
1054
|
ge(u),
|
|
1055
1055
|
pe(o) ?? "string"
|
|
1056
|
-
) : m === "boolean-select" ? u === null || typeof u > "u" || u === "" ? null : ye(u) :
|
|
1056
|
+
) : m === "boolean-select" ? u === null || typeof u > "u" || u === "" ? null : ye(u) : $(o) && m !== "checkbox" && (u === null || typeof u > "u" || u === "") ? null : u;
|
|
1057
1057
|
}
|
|
1058
1058
|
function v(l, o) {
|
|
1059
1059
|
const a = l.definition?.kwargs?.placeholder;
|
|
@@ -1078,7 +1078,7 @@ function Ft(e) {
|
|
|
1078
1078
|
isFieldDisabled: i,
|
|
1079
1079
|
resolveNowDate: s,
|
|
1080
1080
|
getTypePlugin: c,
|
|
1081
|
-
getVarInitialDisplayOverride:
|
|
1081
|
+
getVarInitialDisplayOverride: p,
|
|
1082
1082
|
getVarDisplayValue: h,
|
|
1083
1083
|
clearVarInputDisplayOverride: T,
|
|
1084
1084
|
setVarInputDisplayOverride: E,
|