@harnessio/forms 0.0.14 → 0.1.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.
- package/dist/core/components/InputComponentRenderer.d.ts +2 -1
- package/dist/core/components/RootForm.d.ts +3 -3
- package/dist/core/context/RootFormContext.d.ts +8 -0
- package/dist/core/hooks/useRootFormikContext.d.ts +2 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/form/RenderInputs/RenderInputs.d.ts +2 -2
- package/dist/form/index.d.ts +0 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +319 -297
- package/dist/index.js.map +1 -1
- package/dist/types/types.d.ts +2 -0
- package/package.json +3 -3
- package/dist/form/Row/Row.d.ts +0 -8
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { isEmpty as
|
|
5
|
-
import
|
|
6
|
-
import { useFormContext as
|
|
1
|
+
var ne = Object.defineProperty;
|
|
2
|
+
var se = (r, e, n) => e in r ? ne(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n;
|
|
3
|
+
var q = (r, e, n) => se(r, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { isEmpty as j, cloneDeep as x, set as g, get as b, forOwn as G, isArray as E, isObject as H, merge as C, isUndefined as P, pick as ae, unset as ue, isNull as Q, omitBy as X, isNil as oe, isString as ie, capitalize as ce } from "lodash-es";
|
|
5
|
+
import fe, { createContext as de, useContext as le, useMemo as M, useRef as F, useEffect as S, useCallback as me, forwardRef as he, Fragment as pe } from "react";
|
|
6
|
+
import { useFormContext as ye, useForm as ge, FormProvider as be, appendErrors as ve } from "react-hook-form";
|
|
7
7
|
export * from "react-hook-form";
|
|
8
8
|
import * as m from "zod";
|
|
9
|
-
import { toNestErrors as
|
|
10
|
-
class
|
|
9
|
+
import { toNestErrors as _e } from "@hookform/resolvers";
|
|
10
|
+
class Ee extends Error {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(`Input component '${e}' is already registered.`);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
class
|
|
15
|
+
class Y {
|
|
16
16
|
constructor(e) {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
q(this, "componentBank");
|
|
18
|
+
q(this, "allowOverride");
|
|
19
19
|
this.allowOverride = (e == null ? void 0 : e.allowOverride) ?? !1, this.componentBank = /* @__PURE__ */ new Map();
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -26,11 +26,11 @@ class X {
|
|
|
26
26
|
*/
|
|
27
27
|
registerComponent(e) {
|
|
28
28
|
if (!this.allowOverride && this.getComponent(e.internalType))
|
|
29
|
-
throw new
|
|
29
|
+
throw new Ee(e.internalType);
|
|
30
30
|
this.componentBank.set(e.internalType, e);
|
|
31
31
|
}
|
|
32
32
|
getComponent(e) {
|
|
33
|
-
if (e && !
|
|
33
|
+
if (e && !j(e))
|
|
34
34
|
return this.componentBank.get(e);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
@@ -47,7 +47,7 @@ class X {
|
|
|
47
47
|
* @returns new input factory
|
|
48
48
|
*/
|
|
49
49
|
clone() {
|
|
50
|
-
const e = new
|
|
50
|
+
const e = new Y({
|
|
51
51
|
allowOverride: this.allowOverride
|
|
52
52
|
});
|
|
53
53
|
return this.listRegisteredComponents().forEach((n) => {
|
|
@@ -55,16 +55,16 @@ class X {
|
|
|
55
55
|
}), e;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
var A = { exports: {} },
|
|
58
|
+
var A = { exports: {} }, _ = {};
|
|
59
59
|
/*
|
|
60
60
|
object-assign
|
|
61
61
|
(c) Sindre Sorhus
|
|
62
62
|
@license MIT
|
|
63
63
|
*/
|
|
64
|
-
var
|
|
65
|
-
function
|
|
66
|
-
if (
|
|
67
|
-
|
|
64
|
+
var N, B;
|
|
65
|
+
function Re() {
|
|
66
|
+
if (B) return N;
|
|
67
|
+
B = 1;
|
|
68
68
|
var r = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
69
69
|
function t(s) {
|
|
70
70
|
if (s == null)
|
|
@@ -78,34 +78,34 @@ function be() {
|
|
|
78
78
|
var s = new String("abc");
|
|
79
79
|
if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
|
|
80
80
|
return !1;
|
|
81
|
-
for (var
|
|
82
|
-
|
|
83
|
-
var
|
|
84
|
-
return
|
|
81
|
+
for (var o = {}, u = 0; u < 10; u++)
|
|
82
|
+
o["_" + String.fromCharCode(u)] = u;
|
|
83
|
+
var i = Object.getOwnPropertyNames(o).map(function(f) {
|
|
84
|
+
return o[f];
|
|
85
85
|
});
|
|
86
|
-
if (
|
|
86
|
+
if (i.join("") !== "0123456789")
|
|
87
87
|
return !1;
|
|
88
|
-
var
|
|
89
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
90
|
-
f
|
|
91
|
-
}), Object.keys(Object.assign({},
|
|
88
|
+
var c = {};
|
|
89
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
|
|
90
|
+
c[f] = f;
|
|
91
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
92
92
|
} catch {
|
|
93
93
|
return !1;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return
|
|
97
|
-
for (var u,
|
|
98
|
-
u = Object(arguments[
|
|
99
|
-
for (var
|
|
100
|
-
e.call(u,
|
|
96
|
+
return N = a() ? Object.assign : function(s, o) {
|
|
97
|
+
for (var u, i = t(s), c, f = 1; f < arguments.length; f++) {
|
|
98
|
+
u = Object(arguments[f]);
|
|
99
|
+
for (var d in u)
|
|
100
|
+
e.call(u, d) && (i[d] = u[d]);
|
|
101
101
|
if (r) {
|
|
102
|
-
|
|
103
|
-
for (var
|
|
104
|
-
n.call(u,
|
|
102
|
+
c = r(u);
|
|
103
|
+
for (var l = 0; l < c.length; l++)
|
|
104
|
+
n.call(u, c[l]) && (i[c[l]] = u[c[l]]);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
return
|
|
108
|
-
},
|
|
107
|
+
return i;
|
|
108
|
+
}, N;
|
|
109
109
|
}
|
|
110
110
|
/** @license React v17.0.2
|
|
111
111
|
* react-jsx-runtime.production.min.js
|
|
@@ -115,44 +115,64 @@ function be() {
|
|
|
115
115
|
* This source code is licensed under the MIT license found in the
|
|
116
116
|
* LICENSE file in the root directory of this source tree.
|
|
117
117
|
*/
|
|
118
|
-
var
|
|
119
|
-
function
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
var r =
|
|
123
|
-
if (
|
|
118
|
+
var $;
|
|
119
|
+
function Oe() {
|
|
120
|
+
if ($) return _;
|
|
121
|
+
$ = 1, Re();
|
|
122
|
+
var r = fe, e = 60103;
|
|
123
|
+
if (_.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
|
124
124
|
var n = Symbol.for;
|
|
125
|
-
e = n("react.element"),
|
|
125
|
+
e = n("react.element"), _.Fragment = n("react.fragment");
|
|
126
126
|
}
|
|
127
127
|
var t = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = Object.prototype.hasOwnProperty, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
128
|
-
function
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
for (
|
|
132
|
-
if (u && u.defaultProps) for (
|
|
133
|
-
return { $$typeof: e, type: u, key:
|
|
128
|
+
function o(u, i, c) {
|
|
129
|
+
var f, d = {}, l = null, p = null;
|
|
130
|
+
c !== void 0 && (l = "" + c), i.key !== void 0 && (l = "" + i.key), i.ref !== void 0 && (p = i.ref);
|
|
131
|
+
for (f in i) a.call(i, f) && !s.hasOwnProperty(f) && (d[f] = i[f]);
|
|
132
|
+
if (u && u.defaultProps) for (f in i = u.defaultProps, i) d[f] === void 0 && (d[f] = i[f]);
|
|
133
|
+
return { $$typeof: e, type: u, key: l, ref: p, props: d, _owner: t.current };
|
|
134
134
|
}
|
|
135
|
-
return
|
|
135
|
+
return _.jsx = o, _.jsxs = o, _;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
139
|
-
return
|
|
137
|
+
var J;
|
|
138
|
+
function Se() {
|
|
139
|
+
return J || (J = 1, A.exports = Oe()), A.exports;
|
|
140
140
|
}
|
|
141
|
-
var
|
|
142
|
-
|
|
141
|
+
var h = Se();
|
|
142
|
+
const K = de({});
|
|
143
|
+
function Te({ children: r, metadata: e }) {
|
|
144
|
+
return /* @__PURE__ */ h.jsx(
|
|
145
|
+
K.Provider,
|
|
146
|
+
{
|
|
147
|
+
value: {
|
|
148
|
+
metadata: e
|
|
149
|
+
},
|
|
150
|
+
children: r
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
function je() {
|
|
155
|
+
const r = le(K);
|
|
156
|
+
return r || console.warn("useRootFormContext must be used within RootFormProvider"), r;
|
|
157
|
+
}
|
|
158
|
+
const L = ({
|
|
159
|
+
children: r,
|
|
160
|
+
withoutWrapper: e = !1
|
|
161
|
+
}) => e || !r ? r : /* @__PURE__ */ h.jsx("div", { children: r });
|
|
162
|
+
function Ie({
|
|
143
163
|
path: r,
|
|
144
164
|
factory: e,
|
|
145
165
|
onUpdate: n,
|
|
146
166
|
onChange: t,
|
|
147
167
|
readonly: a,
|
|
148
168
|
initialValues: s,
|
|
149
|
-
input:
|
|
169
|
+
input: o,
|
|
170
|
+
withoutWrapper: u = !1
|
|
150
171
|
}) {
|
|
151
|
-
const { formState:
|
|
152
|
-
|
|
153
|
-
fixedValues: o = {}
|
|
172
|
+
const { formState: i, watch: c } = ye(), {
|
|
173
|
+
fixedValues: f = {}
|
|
154
174
|
/*getValuesWithDependencies*/
|
|
155
|
-
} = {}, l = e == null ? void 0 : e.getComponent(
|
|
175
|
+
} = {}, { metadata: d } = je(), l = e == null ? void 0 : e.getComponent(o.inputType), p = M(
|
|
156
176
|
() => ({
|
|
157
177
|
path: r,
|
|
158
178
|
initialValues: s,
|
|
@@ -160,31 +180,31 @@ function J({
|
|
|
160
180
|
onChange: t,
|
|
161
181
|
factory: e,
|
|
162
182
|
readonly: a,
|
|
163
|
-
input:
|
|
183
|
+
input: o
|
|
164
184
|
}),
|
|
165
|
-
[e, s,
|
|
166
|
-
),
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
g(
|
|
185
|
+
[e, s, o, t, n, r, a, i.errors]
|
|
186
|
+
), R = c(), v = x(R);
|
|
187
|
+
f && Object.keys(f).forEach((y) => {
|
|
188
|
+
const te = f[y];
|
|
189
|
+
g(v, y, te);
|
|
170
190
|
});
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
l == null ? void 0 : l.renderComponent(
|
|
174
|
-
|
|
175
|
-
] }) : null, [
|
|
176
|
-
return l ?
|
|
191
|
+
const O = !o.isVisible || (o == null ? void 0 : o.isVisible(v, d)), I = M(() => O ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
192
|
+
o.before ? o.before : null,
|
|
193
|
+
l == null ? void 0 : l.renderComponent(p),
|
|
194
|
+
o.after ? o.after : null
|
|
195
|
+
] }) : null, [p, o.after, o.before, l, O, i.errors]);
|
|
196
|
+
return l ? /* @__PURE__ */ h.jsx(L, { withoutWrapper: u, children: I }) : /* @__PURE__ */ h.jsx(L, { withoutWrapper: u, children: /* @__PURE__ */ h.jsxs("p", { children: [
|
|
177
197
|
"Input component not found (internal type: ",
|
|
178
|
-
|
|
198
|
+
o.inputType,
|
|
179
199
|
")"
|
|
180
|
-
] });
|
|
200
|
+
] }) });
|
|
181
201
|
}
|
|
182
|
-
class
|
|
202
|
+
class Be {
|
|
183
203
|
getType() {
|
|
184
204
|
return this.internalType;
|
|
185
205
|
}
|
|
186
206
|
}
|
|
187
|
-
function
|
|
207
|
+
function $e(r) {
|
|
188
208
|
const {
|
|
189
209
|
mode: e = "onSubmit",
|
|
190
210
|
resolver: n,
|
|
@@ -192,27 +212,27 @@ function Ne(r) {
|
|
|
192
212
|
shouldFocusError: a,
|
|
193
213
|
// validateAfterFirstSubmit,
|
|
194
214
|
onValuesChange: s,
|
|
195
|
-
onValidationChange:
|
|
215
|
+
onValidationChange: o,
|
|
196
216
|
onSubmit: u,
|
|
197
217
|
// validate,
|
|
198
218
|
// validateDebounceInterval,
|
|
199
219
|
// validationConfig,
|
|
200
|
-
|
|
220
|
+
metadata: i,
|
|
201
221
|
children: c,
|
|
202
222
|
// fixedValues
|
|
203
223
|
autoFocusPath: f
|
|
204
|
-
} = r,
|
|
224
|
+
} = r, d = ge({
|
|
205
225
|
mode: e ?? "onSubmit",
|
|
206
226
|
reValidateMode: "onChange",
|
|
207
227
|
defaultValues: t,
|
|
208
228
|
shouldFocusError: a,
|
|
209
229
|
resolver: n
|
|
210
|
-
}), l =
|
|
230
|
+
}), l = F(!1);
|
|
211
231
|
S(() => {
|
|
212
|
-
|
|
213
|
-
}, [
|
|
232
|
+
d.reset(t, {});
|
|
233
|
+
}, [d.reset, t]), S(() => {
|
|
214
234
|
const y = requestIdleCallback(() => {
|
|
215
|
-
|
|
235
|
+
d.reset({}, {
|
|
216
236
|
keepErrors: !0,
|
|
217
237
|
keepDirty: !0,
|
|
218
238
|
keepDirtyValues: !0,
|
|
@@ -227,80 +247,80 @@ function Ne(r) {
|
|
|
227
247
|
});
|
|
228
248
|
return () => cancelIdleCallback(y);
|
|
229
249
|
}, []);
|
|
230
|
-
const { getValues:
|
|
250
|
+
const { getValues: p, handleSubmit: R } = d, v = p(), O = F(!0);
|
|
231
251
|
S(() => {
|
|
232
|
-
if (
|
|
233
|
-
|
|
252
|
+
if (O.current) {
|
|
253
|
+
O.current = !1;
|
|
234
254
|
return;
|
|
235
255
|
}
|
|
236
|
-
s == null || s({ ...
|
|
237
|
-
}, [JSON.stringify(
|
|
238
|
-
const
|
|
256
|
+
s == null || s({ ...v }), l.current === !0 && d.trigger();
|
|
257
|
+
}, [JSON.stringify(v)]);
|
|
258
|
+
const I = F(!0);
|
|
239
259
|
return S(() => {
|
|
240
|
-
if (
|
|
241
|
-
|
|
260
|
+
if (I.current) {
|
|
261
|
+
I.current = !1;
|
|
242
262
|
return;
|
|
243
263
|
}
|
|
244
|
-
|
|
245
|
-
}, [
|
|
264
|
+
o == null || o({ isValid: d.formState.isValid, isSubmitted: d.formState.isSubmitted });
|
|
265
|
+
}, [d.formState.isValid, d.formState.isSubmitted]), S(() => {
|
|
246
266
|
if (f)
|
|
247
267
|
if ("requestIdleCallback" in window) {
|
|
248
268
|
const y = requestIdleCallback(() => {
|
|
249
|
-
|
|
269
|
+
d.setFocus(f);
|
|
250
270
|
});
|
|
251
271
|
return () => cancelIdleCallback(y);
|
|
252
272
|
} else {
|
|
253
273
|
const y = setTimeout(() => {
|
|
254
|
-
|
|
274
|
+
d.setFocus(f);
|
|
255
275
|
}, 100);
|
|
256
276
|
return () => clearTimeout(y);
|
|
257
277
|
}
|
|
258
|
-
}, [
|
|
259
|
-
...
|
|
278
|
+
}, [d]), /* @__PURE__ */ h.jsx(Te, { metadata: i, children: /* @__PURE__ */ h.jsx(be, { ...d, children: typeof c == "function" ? c({
|
|
279
|
+
...d,
|
|
260
280
|
submitForm: async () => {
|
|
261
|
-
u && (l.current = !0,
|
|
281
|
+
u && (l.current = !0, R((y) => {
|
|
262
282
|
u(y);
|
|
263
283
|
})());
|
|
264
284
|
}
|
|
265
|
-
}) : c });
|
|
285
|
+
}) : c }) });
|
|
266
286
|
}
|
|
267
|
-
const
|
|
287
|
+
const Je = (r) => {
|
|
268
288
|
const e = {}, n = (t) => {
|
|
269
289
|
t.forEach((a) => {
|
|
270
|
-
const { path: s, default:
|
|
271
|
-
(u === "group" || u === "accordion") && Array.isArray(
|
|
290
|
+
const { path: s, default: o, inputType: u, inputs: i } = a;
|
|
291
|
+
(u === "group" || u === "accordion") && Array.isArray(i) ? n(i) : b(e, s) === void 0 && g(e, s, o);
|
|
272
292
|
});
|
|
273
293
|
};
|
|
274
294
|
return Array.isArray(r.inputs) && n(r.inputs), e;
|
|
275
295
|
};
|
|
276
|
-
function
|
|
296
|
+
function Le(r, e) {
|
|
277
297
|
const n = r.inputs.map((t) => {
|
|
278
|
-
const a =
|
|
298
|
+
const a = Ce(e, t.path);
|
|
279
299
|
return a || t;
|
|
280
300
|
});
|
|
281
301
|
return { ...r, inputs: n };
|
|
282
302
|
}
|
|
283
|
-
function
|
|
303
|
+
function Ce(r, e) {
|
|
284
304
|
return r.inputs.find((n) => n.path === e);
|
|
285
305
|
}
|
|
286
|
-
const
|
|
287
|
-
function
|
|
306
|
+
const z = "__temp_", Ue = (r) => z + r.split(".").join("__");
|
|
307
|
+
function We(r) {
|
|
288
308
|
const e = { ...r };
|
|
289
|
-
return
|
|
290
|
-
t.startsWith(
|
|
309
|
+
return G(e, (n, t) => {
|
|
310
|
+
t.startsWith(z) && delete e[t];
|
|
291
311
|
}), e;
|
|
292
312
|
}
|
|
293
|
-
const
|
|
313
|
+
const Ve = "Required field";
|
|
294
314
|
function T(r) {
|
|
295
315
|
const e = typeof r == "string" ? JSON.parse(r) : r;
|
|
296
316
|
if (typeof e == "string")
|
|
297
317
|
return e;
|
|
298
|
-
if (
|
|
318
|
+
if (E(e))
|
|
299
319
|
return T(e[0]);
|
|
300
320
|
const n = e;
|
|
301
|
-
return
|
|
321
|
+
return H(n) && (n != null && n.message) ? e == null ? void 0 : e.message : "Unknown error";
|
|
302
322
|
}
|
|
303
|
-
function
|
|
323
|
+
function we(r, e, n) {
|
|
304
324
|
let t = {};
|
|
305
325
|
if (w(t, r.inputs, e, n), n != null && n.prefix) {
|
|
306
326
|
const s = n == null ? void 0 : n.prefix.replace(/.$/, "");
|
|
@@ -313,109 +333,109 @@ function V(r, e, n) {
|
|
|
313
333
|
return Object.keys(r).forEach((a) => {
|
|
314
334
|
const {
|
|
315
335
|
_requiredOnly: s,
|
|
316
|
-
_schemaObj:
|
|
336
|
+
_schemaObj: o,
|
|
317
337
|
_input: u,
|
|
318
|
-
_isList:
|
|
319
|
-
_isArrayItem:
|
|
320
|
-
_schema:
|
|
338
|
+
_isList: i,
|
|
339
|
+
_isArrayItem: c,
|
|
340
|
+
_schema: f
|
|
321
341
|
/*...nestedSchemaObj*/
|
|
322
342
|
} = r[a];
|
|
323
|
-
if (
|
|
324
|
-
const
|
|
325
|
-
t[a] = d;
|
|
326
|
-
} else if (f && u) {
|
|
327
|
-
const l = i != null && i.___array ? V({ ___array: i.___array }, e, n) : { ___array: m.any() }, d = m.array(l.___array).optional(), h = W(o, u, e, n, d);
|
|
328
|
-
t[a] = h;
|
|
329
|
-
} else if (o && u) {
|
|
330
|
-
const l = Te(o, u, e, n);
|
|
343
|
+
if (i && o && u) {
|
|
344
|
+
const d = m.array(m.object(V(o, e, n))).optional(), l = U(f, u, e, n, d);
|
|
331
345
|
t[a] = l;
|
|
332
|
-
} else
|
|
346
|
+
} else if (c && u) {
|
|
347
|
+
const d = o != null && o.___array ? V({ ___array: o.___array }, e, n) : { ___array: m.any() }, l = m.array(d.___array).optional(), p = U(f, u, e, n, l);
|
|
348
|
+
t[a] = p;
|
|
349
|
+
} else if (f && u) {
|
|
350
|
+
const d = xe(f, u, e, n);
|
|
351
|
+
t[a] = d;
|
|
352
|
+
} else s && u ? t[a] = D(u, n) : t[a] = m.object(V(r[a], e, n)).optional();
|
|
333
353
|
}), t;
|
|
334
354
|
}
|
|
335
|
-
function
|
|
355
|
+
function xe(r, e, n, t) {
|
|
336
356
|
return m.any().optional().superRefine(async (a, s) => {
|
|
337
|
-
var u,
|
|
338
|
-
if (e.required && !(await
|
|
357
|
+
var u, i;
|
|
358
|
+
if (e.required && !(await D(e, t).safeParseAsync(a)).success)
|
|
339
359
|
return s.addIssue({
|
|
340
360
|
code: m.ZodIssueCode.custom,
|
|
341
|
-
message:
|
|
361
|
+
message: k(e, t)
|
|
342
362
|
}), m.NEVER;
|
|
343
363
|
if ((u = t == null ? void 0 : t.validationConfig) != null && u.globalValidation) {
|
|
344
|
-
const
|
|
345
|
-
if (
|
|
364
|
+
const c = (i = t == null ? void 0 : t.validationConfig) == null ? void 0 : i.globalValidation(a, e, t.metadata);
|
|
365
|
+
if (c.error)
|
|
346
366
|
return s.addIssue({
|
|
347
367
|
code: m.ZodIssueCode.custom,
|
|
348
|
-
message:
|
|
368
|
+
message: c.error
|
|
349
369
|
}), m.NEVER;
|
|
350
|
-
if (!
|
|
370
|
+
if (!c.continue)
|
|
351
371
|
return !0;
|
|
352
372
|
}
|
|
353
|
-
const
|
|
354
|
-
if (
|
|
355
|
-
const
|
|
356
|
-
if (!
|
|
357
|
-
const
|
|
373
|
+
const o = ee(r, n);
|
|
374
|
+
if (o) {
|
|
375
|
+
const c = await o.safeParseAsync(a);
|
|
376
|
+
if (!c.success) {
|
|
377
|
+
const f = T(c == null ? void 0 : c.error.message), d = f === "Required" ? k(e, t) : f;
|
|
358
378
|
s.addIssue({
|
|
359
379
|
code: m.ZodIssueCode.custom,
|
|
360
|
-
message:
|
|
380
|
+
message: d
|
|
361
381
|
});
|
|
362
382
|
}
|
|
363
383
|
}
|
|
364
384
|
});
|
|
365
385
|
}
|
|
366
|
-
function
|
|
367
|
-
return m.any().optional().superRefine(async (s,
|
|
368
|
-
var
|
|
369
|
-
const
|
|
370
|
-
if (e.required && !
|
|
371
|
-
const
|
|
372
|
-
return
|
|
386
|
+
function U(r, e, n, t, a) {
|
|
387
|
+
return m.any().optional().superRefine(async (s, o) => {
|
|
388
|
+
var f, d;
|
|
389
|
+
const i = await D(e, t).safeParseAsync(s);
|
|
390
|
+
if (e.required && !i.success) {
|
|
391
|
+
const l = T(i.error.message);
|
|
392
|
+
return o.addIssue({ code: m.ZodIssueCode.custom, message: l, fatal: !0 }), m.NEVER;
|
|
373
393
|
}
|
|
374
|
-
if (!e.required && !
|
|
394
|
+
if (!e.required && !i.success)
|
|
375
395
|
return m.NEVER;
|
|
376
|
-
if ((
|
|
377
|
-
const
|
|
378
|
-
if (
|
|
379
|
-
return
|
|
396
|
+
if ((f = t == null ? void 0 : t.validationConfig) != null && f.globalValidation) {
|
|
397
|
+
const l = (d = t == null ? void 0 : t.validationConfig) == null ? void 0 : d.globalValidation(s, e, t.metadata);
|
|
398
|
+
if (l.error)
|
|
399
|
+
return o.addIssue({
|
|
380
400
|
code: m.ZodIssueCode.custom,
|
|
381
|
-
message: T(
|
|
401
|
+
message: T(l.error)
|
|
382
402
|
}), m.NEVER;
|
|
383
|
-
if (!
|
|
403
|
+
if (!l.continue)
|
|
384
404
|
return m.NEVER;
|
|
385
405
|
}
|
|
386
|
-
if (!
|
|
387
|
-
return
|
|
406
|
+
if (!E(s))
|
|
407
|
+
return o.addIssue({
|
|
388
408
|
code: m.ZodIssueCode.custom,
|
|
389
409
|
message: "'Value is not array'"
|
|
390
410
|
}), m.NEVER;
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
const
|
|
394
|
-
if (!
|
|
395
|
-
return
|
|
411
|
+
const c = ee(r, n);
|
|
412
|
+
if (c) {
|
|
413
|
+
const l = await c.safeParseAsync(s);
|
|
414
|
+
if (!l.success)
|
|
415
|
+
return o.addIssue({
|
|
396
416
|
code: m.ZodIssueCode.custom,
|
|
397
|
-
message: T(
|
|
417
|
+
message: T(l.error.message)
|
|
398
418
|
}), m.NEVER;
|
|
399
419
|
}
|
|
400
420
|
}).pipe(a ?? m.any());
|
|
401
421
|
}
|
|
402
422
|
function w(r, e, n, t, a) {
|
|
403
423
|
e.forEach((s) => {
|
|
404
|
-
var u, c, f,
|
|
405
|
-
const
|
|
406
|
-
if (!s.isVisible || (u = s.isVisible) != null && u.call(s,
|
|
407
|
-
const
|
|
408
|
-
if ((
|
|
424
|
+
var u, i, c, f, d;
|
|
425
|
+
const o = n;
|
|
426
|
+
if (!s.isVisible || (u = s.isVisible) != null && u.call(s, o, t == null ? void 0 : t.metadata)) {
|
|
427
|
+
const l = b(r, s.path);
|
|
428
|
+
if ((i = s.validation) != null && i.schema ? g(
|
|
409
429
|
r,
|
|
410
430
|
s.path,
|
|
411
|
-
|
|
412
|
-
_schema: (
|
|
431
|
+
C(l, {
|
|
432
|
+
_schema: (c = s.validation) == null ? void 0 : c.schema,
|
|
413
433
|
_input: s
|
|
414
434
|
})
|
|
415
|
-
) : s.required && g(r, s.path,
|
|
416
|
-
const
|
|
435
|
+
) : s.required && g(r, s.path, C(l, { _requiredOnly: !0, _input: s })), s.inputs && w(r, s.inputs, n, t), s.inputType === "list") {
|
|
436
|
+
const p = {};
|
|
417
437
|
w(
|
|
418
|
-
|
|
438
|
+
p,
|
|
419
439
|
s.inputConfig.inputs.map((v) => ({
|
|
420
440
|
...v,
|
|
421
441
|
path: v.relativePath
|
|
@@ -423,22 +443,22 @@ function w(r, e, n, t, a) {
|
|
|
423
443
|
n,
|
|
424
444
|
t
|
|
425
445
|
);
|
|
426
|
-
const
|
|
427
|
-
g(r, s.path,
|
|
446
|
+
const R = b(r, s.path);
|
|
447
|
+
g(r, s.path, C(R, { _schemaObj: p, _isList: !0, _input: s }));
|
|
428
448
|
}
|
|
429
|
-
if (!((
|
|
430
|
-
const
|
|
449
|
+
if (!((f = s.validation) != null && f.schema) && s.inputType === "array") {
|
|
450
|
+
const p = {};
|
|
431
451
|
w(
|
|
432
|
-
|
|
452
|
+
p,
|
|
433
453
|
[{ ...s.inputConfig.input, path: "___array" }],
|
|
434
454
|
n,
|
|
435
455
|
t
|
|
436
456
|
), g(
|
|
437
457
|
r,
|
|
438
458
|
s.path,
|
|
439
|
-
|
|
440
|
-
_schemaObj:
|
|
441
|
-
_schema: (
|
|
459
|
+
C(l, {
|
|
460
|
+
_schemaObj: p,
|
|
461
|
+
_schema: (d = s.validation) == null ? void 0 : d.schema,
|
|
442
462
|
_isArrayItem: !0,
|
|
443
463
|
_input: s
|
|
444
464
|
})
|
|
@@ -447,75 +467,75 @@ function w(r, e, n, t, a) {
|
|
|
447
467
|
}
|
|
448
468
|
});
|
|
449
469
|
}
|
|
450
|
-
function
|
|
470
|
+
function k(r, e) {
|
|
451
471
|
var n, t, a;
|
|
452
|
-
return ((t = (n = e == null ? void 0 : e.validationConfig) == null ? void 0 : n.requiredMessagePerInput) == null ? void 0 : t[r.inputType]) ?? ((a = e == null ? void 0 : e.validationConfig) == null ? void 0 : a.requiredMessage) ??
|
|
472
|
+
return ((t = (n = e == null ? void 0 : e.validationConfig) == null ? void 0 : n.requiredMessagePerInput) == null ? void 0 : t[r.inputType]) ?? ((a = e == null ? void 0 : e.validationConfig) == null ? void 0 : a.requiredMessage) ?? Ve;
|
|
453
473
|
}
|
|
454
|
-
function
|
|
455
|
-
var t, a, s,
|
|
474
|
+
function D(r, e) {
|
|
475
|
+
var t, a, s, o, u, i;
|
|
456
476
|
if ((a = (t = e == null ? void 0 : e.validationConfig) == null ? void 0 : t.requiredSchemaPerInput) != null && a[r.inputType])
|
|
457
|
-
return (
|
|
477
|
+
return (o = (s = e == null ? void 0 : e.validationConfig) == null ? void 0 : s.requiredSchemaPerInput) == null ? void 0 : o[r.inputType];
|
|
458
478
|
if ((u = e == null ? void 0 : e.validationConfig) != null && u.requiredSchema)
|
|
459
|
-
return (
|
|
460
|
-
const n =
|
|
461
|
-
return m.any().optional().superRefine((
|
|
462
|
-
typeof
|
|
479
|
+
return (i = e == null ? void 0 : e.validationConfig) == null ? void 0 : i.requiredSchema;
|
|
480
|
+
const n = k(r, e);
|
|
481
|
+
return m.any().optional().superRefine((c, f) => {
|
|
482
|
+
typeof c == "object" && j(c) && f.addIssue({
|
|
463
483
|
code: m.ZodIssueCode.custom,
|
|
464
484
|
message: n
|
|
465
|
-
}), (
|
|
485
|
+
}), (P(c) || c === "") && f.addIssue({
|
|
466
486
|
code: m.ZodIssueCode.custom,
|
|
467
487
|
message: n
|
|
468
488
|
});
|
|
469
489
|
});
|
|
470
490
|
}
|
|
471
|
-
function
|
|
491
|
+
function ee(r, e) {
|
|
472
492
|
if (r instanceof m.ZodType)
|
|
473
493
|
return r;
|
|
474
494
|
if (typeof r == "function")
|
|
475
495
|
return r(e);
|
|
476
496
|
}
|
|
477
|
-
const
|
|
497
|
+
const Pe = (r) => Array.isArray(r == null ? void 0 : r.errors), qe = (r, e) => {
|
|
478
498
|
const n = {};
|
|
479
499
|
for (; r.length; ) {
|
|
480
|
-
const t = r[0], { code: a, message: s, path:
|
|
500
|
+
const t = r[0], { code: a, message: s, path: o } = t, u = o.join(".");
|
|
481
501
|
if (!n[u])
|
|
482
502
|
if ("unionErrors" in t) {
|
|
483
|
-
const
|
|
503
|
+
const i = t.unionErrors[0].errors[0];
|
|
484
504
|
n[u] = {
|
|
485
|
-
message:
|
|
486
|
-
type:
|
|
505
|
+
message: i.message,
|
|
506
|
+
type: i.code
|
|
487
507
|
};
|
|
488
508
|
} else
|
|
489
509
|
n[u] = { message: s, type: a };
|
|
490
|
-
"unionErrors" in t && t.unionErrors.forEach((
|
|
510
|
+
"unionErrors" in t && t.unionErrors.forEach((i) => i.errors.forEach((c) => r.push(c)));
|
|
491
511
|
{
|
|
492
|
-
const
|
|
493
|
-
n[u] =
|
|
512
|
+
const i = n[u].types, c = i && i[t.code];
|
|
513
|
+
n[u] = ve(
|
|
494
514
|
u,
|
|
495
515
|
e,
|
|
496
516
|
n,
|
|
497
517
|
a,
|
|
498
|
-
|
|
518
|
+
c ? [].concat(c, t.message) : t.message
|
|
499
519
|
);
|
|
500
520
|
}
|
|
501
521
|
r.shift();
|
|
502
522
|
}
|
|
503
523
|
return n;
|
|
504
524
|
};
|
|
505
|
-
function
|
|
506
|
-
return
|
|
525
|
+
function Ge(r, e) {
|
|
526
|
+
return me(
|
|
507
527
|
async (n, t, a) => {
|
|
508
528
|
try {
|
|
509
|
-
return await
|
|
529
|
+
return await we(r, n, e).parseAsync(n), {
|
|
510
530
|
values: n,
|
|
511
531
|
// TODO: check this - values does not contains all data
|
|
512
532
|
errors: {}
|
|
513
533
|
};
|
|
514
534
|
} catch (s) {
|
|
515
|
-
if (
|
|
535
|
+
if (Pe(s))
|
|
516
536
|
return {
|
|
517
537
|
values: {},
|
|
518
|
-
errors:
|
|
538
|
+
errors: _e(qe(s.errors, !0), a)
|
|
519
539
|
};
|
|
520
540
|
throw s;
|
|
521
541
|
}
|
|
@@ -523,54 +543,54 @@ function Me(r, e) {
|
|
|
523
543
|
[r]
|
|
524
544
|
);
|
|
525
545
|
}
|
|
526
|
-
function
|
|
527
|
-
const n =
|
|
546
|
+
function He(r, e) {
|
|
547
|
+
const n = x(r);
|
|
528
548
|
return e.forEach((t) => {
|
|
529
|
-
t.inputTransform && (
|
|
530
|
-
const
|
|
549
|
+
t.inputTransform && (E(t.inputTransform) ? t.inputTransform : [t.inputTransform]).forEach((s) => {
|
|
550
|
+
const o = b(n, t.path), u = s(o, n);
|
|
531
551
|
u && g(n, u.path ?? t.path, u.value);
|
|
532
552
|
});
|
|
533
553
|
}), n;
|
|
534
554
|
}
|
|
535
|
-
function
|
|
536
|
-
const n =
|
|
555
|
+
function Qe(r, e) {
|
|
556
|
+
const n = x(r);
|
|
537
557
|
return e.forEach((t) => {
|
|
538
|
-
t.outputTransform && (
|
|
539
|
-
const
|
|
558
|
+
t.outputTransform && (E(t.outputTransform) ? t.outputTransform : [t.outputTransform]).forEach((s) => {
|
|
559
|
+
const o = b(n, t.path), u = s(o, n);
|
|
540
560
|
u && g(n, u.path ?? t.path, u.value);
|
|
541
561
|
});
|
|
542
562
|
}), n;
|
|
543
563
|
}
|
|
544
|
-
function
|
|
545
|
-
return r.reduce((n, t) => (t.inputType === "group" || t.inputType === "accordion") && t.inputs ? [...n, t,
|
|
564
|
+
function Z(r) {
|
|
565
|
+
return r.reduce((n, t) => (t.inputType === "group" || t.inputType === "accordion") && t.inputs ? [...n, t, ...Z(t.inputs)] : [...n, t], []);
|
|
546
566
|
}
|
|
547
|
-
function
|
|
548
|
-
const n =
|
|
567
|
+
function Xe(r) {
|
|
568
|
+
const n = Z(r.inputs).reduce((t, a) => {
|
|
549
569
|
const s = a.inputType === "text" || a.inputType === "boolean" || a.inputType === "number" || a.inputType === "textarea" || a.inputType === "select";
|
|
550
570
|
return (a.inputTransform || a.outputTransform) && t.push({
|
|
551
|
-
...
|
|
571
|
+
...ae(a, "path", "inputTransform", "outputTransform"),
|
|
552
572
|
level: a.path.split(".").length,
|
|
553
573
|
isPrimitive: s
|
|
554
574
|
}), t;
|
|
555
575
|
}, []);
|
|
556
576
|
return n.sort((t, a) => t.level === a.level ? t.isPrimitive ? 1 : -1 : t.level > a.level ? -1 : 1), n;
|
|
557
577
|
}
|
|
558
|
-
function
|
|
559
|
-
const t =
|
|
578
|
+
function Ye(r, e, n) {
|
|
579
|
+
const t = Z(r.inputs), a = x(e);
|
|
560
580
|
return t.forEach((s) => {
|
|
561
|
-
s.isVisible && !s.isVisible(e, n) &&
|
|
581
|
+
s.isVisible && !s.isVisible(e, n) && ue(a, s.path);
|
|
562
582
|
}), a;
|
|
563
583
|
}
|
|
564
|
-
function
|
|
584
|
+
function Ke(r) {
|
|
565
585
|
const e = {}, n = (t) => {
|
|
566
586
|
t.forEach((a) => {
|
|
567
|
-
const { default: s, path:
|
|
568
|
-
(u === "group" || u === "accordion") && Array.isArray(
|
|
587
|
+
const { default: s, path: o, inputType: u, inputs: i } = a;
|
|
588
|
+
(u === "group" || u === "accordion") && Array.isArray(i) ? n(i) : s !== void 0 && g(e, o, s);
|
|
569
589
|
});
|
|
570
590
|
};
|
|
571
591
|
return Array.isArray(r.inputs) && n(r.inputs), e;
|
|
572
592
|
}
|
|
573
|
-
function
|
|
593
|
+
function ze() {
|
|
574
594
|
return function(r, e) {
|
|
575
595
|
if (!(typeof r > "u"))
|
|
576
596
|
return r ? {
|
|
@@ -578,7 +598,7 @@ function Ge() {
|
|
|
578
598
|
} : { value: r };
|
|
579
599
|
};
|
|
580
600
|
}
|
|
581
|
-
function
|
|
601
|
+
function er(r) {
|
|
582
602
|
return function(e, n) {
|
|
583
603
|
if (typeof e > "u") return;
|
|
584
604
|
if (!e) return { value: e };
|
|
@@ -588,64 +608,64 @@ function He(r) {
|
|
|
588
608
|
return r != null && r.unsetIfEmpty && Object.getOwnPropertyNames(t.value).length === 0 ? { value: void 0 } : t;
|
|
589
609
|
};
|
|
590
610
|
}
|
|
591
|
-
function
|
|
611
|
+
function rr() {
|
|
592
612
|
return function(r, e) {
|
|
593
613
|
if (!(typeof r > "u"))
|
|
594
|
-
return
|
|
614
|
+
return E(r) && j(r) ? { value: void 0 } : { value: r };
|
|
595
615
|
};
|
|
596
616
|
}
|
|
597
|
-
function
|
|
617
|
+
function tr(r) {
|
|
598
618
|
return function(e, n) {
|
|
599
619
|
const t = r ? b(n, r) : e;
|
|
600
620
|
if (!(typeof t > "u")) {
|
|
601
|
-
if (
|
|
602
|
-
if (
|
|
603
|
-
const a =
|
|
604
|
-
if (
|
|
621
|
+
if (Q(t)) return { value: void 0, path: r };
|
|
622
|
+
if (H(t)) {
|
|
623
|
+
const a = X(t, oe);
|
|
624
|
+
if (j(a))
|
|
605
625
|
return { value: void 0, path: r };
|
|
606
626
|
}
|
|
607
627
|
return { value: t, path: r };
|
|
608
628
|
}
|
|
609
629
|
};
|
|
610
630
|
}
|
|
611
|
-
function
|
|
631
|
+
function nr() {
|
|
612
632
|
return function(r, e) {
|
|
613
633
|
if (!(typeof r > "u"))
|
|
614
|
-
return
|
|
634
|
+
return ie(r) && j(r) ? { value: void 0 } : { value: r };
|
|
615
635
|
};
|
|
616
636
|
}
|
|
617
|
-
function
|
|
637
|
+
function sr(r) {
|
|
618
638
|
return function(e, n) {
|
|
619
639
|
const t = b(n, r);
|
|
620
640
|
return typeof t == "string" ? { value: t } : { value: e };
|
|
621
641
|
};
|
|
622
642
|
}
|
|
623
|
-
function
|
|
643
|
+
function ar(r) {
|
|
624
644
|
return function(e, n) {
|
|
625
645
|
if (typeof e > "u") return;
|
|
626
646
|
if (!e) return { value: e };
|
|
627
647
|
const t = b(n, r);
|
|
628
648
|
if (typeof t == "object") {
|
|
629
|
-
const a =
|
|
649
|
+
const a = Fe(t);
|
|
630
650
|
if (Object.getOwnPropertyNames(a).length === 1)
|
|
631
651
|
return { value: e, path: r };
|
|
632
652
|
}
|
|
633
653
|
return { value: e };
|
|
634
654
|
};
|
|
635
655
|
}
|
|
636
|
-
function
|
|
656
|
+
function ur(r) {
|
|
637
657
|
return function(e, n) {
|
|
638
658
|
if (typeof e > "u") return;
|
|
639
659
|
const t = b(n, r);
|
|
640
660
|
return typeof t == "string" ? { value: [t] } : { value: e };
|
|
641
661
|
};
|
|
642
662
|
}
|
|
643
|
-
function
|
|
663
|
+
function or(r, e) {
|
|
644
664
|
return function(n, t) {
|
|
645
665
|
if (typeof n > "u") return;
|
|
646
666
|
if (!n) return { value: n };
|
|
647
667
|
const a = b(t, r);
|
|
648
|
-
if (
|
|
668
|
+
if (E(a)) {
|
|
649
669
|
if (a.length === 1)
|
|
650
670
|
return { value: a[0], path: r };
|
|
651
671
|
if (a.length === 0 && e != null && e.unsetIfEmpty)
|
|
@@ -654,72 +674,74 @@ function rr(r, e) {
|
|
|
654
674
|
return { value: n };
|
|
655
675
|
};
|
|
656
676
|
}
|
|
657
|
-
function
|
|
658
|
-
return typeof r == "object" ? !Object.getOwnPropertyNames(r).some((e) => !
|
|
659
|
-
}
|
|
660
|
-
function Ie(r) {
|
|
661
|
-
return Q(r, (e) => typeof e == "object" ? z(e) : q(e));
|
|
677
|
+
function re(r) {
|
|
678
|
+
return typeof r == "object" ? !Object.getOwnPropertyNames(r).some((e) => !re(r[e])) : P(r);
|
|
662
679
|
}
|
|
663
|
-
function
|
|
664
|
-
|
|
665
|
-
return n ? /* @__PURE__ */ p.jsx(J, { path: `${t}${r.path}`, factory: e, readonly: !1, input: r }) : /* @__PURE__ */ p.jsx("div", { children: /* @__PURE__ */ p.jsx(J, { path: `${t}${r.path}`, factory: e, readonly: !1, input: r }) });
|
|
680
|
+
function Fe(r) {
|
|
681
|
+
return X(r, (e) => typeof e == "object" ? re(e) : P(e));
|
|
666
682
|
}
|
|
667
|
-
function
|
|
668
|
-
const { items: e,
|
|
669
|
-
return /* @__PURE__ */
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
683
|
+
function W(r) {
|
|
684
|
+
const { items: e, ...n } = r;
|
|
685
|
+
return /* @__PURE__ */ h.jsx(h.Fragment, { children: e.map((t) => /* @__PURE__ */ h.jsx(
|
|
686
|
+
Ie,
|
|
687
|
+
{
|
|
688
|
+
input: t,
|
|
689
|
+
path: t.path,
|
|
690
|
+
readonly: !1,
|
|
691
|
+
...n
|
|
692
|
+
},
|
|
693
|
+
`${t.inputType}_${t.path}_${t.label}`
|
|
694
|
+
)) });
|
|
673
695
|
}
|
|
674
|
-
const
|
|
696
|
+
const Ae = he((r, e) => {
|
|
675
697
|
const { inputs: n, className: t, factory: a, withoutWrapper: s } = r;
|
|
676
|
-
return s ? /* @__PURE__ */
|
|
698
|
+
return s ? /* @__PURE__ */ h.jsxs(pe, { children: [
|
|
677
699
|
n.hero,
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
-
] }) : /* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ h.jsx(W, { items: n.inputs, factory: a, withoutWrapper: s })
|
|
701
|
+
] }) : /* @__PURE__ */ h.jsxs("div", { className: t, ref: e, children: [
|
|
680
702
|
n.hero,
|
|
681
|
-
/* @__PURE__ */
|
|
703
|
+
/* @__PURE__ */ h.jsx(W, { items: n.inputs, factory: a, withoutWrapper: s })
|
|
682
704
|
] });
|
|
683
705
|
});
|
|
684
|
-
|
|
685
|
-
function
|
|
706
|
+
Ae.displayName = "RenderForm";
|
|
707
|
+
function ir(r) {
|
|
686
708
|
let e = !0;
|
|
687
|
-
return
|
|
688
|
-
e = e && (n === "" ||
|
|
709
|
+
return G(r, (n) => {
|
|
710
|
+
e = e && (n === "" || Q(n) || P(n));
|
|
689
711
|
}), e;
|
|
690
712
|
}
|
|
691
|
-
const
|
|
713
|
+
const cr = (r = "") => ce(r.split("_").join(" "));
|
|
692
714
|
export {
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
$e as overrideFormDefinition,
|
|
715
|
+
Be as InputComponent,
|
|
716
|
+
Ie as InputComponentRenderer,
|
|
717
|
+
Y as InputFactory,
|
|
718
|
+
Ee as InputOverrideError,
|
|
719
|
+
Ae as RenderForm,
|
|
720
|
+
W as RenderInputs,
|
|
721
|
+
$e as RootForm,
|
|
722
|
+
er as arrayToObjectOutputTransformer,
|
|
723
|
+
Ke as collectDefaultValues,
|
|
724
|
+
cr as generateReadableLabel,
|
|
725
|
+
Je as getDefaultValuesFromFormDefinition,
|
|
726
|
+
Ue as getTemporaryPath,
|
|
727
|
+
Xe as getTransformers,
|
|
728
|
+
we as getValidationSchema,
|
|
729
|
+
He as inputTransformValues,
|
|
730
|
+
ir as isChildrenEmpty,
|
|
731
|
+
ze as objectToArrayInputTransformer,
|
|
732
|
+
Qe as outputTransformValues,
|
|
733
|
+
Le as overrideFormDefinition,
|
|
713
734
|
T as processValidationParseResponse,
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
735
|
+
We as removeTemporaryFieldsValue,
|
|
736
|
+
ur as shorthandArrayInputTransformer,
|
|
737
|
+
or as shorthandArrayOutputTransformer,
|
|
738
|
+
sr as shorthandObjectInputTransformer,
|
|
739
|
+
ar as shorthandObjectOutputTransformer,
|
|
740
|
+
rr as unsetEmptyArrayOutputTransformer,
|
|
741
|
+
tr as unsetEmptyObjectOutputTransformer,
|
|
742
|
+
nr as unsetEmptyStringOutputTransformer,
|
|
743
|
+
Ye as unsetHiddenInputsValues,
|
|
744
|
+
je as useRootFormContext,
|
|
745
|
+
Ge as useZodValidationResolver
|
|
724
746
|
};
|
|
725
747
|
//# sourceMappingURL=index.js.map
|