@sfxcode/formkit-primevue 1.7.0 → 1.7.1

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.
@@ -1,4 +1,4 @@
1
- import { markRaw as Lt, ref as T, nextTick as Va, reactive as $e, computed as d, triggerRef as ke, isRef as lt, isReactive as nt, watch as Sa, defineComponent as V, resolveComponent as S, openBlock as _, createElementBlock as g, createVNode as I, unref as r, normalizeClass as L, toDisplayString as se, createCommentVNode as Q, normalizeStyle as ee, createElementVNode as xt, Fragment as Ia, renderList as Aa } from "vue";
1
+ import { markRaw as Lt, ref as T, nextTick as Va, reactive as $e, computed as d, triggerRef as ke, isRef as lt, isReactive as nt, watch as Sa, defineComponent as V, resolveComponent as S, openBlock as h, createElementBlock as _, createVNode as I, unref as r, normalizeClass as L, toDisplayString as se, createCommentVNode as Q, normalizeStyle as ee, createElementVNode as xt, Fragment as Ia, renderList as Oa } from "vue";
2
2
  var Mt = [
3
3
  "__key",
4
4
  "__init",
@@ -22,7 +22,7 @@ function R(e, s, t = !0, a = ["__key"]) {
22
22
  if (e instanceof Date && s instanceof Date)
23
23
  return e.getTime() === s.getTime();
24
24
  if (e instanceof RegExp && s instanceof RegExp)
25
- return Oa(e, s);
25
+ return Aa(e, s);
26
26
  if (e === null || s === null || Object.keys(e).length !== Object.keys(s).length)
27
27
  return !1;
28
28
  for (const i of a)
@@ -35,7 +35,7 @@ function R(e, s, t = !0, a = ["__key"]) {
35
35
  }
36
36
  return !1;
37
37
  }
38
- function Oa(e, s) {
38
+ function Aa(e, s) {
39
39
  return e.source === s.source && e.flags.split("").sort().join("") === s.flags.split("").sort().join("");
40
40
  }
41
41
  function D(e) {
@@ -294,14 +294,14 @@ function za(e) {
294
294
  });
295
295
  }
296
296
  }
297
- function qa(e) {
297
+ function Ua(e) {
298
298
  return Et.get(e);
299
299
  }
300
300
  function ut(e, s, t) {
301
301
  let a = !0;
302
302
  return s in e.config._t ? a = !1 : e.emit(`config:${s}`, t, !1), s in e.props || (e.emit("prop", { prop: s, value: t }), e.emit(`prop:${s}`, t)), a;
303
303
  }
304
- function Ua(e, s) {
304
+ function qa(e, s) {
305
305
  const t = (s || document).getElementById(e);
306
306
  if (t instanceof HTMLFormElement) {
307
307
  const a = new Event("submit", { cancelable: !0, bubbles: !0 });
@@ -320,7 +320,7 @@ function Ba(e) {
320
320
  s(e), e.walk(s);
321
321
  }
322
322
  function Ha(e, s) {
323
- const t = typeof e == "string" ? qa(e) : e;
323
+ const t = typeof e == "string" ? Ua(e) : e;
324
324
  if (t) {
325
325
  const a = (o) => B(o.props.initial) || (o.type === "group" ? {} : o.type === "list" ? [] : void 0);
326
326
  t._e.pause(t);
@@ -351,8 +351,8 @@ function je(e) {
351
351
  var Ve = (e, s, t) => {
352
352
  ye(102, [e, t]);
353
353
  };
354
- h(ms, Ve, !1), h(ls), h(is), h(ys, Ve, !1), h(vs), h(Ea), h(Is), h(as), h(!1), h(rs), h(ts), h(ss), h(As), h(Xa), h(ds, fs, !1), h(Ja), h(us), h(Da), h(_s), h(ja), h(Fa), h(!1, ns), h(!1), h(os), h($s, Ve, !1), h(Vs), h(cs), h(Ss), h(Cs), h(ws), h(Nt), h(bs, !1, !1), h(ps);
355
- function h(e, s, t = !0) {
354
+ g(ms, Ve, !1), g(ls), g(is), g(ys, Ve, !1), g(vs), g(Ea), g(Is), g(as), g(!1), g(rs), g(ts), g(ss), g(Os), g(Xa), g(ds, fs, !1), g(Ja), g(us), g(Da), g(_s), g(ja), g(Fa), g(!1, ns), g(!1), g(os), g($s, Ve, !1), g(Vs), g(cs), g(Ss), g(Cs), g(ws), g(Nt), g(bs, !1, !1), g(ps);
355
+ function g(e, s, t = !0) {
356
356
  return {
357
357
  get: e ? (a, i) => t ? (...l) => e(a, i, ...l) : e(a, i) : !1,
358
358
  set: s !== void 0 ? s : Ve.bind(null)
@@ -366,11 +366,11 @@ function Ga(e) {
366
366
  }
367
367
  function Ja(e, s, t, a = !0) {
368
368
  return s._value = Qa(e, e.hook.input.dispatch(t)), e.emit("input", s._value), e.isCreated && e.type === "input" && R(s._value, s.value) ? (e.emit("commitRaw", s.value), s.settled) : (s.isSettled && e.disturb(), a ? (s._tmo && clearTimeout(s._tmo), s._tmo = setTimeout(
369
- Ae,
369
+ Oe,
370
370
  e.props.delay,
371
371
  e,
372
372
  s
373
- )) : Ae(e, s), s.settled);
373
+ )) : Oe(e, s), s.settled);
374
374
  }
375
375
  function Qa(e, s) {
376
376
  switch (e.type) {
@@ -385,7 +385,7 @@ function Qa(e, s) {
385
385
  }
386
386
  return s;
387
387
  }
388
- function Ae(e, s, t = !0, a = !0) {
388
+ function Oe(e, s, t = !0, a = !0) {
389
389
  s._value = s.value = e.hook.commit.dispatch(s._value), e.type !== "input" && a && e.hydrate(), e.emit("commitRaw", s.value), e.emit("commit", s.value), t && e.calm();
390
390
  }
391
391
  function Ft(e, { name: s, value: t, from: a }) {
@@ -444,7 +444,7 @@ function es(e, s) {
444
444
  a[u] = n, i.delete(n);
445
445
  }
446
446
  o.forEach((n, u) => {
447
- a[n] = Os({ value: u });
447
+ a[n] = As({ value: u });
448
448
  }), i.size && i.forEach((n) => {
449
449
  if (!("__FKP" in n)) {
450
450
  const u = n._c.parent;
@@ -463,7 +463,7 @@ function ts(e, s) {
463
463
  function as(e, s, t) {
464
464
  var a;
465
465
  if (t !== void 0 && e.type !== "input")
466
- return Ft(s, t), Ae(e, s, !0, !1);
466
+ return Ft(s, t), Oe(e, s, !0, !1);
467
467
  s._d > 0 && s._d--, s._d === 0 && (s.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((a = e.parent) == null || a.calm({ name: e.name, value: s.value })), s._resolve && s._resolve(s.value));
468
468
  }
469
469
  function ss(e, s) {
@@ -525,7 +525,7 @@ function ls(e, s, t, a) {
525
525
  return e.remove(t), t.parent.add(t), e;
526
526
  } else
527
527
  t.use(e.plugins);
528
- return Ae(e, s, !1), e.ledger.merge(t), e.emit("child", t), e;
528
+ return Oe(e, s, !1), e.ledger.merge(t), e.emit("child", t), e;
529
529
  }
530
530
  function ns(e, s, t, a) {
531
531
  return je(a) ? (e.parent && e.parent !== a && e.parent.remove(e), s.parent = a, e.resetConfig(), a.children.includes(e) ? e.use(a.plugins) : a.add(e), !0) : a === null ? (s.parent = null, !0) : !1;
@@ -691,7 +691,7 @@ function Cs(e) {
691
691
  break;
692
692
  e.parent || ye(106, s), e = e.parent;
693
693
  } while (e);
694
- e.props.id && Ua(e.props.id, e.props.__root);
694
+ e.props.id && qa(e.props.id, e.props.__root);
695
695
  }
696
696
  function Vs(e, s, t) {
697
697
  return Ha(e, t);
@@ -709,10 +709,10 @@ function Is(e, s, t = !0, a) {
709
709
  i.store.filter((l) => !(l.type === "error" && l.meta && l.meta.source === a));
710
710
  })), e;
711
711
  }
712
- function As(e, s, t, a) {
712
+ function Os(e, s, t, a) {
713
713
  return s.traps.set(t, a), e;
714
714
  }
715
- function Os(e) {
715
+ function As(e) {
716
716
  return {
717
717
  __FKP: !0,
718
718
  uid: Symbol(),
@@ -753,15 +753,15 @@ function Se(e, s, t) {
753
753
  function Ms(e, s, ...t) {
754
754
  const a = t.reduce((i, l) => {
755
755
  if (!l)
756
- return qe(i);
756
+ return Ue(i);
757
757
  const { $reset: o, ...n } = l;
758
- return qe(o ? n : Object.assign(i, n));
758
+ return Ue(o ? n : Object.assign(i, n));
759
759
  }, {});
760
760
  return Object.keys(
761
761
  e.hook.classes.dispatch({ property: s, classes: a }).classes
762
762
  ).filter((i) => a[i]).join(" ") || null;
763
763
  }
764
- function qe(e) {
764
+ function Ue(e) {
765
765
  const s = "$remove:";
766
766
  let t = !1;
767
767
  const a = Object.keys(e).filter((i) => (e[i] && i.startsWith(s) && (t = !0), e[i]));
@@ -770,7 +770,7 @@ function qe(e) {
770
770
  e[o] = !1, e[l] = !1;
771
771
  }), e;
772
772
  }
773
- var Oe = "1.5.7", zt = /* @__PURE__ */ new WeakSet();
773
+ var Ae = "1.5.9", zt = /* @__PURE__ */ new WeakSet();
774
774
  function ve(e, s) {
775
775
  const t = s || Object.assign(/* @__PURE__ */ new Map(), { active: !1 }), a = /* @__PURE__ */ new Map(), i = function(f) {
776
776
  var b;
@@ -800,7 +800,7 @@ function ve(e, s) {
800
800
  case "deps":
801
801
  return t;
802
802
  case "watch":
803
- return (w, P, U) => Bt(u, w, P, U);
803
+ return (w, P, q) => Bt(u, w, P, q);
804
804
  case "observe":
805
805
  return () => {
806
806
  const w = new Map(t);
@@ -815,7 +815,7 @@ function ve(e, s) {
815
815
  return a;
816
816
  case "kill":
817
817
  return () => {
818
- Ut(a), zt.add(f[2]), p();
818
+ qt(a), zt.add(f[2]), p();
819
819
  };
820
820
  }
821
821
  const b = Reflect.get(...f);
@@ -827,7 +827,7 @@ function ve(e, s) {
827
827
  });
828
828
  return u;
829
829
  }
830
- function qt(e, [s, t], a, i) {
830
+ function Ut(e, [s, t], a, i) {
831
831
  s.forEach((l, o) => {
832
832
  l.forEach((n) => {
833
833
  e.receipts.has(o) || e.receipts.set(o, {});
@@ -843,7 +843,7 @@ function qt(e, [s, t], a, i) {
843
843
  });
844
844
  });
845
845
  }
846
- function Ut(e) {
846
+ function qt(e) {
847
847
  e.forEach((s, t) => {
848
848
  for (const a in s)
849
849
  s[a].map(t.off);
@@ -852,7 +852,7 @@ function Ut(e) {
852
852
  function Bt(e, s, t, a) {
853
853
  const i = (n) => {
854
854
  const u = e.stopObserve();
855
- qt(
855
+ Ut(
856
856
  e,
857
857
  Ht(l, u),
858
858
  () => Bt(e, s, t, a),
@@ -913,10 +913,10 @@ var Rs = Wt, Ds = function({ value: e }, s = !1) {
913
913
  latin: /^[0-9a-z]+$/i
914
914
  }, a = $(t, s) ? s : "default";
915
915
  return t[a].test(String(e));
916
- }, qs = zs, Us = function({ value: e }, s = !1) {
916
+ }, Us = zs, qs = function({ value: e }, s = !1) {
917
917
  const t = Date.parse(s || /* @__PURE__ */ new Date()), a = Date.parse(String(e));
918
918
  return isNaN(a) ? !1 : a < t;
919
- }, Bs = Us, Hs = function({ value: s }, t, a) {
919
+ }, Bs = qs, Hs = function({ value: s }, t, a) {
920
920
  if (!isNaN(s) && !isNaN(t) && !isNaN(a)) {
921
921
  const i = 1 * s;
922
922
  t = Number(t), a = Number(a);
@@ -1004,9 +1004,9 @@ var Rs = Wt, Ds = function({ value: e }, s = !1) {
1004
1004
  return Array.isArray(s) ? s.length <= t : Number(s) <= Number(t);
1005
1005
  }, Sr = Vr, Ir = function({ value: s }, t = 1) {
1006
1006
  return Array.isArray(s) ? s.length >= t : Number(s) >= Number(t);
1007
- }, Ar = Ir, Or = function({ value: s }, ...t) {
1007
+ }, Or = Ir, Ar = function({ value: s }, ...t) {
1008
1008
  return !t.some((a) => typeof a == "object" ? R(a, s) : a === s);
1009
- }, Pr = Or, Lr = function({ value: s }) {
1009
+ }, Pr = Ar, Lr = function({ value: s }) {
1010
1010
  return !isNaN(s);
1011
1011
  }, xr = Lr, Zt = function(e, ...s) {
1012
1012
  return D(e.value) ? s.map((a) => {
@@ -1036,13 +1036,13 @@ var Rr = Yt, Dr = function({ value: s }, ...t) {
1036
1036
  } catch {
1037
1037
  return !1;
1038
1038
  }
1039
- }, qr = zr;
1040
- const Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1039
+ }, Ur = zr;
1040
+ const qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1041
1041
  __proto__: null,
1042
1042
  accepted: Rs,
1043
1043
  alpha: Fs,
1044
1044
  alpha_spaces: Ns,
1045
- alphanumeric: qs,
1045
+ alphanumeric: Us,
1046
1046
  between: Ks,
1047
1047
  confirm: Zs,
1048
1048
  contains_alpha: Gs,
@@ -1063,7 +1063,7 @@ const Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1063
1063
  lowercase: kr,
1064
1064
  matches: Cr,
1065
1065
  max: Sr,
1066
- min: Ar,
1066
+ min: Or,
1067
1067
  not: Pr,
1068
1068
  number: xr,
1069
1069
  require_one: Mr,
@@ -1071,7 +1071,7 @@ const Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1071
1071
  starts_with: Er,
1072
1072
  symbol: Fr,
1073
1073
  uppercase: Nr,
1074
- url: qr
1074
+ url: Ur
1075
1075
  }, Symbol.toStringTag, { value: "Module" }));
1076
1076
  var Ze = Z({
1077
1077
  type: "state",
@@ -1091,7 +1091,7 @@ function Br(e = {}) {
1091
1091
  );
1092
1092
  function u(p, f) {
1093
1093
  var b;
1094
- R(Object.keys(a || {}), Object.keys(f || {})) && R(n, p) || (a = B(f), n = B(p), i = { ...e, ...a }, Ut(l.receipts), (b = t.props.parsedRules) == null || b.forEach((w) => {
1094
+ R(Object.keys(a || {}), Object.keys(f || {})) && R(n, p) || (a = B(f), n = B(p), i = { ...e, ...a }, qt(l.receipts), (b = t.props.parsedRules) == null || b.forEach((w) => {
1095
1095
  var P;
1096
1096
  w.messageObserver = (P = w.messageObserver) == null ? void 0 : P.kill();
1097
1097
  }), t.store.filter(() => !1, "validation"), t.props.parsedRules = mt(p, i), l.kill(), l = ve(t), Ye(l, t.props.parsedRules, o));
@@ -1115,7 +1115,7 @@ function Ge(e, s, t, a, i, l) {
1115
1115
  function u(p, f) {
1116
1116
  a.isPassing = a.isPassing && !!f, o.queued = !1;
1117
1117
  const b = t.stopObserve();
1118
- qt(
1118
+ Ut(
1119
1119
  t,
1120
1120
  Ht(o.deps, b),
1121
1121
  function() {
@@ -1380,7 +1380,11 @@ var ii = {
1380
1380
  /*
1381
1381
  * Shown when there is something to close
1382
1382
  */
1383
- close: "Close"
1383
+ close: "Close",
1384
+ /**
1385
+ * Shown when there is something to open.
1386
+ */
1387
+ open: "Open"
1384
1388
  }, li = {
1385
1389
  /**
1386
1390
  * The value is not an accepted value.
@@ -1878,7 +1882,7 @@ var ci = /* @__PURE__ */ m("actions", () => ({
1878
1882
  attrs: {
1879
1883
  id: '$: "help-" + $id'
1880
1884
  }
1881
- })), O = (e, s) => (/* @__PURE__ */ m(`${e}Icon`, () => {
1885
+ })), A = (e, s) => (/* @__PURE__ */ m(`${e}Icon`, () => {
1882
1886
  const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
1883
1887
  return {
1884
1888
  if: `$${e}Icon && $${t}`,
@@ -1975,7 +1979,7 @@ var ci = /* @__PURE__ */ m("actions", () => ({
1975
1979
  type: "submit",
1976
1980
  label: "$submitLabel"
1977
1981
  }
1978
- })), q = /* @__PURE__ */ m("suffix", null), ia = /* @__PURE__ */ m("input", () => ({
1982
+ })), U = /* @__PURE__ */ m("suffix", null), ia = /* @__PURE__ */ m("input", () => ({
1979
1983
  $el: "input",
1980
1984
  bind: "$attrs",
1981
1985
  attrs: {
@@ -2068,7 +2072,7 @@ function Ie(e, s) {
2068
2072
  );
2069
2073
  };
2070
2074
  }
2071
- var Ue = typeof window < "u";
2075
+ var qe = typeof window < "u";
2072
2076
  function na(e) {
2073
2077
  e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
2074
2078
  }
@@ -2076,19 +2080,19 @@ function $t(e, s) {
2076
2080
  s.target instanceof HTMLInputElement ? e === "dragover" && s.target.setAttribute("data-file-hover", "true") : s.preventDefault(), e === "drop" && na(s);
2077
2081
  }
2078
2082
  function Ii(e) {
2079
- Ie("noFiles", "Select file")(e), Ie("removeAll", "Remove all")(e), Ie("remove")(e), e.addProps(["_hasMultipleFiles"]), Ue && (window._FormKit_File_Drop || (window.addEventListener(
2083
+ Ie("noFiles", "Select file")(e), Ie("removeAll", "Remove all")(e), Ie("remove")(e), e.addProps(["_hasMultipleFiles"]), qe && (window._FormKit_File_Drop || (window.addEventListener(
2080
2084
  "dragover",
2081
2085
  $t.bind(null, "dragover")
2082
2086
  ), window.addEventListener("drop", $t.bind(null, "drop")), window.addEventListener("dragleave", na), window._FormKit_File_Drop = !0)), e.hook.input((s, t) => t(Array.isArray(s) ? s : [])), e.on("input", ({ payload: s }) => {
2083
2087
  e.props._hasMultipleFiles = Array.isArray(s) && s.length > 1 ? !0 : void 0;
2084
2088
  }), e.on("reset", () => {
2085
- if (e.props.id && Ue) {
2089
+ if (e.props.id && qe) {
2086
2090
  const s = document.getElementById(e.props.id);
2087
2091
  s && (s.value = "");
2088
2092
  }
2089
2093
  }), e.on("created", () => {
2090
2094
  Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (s) => {
2091
- if (s.preventDefault(), e.input([]), e.props.id && Ue) {
2095
+ if (s.preventDefault(), e.input([]), e.props.id && qe) {
2092
2096
  const t = document.getElementById(e.props.id);
2093
2097
  t && (t.value = ""), t == null || t.focus();
2094
2098
  }
@@ -2111,7 +2115,7 @@ var kt = Z({
2111
2115
  value: !0,
2112
2116
  visible: !1
2113
2117
  });
2114
- async function Ai(e, s) {
2118
+ async function Oi(e, s) {
2115
2119
  const t = Math.random();
2116
2120
  if (e.props._submitNonce = t, s.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(kt), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== t))
2117
2121
  return;
@@ -2151,7 +2155,7 @@ function oa(e) {
2151
2155
  })
2152
2156
  );
2153
2157
  }
2154
- function Oi(e) {
2158
+ function Ai(e) {
2155
2159
  var s;
2156
2160
  e.props.isForm = !0, e.ledger.count("validating", (t) => t.key === "validating"), (s = e.props).submitAttrs ?? (s.submitAttrs = {
2157
2161
  disabled: e.props.disabled
@@ -2159,7 +2163,7 @@ function Oi(e) {
2159
2163
  e.props.submitAttrs = { ...e.props.submitAttrs, disabled: t };
2160
2164
  }), e.on("created", () => {
2161
2165
  var t;
2162
- (t = e.context) != null && t.handlers && (e.context.handlers.submit = Ai.bind(null, e)), $(e.props, "actions") || (e.props.actions = !0);
2166
+ (t = e.context) != null && t.handlers && (e.context.handlers.submit = Oi.bind(null, e)), $(e.props, "actions") || (e.props.actions = !0);
2163
2167
  }), e.on("prop:incompleteMessage", () => {
2164
2168
  e.store.incomplete && oa(e);
2165
2169
  }), e.on("settled:blocking", () => e.store.remove("incomplete"));
@@ -2287,7 +2291,7 @@ function zi(e, s = {}) {
2287
2291
  const t = te(
2288
2292
  ce(
2289
2293
  ge("$label"),
2290
- _e(O("prefix"), z(), e(), q(), O("suffix"))
2294
+ _e(A("prefix"), z(), e(), U(), A("suffix"))
2291
2295
  ),
2292
2296
  N("$help"),
2293
2297
  G(Y("$message.value"))
@@ -2332,11 +2336,11 @@ var Ct = {
2332
2336
  G(Y("$message.value")),
2333
2337
  ce(
2334
2338
  fi(
2335
- O("prefix"),
2339
+ A("prefix"),
2336
2340
  z(),
2337
2341
  di("$label || $ui.submit.value"),
2338
- q(),
2339
- O("suffix")
2342
+ U(),
2343
+ A("suffix")
2340
2344
  )
2341
2345
  ),
2342
2346
  N("$help")
@@ -2363,7 +2367,7 @@ var Ct = {
2363
2367
  * from needing to be stringified when performing a memo lookup.
2364
2368
  */
2365
2369
  schemaMemoKey: "h6st4epl3j8"
2366
- }, qi = {
2370
+ }, Ui = {
2367
2371
  /**
2368
2372
  * The actual schema of the input, or a function that returns the schema.
2369
2373
  */
@@ -2374,7 +2378,7 @@ var Ct = {
2374
2378
  * Single checkbox structure.
2375
2379
  */
2376
2380
  Re(
2377
- xe(z(), Le(), De(O("decorator")), q()),
2381
+ xe(z(), Le(), De(A("decorator")), U()),
2378
2382
  /* @__PURE__ */ ne(Me("$label"), {
2379
2383
  if: "$label"
2380
2384
  })
@@ -2398,8 +2402,8 @@ var Ct = {
2398
2402
  checked: "$fns.isChecked($option.value)"
2399
2403
  }
2400
2404
  }),
2401
- De(O("decorator")),
2402
- q()
2405
+ De(A("decorator")),
2406
+ U()
2403
2407
  ),
2404
2408
  /* @__PURE__ */ ne(Me("$option.label"), {
2405
2409
  if: "$option.label"
@@ -2439,7 +2443,7 @@ var Ct = {
2439
2443
  * The key used to memoize the schema.
2440
2444
  */
2441
2445
  schemaMemoKey: "qje02tb3gu8"
2442
- }, Ui = {
2446
+ }, qi = {
2443
2447
  /**
2444
2448
  * The actual schema of the input, or a function that returns the schema.
2445
2449
  */
@@ -2447,26 +2451,26 @@ var Ct = {
2447
2451
  ce(
2448
2452
  ge("$label"),
2449
2453
  _e(
2450
- O("prefix", "label"),
2454
+ A("prefix", "label"),
2451
2455
  z(),
2452
2456
  mi(),
2453
2457
  yi(
2454
2458
  bi(
2455
- O("fileItem"),
2459
+ A("fileItem"),
2456
2460
  vi("$file.name"),
2457
2461
  /* @__PURE__ */ K(
2458
2462
  "$value.length === 1",
2459
2463
  ht(
2460
- O("fileRemove"),
2464
+ A("fileRemove"),
2461
2465
  '$ui.remove.value + " " + $file.name'
2462
2466
  )
2463
2467
  )
2464
2468
  )
2465
2469
  ),
2466
2470
  /* @__PURE__ */ K("$value.length > 1", ht("$ui.removeAll.value")),
2467
- _i(O("noFiles"), "$ui.noFiles.value"),
2468
- q(),
2469
- O("suffix")
2471
+ _i(A("noFiles"), "$ui.noFiles.value"),
2472
+ U(),
2473
+ A("suffix")
2470
2474
  )
2471
2475
  ),
2472
2476
  N("$help"),
@@ -2525,7 +2529,7 @@ var Ct = {
2525
2529
  /**
2526
2530
  * Additional features that should be added to your input
2527
2531
  */
2528
- features: [Oi, rt],
2532
+ features: [Ai, rt],
2529
2533
  /**
2530
2534
  * The key used to memoize the schema.
2531
2535
  */
@@ -2609,7 +2613,7 @@ var Ct = {
2609
2613
  * Single radio structure.
2610
2614
  */
2611
2615
  Re(
2612
- xe(z(), Le(), De(O("decorator")), q()),
2616
+ xe(z(), Le(), De(A("decorator")), U()),
2613
2617
  /* @__PURE__ */ ne(Me("$label"), {
2614
2618
  if: "$label"
2615
2619
  })
@@ -2633,8 +2637,8 @@ var Ct = {
2633
2637
  checked: "$fns.isChecked($option.value)"
2634
2638
  }
2635
2639
  }),
2636
- De(O("decorator")),
2637
- q()
2640
+ De(A("decorator")),
2641
+ U()
2638
2642
  ),
2639
2643
  /* @__PURE__ */ ne(Me("$option.label"), {
2640
2644
  if: "$option.label"
@@ -2678,7 +2682,7 @@ var Ct = {
2678
2682
  ce(
2679
2683
  ge("$label"),
2680
2684
  _e(
2681
- O("prefix"),
2685
+ A("prefix"),
2682
2686
  z(),
2683
2687
  $i(
2684
2688
  /* @__PURE__ */ K(
@@ -2693,9 +2697,9 @@ var Ct = {
2693
2697
  )
2694
2698
  )
2695
2699
  ),
2696
- /* @__PURE__ */ K("$attrs.multiple !== undefined", () => "", O("select")),
2697
- q(),
2698
- O("suffix")
2700
+ /* @__PURE__ */ K("$attrs.multiple !== undefined", () => "", A("select")),
2701
+ U(),
2702
+ A("suffix")
2699
2703
  )
2700
2704
  ),
2701
2705
  N("$help"),
@@ -2725,11 +2729,11 @@ var Ct = {
2725
2729
  ce(
2726
2730
  ge("$label"),
2727
2731
  _e(
2728
- O("prefix", "label"),
2732
+ A("prefix", "label"),
2729
2733
  z(),
2730
2734
  wi(),
2731
- q(),
2732
- O("suffix")
2735
+ U(),
2736
+ A("suffix")
2733
2737
  )
2734
2738
  ),
2735
2739
  N("$help"),
@@ -2759,11 +2763,11 @@ var Ct = {
2759
2763
  ce(
2760
2764
  ge("$label"),
2761
2765
  _e(
2762
- O("prefix", "label"),
2766
+ A("prefix", "label"),
2763
2767
  z(),
2764
2768
  ia(),
2765
- q(),
2766
- O("suffix")
2769
+ U(),
2770
+ A("suffix")
2767
2771
  )
2768
2772
  ),
2769
2773
  N("$help"),
@@ -2793,8 +2797,8 @@ var Ct = {
2793
2797
  }, Qi = {
2794
2798
  button: Ct,
2795
2799
  submit: Ct,
2796
- checkbox: qi,
2797
- file: Ui,
2800
+ checkbox: Ui,
2801
+ file: qi,
2798
2802
  form: Bi,
2799
2803
  group: Hi,
2800
2804
  hidden: Ki,
@@ -2846,7 +2850,7 @@ function tl(e) {
2846
2850
  if (!(!e || !W || typeof getComputedStyle != "function") && (me = !0, F = document.getElementById("formkit-theme"), e && // if we have a window object
2847
2851
  W && // we don't have an existing theme OR the theme being set up is different
2848
2852
  (!(j != null && j.getPropertyValue("--formkit-theme")) && !F || F != null && F.getAttribute("data-theme") && (F == null ? void 0 : F.getAttribute("data-theme")) !== e))) {
2849
- const t = `https://cdn.jsdelivr.net/npm/@formkit/themes@${Oe.startsWith("__") ? "latest" : Oe}/dist/${e}/theme.css`, a = document.createElement("link");
2853
+ const t = `https://cdn.jsdelivr.net/npm/@formkit/themes@${Ae.startsWith("__") ? "latest" : Ae}/dist/${e}/theme.css`, a = document.createElement("link");
2850
2854
  a.type = "text/css", a.rel = "stylesheet", a.id = "formkit-theme", a.setAttribute("data-theme", e), a.onload = () => {
2851
2855
  j = getComputedStyle(document.documentElement), Ee();
2852
2856
  }, document.head.appendChild(a), a.href = t, F && F.remove();
@@ -2886,7 +2890,7 @@ function St(e) {
2886
2890
  }
2887
2891
  }
2888
2892
  function sl(e, s) {
2889
- const t = Oe.startsWith("__") ? "latest" : Oe, a = typeof s == "function" ? s(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
2893
+ const t = Ae.startsWith("__") ? "latest" : Ae, a = typeof s == "function" ? s(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
2890
2894
  if (W)
2891
2895
  return fetch(`${a}`).then(async (i) => {
2892
2896
  const l = await i.text();
@@ -2944,7 +2948,7 @@ var It = {
2944
2948
  */
2945
2949
  600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
2946
2950
  601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
2947
- }, At = {
2951
+ }, Ot = {
2948
2952
  /**
2949
2953
  * Core warnings:
2950
2954
  */
@@ -2973,13 +2977,13 @@ var It = {
2973
2977
  e.message = typeof t == "function" ? t(e) : t;
2974
2978
  }
2975
2979
  return s(e);
2976
- }, Ot = !1;
2980
+ }, At = !1;
2977
2981
  function ol() {
2978
- Ot || (Xe(nl), et(ul), Ot = !0);
2982
+ At || (Xe(nl), et(ul), At = !0);
2979
2983
  }
2980
2984
  var ul = (e, s) => {
2981
- if (e.code in At) {
2982
- const t = At[e.code];
2985
+ if (e.code in Ot) {
2986
+ const t = Ot[e.code];
2983
2987
  e.message = typeof t == "function" ? t(e) : t;
2984
2988
  }
2985
2989
  return s(e);
@@ -3036,7 +3040,7 @@ var ul = (e, s) => {
3036
3040
  s.on("prop:parsedRules", ({ payload: c }) => {
3037
3041
  P.value = Array.isArray(c) && c.length > 0;
3038
3042
  });
3039
- const U = d(() => {
3043
+ const q = d(() => {
3040
3044
  const c = {};
3041
3045
  for (const k in l) {
3042
3046
  const y = l[k];
@@ -3078,7 +3082,7 @@ var ul = (e, s) => {
3078
3082
  const _a = d(() => {
3079
3083
  const c = [];
3080
3084
  C.help && c.push(`help-${s.props.id}`);
3081
- for (const k in U.value)
3085
+ for (const k in q.value)
3082
3086
  c.push(`${s.props.id}-${k}`);
3083
3087
  return c.length ? c.join(" ") : void 0;
3084
3088
  }), ae = T(s.value), J = T(s.value), C = $e({
@@ -3117,7 +3121,7 @@ var ul = (e, s) => {
3117
3121
  id: s.props.id,
3118
3122
  items: f,
3119
3123
  label: s.props.label,
3120
- messages: U,
3124
+ messages: q,
3121
3125
  didMount: !1,
3122
3126
  node: Lt(s),
3123
3127
  options: s.props.options,
@@ -3236,14 +3240,14 @@ var va, ml = ma({
3236
3240
  icons: p = {},
3237
3241
  ...f
3238
3242
  } = e, b = Br({
3239
- ...Ur,
3243
+ ...qr,
3240
3244
  ...s || {}
3241
3245
  }), w = oi(
3242
3246
  X({ en: ni, ...t || {} }, i)
3243
- ), P = ui(Qi, a), U = el(o, p, n, u);
3247
+ ), P = ui(Qi, a), q = el(o, p, n, u);
3244
3248
  return X(
3245
3249
  {
3246
- plugins: [P, U, ba, w, b],
3250
+ plugins: [P, q, ba, w, b],
3247
3251
  ...l ? { config: { locale: l } } : {}
3248
3252
  },
3249
3253
  f || {},
@@ -3255,7 +3259,7 @@ var va, ml = ma({
3255
3259
  function yl(e) {
3256
3260
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
3257
3261
  }
3258
- function A(e, s = {}, t = {}) {
3262
+ function O(e, s = {}, t = {}) {
3259
3263
  const a = {
3260
3264
  type: "input",
3261
3265
  ...s
@@ -3345,7 +3349,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3345
3349
  }), (n, u) => {
3346
3350
  var f;
3347
3351
  const p = S("AutoComplete");
3348
- return _(), g("div", Vl, [
3352
+ return h(), _("div", Vl, [
3349
3353
  I(p, {
3350
3354
  id: r(t).id,
3351
3355
  modelValue: r(t)._value,
@@ -3366,7 +3370,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3366
3370
  ]);
3367
3371
  };
3368
3372
  }
3369
- }), Il = { class: "p-formkit" }, Al = /* @__PURE__ */ V({
3373
+ }), Il = { class: "p-formkit" }, Ol = /* @__PURE__ */ V({
3370
3374
  __name: "PrimeCalendar",
3371
3375
  props: {
3372
3376
  context: Object
@@ -3391,7 +3395,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3391
3395
  });
3392
3396
  return (p, f) => {
3393
3397
  const b = S("Calendar");
3394
- return _(), g("div", Il, [
3398
+ return h(), _("div", Il, [
3395
3399
  I(b, {
3396
3400
  modelValue: r(t)._value,
3397
3401
  "onUpdate:modelValue": f[0] || (f[0] = (w) => r(t)._value = w),
@@ -3455,7 +3459,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3455
3459
  ]);
3456
3460
  };
3457
3461
  }
3458
- }), Ol = { class: "p-formkit" }, Pl = /* @__PURE__ */ V({
3462
+ }), Al = { class: "p-formkit" }, Pl = /* @__PURE__ */ V({
3459
3463
  __name: "PrimeCascadeSelect",
3460
3464
  props: {
3461
3465
  context: Object
@@ -3473,7 +3477,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3473
3477
  return (o, n) => {
3474
3478
  var p;
3475
3479
  const u = S("CascadeSelect");
3476
- return _(), g("div", Ol, [
3480
+ return h(), _("div", Al, [
3477
3481
  I(u, {
3478
3482
  id: r(t).id,
3479
3483
  modelValue: r(t)._value,
@@ -3522,8 +3526,8 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3522
3526
  });
3523
3527
  return (o, n) => {
3524
3528
  const u = S("Checkbox");
3525
- return _(), g("div", Ll, [
3526
- r(t).attrs.labelLeft ? (_(), g("span", xl, se(r(t).attrs.labelLeft), 1)) : Q("", !0),
3529
+ return h(), _("div", Ll, [
3530
+ r(t).attrs.labelLeft ? (h(), _("span", xl, se(r(t).attrs.labelLeft), 1)) : Q("", !0),
3527
3531
  I(u, {
3528
3532
  modelValue: r(t)._value,
3529
3533
  "onUpdate:modelValue": n[0] || (n[0] = (p) => r(t)._value = p),
@@ -3543,7 +3547,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3543
3547
  unstyled: r(a).unstyled ?? !1,
3544
3548
  onChange: i
3545
3549
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value", "pt", "pt-options", "unstyled"]),
3546
- r(t).attrs.labelRight ? (_(), g("span", Ml, se(r(t).attrs.labelRight), 1)) : Q("", !0)
3550
+ r(t).attrs.labelRight ? (h(), _("span", Ml, se(r(t).attrs.labelRight), 1)) : Q("", !0)
3547
3551
  ]);
3548
3552
  };
3549
3553
  }
@@ -3564,7 +3568,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3564
3568
  });
3565
3569
  return (o, n) => {
3566
3570
  const u = S("Chips");
3567
- return _(), g("div", Dl, [
3571
+ return h(), _("div", Dl, [
3568
3572
  I(u, {
3569
3573
  modelValue: r(t)._value,
3570
3574
  "onUpdate:modelValue": n[0] || (n[0] = (p) => r(t)._value = p),
@@ -3603,7 +3607,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3603
3607
  }
3604
3608
  return (l, o) => {
3605
3609
  const n = S("ColorPicker");
3606
- return _(), g("div", jl, [
3610
+ return h(), _("div", jl, [
3607
3611
  I(n, {
3608
3612
  modelValue: r(t)._value,
3609
3613
  "onUpdate:modelValue": o[0] || (o[0] = (u) => r(t)._value = u),
@@ -3644,7 +3648,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3644
3648
  });
3645
3649
  return (n, u) => {
3646
3650
  const p = S("Dropdown");
3647
- return _(), g("div", Tl, [
3651
+ return h(), _("div", Tl, [
3648
3652
  I(p, {
3649
3653
  modelValue: r(t)._value,
3650
3654
  "onUpdate:modelValue": u[0] || (u[0] = (f) => r(t)._value = f),
@@ -3698,7 +3702,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3698
3702
  ]);
3699
3703
  };
3700
3704
  }
3701
- }), zl = { class: "p-formkit" }, ql = /* @__PURE__ */ V({
3705
+ }), zl = { class: "p-formkit" }, Ul = /* @__PURE__ */ V({
3702
3706
  __name: "PrimeEditor",
3703
3707
  props: {
3704
3708
  context: Object
@@ -3717,7 +3721,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3717
3721
  });
3718
3722
  return (n, u) => {
3719
3723
  const p = S("Editor");
3720
- return _(), g("div", zl, [
3724
+ return h(), _("div", zl, [
3721
3725
  I(p, {
3722
3726
  id: r(t).id,
3723
3727
  modelValue: r(t)._value,
@@ -3741,7 +3745,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3741
3745
  ]);
3742
3746
  };
3743
3747
  }
3744
- }), Ul = { class: "p-formkit" }, Bl = /* @__PURE__ */ V({
3748
+ }), ql = { class: "p-formkit" }, Bl = /* @__PURE__ */ V({
3745
3749
  __name: "PrimeInputMask",
3746
3750
  props: {
3747
3751
  context: Object
@@ -3758,7 +3762,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3758
3762
  });
3759
3763
  return (o, n) => {
3760
3764
  const u = S("InputMask");
3761
- return _(), g("div", Ul, [
3765
+ return h(), _("div", ql, [
3762
3766
  I(u, {
3763
3767
  id: r(t).id,
3764
3768
  modelValue: r(t)._value,
@@ -3802,7 +3806,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3802
3806
  });
3803
3807
  return (n, u) => {
3804
3808
  const p = S("InputNumber");
3805
- return _(), g("div", Hl, [
3809
+ return h(), _("div", Hl, [
3806
3810
  I(p, {
3807
3811
  modelValue: r(t)._value,
3808
3812
  "onUpdate:modelValue": u[0] || (u[0] = (f) => r(t)._value = f),
@@ -3860,10 +3864,10 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3860
3864
  });
3861
3865
  return (o, n) => {
3862
3866
  const u = S("InputSwitch");
3863
- return _(), g("div", {
3867
+ return h(), _("div", {
3864
3868
  class: L([r(a).option_class, "p-formkit"])
3865
3869
  }, [
3866
- r(t).attrs.labelLeft ? (_(), g("span", Wl, se(r(t).attrs.labelLeft), 1)) : Q("", !0),
3870
+ r(t).attrs.labelLeft ? (h(), _("span", Wl, se(r(t).attrs.labelLeft), 1)) : Q("", !0),
3867
3871
  I(u, {
3868
3872
  modelValue: r(t)._value,
3869
3873
  "onUpdate:modelValue": n[0] || (n[0] = (p) => r(t)._value = p),
@@ -3882,7 +3886,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3882
3886
  unstyled: r(a).unstyled ?? !1,
3883
3887
  onChange: i
3884
3888
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value", "pt", "pt-options", "unstyled"]),
3885
- r(t).attrs.labelRight ? (_(), g("span", Zl, se(r(t).attrs.labelRight), 1)) : Q("", !0)
3889
+ r(t).attrs.labelRight ? (h(), _("span", Zl, se(r(t).attrs.labelRight), 1)) : Q("", !0)
3886
3890
  ], 2);
3887
3891
  };
3888
3892
  }
@@ -3914,13 +3918,13 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3914
3918
  return t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${(f = a.value) == null ? void 0 : f.class} p-invalid` : (b = a.value) == null ? void 0 : b.class;
3915
3919
  });
3916
3920
  return (f, b) => {
3917
- var P, U;
3921
+ var P, q;
3918
3922
  const w = S("InputText");
3919
- return _(), g("div", Gl, [
3923
+ return h(), _("div", Gl, [
3920
3924
  xt("span", {
3921
3925
  class: L(o())
3922
3926
  }, [
3923
- i() ? (_(), g("i", {
3927
+ i() ? (h(), _("i", {
3924
3928
  key: 0,
3925
3929
  class: L((P = r(t)) == null ? void 0 : P.iconLeft)
3926
3930
  }, null, 2)) : Q("", !0),
@@ -3942,9 +3946,9 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3942
3946
  onInput: u,
3943
3947
  onBlur: n
3944
3948
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder", "pt", "pt-options", "unstyled"]),
3945
- l() ? (_(), g("i", {
3949
+ l() ? (h(), _("i", {
3946
3950
  key: 1,
3947
- class: L((U = r(t)) == null ? void 0 : U.iconRight)
3951
+ class: L((q = r(t)) == null ? void 0 : q.iconRight)
3948
3952
  }, null, 2)) : Q("", !0)
3949
3953
  ], 2)
3950
3954
  ]);
@@ -3969,7 +3973,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
3969
3973
  });
3970
3974
  return (n, u) => {
3971
3975
  const p = S("Textarea");
3972
- return _(), g("div", Ql, [
3976
+ return h(), _("div", Ql, [
3973
3977
  I(p, {
3974
3978
  id: r(t).id,
3975
3979
  modelValue: r(t)._value,
@@ -4012,7 +4016,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4012
4016
  });
4013
4017
  return (n, u) => {
4014
4018
  const p = S("Knob");
4015
- return _(), g("div", en, [
4019
+ return h(), _("div", en, [
4016
4020
  I(p, {
4017
4021
  id: r(t).id,
4018
4022
  modelValue: r(t)._value,
@@ -4062,7 +4066,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4062
4066
  });
4063
4067
  return (o, n) => {
4064
4068
  const u = S("MultiSelect");
4065
- return _(), g("div", an, [
4069
+ return h(), _("div", an, [
4066
4070
  I(u, {
4067
4071
  modelValue: r(t)._value,
4068
4072
  "onUpdate:modelValue": n[0] || (n[0] = (p) => r(t)._value = p),
@@ -4133,7 +4137,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4133
4137
  return (o, n) => {
4134
4138
  var p;
4135
4139
  const u = S("Listbox");
4136
- return _(), g("div", rn, [
4140
+ return h(), _("div", rn, [
4137
4141
  I(u, {
4138
4142
  id: r(t).id,
4139
4143
  modelValue: r(t)._value,
@@ -4183,7 +4187,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4183
4187
  });
4184
4188
  return (n, u) => {
4185
4189
  const p = S("Password");
4186
- return _(), g("div", nn, [
4190
+ return h(), _("div", nn, [
4187
4191
  I(p, {
4188
4192
  modelValue: r(t)._value,
4189
4193
  "onUpdate:modelValue": u[0] || (u[0] = (f) => r(t)._value = f),
@@ -4232,10 +4236,10 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4232
4236
  });
4233
4237
  return (o, n) => {
4234
4238
  const u = S("RadioButton");
4235
- return _(), g("div", {
4239
+ return h(), _("div", {
4236
4240
  class: L([r(a).options_class, "p-formkit"])
4237
4241
  }, [
4238
- (_(!0), g(Ia, null, Aa(r(a).options, (p) => (_(), g("div", {
4242
+ (h(!0), _(Ia, null, Oa(r(a).options, (p) => (h(), _("div", {
4239
4243
  key: p.value,
4240
4244
  class: L(r(a).option_class)
4241
4245
  }, [
@@ -4276,7 +4280,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4276
4280
  });
4277
4281
  return (o, n) => {
4278
4282
  const u = S("Rating");
4279
- return _(), g("div", cn, [
4283
+ return h(), _("div", cn, [
4280
4284
  I(u, {
4281
4285
  id: r(t).id,
4282
4286
  modelValue: r(t)._value,
@@ -4317,7 +4321,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4317
4321
  });
4318
4322
  return (o, n) => {
4319
4323
  const u = S("Slider");
4320
- return _(), g("div", dn, [
4324
+ return h(), _("div", dn, [
4321
4325
  I(u, {
4322
4326
  id: r(t).id,
4323
4327
  modelValue: r(t)._value,
@@ -4359,7 +4363,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4359
4363
  });
4360
4364
  return (o, n) => {
4361
4365
  const u = S("ToggleButton");
4362
- return _(), g("div", bn, [
4366
+ return h(), _("div", bn, [
4363
4367
  I(u, {
4364
4368
  modelValue: r(t)._value,
4365
4369
  "onUpdate:modelValue": n[0] || (n[0] = (p) => r(t)._value = p),
@@ -4385,6 +4389,47 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4385
4389
  };
4386
4390
  }
4387
4391
  }), vn = { class: "p-formkit" }, hn = /* @__PURE__ */ V({
4392
+ __name: "PrimeTreeSelect",
4393
+ props: {
4394
+ context: Object
4395
+ },
4396
+ setup(e) {
4397
+ const s = e, t = s.context, a = d(() => t == null ? void 0 : t.attrs);
4398
+ function i(o) {
4399
+ var n;
4400
+ t == null || t.node.input((n = s.context) == null ? void 0 : n._value);
4401
+ }
4402
+ const l = d(() => {
4403
+ var o, n;
4404
+ return t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${(o = a.value) == null ? void 0 : o.class} p-invalid` : (n = a.value) == null ? void 0 : n.class;
4405
+ });
4406
+ return (o, n) => {
4407
+ var p;
4408
+ const u = S("TreeSelect");
4409
+ return h(), _("div", vn, [
4410
+ I(u, {
4411
+ modelValue: r(t)._value,
4412
+ "onUpdate:modelValue": n[0] || (n[0] = (f) => r(t)._value = f),
4413
+ "input-id": r(t).id,
4414
+ disabled: r(a)._disabled ?? !1,
4415
+ readonly: r(a)._readonly ?? !1,
4416
+ "input-style": r(a).style,
4417
+ "input-class": r(l),
4418
+ tabindex: r(a).tabindex,
4419
+ "aria-label": r(a).ariaLabel,
4420
+ "aria-labelledby": r(a).ariaLabelledby,
4421
+ options: (p = r(a)) == null ? void 0 : p.options,
4422
+ placeholder: r(a).placeholder,
4423
+ "selection-mode": r(a).selectionMode,
4424
+ pt: r(a).pt,
4425
+ "pt-options": r(a).ptOptions,
4426
+ unstyled: r(a).unstyled ?? !1,
4427
+ onChange: i
4428
+ }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "options", "placeholder", "selection-mode", "pt", "pt-options", "unstyled"])
4429
+ ]);
4430
+ };
4431
+ }
4432
+ }), _n = { class: "p-formkit" }, gn = /* @__PURE__ */ V({
4388
4433
  __name: "PrimeSelectButton",
4389
4434
  props: {
4390
4435
  context: Object
@@ -4401,7 +4446,7 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4401
4446
  });
4402
4447
  return (o, n) => {
4403
4448
  const u = S("SelectButton");
4404
- return _(), g("div", vn, [
4449
+ return h(), _("div", _n, [
4405
4450
  I(u, {
4406
4451
  id: r(t).id,
4407
4452
  modelValue: r(t)._value,
@@ -4428,13 +4473,13 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4428
4473
  ]);
4429
4474
  };
4430
4475
  }
4431
- }), _n = { class: "p-formkit" }, gn = {
4476
+ }), $n = { class: "p-formkit" }, kn = {
4432
4477
  key: 0,
4433
4478
  class: "formkit-prime-left"
4434
- }, $n = {
4479
+ }, wn = {
4435
4480
  key: 1,
4436
4481
  class: "formkit-prime-right"
4437
- }, kn = /* @__PURE__ */ V({
4482
+ }, Cn = /* @__PURE__ */ V({
4438
4483
  __name: "PrimeTriStateCheckbox",
4439
4484
  props: {
4440
4485
  context: Object
@@ -4451,8 +4496,8 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4451
4496
  });
4452
4497
  return (o, n) => {
4453
4498
  const u = S("TriStateCheckbox");
4454
- return _(), g("div", _n, [
4455
- r(t).attrs.labelLeft ? (_(), g("span", gn, se(r(t).attrs.labelLeft), 1)) : Q("", !0),
4499
+ return h(), _("div", $n, [
4500
+ r(t).attrs.labelLeft ? (h(), _("span", kn, se(r(t).attrs.labelLeft), 1)) : Q("", !0),
4456
4501
  I(u, {
4457
4502
  modelValue: r(t)._value,
4458
4503
  "onUpdate:modelValue": n[0] || (n[0] = (p) => r(t)._value = p),
@@ -4469,104 +4514,108 @@ const Vl = { class: "p-formkit" }, Sl = /* @__PURE__ */ V({
4469
4514
  unstyled: r(a).unstyled ?? !1,
4470
4515
  onChange: i
4471
4516
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "pt", "pt-options", "unstyled"]),
4472
- r(t).attrs.labelRight ? (_(), g("span", $n, se(r(t).attrs.labelRight), 1)) : Q("", !0)
4517
+ r(t).attrs.labelRight ? (h(), _("span", wn, se(r(t).attrs.labelRight), 1)) : Q("", !0)
4473
4518
  ]);
4474
4519
  };
4475
4520
  }
4476
- }), wn = A(Sl, {
4521
+ }), Vn = O(Sl, {
4477
4522
  props: []
4478
- }), Cn = A(Jl, {
4523
+ }), Sn = O(Jl, {
4479
4524
  props: ["iconRight", "iconLeft"]
4480
- }), Vn = A(Kl, {
4525
+ }), In = O(Kl, {
4481
4526
  props: ["iconRight", "iconLeft"]
4482
- }), Sn = A(Bl, {
4527
+ }), On = O(Bl, {
4483
4528
  props: []
4484
- }), In = A(on, {
4529
+ }), An = O(on, {
4485
4530
  props: ["feedback", "toggleMask"]
4486
- }), An = A(Xl, {
4531
+ }), Pn = O(Xl, {
4487
4532
  props: ["rows"]
4488
- }), On = A(Rl, {
4533
+ }), Ln = O(Rl, {
4534
+ props: []
4535
+ }), xn = O(Yl, {
4489
4536
  props: []
4490
- }), Pn = A(Yl, {
4537
+ }), Mn = O(Ul, {
4491
4538
  props: []
4492
- }), Ln = A(ql, {
4539
+ }), Rn = O(Nl, {
4493
4540
  props: []
4494
- }), xn = A(Nl, {
4541
+ }), Dn = O(sn, {
4495
4542
  props: []
4496
- }), Mn = A(sn, {
4543
+ }), En = O(ln, {
4497
4544
  props: []
4498
- }), Rn = A(ln, {
4545
+ }), jn = O(Ol, {
4499
4546
  props: []
4500
- }), Dn = A(Al, {
4547
+ }), Fn = O(mn, {
4501
4548
  props: []
4502
- }), En = A(mn, {
4549
+ }), Tn = O(fn, {
4503
4550
  props: []
4504
- }), jn = A(fn, {
4551
+ }), Nn = O(pn, {
4505
4552
  props: []
4506
- }), Fn = A(pn, {
4553
+ }), zn = O(El, {
4507
4554
  props: []
4508
- }), Tn = A(El, {
4555
+ }), Un = O(tn, {
4509
4556
  props: []
4510
- }), Nn = A(tn, {
4557
+ }), qn = O(Fl, {
4511
4558
  props: []
4512
- }), zn = A(Fl, {
4559
+ }), Bn = O(yn, {
4513
4560
  props: []
4514
- }), qn = A(yn, {
4561
+ }), Hn = O(gn, {
4515
4562
  props: []
4516
- }), Un = A(hn, {
4563
+ }), Kn = O(Cn, {
4517
4564
  props: []
4518
- }), Bn = A(kn, {
4565
+ }), Wn = O(Pl, {
4519
4566
  props: []
4520
- }), Hn = A(Pl, {
4567
+ }), Zn = O(hn, {
4521
4568
  props: []
4522
- }), Yn = {
4523
- primeAutoComplete: wn,
4524
- primeInputText: Cn,
4525
- primeInputNumber: Vn,
4526
- primeInputMask: Sn,
4527
- primePassword: In,
4528
- primeCheckbox: On,
4529
- primeInputSwitch: Pn,
4530
- primeTextarea: An,
4531
- primeEditor: Ln,
4532
- primeDropdown: xn,
4533
- primeMultiSelect: Mn,
4534
- primeCalendar: Dn,
4535
- primeSlider: En,
4536
- primeChips: Tn,
4537
- primeKnob: Nn,
4538
- primeRating: jn,
4539
- primeRadioButton: Fn,
4540
- primeColorPicker: zn,
4541
- primeToggleButton: qn,
4542
- primeListbox: Rn,
4543
- primeSelectButton: Un,
4544
- primeTriStateCheckbox: Bn,
4545
- primeCascadeSelect: Hn
4569
+ }), Qn = {
4570
+ primeAutoComplete: Vn,
4571
+ primeInputText: Sn,
4572
+ primeInputNumber: In,
4573
+ primeInputMask: On,
4574
+ primePassword: An,
4575
+ primeCheckbox: Ln,
4576
+ primeInputSwitch: xn,
4577
+ primeTextarea: Pn,
4578
+ primeEditor: Mn,
4579
+ primeDropdown: Rn,
4580
+ primeMultiSelect: Dn,
4581
+ primeCalendar: jn,
4582
+ primeSlider: Fn,
4583
+ primeChips: zn,
4584
+ primeKnob: Un,
4585
+ primeRating: Tn,
4586
+ primeRadioButton: Nn,
4587
+ primeColorPicker: qn,
4588
+ primeToggleButton: Bn,
4589
+ primeListbox: En,
4590
+ primeSelectButton: Hn,
4591
+ primeTriStateCheckbox: Kn,
4592
+ primeCascadeSelect: Wn,
4593
+ primeTreeSelect: Zn
4546
4594
  };
4547
4595
  export {
4548
- wn as primeAutoCompleteDefinition,
4549
- Dn as primeCalendarDefinition,
4550
- Hn as primeCascadeSelectDefinition,
4551
- On as primeCheckboxDefinition,
4552
- Tn as primeChipsDefinition,
4553
- zn as primeColorPickerDefinition,
4554
- xn as primeDropdownDefinition,
4555
- Ln as primeEditorDefinition,
4556
- Sn as primeInputMaskDefinition,
4557
- Vn as primeInputNumberDefinition,
4558
- Pn as primeInputSwitchDefinition,
4559
- Cn as primeInputTextDefinition,
4560
- Yn as primeInputs,
4561
- Nn as primeKnobDefinition,
4562
- Rn as primeListboxDefinition,
4563
- Mn as primeMultiSelectDefinition,
4564
- In as primePasswordDefinition,
4565
- Fn as primeRadioButtonDefinition,
4566
- jn as primeRatingDefinition,
4567
- Un as primeSelectButtonDefinition,
4568
- En as primeSliderDefinition,
4569
- An as primeTextareaDefinition,
4570
- qn as primeToggleButtonDefinition,
4571
- Bn as primeTriStateCheckboxDefinition
4596
+ Vn as primeAutoCompleteDefinition,
4597
+ jn as primeCalendarDefinition,
4598
+ Wn as primeCascadeSelectDefinition,
4599
+ Ln as primeCheckboxDefinition,
4600
+ zn as primeChipsDefinition,
4601
+ qn as primeColorPickerDefinition,
4602
+ Rn as primeDropdownDefinition,
4603
+ Mn as primeEditorDefinition,
4604
+ On as primeInputMaskDefinition,
4605
+ In as primeInputNumberDefinition,
4606
+ xn as primeInputSwitchDefinition,
4607
+ Sn as primeInputTextDefinition,
4608
+ Qn as primeInputs,
4609
+ Un as primeKnobDefinition,
4610
+ En as primeListboxDefinition,
4611
+ Dn as primeMultiSelectDefinition,
4612
+ An as primePasswordDefinition,
4613
+ Nn as primeRadioButtonDefinition,
4614
+ Tn as primeRatingDefinition,
4615
+ Hn as primeSelectButtonDefinition,
4616
+ Fn as primeSliderDefinition,
4617
+ Pn as primeTextareaDefinition,
4618
+ Bn as primeToggleButtonDefinition,
4619
+ Zn as primeTreeSelectDefinition,
4620
+ Kn as primeTriStateCheckboxDefinition
4572
4621
  };