@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.
Files changed (78) hide show
  1. package/README.md +5 -1
  2. package/README.zh-CN.md +5 -1
  3. package/dist/{AimdDnaSequenceField-CjcZ1fpz.js → AimdDnaSequenceField-CC07idJ1.js} +1 -1
  4. package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-4yWDudoV.js → AimdEditor.vue_vue_type_style_index_0_lang-C9xOPWUf.js} +6731 -6636
  5. package/dist/{AimdEntityRefField-CiGP3IyQ.js → AimdEntityRefField-Bc55EWW7.js} +1 -1
  6. 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
  7. package/dist/{AimdMarkdownField-BAJ7otCw.js → AimdMarkdownField-DaYdXrEN.js} +3 -3
  8. package/dist/{AimdMarkdownNoteField-Ca-kRvLz.js → AimdMarkdownNoteField-DE2eyIeG.js} +2 -2
  9. package/dist/{AimdResourceRefField-Yc3j0Pgu.js → AimdResourceRefField-Dv1EfosL.js} +2 -2
  10. package/dist/aimd-recorder.css +1 -1
  11. package/dist/{arc-CAjOitck.js → arc-COg5ULhj.js} +1 -1
  12. package/dist/{architectureDiagram-3BPJPVTR-Dqk9MN5z.js → architectureDiagram-3BPJPVTR-Cl6dfzfF.js} +2 -2
  13. package/dist/{blockDiagram-GPEHLZMM-DQLn0TV3.js → blockDiagram-GPEHLZMM-BACKnDKc.js} +4 -4
  14. package/dist/{c4Diagram-AAUBKEIU-DZZ_f9Fy.js → c4Diagram-AAUBKEIU-zq3HwKb_.js} +2 -2
  15. package/dist/{channel-rjOxq-6_.js → channel-BJlkYmQY.js} +1 -1
  16. package/dist/{chunk-2J33WTMH-tQlc96HU.js → chunk-2J33WTMH-B7oyQtnK.js} +1 -1
  17. package/dist/{chunk-4BX2VUAB-DJYTZE2c.js → chunk-4BX2VUAB-DVmdXl0Z.js} +1 -1
  18. package/dist/{chunk-55IACEB6-CRiTC3Ls.js → chunk-55IACEB6-C6G6r1Hs.js} +1 -1
  19. package/dist/{chunk-727SXJPM-BD2QhWqt.js → chunk-727SXJPM-DRauMxlM.js} +5 -5
  20. package/dist/{chunk-AQP2D5EJ-B0aa98ib.js → chunk-AQP2D5EJ-CFOFED2g.js} +3 -3
  21. package/dist/{chunk-FMBD7UC4-ByDG3u38.js → chunk-FMBD7UC4-D6pbxcrd.js} +1 -1
  22. package/dist/{chunk-ND2GUHAM-Cj1D7wW5.js → chunk-ND2GUHAM-CTRvR7V6.js} +1 -1
  23. package/dist/{chunk-QZHKN3VN-g2yBIr1b.js → chunk-QZHKN3VN-JYLI2Fou.js} +1 -1
  24. package/dist/{classDiagram-v2-Q7XG4LA2-BHrQHB1_.js → classDiagram-4FO5ZUOK-CvWmPFSb.js} +2 -2
  25. package/dist/{classDiagram-4FO5ZUOK-BHrQHB1_.js → classDiagram-v2-Q7XG4LA2-CvWmPFSb.js} +2 -2
  26. package/dist/components.js +3621 -3567
  27. package/dist/composables.js +2 -2
  28. package/dist/{cose-bilkent-S5V4N54A-DoR6eiyr.js → cose-bilkent-S5V4N54A-g5sJsJsO.js} +1 -1
  29. package/dist/{dagre-BM42HDAG-Dojxqnuq.js → dagre-BM42HDAG-CgURX0XQ.js} +3 -3
  30. package/dist/{diagram-2AECGRRQ-CXtd1KGZ.js → diagram-2AECGRRQ-DkDoyjIE.js} +2 -2
  31. package/dist/{diagram-5GNKFQAL-BnJ2DhKE.js → diagram-5GNKFQAL-CjmQeZ1p.js} +3 -3
  32. package/dist/{diagram-KO2AKTUF-DJZFSngn.js → diagram-KO2AKTUF-xkwe4Z-T.js} +2 -2
  33. package/dist/{diagram-LMA3HP47-Dx6TLGwi.js → diagram-LMA3HP47-B4XAB0Ul.js} +2 -2
  34. package/dist/{diagram-OG6HWLK6-BX5km_SS.js → diagram-OG6HWLK6-DIDrCkjk.js} +3 -3
  35. package/dist/{erDiagram-TEJ5UH35-PWmJC0ho.js → erDiagram-TEJ5UH35-HCGS4huB.js} +4 -4
  36. package/dist/{example-record-AHkkwdqV.js → example-record-6TUyxByY.js} +2 -2
  37. package/dist/{flowDiagram-I6XJVG4X-ODu7JRxY.js → flowDiagram-I6XJVG4X-DCR0zjVf.js} +6 -6
  38. package/dist/{ganttDiagram-6RSMTGT7-CZY08InD.js → ganttDiagram-6RSMTGT7-D0cqiqhS.js} +2 -2
  39. package/dist/{gitGraphDiagram-PVQCEYII-1FOO5ySv.js → gitGraphDiagram-PVQCEYII-CjEJrOfY.js} +3 -3
  40. package/dist/{graph-Dx1st3gR.js → graph-vXOGPp0B.js} +1 -1
  41. package/dist/index.js +5 -5
  42. package/dist/{infoDiagram-5YYISTIA-Rqn1YuSl.js → infoDiagram-5YYISTIA-Cwa9CA9R.js} +1 -1
  43. package/dist/{ishikawaDiagram-YF4QCWOH-DTqjtgII.js → ishikawaDiagram-YF4QCWOH-Dtm2EQRM.js} +1 -1
  44. package/dist/{journeyDiagram-JHISSGLW-Dfc2a9K3.js → journeyDiagram-JHISSGLW-Cwsyan_q.js} +4 -4
  45. package/dist/{kanban-definition-UN3LZRKU-DZz55ohU.js → kanban-definition-UN3LZRKU-Cocu6oQX.js} +2 -2
  46. package/dist/{layout-k1LKX9WI.js → layout-BQZ5CVhn.js} +2 -2
  47. package/dist/{linear-DSz9nhkN.js → linear-Dl1Cl9MO.js} +1 -1
  48. package/dist/{mermaid.core-iwpvEomj.js → mermaid.core-CcTsVOub.js} +34 -34
  49. package/dist/{mindmap-definition-RKZ34NQL-CEz0DgQr.js → mindmap-definition-RKZ34NQL-CJD4ZSsv.js} +3 -3
  50. package/dist/{pieDiagram-4H26LBE5-BcuSLA0L.js → pieDiagram-4H26LBE5-miM6t9w3.js} +3 -3
  51. package/dist/{quadrantDiagram-W4KKPZXB-D3IixvxS.js → quadrantDiagram-W4KKPZXB-BbjEmdfP.js} +2 -2
  52. package/dist/record.js +3 -3
  53. package/dist/{requirementDiagram-4Y6WPE33-Bk-lwb2t.js → requirementDiagram-4Y6WPE33-Btxs6bPP.js} +3 -3
  54. package/dist/{sankeyDiagram-5OEKKPKP-BmUhv9kI.js → sankeyDiagram-5OEKKPKP-BFlv9Za2.js} +1 -1
  55. package/dist/{sequenceDiagram-3UESZ5HK-BhAJ2Wz1.js → sequenceDiagram-3UESZ5HK-CzsCwM84.js} +3 -3
  56. package/dist/{stateDiagram-AJRCARHV-DvH3mI9R.js → stateDiagram-AJRCARHV-Cr-X25OO.js} +4 -4
  57. package/dist/{stateDiagram-v2-BHNVJYJU-DvkU8jpH.js → stateDiagram-v2-BHNVJYJU-BU8pS5zo.js} +2 -2
  58. package/dist/{timeline-definition-PNZ67QCA-CQFLx2MG.js → timeline-definition-PNZ67QCA-CCxtC3I1.js} +2 -2
  59. package/dist/{useFieldRendering-Bj2H9CPx.js → useFieldRendering-fRL0kBSG.js} +57 -57
  60. package/dist/{useVarHelpers-Bf3wNHxF.js → useVarHelpers-CC6Jk-Vu.js} +1308 -1292
  61. package/dist/{validation-CH6pi638.js → validation-qjnL_HTT.js} +1431 -1426
  62. package/dist/{vennDiagram-CIIHVFJN-D_qwBk9R.js → vennDiagram-CIIHVFJN-DoQdCEMx.js} +1 -1
  63. package/dist/{wardleyDiagram-YWT4CUSO-BezUR1jm.js → wardleyDiagram-YWT4CUSO-3t148oYZ.js} +2 -2
  64. package/dist/{xychartDiagram-2RQKCTM6-CTFs3FiD.js → xychartDiagram-2RQKCTM6-DCni6kCQ.js} +2 -2
  65. package/package.json +4 -4
  66. package/src/__tests__/field-panel.test.ts +45 -0
  67. package/src/__tests__/record-validation.test.ts +41 -3
  68. package/src/__tests__/var-field-render.test.ts +28 -0
  69. package/src/components/AimdRecorder.vue +64 -13
  70. package/src/components/AimdRecorderWysiwygSurface.vue +5 -0
  71. package/src/components/AimdVarField.vue +41 -17
  72. package/src/composables/__tests__/useVarHelpers.test.ts +7 -1
  73. package/src/composables/useFieldPresentation.ts +2 -2
  74. package/src/composables/useFieldRendering.ts +2 -1
  75. package/src/locales.ts +12 -0
  76. package/src/record/validation.ts +18 -9
  77. package/src/styles/recorder-compact.css +17 -0
  78. 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-B0aa98ib.js";
2
- import { _ as i } from "./mermaid.core-iwpvEomj.js";
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() {
@@ -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-iwpvEomj.js";
2
- import { d as ot } from "./arc-CAjOitck.js";
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 $ } from "vue";
2
- import { f as q, 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, a0 as me, C as pe, B as ge, ag as ye, bd as B, I as H, q as be, ai as we, H as he, b2 as Ae } from "./useVarHelpers-Bf3wNHxF.js";
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 = $({}), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
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 g(o, a) {
140
+ function p(o, a) {
141
141
  const u = c(o);
142
142
  if (!u) return;
143
- const m = e.record.var[o], p = u.isList ? [...Array.isArray(m) ? m : [], a] : a;
144
- e.onChange(o, p), d(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(p)
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: q(e.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: q(e.record),
169
+ record: B(e.record),
170
170
  signal: a
171
171
  });
172
- a.aborted || g(o.field.id, ve(m, o));
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 p = await h(a);
188
+ const g = await h(a);
189
189
  if (u !== s) return;
190
- if (!p) {
190
+ if (!g) {
191
191
  d(o, { status: "error", error: "permission_denied" });
192
192
  return;
193
193
  }
194
- } catch (p) {
195
- const O = X(p);
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 p = a.collector.interval_ms ?? 1e3;
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(p, m.signal);
211
+ await Fe(g, m.signal);
212
212
  d(o, { status: "completed" });
213
- } catch (p) {
213
+ } catch (g) {
214
214
  if (!m.signal.aborted) {
215
- const O = X(p);
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 : (g(o, xe(a, u, m, e.actorId())), d(o, { status: "completed", error: void 0 }), !0);
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 z(e, t) {
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" && z(i, t);
328
- else n && typeof n == "object" && typeof n.type == "string" && z(n, t);
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 (z(r, (s) => {
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("."), g = e.var[c];
543
- if (Array.isArray(g) && d) {
544
- Array.isArray(i) ? g.forEach((h, T) => {
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
- }) : g.forEach((h) => {
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 P(e, t) {
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) => P(r, t[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 && P(e[i], t[i]));
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, g] of Object.entries(f))
782
- P(t[d], g) || (t[d] = g, i.add(d));
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 g() {
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: g,
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], g = (f ? f(c) : void 0) ?? i;
850
- return s.wrapField ? s.wrapField(t, e, g) : g;
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, g = null, h = null, T = null, E = null, _ = 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 I = V.splice(w, 1)[0];
888
- V.splice(b, 0, I), E = at(I), _ && clearTimeout(_), _ = setTimeout(() => {
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), g && (g.classList.remove("aimd-rec-inline-table__drag-handle--dragging"), g = 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);
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 }, g = b.currentTarget instanceof HTMLElement ? b.currentTarget : null, h = g?.closest("tr"), T = g?.closest("table"), g?.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}`)));
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 p(y, w, b, j) {
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: p,
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 g(l, o, a) {
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, p) {
1014
- const O = t[l], C = we(u), y = c(p, a);
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, p, u, m)
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 p = H(o, {
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 p === "boolean-select" || B(o) && p !== "scalar-list" && p !== "checkbox" ? null : p === "multi-select" ? [] : p === "checkbox" ? !1 : p === "scalar-list" ? [] : p === "dna" ? L(void 0) : m === "currenttime" ? be(s()) : m === "username" && typeof e.currentUserName() == "string" ? e.currentUserName() : "";
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 p = c(a, o);
1048
- if (p?.normalizeValue)
1049
- return p.normalizeValue(
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) : B(o) && m !== "checkbox" && (u === null || typeof u > "u" || u === "") ? null : 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: g,
1081
+ getVarInitialDisplayOverride: p,
1082
1082
  getVarDisplayValue: h,
1083
1083
  clearVarInputDisplayOverride: T,
1084
1084
  setVarInputDisplayOverride: E,