opsfuse-ui 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/opsfuse-components/SKILL.md +47 -1
- package/.claude/skills/opsfuse-setup/SKILL.md +2 -1
- package/.claude/skills/opsfuse-ui-consistency/SKILL.md +10 -1
- package/README.md +5 -0
- package/dist/core.js +2 -2
- package/dist/date-fns-BNhPf8zY.js +3871 -0
- package/dist/date-fns-locale.d.ts +2 -0
- package/dist/date-fns-locale.d.ts.map +1 -0
- package/dist/date-fns-locale.js +39648 -0
- package/dist/date-fns.d.ts +2 -0
- package/dist/date-fns.d.ts.map +1 -0
- package/dist/date-fns.js +3 -0
- package/dist/{es6-D-3xKXBT.js → es6-DckNYvTU.js} +1 -1
- package/dist/extended.js +2 -2
- package/dist/icons.js +1 -1
- package/dist/index.js +150 -149
- package/dist/{input-group-DIfVGMYe.js → input-group-8e8jjdvl.js} +2 -2
- package/dist/{input-otp-DwLGFwVo.js → input-otp-Cy2f60X3.js} +2902 -4223
- package/dist/isSameWeek-BUR9Q_Qt.js +537 -0
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/recharts.js +1 -1
- package/dist/{toggle-group-D21Ul2kd.js → toggle-group-D2isQKZo.js} +2 -2
- package/package.json +11 -1
- /package/dist/{clsx-D7D_XZ_-.js → clsx-BD2qMUU1.js} +0 -0
- /package/dist/{lucide-react-DLVJK_zM.js → lucide-react-BST2iBrS.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, F as i, I as a, M as o, N as s, O as c, P as l, S as u, Ut as d, _ as f, a as p, b as ee, c as m, d as h, f as g, g as te, h as _, i as v, k as ne, l as re, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, x as pe, y as me } from "./input-group-
|
|
2
|
-
import {
|
|
3
|
-
import { t as _e } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { $ as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
1
|
+
import { A as e, C as t, D as n, E as r, F as i, I as a, M as o, N as s, O as c, P as l, S as u, Ut as d, _ as f, a as p, b as ee, c as m, d as h, f as g, g as te, h as _, i as v, k as ne, l as re, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, x as pe, y as me } from "./input-group-8e8jjdvl.js";
|
|
2
|
+
import { t as he } from "./date-fns-BNhPf8zY.js";
|
|
3
|
+
import { gT as ge, t as _e } from "./lucide-react-BST2iBrS.js";
|
|
4
|
+
import { t as ve } from "./es6-DckNYvTU.js";
|
|
5
|
+
import { $ as ye, $n as be, $r as xe, $t as Se, A as Ce, An as we, Ar as Te, At as Ee, B as De, Bn as Oe, Br as ke, Bt as Ae, C as je, Cn as Me, Cr as Ne, Ct as Pe, D as Fe, Dn as Ie, Dr as Le, Dt as Re, E as ze, En as Be, Er as Ve, Et as He, F as Ue, Fn as We, Fr as Ge, Ft as Ke, G as qe, Gn as Je, Gr as Ye, Gt as Xe, H as Ze, Hn as Qe, Hr as $e, Ht as et, I as tt, In as nt, Ir as rt, It as it, J as at, Jn as ot, Jr as st, Jt as ct, K as lt, Kn as ut, Kr as dt, Kt as ft, L as pt, Ln as mt, Lr as ht, Lt as gt, M as _t, Mn as vt, Mr as yt, Mt as bt, N as xt, Nn as St, Nr as Ct, Nt as wt, O as Tt, On as Et, Or as Dt, Ot, P as kt, Pn as At, Pr as jt, Pt as Mt, Q as Nt, Qn as Pt, Qr as Ft, Qt as It, R as Lt, Rn as Rt, Rr as zt, Rt as Bt, S as Vt, Sn as Ht, Sr as Ut, St as Wt, T as Gt, Tn as Kt, Tr as qt, Tt as Jt, U as Yt, Un as Xt, Ur as Zt, Ut as Qt, V as $t, Vn as en, Vr as tn, Vt as nn, W as rn, Wn as an, Wr as on, Wt as sn, X as cn, Xn as ln, Xr as un, Xt as dn, Y as fn, Yn as pn, Yr as mn, Yt as hn, Z as gn, Zn as _n, Zr as vn, Zt as yn, _ as bn, _n as xn, _r as Sn, _t as Cn, a as wn, ai as Tn, an as En, ar as Dn, at as On, b as kn, bn as An, br as jn, bt as Mn, c as Nn, ci as Pn, cn as Fn, cr as In, ct as Ln, d as Rn, dn as zn, dr as Bn, dt as Vn, ei as Hn, en as Un, er as Wn, et as Gn, f as Kn, fn as qn, fr as Jn, ft as Yn, g as Xn, gn as Zn, gr as Qn, gt as $n, h as er, hn as tr, hr as nr, ht as rr, i as ir, ii as ar, in as or, ir as sr, it as cr, j as lr, jn as ur, jr as dr, jt as fr, k as pr, kn as mr, kr as hr, kt as gr, l as _r, li as vr, ln as yr, lr as br, lt as xr, m as Sr, mn as Cr, mr as wr, mt as Tr, n as Er, ni as Dr, nn as Or, nr as kr, nt as Ar, o as jr, oi as Mr, on as Nr, or as Pr, ot as Fr, p as Ir, pn as Lr, pr as Rr, pt as zr, q as Br, qn as Vr, qr as Hr, qt as Ur, r as Wr, ri as Gr, rn as Kr, rr as qr, rt as Jr, s as Yr, si as Xr, sn as Zr, sr as Qr, st as $r, t as ei, ti, tn as ni, tr as ri, tt as ii, u as ai, ui as oi, un as si, ur as ci, ut as li, v as ui, vn as di, vr as fi, vt as pi, w as mi, wn as hi, wr as gi, wt as _i, x as vi, xn as yi, xr as bi, xt as xi, y as Si, yn as Ci, yr as wi, yt as Ti, z as Ei, zn as Di, zr as Oi, zt as ki } from "./toggle-group-D2isQKZo.js";
|
|
6
|
+
import { $ as Ai, A as ji, B as Mi, C as Ni, D as Pi, E as Fi, F as Ii, G as Li, H as Ri, I as zi, J as Bi, K as Vi, L as Hi, M as Ui, N as Wi, O as Gi, P as Ki, Q as qi, R as Ji, S as Yi, T as Xi, U as Zi, V as Qi, W as $i, X as ea, Y as ta, Z as na, _ as ra, a as ia, b as aa, c as oa, d as sa, et as ca, f as la, g as ua, h as da, i as fa, j as pa, k as ma, l as ha, m as ga, n as _a, o as va, p as ya, q as ba, r as xa, s as Sa, t as Ca, tt as wa, u as Ta, v as Ea, w as Da, x as Oa, y as ka, z as Aa } from "./input-otp-Cy2f60X3.js";
|
|
7
|
+
import * as ja from "react";
|
|
8
|
+
import { createContext as Ma, useCallback as Na, useContext as Pa, useEffect as Fa, useLayoutEffect as Ia, useMemo as y, useRef as La, useState as b } from "react";
|
|
9
|
+
import { useSyncExternalStoreWithSelector as Ra } from "use-sync-external-store/shim/with-selector";
|
|
9
10
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
10
11
|
//#region src/components/ui/autocomplete.tsx
|
|
11
|
-
function
|
|
12
|
-
let u =
|
|
12
|
+
function za({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyMessage: r = "No items found.", disabled: i = !1, triggerWidth: a = "w-64", label: o, multiple: s, ...c }) {
|
|
13
|
+
let u = wa();
|
|
13
14
|
return /* @__PURE__ */ C("div", {
|
|
14
15
|
className: "flex flex-col gap-2",
|
|
15
|
-
children: [o && /* @__PURE__ */ S(re, { children: o }), /* @__PURE__ */ C(
|
|
16
|
+
children: [o && /* @__PURE__ */ S(re, { children: o }), /* @__PURE__ */ C(Aa, {
|
|
16
17
|
items: e,
|
|
17
18
|
multiple: s,
|
|
18
19
|
disabled: i,
|
|
19
20
|
...c,
|
|
20
|
-
children: [s ? /* @__PURE__ */ C(
|
|
21
|
+
children: [s ? /* @__PURE__ */ C(Qi, {
|
|
21
22
|
ref: u,
|
|
22
23
|
className: a,
|
|
23
24
|
children: [n ? /* @__PURE__ */ S("span", {
|
|
24
25
|
"data-icon": "inline-start",
|
|
25
26
|
className: "contents text-muted-foreground [&>svg:not([class*='size-'])]:size-4",
|
|
26
27
|
children: n
|
|
27
|
-
}) : null, /* @__PURE__ */ S(
|
|
28
|
+
}) : null, /* @__PURE__ */ S(ca, { children: (e) => {
|
|
28
29
|
let n = e ?? [];
|
|
29
|
-
return /* @__PURE__ */ C(
|
|
30
|
+
return /* @__PURE__ */ C(ja.Fragment, { children: [n.map((e) => /* @__PURE__ */ S(Mi, { children: e.label }, e.value)), /* @__PURE__ */ S(Ri, {
|
|
30
31
|
placeholder: t,
|
|
31
32
|
disabled: i
|
|
32
33
|
})] });
|
|
33
34
|
} })]
|
|
34
|
-
}) : /* @__PURE__ */ S(
|
|
35
|
+
}) : /* @__PURE__ */ S(Ai, { render: /* @__PURE__ */ C(l, {
|
|
35
36
|
variant: "outline",
|
|
36
37
|
className: d(a, "justify-between font-normal"),
|
|
37
38
|
children: [/* @__PURE__ */ C("span", {
|
|
@@ -40,17 +41,17 @@ function Ra({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyM
|
|
|
40
41
|
"data-icon": "inline-start",
|
|
41
42
|
className: "contents text-muted-foreground [&>svg:not([class*='size-'])]:size-4",
|
|
42
43
|
children: n
|
|
43
|
-
}) : null, /* @__PURE__ */ S(
|
|
44
|
-
}), /* @__PURE__ */ S(
|
|
45
|
-
}) }), /* @__PURE__ */ C(
|
|
44
|
+
}) : null, /* @__PURE__ */ S(ca, { placeholder: t })]
|
|
45
|
+
}), /* @__PURE__ */ S(ge, { className: "ml-2 size-4 shrink-0 text-muted-foreground" })]
|
|
46
|
+
}) }), /* @__PURE__ */ C($i, {
|
|
46
47
|
anchor: s ? u : void 0,
|
|
47
48
|
children: [
|
|
48
|
-
/* @__PURE__ */ S(
|
|
49
|
+
/* @__PURE__ */ S(Bi, {
|
|
49
50
|
showTrigger: !1,
|
|
50
51
|
placeholder: "Search"
|
|
51
52
|
}),
|
|
52
|
-
/* @__PURE__ */ S(
|
|
53
|
-
/* @__PURE__ */ S(
|
|
53
|
+
/* @__PURE__ */ S(Li, { children: r }),
|
|
54
|
+
/* @__PURE__ */ S(na, { children: (e) => /* @__PURE__ */ S(ta, {
|
|
54
55
|
value: e,
|
|
55
56
|
children: e.label
|
|
56
57
|
}, e.value) })
|
|
@@ -63,7 +64,7 @@ function Ra({ items: e, placeholder: t = "Select...", placeholderIcon: n, emptyM
|
|
|
63
64
|
//#region node_modules/@tanstack/store/dist/esm/alien.js
|
|
64
65
|
var w = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e))(w || {});
|
|
65
66
|
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
-
function
|
|
67
|
+
function Ba({ update: e, notify: t, unwatched: n }) {
|
|
67
68
|
return {
|
|
68
69
|
link: r,
|
|
69
70
|
unlink: i,
|
|
@@ -182,7 +183,7 @@ function za({ update: e, notify: t, unwatched: n }) {
|
|
|
182
183
|
}
|
|
183
184
|
//#endregion
|
|
184
185
|
//#region node_modules/@tanstack/store/dist/esm/atom.js
|
|
185
|
-
function
|
|
186
|
+
function Va(e, t, n) {
|
|
186
187
|
let r = typeof e == "object", i = r ? e : void 0;
|
|
187
188
|
return {
|
|
188
189
|
next: (r ? e.next : e)?.bind(i),
|
|
@@ -190,38 +191,38 @@ function Ba(e, t, n) {
|
|
|
190
191
|
complete: (r ? e.complete : n)?.bind(i)
|
|
191
192
|
};
|
|
192
193
|
}
|
|
193
|
-
var
|
|
194
|
+
var Ha = [], T = 0, { link: Ua, unlink: Wa, propagate: Ga, checkDirty: Ka, shallowPropagate: qa } = /* @__PURE__ */ Ba({
|
|
194
195
|
update(e) {
|
|
195
196
|
return e._update();
|
|
196
197
|
},
|
|
197
198
|
notify(e) {
|
|
198
|
-
|
|
199
|
+
Ha[Ja++] = e, e.flags &= ~w.Watching;
|
|
199
200
|
},
|
|
200
201
|
unwatched(e) {
|
|
201
202
|
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = w.Mutable | w.Dirty, k(e));
|
|
202
203
|
}
|
|
203
|
-
}), E = 0,
|
|
204
|
+
}), E = 0, Ja = 0, D, Ya = 0;
|
|
204
205
|
function O(e) {
|
|
205
206
|
try {
|
|
206
|
-
++
|
|
207
|
+
++Ya, e();
|
|
207
208
|
} finally {
|
|
208
|
-
--
|
|
209
|
+
--Ya || Xa();
|
|
209
210
|
}
|
|
210
211
|
}
|
|
211
212
|
function k(e) {
|
|
212
213
|
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
|
|
213
|
-
for (; n !== void 0;) n =
|
|
214
|
+
for (; n !== void 0;) n = Wa(n, e);
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
-
if (!(
|
|
217
|
-
for (; E <
|
|
218
|
-
let e =
|
|
219
|
-
|
|
216
|
+
function Xa() {
|
|
217
|
+
if (!(Ya > 0)) {
|
|
218
|
+
for (; E < Ja;) {
|
|
219
|
+
let e = Ha[E];
|
|
220
|
+
Ha[E++] = void 0, e.notify();
|
|
220
221
|
}
|
|
221
|
-
E = 0,
|
|
222
|
+
E = 0, Ja = 0;
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
|
-
function
|
|
225
|
+
function Za(e, t) {
|
|
225
226
|
let n = typeof e == "function", r = e, i = {
|
|
226
227
|
_snapshot: n ? void 0 : e,
|
|
227
228
|
subs: void 0,
|
|
@@ -230,10 +231,10 @@ function Xa(e, t) {
|
|
|
230
231
|
depsTail: void 0,
|
|
231
232
|
flags: n ? w.None : w.Mutable,
|
|
232
233
|
get() {
|
|
233
|
-
return D !== void 0 &&
|
|
234
|
+
return D !== void 0 && Ua(i, D, T), i._snapshot;
|
|
234
235
|
},
|
|
235
236
|
subscribe(e) {
|
|
236
|
-
let t =
|
|
237
|
+
let t = Va(e), n = { current: !1 }, r = Qa(() => {
|
|
237
238
|
i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
|
|
238
239
|
});
|
|
239
240
|
return { unsubscribe: () => {
|
|
@@ -255,21 +256,21 @@ function Xa(e, t) {
|
|
|
255
256
|
};
|
|
256
257
|
return n ? (i.flags = w.Mutable | w.Dirty, i.get = function() {
|
|
257
258
|
let e = i.flags;
|
|
258
|
-
if (e & w.Dirty || e & w.Pending &&
|
|
259
|
+
if (e & w.Dirty || e & w.Pending && Ka(i.deps, i)) {
|
|
259
260
|
if (i._update()) {
|
|
260
261
|
let e = i.subs;
|
|
261
|
-
e !== void 0 &&
|
|
262
|
+
e !== void 0 && qa(e);
|
|
262
263
|
}
|
|
263
264
|
} else e & w.Pending && (i.flags = e & ~w.Pending);
|
|
264
|
-
return D !== void 0 &&
|
|
265
|
+
return D !== void 0 && Ua(i, D, T), i._snapshot;
|
|
265
266
|
}) : i.set = function(e) {
|
|
266
267
|
if (i._update(e)) {
|
|
267
268
|
let e = i.subs;
|
|
268
|
-
e !== void 0 && (
|
|
269
|
+
e !== void 0 && (Ga(e), qa(e), Xa());
|
|
269
270
|
}
|
|
270
271
|
}, i;
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function Qa(e) {
|
|
273
274
|
let t = () => {
|
|
274
275
|
let t = D;
|
|
275
276
|
D = n, ++T, n.depsTail = void 0, n.flags = w.Watching | w.RecursedCheck;
|
|
@@ -286,7 +287,7 @@ function Za(e) {
|
|
|
286
287
|
flags: w.Watching | w.RecursedCheck,
|
|
287
288
|
notify() {
|
|
288
289
|
let e = this.flags;
|
|
289
|
-
e & w.Dirty || e & w.Pending &&
|
|
290
|
+
e & w.Dirty || e & w.Pending && Ka(this.deps, this) ? t() : this.flags = w.Watching;
|
|
290
291
|
},
|
|
291
292
|
stop() {
|
|
292
293
|
this.flags = w.None, this.depsTail = void 0, k(this);
|
|
@@ -296,9 +297,9 @@ function Za(e) {
|
|
|
296
297
|
}
|
|
297
298
|
//#endregion
|
|
298
299
|
//#region node_modules/@tanstack/store/dist/esm/store.js
|
|
299
|
-
var
|
|
300
|
+
var $a = class {
|
|
300
301
|
constructor(e) {
|
|
301
|
-
this.atom =
|
|
302
|
+
this.atom = Za(e);
|
|
302
303
|
}
|
|
303
304
|
setState(e) {
|
|
304
305
|
this.atom.set(e);
|
|
@@ -310,11 +311,11 @@ var Qa = class {
|
|
|
310
311
|
return this.state;
|
|
311
312
|
}
|
|
312
313
|
subscribe(e) {
|
|
313
|
-
return this.atom.subscribe(
|
|
314
|
+
return this.atom.subscribe(Va(e));
|
|
314
315
|
}
|
|
315
|
-
},
|
|
316
|
+
}, eo = class {
|
|
316
317
|
constructor(e) {
|
|
317
|
-
this.atom =
|
|
318
|
+
this.atom = Za(e);
|
|
318
319
|
}
|
|
319
320
|
get state() {
|
|
320
321
|
return this.atom.get();
|
|
@@ -323,15 +324,15 @@ var Qa = class {
|
|
|
323
324
|
return this.state;
|
|
324
325
|
}
|
|
325
326
|
subscribe(e) {
|
|
326
|
-
return this.atom.subscribe(
|
|
327
|
+
return this.atom.subscribe(Va(e));
|
|
327
328
|
}
|
|
328
329
|
};
|
|
329
330
|
function A(e) {
|
|
330
|
-
return typeof e == "function" ? new
|
|
331
|
+
return typeof e == "function" ? new eo(e) : new $a(e);
|
|
331
332
|
}
|
|
332
333
|
//#endregion
|
|
333
334
|
//#region node_modules/@tanstack/pacer-lite/dist/lite-throttler.js
|
|
334
|
-
var
|
|
335
|
+
var to = class {
|
|
335
336
|
constructor(e, t) {
|
|
336
337
|
this.fn = e, this.options = t, this.lastExecutionTime = 0, this.isPending = !1, this.maybeExecute = (...e) => {
|
|
337
338
|
let t = Date.now() - this.lastExecutionTime;
|
|
@@ -353,12 +354,12 @@ var eo = class {
|
|
|
353
354
|
}, this.options.leading === void 0 && this.options.trailing === void 0 && (this.options.leading = !0, this.options.trailing = !0);
|
|
354
355
|
}
|
|
355
356
|
};
|
|
356
|
-
function
|
|
357
|
-
return new
|
|
357
|
+
function no(e, t) {
|
|
358
|
+
return new to(e, t).maybeExecute;
|
|
358
359
|
}
|
|
359
360
|
//#endregion
|
|
360
361
|
//#region node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js
|
|
361
|
-
var
|
|
362
|
+
var ro = class {
|
|
362
363
|
#e = !0;
|
|
363
364
|
#t;
|
|
364
365
|
#n;
|
|
@@ -478,7 +479,7 @@ var no = class {
|
|
|
478
479
|
};
|
|
479
480
|
return this.#n().addEventListener("tanstack-devtools-global", t), () => this.#n().removeEventListener("tanstack-devtools-global", t);
|
|
480
481
|
}
|
|
481
|
-
}, j = new class extends
|
|
482
|
+
}, j = new class extends ro {
|
|
482
483
|
constructor() {
|
|
483
484
|
super({
|
|
484
485
|
pluginId: "form-devtools",
|
|
@@ -518,7 +519,7 @@ function P(e, t, n) {
|
|
|
518
519
|
}
|
|
519
520
|
return i(e);
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
+
function io(e, t) {
|
|
522
523
|
let n = I(t);
|
|
523
524
|
function r(e) {
|
|
524
525
|
if (!e) return;
|
|
@@ -546,25 +547,25 @@ function ro(e, t) {
|
|
|
546
547
|
}
|
|
547
548
|
return r(e);
|
|
548
549
|
}
|
|
549
|
-
var
|
|
550
|
+
var ao = /^(\d+)$/gm, oo = /\.(\d+)(?=\.)/gm, so = /^(\d+)\./gm, co = /\.(\d+$)/gm, lo = /\.{2,}/gm, uo = "__int__", F = `${uo}$1`;
|
|
550
551
|
function I(e) {
|
|
551
552
|
if (Array.isArray(e)) return [...e];
|
|
552
553
|
if (typeof e != "string") throw Error("Path must be a string.");
|
|
553
|
-
return e.replace(/(^\[)|]/gm, "").replace(/\[/g, ".").replace(
|
|
554
|
-
if (e.startsWith(
|
|
554
|
+
return e.replace(/(^\[)|]/gm, "").replace(/\[/g, ".").replace(ao, F).replace(oo, `.${F}.`).replace(so, `${F}.`).replace(co, `.${F}`).replace(lo, ".").split(".").map((e) => {
|
|
555
|
+
if (e.startsWith(uo)) {
|
|
555
556
|
let t = e.substring(7), n = parseInt(t, 10);
|
|
556
557
|
return String(n) === t ? n : t;
|
|
557
558
|
}
|
|
558
559
|
return e;
|
|
559
560
|
});
|
|
560
561
|
}
|
|
561
|
-
function
|
|
562
|
+
function fo(e, t) {
|
|
562
563
|
return e.length === 0 ? t : t.length === 0 ? e : t.startsWith("[") || t.startsWith(".") ? e + t : `${e}.${t}`;
|
|
563
564
|
}
|
|
564
|
-
function
|
|
565
|
+
function po(e) {
|
|
565
566
|
return !(Array.isArray(e) && e.length === 0);
|
|
566
567
|
}
|
|
567
|
-
function
|
|
568
|
+
function mo(e, t) {
|
|
568
569
|
return t.validationLogic({
|
|
569
570
|
form: t.form,
|
|
570
571
|
validators: t.validators,
|
|
@@ -578,7 +579,7 @@ function po(e, t) {
|
|
|
578
579
|
}))
|
|
579
580
|
});
|
|
580
581
|
}
|
|
581
|
-
function
|
|
582
|
+
function ho(e, t) {
|
|
582
583
|
let { asyncDebounceMs: n } = t, { onBlurAsyncDebounceMs: r, onChangeAsyncDebounceMs: i, onDynamicAsyncDebounceMs: a } = t.validators || {}, o = n ?? 0;
|
|
583
584
|
return t.validationLogic({
|
|
584
585
|
form: t.form,
|
|
@@ -631,7 +632,7 @@ function R(e, t) {
|
|
|
631
632
|
for (let i of n) if (!r.includes(i) || !R(e[i], t[i])) return !1;
|
|
632
633
|
return !0;
|
|
633
634
|
}
|
|
634
|
-
var
|
|
635
|
+
var go = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previousErrorValue: n }) => e ? {
|
|
635
636
|
newErrorValue: e,
|
|
636
637
|
newSource: "form"
|
|
637
638
|
} : t ? {
|
|
@@ -643,7 +644,7 @@ var ho = ({ newFormValidatorError: e, isPreviousErrorFromFormValidator: t, previ
|
|
|
643
644
|
} : {
|
|
644
645
|
newErrorValue: void 0,
|
|
645
646
|
newSource: void 0
|
|
646
|
-
},
|
|
647
|
+
}, _o = ({ formLevelError: e, fieldLevelError: t }) => t ? {
|
|
647
648
|
newErrorValue: t,
|
|
648
649
|
newSource: "field"
|
|
649
650
|
} : e ? {
|
|
@@ -660,7 +661,7 @@ function z(e, t) {
|
|
|
660
661
|
};
|
|
661
662
|
}
|
|
662
663
|
for (var B = 256, V = [], H; B--;) V[B] = (B + 256).toString(16).substring(1);
|
|
663
|
-
function
|
|
664
|
+
function vo() {
|
|
664
665
|
let e = 0, t, n = "";
|
|
665
666
|
if (!H || B + 16 > 256) {
|
|
666
667
|
for (H = Array(256), e = 256; e--;) H[e] = 256 * Math.random() | 0;
|
|
@@ -669,7 +670,7 @@ function _o() {
|
|
|
669
670
|
for (; e < 16; e++) t = H[B + e], e === 6 ? n += V[t & 15 | 64] : e === 8 ? n += V[t & 63 | 128] : n += V[t], e & 1 && e > 1 && e < 11 && (n += "-");
|
|
670
671
|
return B++, n;
|
|
671
672
|
}
|
|
672
|
-
var
|
|
673
|
+
var yo = no((e) => j.emit("form-state", {
|
|
673
674
|
id: e.formId,
|
|
674
675
|
state: e.store.state
|
|
675
676
|
}), { wait: 300 });
|
|
@@ -751,7 +752,7 @@ var W = (e) => {
|
|
|
751
752
|
};
|
|
752
753
|
//#endregion
|
|
753
754
|
//#region node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js
|
|
754
|
-
function
|
|
755
|
+
function bo(e, t) {
|
|
755
756
|
let n = /* @__PURE__ */ new Map();
|
|
756
757
|
for (let r of e) {
|
|
757
758
|
let e = r.path ?? [], i = t, a = "";
|
|
@@ -765,8 +766,8 @@ function yo(e, t) {
|
|
|
765
766
|
}
|
|
766
767
|
return Object.fromEntries(n);
|
|
767
768
|
}
|
|
768
|
-
var
|
|
769
|
-
let n =
|
|
769
|
+
var xo = (e, t) => {
|
|
770
|
+
let n = bo(e, t);
|
|
770
771
|
return {
|
|
771
772
|
form: n,
|
|
772
773
|
fields: n
|
|
@@ -775,13 +776,13 @@ var bo = (e, t) => {
|
|
|
775
776
|
validate({ value: e, validationSource: t }, n) {
|
|
776
777
|
let r = n["~standard"].validate(e);
|
|
777
778
|
if (r instanceof Promise) throw Error("async function passed to sync validator");
|
|
778
|
-
if (r.issues) return t === "field" ? r.issues :
|
|
779
|
+
if (r.issues) return t === "field" ? r.issues : xo(r.issues, e);
|
|
779
780
|
},
|
|
780
781
|
async validateAsync({ value: e, validationSource: t }, n) {
|
|
781
782
|
let r = await n["~standard"].validate(e);
|
|
782
|
-
if (r.issues) return t === "field" ? r.issues :
|
|
783
|
+
if (r.issues) return t === "field" ? r.issues : xo(r.issues, e);
|
|
783
784
|
}
|
|
784
|
-
},
|
|
785
|
+
}, So = (e) => !!e && "~standard" in e, K = {
|
|
785
786
|
isValidating: !1,
|
|
786
787
|
isTouched: !1,
|
|
787
788
|
isBlurred: !1,
|
|
@@ -863,7 +864,7 @@ function q(e) {
|
|
|
863
864
|
}
|
|
864
865
|
//#endregion
|
|
865
866
|
//#region node_modules/@tanstack/form-core/dist/esm/FormApi.js
|
|
866
|
-
function
|
|
867
|
+
function Co(e) {
|
|
867
868
|
return {
|
|
868
869
|
values: e.values ?? {},
|
|
869
870
|
errorMap: e.errorMap ?? {},
|
|
@@ -883,11 +884,11 @@ function So(e) {
|
|
|
883
884
|
}
|
|
884
885
|
};
|
|
885
886
|
}
|
|
886
|
-
var
|
|
887
|
+
var wo = class {
|
|
887
888
|
constructor(e) {
|
|
888
889
|
this.options = {}, this.fieldInfo = {}, this.mount = () => {
|
|
889
890
|
let e = this.store.subscribe(() => {
|
|
890
|
-
|
|
891
|
+
yo(this);
|
|
891
892
|
}), t = j.on("request-form-state", (e) => {
|
|
892
893
|
e.payload.id === this._formId && j.emit("form-api", {
|
|
893
894
|
id: this._formId,
|
|
@@ -914,7 +915,7 @@ var Co = class {
|
|
|
914
915
|
this.options = e;
|
|
915
916
|
let n = e.defaultValues && !R(e.defaultValues, t.defaultValues) && !this.state.isTouched, r = !R(e.defaultState, t.defaultState) && !this.state.isTouched;
|
|
916
917
|
!n && !r || (O(() => {
|
|
917
|
-
this.baseStore.setState(() =>
|
|
918
|
+
this.baseStore.setState(() => Co(Object.assign({}, this.state, r ? e.defaultState : {}, n ? { values: e.defaultValues } : {})));
|
|
918
919
|
}), j.emit("form-api", {
|
|
919
920
|
id: this._formId,
|
|
920
921
|
state: this.store.state,
|
|
@@ -925,7 +926,7 @@ var Co = class {
|
|
|
925
926
|
e && !t?.keepDefaultValues && (this.options = {
|
|
926
927
|
...this.options,
|
|
927
928
|
defaultValues: e
|
|
928
|
-
}), this.baseStore.setState(() =>
|
|
929
|
+
}), this.baseStore.setState(() => Co({
|
|
929
930
|
...this.options.defaultState,
|
|
930
931
|
values: e ?? this.options.defaultValues ?? this.options.defaultState?.values,
|
|
931
932
|
fieldMetaBase: r
|
|
@@ -962,7 +963,7 @@ var Co = class {
|
|
|
962
963
|
isTouched: !0
|
|
963
964
|
})), n.validate(t);
|
|
964
965
|
}, this.validateSync = (e) => {
|
|
965
|
-
let t =
|
|
966
|
+
let t = mo(e, {
|
|
966
967
|
...this.options,
|
|
967
968
|
form: this,
|
|
968
969
|
validationLogic: this.options.validationLogic || W
|
|
@@ -981,7 +982,7 @@ var Co = class {
|
|
|
981
982
|
})), a = Y(e.cause), o = /* @__PURE__ */ new Set([...Object.keys(this.state.fieldMeta), ...Object.keys(i || {})]);
|
|
982
983
|
for (let e of o) {
|
|
983
984
|
if (this.baseStore.state.fieldMetaBase[e] === void 0 && !i?.[e]) continue;
|
|
984
|
-
let { errorMap: t, errorSourceMap: n } = this.getFieldMeta(e) ?? K, o = i?.[e], { newErrorValue: s, newSource: c } =
|
|
985
|
+
let { errorMap: t, errorSourceMap: n } = this.getFieldMeta(e) ?? K, o = i?.[e], { newErrorValue: s, newSource: c } = go({
|
|
985
986
|
newFormValidatorError: o,
|
|
986
987
|
isPreviousErrorFromFormValidator: n?.[a] === "form",
|
|
987
988
|
previousErrorValue: t?.[a]
|
|
@@ -1030,7 +1031,7 @@ var Co = class {
|
|
|
1030
1031
|
fieldsErrorMap: r
|
|
1031
1032
|
};
|
|
1032
1033
|
}, this.validateAsync = async (e) => {
|
|
1033
|
-
let t =
|
|
1034
|
+
let t = ho(e, {
|
|
1034
1035
|
...this.options,
|
|
1035
1036
|
form: this,
|
|
1036
1037
|
validationLogic: this.options.validationLogic || W
|
|
@@ -1080,7 +1081,7 @@ var Co = class {
|
|
|
1080
1081
|
if (this.baseStore.state.fieldMetaBase[e] === void 0) continue;
|
|
1081
1082
|
let t = this.getFieldMeta(e);
|
|
1082
1083
|
if (!t) continue;
|
|
1083
|
-
let { errorMap: n, errorSourceMap: i } = t, a = r?.[e], { newErrorValue: o, newSource: c } =
|
|
1084
|
+
let { errorMap: n, errorSourceMap: i } = t, a = r?.[e], { newErrorValue: o, newSource: c } = go({
|
|
1084
1085
|
newFormValidatorError: a,
|
|
1085
1086
|
isPreviousErrorFromFormValidator: i?.[s] === "form",
|
|
1086
1087
|
previousErrorValue: n?.[s]
|
|
@@ -1272,7 +1273,7 @@ var Co = class {
|
|
|
1272
1273
|
this.baseStore.setState((e) => {
|
|
1273
1274
|
let n = { ...e };
|
|
1274
1275
|
return t.forEach((e) => {
|
|
1275
|
-
n.values =
|
|
1276
|
+
n.values = io(n.values, e), delete this.fieldInfo[e], delete n.fieldMetaBase[e];
|
|
1276
1277
|
}), n;
|
|
1277
1278
|
});
|
|
1278
1279
|
}, this.pushFieldValue = (e, t, n) => {
|
|
@@ -1372,8 +1373,8 @@ var Co = class {
|
|
|
1372
1373
|
validations: {},
|
|
1373
1374
|
listeners: {},
|
|
1374
1375
|
formListeners: {}
|
|
1375
|
-
}, this._formId = e?.formId ??
|
|
1376
|
-
let t =
|
|
1376
|
+
}, this._formId = e?.formId ?? vo(), this._devtoolsSubmissionOverride = !1;
|
|
1377
|
+
let t = Co({
|
|
1377
1378
|
...e?.defaultState,
|
|
1378
1379
|
values: e?.defaultValues ?? e?.defaultState?.values
|
|
1379
1380
|
});
|
|
@@ -1414,7 +1415,7 @@ var Co = class {
|
|
|
1414
1415
|
let e = this.getFieldInfo(a)?.instance;
|
|
1415
1416
|
(!e || !e.options.disableErrorFlat) && (u = u.flat(1));
|
|
1416
1417
|
}
|
|
1417
|
-
let d = !
|
|
1418
|
+
let d = !po(u), f = !o.isDirty, p = R(l, N(this.options.defaultValues, a)) || R(l, this.getFieldInfo(a)?.instance?.options.defaultValue);
|
|
1418
1419
|
if (c && c.isPristine === f && c.isValid === d && c.isDefaultValue === p && c.errors === u && o === s) {
|
|
1419
1420
|
i[a] = c, r++;
|
|
1420
1421
|
continue;
|
|
@@ -1461,7 +1462,7 @@ var Co = class {
|
|
|
1461
1462
|
return this._formId;
|
|
1462
1463
|
}
|
|
1463
1464
|
runValidator(e) {
|
|
1464
|
-
return
|
|
1465
|
+
return So(e.validate) ? G[e.type](e.value, e.validate) : e.validate(e.value);
|
|
1465
1466
|
}
|
|
1466
1467
|
handleSubmit(e) {
|
|
1467
1468
|
return this._handleSubmit(e);
|
|
@@ -1485,7 +1486,7 @@ function Y(e) {
|
|
|
1485
1486
|
}
|
|
1486
1487
|
//#endregion
|
|
1487
1488
|
//#region node_modules/@tanstack/form-core/dist/esm/FieldApi.js
|
|
1488
|
-
var
|
|
1489
|
+
var To = class {
|
|
1489
1490
|
constructor(e) {
|
|
1490
1491
|
this.options = {}, this.mount = () => {
|
|
1491
1492
|
this.options.defaultValue !== void 0 && !this.getMeta().isTouched && this.form.setFieldValue(this.name, this.options.defaultValue, { dontUpdateMeta: !0 });
|
|
@@ -1578,12 +1579,12 @@ var wo = class {
|
|
|
1578
1579
|
}
|
|
1579
1580
|
return n;
|
|
1580
1581
|
}, this.validateSync = (e, t) => {
|
|
1581
|
-
let n =
|
|
1582
|
+
let n = mo(e, {
|
|
1582
1583
|
...this.options,
|
|
1583
1584
|
form: this.form,
|
|
1584
1585
|
validationLogic: this.form.options.validationLogic || W
|
|
1585
1586
|
}), r = this.getLinkedFields(e).reduce((t, n) => {
|
|
1586
|
-
let r =
|
|
1587
|
+
let r = mo(e, {
|
|
1587
1588
|
...n.options,
|
|
1588
1589
|
form: n.form,
|
|
1589
1590
|
validationLogic: n.form.options.validationLogic || W
|
|
@@ -1594,7 +1595,7 @@ var wo = class {
|
|
|
1594
1595
|
}, []), i = !1;
|
|
1595
1596
|
O(() => {
|
|
1596
1597
|
let e = (e, n) => {
|
|
1597
|
-
let r = X(n.cause), a = n.validate ?
|
|
1598
|
+
let r = X(n.cause), a = n.validate ? Eo(e.runValidator({
|
|
1598
1599
|
validate: n.validate,
|
|
1599
1600
|
value: {
|
|
1600
1601
|
value: e.store.state.value,
|
|
@@ -1602,7 +1603,7 @@ var wo = class {
|
|
|
1602
1603
|
fieldApi: e
|
|
1603
1604
|
},
|
|
1604
1605
|
type: "validate"
|
|
1605
|
-
})) : void 0, o = t[r], { newErrorValue: s, newSource: c } =
|
|
1606
|
+
})) : void 0, o = t[r], { newErrorValue: s, newSource: c } = _o({
|
|
1606
1607
|
formLevelError: o,
|
|
1607
1608
|
fieldLevelError: a
|
|
1608
1609
|
});
|
|
@@ -1634,12 +1635,12 @@ var wo = class {
|
|
|
1634
1635
|
}
|
|
1635
1636
|
})), { hasErrored: i };
|
|
1636
1637
|
}, this.validateAsync = async (e, t) => {
|
|
1637
|
-
let n =
|
|
1638
|
+
let n = ho(e, {
|
|
1638
1639
|
...this.options,
|
|
1639
1640
|
form: this.form,
|
|
1640
1641
|
validationLogic: this.form.options.validationLogic || W
|
|
1641
1642
|
}), r = await t, i = this.getLinkedFields(e), a = i.reduce((t, n) => {
|
|
1642
|
-
let r =
|
|
1643
|
+
let r = ho(e, {
|
|
1643
1644
|
...n.options,
|
|
1644
1645
|
form: n.form,
|
|
1645
1646
|
validationLogic: n.form.options.validationLogic || W
|
|
@@ -1688,7 +1689,7 @@ var wo = class {
|
|
|
1688
1689
|
a = e;
|
|
1689
1690
|
}
|
|
1690
1691
|
if (o.signal.aborted) return n(void 0);
|
|
1691
|
-
let s =
|
|
1692
|
+
let s = Eo(a), c = r[e.name]?.[i], { newErrorValue: l, newSource: u } = _o({
|
|
1692
1693
|
formLevelError: c,
|
|
1693
1694
|
fieldLevelError: s
|
|
1694
1695
|
});
|
|
@@ -1791,7 +1792,7 @@ var wo = class {
|
|
|
1791
1792
|
return this.store.state;
|
|
1792
1793
|
}
|
|
1793
1794
|
runValidator(e) {
|
|
1794
|
-
return
|
|
1795
|
+
return So(e.validate) ? G[e.type](e.value, e.validate) : e.validate(e.value);
|
|
1795
1796
|
}
|
|
1796
1797
|
triggerOnBlurListener() {
|
|
1797
1798
|
let e = this.form.options.listeners?.onBlurDebounceMs;
|
|
@@ -1816,7 +1817,7 @@ var wo = class {
|
|
|
1816
1817
|
});
|
|
1817
1818
|
}
|
|
1818
1819
|
};
|
|
1819
|
-
function
|
|
1820
|
+
function Eo(e) {
|
|
1820
1821
|
if (e) return e;
|
|
1821
1822
|
}
|
|
1822
1823
|
function X(e) {
|
|
@@ -1831,14 +1832,14 @@ function X(e) {
|
|
|
1831
1832
|
}
|
|
1832
1833
|
//#endregion
|
|
1833
1834
|
//#region node_modules/@tanstack/form-core/dist/esm/FieldGroupApi.js
|
|
1834
|
-
var
|
|
1835
|
+
var Do = class e {
|
|
1835
1836
|
constructor(t) {
|
|
1836
1837
|
if (this.getFormFieldName = (e) => {
|
|
1837
|
-
if (typeof this.fieldsMap == "string") return
|
|
1838
|
+
if (typeof this.fieldsMap == "string") return fo(this.fieldsMap, e);
|
|
1838
1839
|
let t = I(e)[0];
|
|
1839
1840
|
if (typeof t != "string") return "";
|
|
1840
1841
|
let n = e.slice(t.length), r = this.fieldsMap[t];
|
|
1841
|
-
return
|
|
1842
|
+
return fo(r, n);
|
|
1842
1843
|
}, this.getFormFieldOptions = (e) => {
|
|
1843
1844
|
let t = { ...e }, n = t.validators;
|
|
1844
1845
|
if (t.name = this.getFormFieldName(e.name), n && (n.onChangeListenTo || n.onBlurListenTo)) {
|
|
@@ -1877,7 +1878,7 @@ var Eo = class e {
|
|
|
1877
1878
|
};
|
|
1878
1879
|
//#endregion
|
|
1879
1880
|
//#region node_modules/@tanstack/form-core/dist/esm/transform.js
|
|
1880
|
-
function
|
|
1881
|
+
function Oo(e, t) {
|
|
1881
1882
|
if (!t) return;
|
|
1882
1883
|
let n = Object.assign({}, e, { state: U(e.state) });
|
|
1883
1884
|
t(n), n.fieldInfo !== e.fieldInfo && (e.fieldInfo = n.fieldInfo), n.options !== e.options && (e.options = n.options);
|
|
@@ -1901,28 +1902,28 @@ function Do(e, t) {
|
|
|
1901
1902
|
}
|
|
1902
1903
|
//#endregion
|
|
1903
1904
|
//#region node_modules/@tanstack/react-store/dist/esm/useStore.js
|
|
1904
|
-
function
|
|
1905
|
+
function ko(e, t) {
|
|
1905
1906
|
return e === t;
|
|
1906
1907
|
}
|
|
1907
|
-
function Z(e, t, n =
|
|
1908
|
-
let r =
|
|
1908
|
+
function Z(e, t, n = ko) {
|
|
1909
|
+
let r = Na((t) => {
|
|
1909
1910
|
if (!e) return () => {};
|
|
1910
1911
|
let { unsubscribe: n } = e.subscribe(t);
|
|
1911
1912
|
return n;
|
|
1912
|
-
}, [e]), i =
|
|
1913
|
-
return
|
|
1913
|
+
}, [e]), i = Na(() => e?.get(), [e]);
|
|
1914
|
+
return Ra(r, i, i, t, n);
|
|
1914
1915
|
}
|
|
1915
1916
|
//#endregion
|
|
1916
1917
|
//#region node_modules/@tanstack/react-form/dist/esm/useIsomorphicLayoutEffect.js
|
|
1917
|
-
var Q = typeof window < "u" ?
|
|
1918
|
+
var Q = typeof window < "u" ? Ia : Fa;
|
|
1918
1919
|
//#endregion
|
|
1919
1920
|
//#region node_modules/@tanstack/react-form/dist/esm/useField.js
|
|
1920
|
-
function
|
|
1921
|
+
function Ao(e) {
|
|
1921
1922
|
let [t, n] = b(() => ({
|
|
1922
1923
|
form: e.form,
|
|
1923
1924
|
name: e.name
|
|
1924
|
-
})), [r, i] = b(() => new
|
|
1925
|
-
(t.form !== e.form || t.name !== e.name) && (i(new
|
|
1925
|
+
})), [r, i] = b(() => new To({ ...e }));
|
|
1926
|
+
(t.form !== e.form || t.name !== e.name) && (i(new To({ ...e })), n({
|
|
1926
1927
|
form: e.form,
|
|
1927
1928
|
name: e.name
|
|
1928
1929
|
}));
|
|
@@ -1946,7 +1947,7 @@ function ko(e) {
|
|
|
1946
1947
|
};
|
|
1947
1948
|
}
|
|
1948
1949
|
};
|
|
1949
|
-
return t.Field =
|
|
1950
|
+
return t.Field = jo, t;
|
|
1950
1951
|
}, [
|
|
1951
1952
|
r,
|
|
1952
1953
|
e.mode,
|
|
@@ -1962,31 +1963,31 @@ function ko(e) {
|
|
|
1962
1963
|
r.update(e);
|
|
1963
1964
|
}), f;
|
|
1964
1965
|
}
|
|
1965
|
-
var
|
|
1966
|
-
let n =
|
|
1966
|
+
var jo = (({ children: e, ...t }) => {
|
|
1967
|
+
let n = Ao(t);
|
|
1967
1968
|
return /* @__PURE__ */ S(x, { children: y(() => M(e, n), [e, n]) });
|
|
1968
1969
|
});
|
|
1969
1970
|
//#endregion
|
|
1970
1971
|
//#region node_modules/@tanstack/react-form/dist/esm/useUUID.js
|
|
1971
|
-
function
|
|
1972
|
-
return b(() =>
|
|
1972
|
+
function Mo() {
|
|
1973
|
+
return b(() => vo())[0];
|
|
1973
1974
|
}
|
|
1974
1975
|
//#endregion
|
|
1975
1976
|
//#region node_modules/@tanstack/react-form/dist/esm/useFormId.js
|
|
1976
|
-
var
|
|
1977
|
+
var No = ja, Po = ja.version.split(".")[0] === "17" ? Mo : No.useId;
|
|
1977
1978
|
//#endregion
|
|
1978
1979
|
//#region node_modules/@tanstack/react-form/dist/esm/useForm.js
|
|
1979
|
-
function
|
|
1980
|
+
function Fo({ form: e, selector: t = (e) => e, children: n }) {
|
|
1980
1981
|
return /* @__PURE__ */ S(x, { children: M(n, Z(e.store, t)) });
|
|
1981
1982
|
}
|
|
1982
|
-
function
|
|
1983
|
-
let t =
|
|
1983
|
+
function Io(e) {
|
|
1984
|
+
let t = Po(), [n, r] = b(e?.formId), [i, a] = b(() => new wo({
|
|
1984
1985
|
...e,
|
|
1985
1986
|
formId: e?.formId ?? t
|
|
1986
1987
|
}));
|
|
1987
1988
|
if (n !== e?.formId) {
|
|
1988
1989
|
let n = e?.formId ?? t;
|
|
1989
|
-
a(new
|
|
1990
|
+
a(new wo({
|
|
1990
1991
|
...e,
|
|
1991
1992
|
formId: n
|
|
1992
1993
|
})), r(n);
|
|
@@ -2003,12 +2004,12 @@ function Fo(e) {
|
|
|
2003
2004
|
}
|
|
2004
2005
|
};
|
|
2005
2006
|
return e.Field = function(e) {
|
|
2006
|
-
return /* @__PURE__ */ S(
|
|
2007
|
+
return /* @__PURE__ */ S(jo, {
|
|
2007
2008
|
...e,
|
|
2008
2009
|
form: i
|
|
2009
2010
|
});
|
|
2010
2011
|
}, e.Subscribe = function(e) {
|
|
2011
|
-
return /* @__PURE__ */ S(
|
|
2012
|
+
return /* @__PURE__ */ S(Fo, {
|
|
2012
2013
|
form: i,
|
|
2013
2014
|
selector: e.selector,
|
|
2014
2015
|
children: e.children
|
|
@@ -2018,21 +2019,21 @@ function Fo(e) {
|
|
|
2018
2019
|
Q(i.mount, []), Q(() => {
|
|
2019
2020
|
i.update(e);
|
|
2020
2021
|
});
|
|
2021
|
-
let s =
|
|
2022
|
+
let s = La(!1);
|
|
2022
2023
|
return Q(() => {
|
|
2023
|
-
s.current && e?.transform &&
|
|
2024
|
+
s.current && e?.transform && Oo(i, e.transform);
|
|
2024
2025
|
}, [i, e?.transform]), Q(() => {
|
|
2025
2026
|
s.current = !0;
|
|
2026
2027
|
}), o;
|
|
2027
2028
|
}
|
|
2028
2029
|
//#endregion
|
|
2029
2030
|
//#region node_modules/@tanstack/react-form/dist/esm/useFieldGroup.js
|
|
2030
|
-
function
|
|
2031
|
+
function Lo({ lens: e, selector: t = (e) => e, children: n }) {
|
|
2031
2032
|
return /* @__PURE__ */ S(x, { children: M(n, Z(e.store, t)) });
|
|
2032
2033
|
}
|
|
2033
|
-
function
|
|
2034
|
+
function Ro(e) {
|
|
2034
2035
|
let [t] = b(() => {
|
|
2035
|
-
let n = new
|
|
2036
|
+
let n = new Do(e), r = e.form instanceof Do ? e.form.form : e.form, i = n;
|
|
2036
2037
|
return i.AppForm = function(e) {
|
|
2037
2038
|
return /* @__PURE__ */ S(r.AppForm, { ...e });
|
|
2038
2039
|
}, i.AppField = function(e) {
|
|
@@ -2040,7 +2041,7 @@ function Lo(e) {
|
|
|
2040
2041
|
}, i.Field = function(e) {
|
|
2041
2042
|
return /* @__PURE__ */ S(r.Field, { ...t.getFormFieldOptions(e) });
|
|
2042
2043
|
}, i.Subscribe = function(e) {
|
|
2043
|
-
return /* @__PURE__ */ S(
|
|
2044
|
+
return /* @__PURE__ */ S(Lo, {
|
|
2044
2045
|
lens: t,
|
|
2045
2046
|
selector: e.selector,
|
|
2046
2047
|
children: e.children
|
|
@@ -2051,28 +2052,28 @@ function Lo(e) {
|
|
|
2051
2052
|
}
|
|
2052
2053
|
//#endregion
|
|
2053
2054
|
//#region node_modules/@tanstack/react-form/dist/esm/createFormHook.js
|
|
2054
|
-
var
|
|
2055
|
-
function
|
|
2056
|
-
let e =
|
|
2055
|
+
var zo = Ma(null), Bo = Ma(null);
|
|
2056
|
+
function Vo() {
|
|
2057
|
+
let e = Pa(Bo);
|
|
2057
2058
|
if (!e) throw Error("`formContext` only works when within a `formComponent` passed to `createFormHook`");
|
|
2058
2059
|
return e;
|
|
2059
2060
|
}
|
|
2060
|
-
function
|
|
2061
|
+
function Ho() {
|
|
2061
2062
|
function e() {
|
|
2062
|
-
let e =
|
|
2063
|
+
let e = Pa(zo);
|
|
2063
2064
|
if (!e) throw Error("`fieldContext` only works when within a `fieldComponent` passed to `createFormHook`");
|
|
2064
2065
|
return e;
|
|
2065
2066
|
}
|
|
2066
2067
|
return {
|
|
2067
|
-
fieldContext:
|
|
2068
|
+
fieldContext: zo,
|
|
2068
2069
|
useFieldContext: e,
|
|
2069
|
-
useFormContext:
|
|
2070
|
-
formContext:
|
|
2070
|
+
useFormContext: Vo,
|
|
2071
|
+
formContext: Bo
|
|
2071
2072
|
};
|
|
2072
2073
|
}
|
|
2073
|
-
function
|
|
2074
|
+
function Uo({ fieldComponents: e, fieldContext: t, formContext: n, formComponents: r }) {
|
|
2074
2075
|
function i(i) {
|
|
2075
|
-
let a =
|
|
2076
|
+
let a = Io(i), o = y(() => ({ children: e }) => /* @__PURE__ */ S(n.Provider, {
|
|
2076
2077
|
value: a,
|
|
2077
2078
|
children: e
|
|
2078
2079
|
}), [a]), s = y(() => (({ children: n, ...r }) => /* @__PURE__ */ S(a.Field, {
|
|
@@ -2102,7 +2103,7 @@ function Ho({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
|
|
|
2102
2103
|
}
|
|
2103
2104
|
function o({ render: e, props: t, defaultValues: n }) {
|
|
2104
2105
|
return function(i) {
|
|
2105
|
-
let a =
|
|
2106
|
+
let a = Ro(y(() => ({
|
|
2106
2107
|
form: i.form,
|
|
2107
2108
|
fields: i.fields,
|
|
2108
2109
|
defaultValues: n,
|
|
@@ -2116,10 +2117,10 @@ function Ho({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
|
|
|
2116
2117
|
};
|
|
2117
2118
|
}
|
|
2118
2119
|
function s(e) {
|
|
2119
|
-
return
|
|
2120
|
+
return Vo();
|
|
2120
2121
|
}
|
|
2121
2122
|
function c(i) {
|
|
2122
|
-
return
|
|
2123
|
+
return Uo({
|
|
2123
2124
|
fieldContext: t,
|
|
2124
2125
|
formContext: n,
|
|
2125
2126
|
fieldComponents: {
|
|
@@ -2142,15 +2143,15 @@ function Ho({ fieldComponents: e, fieldContext: t, formContext: n, formComponent
|
|
|
2142
2143
|
}
|
|
2143
2144
|
//#endregion
|
|
2144
2145
|
//#region src/components/ui/form.tsx
|
|
2145
|
-
var { fieldContext:
|
|
2146
|
-
function
|
|
2146
|
+
var { fieldContext: Wo, formContext: Go, useFieldContext: $, useFormContext: Ko } = Ho();
|
|
2147
|
+
function qo({ className: e, ...t }) {
|
|
2147
2148
|
return /* @__PURE__ */ S("div", {
|
|
2148
2149
|
"data-slot": "form-item",
|
|
2149
2150
|
className: d("flex flex-col gap-1.5", e),
|
|
2150
2151
|
...t
|
|
2151
2152
|
});
|
|
2152
2153
|
}
|
|
2153
|
-
function
|
|
2154
|
+
function Jo({ className: e, ...t }) {
|
|
2154
2155
|
let n = $(), r = Z(n.store, (e) => e.meta.errors);
|
|
2155
2156
|
return /* @__PURE__ */ S(re, {
|
|
2156
2157
|
"data-slot": "form-label",
|
|
@@ -2159,7 +2160,7 @@ function qo({ className: e, ...t }) {
|
|
|
2159
2160
|
...t
|
|
2160
2161
|
});
|
|
2161
2162
|
}
|
|
2162
|
-
function
|
|
2163
|
+
function Yo({ className: e, ...t }) {
|
|
2163
2164
|
let n = $(), r = Z(n.store, (e) => e.meta.errors), i = String(n.name);
|
|
2164
2165
|
return /* @__PURE__ */ S("div", {
|
|
2165
2166
|
"data-slot": "form-control",
|
|
@@ -2170,7 +2171,7 @@ function Jo({ className: e, ...t }) {
|
|
|
2170
2171
|
...t
|
|
2171
2172
|
});
|
|
2172
2173
|
}
|
|
2173
|
-
function
|
|
2174
|
+
function Xo({ className: e, ...t }) {
|
|
2174
2175
|
let n = $();
|
|
2175
2176
|
return /* @__PURE__ */ S("p", {
|
|
2176
2177
|
"data-slot": "form-description",
|
|
@@ -2179,7 +2180,7 @@ function Yo({ className: e, ...t }) {
|
|
|
2179
2180
|
...t
|
|
2180
2181
|
});
|
|
2181
2182
|
}
|
|
2182
|
-
function
|
|
2183
|
+
function Zo({ className: e, children: t, ...n }) {
|
|
2183
2184
|
let r = $(), i = Z(r.store, (e) => e.meta.errors), a = t ?? (i.length > 0 ? i[0]?.message ?? String(i[0]) : null);
|
|
2184
2185
|
return a ? /* @__PURE__ */ S("p", {
|
|
2185
2186
|
"data-slot": "form-message",
|
|
@@ -2191,4 +2192,4 @@ function Xo({ className: e, children: t, ...n }) {
|
|
|
2191
2192
|
}) : null;
|
|
2192
2193
|
}
|
|
2193
2194
|
//#endregion
|
|
2194
|
-
export {
|
|
2195
|
+
export { wr as Accordion, nr as AccordionContent, Qn as AccordionItem, Sn as AccordionTrigger, xe as Alert, Hn as AlertAction, ti as AlertDescription, tn as AlertDialog, $e as AlertDialogAction, Zt as AlertDialogCancel, on as AlertDialogContent, Ye as AlertDialogDescription, dt as AlertDialogFooter, Hr as AlertDialogHeader, st as AlertDialogMedia, mn as AlertDialogOverlay, un as AlertDialogPortal, vn as AlertDialogTitle, Ft as AlertDialogTrigger, Dr as AlertProvider, Gr as AlertTitle, Rr as AspectRatio, za as Autocomplete, Jn as Avatar, ci as Badge, qr as Breadcrumb, sr as BreadcrumbEllipsis, Dn as BreadcrumbItem, Pr as BreadcrumbLink, Qr as BreadcrumbList, In as BreadcrumbPage, br as BreadcrumbSeparator, l as Button, Pt as ButtonGroup, be as ButtonGroupSeparator, Wn as ButtonGroupText, Aa as CCombobox, zi as Calendar, Hi as CalendarDayButton, Je as Card, ut as CardAction, Vr as CardContent, ot as CardDescription, pn as CardFooter, ln as CardHeader, _n as CardTitle, ji as Carousel, pa as CarouselContent, Ui as CarouselItem, Wi as CarouselNext, Ki as CarouselPrevious, Da as ChartContainer, Xi as ChartLegend, Fi as ChartLegendContent, Pi as ChartStyle, Gi as ChartTooltip, ma as ChartTooltipContent, an as Checkbox, en as Collapsible, Qe as CollapsibleContent, Xt as CollapsibleTrigger, Ji as Combobox, Mi as ComboboxChip, Qi as ComboboxChips, Ri as ComboboxChipsInput, Zi as ComboboxCollection, $i as ComboboxContent, Li as ComboboxEmpty, Vi as ComboboxField, ba as ComboboxGroup, Bi as ComboboxInput, ta as ComboboxItem, ea as ComboboxLabel, na as ComboboxList, qi as ComboboxSeparator, Ai as ComboboxTrigger, ca as ComboboxValue, da as Command, ua as CommandDialog, ra as CommandEmpty, Ea as CommandGroup, ka as CommandInput, aa as CommandItem, Oa as CommandList, Yi as CommandSeparator, Ni as CommandShortcut, Oi as ConfirmationDialogProvider, Be as ContextMenu, Ie as ContextMenuCheckboxItem, Et as ContextMenuContent, mr as ContextMenuGroup, we as ContextMenuItem, ur as ContextMenuLabel, vt as ContextMenuPortal, St as ContextMenuRadioGroup, At as ContextMenuRadioItem, We as ContextMenuSeparator, nt as ContextMenuShortcut, mt as ContextMenuSub, Rt as ContextMenuSubContent, Di as ContextMenuSubTrigger, Oe as ContextMenuTrigger, o as DEFAULT_OPSFUSE_BRAND_THEME, he as DateFns, g as Dialog, se as DialogClose, ie as DialogContent, _ as DialogDescription, te as DialogFooter, f as DialogHeader, fe as DialogOverlay, me as DialogPortal, ee as DialogProvider, pe as DialogTitle, u as DialogTrigger, hi as DirectionProvider, ia as Drawer, va as DrawerClose, Sa as DrawerContent, oa as DrawerDescription, ha as DrawerFooter, Ta as DrawerHeader, sa as DrawerOverlay, la as DrawerPortal, ya as DrawerTitle, ga as DrawerTrigger, Me as DropdownMenu, Ht as Empty, qn as Field, Lr as FieldContent, Cr as FieldDescription, tr as FieldError, Zn as FieldGroup, xn as FieldLabel, di as FieldLegend, Ci as FieldSeparator, An as FieldSet, yi as FieldTitle, Yo as FormControl, Xo as FormDescription, qo as FormItem, Jo as FormLabel, Zo as FormMessage, yr as HoverCard, si as HoverCardContent, zn as HoverCardTrigger, m as Input, ue as InputGroup, ae as InputGroupAddon, ce as InputGroupButton, v as InputGroupInput, p as InputGroupText, oe as InputGroupTextarea, Ca as InputOTP, _a as InputOTPGroup, xa as InputOTPSeparator, fa as InputOTPSlot, It as Item, Se as ItemActions, Un as ItemContent, ni as ItemDescription, Or as ItemFooter, Kr as ItemGroup, or as ItemHeader, En as ItemMedia, Nr as ItemSeparator, Zr as ItemTitle, dn as Kbd, yn as KbdGroup, re as Label, _e as Lucide, Mt as Menubar, Ke as MenubarCheckboxItem, it as MenubarContent, gt as MenubarGroup, Bt as MenubarItem, ki as MenubarLabel, Ae as MenubarMenu, nn as MenubarPortal, et as MenubarRadioGroup, Qt as MenubarRadioItem, sn as MenubarSeparator, Xe as MenubarShortcut, ft as MenubarSub, Ur as MenubarSubContent, ct as MenubarSubTrigger, hn as MenubarTrigger, Jt as NavigationMenu, He as NavigationMenuContent, Re as NavigationMenuIndicator, Ot as NavigationMenuItem, gr as NavigationMenuLink, Ee as NavigationMenuList, fr as NavigationMenuTrigger, bt as NavigationMenuViewport, s as OPSFUSE_BRAND_THEMES, e as OPSFUSE_THEME_SCOPE, wi as OpsfuseRoot, jn as OpsfuseThemeProvider, Fn as PageHeader, pi as Pagination, Ti as PaginationContent, Mn as PaginationEllipsis, xi as PaginationItem, Wt as PaginationLink, Pe as PaginationNext, _i as PaginationPrevious, Cn as PaginationWrapper, li as Popover, Vn as PopoverAnchor, Yn as PopoverContent, zr as PopoverDescription, Tr as PopoverHeader, rr as PopoverTitle, $n as PopoverTrigger, xr as Progress, $r as RadioGroup, Ln as RadioGroupItem, ve as Recharts, oi as RecruitSmartly, cr as ResizableHandle, On as ResizablePanel, Fr as ResizablePanelGroup, qe as SSelect, Ne as STooltip, Ar as ScrollArea, Jr as ScrollBar, rn as Select, lt as SelectContent, Br as SelectField, at as SelectGroup, fn as SelectItem, cn as SelectLabel, gn as SelectScrollDownButton, Nt as SelectScrollUpButton, ye as SelectSeparator, Gn as SelectTrigger, ii as SelectValue, kr as Separator, hr as Sheet, Te as SheetClose, dr as SheetContent, yt as SheetDescription, Ct as SheetFooter, jt as SheetHeader, Ge as SheetProvider, rt as SheetTitle, ht as SheetTrigger, Si as Sidebar, kn as SidebarContent, vi as SidebarFooter, Vt as SidebarGroup, je as SidebarGroupAction, mi as SidebarGroupContent, Gt as SidebarGroupLabel, ze as SidebarHeader, Fe as SidebarInput, Tt as SidebarInset, pr as SidebarMenu, Ce as SidebarMenuAction, lr as SidebarMenuBadge, _t as SidebarMenuButton, xt as SidebarMenuItem, kt as SidebarMenuSkeleton, Ue as SidebarMenuSub, tt as SidebarMenuSubButton, pt as SidebarMenuSubItem, Lt as SidebarProvider, Ei as SidebarRail, De as SidebarSeparator, $t as SidebarTrigger, Yt as Skeleton, vr as SkillReady, Ve as Slider, Le as SliderDialogProvider, a as Spinner, ui as Switch, ai as Table, Rn as TableBody, Kn as TableCaption, Ir as TableCell, Sr as TableFooter, er as TableHead, Xn as TableHeader, bn as TableRow, jr as Tabs, wn as TabsComponent, Yr as TabsContent, Nn as TabsList, _r as TabsTrigger, Pn as TalentScan, le as Textarea, de as Toaster, Wr as Toggle, ei as ToggleGroup, Er as ToggleGroupItem, bi as Tooltip, Ut as TooltipContent, gi as TooltipProvider, qt as TooltipTrigger, Xr as Verity, Mr as WorkLog, Bn as badgeVariants, ri as buttonGroupVariants, i as buttonVariants, d as cn, ke as confirm, Uo as createFormHook, ar as dismissAlert, Wo as fieldContext, Go as formContext, r as mergeOpsfusePortalSurface, wt as navigationMenuTriggerStyle, t as openDialog, zt as openSheet, Dt as openSlider, n as opsfuseBrandThemeClass, Tn as showAlert, h as toast, ir as toggleVariants, Ii as useCarousel, wa as useComboboxAnchor, Kt as useDirection, $ as useFieldContext, Ko as useFormContext, fi as useIsMobile, c as useOpsfuseBrandTheme, ne as useOpsfusePortalSurface, Ze as useSidebar };
|