@zeng-alt/formkit-form-builder 1.2.0 → 1.3.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.
@@ -4012,7 +4012,7 @@ function ql(e, t, n) {
4012
4012
  }
4013
4013
  function Jl(e, t) {
4014
4014
  let n = t?.renderAs ?? "formkit", r = ql(e, n, t?.target ?? e.type);
4015
- if (e.name ? Gl(r, "name", e.name, n) : e.id && Gl(r, "name", e.id, n), e.value !== void 0 && Gl(r, "value", e.value, n), typeof e.expr == "string" && e.expr.trim() && (Gl(r, "expr", e.expr, n), n === "formkit" ? delete r.value : n === "cmp" ? delete r.props?.value : delete r.attrs?.value), Kl(r, { ...Fl(e.validation) }, n), (Array.isArray(e.options) ? e.options.length : e.options !== void 0) && Gl(r, "options", e.options, n), e.props) {
4015
+ if (e.name ? Gl(r, "name", e.name, n) : e.id && Gl(r, "name", e.id, n), e.value !== void 0 && Gl(r, "value", e.value, n), typeof e.expr == "string" && e.expr.trim() && (r.expr = e.expr, n === "formkit" ? delete r.value : n === "cmp" ? delete r.props?.value : delete r.attrs?.value), Kl(r, { ...Fl(e.validation) }, n), (Array.isArray(e.options) ? e.options.length : e.options !== void 0) && Gl(r, "options", e.options, n), e.props) {
4016
4016
  let t = {};
4017
4017
  for (let [i, a] of Object.entries(e.props)) n === "formkit" && fu.has(i) ? r[i] = a : t[i] = a;
4018
4018
  Object.keys(t).length && (n === "cmp" ? r.props = {
@@ -32341,7 +32341,7 @@ var xG = {
32341
32341
  itemIndex: {}
32342
32342
  },
32343
32343
  setup(o) {
32344
- let l = o, u = m("previewListRestore", null), d = m("previewListInteractive", !0), { t: f } = V(), p = zJ(), h = t(() => typeof l.label == "string" && l.label.trim() ? l.label.trim() : ""), g = t(() => l.bordered ?? !0), _ = t(() => l.nodeKey ?? l.listKey ?? ""), v = t(() => typeof l.name == "string" && l.name.trim() ? l.name.trim() : l.listKey || "list"), b = t(() => Array.isArray(l.modelValue) ? l.modelValue : Array.isArray(l.children) ? l.children : []), S = (e) => {
32344
+ let l = o, u = m("previewListRestore", null), d = m("previewListInteractive", !0), { t: f } = V(), p = BJ(), h = t(() => typeof l.label == "string" && l.label.trim() ? l.label.trim() : ""), g = t(() => l.bordered ?? !0), _ = t(() => l.nodeKey ?? l.listKey ?? ""), v = t(() => typeof l.name == "string" && l.name.trim() ? l.name.trim() : l.listKey || "list"), b = t(() => Array.isArray(l.modelValue) ? l.modelValue : Array.isArray(l.children) ? l.children : []), S = (e) => {
32345
32345
  let t = e;
32346
32346
  for (; t && typeof t.$el == "string" && Array.isArray(t.children) && t.children.length === 1;) t = t.children[0];
32347
32347
  return t;
@@ -32599,7 +32599,7 @@ var NG = { class: "flex flex-col gap-0.5" }, PG = {
32599
32599
  size: {}
32600
32600
  },
32601
32601
  setup(e) {
32602
- let s = e, { t: l } = V(), u = zJ(), d = t(() => typeof s.label == "string" && s.label.trim() ? s.label.trim() : ""), f = t(() => typeof s.help == "string" && s.help.trim() ? s.help.trim() : ""), p = t(() => Array.isArray(s.modelValue) ? s.modelValue : Array.isArray(s.children) ? s.children : []), m = t(() => s.bordered ?? !0), h = t(() => s.embedded ?? !1), g = t(() => s.hoverable ?? !1), _ = t(() => s.size ?? "medium"), v = t(() => !!(d.value || f.value));
32602
+ let s = e, { t: l } = V(), u = BJ(), d = t(() => typeof s.label == "string" && s.label.trim() ? s.label.trim() : ""), f = t(() => typeof s.help == "string" && s.help.trim() ? s.help.trim() : ""), p = t(() => Array.isArray(s.modelValue) ? s.modelValue : Array.isArray(s.children) ? s.children : []), m = t(() => s.bordered ?? !0), h = t(() => s.embedded ?? !1), g = t(() => s.hoverable ?? !1), _ = t(() => s.size ?? "medium"), v = t(() => !!(d.value || f.value));
32603
32603
  return (e, t) => (O(), n(M(ve), {
32604
32604
  class: "w-full",
32605
32605
  bordered: m.value,
@@ -32746,7 +32746,7 @@ var GG = { class: "w-full" }, KG = {
32746
32746
  help: {}
32747
32747
  },
32748
32748
  setup(e) {
32749
- let a = e, { t: o } = V(), s = zJ(), l = t(() => typeof a.label == "string" && a.label.trim() ? a.label.trim() : ""), u = t(() => typeof a.help == "string" && a.help.trim() ? a.help.trim() : ""), d = t(() => !!(l.value || u.value)), f = t(() => Array.isArray(a.modelValue) ? a.modelValue : Array.isArray(a.children) ? a.children : []);
32749
+ let a = e, { t: o } = V(), s = BJ(), l = t(() => typeof a.label == "string" && a.label.trim() ? a.label.trim() : ""), u = t(() => typeof a.help == "string" && a.help.trim() ? a.help.trim() : ""), d = t(() => !!(l.value || u.value)), f = t(() => Array.isArray(a.modelValue) ? a.modelValue : Array.isArray(a.children) ? a.children : []);
32750
32750
  return (e, t) => (O(), i("div", GG, [
32751
32751
  d.value ? (O(), i("div", KG, [l.value ? (O(), i("div", qG, j(l.value), 1)) : r("", !0)])) : r("", !0),
32752
32752
  c(M(Be), { class: "w-full" }, {
@@ -32863,7 +32863,7 @@ var eK = { class: "w-full" }, tK = {
32863
32863
  vertical: { type: Boolean }
32864
32864
  },
32865
32865
  setup(e) {
32866
- let r = e, { t: a } = V(), o = zJ(), s = t(() => Array.isArray(r.modelValue) ? r.modelValue : Array.isArray(r.children) ? r.children : []);
32866
+ let r = e, { t: a } = V(), o = BJ(), s = t(() => Array.isArray(r.modelValue) ? r.modelValue : Array.isArray(r.children) ? r.children : []);
32867
32867
  return (e, t) => (O(), i("div", eK, [c(M(_e), {
32868
32868
  size: r.size,
32869
32869
  vertical: r.vertical,
@@ -32885,46 +32885,53 @@ function rK(e, t) {
32885
32885
  for (; n && n !== t;) r += n.offsetLeft, n = n.offsetParent;
32886
32886
  return n === t ? r : null;
32887
32887
  }
32888
- function iK(e) {
32889
- let t = A(void 0), n = A(null), r = () => {
32890
- let r = e.badgeRef.value;
32891
- if (!r || !e.enabled.value) {
32892
- t.value = void 0;
32888
+ function iK(e, t) {
32889
+ let n = e, r = 0;
32890
+ for (; n && n !== t;) r += n.offsetTop, n = n.offsetParent;
32891
+ return n === t ? r : null;
32892
+ }
32893
+ function aK(e) {
32894
+ let t = A(void 0), n = A(void 0), r = A(null), i = () => {
32895
+ let i = e.badgeRef.value;
32896
+ if (!i || !e.enabled.value) {
32897
+ t.value = void 0, n.value = void 0;
32893
32898
  return;
32894
32899
  }
32895
- let i = r.querySelector(e.childSelector);
32896
- if (!i) {
32897
- n.value = null, t.value = void 0;
32900
+ let a = i.querySelector(e.childSelector);
32901
+ if (!a) {
32902
+ r.value = null, t.value = void 0, n.value = void 0;
32898
32903
  return;
32899
32904
  }
32900
- n.value !== i && (n.value = i);
32901
- let a, o = rK(i, r);
32902
- if (o !== null) a = o + i.offsetWidth;
32905
+ r.value !== a && (r.value = a);
32906
+ let o, s = rK(a, i);
32907
+ if (s !== null) o = s + a.offsetWidth;
32903
32908
  else {
32904
- let e = r.getBoundingClientRect();
32905
- a = i.getBoundingClientRect().right - e.left;
32906
- }
32907
- t.value = Number.isFinite(a) && a > 0 ? `${a}px` : void 0;
32908
- }, i = () => b(r);
32909
- Ft(e.badgeRef, r), Ft(n, r);
32910
- let a = 0, o = () => cancelAnimationFrame(a), s = () => {
32911
- o();
32912
- let e = 0, n = 0, i, s = () => {
32913
- n >= 5 || e++ > 120 || (r(), t.value === i ? n++ : (n = 0, i = t.value), a = requestAnimationFrame(s));
32909
+ let e = i.getBoundingClientRect();
32910
+ o = a.getBoundingClientRect().right - e.left;
32911
+ }
32912
+ let c = iK(a, i), l = c === null ? a.getBoundingClientRect().top - i.getBoundingClientRect().top : c;
32913
+ t.value = Number.isFinite(o) && o > 0 ? `${o}px` : void 0, n.value = Number.isFinite(l) && l > 0 ? `${l}px` : void 0;
32914
+ }, a = () => b(i);
32915
+ Ft(e.badgeRef, i), Ft(r, i);
32916
+ let o = 0, s = () => cancelAnimationFrame(o), c = () => {
32917
+ s();
32918
+ let e = 0, n = 0, r, a = () => {
32919
+ n >= 5 || e++ > 120 || (i(), t.value === r ? n++ : (n = 0, r = t.value), o = requestAnimationFrame(a));
32914
32920
  };
32915
- a = requestAnimationFrame(s);
32921
+ o = requestAnimationFrame(a);
32916
32922
  };
32917
- return N([e.badgeRef, e.enabled], ([e, n]) => {
32918
- e && n ? s() : n || (t.value = void 0);
32919
- }, { immediate: !0 }), N(() => [e.enabled.value, e.refreshTrigger?.value], i, { deep: !0 }), E(o), {
32923
+ return N([e.badgeRef, e.enabled], ([e, r]) => {
32924
+ e && r ? c() : r || (t.value = void 0, n.value = void 0);
32925
+ }, { immediate: !0 }), N(() => [e.enabled.value, e.refreshTrigger?.value], a, { deep: !0 }), E(s), {
32920
32926
  supLeft: t,
32921
- refresh: i
32927
+ supTop: n,
32928
+ refresh: a
32922
32929
  };
32923
32930
  }
32924
32931
  //#endregion
32925
32932
  //#region src/expression/evaluator.ts
32926
32933
  id();
32927
- function aK(e) {
32934
+ function oK(e) {
32928
32935
  let t = uu(e), { deps: n } = nd(t, {});
32929
32936
  return {
32930
32937
  ast: t,
@@ -32938,13 +32945,13 @@ function aK(e) {
32938
32945
  }
32939
32946
  //#endregion
32940
32947
  //#region src/composables/use-badge-value.ts
32941
- function oK(e) {
32948
+ function sK(e) {
32942
32949
  let n = m("previewFormData", null);
32943
32950
  return { badgeValue: t(() => {
32944
32951
  let t = e.value;
32945
32952
  if (typeof t == "string" && t.includes("$")) {
32946
32953
  try {
32947
- let e = n?.value ?? {}, r = aK(t).evaluate(e);
32954
+ let e = n?.value ?? {}, r = oK(t).evaluate(e);
32948
32955
  if (r != null && r !== "" && !(typeof r == "number" && Number.isNaN(r))) return r;
32949
32956
  } catch {}
32950
32957
  return t;
@@ -32953,16 +32960,16 @@ function oK(e) {
32953
32960
  }) };
32954
32961
  }
32955
32962
  H(), Xd(), wl();
32956
- var sK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, cK = {
32963
+ var cK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, lK = {
32957
32964
  key: 0,
32958
32965
  class: "flex flex-col gap-0.5 px-3 py-2 border-b border-border/50"
32959
- }, lK = {
32966
+ }, uK = {
32960
32967
  key: 0,
32961
32968
  class: "text-sm font-medium"
32962
- }, uK = {
32969
+ }, dK = {
32963
32970
  key: 1,
32964
32971
  class: "text-xs text-muted-foreground"
32965
- }, dK = { class: "p-2" }, fK = /* @__PURE__ */ gG(/* @__PURE__ */ u({
32972
+ }, fK = { class: "p-2" }, pK = /* @__PURE__ */ gG(/* @__PURE__ */ u({
32966
32973
  __name: "BadgeContainer",
32967
32974
  props: {
32968
32975
  badgeKey: {},
@@ -32995,18 +33002,21 @@ var sK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, cK =
32995
33002
  }), _ = () => {
32996
33003
  let e = h(g.items.value);
32997
33004
  g.items.value = e, g.emitUpdate();
32998
- }, v = t(() => typeof l.label == "string" && l.label.trim() ? l.label.trim() : ""), y = t(() => typeof l.help == "string" && l.help.trim() ? l.help.trim() : ""), b = t(() => !!(v.value || y.value)), x = t(() => g.items.value.length > 0), S = A(null), { supLeft: w } = iK({
33005
+ }, v = t(() => typeof l.label == "string" && l.label.trim() ? l.label.trim() : ""), y = t(() => typeof l.help == "string" && l.help.trim() ? l.help.trim() : ""), b = t(() => !!(v.value || y.value)), x = t(() => g.items.value.length > 0), S = A(null), { supLeft: w, supTop: T } = aK({
32999
33006
  badgeRef: S,
33000
33007
  childSelector: "li[data-canvas-item]",
33001
33008
  enabled: x,
33002
33009
  refreshTrigger: g.items
33003
- }), T = t(() => w.value ? { "--badge-sup-left": w.value } : void 0), { badgeValue: E } = oK(t(() => typeof l.value == "string" && l.value.trim() ? l.value.trim() : l.value)), D = t(() => (l.show ?? !0) && x.value), k = t(() => l.dot ?? !1), ee = t(() => l.showZero ?? !1), te = t(() => l.processing ?? !1), ne = t(() => typeof l.max == "number" && Number.isFinite(l.max) ? l.max : void 0), re = t(() => l.type ?? "error"), ie = t(() => typeof l.color == "string" && l.color.trim() ? l.color.trim() : void 0), ae = t(() => Array.isArray(l.offset) && l.offset.length ? l.offset : void 0), oe = (e, t) => {
33010
+ }), E = t(() => w.value || T.value ? {
33011
+ "--badge-sup-left": w.value,
33012
+ "--badge-sup-top": T.value
33013
+ } : void 0), { badgeValue: D } = sK(t(() => typeof l.value == "string" && l.value.trim() ? l.value.trim() : l.value)), k = t(() => (l.show ?? !0) && x.value), ee = t(() => l.dot ?? !1), te = t(() => l.showZero ?? !1), ne = t(() => l.processing ?? !1), re = t(() => typeof l.max == "number" && Number.isFinite(l.max) ? l.max : void 0), ie = t(() => l.type ?? "error"), ae = t(() => typeof l.color == "string" && l.color.trim() ? l.color.trim() : void 0), oe = t(() => Array.isArray(l.offset) && l.offset.length ? l.offset : void 0), N = (e, t) => {
33004
33014
  let n = e?.__key;
33005
33015
  n && (p?.selectByKey ? p.selectByKey(n) : u("select", n));
33006
- }, N = (e) => {
33016
+ }, se = (e) => {
33007
33017
  let t = g.items.value.filter((t, n) => n !== e);
33008
33018
  g.items.value = t, _();
33009
- }, se = (e) => {
33019
+ }, ce = (e) => {
33010
33020
  let t = g.items.value[e];
33011
33021
  if (!t) return;
33012
33022
  let n = /* @__PURE__ */ new Set();
@@ -33014,21 +33024,21 @@ var sK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, cK =
33014
33024
  let r = Cl(t, n), i = [...g.items.value];
33015
33025
  i.splice(e + 1, 0, r), g.items.value = i, _();
33016
33026
  };
33017
- return (e, t) => (O(), i("div", sK, [b.value ? (O(), i("div", cK, [v.value ? (O(), i("div", lK, j(v.value), 1)) : r("", !0), y.value ? (O(), i("div", uK, j(y.value), 1)) : r("", !0)])) : r("", !0), a("div", dK, [a("div", {
33027
+ return (e, t) => (O(), i("div", cK, [b.value ? (O(), i("div", lK, [v.value ? (O(), i("div", uK, j(v.value), 1)) : r("", !0), y.value ? (O(), i("div", dK, j(y.value), 1)) : r("", !0)])) : r("", !0), a("div", fK, [a("div", {
33018
33028
  ref_key: "badgeWrapRef",
33019
33029
  ref: S,
33020
33030
  class: "w-full"
33021
33031
  }, [c(M(he), {
33022
- value: M(E),
33023
- max: ne.value,
33024
- dot: k.value,
33025
- show: D.value,
33026
- "show-zero": ee.value,
33027
- processing: te.value,
33028
- type: re.value,
33029
- color: ie.value,
33030
- offset: ae.value,
33031
- style: C(T.value)
33032
+ value: M(D),
33033
+ max: re.value,
33034
+ dot: ee.value,
33035
+ show: k.value,
33036
+ "show-zero": te.value,
33037
+ processing: ne.value,
33038
+ type: ie.value,
33039
+ color: ae.value,
33040
+ offset: oe.value,
33041
+ style: C(E.value)
33032
33042
  }, {
33033
33043
  default: P(() => [c(_G, {
33034
33044
  "container-ref": M(g).containerRef,
@@ -33043,9 +33053,9 @@ var sK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, cK =
33043
33053
  "delete-tooltip-text": M(d)("builder.deleteField"),
33044
33054
  "data-attrs": { "data-badge-key": l.badgeKey },
33045
33055
  "set-nested-parent-on-root": M(g).setNestedParentOnRoot,
33046
- "on-select": oe,
33047
- "on-delete": N,
33048
- "on-copy": se,
33056
+ "on-select": N,
33057
+ "on-delete": se,
33058
+ "on-copy": ce,
33049
33059
  "on-resize-end": _,
33050
33060
  "ul-class": "p-1"
33051
33061
  }, null, 8, [
@@ -33075,23 +33085,23 @@ var sK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, cK =
33075
33085
  "style"
33076
33086
  ])], 512)])]));
33077
33087
  }
33078
- }), [["__scopeId", "data-v-75b7d0b9"]]);
33088
+ }), [["__scopeId", "data-v-09b9a3c4"]]);
33079
33089
  //#endregion
33080
33090
  //#region src/components/ui/containers/badge/BadgeContainerPreview.vue?vue&type=script&setup=true&lang.ts
33081
33091
  H();
33082
- var pK = { class: "w-full" }, mK = {
33092
+ var mK = { class: "w-full" }, hK = {
33083
33093
  key: 0,
33084
33094
  class: "flex flex-col gap-0.5 mb-1"
33085
- }, hK = {
33095
+ }, gK = {
33086
33096
  key: 0,
33087
33097
  class: "text-sm font-medium"
33088
- }, gK = {
33098
+ }, _K = {
33089
33099
  key: 1,
33090
33100
  class: "text-xs text-muted-foreground"
33091
- }, _K = { class: "w-full grid grid-cols-12 gap-x-4 gap-y-2" }, vK = {
33101
+ }, vK = { class: "w-full grid grid-cols-12 gap-x-4 gap-y-2" }, yK = {
33092
33102
  key: 1,
33093
33103
  class: "flex w-full min-h-[120px] items-center justify-center rounded-xl border border-dashed border-border/50"
33094
- }, yK = /* @__PURE__ */ gG(/* @__PURE__ */ u({
33104
+ }, bK = /* @__PURE__ */ gG(/* @__PURE__ */ u({
33095
33105
  __name: "BadgeContainerPreview",
33096
33106
  props: {
33097
33107
  children: {},
@@ -33109,30 +33119,33 @@ var pK = { class: "w-full" }, mK = {
33109
33119
  offset: {}
33110
33120
  },
33111
33121
  setup(e) {
33112
- let o = e, { t: s } = V(), l = zJ(), u = t(() => typeof o.label == "string" && o.label.trim() ? o.label.trim() : ""), d = t(() => typeof o.help == "string" && o.help.trim() ? o.help.trim() : ""), f = t(() => !!(u.value || d.value)), p = t(() => Array.isArray(o.modelValue) ? o.modelValue : Array.isArray(o.children) ? o.children : []), m = t(() => p.value.length > 0), h = A(null), { supLeft: g } = iK({
33122
+ let o = e, { t: s } = V(), l = BJ(), u = t(() => typeof o.label == "string" && o.label.trim() ? o.label.trim() : ""), d = t(() => typeof o.help == "string" && o.help.trim() ? o.help.trim() : ""), f = t(() => !!(u.value || d.value)), p = t(() => Array.isArray(o.modelValue) ? o.modelValue : Array.isArray(o.children) ? o.children : []), m = t(() => p.value.length > 0), h = A(null), { supLeft: g, supTop: _ } = aK({
33113
33123
  badgeRef: h,
33114
33124
  childSelector: ".formkit-outer",
33115
33125
  enabled: m,
33116
33126
  refreshTrigger: p
33117
- }), _ = t(() => g.value ? { "--badge-sup-left": g.value } : void 0), { badgeValue: v } = oK(t(() => typeof o.value == "string" && o.value.trim() ? o.value.trim() : o.value)), y = t(() => (o.show ?? !0) && m.value), b = t(() => o.dot ?? !1), x = t(() => o.showZero ?? !1), S = t(() => o.processing ?? !1), w = t(() => typeof o.max == "number" && Number.isFinite(o.max) ? o.max : void 0), T = t(() => o.type ?? "error"), E = t(() => typeof o.color == "string" && o.color.trim() ? o.color.trim() : void 0), D = t(() => Array.isArray(o.offset) && o.offset.length ? o.offset : void 0);
33118
- return (e, t) => (O(), i("div", pK, [f.value ? (O(), i("div", mK, [u.value ? (O(), i("div", hK, j(u.value), 1)) : r("", !0), d.value ? (O(), i("div", gK, j(d.value), 1)) : r("", !0)])) : r("", !0), a("div", {
33127
+ }), v = t(() => g.value || _.value ? {
33128
+ "--badge-sup-left": g.value,
33129
+ "--badge-sup-top": _.value
33130
+ } : void 0), { badgeValue: y } = sK(t(() => typeof o.value == "string" && o.value.trim() ? o.value.trim() : o.value)), b = t(() => (o.show ?? !0) && m.value), x = t(() => o.dot ?? !1), S = t(() => o.showZero ?? !1), w = t(() => o.processing ?? !1), T = t(() => typeof o.max == "number" && Number.isFinite(o.max) ? o.max : void 0), E = t(() => o.type ?? "error"), D = t(() => typeof o.color == "string" && o.color.trim() ? o.color.trim() : void 0), k = t(() => Array.isArray(o.offset) && o.offset.length ? o.offset : void 0);
33131
+ return (e, t) => (O(), i("div", mK, [f.value ? (O(), i("div", hK, [u.value ? (O(), i("div", gK, j(u.value), 1)) : r("", !0), d.value ? (O(), i("div", _K, j(d.value), 1)) : r("", !0)])) : r("", !0), a("div", {
33119
33132
  ref_key: "badgeWrapRef",
33120
33133
  ref: h,
33121
33134
  class: "w-full"
33122
33135
  }, [m.value ? (O(), n(M(he), {
33123
33136
  key: 0,
33124
- value: M(v),
33125
- max: w.value,
33126
- dot: b.value,
33127
- show: y.value,
33128
- "show-zero": x.value,
33129
- processing: S.value,
33130
- type: T.value,
33131
- color: E.value,
33132
- offset: D.value,
33133
- style: C(_.value)
33137
+ value: M(y),
33138
+ max: T.value,
33139
+ dot: x.value,
33140
+ show: b.value,
33141
+ "show-zero": S.value,
33142
+ processing: w.value,
33143
+ type: E.value,
33144
+ color: D.value,
33145
+ offset: k.value,
33146
+ style: C(v.value)
33134
33147
  }, {
33135
- default: P(() => [a("div", _K, [c(M(Ic), {
33148
+ default: P(() => [a("div", vK, [c(M(Ic), {
33136
33149
  schema: p.value,
33137
33150
  library: M(l)
33138
33151
  }, null, 8, ["schema", "library"])])]),
@@ -33148,23 +33161,23 @@ var pK = { class: "w-full" }, mK = {
33148
33161
  "color",
33149
33162
  "offset",
33150
33163
  "style"
33151
- ])) : (O(), i("div", vK, [c(M(je), { description: M(s)("builder.listDropHere") }, null, 8, ["description"])]))], 512)]));
33164
+ ])) : (O(), i("div", yK, [c(M(je), { description: M(s)("builder.listDropHere") }, null, 8, ["description"])]))], 512)]));
33152
33165
  }
33153
- }), [["__scopeId", "data-v-4e2a11e7"]]);
33166
+ }), [["__scopeId", "data-v-f73f6f5b"]]);
33154
33167
  H(), Xd(), wl();
33155
- var bK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, xK = {
33168
+ var xK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, SK = {
33156
33169
  key: 0,
33157
33170
  class: "flex flex-col gap-0.5 px-3 py-2 border-b border-border/50"
33158
- }, SK = {
33171
+ }, CK = {
33159
33172
  key: 0,
33160
33173
  class: "text-xs text-muted-foreground"
33161
- }, CK = {
33174
+ }, wK = {
33162
33175
  key: 1,
33163
33176
  class: "text-[11px] text-muted-foreground"
33164
- }, wK = { class: "px-2 pt-2" }, TK = { class: "flex items-center gap-1 border-b border-border/50 pb-1" }, EK = ["onClick", "onDblclick"], DK = {
33177
+ }, TK = { class: "px-2 pt-2" }, EK = { class: "flex items-center gap-1 border-b border-border/50 pb-1" }, DK = ["onClick", "onDblclick"], OK = {
33165
33178
  key: 1,
33166
33179
  class: "select-none"
33167
- }, OK = { class: "p-2" }, kK = /* @__PURE__ */ u({
33180
+ }, kK = { class: "p-2" }, AK = /* @__PURE__ */ u({
33168
33181
  __name: "TabsContainer",
33169
33182
  props: {
33170
33183
  tabsKey: {},
@@ -33254,9 +33267,9 @@ var bK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, xK =
33254
33267
  };
33255
33268
  return (t, o) => {
33256
33269
  let l = ze, d = F;
33257
- return O(), i("div", bK, [
33258
- f.label || f.help ? (O(), i("div", xK, [f.label ? (O(), i("div", SK, j(f.label), 1)) : r("", !0), f.help ? (O(), i("div", CK, j(f.help), 1)) : r("", !0)])) : r("", !0),
33259
- a("div", wK, [a("div", TK, [(O(!0), i(e, null, te(g.value, (e, t) => (O(), i("div", {
33270
+ return O(), i("div", xK, [
33271
+ f.label || f.help ? (O(), i("div", SK, [f.label ? (O(), i("div", CK, j(f.label), 1)) : r("", !0), f.help ? (O(), i("div", wK, j(f.help), 1)) : r("", !0)])) : r("", !0),
33272
+ a("div", TK, [a("div", EK, [(O(!0), i(e, null, te(g.value, (e, t) => (O(), i("div", {
33260
33273
  key: e.__key || t,
33261
33274
  class: x(["relative flex items-center rounded-md px-2 py-1 text-xs select-none", t === v.value ? "bg-background border border-[#a277ff] shadow-[0_0_0_3px_rgba(79,110,247,0.12)]" : "text-muted-foreground border border-transparent hover:border-[#7c9ef8] hover:bg-[#f0f4ff] dark:hover:bg-[rgba(100,130,255,0.07)]"]),
33262
33275
  onClick: (e) => D(t),
@@ -33269,7 +33282,7 @@ var bK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, xK =
33269
33282
  "onUpdate:value": o[0] ||= (e) => ne.value = e,
33270
33283
  onBlur: ie,
33271
33284
  onKeydown: [ce(le(ie, ["stop", "prevent"]), ["enter"]), o[1] ||= ce(le((e) => ee.value = null, ["stop", "prevent"]), ["esc"])]
33272
- }, null, 8, ["value", "onKeydown"])) : (O(), i("span", DK, j(E(e, t)), 1))], 42, EK))), 128)), c(d, {
33285
+ }, null, 8, ["value", "onKeydown"])) : (O(), i("span", OK, j(E(e, t)), 1))], 42, DK))), 128)), c(d, {
33273
33286
  quaternary: "",
33274
33287
  size: "small",
33275
33288
  class: "!h-7 !px-2",
@@ -33278,7 +33291,7 @@ var bK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, xK =
33278
33291
  default: P(() => [...o[2] ||= [s(" + ", -1)]]),
33279
33292
  _: 1
33280
33293
  })])]),
33281
- a("div", OK, [c(_G, {
33294
+ a("div", kK, [c(_G, {
33282
33295
  "container-ref": M(T).containerRef,
33283
33296
  items: M(T).items,
33284
33297
  "selected-key": M(u),
@@ -33317,16 +33330,16 @@ var bK = { class: "w-full rounded-xl border border-border/50 bg-card/50" }, xK =
33317
33330
  //#endregion
33318
33331
  //#region src/components/ui/containers/tabs/TabsContainerPreview.vue?vue&type=script&setup=true&lang.ts
33319
33332
  H();
33320
- var AK = { class: "w-full" }, jK = {
33333
+ var jK = { class: "w-full" }, MK = {
33321
33334
  key: 0,
33322
33335
  class: "flex flex-col gap-0.5 mb-2"
33323
- }, MK = {
33336
+ }, NK = {
33324
33337
  key: 0,
33325
33338
  class: "text-sm font-medium"
33326
- }, NK = {
33339
+ }, PK = {
33327
33340
  key: 1,
33328
33341
  class: "text-xs text-muted-foreground"
33329
- }, PK = /* @__PURE__ */ u({
33342
+ }, FK = /* @__PURE__ */ u({
33330
33343
  __name: "TabsContainerPreview",
33331
33344
  props: {
33332
33345
  children: {},
@@ -33340,13 +33353,13 @@ var AK = { class: "w-full" }, jK = {
33340
33353
  closable: { type: Boolean }
33341
33354
  },
33342
33355
  setup(o) {
33343
- let s = o, { t: c } = V(), l = zJ(), u = t(() => Array.isArray(s.modelValue) ? s.modelValue : Array.isArray(s.children) ? s.children : []), d = (e, t) => {
33356
+ let s = o, { t: c } = V(), l = BJ(), u = t(() => Array.isArray(s.modelValue) ? s.modelValue : Array.isArray(s.children) ? s.children : []), d = (e, t) => {
33344
33357
  let n = e?.label ?? e?.props?.label;
33345
33358
  if (typeof n == "string" && n.trim()) return n.trim();
33346
33359
  let r = e?.name;
33347
33360
  return typeof r == "string" && r.trim() ? r.trim() : `Tab ${t + 1}`;
33348
33361
  }, f = t(() => !!(s.closable ?? !1));
33349
- return (t, o) => (O(), i("div", AK, [s.label || s.help ? (O(), i("div", jK, [s.label ? (O(), i("div", MK, j(s.label), 1)) : r("", !0), s.help ? (O(), i("div", NK, j(s.help), 1)) : r("", !0)])) : r("", !0), u.value.length === 0 ? (O(), n(M(je), {
33362
+ return (t, o) => (O(), i("div", jK, [s.label || s.help ? (O(), i("div", MK, [s.label ? (O(), i("div", NK, j(s.label), 1)) : r("", !0), s.help ? (O(), i("div", PK, j(s.help), 1)) : r("", !0)])) : r("", !0), u.value.length === 0 ? (O(), n(M(je), {
33350
33363
  key: 1,
33351
33364
  description: M(c)("builder.listDropHere")
33352
33365
  }, null, 8, ["description"])) : (O(), n(M(mt), {
@@ -33387,19 +33400,19 @@ var AK = { class: "w-full" }, jK = {
33387
33400
  }
33388
33401
  });
33389
33402
  H(), Xd(), wl();
33390
- var FK = { class: "w-full" }, IK = {
33403
+ var IK = { class: "w-full" }, LK = {
33391
33404
  key: 0,
33392
33405
  class: "flex flex-col gap-0.5 px-1 py-2"
33393
- }, LK = {
33406
+ }, RK = {
33394
33407
  key: 0,
33395
33408
  class: "text-xs text-muted-foreground"
33396
- }, RK = {
33409
+ }, zK = {
33397
33410
  key: 1,
33398
33411
  class: "text-[11px] text-muted-foreground"
33399
- }, zK = { class: "flex items-center gap-1" }, BK = { class: "flex items-center gap-0.5 shrink-0" }, VK = {
33412
+ }, BK = { class: "flex items-center gap-1" }, VK = { class: "flex items-center gap-0.5 shrink-0" }, HK = {
33400
33413
  key: 1,
33401
33414
  class: "mt-2 rounded-lg border border-dashed border-border/60 p-2 space-y-1.5"
33402
- }, HK = { class: "flex items-center gap-2" }, UK = { class: "text-xs text-muted-foreground w-16 shrink-0" }, WK = { class: "flex items-center gap-2" }, GK = { class: "text-xs text-muted-foreground w-16 shrink-0" }, KK = { class: "flex justify-end gap-2" }, qK = { class: "mt-2" }, JK = { class: "mt-3 flex items-center justify-between" }, YK = /* @__PURE__ */ u({
33415
+ }, UK = { class: "flex items-center gap-2" }, WK = { class: "text-xs text-muted-foreground w-16 shrink-0" }, GK = { class: "flex items-center gap-2" }, KK = { class: "text-xs text-muted-foreground w-16 shrink-0" }, qK = { class: "flex justify-end gap-2" }, JK = { class: "mt-2" }, YK = { class: "mt-3 flex items-center justify-between" }, XK = /* @__PURE__ */ u({
33403
33416
  __name: "StepsContainer",
33404
33417
  props: {
33405
33418
  stepsKey: {},
@@ -33492,9 +33505,9 @@ var FK = { class: "w-full" }, IK = {
33492
33505
  let r = Cl(t, n), i = [...T.items.value];
33493
33506
  i.splice(e + 1, 0, r), T.items.value = i, T.emitUpdate();
33494
33507
  };
33495
- return (t, o) => (O(), i("div", FK, [
33496
- f.label || f.help ? (O(), i("div", IK, [f.label ? (O(), i("div", LK, j(f.label), 1)) : r("", !0), f.help ? (O(), i("div", RK, j(f.help), 1)) : r("", !0)])) : r("", !0),
33497
- a("div", zK, [c(M(dt), {
33508
+ return (t, o) => (O(), i("div", IK, [
33509
+ f.label || f.help ? (O(), i("div", LK, [f.label ? (O(), i("div", RK, j(f.label), 1)) : r("", !0), f.help ? (O(), i("div", zK, j(f.help), 1)) : r("", !0)])) : r("", !0),
33510
+ a("div", BK, [c(M(dt), {
33498
33511
  class: "flex-1 min-w-0",
33499
33512
  current: v.value + 1,
33500
33513
  status: E.value,
@@ -33518,7 +33531,7 @@ var FK = { class: "w-full" }, IK = {
33518
33531
  "status",
33519
33532
  "size",
33520
33533
  "vertical"
33521
- ]), a("div", BK, [c(M(vt), { placement: "top" }, {
33534
+ ]), a("div", VK, [c(M(vt), { placement: "top" }, {
33522
33535
  trigger: P(() => [c(M(F), {
33523
33536
  quaternary: "",
33524
33537
  size: "small",
@@ -33544,20 +33557,20 @@ var FK = { class: "w-full" }, IK = {
33544
33557
  default: P(() => [s(" " + j(M(m)("builder.deleteStep")), 1)]),
33545
33558
  _: 1
33546
33559
  })])]),
33547
- oe.value === null ? r("", !0) : (O(), i("div", VK, [
33548
- a("div", HK, [a("label", UK, j(M(m)("edits.content.title")), 1), c(M(ze), {
33560
+ oe.value === null ? r("", !0) : (O(), i("div", HK, [
33561
+ a("div", UK, [a("label", WK, j(M(m)("edits.content.title")), 1), c(M(ze), {
33549
33562
  size: "small",
33550
33563
  value: se.value,
33551
33564
  "onUpdate:value": o[1] ||= (e) => se.value = e,
33552
33565
  onKeydown: ce(le(fe, ["prevent"]), ["enter"])
33553
33566
  }, null, 8, ["value", "onKeydown"])]),
33554
- a("div", WK, [a("label", GK, j(M(m)("edits.content.description")), 1), c(M(ze), {
33567
+ a("div", GK, [a("label", KK, j(M(m)("edits.content.description")), 1), c(M(ze), {
33555
33568
  size: "small",
33556
33569
  value: ue.value,
33557
33570
  "onUpdate:value": o[2] ||= (e) => ue.value = e,
33558
33571
  onKeydown: ce(le(fe, ["prevent"]), ["enter"])
33559
33572
  }, null, 8, ["value", "onKeydown"])]),
33560
- a("div", KK, [c(M(F), {
33573
+ a("div", qK, [c(M(F), {
33561
33574
  size: "tiny",
33562
33575
  onClick: o[3] ||= (e) => oe.value = null
33563
33576
  }, {
@@ -33572,7 +33585,7 @@ var FK = { class: "w-full" }, IK = {
33572
33585
  _: 1
33573
33586
  })])
33574
33587
  ])),
33575
- a("div", qK, [c(_G, {
33588
+ a("div", JK, [c(_G, {
33576
33589
  "container-ref": M(T).containerRef,
33577
33590
  items: M(T).items,
33578
33591
  "selected-key": M(u),
@@ -33606,7 +33619,7 @@ var FK = { class: "w-full" }, IK = {
33606
33619
  "set-nested-parent-on-root",
33607
33620
  "on-resize-end"
33608
33621
  ])]),
33609
- a("div", JK, [c(M(F), {
33622
+ a("div", YK, [c(M(F), {
33610
33623
  size: "small",
33611
33624
  disabled: v.value <= 0,
33612
33625
  onClick: ee
@@ -33631,16 +33644,16 @@ var FK = { class: "w-full" }, IK = {
33631
33644
  //#endregion
33632
33645
  //#region src/components/ui/containers/steps/StepsContainerPreview.vue?vue&type=script&setup=true&lang.ts
33633
33646
  H();
33634
- var XK = { class: "w-full" }, ZK = {
33647
+ var ZK = { class: "w-full" }, QK = {
33635
33648
  key: 0,
33636
33649
  class: "flex flex-col gap-0.5 mb-2"
33637
- }, QK = {
33650
+ }, $K = {
33638
33651
  key: 0,
33639
33652
  class: "text-sm font-medium"
33640
- }, $K = {
33653
+ }, eq = {
33641
33654
  key: 1,
33642
33655
  class: "text-xs text-muted-foreground"
33643
- }, eq = { class: "mt-4" }, tq = /* @__PURE__ */ u({
33656
+ }, tq = { class: "mt-4" }, nq = /* @__PURE__ */ u({
33644
33657
  __name: "StepsContainerPreview",
33645
33658
  props: {
33646
33659
  children: {},
@@ -33652,7 +33665,7 @@ var XK = { class: "w-full" }, ZK = {
33652
33665
  vertical: { type: Boolean }
33653
33666
  },
33654
33667
  setup(o) {
33655
- let s = o, { t: l } = V(), u = zJ(), d = t(() => Array.isArray(s.modelValue) ? s.modelValue : Array.isArray(s.children) ? s.children : []), f = A(0);
33668
+ let s = o, { t: l } = V(), u = BJ(), d = t(() => Array.isArray(s.modelValue) ? s.modelValue : Array.isArray(s.children) ? s.children : []), f = A(0);
33656
33669
  N(() => d.value.length, (e) => {
33657
33670
  e <= 0 ? f.value = 0 : f.value > e - 1 && (f.value = e - 1);
33658
33671
  }, { immediate: !0 });
@@ -33665,7 +33678,7 @@ var XK = { class: "w-full" }, ZK = {
33665
33678
  let t = e?.children;
33666
33679
  return Array.isArray(t) ? t : [];
33667
33680
  }, h = (e) => m(e).some((e) => Array.isArray(e?.children) && e.children.length > 0);
33668
- return (t, o) => (O(), i("div", XK, [s.label || s.help ? (O(), i("div", ZK, [s.label ? (O(), i("div", QK, j(s.label), 1)) : r("", !0), s.help ? (O(), i("div", $K, j(s.help), 1)) : r("", !0)])) : r("", !0), d.value.length === 0 ? (O(), n(M(je), {
33681
+ return (t, o) => (O(), i("div", ZK, [s.label || s.help ? (O(), i("div", QK, [s.label ? (O(), i("div", $K, j(s.label), 1)) : r("", !0), s.help ? (O(), i("div", eq, j(s.help), 1)) : r("", !0)])) : r("", !0), d.value.length === 0 ? (O(), n(M(je), {
33669
33682
  key: 1,
33670
33683
  description: M(l)("builder.listDropHere")
33671
33684
  }, null, 8, ["description"])) : (O(), i(e, { key: 2 }, [c(M(dt), {
@@ -33686,7 +33699,7 @@ var XK = { class: "w-full" }, ZK = {
33686
33699
  "status",
33687
33700
  "size",
33688
33701
  "vertical"
33689
- ]), a("div", eq, [(O(!0), i(e, null, te(d.value, (e, t) => (O(), i("div", {
33702
+ ]), a("div", tq, [(O(!0), i(e, null, te(d.value, (e, t) => (O(), i("div", {
33690
33703
  key: e?.__key || t,
33691
33704
  style: C({ display: t === f.value ? "" : "none" })
33692
33705
  }, [h(e) ? (O(), n(M(Ic), {
@@ -33700,7 +33713,7 @@ var XK = { class: "w-full" }, ZK = {
33700
33713
  }
33701
33714
  });
33702
33715
  H(), Xd(), wl();
33703
- var nq = { class: /* @__PURE__ */ x(["w-full rounded-xl bg-card/40"]) }, rq = { class: "p-1" }, iq = /* @__PURE__ */ u({
33716
+ var rq = { class: /* @__PURE__ */ x(["w-full rounded-xl bg-card/40"]) }, iq = { class: "p-1" }, aq = /* @__PURE__ */ u({
33704
33717
  __name: "GroupContainer",
33705
33718
  props: {
33706
33719
  groupKey: {},
@@ -33730,7 +33743,7 @@ var nq = { class: /* @__PURE__ */ x(["w-full rounded-xl bg-card/40"]) }, rq = {
33730
33743
  let r = Cl(t, n), i = [...p.items.value];
33731
33744
  i.splice(e + 1, 0, r), p.items.value = i, p.emitUpdate();
33732
33745
  };
33733
- return (e, t) => (O(), i("div", nq, [a("div", rq, [c(_G, {
33746
+ return (e, t) => (O(), i("div", rq, [a("div", iq, [c(_G, {
33734
33747
  "container-ref": M(p).containerRef,
33735
33748
  items: M(p).items,
33736
33749
  "selected-key": M(r),
@@ -33761,24 +33774,24 @@ var nq = { class: /* @__PURE__ */ x(["w-full rounded-xl bg-card/40"]) }, rq = {
33761
33774
  //#endregion
33762
33775
  //#region src/components/ui/containers/data-table/utils.ts
33763
33776
  id();
33764
- function aq(e) {
33777
+ function oq(e) {
33765
33778
  return Array.isArray(e.data) ? e.data : [];
33766
33779
  }
33767
- function oq(e, t) {
33780
+ function sq(e, t) {
33768
33781
  return typeof e.rowKey == "string" && e.rowKey ? e.rowKey : t;
33769
33782
  }
33770
- function sq(e, t) {
33783
+ function cq(e, t) {
33771
33784
  let n = Number(e.pageSize);
33772
33785
  return Number.isFinite(n) && n > 0 ? n : t;
33773
33786
  }
33774
- function cq(e) {
33787
+ function lq(e) {
33775
33788
  let t = Number(e?.colspan);
33776
33789
  return !Number.isFinite(t) || t <= 0 ? 12 : Math.max(1, Math.min(12, Math.round(t)));
33777
33790
  }
33778
- function lq(e, t, n) {
33791
+ function uq(e, t, n) {
33779
33792
  if (e && typeof e.expr == "string" && e.expr.trim()) try {
33780
33793
  return {
33781
- value: aK(e.expr).evaluate(t),
33794
+ value: oK(e.expr).evaluate(t),
33782
33795
  derived: !0
33783
33796
  };
33784
33797
  } catch {
@@ -33792,16 +33805,16 @@ function lq(e, t, n) {
33792
33805
  derived: !1
33793
33806
  };
33794
33807
  }
33795
- function uq(e, t) {
33808
+ function dq(e, t) {
33796
33809
  if (!e?.visibleIf) return !0;
33797
33810
  let n = nd(e.visibleIf, t);
33798
33811
  return n.ok ? !!n.value : !0;
33799
33812
  }
33800
- function dq(e) {
33813
+ function fq(e) {
33801
33814
  let t = e ?? "";
33802
33815
  return /switch/i.test(t) ? "switch" : /rate/i.test(t) ? "rate" : /color/i.test(t) ? "color" : /(select|radio|checkbox|cascader|tree)/i.test(t) ? "tag" : "text";
33803
33816
  }
33804
- function fq(e) {
33817
+ function pq(e) {
33805
33818
  return Array.isArray(e) ? e.map((e) => {
33806
33819
  let t = e, n = t.name ?? t.props?.name ?? t.id, r = t.label || t.props?.label || n, i;
33807
33820
  if (t && typeof t == "object") {
@@ -33818,7 +33831,7 @@ function fq(e) {
33818
33831
  };
33819
33832
  }) : [];
33820
33833
  }
33821
- function pq(e) {
33834
+ function mq(e) {
33822
33835
  let t = e, n = Array.isArray(t?.pageData) ? t.pageData : [];
33823
33836
  return {
33824
33837
  rows: n,
@@ -33827,38 +33840,38 @@ function pq(e) {
33827
33840
  }
33828
33841
  //#endregion
33829
33842
  //#region src/components/ui/containers/data-table/DataTableCellRenderer.vue?vue&type=script&setup=true&lang.ts
33830
- var mq = { key: 0 }, hq = { key: 1 }, gq = {
33843
+ var hq = { key: 0 }, gq = { key: 1 }, _q = {
33831
33844
  key: 2,
33832
33845
  class: "inline-flex items-center gap-1.5 align-middle"
33833
- }, _q = { key: 3 }, vq = { key: 4 }, yq = /* @__PURE__ */ u({
33846
+ }, vq = { key: 3 }, yq = { key: 4 }, bq = /* @__PURE__ */ u({
33834
33847
  __name: "DataTableCellRenderer",
33835
33848
  props: {
33836
33849
  column: {},
33837
33850
  value: {}
33838
33851
  },
33839
33852
  setup(e) {
33840
- let n = e, r = t(() => dq(n.column.render)), o = t(() => n.value === !0 || n.value === "true" || n.value === 1 || n.value === "1"), l = t(() => {
33853
+ let n = e, r = t(() => fq(n.column.render)), o = t(() => n.value === !0 || n.value === "true" || n.value === 1 || n.value === "1"), l = t(() => {
33841
33854
  let e = Number(n.value);
33842
33855
  return Number.isFinite(e) ? Math.max(0, Math.min(5, Math.round(e))) : 0;
33843
33856
  });
33844
- return (e, t) => r.value === "switch" ? (O(), i("span", mq, [c(M(ft), {
33857
+ return (e, t) => r.value === "switch" ? (O(), i("span", hq, [c(M(ft), {
33845
33858
  size: "small",
33846
33859
  value: o.value,
33847
33860
  disabled: ""
33848
- }, null, 8, ["value"])])) : r.value === "rate" ? (O(), i("span", hq, [c(M(it), {
33861
+ }, null, 8, ["value"])])) : r.value === "rate" ? (O(), i("span", gq, [c(M(it), {
33849
33862
  size: "small",
33850
33863
  value: l.value,
33851
33864
  readonly: ""
33852
- }, null, 8, ["value"])])) : r.value === "color" ? (O(), i("span", gq, [a("span", {
33865
+ }, null, 8, ["value"])])) : r.value === "color" ? (O(), i("span", _q, [a("span", {
33853
33866
  class: "inline-block h-3.5 w-3.5 rounded border border-border/50",
33854
33867
  style: C({ backgroundColor: String(n.value ?? "") })
33855
- }, null, 4), a("span", null, j(n.value ?? ""), 1)])) : r.value === "tag" ? (O(), i("span", _q, [c(M(ht), {
33868
+ }, null, 4), a("span", null, j(n.value ?? ""), 1)])) : r.value === "tag" ? (O(), i("span", vq, [c(M(ht), {
33856
33869
  size: "small",
33857
33870
  bordered: !1
33858
33871
  }, {
33859
33872
  default: P(() => [s(j(n.value ?? ""), 1)]),
33860
33873
  _: 1
33861
- })])) : (O(), i("span", vq, j(n.value ?? ""), 1));
33874
+ })])) : (O(), i("span", yq, j(n.value ?? ""), 1));
33862
33875
  }
33863
33876
  });
33864
33877
  //#endregion
@@ -33866,7 +33879,7 @@ var mq = { key: 0 }, hq = { key: 1 }, gq = {
33866
33879
  id();
33867
33880
  //#endregion
33868
33881
  //#region src/components/ui/containers/data-table/DataTableRowCellInput.vue
33869
- var bq = /* @__PURE__ */ u({
33882
+ var xq = /* @__PURE__ */ u({
33870
33883
  __name: "DataTableRowCellInput",
33871
33884
  props: {
33872
33885
  column: {},
@@ -33915,7 +33928,7 @@ var bq = /* @__PURE__ */ u({
33915
33928
  //#endregion
33916
33929
  //#region src/components/ui/containers/data-table/DataTableSearchField.vue?vue&type=script&setup=true&lang.ts
33917
33930
  id();
33918
- var xq = { class: "w-40 shrink-0" }, Sq = /* @__PURE__ */ u({
33931
+ var Sq = { class: "w-40 shrink-0" }, Cq = /* @__PURE__ */ u({
33919
33932
  __name: "DataTableSearchField",
33920
33933
  props: {
33921
33934
  column: {},
@@ -33937,7 +33950,7 @@ var xq = { class: "w-40 shrink-0" }, Sq = /* @__PURE__ */ u({
33937
33950
  let t = { ...e.props };
33938
33951
  return delete t.type, delete t.value, delete t.help, delete t.description, e.options !== void 0 && (t.options = e.options), t;
33939
33952
  }), u = (e) => o("update:value", e);
33940
- return (t, r) => (O(), i("div", xq, [c.value && s.value ? (O(), n(M(Uc), y({
33953
+ return (t, r) => (O(), i("div", Sq, [c.value && s.value ? (O(), n(M(Uc), y({
33941
33954
  key: 0,
33942
33955
  type: s.value.type,
33943
33956
  ignore: !0,
@@ -33954,40 +33967,40 @@ var xq = { class: "w-40 shrink-0" }, Sq = /* @__PURE__ */ u({
33954
33967
  }
33955
33968
  });
33956
33969
  H(), Xd(), id();
33957
- var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "flex items-center justify-between px-3 py-2 border-b border-border/50" }, Tq = { class: "flex items-center gap-2 min-w-0" }, Eq = {
33970
+ var wq = { class: "w-full rounded-xl border border-border/50" }, Tq = { class: "flex items-center justify-between px-3 py-2 border-b border-border/50" }, Eq = { class: "flex items-center gap-2 min-w-0" }, Dq = {
33958
33971
  key: 0,
33959
33972
  class: "text-12px font-bold truncate"
33960
- }, Dq = { class: "flex items-center gap-1 text-[11px] text-muted-foreground px-1.5 py-0.5 rounded bg-muted/40" }, Oq = {
33973
+ }, Oq = { class: "flex items-center gap-1 text-[11px] text-muted-foreground px-1.5 py-0.5 rounded bg-muted/40" }, kq = {
33961
33974
  key: 1,
33962
33975
  class: "text-[11px] text-muted-foreground"
33963
- }, kq = { class: "flex items-center gap-2 shrink-0" }, Aq = { class: "border-b border-border/50 px-3 py-2" }, jq = { class: "flex items-center justify-between mb-1.5" }, Mq = { class: "text-[11px] font-medium text-muted-foreground" }, Nq = {
33976
+ }, Aq = { class: "flex items-center gap-2 shrink-0" }, jq = { class: "border-b border-border/50 px-3 py-2" }, Mq = { class: "flex items-center justify-between mb-1.5" }, Nq = { class: "text-[11px] font-medium text-muted-foreground" }, Pq = {
33964
33977
  key: 0,
33965
33978
  class: "flex items-start gap-2"
33966
- }, Pq = ["onPointerdown"], Fq = { class: "whitespace-nowrap text-[11px] text-muted-foreground" }, Iq = { class: "flex items-center gap-0.5 shrink-0" }, Lq = {
33979
+ }, Fq = ["onPointerdown"], Iq = { class: "whitespace-nowrap text-[11px] text-muted-foreground" }, Lq = { class: "flex items-center gap-0.5 shrink-0" }, Rq = {
33967
33980
  key: 1,
33968
33981
  class: "min-h-[28px] w-full rounded-md border border-dashed border-border/60 flex items-center justify-center text-[11px] text-muted-foreground"
33969
- }, Rq = { class: "p-2" }, zq = { class: "flex items-center justify-between mb-2" }, Bq = { class: "text-[11px] font-medium text-muted-foreground" }, Vq = {
33982
+ }, zq = { class: "p-2" }, Bq = { class: "flex items-center justify-between mb-2" }, Vq = { class: "text-[11px] font-medium text-muted-foreground" }, Hq = {
33970
33983
  key: 0,
33971
33984
  class: "overflow-x-auto rounded-lg border border-border/50 thin-scrollbar"
33972
- }, Hq = { class: "w-full border-collapse text-left" }, Uq = { class: "bg-muted/40" }, Wq = ["onPointerdown"], Gq = { class: "flex items-center gap-1.5 pr-3" }, Kq = { class: "truncate" }, qq = {
33985
+ }, Uq = { class: "w-full border-collapse text-left" }, Wq = { class: "bg-muted/40" }, Gq = ["onPointerdown"], Kq = { class: "flex items-center gap-1.5 pr-3" }, qq = { class: "truncate" }, Jq = {
33973
33986
  key: 0,
33974
33987
  class: "text-[10px] text-muted-foreground"
33975
- }, Jq = { class: "absolute top-1/2 -translate-y-1/2 right-1 hidden group-hover:inline-flex" }, Yq = {
33988
+ }, Yq = { class: "absolute top-1/2 -translate-y-1/2 right-1 hidden group-hover:inline-flex" }, Xq = {
33976
33989
  key: 0,
33977
33990
  class: "px-3 py-2 text-xs font-medium text-foreground whitespace-nowrap border-l border-border/60"
33978
- }, Xq = { key: 0 }, Zq = {
33991
+ }, Zq = { key: 0 }, Qq = {
33979
33992
  key: 0,
33980
33993
  class: "px-3 py-2 text-xs whitespace-nowrap"
33981
- }, Qq = { class: "flex items-center gap-2.5" }, $q = {
33994
+ }, $q = { class: "flex items-center gap-2.5" }, eJ = {
33982
33995
  key: 0,
33983
33996
  class: "min-h-[120px] flex items-center justify-center border-t border-border/40"
33984
- }, eJ = {
33997
+ }, tJ = {
33985
33998
  key: 1,
33986
33999
  class: "min-h-[140px] flex items-center justify-center"
33987
- }, tJ = { class: "text-sm font-semibold" }, nJ = { class: "space-y-3" }, rJ = {
34000
+ }, nJ = { class: "text-sm font-semibold" }, rJ = { class: "space-y-3" }, iJ = {
33988
34001
  key: 0,
33989
34002
  class: "grid grid-cols-3 gap-2 sm:grid-cols-4"
33990
- }, iJ = { class: "flex h-16px mr-4px w-16px items-center justify-center rounded-md text-muted-foreground transition-colors group-hover:bg-[#a277ff]/10 group-hover:text-[#a277ff]" }, aJ = { class: "truncate w-full text-center font-medium text-foreground" }, oJ = { class: "flex items-center justify-between" }, sJ = { class: "text-[11px] text-muted-foreground" }, cJ = { class: "text-sm font-medium" }, lJ = { class: "grid grid-cols-12 gap-x-3 gap-y-3" }, uJ = { class: "mb-1 text-xs text-muted-foreground" }, dJ = { class: "min-w-0" }, fJ = { class: "mt-4 flex justify-end gap-2" }, pJ = /* @__PURE__ */ u({
34003
+ }, aJ = { class: "flex h-16px mr-4px w-16px items-center justify-center rounded-md text-muted-foreground transition-colors group-hover:bg-[#a277ff]/10 group-hover:text-[#a277ff]" }, oJ = { class: "truncate w-full text-center font-medium text-foreground" }, sJ = { class: "flex items-center justify-between" }, cJ = { class: "text-[11px] text-muted-foreground" }, lJ = { class: "text-sm font-medium" }, uJ = { class: "grid grid-cols-12 gap-x-3 gap-y-3" }, dJ = { class: "mb-1 text-xs text-muted-foreground" }, fJ = { class: "min-w-0" }, pJ = { class: "mt-4 flex justify-end gap-2" }, mJ = /* @__PURE__ */ u({
33991
34004
  __name: "DataTableContainer",
33992
34005
  props: {
33993
34006
  dataTableKey: {},
@@ -34068,7 +34081,7 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34068
34081
  }
34069
34082
  let ue = (e) => {
34070
34083
  y.items.value = y.items.value.filter((t, n) => n !== e), y.emitUpdate();
34071
- }, de = t(() => fq(y.items.value)), fe = A({});
34084
+ }, de = t(() => pq(y.items.value)), fe = A({});
34072
34085
  function pe(e, t) {
34073
34086
  e && (fe.value[e] = t);
34074
34087
  }
@@ -34090,10 +34103,10 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34090
34103
  N(() => [u.value, d.value], ([e, t]) => {
34091
34104
  (e !== f.dataTableKey || t === null) && (_e.value = null);
34092
34105
  });
34093
- let be = t(() => w.items.value), xe = t(() => oq({
34106
+ let be = t(() => w.items.value), xe = t(() => sq({
34094
34107
  data: f.data,
34095
34108
  rowKey: f.rowKey
34096
- }, "id")), Se = t(() => sq({
34109
+ }, "id")), Se = t(() => cq({
34097
34110
  data: f.data,
34098
34111
  pageSize: f.pageSize
34099
34112
  }, 10)), Ce = t(() => Array.isArray(f.data) ? f.data : []), we = t(() => !f.remote && Ce.value.length > 0);
@@ -34106,7 +34119,7 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34106
34119
  let e = {};
34107
34120
  for (let t of be.value) {
34108
34121
  if (!t.key) continue;
34109
- let n = dq(t.render);
34122
+ let n = fq(t.render);
34110
34123
  n === "switch" ? e[t.key] = !1 : n === "rate" ? e[t.key] = 0 : e[t.key] = "";
34111
34124
  }
34112
34125
  return e;
@@ -34120,8 +34133,8 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34120
34133
  let Fe = t(() => {
34121
34134
  let e = Oe.value, t = {};
34122
34135
  for (let n of be.value) n.key && (t[n.key] = {
34123
- visible: uq(n.element, e),
34124
- ...lq(n.element, e, e[n.key])
34136
+ visible: dq(n.element, e),
34137
+ ...uq(n.element, e, e[n.key])
34125
34138
  });
34126
34139
  return t;
34127
34140
  });
@@ -34143,12 +34156,12 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34143
34156
  Te(Ce.value.filter((t, n) => n !== e));
34144
34157
  }
34145
34158
  let Re = t(() => typeof f.label == "string" && f.label.trim() ? f.label.trim() : ""), Be = t(() => f.remote === !0 ? h("builder.dataTableRemote") : h("builder.dataTableFixed")), Ve = (e) => typeof e?.__key == "string" && e.__key === u.value, He = (e) => e?.label ?? e?.name ?? "";
34146
- return (t, o) => (O(), i("div", Cq, [
34147
- a("div", wq, [a("div", Tq, [
34148
- Re.value ? (O(), i("span", Eq, j(Re.value), 1)) : r("", !0),
34149
- a("span", Dq, [o[10] ||= a("span", { class: "i-lucide-table-2 h-3.5 w-3.5" }, null, -1), s(" " + j(Be.value), 1)]),
34150
- f.pagination === !0 ? (O(), i("span", Oq, j(M(h)("builder.dataTablePaged")) + " · " + j(Se.value) + "/页 ", 1)) : r("", !0)
34151
- ]), a("div", kq, [f.remote ? r("", !0) : (O(), n(M(F), {
34159
+ return (t, o) => (O(), i("div", wq, [
34160
+ a("div", Tq, [a("div", Eq, [
34161
+ Re.value ? (O(), i("span", Dq, j(Re.value), 1)) : r("", !0),
34162
+ a("span", Oq, [o[10] ||= a("span", { class: "i-lucide-table-2 h-3.5 w-3.5" }, null, -1), s(" " + j(Be.value), 1)]),
34163
+ f.pagination === !0 ? (O(), i("span", kq, j(M(h)("builder.dataTablePaged")) + " · " + j(Se.value) + "/页 ", 1)) : r("", !0)
34164
+ ]), a("div", Aq, [f.remote ? r("", !0) : (O(), n(M(F), {
34152
34165
  key: 0,
34153
34166
  text: "",
34154
34167
  size: "tiny",
@@ -34158,7 +34171,7 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34158
34171
  default: P(() => [s(" " + j(M(h)("builder.dataTableAdd")), 1)]),
34159
34172
  _: 1
34160
34173
  }))])]),
34161
- a("div", Aq, [a("div", jq, [a("span", Mq, j(M(h)("builder.dataTableSearchZone")), 1), c(M(ke), {
34174
+ a("div", jq, [a("div", Mq, [a("span", Nq, j(M(h)("builder.dataTableSearchZone")), 1), c(M(ke), {
34162
34175
  trigger: "click",
34163
34176
  scrollable: "",
34164
34177
  "menu-props": k,
@@ -34174,7 +34187,7 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34174
34187
  _: 1
34175
34188
  })]),
34176
34189
  _: 1
34177
- }, 8, ["options"])]), _.value.length ? (O(), i("div", Nq, [a("div", {
34190
+ }, 8, ["options"])]), _.value.length ? (O(), i("div", Pq, [a("div", {
34178
34191
  ref: M(y).containerRef,
34179
34192
  class: x(["flex-1 min-w-0 items-center gap-1.5", ne.value ? "flex flex-wrap" : "flex flex-nowrap overflow-x-auto thin-scrollbar pb-1"])
34180
34193
  }, [(O(!0), i(e, null, te(M(y).items.value, (e, t) => (O(), i("div", {
@@ -34184,8 +34197,8 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34184
34197
  onPointerdown: le((t) => ge(e), ["stop"])
34185
34198
  }, [
34186
34199
  o[14] ||= a("span", { class: "i-lucide-search h-3 w-3 text-muted-foreground shrink-0" }, null, -1),
34187
- a("span", Fq, j(He(e)), 1),
34188
- c(Sq, {
34200
+ a("span", Iq, j(He(e)), 1),
34201
+ c(Cq, {
34189
34202
  column: de.value[t],
34190
34203
  value: me(t),
34191
34204
  "onUpdate:value": (e) => pe(de.value[t]?.key, e)
@@ -34206,7 +34219,7 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34206
34219
  icon: P(() => [...o[13] ||= [a("span", { class: "i-lucide-x h-3 w-3" }, null, -1)]]),
34207
34220
  _: 1
34208
34221
  }, 8, ["aria-label", "onClick"])
34209
- ], 42, Pq))), 128))], 2), a("div", Iq, [
34222
+ ], 42, Fq))), 128))], 2), a("div", Lq, [
34210
34223
  c(M(F), {
34211
34224
  text: "",
34212
34225
  size: "small"
@@ -34234,8 +34247,8 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34234
34247
  default: P(() => [s(" " + j(ne.value ? M(h)("builder.dataTableCollapse") : M(h)("builder.dataTableExpand")), 1)]),
34235
34248
  _: 1
34236
34249
  })) : r("", !0)
34237
- ])])) : (O(), i("div", Lq, j(M(h)("builder.dataTableSearchZoneHint")), 1))]),
34238
- a("div", Rq, [a("div", zq, [a("span", Bq, j(M(h)("builder.dataTableColumns")), 1), c(M(F), {
34250
+ ])])) : (O(), i("div", Rq, j(M(h)("builder.dataTableSearchZoneHint")), 1))]),
34251
+ a("div", zq, [a("div", Bq, [a("span", Vq, j(M(h)("builder.dataTableColumns")), 1), c(M(F), {
34239
34252
  text: "",
34240
34253
  size: "tiny",
34241
34254
  onClick: o[3] ||= (e) => ee.value = !0
@@ -34243,13 +34256,13 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34243
34256
  icon: P(() => [...o[17] ||= [a("span", { class: "i-lucide-columns-3 h-3 w-3" }, null, -1)]]),
34244
34257
  default: P(() => [s(" " + j(M(h)("builder.dataTableAddColumn")), 1)]),
34245
34258
  _: 1
34246
- })]), be.value.length ? (O(), i("div", Vq, [a("table", Hq, [a("thead", Uq, [a("tr", { ref: M(w).containerRef }, [(O(!0), i(e, null, te(M(w).items.value, (e, t) => (O(), i("th", {
34259
+ })]), be.value.length ? (O(), i("div", Hq, [a("table", Uq, [a("thead", Wq, [a("tr", { ref: M(w).containerRef }, [(O(!0), i(e, null, te(M(w).items.value, (e, t) => (O(), i("th", {
34247
34260
  key: e.key,
34248
34261
  "data-canvas-item": "true",
34249
34262
  class: x(["group relative px-3 py-2 text-xs font-medium text-foreground whitespace-nowrap select-none cursor-grab active:cursor-grabbing border-l border-border/60 first:border-l-0", ve(t) ? "border-solid border-b-2 border-b-[#a277ff] bg-[#a277ff]/[0.08] text-[#a277ff]" : "hover:bg-[#f0f4ff] dark:hover:bg-[rgba(100,130,255,0.07)]"]),
34250
34263
  style: C({ width: e.width ? `${e.width}px` : "140px" }),
34251
34264
  onPointerdown: le((e) => ye(t), ["stop"])
34252
- }, [a("span", Gq, [a("span", Kq, j(e.title), 1), e.render ? (O(), i("span", qq, j(e.render), 1)) : r("", !0)]), a("span", Jq, [c(M(F), {
34265
+ }, [a("span", Kq, [a("span", qq, j(e.title), 1), e.render ? (O(), i("span", Jq, j(e.render), 1)) : r("", !0)]), a("span", Yq, [c(M(F), {
34253
34266
  quaternary: "",
34254
34267
  size: "tiny",
34255
34268
  round: "",
@@ -34260,16 +34273,16 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34260
34273
  }, {
34261
34274
  icon: P(() => [...o[18] ||= [a("span", { class: "i-lucide-x h-3 w-3" }, null, -1)]]),
34262
34275
  _: 1
34263
- }, 8, ["aria-label", "onClick"])])], 46, Wq))), 128)), we.value ? (O(), i("th", Yq, j(M(h)("builder.dataTableActions")), 1)) : r("", !0)], 512)]), Ce.value.length ? (O(), i("tbody", Xq, [(O(!0), i(e, null, te(Ce.value, (t, n) => (O(), i("tr", {
34276
+ }, 8, ["aria-label", "onClick"])])], 46, Gq))), 128)), we.value ? (O(), i("th", Xq, j(M(h)("builder.dataTableActions")), 1)) : r("", !0)], 512)]), Ce.value.length ? (O(), i("tbody", Zq, [(O(!0), i(e, null, te(Ce.value, (t, n) => (O(), i("tr", {
34264
34277
  key: n,
34265
34278
  class: "border-t border-border/40"
34266
34279
  }, [(O(!0), i(e, null, te(be.value, (e) => (O(), i("td", {
34267
34280
  key: e.key,
34268
34281
  class: "px-3 py-2 text-xs text-muted-foreground whitespace-nowrap"
34269
- }, [c(yq, {
34282
+ }, [c(bq, {
34270
34283
  column: e,
34271
34284
  value: t[e.key]
34272
- }, null, 8, ["column", "value"])]))), 128)), we.value ? (O(), i("td", Zq, [a("div", Qq, [c(M(F), {
34285
+ }, null, 8, ["column", "value"])]))), 128)), we.value ? (O(), i("td", Qq, [a("div", $q, [c(M(F), {
34273
34286
  text: "",
34274
34287
  size: "tiny",
34275
34288
  type: "primary",
@@ -34287,22 +34300,22 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34287
34300
  }, {
34288
34301
  icon: P(() => [...o[20] ||= [a("span", { class: "i-lucide-trash-2 h-3.5 w-3.5" }, null, -1)]]),
34289
34302
  _: 1
34290
- }, 8, ["aria-label", "onClick"])])])) : r("", !0)]))), 128))])) : r("", !0)]), Ce.value.length ? r("", !0) : (O(), i("div", $q, [c(M(je), { description: M(h)("builder.dataTableEmptyData") }, null, 8, ["description"])]))])) : (O(), i("div", eJ, [c(M(je), { description: M(h)("builder.dataTableColumnHint") }, null, 8, ["description"])]))]),
34303
+ }, 8, ["aria-label", "onClick"])])])) : r("", !0)]))), 128))])) : r("", !0)]), Ce.value.length ? r("", !0) : (O(), i("div", eJ, [c(M(je), { description: M(h)("builder.dataTableEmptyData") }, null, 8, ["description"])]))])) : (O(), i("div", tJ, [c(M(je), { description: M(h)("builder.dataTableColumnHint") }, null, 8, ["description"])]))]),
34291
34304
  c(M(qe), {
34292
34305
  show: ee.value,
34293
34306
  "onUpdate:show": o[7] ||= (e) => ee.value = e,
34294
34307
  preset: "card",
34295
34308
  class: "max-w-[520px]"
34296
34309
  }, {
34297
- header: P(() => [a("span", tJ, j(M(h)("builder.dataTableAddColumn")), 1)]),
34298
- footer: P(() => [a("div", oJ, [a("span", sJ, j(M(h)("builder.dataTableColumnCount", { count: T.value.length })), 1), c(M(F), {
34310
+ header: P(() => [a("span", nJ, j(M(h)("builder.dataTableAddColumn")), 1)]),
34311
+ footer: P(() => [a("div", sJ, [a("span", cJ, j(M(h)("builder.dataTableColumnCount", { count: T.value.length })), 1), c(M(F), {
34299
34312
  size: "small",
34300
34313
  onClick: o[6] ||= (e) => ee.value = !1
34301
34314
  }, {
34302
34315
  default: P(() => [s(j(M(h)("common.cancel")), 1)]),
34303
34316
  _: 1
34304
34317
  })])]),
34305
- default: P(() => [a("div", nJ, [c(M(ze), {
34318
+ default: P(() => [a("div", rJ, [c(M(ze), {
34306
34319
  value: ie.value,
34307
34320
  "onUpdate:value": o[5] ||= (e) => ie.value = e,
34308
34321
  size: "small",
@@ -34315,14 +34328,14 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34315
34328
  class: "max-h-[48vh]",
34316
34329
  "content-class": "pr-1"
34317
34330
  }, {
34318
- default: P(() => [ae.value.length ? (O(), i("div", rJ, [(O(!0), i(e, null, te(ae.value, (e) => (O(), n(M(F), {
34331
+ default: P(() => [ae.value.length ? (O(), i("div", iJ, [(O(!0), i(e, null, te(ae.value, (e) => (O(), n(M(F), {
34319
34332
  key: e.type,
34320
34333
  type: "default",
34321
34334
  size: "large",
34322
34335
  class: "group flex flex-col items-center gap-1.5 rounded-md border border-border/50 bg-card px-2 py-3 text-[11px] text-muted-foreground transition-colors hover:border-[#7c9ef8] hover:bg-[#f0f4ff] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#a277ff] focus-visible:ring-offset-2 active:border-[#a277ff] active:bg-[#a277ff]/[0.08] active:text-[#a277ff] dark:hover:bg-[rgba(100,130,255,0.07)]",
34323
34336
  onClick: (t) => re(e.type)
34324
34337
  }, {
34325
- default: P(() => [a("span", iJ, [a("span", { class: x(`${e.icon} h-16px w-16px`) }, null, 2)]), a("span", aJ, j(e.label), 1)]),
34338
+ default: P(() => [a("span", aJ, [a("span", { class: x(`${e.icon} h-16px w-16px`) }, null, 2)]), a("span", oJ, j(e.label), 1)]),
34326
34339
  _: 2
34327
34340
  }, 1032, ["onClick"]))), 128))])) : (O(), n(M(je), {
34328
34341
  key: 1,
@@ -34339,11 +34352,11 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34339
34352
  preset: "card",
34340
34353
  class: "max-w-[520px]"
34341
34354
  }, {
34342
- header: P(() => [a("span", cJ, j(De.value === null ? M(h)("builder.dataTableAddRowTitle") : M(h)("builder.dataTableEditRowTitle")), 1)]),
34343
- default: P(() => [a("div", lJ, [(O(!0), i(e, null, te(be.value, (t) => (O(), i(e, { key: t.key }, [t.key && Fe.value[t.key]?.visible ? (O(), i("div", {
34355
+ header: P(() => [a("span", lJ, j(De.value === null ? M(h)("builder.dataTableAddRowTitle") : M(h)("builder.dataTableEditRowTitle")), 1)]),
34356
+ default: P(() => [a("div", uJ, [(O(!0), i(e, null, te(be.value, (t) => (O(), i(e, { key: t.key }, [t.key && Fe.value[t.key]?.visible ? (O(), i("div", {
34344
34357
  key: 0,
34345
- class: x(`col-span-${M(cq)(t)}`)
34346
- }, [a("div", uJ, j(t.title), 1), a("div", dJ, [c(bq, {
34358
+ class: x(`col-span-${M(lq)(t)}`)
34359
+ }, [a("div", dJ, j(t.title), 1), a("div", fJ, [c(xq, {
34347
34360
  column: t,
34348
34361
  value: Fe.value[t.key]?.value,
34349
34362
  disabled: !!Fe.value[t.key]?.derived,
@@ -34353,7 +34366,7 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34353
34366
  "value",
34354
34367
  "disabled",
34355
34368
  "onUpdate:value"
34356
- ])])], 2)) : r("", !0)], 64))), 128))]), a("div", fJ, [c(M(F), {
34369
+ ])])], 2)) : r("", !0)], 64))), 128))]), a("div", pJ, [c(M(F), {
34357
34370
  size: "small",
34358
34371
  onClick: o[8] ||= (e) => Ee.value = !1
34359
34372
  }, {
@@ -34373,10 +34386,10 @@ var Cq = { class: "w-full rounded-xl border border-border/50" }, wq = { class: "
34373
34386
  }
34374
34387
  });
34375
34388
  B(), H();
34376
- var mJ = { class: "flex items-center gap-1" }, hJ = {
34389
+ var hJ = { class: "flex items-center gap-1" }, gJ = {
34377
34390
  key: 0,
34378
34391
  class: "mb-3"
34379
- }, gJ = { class: "flex items-start gap-2" }, _J = { class: "whitespace-nowrap text-xs text-neutral-700 dark:text-zinc-300" }, vJ = { class: "flex items-center gap-1 shrink-0" }, yJ = { class: "text-sm font-medium" }, bJ = { class: "grid grid-cols-12 gap-x-3 gap-y-3" }, xJ = { class: "mb-1 text-xs text-muted-foreground" }, SJ = { class: "min-w-0" }, CJ = { class: "mt-4 flex justify-end gap-2" }, wJ = /* @__PURE__ */ u({
34392
+ }, _J = { class: "flex items-start gap-2" }, vJ = { class: "whitespace-nowrap text-xs text-neutral-700 dark:text-zinc-300" }, yJ = { class: "flex items-center gap-1 shrink-0" }, bJ = { class: "text-sm font-medium" }, xJ = { class: "grid grid-cols-12 gap-x-3 gap-y-3" }, SJ = { class: "mb-1 text-xs text-muted-foreground" }, CJ = { class: "min-w-0" }, wJ = { class: "mt-4 flex justify-end gap-2" }, TJ = /* @__PURE__ */ u({
34380
34393
  inheritAttrs: !1,
34381
34394
  __name: "DataTableContainerPreview",
34382
34395
  props: {
@@ -34419,10 +34432,10 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34419
34432
  }), E = t(() => {
34420
34433
  let e = h.deleteData;
34421
34434
  return typeof e == "string" && e.trim() ? e.trim() : "";
34422
- }), D = t(() => h.remote === !0 && !!S.value), k = t(() => fq(h.modelValue ?? [])), ee = t(() => Array.isArray(h.columns) ? h.columns : []), ne = t(() => {
34435
+ }), D = t(() => h.remote === !0 && !!S.value), k = t(() => pq(h.modelValue ?? [])), ee = t(() => Array.isArray(h.columns) ? h.columns : []), ne = t(() => {
34423
34436
  let e = ee.value.map((e) => {
34424
34437
  let t = { ...e };
34425
- return delete t.render, delete t.renderProps, delete t.element, t.render = (t) => p(yq, {
34438
+ return delete t.render, delete t.renderProps, delete t.element, t.render = (t) => p(bq, {
34426
34439
  column: e,
34427
34440
  value: t[e.key]
34428
34441
  }), t;
@@ -34444,10 +34457,10 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34444
34457
  onClick: () => Ie(e)
34445
34458
  }, { icon: () => p("span", { class: "i-lucide-trash-2 h-3.5 w-3.5" }) }) : null])
34446
34459
  }), e;
34447
- }), re = t(() => typeof h.label == "string" && h.label.trim() ? h.label.trim() : ""), ie = t(() => oq({
34460
+ }), re = t(() => typeof h.label == "string" && h.label.trim() ? h.label.trim() : ""), ie = t(() => sq({
34448
34461
  data: h.data,
34449
34462
  rowKey: h.rowKey
34450
- }, "id")), ae = t(() => sq({
34463
+ }, "id")), ae = t(() => cq({
34451
34464
  data: h.data,
34452
34465
  pageSize: h.pageSize
34453
34466
  }, 10)), oe = t(() => {
@@ -34464,7 +34477,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34464
34477
  return t.length === 0 ? !0 : t.every(([t, n]) => String(e[t] ?? "").toLowerCase().includes(String(n).toLowerCase()));
34465
34478
  }, ue = A([]);
34466
34479
  N(() => h.data, (e) => {
34467
- ue.value = aq({ data: e }).map((e) => ({ ...e }));
34480
+ ue.value = oq({ data: e }).map((e) => ({ ...e }));
34468
34481
  }, {
34469
34482
  immediate: !0,
34470
34483
  deep: !0
@@ -34478,7 +34491,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34478
34491
  if (D.value) {
34479
34492
  fe.value = !0;
34480
34493
  try {
34481
- let e = y?.value ?? {}, { rows: t, total: n } = pq(await fV(S.value, void 0, { form: e }, _.value, v.value, {
34494
+ let e = y?.value ?? {}, { rows: t, total: n } = mq(await fV(S.value, void 0, { form: e }, _.value, v.value, {
34482
34495
  page: he.value,
34483
34496
  pageSize: ae.value,
34484
34497
  search: { ...se.value }
@@ -34509,7 +34522,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34509
34522
  D.value && (he.value = 1, ye());
34510
34523
  }
34511
34524
  function Ce() {
34512
- D.value ? (he.value = 1, ye()) : ue.value = aq({ data: h.data }).map((e) => ({ ...e }));
34525
+ D.value ? (he.value = 1, ye()) : ue.value = oq({ data: h.data }).map((e) => ({ ...e }));
34513
34526
  }
34514
34527
  let we = A(!1), Te = A(null), De = A({}), Oe = 0, ke = t(() => Te.value === null ? g("builder.dataTableAddRowTitle") : g("builder.dataTableEditRowTitle"));
34515
34528
  function Ae() {
@@ -34521,7 +34534,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34521
34534
  e[t.key] = n.value;
34522
34535
  continue;
34523
34536
  }
34524
- let r = dq(n?.type ?? t.render);
34537
+ let r = fq(n?.type ?? t.render);
34525
34538
  r === "switch" ? e[t.key] = !1 : r === "rate" ? e[t.key] = 0 : e[t.key] = "";
34526
34539
  }
34527
34540
  return e;
@@ -34535,8 +34548,8 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34535
34548
  let Ne = t(() => {
34536
34549
  let e = De.value, t = {};
34537
34550
  for (let n of ee.value) n.key && (t[n.key] = {
34538
- visible: uq(n.element, e),
34539
- ...lq(n.element, e, e[n.key])
34551
+ visible: dq(n.element, e),
34552
+ ...uq(n.element, e, e[n.key])
34540
34553
  });
34541
34554
  return t;
34542
34555
  });
@@ -34598,7 +34611,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34598
34611
  class: "rounded-xl border border-border/50",
34599
34612
  title: re.value || void 0
34600
34613
  }, {
34601
- "header-extra": P(() => [a("div", mJ, [h.allowAdd === !0 ? (O(), n(M(F), {
34614
+ "header-extra": P(() => [a("div", hJ, [h.allowAdd === !0 ? (O(), n(M(F), {
34602
34615
  key: 0,
34603
34616
  type: "primary",
34604
34617
  text: "",
@@ -34619,7 +34632,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34619
34632
  _: 1
34620
34633
  }, 8, ["loading"])])]),
34621
34634
  default: P(() => [
34622
- k.value.length ? (O(), i("div", hJ, [a("div", gJ, [c(M(at), {
34635
+ k.value.length ? (O(), i("div", gJ, [a("div", _J, [c(M(at), {
34623
34636
  "x-scrollable": !ce.value,
34624
34637
  class: "flex-1 min-w-0",
34625
34638
  "content-class": ce.value ? "flex flex-wrap items-center gap-2" : "flex items-center gap-2 pb-2.5"
@@ -34627,7 +34640,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34627
34640
  default: P(() => [(O(!0), i(e, null, te(k.value, (e) => (O(), i("div", {
34628
34641
  key: e.key,
34629
34642
  class: "flex items-center gap-1.5 shrink-0"
34630
- }, [a("span", _J, j(e.title), 1), c(Sq, {
34643
+ }, [a("span", vJ, j(e.title), 1), c(Cq, {
34631
34644
  column: e,
34632
34645
  value: se.value[e.key] ?? "",
34633
34646
  "onUpdate:value": (t) => se.value[e.key] = t
@@ -34637,7 +34650,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34637
34650
  "onUpdate:value"
34638
34651
  ])]))), 128))]),
34639
34652
  _: 1
34640
- }, 8, ["x-scrollable", "content-class"]), a("div", vJ, [
34653
+ }, 8, ["x-scrollable", "content-class"]), a("div", yJ, [
34641
34654
  c(M(F), {
34642
34655
  size: "small",
34643
34656
  onClick: Se
@@ -34697,11 +34710,11 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34697
34710
  maxWidth: "90vw"
34698
34711
  })
34699
34712
  }, {
34700
- header: P(() => [a("span", yJ, j(ke.value), 1)]),
34701
- default: P(() => [a("div", bJ, [(O(!0), i(e, null, te(ee.value, (t) => (O(), i(e, { key: t.key }, [t.key && Ne.value[t.key]?.visible ? (O(), i("div", {
34713
+ header: P(() => [a("span", bJ, j(ke.value), 1)]),
34714
+ default: P(() => [a("div", xJ, [(O(!0), i(e, null, te(ee.value, (t) => (O(), i(e, { key: t.key }, [t.key && Ne.value[t.key]?.visible ? (O(), i("div", {
34702
34715
  key: 0,
34703
- class: x(`col-span-${M(cq)(t)}`)
34704
- }, [a("div", xJ, j(t.title), 1), a("div", SJ, [c(bq, {
34716
+ class: x(`col-span-${M(lq)(t)}`)
34717
+ }, [a("div", SJ, j(t.title), 1), a("div", CJ, [c(xq, {
34705
34718
  column: t,
34706
34719
  value: Ne.value[t.key]?.value,
34707
34720
  disabled: !!Ne.value[t.key]?.derived,
@@ -34711,7 +34724,7 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34711
34724
  "value",
34712
34725
  "disabled",
34713
34726
  "onUpdate:value"
34714
- ])])], 2)) : r("", !0)], 64))), 128))]), a("div", CJ, [c(M(F), {
34727
+ ])])], 2)) : r("", !0)], 64))), 128))]), a("div", wJ, [c(M(F), {
34715
34728
  size: "small",
34716
34729
  onClick: o[1] ||= (e) => we.value = !1
34717
34730
  }, {
@@ -34735,23 +34748,23 @@ var mJ = { class: "flex items-center gap-1" }, hJ = {
34735
34748
  }
34736
34749
  });
34737
34750
  eR(), _l(), QL();
34738
- function TJ(e) {
34751
+ function EJ(e) {
34739
34752
  let t = hl(e);
34740
34753
  if (!t) throw Error(`[formkit-form-builder] 缺少容器规格: ${e}`);
34741
34754
  return t;
34742
34755
  }
34743
- function EJ(e, t) {
34756
+ function DJ(e, t) {
34744
34757
  if (!e || typeof e != "object") return !1;
34745
34758
  let n = e;
34746
34759
  return n.$cmp === t || n.$formkit === t;
34747
34760
  }
34748
- function DJ(e, t, n) {
34761
+ function OJ(e, t, n) {
34749
34762
  let r = { ...e };
34750
34763
  r.$cmp = t, n.primitive === "group" && delete r.$formkit, r.children = Array.isArray(r.children) ? r.children : [];
34751
34764
  let i = typeof r.props == "object" && r.props ? { ...r.props } : {};
34752
34765
  return i[n.keyProp] = typeof i[n.keyProp] == "string" && i[n.keyProp] ? i[n.keyProp] : r.__key ?? "", i.modelValue = r.children, n.primitive === "group" && typeof r.name == "string" && r.name && (i.name = r.name), (n.dataShape === "arrayOfObjects" || n.dataShape === "array") && i.showActions === void 0 && (i.showActions = !1), r.props = i, r;
34753
34766
  }
34754
- var OJ = {
34767
+ var kJ = {
34755
34768
  1: "!w-[8.33%]",
34756
34769
  2: "!w-[16.67%]",
34757
34770
  3: "!w-[25%]",
@@ -34764,38 +34777,38 @@ var OJ = {
34764
34777
  10: "!w-[83.33%]",
34765
34778
  11: "!w-[91.67%]",
34766
34779
  12: "!w-[100%]"
34767
- }, kJ = (e) => (typeof e == "string" ? e : "").replace(/\bcol-span-\d+\b/g, "").replace(/\b!?w-\[[^\]]+\]/g, "").replace(/\bpt-2\b/g, "").replace(/\s+/g, " ").trim();
34768
- function AJ(e) {
34780
+ }, AJ = (e) => (typeof e == "string" ? e : "").replace(/\bcol-span-\d+\b/g, "").replace(/\b!?w-\[[^\]]+\]/g, "").replace(/\bpt-2\b/g, "").replace(/\s+/g, " ").trim();
34781
+ function jJ(e) {
34769
34782
  let t = e?.layout?.colspan;
34770
34783
  if (typeof t == "number" && Number.isFinite(t) && t > 0) return Math.max(1, Math.min(12, Math.round(t)));
34771
34784
  let n = (typeof e?.outerClass == "string" ? e.outerClass : "").match(/\bcol-span-(\d+)\b/);
34772
34785
  return n ? Math.max(1, Math.min(12, parseInt(n[1], 10))) : 12;
34773
34786
  }
34774
- function jJ(e) {
34775
- let t = e, n = `${OJ[AJ(t)] ?? "w-[100%]"} ${kJ(t?.outerClass)}`.trim(), r = {
34787
+ function MJ(e) {
34788
+ let t = e, n = `${kJ[jJ(t)] ?? "w-[100%]"} ${AJ(t?.outerClass)}`.trim(), r = {
34776
34789
  ...e,
34777
34790
  outerClass: n || void 0
34778
34791
  };
34779
34792
  if (t && typeof t == "object" && t.props && typeof t.props == "object") {
34780
- let e = { ...t.props }, i = kJ(e.outerClass);
34793
+ let e = { ...t.props }, i = AJ(e.outerClass);
34781
34794
  e.outerClass = n || i, r.props = e;
34782
34795
  }
34783
34796
  return r;
34784
34797
  }
34785
- function MJ(e, t) {
34786
- return e.map(jJ);
34787
- }
34788
34798
  function NJ(e, t) {
34799
+ return e.map(MJ);
34800
+ }
34801
+ function PJ(e, t) {
34789
34802
  let n = t.props?.disabled;
34790
34803
  return e.map((e) => {
34791
34804
  let t = _H(e);
34792
34805
  return n ? vH(t) : t;
34793
34806
  });
34794
34807
  }
34795
- var PJ = [
34808
+ var FJ = [
34796
34809
  {
34797
34810
  id: "list",
34798
- match: (e) => EJ(e, "list"),
34811
+ match: (e) => DJ(e, "list"),
34799
34812
  canvas: {
34800
34813
  libraryKey: "list",
34801
34814
  component: bG
@@ -34804,12 +34817,12 @@ var PJ = [
34804
34817
  libraryKey: "list",
34805
34818
  component: OG
34806
34819
  },
34807
- normalize: (e) => DJ(e, "list", TJ("list")),
34808
- formatPreview: (e, t) => VJ(e, t, "list", TJ("list"))
34820
+ normalize: (e) => OJ(e, "list", EJ("list")),
34821
+ formatPreview: (e, t) => HJ(e, t, "list", EJ("list"))
34809
34822
  },
34810
34823
  {
34811
34824
  id: "card",
34812
- match: (e) => EJ(e, "card"),
34825
+ match: (e) => DJ(e, "card"),
34813
34826
  canvas: {
34814
34827
  libraryKey: "card",
34815
34828
  component: MG
@@ -34818,12 +34831,12 @@ var PJ = [
34818
34831
  libraryKey: "card",
34819
34832
  component: RG
34820
34833
  },
34821
- normalize: (e) => DJ(e, "card", TJ("card")),
34822
- formatPreview: (e, t) => VJ(e, t, "card", TJ("card"))
34834
+ normalize: (e) => OJ(e, "card", EJ("card")),
34835
+ formatPreview: (e, t) => HJ(e, t, "card", EJ("card"))
34823
34836
  },
34824
34837
  {
34825
34838
  id: "inputGroup",
34826
- match: (e) => EJ(e, "inputGroup"),
34839
+ match: (e) => DJ(e, "inputGroup"),
34827
34840
  canvas: {
34828
34841
  libraryKey: "inputGroup",
34829
34842
  component: WG
@@ -34832,12 +34845,12 @@ var PJ = [
34832
34845
  libraryKey: "inputGroup",
34833
34846
  component: XG
34834
34847
  },
34835
- normalize: (e) => DJ(e, "inputGroup", TJ("inputGroup")),
34836
- formatPreview: (e, t) => VJ(e, t, "inputGroup", TJ("inputGroup"), { transformChildren: MJ })
34848
+ normalize: (e) => OJ(e, "inputGroup", EJ("inputGroup")),
34849
+ formatPreview: (e, t) => HJ(e, t, "inputGroup", EJ("inputGroup"), { transformChildren: NJ })
34837
34850
  },
34838
34851
  {
34839
34852
  id: "buttonGroup",
34840
- match: (e) => EJ(e, "buttonGroup"),
34853
+ match: (e) => DJ(e, "buttonGroup"),
34841
34854
  canvas: {
34842
34855
  libraryKey: "buttonGroup",
34843
34856
  component: $G
@@ -34846,103 +34859,103 @@ var PJ = [
34846
34859
  libraryKey: "buttonGroup",
34847
34860
  component: nK
34848
34861
  },
34849
- normalize: (e) => DJ(e, "buttonGroup", TJ("buttonGroup")),
34850
- formatPreview: (e, t) => VJ(e, t, "buttonGroup", TJ("buttonGroup"), { transformChildren: NJ })
34862
+ normalize: (e) => OJ(e, "buttonGroup", EJ("buttonGroup")),
34863
+ formatPreview: (e, t) => HJ(e, t, "buttonGroup", EJ("buttonGroup"), { transformChildren: PJ })
34851
34864
  },
34852
34865
  {
34853
34866
  id: "badge",
34854
- match: (e) => EJ(e, "badge"),
34867
+ match: (e) => DJ(e, "badge"),
34855
34868
  canvas: {
34856
34869
  libraryKey: "badge",
34857
- component: fK
34870
+ component: pK
34858
34871
  },
34859
34872
  preview: {
34860
34873
  libraryKey: "badge",
34861
- component: yK
34874
+ component: bK
34862
34875
  },
34863
- normalize: (e) => DJ(e, "badge", TJ("badge")),
34864
- formatPreview: (e, t) => VJ(e, t, "badge", TJ("badge"))
34876
+ normalize: (e) => OJ(e, "badge", EJ("badge")),
34877
+ formatPreview: (e, t) => HJ(e, t, "badge", EJ("badge"))
34865
34878
  },
34866
34879
  {
34867
34880
  id: "tabs",
34868
- match: (e) => EJ(e, "tabs"),
34881
+ match: (e) => DJ(e, "tabs"),
34869
34882
  canvas: {
34870
34883
  libraryKey: "tabs",
34871
- component: kK
34884
+ component: AK
34872
34885
  },
34873
34886
  preview: {
34874
34887
  libraryKey: "tabs",
34875
- component: PK
34888
+ component: FK
34876
34889
  },
34877
- normalize: (e) => DJ(e, "tabs", TJ("tabs")),
34878
- formatPreview: (e, t) => VJ(e, t, "tabs", TJ("tabs"))
34890
+ normalize: (e) => OJ(e, "tabs", EJ("tabs")),
34891
+ formatPreview: (e, t) => HJ(e, t, "tabs", EJ("tabs"))
34879
34892
  },
34880
34893
  {
34881
34894
  id: "steps",
34882
- match: (e) => EJ(e, "steps"),
34895
+ match: (e) => DJ(e, "steps"),
34883
34896
  canvas: {
34884
34897
  libraryKey: "steps",
34885
- component: YK
34898
+ component: XK
34886
34899
  },
34887
34900
  preview: {
34888
34901
  libraryKey: "steps",
34889
- component: tq
34902
+ component: nq
34890
34903
  },
34891
- normalize: (e) => DJ(e, "steps", TJ("steps")),
34892
- formatPreview: (e, t) => VJ(e, t, "steps", TJ("steps"))
34904
+ normalize: (e) => OJ(e, "steps", EJ("steps")),
34905
+ formatPreview: (e, t) => HJ(e, t, "steps", EJ("steps"))
34893
34906
  },
34894
34907
  {
34895
34908
  id: "group",
34896
- match: (e) => EJ(e, "group"),
34909
+ match: (e) => DJ(e, "group"),
34897
34910
  canvas: {
34898
34911
  libraryKey: "group",
34899
- component: iq
34912
+ component: aq
34900
34913
  },
34901
- normalize: (e) => DJ(e, "group", TJ("group")),
34902
- formatPreview: (e, t) => VJ(e, t, "group", TJ("group"))
34914
+ normalize: (e) => OJ(e, "group", EJ("group")),
34915
+ formatPreview: (e, t) => HJ(e, t, "group", EJ("group"))
34903
34916
  },
34904
34917
  {
34905
34918
  id: "dataTable",
34906
- match: (e) => EJ(e, "dataTable"),
34919
+ match: (e) => DJ(e, "dataTable"),
34907
34920
  canvas: {
34908
34921
  libraryKey: "dataTable",
34909
- component: pJ
34922
+ component: mJ
34910
34923
  },
34911
34924
  preview: {
34912
34925
  libraryKey: "dataTable",
34913
- component: wJ
34926
+ component: TJ
34914
34927
  },
34915
- normalize: (e) => DJ(e, "dataTable", TJ("dataTable")),
34916
- formatPreview: (e, t) => VJ(e, t, "dataTable", TJ("dataTable"))
34928
+ normalize: (e) => OJ(e, "dataTable", EJ("dataTable")),
34929
+ formatPreview: (e, t) => HJ(e, t, "dataTable", EJ("dataTable"))
34917
34930
  }
34918
34931
  ];
34919
- function FJ(e) {
34920
- for (let t of PJ) if (t.match(e)) return t;
34921
- return null;
34922
- }
34923
34932
  function IJ(e) {
34924
- PJ.push(e);
34933
+ for (let t of FJ) if (t.match(e)) return t;
34934
+ return null;
34925
34935
  }
34926
34936
  function LJ(e) {
34927
- let t = FJ(e);
34937
+ FJ.push(e);
34938
+ }
34939
+ function RJ(e) {
34940
+ let t = IJ(e);
34928
34941
  return t?.normalize ? t.normalize(e) : e;
34929
34942
  }
34930
- function RJ() {
34943
+ function zJ() {
34931
34944
  let e = { ...mH() };
34932
- for (let t of PJ) t.canvas && (e[t.canvas.libraryKey] = v(t.canvas.component));
34945
+ for (let t of FJ) t.canvas && (e[t.canvas.libraryKey] = v(t.canvas.component));
34933
34946
  return e;
34934
34947
  }
34935
- function zJ() {
34948
+ function BJ() {
34936
34949
  let e = { ...mH() };
34937
- for (let t of PJ) t.preview && (e[t.preview.libraryKey] = v(t.preview.component));
34950
+ for (let t of FJ) t.preview && (e[t.preview.libraryKey] = v(t.preview.component));
34938
34951
  return e;
34939
34952
  }
34940
- function BJ(e, t) {
34941
- let n = FJ(e);
34953
+ function VJ(e, t) {
34954
+ let n = IJ(e);
34942
34955
  return n?.formatPreview ? n.formatPreview(e, t) : null;
34943
34956
  }
34944
- function VJ(e, t, n, r, i) {
34945
- let a = e?.__key, o = DJ(e, n, r), s = Array.isArray(o.children) ? o.children.map((e, n) => t.format(e, n)) : [], c = i?.transformChildren ? i.transformChildren(s, o) : s, l = o.if, u = o.props?.name ?? o.name, d = o.props?.[r.keyProp] ?? a ?? "";
34957
+ function HJ(e, t, n, r, i) {
34958
+ let a = e?.__key, o = OJ(e, n, r), s = Array.isArray(o.children) ? o.children.map((e, n) => t.format(e, n)) : [], c = i?.transformChildren ? i.transformChildren(s, o) : s, l = o.if, u = o.props?.name ?? o.name, d = o.props?.[r.keyProp] ?? a ?? "";
34946
34959
  if (r.dataShape === "none") {
34947
34960
  let e = {
34948
34961
  $el: "div",
@@ -35050,10 +35063,10 @@ function VJ(e, t, n, r, i) {
35050
35063
  //#endregion
35051
35064
  //#region src/components/sidebar-left/DraggableList.vue?vue&type=script&setup=true&lang.ts
35052
35065
  H();
35053
- var HJ = { key: 0 }, UJ = { class: "h-32px w-32px rounded-md flex items-center justify-center" }, WJ = {
35066
+ var UJ = { key: 0 }, WJ = { class: "h-32px w-32px rounded-md flex items-center justify-center" }, GJ = {
35054
35067
  key: 2,
35055
35068
  class: "ml-3 flex flex-col justify-center overflow-hidden"
35056
- }, GJ = { class: "text-[11px] text-secondary-foreground/80 font-medium" }, KJ = { class: "text-[9px] text-muted-foreground truncate" }, qJ = /* @__PURE__ */ u({
35069
+ }, KJ = { class: "text-[11px] text-secondary-foreground/80 font-medium" }, qJ = { class: "text-[9px] text-muted-foreground truncate" }, JJ = /* @__PURE__ */ u({
35057
35070
  __name: "DraggableList",
35058
35071
  props: { elements: {} },
35059
35072
  setup(n) {
@@ -35092,19 +35105,19 @@ var HJ = { key: 0 }, UJ = { class: "h-32px w-32px rounded-md flex items-center j
35092
35105
  }, [(O(!0), i(e, null, te(M(p), (e) => (O(), i("div", {
35093
35106
  key: e.name,
35094
35107
  class: x([M(u) ? "h-48px w-48px rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 cursor-grab flex items-center justify-center border border-transparent hover:border-gray-200 dark:hover:border-gray-700" : "p-8px rounded hover:bg-gray-100 dark:hover:bg-gray-800 cursor-grab flex items-center border border-transparent hover:border-gray-200 dark:hover:border-gray-700", e.name.trim().replace(/\s+/g, "-").toLowerCase()])
35095
- }, [M(u) ? (O(), i("div", HJ, [c(o, { placement: "right" }, {
35096
- trigger: P(() => [a("div", UJ, [a("span", { class: x(`${g(e)} h-16px w-16px`) }, null, 2)])]),
35108
+ }, [M(u) ? (O(), i("div", UJ, [c(o, { placement: "right" }, {
35109
+ trigger: P(() => [a("div", WJ, [a("span", { class: x(`${g(e)} h-16px w-16px`) }, null, 2)])]),
35097
35110
  default: P(() => [a("div", null, j(e.name.trim()), 1)]),
35098
35111
  _: 2
35099
35112
  }, 1024)])) : (O(), i("span", {
35100
35113
  key: 1,
35101
35114
  class: x(`${g(e)} h-5 w-5 shrink-0`)
35102
- }, null, 2)), M(u) ? r("", !0) : (O(), i("div", WJ, [a("span", GJ, j(e.name), 1), a("span", KJ, j(e.description), 1)]))], 2))), 128))], 2);
35115
+ }, null, 2)), M(u) ? r("", !0) : (O(), i("div", GJ, [a("span", KJ, j(e.name), 1), a("span", qJ, j(e.description), 1)]))], 2))), 128))], 2);
35103
35116
  };
35104
35117
  }
35105
35118
  });
35106
35119
  Mu(), Xd(), Hu();
35107
- var JJ = { class: "structure-tree overflow-x-auto" }, YJ = /* @__PURE__ */ gG(/* @__PURE__ */ u({
35120
+ var YJ = { class: "structure-tree overflow-x-auto" }, XJ = /* @__PURE__ */ gG(/* @__PURE__ */ u({
35108
35121
  __name: "StructureTree",
35109
35122
  props: { nodes: {} },
35110
35123
  setup(e) {
@@ -35164,7 +35177,7 @@ var JJ = { class: "structure-tree overflow-x-auto" }, YJ = /* @__PURE__ */ gG(/*
35164
35177
  }
35165
35178
  }, { icon: () => p("span", { class: "i-lucide-trash-2 h-3 w-3" }) });
35166
35179
  };
35167
- return (e, t) => (O(), i("div", JJ, [c(M(bt), {
35180
+ return (e, t) => (O(), i("div", YJ, [c(M(bt), {
35168
35181
  selectable: "",
35169
35182
  draggable: "",
35170
35183
  "block-line": "",
@@ -35183,13 +35196,13 @@ var JJ = { class: "structure-tree overflow-x-auto" }, YJ = /* @__PURE__ */ gG(/*
35183
35196
  }
35184
35197
  }), [["__scopeId", "data-v-e9729638"]]);
35185
35198
  Xd(), H();
35186
- var XJ = { class: "h-full flex flex-col overflow-hidden" }, ZJ = { class: "shrink-0 p-2 pb-0" }, QJ = {
35199
+ var ZJ = { class: "h-full flex flex-col overflow-hidden" }, QJ = { class: "shrink-0 p-2 pb-0" }, $J = {
35187
35200
  key: 0,
35188
35201
  class: "h-full"
35189
- }, $J = {
35202
+ }, eY = {
35190
35203
  key: 1,
35191
35204
  class: "flex h-full items-center justify-center"
35192
- }, eY = /* @__PURE__ */ u({
35205
+ }, tY = /* @__PURE__ */ u({
35193
35206
  __name: "NavMain",
35194
35207
  setup(r) {
35195
35208
  let o = m("searchInput", A("")), s = m("sidebarCollapsed", A(!1)), { t: l } = V(), u = t(() => aR(l)), d = t(() => sR(l)), f = A("elements"), { formDefinition: p } = qd(), h = t(() => {
@@ -35220,13 +35233,13 @@ var XJ = { class: "h-full flex flex-col overflow-hidden" }, ZJ = { class: "shrin
35220
35233
  e[i] && e[i].push(t);
35221
35234
  }), e;
35222
35235
  });
35223
- return (t, r) => (O(), i("div", XJ, [M(s) ? (O(), n(M(at), {
35236
+ return (t, r) => (O(), i("div", ZJ, [M(s) ? (O(), n(M(at), {
35224
35237
  key: 0,
35225
35238
  class: "h-full w-full",
35226
35239
  "x-scrollable": !1,
35227
35240
  "content-class": "py-2 pr-4 pl-2"
35228
35241
  }, {
35229
- default: P(() => [c(qJ, { elements: h.value }, null, 8, ["elements"])]),
35242
+ default: P(() => [c(JJ, { elements: h.value }, null, 8, ["elements"])]),
35230
35243
  _: 1
35231
35244
  })) : (O(), n(M(mt), {
35232
35245
  key: 1,
@@ -35243,7 +35256,7 @@ var XJ = { class: "h-full flex flex-col overflow-hidden" }, ZJ = { class: "shrin
35243
35256
  name: "elements",
35244
35257
  tab: M(l)("sidebar.elements")
35245
35258
  }, {
35246
- default: P(() => [a("div", ZJ, [c(M(ze), {
35259
+ default: P(() => [a("div", QJ, [c(M(ze), {
35247
35260
  placeholder: M(l)("sidebar.search"),
35248
35261
  value: M(o),
35249
35262
  "onUpdate:value": r[0] ||= (e) => g(o) ? o.value = e : null
@@ -35263,7 +35276,7 @@ var XJ = { class: "h-full flex flex-col overflow-hidden" }, ZJ = { class: "shrin
35263
35276
  class: "h-full sidebar-scrollbar",
35264
35277
  "content-class": "pb-4 pr-4 pl-2 mb-2"
35265
35278
  }, {
35266
- default: P(() => [c(qJ, { elements: v.value[e.id] }, null, 8, ["elements"])]),
35279
+ default: P(() => [c(JJ, { elements: v.value[e.id] }, null, 8, ["elements"])]),
35267
35280
  _: 2
35268
35281
  }, 1024)]),
35269
35282
  _: 2
@@ -35276,19 +35289,19 @@ var XJ = { class: "h-full flex flex-col overflow-hidden" }, ZJ = { class: "shrin
35276
35289
  name: "structure",
35277
35290
  tab: M(l)("sidebar.structure")
35278
35291
  }, {
35279
- default: P(() => [(M(p).root.children ?? []).length ? (O(), i("div", QJ, [c(M(at), {
35292
+ default: P(() => [(M(p).root.children ?? []).length ? (O(), i("div", $J, [c(M(at), {
35280
35293
  class: "h-full sidebar-scrollbar",
35281
35294
  "content-class": "p-2 pr-4 pl-2 mb-2"
35282
35295
  }, {
35283
- default: P(() => [c(YJ, { nodes: M(p).root.children ?? [] }, null, 8, ["nodes"])]),
35296
+ default: P(() => [c(XJ, { nodes: M(p).root.children ?? [] }, null, 8, ["nodes"])]),
35284
35297
  _: 1
35285
- })])) : (O(), i("div", $J, [c(M(je), { description: M(l)("sidebar.structureEmpty") }, null, 8, ["description"])]))]),
35298
+ })])) : (O(), i("div", eY, [c(M(je), { description: M(l)("sidebar.structureEmpty") }, null, 8, ["description"])]))]),
35286
35299
  _: 1
35287
35300
  }, 8, ["tab"]))]),
35288
35301
  _: 1
35289
35302
  }, 8, ["value"]))]));
35290
35303
  }
35291
- }), tY = { class: "flex-1 overflow-hidden" }, nY = /* @__PURE__ */ u({
35304
+ }), nY = { class: "flex-1 overflow-hidden" }, rY = /* @__PURE__ */ u({
35292
35305
  __name: "SidebarLeft",
35293
35306
  setup(e) {
35294
35307
  k("searchInput", A(""));
@@ -35305,7 +35318,7 @@ var XJ = { class: "h-full flex flex-col overflow-hidden" }, ZJ = { class: "shrin
35305
35318
  "content-style": "display: flex; flex-direction: column; height: 100%;",
35306
35319
  class: "sidebar-sider"
35307
35320
  }, {
35308
- default: P(() => [a("div", tY, [c(eY)])]),
35321
+ default: P(() => [a("div", nY, [c(tY)])]),
35309
35322
  _: 1
35310
35323
  }, 8, ["collapsed"]));
35311
35324
  }
@@ -35315,7 +35328,7 @@ var XJ = { class: "h-full flex flex-col overflow-hidden" }, ZJ = { class: "shrin
35315
35328
  xf();
35316
35329
  //#endregion
35317
35330
  //#region src/components/ui/validation-card/ValidationCard.vue
35318
- var rY = /* @__PURE__ */ u({
35331
+ var iY = /* @__PURE__ */ u({
35319
35332
  __name: "ValidationCard",
35320
35333
  props: { class: { type: [
35321
35334
  Boolean,
@@ -35332,7 +35345,7 @@ var rY = /* @__PURE__ */ u({
35332
35345
  //#endregion
35333
35346
  //#region src/components/ui/validation-card/ValidationSwitch.vue?vue&type=script&setup=true&lang.ts
35334
35347
  xf();
35335
- var iY = { class: "flex flex-row justify-between items-center w-full" }, aY = { class: "text-xs" }, oY = /* @__PURE__ */ u({
35348
+ var aY = { class: "flex flex-row justify-between items-center w-full" }, oY = { class: "text-xs" }, sY = /* @__PURE__ */ u({
35336
35349
  __name: "ValidationSwitch",
35337
35350
  props: {
35338
35351
  class: { type: [
@@ -35361,7 +35374,7 @@ var iY = { class: "flex flex-row justify-between items-center w-full" }, aY = {
35361
35374
  value: n.isActive,
35362
35375
  "onUpdate:value": o,
35363
35376
  onClick: t[0] ||= le(() => {}, ["stop"])
35364
- }, null, 8, ["value"]), a("div", iY, [a("span", aY, j(n.label), 1), c(M(vt), {
35377
+ }, null, 8, ["value"]), a("div", aY, [a("span", oY, j(n.label), 1), c(M(vt), {
35365
35378
  trigger: "hover",
35366
35379
  placement: "top"
35367
35380
  }, {
@@ -35379,7 +35392,7 @@ var iY = { class: "flex flex-row justify-between items-center w-full" }, aY = {
35379
35392
  B();
35380
35393
  //#endregion
35381
35394
  //#region src/components/sidebar-right/validations/SingleValueValidation.vue
35382
- var sY = /* @__PURE__ */ u({
35395
+ var cY = /* @__PURE__ */ u({
35383
35396
  __name: "SingleValueValidation",
35384
35397
  props: {
35385
35398
  value: {},
@@ -35391,8 +35404,8 @@ var sY = /* @__PURE__ */ u({
35391
35404
  function s() {
35392
35405
  i(t.value);
35393
35406
  }
35394
- return (e, r) => (O(), n(M(rY), null, {
35395
- default: P(() => [c(M(oY), {
35407
+ return (e, r) => (O(), n(M(iY), null, {
35408
+ default: P(() => [c(M(sY), {
35396
35409
  isActive: M(o),
35397
35410
  "onUpdate:isActive": s,
35398
35411
  label: t.label,
@@ -35410,7 +35423,7 @@ var sY = /* @__PURE__ */ u({
35410
35423
  B(), H();
35411
35424
  //#endregion
35412
35425
  //#region src/components/sidebar-right/validations/SingleParamValidation.vue
35413
- var cY = /* @__PURE__ */ u({
35426
+ var lY = /* @__PURE__ */ u({
35414
35427
  __name: "SingleParamValidation",
35415
35428
  props: {
35416
35429
  value: {},
@@ -35436,9 +35449,9 @@ var cY = /* @__PURE__ */ u({
35436
35449
  let e = !f.value, t = p.value;
35437
35450
  e && i.value === "matches" && !t && (t = "/[0-9]/"), !e && i.value === "matches" && (m.value = ""), u(`${i.value}:${t}`, e);
35438
35451
  };
35439
- return (e, t) => (O(), n(M(rY), null, {
35452
+ return (e, t) => (O(), n(M(iY), null, {
35440
35453
  default: P(() => [
35441
- c(M(oY), {
35454
+ c(M(sY), {
35442
35455
  isActive: M(f),
35443
35456
  "onUpdate:isActive": v,
35444
35457
  label: i.label,
@@ -35480,16 +35493,16 @@ var cY = /* @__PURE__ */ u({
35480
35493
  }
35481
35494
  });
35482
35495
  B(), xf(), H();
35483
- var lY = {
35496
+ var uY = {
35484
35497
  key: 0,
35485
35498
  class: "flex flex-row gap-2"
35486
- }, uY = { class: "flex flex-col gap-1" }, dY = { class: "text-xs" }, fY = { class: "flex flex-col gap-1" }, pY = { class: "text-xs" }, mY = {
35499
+ }, dY = { class: "flex flex-col gap-1" }, fY = { class: "text-xs" }, pY = { class: "flex flex-col gap-1" }, mY = { class: "text-xs" }, hY = {
35487
35500
  key: 1,
35488
35501
  class: "flex flex-col gap-2"
35489
- }, hY = { class: "flex flex-col gap-1" }, gY = { class: "text-xs" }, _Y = { class: "flex flex-col gap-1" }, vY = { class: "text-xs" }, yY = {
35502
+ }, gY = { class: "flex flex-col gap-1" }, _Y = { class: "text-xs" }, vY = { class: "flex flex-col gap-1" }, yY = { class: "text-xs" }, bY = {
35490
35503
  key: 2,
35491
35504
  class: "text-xs text-destructive"
35492
- }, bY = /* @__PURE__ */ u({
35505
+ }, xY = /* @__PURE__ */ u({
35493
35506
  __name: "DoubleParamValidation",
35494
35507
  props: {
35495
35508
  value: {},
@@ -35526,9 +35539,9 @@ var lY = {
35526
35539
  }), y = () => {
35527
35540
  o.value === "between" ? s(`between:${h.value},${g.value}`, !p.value) : o.value === "date_between" ? !h.value || !g.value ? s("date_between:01/01/2002,01/01/2003", !p.value) : s(`date_between:${h.value},${g.value}`, !p.value) : s(g.value ? h.value ? `length:${h.value},${g.value}` : `length:0,${g.value}` : `length:${h.value}`, !p.value);
35528
35541
  };
35529
- return (e, t) => (O(), n(M(rY), null, {
35542
+ return (e, t) => (O(), n(M(iY), null, {
35530
35543
  default: P(() => [
35531
- c(M(oY), {
35544
+ c(M(sY), {
35532
35545
  isActive: M(p),
35533
35546
  "onUpdate:isActive": y,
35534
35547
  label: o.switchLabel,
@@ -35539,8 +35552,8 @@ var lY = {
35539
35552
  "label",
35540
35553
  "tooltip"
35541
35554
  ]),
35542
- M(p) && o.value !== "date_between" ? (O(), i("div", lY, [
35543
- a("div", uY, [a("span", dY, j(o.labelOne), 1), c(M(ze), {
35555
+ M(p) && o.value !== "date_between" ? (O(), i("div", uY, [
35556
+ a("div", dY, [a("span", fY, j(o.labelOne), 1), c(M(ze), {
35544
35557
  size: "small",
35545
35558
  value: h.value,
35546
35559
  "onUpdate:value": t[0] ||= (e) => h.value = e,
@@ -35548,7 +35561,7 @@ var lY = {
35548
35561
  class: "text-[10px]"
35549
35562
  }, null, 8, ["value", "placeholder"])]),
35550
35563
  t[4] ||= a("span", { class: "i-lucide-move-right mt-5 h-4 w-4" }, null, -1),
35551
- a("div", fY, [a("span", pY, j(o.labelTwo), 1), c(M(ze), {
35564
+ a("div", pY, [a("span", mY, j(o.labelTwo), 1), c(M(ze), {
35552
35565
  size: "small",
35553
35566
  value: g.value,
35554
35567
  "onUpdate:value": t[1] ||= (e) => g.value = e,
@@ -35556,25 +35569,25 @@ var lY = {
35556
35569
  class: "text-[10px]"
35557
35570
  }, null, 8, ["value", "placeholder"])])
35558
35571
  ])) : r("", !0),
35559
- M(p) && o.value === "date_between" ? (O(), i("div", mY, [a("div", hY, [a("span", gY, j(o.labelOne), 1), c(M(De), {
35572
+ M(p) && o.value === "date_between" ? (O(), i("div", hY, [a("div", gY, [a("span", _Y, j(o.labelOne), 1), c(M(De), {
35560
35573
  size: "small",
35561
35574
  type: "date",
35562
35575
  value: _.value,
35563
35576
  "onUpdate:value": t[2] ||= (e) => _.value = e
35564
- }, null, 8, ["value"])]), a("div", _Y, [a("span", vY, j(o.labelTwo), 1), c(M(De), {
35577
+ }, null, 8, ["value"])]), a("div", vY, [a("span", yY, j(o.labelTwo), 1), c(M(De), {
35565
35578
  size: "small",
35566
35579
  type: "date",
35567
35580
  value: v.value,
35568
35581
  "onUpdate:value": t[3] ||= (e) => v.value = e
35569
35582
  }, null, 8, ["value"])])])) : r("", !0),
35570
- (!g.value || !h.value) && (o.value === "between" || o.value === "date_between") && M(p) ? (O(), i("span", yY, j(M(f)("validation.bothValuesMustBeSet")), 1)) : r("", !0)
35583
+ (!g.value || !h.value) && (o.value === "between" || o.value === "date_between") && M(p) ? (O(), i("span", bY, j(M(f)("validation.bothValuesMustBeSet")), 1)) : r("", !0)
35571
35584
  ]),
35572
35585
  _: 1
35573
35586
  }));
35574
35587
  }
35575
35588
  });
35576
35589
  H(), B();
35577
- var xY = { class: "text-[11px]" }, SY = { class: "space-y-2 md:space-y-3 pt-1" }, CY = /* @__PURE__ */ gG(/* @__PURE__ */ u({
35590
+ var SY = { class: "text-[11px]" }, CY = { class: "space-y-2 md:space-y-3 pt-1" }, wY = /* @__PURE__ */ gG(/* @__PURE__ */ u({
35578
35591
  __name: "ValidationSection",
35579
35592
  setup(o) {
35580
35593
  let { t: s } = V(), { currentFieldType: l, selectedField: u } = z(), d = t(() => ({
@@ -35977,10 +35990,10 @@ var xY = { class: "text-[11px]" }, SY = { class: "space-y-2 md:space-y-3 pt-1" }
35977
35990
  class: "validation-section"
35978
35991
  }, {
35979
35992
  default: P(() => [c(M(Ce), { name: "validation" }, {
35980
- header: P(() => [a("span", xY, j(M(s)("validation.rulesTitle")), 1)]),
35993
+ header: P(() => [a("span", SY, j(M(s)("validation.rulesTitle")), 1)]),
35981
35994
  arrow: P(({ collapsed: e }) => [a("span", { class: x([e ? "i-lucide-chevron-right" : "i-lucide-chevron-down", "h-3 w-3 text-muted-foreground/70 transition-[transform] duration-150"]) }, null, 2)]),
35982
- default: P(() => [a("div", SY, [
35983
- (O(!0), i(e, null, te(p.value.singleValue, (e) => (O(), n(sY, {
35995
+ default: P(() => [a("div", CY, [
35996
+ (O(!0), i(e, null, te(p.value.singleValue, (e) => (O(), n(cY, {
35984
35997
  key: e.value,
35985
35998
  value: e.value,
35986
35999
  tooltip: e.tooltip,
@@ -35990,7 +36003,7 @@ var xY = { class: "text-[11px]" }, SY = { class: "space-y-2 md:space-y-3 pt-1" }
35990
36003
  "tooltip",
35991
36004
  "label"
35992
36005
  ]))), 128)),
35993
- (O(!0), i(e, null, te(p.value.singleParam, (e) => (O(), n(cY, {
36006
+ (O(!0), i(e, null, te(p.value.singleParam, (e) => (O(), n(lY, {
35994
36007
  key: e.value,
35995
36008
  value: e.value,
35996
36009
  tooltip: e.tooltip,
@@ -36002,7 +36015,7 @@ var xY = { class: "text-[11px]" }, SY = { class: "space-y-2 md:space-y-3 pt-1" }
36002
36015
  "label",
36003
36016
  "placeholder"
36004
36017
  ]))), 128)),
36005
- (O(!0), i(e, null, te(p.value.doubleParam, (e) => (O(), n(bY, {
36018
+ (O(!0), i(e, null, te(p.value.doubleParam, (e) => (O(), n(xY, {
36006
36019
  key: e.value,
36007
36020
  value: e.value,
36008
36021
  tooltip: e.tooltip,
@@ -36030,7 +36043,7 @@ var xY = { class: "text-[11px]" }, SY = { class: "space-y-2 md:space-y-3 pt-1" }
36030
36043
  id(), B(), Xd(), H(), Hu(), qA();
36031
36044
  //#endregion
36032
36045
  //#region src/components/sidebar-right/edits/common/NameInput.vue
36033
- var wY = /* @__PURE__ */ u({
36046
+ var TY = /* @__PURE__ */ u({
36034
36047
  __name: "NameInput",
36035
36048
  setup(a) {
36036
36049
  let { formDefinition: o, selectedIndex: s, selectedKey: l } = qd(), { currentFieldType: u, fieldName: d, label: f, hasField: p } = z(), { t: m } = V(), h = t(() => u.value ? vu(u.value)?.category ?? null : null), g = t(() => u.value === "tabsPane" || u.value === "stepsPane"), _ = t(() => {
@@ -36077,7 +36090,7 @@ var wY = /* @__PURE__ */ u({
36077
36090
  "error"
36078
36091
  ])) : r("", !0);
36079
36092
  }
36080
- }), TY = {
36093
+ }), EY = {
36081
36094
  naiveH1: [{
36082
36095
  key: "text",
36083
36096
  labelKey: "edits.content.text"
@@ -36142,14 +36155,14 @@ var wY = /* @__PURE__ */ u({
36142
36155
  labelKey: "edits.content.text"
36143
36156
  }]
36144
36157
  };
36145
- function EY(e) {
36146
- return e ? TY[e] ?? [] : [];
36158
+ function DY(e) {
36159
+ return e ? EY[e] ?? [] : [];
36147
36160
  }
36148
36161
  B(), H(), VA();
36149
- var DY = { class: "text-xs font-medium tracking-wide text-foreground/80 block mb-1" }, OY = /* @__PURE__ */ u({
36162
+ var OY = { class: "text-xs font-medium tracking-wide text-foreground/80 block mb-1" }, kY = /* @__PURE__ */ u({
36150
36163
  __name: "StaticContentSection",
36151
36164
  setup(r) {
36152
- let { currentFieldType: o, createPropsProp: s } = z(), { t: c } = V(), l = t(() => EY(o.value).map((e) => ({
36165
+ let { currentFieldType: o, createPropsProp: s } = z(), { t: c } = V(), l = t(() => DY(o.value).map((e) => ({
36153
36166
  ...e,
36154
36167
  model: s(e.key, "")
36155
36168
  })));
@@ -36157,7 +36170,7 @@ var DY = { class: "text-xs font-medium tracking-wide text-foreground/80 block mb
36157
36170
  key: e.key,
36158
36171
  class: "mt-2"
36159
36172
  }, {
36160
- default: P(() => [a("label", DY, j(M(c)(e.labelKey)), 1), e.multiline ? (O(), n(M(ze), {
36173
+ default: P(() => [a("label", OY, j(M(c)(e.labelKey)), 1), e.multiline ? (O(), n(M(ze), {
36161
36174
  key: 0,
36162
36175
  size: "small",
36163
36176
  type: "textarea",
@@ -36190,7 +36203,7 @@ var DY = { class: "text-xs font-medium tracking-wide text-foreground/80 block mb
36190
36203
  B(), H(), dj();
36191
36204
  //#endregion
36192
36205
  //#region src/components/sidebar-right/edits/common/ColSpanSection.vue
36193
- var kY = /* @__PURE__ */ u({
36206
+ var AY = /* @__PURE__ */ u({
36194
36207
  __name: "ColSpanSection",
36195
36208
  setup(e) {
36196
36209
  let { colSpan: r } = z(), { t: i } = V(), a = Array.from({ length: 12 }, (e, t) => ({
@@ -36216,7 +36229,7 @@ var kY = /* @__PURE__ */ u({
36216
36229
  }
36217
36230
  });
36218
36231
  B(), H(), Xd();
36219
- var AY = { class: "text-[11px]" }, jY = { class: "flex flex-col gap-1.5 pt-1" }, MY = /* @__PURE__ */ gG(/* @__PURE__ */ u({
36232
+ var jY = { class: "text-[11px]" }, MY = { class: "flex flex-col gap-1.5 pt-1" }, NY = /* @__PURE__ */ gG(/* @__PURE__ */ u({
36220
36233
  __name: "CustomAttrsSection",
36221
36234
  setup(r) {
36222
36235
  let { customAttrs: o } = z(), { t: l } = V(), { selectedIndex: u, selectedKey: d } = qd(), f = t(() => d.value ?? String(u.value)), p = A([]);
@@ -36259,9 +36272,9 @@ var AY = { class: "text-[11px]" }, jY = { class: "flex flex-col gap-1.5 pt-1" },
36259
36272
  class: "custom-attrs-section"
36260
36273
  }, {
36261
36274
  default: P(() => [c(M(Ce), { name: "customAttrs" }, {
36262
- header: P(() => [a("span", AY, j(M(l)("edits.customAttrs.title")), 1)]),
36275
+ header: P(() => [a("span", jY, j(M(l)("edits.customAttrs.title")), 1)]),
36263
36276
  arrow: P(({ collapsed: e }) => [a("span", { class: x([e ? "i-lucide-chevron-right" : "i-lucide-chevron-down", "h-3 w-3 text-muted-foreground/70 transition-[transform] duration-150"]) }, null, 2)]),
36264
- default: P(() => [a("div", jY, [(O(!0), i(e, null, te(p.value, (e, t) => (O(), i("div", {
36277
+ default: P(() => [a("div", MY, [(O(!0), i(e, null, te(p.value, (e, t) => (O(), i("div", {
36265
36278
  key: t,
36266
36279
  class: "flex flex-row gap-1.5 items-center"
36267
36280
  }, [
@@ -36313,32 +36326,32 @@ var AY = { class: "text-[11px]" }, jY = { class: "flex flex-col gap-1.5 pt-1" },
36313
36326
  }
36314
36327
  }), [["__scopeId", "data-v-ec68a311"]]);
36315
36328
  B(), H(), id();
36316
- var NY = {
36329
+ var PY = {
36317
36330
  key: 0,
36318
36331
  class: "flex p-2 h-full text-[11px] md:text-xs text-muted-foreground"
36319
- }, PY = {
36332
+ }, FY = {
36320
36333
  key: 1,
36321
36334
  class: "p-2"
36322
- }, FY = { class: "space-y-2 md:space-y-3" }, IY = /* @__PURE__ */ u({
36335
+ }, IY = { class: "space-y-2 md:space-y-3" }, LY = /* @__PURE__ */ u({
36323
36336
  __name: "EditsSection",
36324
36337
  setup(e) {
36325
36338
  let { hasField: o, currentFieldType: s, selectedIsForm: l } = z(), { t: u } = V(), d = t(() => s.value ? vu(s.value)?.category === "static" : !1), f = t(() => iR(s.value));
36326
- return (e, t) => M(o) ? (O(), i("div", PY, [a("div", FY, [
36327
- c(wY),
36328
- M(l) ? r("", !0) : (O(), n(kY, { key: 0 })),
36329
- d.value ? (O(), n(OY, { key: 1 })) : r("", !0),
36339
+ return (e, t) => M(o) ? (O(), i("div", FY, [a("div", IY, [
36340
+ c(TY),
36341
+ M(l) ? r("", !0) : (O(), n(AY, { key: 0 })),
36342
+ d.value ? (O(), n(kY, { key: 1 })) : r("", !0),
36330
36343
  f.value ? (O(), n(ie(f.value), { key: 2 })) : r("", !0),
36331
- c(MY)
36332
- ])])) : (O(), i("div", NY, j(M(u)("common.selectFieldToEdit")), 1));
36344
+ c(NY)
36345
+ ])])) : (O(), i("div", PY, j(M(u)("common.selectFieldToEdit")), 1));
36333
36346
  }
36334
- }), LY = [];
36335
- function RY(e) {
36336
- LY = [...e];
36347
+ }), RY = [];
36348
+ function zY(e) {
36349
+ RY = [...e];
36337
36350
  }
36338
- var zY = "\n font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;\n font-size: 12px;\n line-height: 1.5;\n max-width: 380px;\n padding: 6px 10px;\n";
36339
- function BY(e, t) {
36351
+ var BY = "\n font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;\n font-size: 12px;\n line-height: 1.5;\n max-width: 380px;\n padding: 6px 10px;\n";
36352
+ function VY(e, t) {
36340
36353
  let n = document.createElement("div");
36341
- n.setAttribute("style", `${zY}min-width:180px;`);
36354
+ n.setAttribute("style", `${BY}min-width:180px;`);
36342
36355
  let r = document.createElement("div");
36343
36356
  r.setAttribute("style", "display:flex;align-items:baseline;gap:2px;margin-bottom:4px;");
36344
36357
  let i = document.createElement("span");
@@ -36348,9 +36361,9 @@ function BY(e, t) {
36348
36361
  let o = document.createElement("div");
36349
36362
  return o.setAttribute("style", "font-size:11px;opacity:0.75;"), o.textContent = `表单字段「${t || e}」的当前值`, n.append(o), n;
36350
36363
  }
36351
- function VY(e, t, n) {
36364
+ function HY(e, t, n) {
36352
36365
  let r = document.createElement("div");
36353
- r.setAttribute("style", `${zY}min-width:220px;`);
36366
+ r.setAttribute("style", `${BY}min-width:220px;`);
36354
36367
  let i = document.createElement("div");
36355
36368
  i.setAttribute("style", "display:flex;align-items:baseline;gap:4px;margin-bottom:6px;");
36356
36369
  let a = document.createElement("span");
@@ -36362,13 +36375,13 @@ function VY(e, t, n) {
36362
36375
  }
36363
36376
  return r;
36364
36377
  }
36365
- var HY = { slots: {
36378
+ var UY = { slots: {
36366
36379
  label: "slots",
36367
36380
  detail: "插槽对象",
36368
36381
  info: "FormKit schema 插槽上下文,可通过 $slots.default 等访问模板传入的插槽内容",
36369
36382
  apply: "$slots",
36370
36383
  boost: 1
36371
- } }, UY = [
36384
+ } }, WY = [
36372
36385
  {
36373
36386
  name: "value",
36374
36387
  detail: "unknown",
@@ -36420,9 +36433,9 @@ var HY = { slots: {
36420
36433
  info: "节点的错误信息数组"
36421
36434
  }
36422
36435
  ];
36423
- function WY(e, t, n) {
36436
+ function GY(e, t, n) {
36424
36437
  let r = document.createElement("div");
36425
- r.setAttribute("style", `${zY}min-width:240px;`);
36438
+ r.setAttribute("style", `${BY}min-width:240px;`);
36426
36439
  let i = document.createElement("div");
36427
36440
  i.setAttribute("style", "display:flex;align-items:baseline;gap:2px;margin-bottom:4px;");
36428
36441
  let a = document.createElement("span");
@@ -36436,18 +36449,18 @@ function WY(e, t, n) {
36436
36449
  }
36437
36450
  return r;
36438
36451
  }
36439
- var GY = new Map(Object.entries(HY).map(([e, t]) => [e, t]));
36440
- function KY(e, t) {
36452
+ var KY = new Map(Object.entries(UY).map(([e, t]) => [e, t]));
36453
+ function qY(e, t) {
36441
36454
  let n = e.state.doc.lineAt(t), r = n.text, i = t - n.from, a = /\$get\(.*?\)\.(\w+)/g, o;
36442
36455
  for (; (o = a.exec(r)) !== null;) {
36443
36456
  let e = o.index, t = e + o[0].length, r = o[1];
36444
36457
  if (i >= e && i <= t) {
36445
- let i = UY.find((e) => e.name === r);
36458
+ let i = WY.find((e) => e.name === r);
36446
36459
  return i ? {
36447
36460
  pos: n.from + e,
36448
36461
  end: n.from + t,
36449
36462
  above: !0,
36450
- create: () => ({ dom: WY(r, i.detail, i.info) })
36463
+ create: () => ({ dom: GY(r, i.detail, i.info) })
36451
36464
  } : null;
36452
36465
  }
36453
36466
  }
@@ -36455,19 +36468,19 @@ function KY(e, t) {
36455
36468
  for (; (o = s.exec(r)) !== null;) {
36456
36469
  let e = o.index, t = e + o[0].length;
36457
36470
  if (i >= e && i <= t) {
36458
- let r = o[0].slice(1), i = GY.get(r);
36471
+ let r = o[0].slice(1), i = KY.get(r);
36459
36472
  if (i) return {
36460
36473
  pos: n.from + e,
36461
36474
  end: n.from + t,
36462
36475
  above: !0,
36463
- create: () => ({ dom: VY(`$${r}`, i.detail, i.info) })
36476
+ create: () => ({ dom: HY(`$${r}`, i.detail, i.info) })
36464
36477
  };
36465
- let a = LY.find((e) => e.name === r);
36478
+ let a = RY.find((e) => e.name === r);
36466
36479
  if (a) return {
36467
36480
  pos: n.from + e,
36468
36481
  end: n.from + t,
36469
36482
  above: !0,
36470
- create: () => ({ dom: BY(a.name, a.label) })
36483
+ create: () => ({ dom: VY(a.name, a.label) })
36471
36484
  };
36472
36485
  }
36473
36486
  }
@@ -36475,15 +36488,15 @@ function KY(e, t) {
36475
36488
  }
36476
36489
  //#endregion
36477
36490
  //#region src/utils/expr-lint.ts
36478
- var qY = [];
36479
- function JY(e) {
36480
- qY = e.map((e) => e.name);
36491
+ var JY = [];
36492
+ function YY(e) {
36493
+ JY = e.map((e) => e.name);
36481
36494
  }
36482
- var YY = /\$([a-zA-Z_]\w*)/g, XY = new Set(["get", "slots"]);
36483
- function ZY(e) {
36495
+ var XY = /\$([a-zA-Z_]\w*)/g, ZY = new Set(["get", "slots"]);
36496
+ function QY(e) {
36484
36497
  let t = [], n = e.state.doc, r = n.toString(), i = r.trim();
36485
36498
  if (i) {
36486
- let e = QY(i);
36499
+ let e = $Y(i);
36487
36500
  e.ok || t.push({
36488
36501
  from: 0,
36489
36502
  to: n.length,
@@ -36491,9 +36504,9 @@ function ZY(e) {
36491
36504
  message: e.error
36492
36505
  });
36493
36506
  }
36494
- return $Y(r, t), t;
36507
+ return eX(r, t), t;
36495
36508
  }
36496
- function QY(e) {
36509
+ function $Y(e) {
36497
36510
  let t = 0, n = !1, r = !1, i = e.length;
36498
36511
  for (let a = 0; a < i; a++) {
36499
36512
  let i = e[a];
@@ -36550,11 +36563,11 @@ function QY(e) {
36550
36563
  error: ""
36551
36564
  };
36552
36565
  }
36553
- function $Y(e, t) {
36554
- let n = e.matchAll(YY);
36566
+ function eX(e, t) {
36567
+ let n = e.matchAll(XY);
36555
36568
  for (let e of n) {
36556
36569
  let n = e[1];
36557
- qY.includes(n) || XY.has(n) || t.push({
36570
+ JY.includes(n) || ZY.has(n) || t.push({
36558
36571
  from: e.index,
36559
36572
  to: e.index + e[0].length,
36560
36573
  severity: "warning",
@@ -36563,16 +36576,16 @@ function $Y(e, t) {
36563
36576
  }
36564
36577
  }
36565
36578
  Tm(), Xb(), zT(), KO(), fk(), Uk(), H();
36566
- var eX = {
36579
+ var tX = {
36567
36580
  class: "bg-card rounded-xl shadow-xl p-5 border border-border/60",
36568
36581
  style: {
36569
36582
  width: "560px",
36570
36583
  margin: "auto"
36571
36584
  }
36572
- }, tX = { class: "text-sm font-medium text-foreground mb-4" }, nX = { class: "max-h-48 overflow-y-auto py-1 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border/50" }, rX = ["onMousedown"], iX = { class: "text-[11px] opacity-50 w-12 shrink-0 text-right" }, aX = { class: "font-mono font-medium" }, oX = {
36585
+ }, nX = { class: "text-sm font-medium text-foreground mb-4" }, rX = { class: "max-h-48 overflow-y-auto py-1 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border/50" }, iX = ["onMousedown"], aX = { class: "text-[11px] opacity-50 w-12 shrink-0 text-right" }, oX = { class: "font-mono font-medium" }, sX = {
36573
36586
  key: 0,
36574
36587
  class: "ml-auto truncate text-[11px] opacity-50"
36575
- }, sX = /* @__PURE__ */ u({
36588
+ }, cX = /* @__PURE__ */ u({
36576
36589
  __name: "ExprEditModal",
36577
36590
  props: {
36578
36591
  show: { type: Boolean },
@@ -36733,8 +36746,8 @@ var eX = {
36733
36746
  typescript: !1,
36734
36747
  jsx: !1
36735
36748
  }),
36736
- p_(KY),
36737
- xk(ZY),
36749
+ p_(qY),
36750
+ xk(QY),
36738
36751
  ...g.value ? [dk] : [],
36739
36752
  q.updateListener.of((e) => {
36740
36753
  e.docChanged && (y || (ne(e.view), f("update:modelValue", e.state.doc.toString())));
@@ -36783,7 +36796,7 @@ var eX = {
36783
36796
  } else se();
36784
36797
  }), N(() => d.fieldNames, (e) => {
36785
36798
  let t = e ?? [];
36786
- RY(t), JY(t);
36799
+ zY(t), YY(t);
36787
36800
  }, { immediate: !0 }), w(() => {
36788
36801
  se();
36789
36802
  });
@@ -36800,8 +36813,8 @@ var eX = {
36800
36813
  e || ce();
36801
36814
  }
36802
36815
  }, {
36803
- default: P(() => [a("div", eX, [
36804
- a("div", tX, j(o.title || M(p)("expression.useExpressionValue")), 1),
36816
+ default: P(() => [a("div", tX, [
36817
+ a("div", nX, j(o.title || M(p)("expression.useExpressionValue")), 1),
36805
36818
  a("div", {
36806
36819
  ref_key: "hostRef",
36807
36820
  ref: _,
@@ -36818,15 +36831,15 @@ var eX = {
36818
36831
  to: !1,
36819
36832
  raw: ""
36820
36833
  }, {
36821
- default: P(() => [a("div", nX, [(O(!0), i(e, null, te(C.value, (e, t) => (O(), i("div", {
36834
+ default: P(() => [a("div", rX, [(O(!0), i(e, null, te(C.value, (e, t) => (O(), i("div", {
36822
36835
  key: t,
36823
36836
  class: x(["flex items-center gap-2 px-3 py-1.5 cursor-pointer text-[12px] leading-tight", t === E.value ? "bg-blue-500/20 text-blue-400" : "text-foreground/80 hover:bg-muted/60"]),
36824
36837
  onMousedown: le((e) => re(t), ["prevent"])
36825
36838
  }, [
36826
- a("span", iX, j(e.type), 1),
36827
- a("span", aX, j(e.label), 1),
36828
- e.detail ? (O(), i("span", oX, j(e.detail), 1)) : r("", !0)
36829
- ], 42, rX))), 128))])]),
36839
+ a("span", aX, j(e.type), 1),
36840
+ a("span", oX, j(e.label), 1),
36841
+ e.detail ? (O(), i("span", sX, j(e.detail), 1)) : r("", !0)
36842
+ ], 42, iX))), 128))])]),
36830
36843
  _: 1
36831
36844
  }, 8, [
36832
36845
  "show",
@@ -36856,10 +36869,10 @@ var eX = {
36856
36869
  }
36857
36870
  });
36858
36871
  B(), Xd(), H();
36859
- var cX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/30" }, lX = { class: "flex items-center justify-between" }, uX = { class: "text-xs font-medium text-foreground" }, dX = {
36872
+ var lX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/30" }, uX = { class: "flex items-center justify-between" }, dX = { class: "text-xs font-medium text-foreground" }, fX = {
36860
36873
  key: 0,
36861
36874
  class: "flex items-center gap-2"
36862
- }, fX = /* @__PURE__ */ u({
36875
+ }, pX = /* @__PURE__ */ u({
36863
36876
  __name: "ExpressionEditor",
36864
36877
  setup(e) {
36865
36878
  let { selectedIndex: n, selectedKey: o, elementEditTarget: s } = qd(), { availableFields: l, useExpressionValue: u, valueExpression: d, fieldValue: f } = z(), { t: p } = V(), m = A(!1), h = A(""), g = A(!1);
@@ -36878,13 +36891,13 @@ var cX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/3
36878
36891
  function y(e) {
36879
36892
  h.value = e, d.value = e, g.value = !1;
36880
36893
  }
36881
- return (e, t) => (O(), i("div", cX, [
36882
- a("div", lX, [a("label", uX, j(M(p)("expression.useExpressionValue")), 1), c(M(ft), {
36894
+ return (e, t) => (O(), i("div", lX, [
36895
+ a("div", uX, [a("label", dX, j(M(p)("expression.useExpressionValue")), 1), c(M(ft), {
36883
36896
  size: "small",
36884
36897
  value: m.value,
36885
36898
  "onUpdate:value": _
36886
36899
  }, null, 8, ["value"])]),
36887
- m.value ? (O(), i("div", dX, [c(M(ze), {
36900
+ m.value ? (O(), i("div", fX, [c(M(ze), {
36888
36901
  value: h.value,
36889
36902
  readonly: "",
36890
36903
  size: "small",
@@ -36897,7 +36910,7 @@ var cX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/3
36897
36910
  default: P(() => [...t[1] ||= [a("span", { class: "i-lucide-pencil h-3.5 w-3.5" }, null, -1)]]),
36898
36911
  _: 1
36899
36912
  })])) : r("", !0),
36900
- c(sX, {
36913
+ c(cX, {
36901
36914
  show: g.value,
36902
36915
  "model-value": h.value,
36903
36916
  "field-names": M(l),
@@ -36914,10 +36927,10 @@ var cX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/3
36914
36927
  }
36915
36928
  });
36916
36929
  H(), Xd(), B();
36917
- var pX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/30" }, mX = { class: "flex items-center justify-between" }, hX = { class: "text-xs font-medium text-foreground" }, gX = {
36930
+ var mX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/30" }, hX = { class: "flex items-center justify-between" }, gX = { class: "text-xs font-medium text-foreground" }, _X = {
36918
36931
  key: 0,
36919
36932
  class: "flex items-center gap-2"
36920
- }, _X = /* @__PURE__ */ u({
36933
+ }, vX = /* @__PURE__ */ u({
36921
36934
  __name: "IfConditionEditor",
36922
36935
  setup(e) {
36923
36936
  let { selectedIndex: n, selectedKey: o, elementEditTarget: s } = qd(), { availableFields: l, ifExpression: u } = z(), { t: d } = V(), f = A(!1), p = A(""), m = A(!1);
@@ -36935,13 +36948,13 @@ var pX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/3
36935
36948
  function _(e) {
36936
36949
  p.value = e, u.value = e, m.value = !1;
36937
36950
  }
36938
- return (e, t) => (O(), i("div", pX, [
36939
- a("div", mX, [a("label", hX, j(M(d)("condition.useIf")), 1), c(M(ft), {
36951
+ return (e, t) => (O(), i("div", mX, [
36952
+ a("div", hX, [a("label", gX, j(M(d)("condition.useIf")), 1), c(M(ft), {
36940
36953
  size: "small",
36941
36954
  value: f.value,
36942
36955
  "onUpdate:value": h
36943
36956
  }, null, 8, ["value"])]),
36944
- f.value ? (O(), i("div", gX, [c(M(ze), {
36957
+ f.value ? (O(), i("div", _X, [c(M(ze), {
36945
36958
  value: p.value,
36946
36959
  readonly: "",
36947
36960
  size: "small",
@@ -36954,7 +36967,7 @@ var pX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/3
36954
36967
  default: P(() => [...t[1] ||= [a("span", { class: "i-lucide-pencil h-3.5 w-3.5" }, null, -1)]]),
36955
36968
  _: 1
36956
36969
  })])) : r("", !0),
36957
- c(sX, {
36970
+ c(cX, {
36958
36971
  show: m.value,
36959
36972
  "model-value": p.value,
36960
36973
  "field-names": M(l),
@@ -36971,7 +36984,7 @@ var pX = { class: "space-y-2 mt-4 p-3 border border-border rounded-md bg-muted/3
36971
36984
  }
36972
36985
  });
36973
36986
  H(), B(), qA(), dj(), vA();
36974
- var vX = { class: "mt-4" }, yX = { class: "text-[11px] font-medium text-foreground/80 mb-2" }, bX = { class: "flex items-center gap-2" }, xX = { class: "text-sm font-medium" }, SX = { class: "space-y-2" }, CX = { class: "text-[11px] text-muted-foreground" }, wX = { class: "flex justify-end gap-2" }, TX = /* @__PURE__ */ u({
36987
+ var yX = { class: "mt-4" }, bX = { class: "text-[11px] font-medium text-foreground/80 mb-2" }, xX = { class: "flex items-center gap-2" }, SX = { class: "text-sm font-medium" }, CX = { class: "space-y-2" }, wX = { class: "text-[11px] text-muted-foreground" }, TX = { class: "flex justify-end gap-2" }, EX = /* @__PURE__ */ u({
36975
36988
  __name: "FormEditor",
36976
36989
  setup(n) {
36977
36990
  let { t: r } = V(), { formName: o, formId: l, formVersion: u, formLabelPosition: d, formLabelWidth: f, formSubmit: p, availableFieldNames: m } = z(), h = t({
@@ -37034,7 +37047,7 @@ var vX = { class: "mt-4" }, yX = { class: "text-[11px] font-medium text-foregrou
37034
37047
  value: h.value,
37035
37048
  "onUpdate:value": n[4] ||= (e) => h.value = e
37036
37049
  }, null, 8, ["label", "value"]),
37037
- a("div", vX, [a("div", yX, j(M(r)("formSettings.submit")), 1), c(M(F), {
37050
+ a("div", yX, [a("div", bX, j(M(r)("formSettings.submit")), 1), c(M(F), {
37038
37051
  size: "small",
37039
37052
  type: "primary",
37040
37053
  onClick: y,
@@ -37050,7 +37063,7 @@ var vX = { class: "mt-4" }, yX = { class: "text-[11px] font-medium text-foregrou
37050
37063
  preset: "card",
37051
37064
  class: "max-w-[860px]"
37052
37065
  }, {
37053
- header: P(() => [a("div", bX, [a("span", xX, j(M(r)("formSettings.editSubmit")), 1), c(M(ht), {
37066
+ header: P(() => [a("div", xX, [a("span", SX, j(M(r)("formSettings.editSubmit")), 1), c(M(ht), {
37054
37067
  size: "small",
37055
37068
  type: "success",
37056
37069
  bordered: !1
@@ -37058,15 +37071,15 @@ var vX = { class: "mt-4" }, yX = { class: "text-[11px] font-medium text-foregrou
37058
37071
  default: P(() => [...n[9] ||= [s("onSubmit", -1)]]),
37059
37072
  _: 1
37060
37073
  })])]),
37061
- default: P(() => [a("div", SX, [
37062
- a("div", CX, j(M(r)("builder.bindHint")), 1),
37074
+ default: P(() => [a("div", CX, [
37075
+ a("div", wX, j(M(r)("builder.bindHint")), 1),
37063
37076
  c(_A, {
37064
37077
  modelValue: v.value,
37065
37078
  "onUpdate:modelValue": n[5] ||= (e) => v.value = e,
37066
37079
  height: 360,
37067
37080
  "field-names": M(m)
37068
37081
  }, null, 8, ["modelValue", "field-names"]),
37069
- a("div", wX, [c(M(F), {
37082
+ a("div", TX, [c(M(F), {
37070
37083
  size: "small",
37071
37084
  onClick: n[6] ||= (e) => _.value = !1
37072
37085
  }, {
@@ -37087,10 +37100,10 @@ var vX = { class: "mt-4" }, yX = { class: "text-[11px] font-medium text-foregrou
37087
37100
  }
37088
37101
  });
37089
37102
  H(), B(), id(), qA(), oj(), dj(), Tf(), NM();
37090
- var EX = { class: "w-full text-center" }, DX = { class: "w-full text-center" }, OX = { class: "flex items-center gap-1.5 rounded-md border border-border/50 bg-muted/40 px-2 py-1.5" }, kX = { class: "text-[11px] font-medium text-muted-foreground shrink-0" }, AX = { class: "text-xs font-medium truncate min-w-0" }, jX = { class: "text-[10px] text-muted-foreground truncate shrink-0" }, MX = {
37103
+ var DX = { class: "w-full text-center" }, OX = { class: "w-full text-center" }, kX = { class: "flex items-center gap-1.5 rounded-md border border-border/50 bg-muted/40 px-2 py-1.5" }, AX = { class: "text-[11px] font-medium text-muted-foreground shrink-0" }, jX = { class: "text-xs font-medium truncate min-w-0" }, MX = { class: "text-[10px] text-muted-foreground truncate shrink-0" }, NX = {
37091
37104
  key: 0,
37092
37105
  class: "rounded-md border border-dashed border-border/60 px-2 py-2 text-[11px] text-muted-foreground"
37093
- }, NX = /* @__PURE__ */ u({
37106
+ }, PX = /* @__PURE__ */ u({
37094
37107
  __name: "DataTableColumnEditor",
37095
37108
  setup(o) {
37096
37109
  let { t: s } = V(), { selectedColumn: l, createColumnProp: u, setColumnProp: d, setElementEditTarget: f } = z(), p = u("key", ""), m = u("title", ""), h = u("width", null), g = u("align", "left"), _ = u("ellipsis", !1), v = u("sortable", !1), y = u("render", ""), b = u("colspan", null), S = t(() => [{
@@ -37175,29 +37188,29 @@ var EX = { class: "w-full text-center" }, DX = { class: "w-full text-center" },
37175
37188
  value: "column",
37176
37189
  class: "w-1/2"
37177
37190
  }, {
37178
- default: P(() => [a("span", EX, j(M(s)("edits.dataTable.columnTab")), 1)]),
37191
+ default: P(() => [a("span", DX, j(M(s)("edits.dataTable.columnTab")), 1)]),
37179
37192
  _: 1
37180
37193
  }), c(M(nt), {
37181
37194
  value: "element",
37182
37195
  class: "w-1/2"
37183
37196
  }, {
37184
- default: P(() => [a("span", DX, j(M(s)("edits.dataTable.elementTab")), 1)]),
37197
+ default: P(() => [a("span", OX, j(M(s)("edits.dataTable.elementTab")), 1)]),
37185
37198
  _: 1
37186
37199
  })]),
37187
37200
  _: 1
37188
37201
  }, 8, ["value"]),
37189
- a("div", OX, [
37190
- a("span", kX, j(M(s)("edits.dataTable.columnElement")), 1),
37202
+ a("div", kX, [
37203
+ a("span", AX, j(M(s)("edits.dataTable.columnElement")), 1),
37191
37204
  a("span", { class: x(`${ne.value} h-3.5 w-3.5 text-muted-foreground shrink-0`) }, null, 2),
37192
- a("span", AX, j(te.value), 1),
37193
- a("span", jX, j(k.value), 1)
37205
+ a("span", jX, j(te.value), 1),
37206
+ a("span", MX, j(k.value), 1)
37194
37207
  ]),
37195
37208
  re.value === "element" ? (O(), i(e, { key: 0 }, [D.value ? (O(), i(e, { key: 1 }, [
37196
- c(wY),
37209
+ c(TY),
37197
37210
  ae.value ? (O(), n(ie(ae.value), { key: 0 })) : r("", !0),
37198
- oe.value ? (O(), n(fX, { key: 1 })) : r("", !0),
37199
- c(_X)
37200
- ], 64)) : (O(), i("div", MX, j(M(s)("edits.dataTable.elementNone")), 1))], 64)) : (O(), i(e, { key: 1 }, [
37211
+ oe.value ? (O(), n(pX, { key: 1 })) : r("", !0),
37212
+ c(vX)
37213
+ ], 64)) : (O(), i("div", NX, j(M(s)("edits.dataTable.elementNone")), 1))], 64)) : (O(), i(e, { key: 1 }, [
37201
37214
  c(KA, {
37202
37215
  label: M(s)("edits.dataTable.columnKey"),
37203
37216
  placeholder: M(s)("edits.dataTable.columnKeyPlaceholder"),
@@ -37283,21 +37296,21 @@ var EX = { class: "w-full text-center" }, DX = { class: "w-full text-center" },
37283
37296
  }
37284
37297
  });
37285
37298
  B(), id();
37286
- var PX = { class: "p-2" }, FX = { class: "space-y-2 md:space-y-3" }, IX = /* @__PURE__ */ u({
37299
+ var FX = { class: "p-2" }, IX = { class: "space-y-2 md:space-y-3" }, LX = /* @__PURE__ */ u({
37287
37300
  __name: "FormEditMain",
37288
37301
  setup(o) {
37289
37302
  let { hasField: s, currentFieldType: l, selectedIsForm: u, selectedColumn: d } = z(), f = t(() => u.value || !l.value ? !1 : vu(l.value)?.category === "field");
37290
- return (t, o) => (O(), i("div", PX, [a("div", FX, [M(d) ? (O(), n(NX, { key: 0 })) : !M(s) || M(u) ? (O(), n(TX, { key: 1 })) : (O(), i(e, { key: 2 }, [
37291
- f.value ? (O(), n(fX, { key: 0 })) : r("", !0),
37292
- c(_X),
37293
- c(IY),
37303
+ return (t, o) => (O(), i("div", FX, [a("div", IX, [M(d) ? (O(), n(PX, { key: 0 })) : !M(s) || M(u) ? (O(), n(EX, { key: 1 })) : (O(), i(e, { key: 2 }, [
37304
+ f.value ? (O(), n(pX, { key: 0 })) : r("", !0),
37305
+ c(vX),
37306
+ c(LY),
37294
37307
  c(M(Oe)),
37295
- c(CY)
37308
+ c(wY)
37296
37309
  ], 64))])]));
37297
37310
  }
37298
37311
  });
37299
37312
  B(), H();
37300
- var LX = { class: "p-3 border-b" }, RX = { class: "flex items-center gap-3" }, zX = { class: "h-8 w-8 rounded-md flex items-center justify-center shrink-0" }, BX = { class: "min-w-0 flex-1" }, VX = { class: "text-sm font-medium text-foreground truncate" }, HX = { class: "text-[11px] text-muted-foreground truncate" }, UX = /* @__PURE__ */ u({
37313
+ var RX = { class: "p-3 border-b" }, zX = { class: "flex items-center gap-3" }, BX = { class: "h-8 w-8 rounded-md flex items-center justify-center shrink-0" }, VX = { class: "min-w-0 flex-1" }, HX = { class: "text-sm font-medium text-foreground truncate" }, UX = { class: "text-[11px] text-muted-foreground truncate" }, WX = /* @__PURE__ */ u({
37301
37314
  __name: "SidebarRight",
37302
37315
  setup(e) {
37303
37316
  let { currentFieldType: r, selectedIsForm: i, formName: o, selectedColumn: s } = z(), { t: l } = V(), u = t(() => aR(l)), d = t(() => u.value.find((e) => e.name === r.value)), f = t(() => {
@@ -37314,8 +37327,8 @@ var LX = { class: "p-3 border-b" }, RX = { class: "flex items-center gap-3" }, z
37314
37327
  "content-style": "display: flex; flex-direction: column; height: 100%;",
37315
37328
  class: "sidebar-sider"
37316
37329
  }, {
37317
- default: P(() => [a("div", LX, [a("div", RX, [a("div", zX, [a("span", { class: x(`${h.value} h-8 w-8`) }, null, 2)]), a("div", BX, [a("div", VX, j(p.value), 1), a("div", HX, j(m.value), 1)])])]), c(M(at), { class: "flex-1 sidebar-scrollbar" }, {
37318
- default: P(() => [c(IX)]),
37330
+ default: P(() => [a("div", RX, [a("div", zX, [a("div", BX, [a("span", { class: x(`${h.value} h-8 w-8`) }, null, 2)]), a("div", VX, [a("div", HX, j(p.value), 1), a("div", UX, j(m.value), 1)])])]), c(M(at), { class: "flex-1 sidebar-scrollbar" }, {
37331
+ default: P(() => [c(LX)]),
37319
37332
  _: 1
37320
37333
  })]),
37321
37334
  _: 1
@@ -37324,10 +37337,10 @@ var LX = { class: "p-3 border-b" }, RX = { class: "flex items-center gap-3" }, z
37324
37337
  });
37325
37338
  //#endregion
37326
37339
  //#region src/utils/schema/tree.ts
37327
- function WX(e) {
37340
+ function GX(e) {
37328
37341
  return e.filter((e) => e !== -1);
37329
37342
  }
37330
- function GX(e, t, n = [], r = -1) {
37343
+ function KX(e, t, n = [], r = -1) {
37331
37344
  for (let i = 0; i < e.length; i++) {
37332
37345
  let a = e[i];
37333
37346
  if (!a || typeof a != "object") continue;
@@ -37339,14 +37352,14 @@ function GX(e, t, n = [], r = -1) {
37339
37352
  };
37340
37353
  let c = a?.children;
37341
37354
  if (Array.isArray(c)) {
37342
- let e = GX(c, t, [...o, -1], s);
37355
+ let e = KX(c, t, [...o, -1], s);
37343
37356
  if (e) return e;
37344
37357
  }
37345
37358
  }
37346
37359
  return null;
37347
37360
  }
37348
- function KX(e, t, n) {
37349
- let r = WX(t);
37361
+ function qX(e, t, n) {
37362
+ let r = GX(t);
37350
37363
  if (r.length === 0) return e;
37351
37364
  let i = [...e], a = r[0];
37352
37365
  if (r.length === 1) return i[a] = n, i;
@@ -37360,9 +37373,9 @@ function KX(e, t, n) {
37360
37373
  }
37361
37374
  //#endregion
37362
37375
  //#region src/builder/containers/index.ts
37363
- var qX = RJ();
37364
- zJ(), Xd(), wl();
37365
- function JX() {
37376
+ var JX = zJ();
37377
+ BJ(), Xd(), wl();
37378
+ function YX() {
37366
37379
  let e = qd(), { formDefinition: n, formSchema: r, selectedIndex: i, selectedKey: a, selectedTarget: o, commitSchemaReconcile: s } = e, c = t(() => {
37367
37380
  let e = ["[&_.formkit-label]:text-xs", "[&_.formkit-label]:font-bold"].join(" ");
37368
37381
  return n.value?.settings?.labelAlign === "left" ? [
@@ -37388,7 +37401,7 @@ function JX() {
37388
37401
  let i = Cl(t, n), a = [...g.value];
37389
37402
  a.splice(e + 1, 0, i), g.value = a, s(a, { reason: "duplicate" });
37390
37403
  }, d = (e, t) => {
37391
- if (!GX(r.value, e)) return;
37404
+ if (!KX(r.value, e)) return;
37392
37405
  let n = /* @__PURE__ */ new Set();
37393
37406
  xl(r.value, n);
37394
37407
  let i = (e) => {
@@ -37435,27 +37448,27 @@ function JX() {
37435
37448
  ...e,
37436
37449
  children: n
37437
37450
  };
37438
- }), u = l(r.value), d = GX(u, e);
37451
+ }), u = l(r.value), d = KX(u, e);
37439
37452
  if (!d) return;
37440
37453
  let f = {
37441
37454
  ...d.node,
37442
37455
  children: a
37443
37456
  };
37444
- f.$cmp && (f.props = { ...f.props }, f.props && typeof f.props == "object" && delete f.props.modelValue), s(KX(u, d.path, f), {
37457
+ f.$cmp && (f.props = { ...f.props }, f.props && typeof f.props == "object" && delete f.props.modelValue), s(qX(u, d.path, f), {
37445
37458
  reason: "container-children",
37446
37459
  merge: !0
37447
37460
  });
37448
37461
  }, f = (t) => {
37449
- let n = GX(r.value, t);
37462
+ let n = KX(r.value, t);
37450
37463
  n && (o.value = "field", i.value = n.rootIndex, a.value = t, e.selectedColumnIndex.value = null);
37451
37464
  }, p = (e, t) => {
37452
- let n = GX(r.value, e);
37465
+ let n = KX(r.value, e);
37453
37466
  if (!n) return;
37454
37467
  let i = { ...n.node };
37455
37468
  i.props = {
37456
37469
  ...i.props,
37457
37470
  ...t
37458
- }, s(KX(r.value, n.path, i), {
37471
+ }, s(qX(r.value, n.path, i), {
37459
37472
  reason: "inline-edit",
37460
37473
  merge: !0
37461
37474
  });
@@ -37483,8 +37496,8 @@ function JX() {
37483
37496
  });
37484
37497
  let v = t(() => "w-full grid grid-cols-12 gap-x-4 gap-y-2 list-none p-0 m-0 flex-1 h-fit");
37485
37498
  return UV({
37486
- library: qX,
37487
- renderNode: (e) => !e || typeof e != "object" ? e : QW(LJ(e)),
37499
+ library: JX,
37500
+ renderNode: (e) => !e || typeof e != "object" ? e : QW(RJ(e)),
37488
37501
  updateContainerChildren: d,
37489
37502
  selectByKey: f,
37490
37503
  updateNodePropsByKey: p
@@ -37511,7 +37524,7 @@ function JX() {
37511
37524
  };
37512
37525
  }
37513
37526
  Xd(), H();
37514
- var YX = { class: "w-16 shrink-0 flex flex-col items-center" }, XX = /* @__PURE__ */ u({
37527
+ var XX = { class: "w-16 shrink-0 flex flex-col items-center" }, ZX = /* @__PURE__ */ u({
37515
37528
  __name: "CanvasViewportControls",
37516
37529
  setup(t) {
37517
37530
  let { canvasView: n } = qd(), { t: r } = V(), o = [
@@ -37531,7 +37544,7 @@ var YX = { class: "w-16 shrink-0 flex flex-col items-center" }, XX = /* @__PURE_
37531
37544
  label: "builder.mobileView"
37532
37545
  }
37533
37546
  ];
37534
- return (t, l) => (O(), i("div", YX, [c(M(_e), {
37547
+ return (t, l) => (O(), i("div", XX, [c(M(_e), {
37535
37548
  vertical: "",
37536
37549
  class: "sticky top-20 bg-card shadow-sm rounded-lg border border-border/50"
37537
37550
  }, {
@@ -37561,10 +37574,10 @@ var YX = { class: "w-16 shrink-0 flex flex-col items-center" }, XX = /* @__PURE_
37561
37574
  }
37562
37575
  });
37563
37576
  Xd(), xf(), H();
37564
- var ZX = { class: "flex-1 flex justify-center px-4 relative" }, QX = {
37577
+ var QX = { class: "flex-1 flex justify-center px-4 relative" }, $X = {
37565
37578
  key: 0,
37566
37579
  class: "absolute inset-0 flex items-center justify-center z-50"
37567
- }, $X = { class: "flex flex-col items-center bg-white dark:bg-neutral-600 justify-center gap-3 p-4 rounded-lg shadow-md" }, eZ = { class: "font-medium text-sm text-zinc-700 dark:text-zinc-300" }, tZ = /* @__PURE__ */ u({
37580
+ }, eZ = { class: "flex flex-col items-center bg-white dark:bg-neutral-600 justify-center gap-3 p-4 rounded-lg shadow-md" }, tZ = { class: "font-medium text-sm text-zinc-700 dark:text-zinc-300" }, nZ = /* @__PURE__ */ u({
37568
37581
  __name: "CanvasBoard",
37569
37582
  props: {
37570
37583
  containerRef: {},
@@ -37579,7 +37592,7 @@ var ZX = { class: "flex-1 flex justify-center px-4 relative" }, QX = {
37579
37592
  },
37580
37593
  setup(e) {
37581
37594
  let { t } = V(), n = qd(), { selectedKey: s, formDefinition: l, canvasView: u, isLoading: d } = n, f = { "data-testid": `drop-area-${n.instanceId}` };
37582
- return (n, p) => (O(), i("div", ZX, [M(d) ? (O(), i("div", QX, [a("div", $X, [a("span", eZ, j(M(t)("builder.creatingForm")), 1), c(M(lt), { size: "medium" })])])) : r("", !0), c(M(ve), {
37595
+ return (n, p) => (O(), i("div", QX, [M(d) ? (O(), i("div", $X, [a("div", eZ, [a("span", tZ, j(M(t)("builder.creatingForm")), 1), c(M(lt), { size: "medium" })])])) : r("", !0), c(M(ve), {
37583
37596
  style: C({ "--fk-label-width": `${M(l)?.settings?.labelWidth ?? 80}px` }),
37584
37597
  class: x(M(hf)("relative min-h-[80%] !h-fit rounded-xl shadow-md transition-[width] duration-300 flex flex-col", e.canvasFormClass, M(u) === "desktop" ? "w-full lg:w-[94%]" : "", M(u) === "tablet" ? "w-[768px]" : "", M(u) === "mobile" ? "w-[375px]" : "")),
37585
37598
  "content-style": "padding: 16px; flex: 1; display: flex; flex-direction: column;"
@@ -37620,21 +37633,21 @@ var ZX = { class: "flex-1 flex justify-center px-4 relative" }, QX = {
37620
37633
  _: 3
37621
37634
  }, 8, ["style", "class"])]));
37622
37635
  }
37623
- }), nZ = {
37636
+ }), rZ = {
37624
37637
  "zh-CN": jt,
37625
37638
  en: Ot
37626
- }, rZ = {
37639
+ }, iZ = {
37627
37640
  "zh-CN": Dt,
37628
37641
  en: Et
37629
37642
  };
37630
- function iZ(e) {
37631
- return nZ[e] ?? nZ["zh-CN"];
37632
- }
37633
37643
  function aZ(e) {
37634
37644
  return rZ[e] ?? rZ["zh-CN"];
37635
37645
  }
37636
- var oZ = Symbol("FormBuilderRuntimeLocale");
37637
- function sZ(e) {
37646
+ function oZ(e) {
37647
+ return iZ[e] ?? iZ["zh-CN"];
37648
+ }
37649
+ var sZ = Symbol("FormBuilderRuntimeLocale");
37650
+ function cZ(e) {
37638
37651
  let { initialLocale: n, availableLocales: r = ["zh-CN", "en"], localeFallback: i = "zh-CN" } = e, a = A(n), o = A(i), s = {
37639
37652
  locale: a,
37640
37653
  setLocale: (e) => {
@@ -37645,14 +37658,14 @@ function sZ(e) {
37645
37658
  value: e
37646
37659
  }))),
37647
37660
  localeFallback: o,
37648
- naiveLocale: t(() => iZ(a.value)),
37649
- naiveDateLocale: t(() => aZ(a.value))
37661
+ naiveLocale: t(() => aZ(a.value)),
37662
+ naiveDateLocale: t(() => oZ(a.value))
37650
37663
  };
37651
- return k(oZ, s), s;
37664
+ return k(sZ, s), s;
37652
37665
  }
37653
- function cZ() {
37666
+ function lZ() {
37654
37667
  let e = A("zh-CN");
37655
- return m(oZ, {
37668
+ return m(sZ, {
37656
37669
  locale: e,
37657
37670
  setLocale: (t) => {
37658
37671
  e.value = t;
@@ -37665,13 +37678,13 @@ function cZ() {
37665
37678
  value: "en"
37666
37679
  }]),
37667
37680
  localeFallback: A("zh-CN"),
37668
- naiveLocale: t(() => iZ(e.value)),
37669
- naiveDateLocale: t(() => aZ(e.value))
37681
+ naiveLocale: t(() => aZ(e.value)),
37682
+ naiveDateLocale: t(() => oZ(e.value))
37670
37683
  });
37671
37684
  }
37672
37685
  //#endregion
37673
37686
  //#region node_modules/.pnpm/vue-sonner@2.0.9/node_modules/vue-sonner/lib/index.js
37674
- var lZ = 1, uZ = new class {
37687
+ var uZ = 1, dZ = new class {
37675
37688
  subscribers;
37676
37689
  toasts;
37677
37690
  dismissedToasts;
@@ -37689,7 +37702,7 @@ var lZ = 1, uZ = new class {
37689
37702
  this.publish(e), this.toasts = [...this.toasts, e];
37690
37703
  };
37691
37704
  create = (e) => {
37692
- let { message: t, ...n } = e, r = typeof e.id == "number" || e.id && e.id?.length > 0 ? e.id : lZ++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
37705
+ let { message: t, ...n } = e, r = typeof e.id == "number" || e.id && e.id?.length > 0 ? e.id : uZ++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
37693
37706
  return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
37694
37707
  ...n,
37695
37708
  ...e,
@@ -37763,7 +37776,7 @@ var lZ = 1, uZ = new class {
37763
37776
  type: "default",
37764
37777
  message: e
37765
37778
  });
37766
- else if (fZ(e) && !e.ok) {
37779
+ else if (pZ(e) && !e.ok) {
37767
37780
  i = !1;
37768
37781
  let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !_(r) ? r : {
37769
37782
  message: r || "",
@@ -37820,7 +37833,7 @@ var lZ = 1, uZ = new class {
37820
37833
  return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
37821
37834
  };
37822
37835
  custom = (e, t) => {
37823
- let n = t?.id || lZ++, r = this.toasts.find((e) => e.id === n), i = t?.dismissible === void 0 ? !0 : t.dismissible;
37836
+ let n = t?.id || uZ++, r = this.toasts.find((e) => e.id === n), i = t?.dismissible === void 0 ? !0 : t.dismissible;
37824
37837
  return this.dismissedToasts.has(n) && this.dismissedToasts.delete(n), r ? this.toasts = this.toasts.map((r) => r.id === n ? (this.publish({
37825
37838
  ...r,
37826
37839
  component: e,
@@ -37842,33 +37855,33 @@ var lZ = 1, uZ = new class {
37842
37855
  };
37843
37856
  getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id));
37844
37857
  }();
37845
- function dZ(e, t) {
37846
- let n = t?.id || lZ++;
37847
- return uZ.create({
37858
+ function fZ(e, t) {
37859
+ let n = t?.id || uZ++;
37860
+ return dZ.create({
37848
37861
  message: e,
37849
37862
  id: n,
37850
37863
  type: "default",
37851
37864
  ...t
37852
37865
  }), n;
37853
37866
  }
37854
- var fZ = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", pZ = Object.assign(dZ, {
37855
- success: uZ.success,
37856
- info: uZ.info,
37857
- warning: uZ.warning,
37858
- error: uZ.error,
37859
- custom: uZ.custom,
37860
- message: uZ.message,
37861
- promise: uZ.promise,
37862
- dismiss: uZ.dismiss,
37863
- loading: uZ.loading
37867
+ var pZ = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", mZ = Object.assign(fZ, {
37868
+ success: dZ.success,
37869
+ info: dZ.info,
37870
+ warning: dZ.warning,
37871
+ error: dZ.error,
37872
+ custom: dZ.custom,
37873
+ message: dZ.message,
37874
+ promise: dZ.promise,
37875
+ dismiss: dZ.dismiss,
37876
+ loading: dZ.loading
37864
37877
  }, {
37865
- getHistory: () => uZ.toasts,
37866
- getToasts: () => uZ.getActiveToasts()
37878
+ getHistory: () => dZ.toasts,
37879
+ getToasts: () => dZ.getActiveToasts()
37867
37880
  });
37868
37881
  id(), wl(), H(), Xd();
37869
37882
  //#endregion
37870
37883
  //#region src/builder/ImportExportModal.vue
37871
- var mZ = /* @__PURE__ */ u({
37884
+ var hZ = /* @__PURE__ */ u({
37872
37885
  __name: "ImportExportModal",
37873
37886
  props: { show: { type: Boolean } },
37874
37887
  emits: ["update:show"],
@@ -37889,7 +37902,7 @@ var mZ = /* @__PURE__ */ u({
37889
37902
  f(e.id ? e : {
37890
37903
  ...e,
37891
37904
  id: vl()
37892
- }, { reason: "import" }), pZ.success(u("importExport.importSuccess")), y();
37905
+ }, { reason: "import" }), mZ.success(u("importExport.importSuccess")), y();
37893
37906
  return;
37894
37907
  }
37895
37908
  if (!Array.isArray(e)) throw Error(u("importExport.schemaMustBeArray"));
@@ -37906,19 +37919,19 @@ var mZ = /* @__PURE__ */ u({
37906
37919
  }
37907
37920
  });
37908
37921
  } else p(e, { reason: "import" });
37909
- pZ.success(u("importExport.importSuccess")), y();
37922
+ mZ.success(u("importExport.importSuccess")), y();
37910
37923
  } catch (e) {
37911
37924
  let t = e instanceof Error ? e.message : u("importExport.unknownError");
37912
- pZ.error(u("importExport.failedParseJson", { message: t }));
37925
+ mZ.error(u("importExport.failedParseJson", { message: t }));
37913
37926
  }
37914
37927
  }, x = t(() => m.value === "formkit" ? g.value : h.value), S = () => {
37915
37928
  try {
37916
37929
  let e = x.value;
37917
37930
  JSON.parse(e);
37918
37931
  let t = new Blob([e], { type: "application/json" }), n = URL.createObjectURL(t), r = document.createElement("a");
37919
- r.href = n, r.download = "form-schema.json", document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n), pZ.success(u("importExport.downloadedSuccess"));
37932
+ r.href = n, r.download = "form-schema.json", document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n), mZ.success(u("importExport.downloadedSuccess"));
37920
37933
  } catch {
37921
- pZ.error(u("importExport.failedGenerateDownload"));
37934
+ mZ.error(u("importExport.failedGenerateDownload"));
37922
37935
  }
37923
37936
  }, C = (e, t) => {
37924
37937
  let n = " ".repeat(t);
@@ -37961,10 +37974,10 @@ var mZ = /* @__PURE__ */ u({
37961
37974
  }, D = () => {
37962
37975
  try {
37963
37976
  let e = E(), t = new Blob([e], { type: "text/javascript" }), n = URL.createObjectURL(t), r = document.createElement("a");
37964
- r.href = n, r.download = "form-schema.js", document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n), pZ.success(u("importExport.downloadedSuccess"));
37977
+ r.href = n, r.download = "form-schema.js", document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n), mZ.success(u("importExport.downloadedSuccess"));
37965
37978
  } catch (e) {
37966
37979
  let t = e instanceof Error ? e.message : u("importExport.unknownError");
37967
- pZ.error(u("importExport.failedParseJson", { message: t }));
37980
+ mZ.error(u("importExport.failedParseJson", { message: t }));
37968
37981
  }
37969
37982
  };
37970
37983
  return (t, i) => (O(), n(M(qe), {
@@ -38068,11 +38081,11 @@ var mZ = /* @__PURE__ */ u({
38068
38081
  //#endregion
38069
38082
  //#region src/builder/canvas/CanvasActionsBar.vue?vue&type=script&setup=true&lang.ts
38070
38083
  H();
38071
- var hZ = { class: "w-16 shrink-0 flex flex-col items-center" }, gZ = { class: "sticky top-20 flex flex-col gap-2" }, _Z = /* @__PURE__ */ u({
38084
+ var gZ = { class: "w-16 shrink-0 flex flex-col items-center" }, _Z = { class: "sticky top-20 flex flex-col gap-2" }, vZ = /* @__PURE__ */ u({
38072
38085
  __name: "CanvasActionsBar",
38073
38086
  setup(e) {
38074
- let { t } = V(), { setLocale: n, locale: r, availableLocales: o } = cZ(), l = A(!1);
38075
- return (e, u) => (O(), i("div", hZ, [a("div", gZ, [c(M(_e), {
38087
+ let { t } = V(), { setLocale: n, locale: r, availableLocales: o } = lZ(), l = A(!1);
38088
+ return (e, u) => (O(), i("div", gZ, [a("div", _Z, [c(M(_e), {
38076
38089
  vertical: "",
38077
38090
  class: "bg-card shadow-sm rounded-lg border border-border/50"
38078
38091
  }, {
@@ -38109,18 +38122,18 @@ var hZ = { class: "w-16 shrink-0 flex flex-col items-center" }, gZ = { class: "s
38109
38122
  "onUpdate:value"
38110
38123
  ])]),
38111
38124
  _: 1
38112
- })]), c(mZ, {
38125
+ })]), c(hZ, {
38113
38126
  show: l.value,
38114
38127
  "onUpdate:show": u[1] ||= (e) => l.value = e
38115
38128
  }, null, 8, ["show"])]));
38116
38129
  }
38117
- }), vZ = { class: "flex flex-1 h-full min-h-0 flex-row justify-start pb-60px pt-40px" }, yZ = { class: "flex flex-col gap-16px" }, bZ = /* @__PURE__ */ u({
38130
+ }), yZ = { class: "flex flex-1 h-full min-h-0 flex-row justify-start pb-60px pt-40px" }, bZ = { class: "flex flex-col gap-16px" }, xZ = /* @__PURE__ */ u({
38118
38131
  __name: "BuilderCanvas",
38119
38132
  setup(e) {
38120
- let t = JX();
38121
- return (e, n) => (O(), i("div", vZ, [
38122
- c(XX),
38123
- c(tZ, {
38133
+ let t = YX();
38134
+ return (e, n) => (O(), i("div", yZ, [
38135
+ c(ZX),
38136
+ c(nZ, {
38124
38137
  "container-ref": M(t).rootGrid.containerRef,
38125
38138
  items: M(t).rootGrid.items,
38126
38139
  "ul-class": M(t).dropAreaUlClass.value,
@@ -38145,10 +38158,10 @@ var hZ = { class: "w-16 shrink-0 flex flex-col items-center" }, gZ = { class: "s
38145
38158
  "on-copy",
38146
38159
  "on-resize-end"
38147
38160
  ]),
38148
- a("div", yZ, [c(_Z), ne(e.$slots, "toolbar")])
38161
+ a("div", bZ, [c(vZ), ne(e.$slots, "toolbar")])
38149
38162
  ]));
38150
38163
  }
38151
- }), xZ = /* @__PURE__ */ u({
38164
+ }), SZ = /* @__PURE__ */ u({
38152
38165
  __name: "FormKitSchemaWrapper",
38153
38166
  props: {
38154
38167
  schema: {},
@@ -38170,11 +38183,11 @@ var hZ = { class: "w-16 shrink-0 flex flex-col items-center" }, gZ = { class: "s
38170
38183
  });
38171
38184
  //#endregion
38172
38185
  //#region src/utils/format-schema.ts
38173
- function SZ(e) {
38186
+ function CZ(e) {
38174
38187
  return t(() => {
38175
38188
  if (!e) return [];
38176
38189
  let t = (e, n) => {
38177
- let r = e?.__key, i = e?.__preview_placeholder === !0, a = BJ(LJ(e), {
38190
+ let r = e?.__key, i = e?.__preview_placeholder === !0, a = VJ(RJ(e), {
38178
38191
  key: r,
38179
38192
  isPlaceholder: i,
38180
38193
  format: t
@@ -38234,20 +38247,20 @@ function SZ(e) {
38234
38247
  }
38235
38248
  //#endregion
38236
38249
  //#region src/utils/schema/containers.ts
38237
- function CZ(e) {
38238
- let t = FJ(e);
38250
+ function wZ(e) {
38251
+ let t = IJ(e);
38239
38252
  return t ? t.id : null;
38240
38253
  }
38241
38254
  //#endregion
38242
38255
  //#region src/plugin/register-element.ts
38243
38256
  Mu();
38244
- function wZ(e) {
38257
+ function TZ(e) {
38245
38258
  return (t) => {
38246
38259
  let n = t;
38247
38260
  return !n || typeof n != "object" ? !1 : n.$cmp === e || n.$formkit === e;
38248
38261
  };
38249
38262
  }
38250
- function TZ(e) {
38263
+ function EZ(e) {
38251
38264
  let { type: t, overwrite: n } = e;
38252
38265
  if (_u(Cu(e), n), e.component && cH(t, {
38253
38266
  component: e.component,
@@ -38258,9 +38271,9 @@ function TZ(e) {
38258
38271
  keyProp: `${t}Key`,
38259
38272
  primitive: "cmp"
38260
38273
  };
38261
- IJ({
38274
+ LJ({
38262
38275
  id: t,
38263
- match: wZ(t),
38276
+ match: TZ(t),
38264
38277
  canvas: e.canvas ? {
38265
38278
  libraryKey: t,
38266
38279
  component: e.canvas
@@ -38269,21 +38282,21 @@ function TZ(e) {
38269
38282
  libraryKey: t,
38270
38283
  component: e.preview
38271
38284
  } : void 0,
38272
- normalize: e.normalize ?? ((e) => DJ(e, t, n)),
38273
- formatPreview: e.formatPreview ?? ((e, r) => VJ(e, r, t, n))
38285
+ normalize: e.normalize ?? ((e) => OJ(e, t, n)),
38286
+ formatPreview: e.formatPreview ?? ((e, r) => HJ(e, r, t, n))
38274
38287
  });
38275
38288
  }
38276
38289
  }
38277
- function EZ(e) {
38278
- if (e?.length) for (let t of e) TZ({
38290
+ function DZ(e) {
38291
+ if (e?.length) for (let t of e) EZ({
38279
38292
  ...t,
38280
38293
  overwrite: !0
38281
38294
  });
38282
38295
  }
38283
38296
  //#endregion
38284
38297
  //#region src/composables/use-builder-theme.ts
38285
- var DZ = Symbol("FormBuilderTheme");
38286
- function OZ(e) {
38298
+ var OZ = Symbol("FormBuilderTheme");
38299
+ function kZ(e) {
38287
38300
  let n = Mt(), r = Pt(), i = t(() => n.value === "dark" || n.value === "auto" && r.value ? Tt : kt), a = (e) => {
38288
38301
  n.value = e;
38289
38302
  };
@@ -38294,15 +38307,15 @@ function OZ(e) {
38294
38307
  setTheme: a
38295
38308
  };
38296
38309
  }
38297
- function kZ(e) {
38298
- k(DZ, e);
38310
+ function AZ(e) {
38311
+ k(OZ, e);
38299
38312
  }
38300
- function AZ() {
38301
- return m(DZ, null);
38313
+ function jZ() {
38314
+ return m(OZ, null);
38302
38315
  }
38303
38316
  //#endregion
38304
38317
  //#region src/theme/BuilderThemeScope.vue
38305
- var jZ = /* @__PURE__ */ u({
38318
+ var MZ = /* @__PURE__ */ u({
38306
38319
  __name: "BuilderThemeScope",
38307
38320
  props: {
38308
38321
  theme: {},
@@ -38315,8 +38328,8 @@ var jZ = /* @__PURE__ */ u({
38315
38328
  preflightStyleDisabled: { type: Boolean }
38316
38329
  },
38317
38330
  setup(e) {
38318
- let r = e, i = AZ(), a = i ?? OZ(() => r.theme);
38319
- i || kZ(a);
38331
+ let r = e, i = jZ(), a = i ?? kZ(() => r.theme);
38332
+ i || AZ(a);
38320
38333
  let o = t(() => ({
38321
38334
  themeOverrides: r.themeOverrides,
38322
38335
  breakpoints: r.breakpoints,
@@ -38342,7 +38355,7 @@ var jZ = /* @__PURE__ */ u({
38342
38355
  });
38343
38356
  //#endregion
38344
38357
  //#region src/expression/runtime.ts
38345
- function MZ(e, t, n) {
38358
+ function NZ(e, t, n) {
38346
38359
  let r = [], i = (e) => {
38347
38360
  let t = n();
38348
38361
  if (t) return t.find?.(e) ?? t.at?.(e);
@@ -38351,7 +38364,7 @@ function MZ(e, t, n) {
38351
38364
  r = [];
38352
38365
  let n = t.value;
38353
38366
  if (!Array.isArray(n) || !n.length) return;
38354
- let a = NZ(n);
38367
+ let a = PZ(n);
38355
38368
  if (!a.length) return;
38356
38369
  let o = (t) => {
38357
38370
  try {
@@ -38369,31 +38382,31 @@ function MZ(e, t, n) {
38369
38382
  r = [];
38370
38383
  });
38371
38384
  }
38372
- function NZ(e, t = []) {
38385
+ function PZ(e, t = []) {
38373
38386
  for (let n of e) {
38374
38387
  if (!n || typeof n != "object") continue;
38375
- let e = n;
38376
- if (typeof e.expr == "string" && e.expr && typeof e.name == "string" && e.name) try {
38377
- let n = aK(e.expr);
38388
+ let e = n, r = e.props ?? {}, i = typeof e.name == "string" ? e.name : r.name, a = typeof e.expr == "string" ? e.expr : r.expr;
38389
+ if (typeof i == "string" && i && typeof a == "string" && a) try {
38390
+ let e = oK(a);
38378
38391
  t.push({
38379
- name: e.name,
38380
- compiled: n
38392
+ name: i,
38393
+ compiled: e
38381
38394
  });
38382
38395
  } catch {
38383
- console.warn(`[expr-runtime] 表达式编译失败: ${e.name} = ${e.expr}`);
38396
+ console.warn(`[expr-runtime] 表达式编译失败: ${i} = ${a}`);
38384
38397
  }
38385
- Array.isArray(e.children) && NZ(e.children, t), Array.isArray(e.props?.modelValue) && NZ(e.props.modelValue, t);
38398
+ Array.isArray(e.children) && PZ(e.children, t), Array.isArray(r.modelValue) && PZ(r.modelValue, t);
38386
38399
  }
38387
38400
  return t;
38388
38401
  }
38389
38402
  wl(), _l(), id(), H(), wM(), Xd();
38390
- var PZ = {
38403
+ var FZ = {
38391
38404
  key: 0,
38392
38405
  class: "flex flex-row items-center justify-center gap-1 px-1 pb-3"
38393
- }, FZ = { class: "flex items-center gap-2 text-sm font-semibold text-foreground" }, IZ = { class: "truncate text-[14px]" }, LZ = {
38406
+ }, IZ = { class: "flex items-center gap-2 text-sm font-semibold text-foreground" }, LZ = { class: "truncate text-[14px]" }, RZ = {
38394
38407
  key: 0,
38395
38408
  class: "text-[11px] text-muted-foreground ml-2 mt-1"
38396
- }, RZ = /* @__PURE__ */ u({
38409
+ }, zZ = /* @__PURE__ */ u({
38397
38410
  __name: "FormSchemaRenderer",
38398
38411
  props: {
38399
38412
  definition: {},
@@ -38421,6 +38434,10 @@ var PZ = {
38421
38434
  config: {},
38422
38435
  theme: {},
38423
38436
  http: {},
38437
+ disabled: {
38438
+ type: Boolean,
38439
+ default: !1
38440
+ },
38424
38441
  abstract: { type: Boolean },
38425
38442
  bordered: { type: Boolean },
38426
38443
  clsPrefix: {},
@@ -38465,12 +38482,12 @@ var PZ = {
38465
38482
  }
38466
38483
  })).value);
38467
38484
  let p = l, m = xM();
38468
- f.config && (EZ(f.config.elements), bM(f.config));
38469
- let h = f.config ?? m, g = !!f.config, _ = g ? sZ({
38485
+ f.config && (DZ(f.config.elements), bM(f.config));
38486
+ let h = f.config ?? m, g = !!f.config, _ = g ? cZ({
38470
38487
  initialLocale: u(h),
38471
38488
  availableLocales: h?.availableLocales ?? ["zh-CN", "en"],
38472
38489
  localeFallback: h?.localeFallback ?? "zh-CN"
38473
- }) : cZ(), v = t(() => f.locale ?? _.naiveLocale.value), b = t(() => f.dateLocale ?? _.naiveDateLocale.value);
38490
+ }) : lZ(), v = t(() => f.locale ?? _.naiveLocale.value), b = t(() => f.dateLocale ?? _.naiveDateLocale.value);
38474
38491
  N(() => _.locale.value, (e) => {
38475
38492
  qa(e === "en" ? "en" : "zh");
38476
38493
  }, { immediate: !0 }), g && uf({
@@ -38525,7 +38542,7 @@ var PZ = {
38525
38542
  let t = {};
38526
38543
  for (let n of Object.keys(e)) n !== "slots" && (t[n] = e[n]);
38527
38544
  E.value = t;
38528
- }, ie = t(() => f.schemaLibrary ? f.schemaLibrary : zJ()), ae = t(() => {
38545
+ }, ie = t(() => f.schemaLibrary ? f.schemaLibrary : BJ()), ae = t(() => {
38529
38546
  let e = T.value.length === 1 ? T.value[0] : null;
38530
38547
  return !e || typeof e != "object" || e.$formkit !== "form" || !Array.isArray(e.children) ? null : e;
38531
38548
  }), oe = t(() => ae.value ? ae.value.children : T.value), se = t(() => {
@@ -38558,7 +38575,7 @@ var PZ = {
38558
38575
  "[&_.formkit-inner]:flex-1",
38559
38576
  "[&_.formkit-inner]:min-w-0"
38560
38577
  ].join(" ") : [e, t].join(" ");
38561
- }), de = SZ(oe), fe = (e, t, n = []) => {
38578
+ }), de = CZ(oe), fe = (e, t, n = []) => {
38562
38579
  for (let r = 0; r < e.length; r++) {
38563
38580
  let i = e[r];
38564
38581
  if (!i || typeof i != "object") continue;
@@ -38625,7 +38642,7 @@ var PZ = {
38625
38642
  }, ve = (e) => {
38626
38643
  let t = bl(e);
38627
38644
  return t.match(/^(.*_\d+)_\d+$/)?.[1] || t;
38628
- }, ye = (e) => CZ(e) ? !0 : ["group"].includes(String(e?.$formkit ?? "")), be = (e, t) => {
38645
+ }, ye = (e) => wZ(e) ? !0 : ["group"].includes(String(e?.$formkit ?? "")), be = (e, t) => {
38629
38646
  if (!(!e || typeof e != "object")) {
38630
38647
  if (!ye(e) && e.$formkit !== "submit") {
38631
38648
  let n = ve(e.name || e.$formkit || e.$cmp || "field");
@@ -38638,7 +38655,7 @@ var PZ = {
38638
38655
  let r = vl(), i = {
38639
38656
  ...e,
38640
38657
  __key: r
38641
- }, a = CZ(e);
38658
+ }, a = wZ(e);
38642
38659
  if (e.$formkit !== "submit") {
38643
38660
  if (!ye(e)) {
38644
38661
  let r = ve(e.name || e.$formkit || e.$cmp || "field"), a = n > 0 ? `${r}_${n}` : r, o = 1;
@@ -38696,7 +38713,7 @@ var PZ = {
38696
38713
  if (!t) return !0;
38697
38714
  let n = me(T.value, t.path);
38698
38715
  if (!n) return !0;
38699
- let { parentArr: r } = n, i = [...r].reverse().find((e) => CZ(e) === "list" && e?.__preview_placeholder !== !0);
38716
+ let { parentArr: r } = n, i = [...r].reverse().find((e) => wZ(e) === "list" && e?.__preview_placeholder !== !0);
38700
38717
  return i ? i.__key === e : !0;
38701
38718
  }), k("previewListRemove", (e) => {
38702
38719
  if (!f.interactiveContainers) return;
@@ -38706,7 +38723,7 @@ var PZ = {
38706
38723
  let t = (n) => {
38707
38724
  for (let r of n) {
38708
38725
  if (!r || typeof r != "object") continue;
38709
- if (CZ(r) === "list" && r.__key !== e && r.__preview_placeholder !== !0) return !0;
38726
+ if (wZ(r) === "list" && r.__key !== e && r.__preview_placeholder !== !0) return !0;
38710
38727
  let n = r?.children;
38711
38728
  if (Array.isArray(n) && t(n)) return !0;
38712
38729
  }
@@ -38754,7 +38771,7 @@ var PZ = {
38754
38771
  e.on("input", r), n(() => e.off("input", r));
38755
38772
  }, { immediate: !0 });
38756
38773
  let Te = t(() => we.value?.node ?? null);
38757
- MZ(E, de, () => Te.value);
38774
+ NZ(E, de, () => Te.value);
38758
38775
  let Ee = () => Te.value?.submit?.(), De = () => Te.value?.reset?.(), Oe = async () => {
38759
38776
  let e = Te.value;
38760
38777
  if (!e) return !0;
@@ -38782,7 +38799,7 @@ var PZ = {
38782
38799
  loading: ke
38783
38800
  });
38784
38801
  let je = t(() => f.submitLabel ?? S("elements.submit.label")), Me = t(() => f.resetLabel ?? S("elements.reset.label"));
38785
- return (t, o) => (O(), n(jZ, {
38802
+ return (t, o) => (O(), n(MZ, {
38786
38803
  theme: f.theme,
38787
38804
  locale: v.value,
38788
38805
  "date-locale": b.value,
@@ -38792,19 +38809,20 @@ var PZ = {
38792
38809
  "inline-theme-disabled": e.inlineThemeDisabled,
38793
38810
  "preflight-style-disabled": e.preflightStyleDisabled
38794
38811
  }, {
38795
- default: P(() => [f.schema?.[0]?.name ? (O(), i("div", PZ, [a("div", FZ, [o[0] ||= a("span", { class: "i-lucide-file-text h-5 w-5 shrink-0 text-muted-foreground" }, null, -1), a("span", IZ, j(f.schema?.[0]?.name), 1)]), f.schema?.[0]?.props?.version ? (O(), i("span", LZ, " v" + j(f.schema?.[0]?.props?.version), 1)) : r("", !0)])) : r("", !0), c(M(d), {
38812
+ default: P(() => [f.schema?.[0]?.name ? (O(), i("div", FZ, [a("div", IZ, [o[0] ||= a("span", { class: "i-lucide-file-text h-5 w-5 shrink-0 text-muted-foreground" }, null, -1), a("span", LZ, j(f.schema?.[0]?.name), 1)]), f.schema?.[0]?.props?.version ? (O(), i("span", RZ, " v" + j(f.schema?.[0]?.props?.version), 1)) : r("", !0)])) : r("", !0), c(M(d), {
38796
38813
  ref_key: "formKitRef",
38797
38814
  ref: we,
38798
38815
  type: "form",
38799
38816
  name: se.value,
38800
38817
  actions: !1,
38818
+ disabled: e.disabled,
38801
38819
  "model-value": E.value,
38802
38820
  "onUpdate:modelValue": re,
38803
38821
  onSubmit: Ae,
38804
38822
  "form-class": ue.value,
38805
38823
  style: C({ "--fk-label-width": `${le.value}px` })
38806
38824
  }, {
38807
- default: P(() => [c(xZ, {
38825
+ default: P(() => [c(SZ, {
38808
38826
  schema: M(de),
38809
38827
  data: te.value,
38810
38828
  library: ie.value
@@ -38816,7 +38834,8 @@ var PZ = {
38816
38834
  key: 0,
38817
38835
  submit: Ee,
38818
38836
  reset: De,
38819
- loading: ke.value
38837
+ loading: ke.value,
38838
+ disabled: e.disabled
38820
38839
  }) : e.actions ? (O(), i("div", {
38821
38840
  key: 1,
38822
38841
  class: x([
@@ -38828,16 +38847,23 @@ var PZ = {
38828
38847
  }, [c(M(F), y({
38829
38848
  type: "primary",
38830
38849
  "attr-type": "submit"
38831
- }, e.submitAttrs ?? {}, { loading: ke.value }), {
38850
+ }, e.submitAttrs ?? {}, {
38851
+ loading: ke.value,
38852
+ disabled: e.disabled
38853
+ }), {
38832
38854
  default: P(() => [s(j(je.value), 1)]),
38833
38855
  _: 1
38834
- }, 16, ["loading"]), c(M(F), y(e.resetAttrs ?? {}, { onClick: De }), {
38856
+ }, 16, ["loading", "disabled"]), c(M(F), y(e.resetAttrs ?? {}, {
38857
+ disabled: e.disabled,
38858
+ onClick: De
38859
+ }), {
38835
38860
  default: P(() => [s(j(Me.value), 1)]),
38836
38861
  _: 1
38837
- }, 16)], 2)) : r("", !0)]),
38862
+ }, 16, ["disabled"])], 2)) : r("", !0)]),
38838
38863
  _: 3
38839
38864
  }, 8, [
38840
38865
  "name",
38866
+ "disabled",
38841
38867
  "model-value",
38842
38868
  "form-class",
38843
38869
  "style"
@@ -38856,10 +38882,10 @@ var PZ = {
38856
38882
  }
38857
38883
  });
38858
38884
  id(), H(), Xd();
38859
- var zZ = { class: "text-[11px] text-muted-foreground" }, BZ = { class: "py-4 px-3" }, VZ = {
38885
+ var BZ = { class: "text-[11px] text-muted-foreground" }, VZ = { class: "py-4 px-3" }, HZ = {
38860
38886
  key: 0,
38861
38887
  class: "mt-4 p-3 bg-muted/30 rounded border border-border/50"
38862
- }, HZ = { class: "text-[11px] font-medium mb-2 text-foreground/80" }, UZ = { class: "text-[11px] text-muted-foreground" }, WZ = /* @__PURE__ */ u({
38888
+ }, UZ = { class: "text-[11px] font-medium mb-2 text-foreground/80" }, WZ = { class: "text-[11px] text-muted-foreground" }, GZ = /* @__PURE__ */ u({
38863
38889
  __name: "BuilderPreview",
38864
38890
  props: {
38865
38891
  show: { type: Boolean },
@@ -38884,6 +38910,10 @@ var zZ = { class: "text-[11px] text-muted-foreground" }, BZ = { class: "py-4 px-
38884
38910
  resetOnSubmit: {
38885
38911
  type: Boolean,
38886
38912
  default: !0
38913
+ },
38914
+ disabled: {
38915
+ type: Boolean,
38916
+ default: !1
38887
38917
  }
38888
38918
  },
38889
38919
  emits: ["update:show", "submit"],
@@ -38944,9 +38974,9 @@ var zZ = { class: "text-[11px] text-muted-foreground" }, BZ = { class: "py-4 px-
38944
38974
  title: S.value,
38945
38975
  size: "small"
38946
38976
  }, {
38947
- "header-extra": P(() => [a("div", zZ, j(C.value), 1)]),
38977
+ "header-extra": P(() => [a("div", BZ, j(C.value), 1)]),
38948
38978
  default: P(() => [c(M(at), { style: { "max-height": "600px" } }, {
38949
- default: P(() => [a("div", BZ, [c(RZ, {
38979
+ default: P(() => [a("div", VZ, [c(zZ, {
38950
38980
  ref_key: "rendererRef",
38951
38981
  ref: ie,
38952
38982
  schema: v.value,
@@ -38958,6 +38988,7 @@ var zZ = { class: "text-[11px] text-muted-foreground" }, BZ = { class: "py-4 px-
38958
38988
  "label-position": T.value,
38959
38989
  "label-width": E.value,
38960
38990
  "interactive-containers": f.interactiveContainers,
38991
+ disabled: f.disabled,
38961
38992
  onSubmit: te
38962
38993
  }, null, 8, [
38963
38994
  "schema",
@@ -38967,8 +38998,9 @@ var zZ = { class: "text-[11px] text-muted-foreground" }, BZ = { class: "py-4 px-
38967
38998
  "form-name",
38968
38999
  "label-position",
38969
39000
  "label-width",
38970
- "interactive-containers"
38971
- ]), f.showDataPanel ? (O(), i("div", VZ, [a("h3", HZ, j(M(l)("builder.formDataTitle")), 1), a("pre", UZ, j(D.value), 1)])) : r("", !0)])]),
39001
+ "interactive-containers",
39002
+ "disabled"
39003
+ ]), f.showDataPanel ? (O(), i("div", HZ, [a("h3", UZ, j(M(l)("builder.formDataTitle")), 1), a("pre", WZ, j(D.value), 1)])) : r("", !0)])]),
38972
39004
  _: 1
38973
39005
  })]),
38974
39006
  _: 1
@@ -38980,7 +39012,7 @@ var zZ = { class: "text-[11px] text-muted-foreground" }, BZ = { class: "py-4 px-
38980
39012
  }
38981
39013
  });
38982
39014
  xf(), wM(), H(), Xd();
38983
- var GZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, KZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, qZ = /* @__PURE__ */ u({
39015
+ var KZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, qZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, JZ = /* @__PURE__ */ u({
38984
39016
  __name: "AiPrompt",
38985
39017
  setup(t) {
38986
39018
  let { isLoading: o, commitSchema: l } = qd(), u = Nt("(max-width: 768px)"), d = xM(), { t: f } = V(), p = A(""), m = A(!1), h = A(!1), g = (e) => {
@@ -38996,7 +39028,7 @@ var GZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, K
38996
39028
  return n !== -1 && r > n ? e.slice(n, r + 1) : e.trim();
38997
39029
  }, v = async () => {
38998
39030
  if (p.value === "") {
38999
- pZ(f("ai.emptyPrompt"), {
39031
+ mZ(f("ai.emptyPrompt"), {
39000
39032
  description: f("ai.emptyPromptDescription"),
39001
39033
  action: { label: f("ai.close") }
39002
39034
  });
@@ -39030,7 +39062,7 @@ var GZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, K
39030
39062
  if (!Array.isArray(i) || i.length === 0) throw Error(f("ai.parseFailed"));
39031
39063
  l(i, { reason: "ai" }), p.value = "";
39032
39064
  } catch (e) {
39033
- console.error("AI generate schema failed:", e), pZ(f("ai.requestFailed"), { description: e?.message || String(e) });
39065
+ console.error("AI generate schema failed:", e), mZ(f("ai.requestFailed"), { description: e?.message || String(e) });
39034
39066
  } finally {
39035
39067
  o.value = !1;
39036
39068
  }
@@ -39041,7 +39073,7 @@ var GZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, K
39041
39073
  key: 0,
39042
39074
  class: x(M(hf)("flex w-full min-w-0 rounded-lg card relative items-center justify-center", "bg-gradient-to-br from-secondary to-emerald-100/80 dark:from-secondary dark:to-emerald-800/80 dark:border-ring/5", m.value ? "ring-2 ring-ring transition-all duration-300" : "border border-ring/20 dark:border-ring/10 transition-all duration-300", M(o) ? "bg-primary/5 shadow-inner animate-pulse transition-colors duration-300" : ""))
39043
39075
  }, [
39044
- a("span", GZ, [a("span", { class: x(M(hf)("i-lucide-bot-message-square size-6 text-muted-foreground")) }, null, 2)]),
39076
+ a("span", KZ, [a("span", { class: x(M(hf)("i-lucide-bot-message-square size-6 text-muted-foreground")) }, null, 2)]),
39045
39077
  c(M(ze), {
39046
39078
  type: "textarea",
39047
39079
  onFocus: y,
@@ -39090,7 +39122,7 @@ var GZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, K
39090
39122
  _: 1
39091
39123
  })]),
39092
39124
  default: P(() => [a("div", { class: x(M(hf)("flex rounded-lg w-[80vw] max-w-[400px] card relative items-center justify-center", "bg-gradient-to-br from-secondary to-emerald-100/50 dark:from-secondary dark:to-emerald-800/30", m.value ? "border ring ring-ring" : "border border-primary/10", M(o) ? "bg-primary/5 shadow-inner animate-pulse transition-colors duration-300" : "")) }, [
39093
- a("span", KZ, [a("span", { class: x(M(hf)("i-lucide-bot-message-square size-6 text-muted-foreground")) }, null, 2)]),
39125
+ a("span", qZ, [a("span", { class: x(M(hf)("i-lucide-bot-message-square size-6 text-muted-foreground")) }, null, 2)]),
39094
39126
  c(M(ze), {
39095
39127
  type: "textarea",
39096
39128
  onFocus: y,
@@ -39119,7 +39151,7 @@ var GZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, K
39119
39151
  _: 1
39120
39152
  }, 8, ["show"])) : r("", !0)], 64));
39121
39153
  }
39122
- }), JZ = /* @__PURE__ */ u({
39154
+ }), YZ = /* @__PURE__ */ u({
39123
39155
  __name: "ThemeSwitcher",
39124
39156
  setup(e) {
39125
39157
  let t = Mt({ disableTransition: !1 }), r = [
@@ -39157,14 +39189,14 @@ var GZ = { class: "start-0 inset-y-0 flex items-center justify-center px-2" }, K
39157
39189
  }
39158
39190
  });
39159
39191
  H(), Xd(), wM();
39160
- var YZ = { class: "sticky top-0 md:top-5 flex h-14 shrink-0 items-center rounded-2xl z-[1000] px-4" }, XZ = { class: "w-full grid grid-cols-3 items-center gap-3" }, ZZ = { class: "flex items-center gap-2 justify-start" }, QZ = { class: "flex justify-center" }, $Z = { class: "w-full max-w-[560px]" }, eQ = { class: "flex items-center gap-2 justify-end" }, tQ = /* @__PURE__ */ u({
39192
+ var XZ = { class: "sticky top-0 md:top-5 flex h-14 shrink-0 items-center rounded-2xl z-[1000] px-4" }, ZZ = { class: "w-full grid grid-cols-3 items-center gap-3" }, QZ = { class: "flex items-center gap-2 justify-start" }, $Z = { class: "flex justify-center" }, eQ = { class: "w-full max-w-[560px]" }, tQ = { class: "flex items-center gap-2 justify-end" }, nQ = /* @__PURE__ */ u({
39161
39193
  __name: "BuilderHeader",
39162
39194
  setup(e) {
39163
39195
  let t = xM(), { canRedo: o, canUndo: l, commitSchema: u, redo: d, undo: f } = qd(), { t: p } = V(), m = () => {
39164
39196
  u([], { reason: "clear" });
39165
39197
  }, h = A(!1);
39166
- return (e, u) => (O(), i("header", YZ, [a("div", XZ, [
39167
- a("div", ZZ, [ne(e.$slots, "left", {}, () => [
39198
+ return (e, u) => (O(), i("header", XZ, [a("div", ZZ, [
39199
+ a("div", QZ, [ne(e.$slots, "left", {}, () => [
39168
39200
  c(M(Ze), { onPositiveClick: m }, {
39169
39201
  trigger: P(() => [c(M(vt), null, {
39170
39202
  trigger: P(() => [c(M(F), {
@@ -39198,13 +39230,13 @@ var YZ = { class: "sticky top-0 md:top-5 flex h-14 shrink-0 items-center rounded
39198
39230
  default: P(() => [s(" " + j(M(p)("builder.previewForm")), 1)]),
39199
39231
  _: 1
39200
39232
  }),
39201
- c(WZ, {
39233
+ c(GZ, {
39202
39234
  show: h.value,
39203
39235
  "onUpdate:show": u[1] ||= (e) => h.value = e
39204
39236
  }, null, 8, ["show"])
39205
39237
  ])]),
39206
- a("div", QZ, [ne(e.$slots, "center", {}, () => [a("div", $Z, [M(t).apiKey ? (O(), n(qZ, { key: 0 })) : r("", !0)])])]),
39207
- a("div", eQ, [ne(e.$slots, "right", {}, () => [c(M(_e), { class: "bg-card shadow-sm rounded-lg border border-border/50" }, {
39238
+ a("div", $Z, [ne(e.$slots, "center", {}, () => [a("div", eQ, [M(t).apiKey ? (O(), n(JZ, { key: 0 })) : r("", !0)])])]),
39239
+ a("div", tQ, [ne(e.$slots, "right", {}, () => [c(M(_e), { class: "bg-card shadow-sm rounded-lg border border-border/50" }, {
39208
39240
  default: P(() => [c(M(vt), { placement: "bottom" }, {
39209
39241
  trigger: P(() => [c(M(F), {
39210
39242
  text: "",
@@ -39233,12 +39265,12 @@ var YZ = { class: "sticky top-0 md:top-5 flex h-14 shrink-0 items-center rounded
39233
39265
  _: 1
39234
39266
  })]),
39235
39267
  _: 1
39236
- }), c(JZ)])])
39268
+ }), c(YZ)])])
39237
39269
  ])]));
39238
39270
  }
39239
39271
  });
39240
39272
  wM(), H(), Xd();
39241
- var nQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, rQ = /* @__PURE__ */ u({
39273
+ var rQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, iQ = /* @__PURE__ */ u({
39242
39274
  __name: "BuilderMain",
39243
39275
  props: {
39244
39276
  modelValue: {},
@@ -39266,10 +39298,10 @@ var nQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, rQ = /* @__PURE__ */
39266
39298
  emits: ["update:modelValue"],
39267
39299
  setup(e, { emit: r }) {
39268
39300
  let i = e, s = r, l = Kd(), { formDefinition: u, setFormDefinition: d } = l, f = xM();
39269
- i.config && (EZ(i.config.elements), bM(i.config));
39301
+ i.config && (DZ(i.config.elements), bM(i.config));
39270
39302
  let p = i.config ?? f;
39271
39303
  uV(t(() => p.http));
39272
- let m = p?.availableLocales ?? ["zh-CN", "en"], h = p?.localeFallback ?? "zh-CN", g = sZ({
39304
+ let m = p?.availableLocales ?? ["zh-CN", "en"], h = p?.localeFallback ?? "zh-CN", g = cZ({
39273
39305
  initialLocale: m.includes(p?.locale ?? "") ? p.locale : h,
39274
39306
  availableLocales: m,
39275
39307
  localeFallback: h
@@ -39301,7 +39333,7 @@ var nQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, rQ = /* @__PURE__ */
39301
39333
  let t = e.target;
39302
39334
  t && (t.closest("[data-canvas-item=\"true\"]") || t.closest("button,a,input,textarea,select,option,[role=\"button\"],[role=\"switch\"],[contenteditable=\"true\"]") || t.closest(".n-button,.n-input,.n-select,.n-switch,.n-dropdown,.n-popover") || (l.selectedTarget.value = "form", l.selectedKey.value = null, l.selectedColumnIndex.value = null));
39303
39335
  };
39304
- return (t, r) => (O(), n(jZ, {
39336
+ return (t, r) => (O(), n(MZ, {
39305
39337
  theme: i.theme,
39306
39338
  locale: M(g).naiveLocale.value,
39307
39339
  "date-locale": M(g).naiveDateLocale.value,
@@ -39315,7 +39347,7 @@ var nQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, rQ = /* @__PURE__ */
39315
39347
  "has-sider": "",
39316
39348
  class: "h-screen w-full"
39317
39349
  }, {
39318
- default: P(() => [c(nY), c(M(He), {
39350
+ default: P(() => [c(rY), c(M(He), {
39319
39351
  "has-sider": "",
39320
39352
  "sider-placement": "right",
39321
39353
  class: "flex-1 mb-4"
@@ -39325,7 +39357,7 @@ var nQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, rQ = /* @__PURE__ */
39325
39357
  "native-scrollbar": !1,
39326
39358
  onPointerdownCapture: x
39327
39359
  }, {
39328
- default: P(() => [a("div", nQ, [ne(t.$slots, "header", {}, () => [c(tQ, null, o({ _: 2 }, [
39360
+ default: P(() => [a("div", rQ, [ne(t.$slots, "header", {}, () => [c(nQ, null, o({ _: 2 }, [
39329
39361
  t.$slots["header-left"] ? {
39330
39362
  name: "left",
39331
39363
  fn: P(() => [ne(t.$slots, "header-left")]),
@@ -39341,7 +39373,7 @@ var nQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, rQ = /* @__PURE__ */
39341
39373
  fn: P(() => [ne(t.$slots, "header-right")]),
39342
39374
  key: "2"
39343
39375
  } : void 0
39344
- ]), 1024)]), c(bZ, { class: "flex-1 min-h-0" }, o({ _: 2 }, [t.$slots.toolbar ? {
39376
+ ]), 1024)]), c(xZ, { class: "flex-1 min-h-0" }, o({ _: 2 }, [t.$slots.toolbar ? {
39345
39377
  name: "toolbar",
39346
39378
  fn: P(() => [ne(t.$slots, "toolbar")]),
39347
39379
  key: "0"
@@ -39351,7 +39383,7 @@ var nQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, rQ = /* @__PURE__ */
39351
39383
  key: "1"
39352
39384
  } : void 0]), 1024)])]),
39353
39385
  _: 3
39354
- }), c(UX)]),
39386
+ }), c(WX)]),
39355
39387
  _: 3
39356
39388
  })]),
39357
39389
  _: 3
@@ -39372,7 +39404,7 @@ var nQ = { class: "p-16px flex flex-1 min-h-0 flex-col" }, rQ = /* @__PURE__ */
39372
39404
  //#endregion
39373
39405
  //#region src/builder/FormDefinitionPreview.vue?vue&type=script&setup=true&lang.ts
39374
39406
  H();
39375
- var iQ = { class: "flex gap-4 p-4" }, aQ = { class: "min-w-0 flex-1" }, oQ = { class: "text-[11px] font-medium mb-2 text-foreground/80" }, sQ = { class: "text-[11px] whitespace-pre-wrap break-all text-muted-foreground" }, cQ = /* @__PURE__ */ u({
39407
+ var aQ = { class: "flex gap-4 p-4" }, oQ = { class: "min-w-0 flex-1" }, sQ = { class: "text-[11px] font-medium mb-2 text-foreground/80" }, cQ = { class: "text-[11px] whitespace-pre-wrap break-all text-muted-foreground" }, lQ = /* @__PURE__ */ u({
39376
39408
  __name: "FormDefinitionPreview",
39377
39409
  props: {
39378
39410
  show: { type: Boolean },
@@ -39396,6 +39428,10 @@ var iQ = { class: "flex gap-4 p-4" }, aQ = { class: "min-w-0 flex-1" }, oQ = { c
39396
39428
  resetOnSubmit: {
39397
39429
  type: Boolean,
39398
39430
  default: !0
39431
+ },
39432
+ disabled: {
39433
+ type: Boolean,
39434
+ default: !1
39399
39435
  }
39400
39436
  },
39401
39437
  emits: ["update:show", "submit"],
@@ -39443,7 +39479,7 @@ var iQ = { class: "flex gap-4 p-4" }, aQ = { class: "min-w-0 flex-1" }, oQ = { c
39443
39479
  }
39444
39480
  }, {
39445
39481
  default: P(() => [c(M(at), null, {
39446
- default: P(() => [a("div", iQ, [a("div", aQ, [c(RZ, {
39482
+ default: P(() => [a("div", aQ, [a("div", oQ, [c(zZ, {
39447
39483
  ref_key: "rendererRef",
39448
39484
  ref: _,
39449
39485
  definition: e.formDefinition,
@@ -39452,18 +39488,20 @@ var iQ = { class: "flex gap-4 p-4" }, aQ = { class: "min-w-0 flex-1" }, oQ = { c
39452
39488
  actions: e.actions,
39453
39489
  "form-class": e.formClass,
39454
39490
  "interactive-containers": e.interactiveContainers,
39491
+ disabled: e.disabled,
39455
39492
  onSubmit: g
39456
39493
  }, null, 8, [
39457
39494
  "definition",
39458
39495
  "modelValue",
39459
39496
  "actions",
39460
39497
  "form-class",
39461
- "interactive-containers"
39498
+ "interactive-containers",
39499
+ "disabled"
39462
39500
  ])]), e.showDataPanel ? (O(), i("div", {
39463
39501
  key: 0,
39464
39502
  class: "shrink-0 overflow-auto border border-border/50 rounded-lg bg-muted/30 p-3",
39465
39503
  style: C({ width: e.dataPanelWidth })
39466
- }, [a("h3", oQ, j(M(l)("builder.formDataTitle")), 1), a("pre", sQ, j(h.value), 1)], 4)) : r("", !0)])]),
39504
+ }, [a("h3", sQ, j(M(l)("builder.formDataTitle")), 1), a("pre", cQ, j(h.value), 1)], 4)) : r("", !0)])]),
39467
39505
  _: 1
39468
39506
  })]),
39469
39507
  _: 1
@@ -39471,7 +39509,7 @@ var iQ = { class: "flex gap-4 p-4" }, aQ = { class: "min-w-0 flex-1" }, oQ = { c
39471
39509
  }
39472
39510
  });
39473
39511
  wM(), H();
39474
- var lQ = { class: "form-builder-provider" }, uQ = /* @__PURE__ */ u({
39512
+ var uQ = { class: "form-builder-provider" }, dQ = /* @__PURE__ */ u({
39475
39513
  __name: "BuilderProvider",
39476
39514
  props: {
39477
39515
  config: {},
@@ -39484,8 +39522,8 @@ var lQ = { class: "form-builder-provider" }, uQ = /* @__PURE__ */ u({
39484
39522
  },
39485
39523
  setup(e) {
39486
39524
  let r = e;
39487
- EZ(r.config.elements), bM(r.config), uV(t(() => r.config.http));
39488
- let i = r.config.availableLocales ?? ["zh-CN", "en"], o = r.config.localeFallback ?? "zh-CN", s = sZ({
39525
+ DZ(r.config.elements), bM(r.config), uV(t(() => r.config.http));
39526
+ let i = r.config.availableLocales ?? ["zh-CN", "en"], o = r.config.localeFallback ?? "zh-CN", s = cZ({
39489
39527
  initialLocale: i.includes(r.config.locale ?? "") ? r.config.locale : o,
39490
39528
  availableLocales: i,
39491
39529
  localeFallback: o
@@ -39495,7 +39533,7 @@ var lQ = { class: "form-builder-provider" }, uQ = /* @__PURE__ */ u({
39495
39533
  }, { immediate: !0 }), uf({
39496
39534
  locale: t(() => s.locale.value),
39497
39535
  messages: t(() => r.config.messages)
39498
- }), (e, t) => (O(), n(jZ, {
39536
+ }), (e, t) => (O(), n(MZ, {
39499
39537
  theme: r.theme,
39500
39538
  locale: M(s).naiveLocale.value,
39501
39539
  "date-locale": M(s).naiveDateLocale.value,
@@ -39505,7 +39543,7 @@ var lQ = { class: "form-builder-provider" }, uQ = /* @__PURE__ */ u({
39505
39543
  "inline-theme-disabled": r.inlineThemeDisabled,
39506
39544
  "preflight-style-disabled": r.preflightStyleDisabled
39507
39545
  }, {
39508
- default: P(() => [a("div", lQ, [ne(e.$slots, "default")])]),
39546
+ default: P(() => [a("div", uQ, [ne(e.$slots, "default")])]),
39509
39547
  _: 3
39510
39548
  }, 8, [
39511
39549
  "theme",
@@ -39521,7 +39559,7 @@ var lQ = { class: "form-builder-provider" }, uQ = /* @__PURE__ */ u({
39521
39559
  });
39522
39560
  //#endregion
39523
39561
  //#region src/formkit.theme.ts
39524
- function dQ(e, t) {
39562
+ function fQ(e, t) {
39525
39563
  let n = `formkit-${e}`, r = t.props.family ? `family:${t.props.family}__${e}` : "", i = t.props?.$formkit || t.props.type;
39526
39564
  if (t.props.family === "naive") return e === "outer" || e === "wrapper" ? {
39527
39565
  [n]: !0,
@@ -39589,16 +39627,16 @@ function dQ(e, t) {
39589
39627
  hidden: !0
39590
39628
  };
39591
39629
  let o = `${a}__${r}`;
39592
- if (!(o in fQ)) {
39593
- let t = fQ[a] ?? pQ[e] ?? {};
39594
- t[n] = !0, r in fQ ? fQ[o] = {
39595
- ...fQ[r],
39630
+ if (!(o in pQ)) {
39631
+ let t = pQ[a] ?? mQ[e] ?? {};
39632
+ t[n] = !0, r in pQ ? pQ[o] = {
39633
+ ...pQ[r],
39596
39634
  ...t
39597
- } : fQ[o] = t;
39635
+ } : pQ[o] = t;
39598
39636
  }
39599
- return fQ[o] ?? { [n]: !0 };
39637
+ return pQ[o] ?? { [n]: !0 };
39600
39638
  }
39601
- var fQ = {
39639
+ var pQ = {
39602
39640
  "family:button__wrapper": { "group-data-[disabled=true]:grayscale": !0 },
39603
39641
  "family:button__input": {
39604
39642
  "appearance-none": !0,
@@ -42756,7 +42794,7 @@ var fQ = {
42756
42794
  },
42757
42795
  step__stepPrevious: { "mr-1": !0 },
42758
42796
  step__stepNext: { "ml-auto": !0 }
42759
- }, pQ = {
42797
+ }, mQ = {
42760
42798
  outer: {
42761
42799
  group: !0,
42762
42800
  "max-w-full": !0,
@@ -42871,8 +42909,8 @@ var fQ = {
42871
42909
  };
42872
42910
  //#endregion
42873
42911
  //#region src/formkit.config.ts
42874
- function mQ(e) {
42875
- return EZ(e), hc({
42912
+ function hQ(e) {
42913
+ return DZ(e), hc({
42876
42914
  plugins: [Ga({
42877
42915
  en: Va,
42878
42916
  zh: Ha
@@ -42882,17 +42920,17 @@ function mQ(e) {
42882
42920
  zh: Ha
42883
42921
  },
42884
42922
  locale: "zh",
42885
- config: { rootClasses: dQ },
42923
+ config: { rootClasses: fQ },
42886
42924
  inputs: dH()
42887
42925
  });
42888
42926
  }
42889
42927
  //#endregion
42890
42928
  //#region src/plugin/form-builder-plugin.ts
42891
- mQ(), wM();
42892
- var hQ = { install(e, t) {
42929
+ hQ(), wM();
42930
+ var gQ = { install(e, t) {
42893
42931
  let n = t ?? {}, r = n.config?.elements;
42894
- EZ(r), yM(n.config), n.installFormKit !== !1 && e.use(Yc, (n.formkitConfig ?? mQ)(r));
42932
+ DZ(r), yM(n.config), n.installFormKit !== !1 && e.use(Yc, (n.formkitConfig ?? hQ)(r));
42895
42933
  } };
42896
42934
  wM(), Xd(), id();
42897
42935
  //#endregion
42898
- export { WZ as BuilderPreview, uQ as BuilderProvider, uQ as FormBuilderProvider, _Z as CanvasActionsBar, rQ as FormBuilder, rQ as FormKitFormBuilder, hQ as FormBuilderPlugin, cQ as FormDefinitionPreview, RZ as FormRenderer, RZ as FormSchemaRenderer, mH as buildElementSchemaLibrary, dH as buildFormkitInputs, Wd as createFormBuilderState, Gu as dslToOutputSchema, Wu as dslToSchema, mQ as formkitConfig, pH as getElementCmpName, bM as provideFormBuilderConfig, Kd as provideFormBuilderState, TZ as registerElement, EZ as registerElements, Ju as schemaToDsl, yM as setGlobalFormBuilderConfig, xM as useFormBuilderConfig, qd as useFormBuilderState };
42936
+ export { GZ as BuilderPreview, dQ as BuilderProvider, dQ as FormBuilderProvider, vZ as CanvasActionsBar, iQ as FormBuilder, iQ as FormKitFormBuilder, gQ as FormBuilderPlugin, lQ as FormDefinitionPreview, zZ as FormRenderer, zZ as FormSchemaRenderer, mH as buildElementSchemaLibrary, dH as buildFormkitInputs, Wd as createFormBuilderState, Gu as dslToOutputSchema, Wu as dslToSchema, hQ as formkitConfig, pH as getElementCmpName, bM as provideFormBuilderConfig, Kd as provideFormBuilderState, EZ as registerElement, DZ as registerElements, Ju as schemaToDsl, yM as setGlobalFormBuilderConfig, xM as useFormBuilderConfig, qd as useFormBuilderState };