react-hook-form-cloudscape 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/components/cards/cards.d.ts +9 -0
- package/components/cards/cards.js +14 -0
- package/components/cards/cards.js.map +1 -0
- package/components/cards/index.d.ts +1 -0
- package/components/cards/index.js +2 -0
- package/components/cards/index.js.map +1 -0
- package/components/components/cards/cards.d.ts +9 -0
- package/components/components/cards/index.d.ts +1 -0
- package/components/components/index.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/package.json +1 -1
- package/react-hook-form-cloudscape.es.js +390 -369
- package/react-hook-form-cloudscape.es.js.map +1 -1
- package/react-hook-form-cloudscape.umd.js +8 -8
- package/react-hook-form-cloudscape.umd.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import we, { useMemo as br, useCallback as
|
|
2
|
-
import { AttributeEditor as
|
|
3
|
-
import { useFormState as
|
|
1
|
+
import we, { useMemo as br, useCallback as g } from "react";
|
|
2
|
+
import { AttributeEditor as Er, Autosuggest as hr, Checkbox as mr, Cards as yr, CodeEditor as _r, DatePicker as Rr, DateRangePicker as gr, Input as xr, Multiselect as Tr, RadioGroup as jr, Select as Or, TagEditor as Sr, TextFilter as Pr, Textarea as wr, Tiles as kr, TimeInput as Cr, Toggle as Dr } from "@cloudscape-design/components";
|
|
3
|
+
import { useFormState as Fr, useFieldArray as Ar, get as Ir, Controller as S } from "react-hook-form";
|
|
4
4
|
var re = { exports: {} }, U = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -12,16 +12,16 @@ var re = { exports: {} }, U = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Se;
|
|
15
|
-
function
|
|
15
|
+
function $r() {
|
|
16
16
|
if (Se) return U;
|
|
17
17
|
Se = 1;
|
|
18
|
-
var
|
|
19
|
-
function t(v, p,
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
for (
|
|
23
|
-
if (v && v.defaultProps) for (
|
|
24
|
-
return { $$typeof: u, type: v, key: x, ref: _, props: d, _owner:
|
|
18
|
+
var s = we, u = Symbol.for("react.element"), n = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, o = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function t(v, p, R) {
|
|
20
|
+
var f, d = {}, x = null, _ = null;
|
|
21
|
+
R !== void 0 && (x = "" + R), p.key !== void 0 && (x = "" + p.key), p.ref !== void 0 && (_ = p.ref);
|
|
22
|
+
for (f in p) l.call(p, f) && !a.hasOwnProperty(f) && (d[f] = p[f]);
|
|
23
|
+
if (v && v.defaultProps) for (f in p = v.defaultProps, p) d[f] === void 0 && (d[f] = p[f]);
|
|
24
|
+
return { $$typeof: u, type: v, key: x, ref: _, props: d, _owner: o.current };
|
|
25
25
|
}
|
|
26
26
|
return U.Fragment = n, U.jsx = t, U.jsxs = t, U;
|
|
27
27
|
}
|
|
@@ -36,17 +36,17 @@ var V = {};
|
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
38
|
var Pe;
|
|
39
|
-
function
|
|
39
|
+
function Wr() {
|
|
40
40
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var
|
|
41
|
+
var s = we, u = Symbol.for("react.element"), n = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), v = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), j = Symbol.iterator, D = "@@iterator";
|
|
42
42
|
function Fe(e) {
|
|
43
43
|
if (e === null || typeof e != "object")
|
|
44
44
|
return null;
|
|
45
45
|
var r = j && e[j] || e[D];
|
|
46
46
|
return typeof r == "function" ? r : null;
|
|
47
47
|
}
|
|
48
|
-
var $ =
|
|
49
|
-
function
|
|
48
|
+
var $ = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
|
+
function P(e) {
|
|
50
50
|
{
|
|
51
51
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
52
52
|
i[c - 1] = arguments[c];
|
|
@@ -55,18 +55,18 @@ function $r() {
|
|
|
55
55
|
}
|
|
56
56
|
function Ae(e, r, i) {
|
|
57
57
|
{
|
|
58
|
-
var c = $.ReactDebugCurrentFrame,
|
|
59
|
-
|
|
60
|
-
var
|
|
61
|
-
return String(
|
|
58
|
+
var c = $.ReactDebugCurrentFrame, m = c.getStackAddendum();
|
|
59
|
+
m !== "" && (r += "%s", i = i.concat([m]));
|
|
60
|
+
var y = i.map(function(E) {
|
|
61
|
+
return String(E);
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, y);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
var Ie = !1, $e = !1, We = !1, Ye = !1, Me = !1, te;
|
|
67
67
|
te = Symbol.for("react.module.reference");
|
|
68
68
|
function Le(e) {
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
69
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === a || Me || e === o || e === R || e === f || Ye || e === _ || Ie || $e || We || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === d || e.$$typeof === t || e.$$typeof === v || e.$$typeof === p || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
@@ -76,8 +76,8 @@ function $r() {
|
|
|
76
76
|
var c = e.displayName;
|
|
77
77
|
if (c)
|
|
78
78
|
return c;
|
|
79
|
-
var
|
|
80
|
-
return
|
|
79
|
+
var m = r.displayName || r.name || "";
|
|
80
|
+
return m !== "" ? i + "(" + m + ")" : i;
|
|
81
81
|
}
|
|
82
82
|
function ne(e) {
|
|
83
83
|
return e.displayName || "Context";
|
|
@@ -85,22 +85,22 @@ function $r() {
|
|
|
85
85
|
function F(e) {
|
|
86
86
|
if (e == null)
|
|
87
87
|
return null;
|
|
88
|
-
if (typeof e.tag == "number" &&
|
|
88
|
+
if (typeof e.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
89
89
|
return e.displayName || e.name || null;
|
|
90
90
|
if (typeof e == "string")
|
|
91
91
|
return e;
|
|
92
92
|
switch (e) {
|
|
93
|
-
case
|
|
93
|
+
case l:
|
|
94
94
|
return "Fragment";
|
|
95
95
|
case n:
|
|
96
96
|
return "Portal";
|
|
97
97
|
case a:
|
|
98
98
|
return "Profiler";
|
|
99
|
-
case
|
|
99
|
+
case o:
|
|
100
100
|
return "StrictMode";
|
|
101
|
-
case
|
|
101
|
+
case R:
|
|
102
102
|
return "Suspense";
|
|
103
|
-
case
|
|
103
|
+
case f:
|
|
104
104
|
return "SuspenseList";
|
|
105
105
|
}
|
|
106
106
|
if (typeof e == "object")
|
|
@@ -117,9 +117,9 @@ function $r() {
|
|
|
117
117
|
var c = e.displayName || null;
|
|
118
118
|
return c !== null ? c : F(e.type) || "Memo";
|
|
119
119
|
case x: {
|
|
120
|
-
var
|
|
120
|
+
var m = e, y = m._payload, E = m._init;
|
|
121
121
|
try {
|
|
122
|
-
return F(
|
|
122
|
+
return F(E(y));
|
|
123
123
|
} catch {
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
@@ -127,14 +127,14 @@ function $r() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var A = Object.assign, M = 0, ae, ie,
|
|
130
|
+
var A = Object.assign, M = 0, ae, ie, se, le, ue, oe, fe;
|
|
131
131
|
function ce() {
|
|
132
132
|
}
|
|
133
133
|
ce.__reactDisabledLog = !0;
|
|
134
134
|
function Ve() {
|
|
135
135
|
{
|
|
136
136
|
if (M === 0) {
|
|
137
|
-
ae = console.log, ie = console.info,
|
|
137
|
+
ae = console.log, ie = console.info, se = console.warn, le = console.error, ue = console.group, oe = console.groupCollapsed, fe = console.groupEnd;
|
|
138
138
|
var e = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -170,10 +170,10 @@ function $r() {
|
|
|
170
170
|
value: ie
|
|
171
171
|
}),
|
|
172
172
|
warn: A({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: se
|
|
174
174
|
}),
|
|
175
175
|
error: A({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: le
|
|
177
177
|
}),
|
|
178
178
|
group: A({}, e, {
|
|
179
179
|
value: ue
|
|
@@ -186,7 +186,7 @@ function $r() {
|
|
|
186
186
|
})
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
M < 0 &&
|
|
189
|
+
M < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
var K = $.ReactCurrentDispatcher, z;
|
|
@@ -195,8 +195,8 @@ function $r() {
|
|
|
195
195
|
if (z === void 0)
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
|
-
} catch (
|
|
199
|
-
var c =
|
|
198
|
+
} catch (m) {
|
|
199
|
+
var c = m.stack.trim().match(/\n( *(at )?)/);
|
|
200
200
|
z = c && c[1] || "";
|
|
201
201
|
}
|
|
202
202
|
return `
|
|
@@ -218,33 +218,33 @@ function $r() {
|
|
|
218
218
|
}
|
|
219
219
|
var c;
|
|
220
220
|
X = !0;
|
|
221
|
-
var
|
|
221
|
+
var m = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var y;
|
|
224
|
+
y = K.current, K.current = null, Ve();
|
|
225
225
|
try {
|
|
226
226
|
if (r) {
|
|
227
|
-
var
|
|
227
|
+
var E = function() {
|
|
228
228
|
throw Error();
|
|
229
229
|
};
|
|
230
|
-
if (Object.defineProperty(
|
|
230
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
231
231
|
set: function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
}
|
|
234
234
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
235
|
try {
|
|
236
|
-
Reflect.construct(
|
|
236
|
+
Reflect.construct(E, []);
|
|
237
237
|
} catch (k) {
|
|
238
238
|
c = k;
|
|
239
239
|
}
|
|
240
|
-
Reflect.construct(e, [],
|
|
240
|
+
Reflect.construct(e, [], E);
|
|
241
241
|
} else {
|
|
242
242
|
try {
|
|
243
|
-
|
|
243
|
+
E.call();
|
|
244
244
|
} catch (k) {
|
|
245
245
|
c = k;
|
|
246
246
|
}
|
|
247
|
-
e.call(
|
|
247
|
+
e.call(E.prototype);
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
@@ -257,14 +257,14 @@ function $r() {
|
|
|
257
257
|
} catch (k) {
|
|
258
258
|
if (k && c && typeof k.stack == "string") {
|
|
259
259
|
for (var b = k.stack.split(`
|
|
260
|
-
`),
|
|
261
|
-
`), T = b.length - 1, O =
|
|
260
|
+
`), w = c.stack.split(`
|
|
261
|
+
`), T = b.length - 1, O = w.length - 1; T >= 1 && O >= 0 && b[T] !== w[O]; )
|
|
262
262
|
O--;
|
|
263
263
|
for (; T >= 1 && O >= 0; T--, O--)
|
|
264
|
-
if (b[T] !==
|
|
264
|
+
if (b[T] !== w[O]) {
|
|
265
265
|
if (T !== 1 || O !== 1)
|
|
266
266
|
do
|
|
267
|
-
if (T--, O--, O < 0 || b[T] !==
|
|
267
|
+
if (T--, O--, O < 0 || b[T] !== w[O]) {
|
|
268
268
|
var C = `
|
|
269
269
|
` + b[T].replace(" at new ", " at ");
|
|
270
270
|
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && J.set(e, C), C;
|
|
@@ -274,7 +274,7 @@ function $r() {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
X = !1, K.current =
|
|
277
|
+
X = !1, K.current = y, Ne(), Error.prepareStackTrace = m;
|
|
278
278
|
}
|
|
279
279
|
var Y = e ? e.displayName || e.name : "", I = Y ? N(Y) : "";
|
|
280
280
|
return typeof e == "function" && J.set(e, I), I;
|
|
@@ -294,9 +294,9 @@ function $r() {
|
|
|
294
294
|
if (typeof e == "string")
|
|
295
295
|
return N(e);
|
|
296
296
|
switch (e) {
|
|
297
|
-
case
|
|
297
|
+
case R:
|
|
298
298
|
return N("Suspense");
|
|
299
|
-
case
|
|
299
|
+
case f:
|
|
300
300
|
return N("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof e == "object")
|
|
@@ -306,9 +306,9 @@ function $r() {
|
|
|
306
306
|
case d:
|
|
307
307
|
return q(e.type, r, i);
|
|
308
308
|
case x: {
|
|
309
|
-
var c = e,
|
|
309
|
+
var c = e, m = c._payload, y = c._init;
|
|
310
310
|
try {
|
|
311
|
-
return q(m
|
|
311
|
+
return q(y(m), r, i);
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
@@ -323,22 +323,22 @@ function $r() {
|
|
|
323
323
|
} else
|
|
324
324
|
pe.setExtraStackFrame(null);
|
|
325
325
|
}
|
|
326
|
-
function Ke(e, r, i, c,
|
|
326
|
+
function Ke(e, r, i, c, m) {
|
|
327
327
|
{
|
|
328
|
-
var
|
|
329
|
-
for (var
|
|
330
|
-
if (
|
|
328
|
+
var y = Function.call.bind(L);
|
|
329
|
+
for (var E in e)
|
|
330
|
+
if (y(e, E)) {
|
|
331
331
|
var b = void 0;
|
|
332
332
|
try {
|
|
333
|
-
if (typeof e[
|
|
334
|
-
var
|
|
335
|
-
throw
|
|
333
|
+
if (typeof e[E] != "function") {
|
|
334
|
+
var w = Error((c || "React class") + ": " + i + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw w.name = "Invariant Violation", w;
|
|
336
336
|
}
|
|
337
|
-
b = e[
|
|
337
|
+
b = e[E](r, E, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
338
|
} catch (T) {
|
|
339
339
|
b = T;
|
|
340
340
|
}
|
|
341
|
-
b && !(b instanceof Error) && (G(
|
|
341
|
+
b && !(b instanceof Error) && (G(m), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", i, E, typeof b), G(null)), b instanceof Error && !(b.message in ve) && (ve[b.message] = !0, G(m), P("Failed %s type: %s", i, b.message), G(null));
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -362,16 +362,16 @@ function $r() {
|
|
|
362
362
|
function be(e) {
|
|
363
363
|
return "" + e;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ee(e) {
|
|
366
366
|
if (He(e))
|
|
367
|
-
return
|
|
367
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), be(e);
|
|
368
368
|
}
|
|
369
|
-
var
|
|
369
|
+
var he = $.ReactCurrentOwner, Ze = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
373
373
|
__source: !0
|
|
374
|
-
},
|
|
374
|
+
}, me, ye;
|
|
375
375
|
function Qe(e) {
|
|
376
376
|
if (L.call(e, "ref")) {
|
|
377
377
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -389,12 +389,12 @@ function $r() {
|
|
|
389
389
|
return e.key !== void 0;
|
|
390
390
|
}
|
|
391
391
|
function er(e, r) {
|
|
392
|
-
typeof e.ref == "string" &&
|
|
392
|
+
typeof e.ref == "string" && he.current;
|
|
393
393
|
}
|
|
394
394
|
function rr(e, r) {
|
|
395
395
|
{
|
|
396
396
|
var i = function() {
|
|
397
|
-
|
|
397
|
+
me || (me = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
398
398
|
};
|
|
399
399
|
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
400
400
|
get: i,
|
|
@@ -405,7 +405,7 @@ function $r() {
|
|
|
405
405
|
function tr(e, r) {
|
|
406
406
|
{
|
|
407
407
|
var i = function() {
|
|
408
|
-
|
|
408
|
+
ye || (ye = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
409
409
|
};
|
|
410
410
|
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
411
411
|
get: i,
|
|
@@ -413,7 +413,7 @@ function $r() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var nr = function(e, r, i, c,
|
|
416
|
+
var nr = function(e, r, i, c, m, y, E) {
|
|
417
417
|
var b = {
|
|
418
418
|
// This tag allows us to uniquely identify this as a React Element
|
|
419
419
|
$$typeof: u,
|
|
@@ -421,9 +421,9 @@ function $r() {
|
|
|
421
421
|
type: e,
|
|
422
422
|
key: r,
|
|
423
423
|
ref: i,
|
|
424
|
-
props:
|
|
424
|
+
props: E,
|
|
425
425
|
// Record the component responsible for creating this element.
|
|
426
|
-
_owner:
|
|
426
|
+
_owner: y
|
|
427
427
|
};
|
|
428
428
|
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
429
429
|
configurable: !1,
|
|
@@ -439,25 +439,25 @@ function $r() {
|
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !1,
|
|
442
|
-
value:
|
|
442
|
+
value: m
|
|
443
443
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
444
444
|
};
|
|
445
|
-
function ar(e, r, i, c,
|
|
445
|
+
function ar(e, r, i, c, m) {
|
|
446
446
|
{
|
|
447
|
-
var
|
|
448
|
-
i !== void 0 && (
|
|
449
|
-
for (
|
|
450
|
-
L.call(r,
|
|
447
|
+
var y, E = {}, b = null, w = null;
|
|
448
|
+
i !== void 0 && (Ee(i), b = "" + i), Be(r) && (Ee(r.key), b = "" + r.key), Qe(r) && (w = r.ref, er(r, m));
|
|
449
|
+
for (y in r)
|
|
450
|
+
L.call(r, y) && !Ze.hasOwnProperty(y) && (E[y] = r[y]);
|
|
451
451
|
if (e && e.defaultProps) {
|
|
452
452
|
var T = e.defaultProps;
|
|
453
|
-
for (
|
|
454
|
-
|
|
453
|
+
for (y in T)
|
|
454
|
+
E[y] === void 0 && (E[y] = T[y]);
|
|
455
455
|
}
|
|
456
|
-
if (b ||
|
|
456
|
+
if (b || w) {
|
|
457
457
|
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
458
|
-
b && rr(
|
|
458
|
+
b && rr(E, O), w && tr(E, O);
|
|
459
459
|
}
|
|
460
|
-
return nr(e, b,
|
|
460
|
+
return nr(e, b, w, m, c, he.current, E);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
var Z = $.ReactCurrentOwner, _e = $.ReactDebugCurrentFrame;
|
|
@@ -473,7 +473,7 @@ function $r() {
|
|
|
473
473
|
function B(e) {
|
|
474
474
|
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Re() {
|
|
477
477
|
{
|
|
478
478
|
if (Z.current) {
|
|
479
479
|
var e = F(Z.current.type);
|
|
@@ -488,10 +488,10 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
function ir(e) {
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
|
-
var
|
|
492
|
-
function
|
|
491
|
+
var ge = {};
|
|
492
|
+
function sr(e) {
|
|
493
493
|
{
|
|
494
|
-
var r =
|
|
494
|
+
var r = Re();
|
|
495
495
|
if (!r) {
|
|
496
496
|
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
497
497
|
i && (r = `
|
|
@@ -506,12 +506,12 @@ Check the top-level render call using <` + i + ">.");
|
|
|
506
506
|
if (!e._store || e._store.validated || e.key != null)
|
|
507
507
|
return;
|
|
508
508
|
e._store.validated = !0;
|
|
509
|
-
var i =
|
|
510
|
-
if (
|
|
509
|
+
var i = sr(r);
|
|
510
|
+
if (ge[i])
|
|
511
511
|
return;
|
|
512
|
-
|
|
512
|
+
ge[i] = !0;
|
|
513
513
|
var c = "";
|
|
514
|
-
e && e._owner && e._owner !== Z.current && (c = " It was passed a child from " + F(e._owner.type) + "."), W(e),
|
|
514
|
+
e && e._owner && e._owner !== Z.current && (c = " It was passed a child from " + F(e._owner.type) + "."), W(e), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, c), W(null);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function Te(e, r) {
|
|
@@ -526,14 +526,14 @@ Check the top-level render call using <` + i + ">.");
|
|
|
526
526
|
else if (B(e))
|
|
527
527
|
e._store && (e._store.validated = !0);
|
|
528
528
|
else if (e) {
|
|
529
|
-
var
|
|
530
|
-
if (typeof
|
|
531
|
-
for (var
|
|
532
|
-
B(
|
|
529
|
+
var m = Fe(e);
|
|
530
|
+
if (typeof m == "function" && m !== e.entries)
|
|
531
|
+
for (var y = m.call(e), E; !(E = y.next()).done; )
|
|
532
|
+
B(E.value) && xe(E.value, r);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function lr(e) {
|
|
537
537
|
{
|
|
538
538
|
var r = e.type;
|
|
539
539
|
if (r == null || typeof r == "string")
|
|
@@ -552,10 +552,10 @@ Check the top-level render call using <` + i + ">.");
|
|
|
552
552
|
Ke(i, e.props, "prop", c, e);
|
|
553
553
|
} else if (r.PropTypes !== void 0 && !Q) {
|
|
554
554
|
Q = !0;
|
|
555
|
-
var
|
|
556
|
-
|
|
555
|
+
var m = F(r);
|
|
556
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
|
|
557
557
|
}
|
|
558
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
558
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function ur(e) {
|
|
@@ -563,29 +563,29 @@ Check the top-level render call using <` + i + ">.");
|
|
|
563
563
|
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
564
564
|
var c = r[i];
|
|
565
565
|
if (c !== "children" && c !== "key") {
|
|
566
|
-
W(e),
|
|
566
|
+
W(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), W(null);
|
|
567
567
|
break;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
e.ref !== null && (W(e),
|
|
570
|
+
e.ref !== null && (W(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
var je = {};
|
|
574
|
-
function Oe(e, r, i, c,
|
|
574
|
+
function Oe(e, r, i, c, m, y) {
|
|
575
575
|
{
|
|
576
|
-
var
|
|
577
|
-
if (!
|
|
576
|
+
var E = Le(e);
|
|
577
|
+
if (!E) {
|
|
578
578
|
var b = "";
|
|
579
579
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
|
-
var
|
|
581
|
-
|
|
580
|
+
var w = ir();
|
|
581
|
+
w ? b += w : b += Re();
|
|
582
582
|
var T;
|
|
583
|
-
e === null ? T = "null" : H(e) ? T = "array" : e !== void 0 && e.$$typeof === u ? (T = "<" + (F(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e,
|
|
583
|
+
e === null ? T = "null" : H(e) ? T = "array" : e !== void 0 && e.$$typeof === u ? (T = "<" + (F(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, b);
|
|
584
584
|
}
|
|
585
|
-
var O = ar(e, r, i,
|
|
585
|
+
var O = ar(e, r, i, m, y);
|
|
586
586
|
if (O == null)
|
|
587
587
|
return O;
|
|
588
|
-
if (
|
|
588
|
+
if (E) {
|
|
589
589
|
var C = r.children;
|
|
590
590
|
if (C !== void 0)
|
|
591
591
|
if (c)
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
594
594
|
Te(C[Y], e);
|
|
595
595
|
Object.freeze && Object.freeze(C);
|
|
596
596
|
} else
|
|
597
|
-
|
|
597
|
+
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
598
|
else
|
|
599
599
|
Te(C, e);
|
|
600
600
|
}
|
|
@@ -604,7 +604,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
604
604
|
}), ee = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
605
|
if (!je[I + ee]) {
|
|
606
606
|
var vr = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
|
|
607
|
-
|
|
607
|
+
P(`A props object containing a "key" prop is being spread into JSX:
|
|
608
608
|
let props = %s;
|
|
609
609
|
<%s {...props} />
|
|
610
610
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -612,7 +612,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
612
612
|
<%s key={someKey} {...props} />`, ee, I, vr, I), je[I + ee] = !0;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
return e ===
|
|
615
|
+
return e === l ? ur(O) : lr(O), O;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
function or(e, r, i) {
|
|
@@ -622,314 +622,334 @@ React keys must be passed directly to JSX without using spread:
|
|
|
622
622
|
return Oe(e, r, i, !1);
|
|
623
623
|
}
|
|
624
624
|
var cr = fr, dr = or;
|
|
625
|
-
V.Fragment =
|
|
625
|
+
V.Fragment = l, V.jsx = cr, V.jsxs = dr;
|
|
626
626
|
}()), V;
|
|
627
627
|
}
|
|
628
|
-
process.env.NODE_ENV === "production" ? re.exports =
|
|
629
|
-
var
|
|
630
|
-
const
|
|
631
|
-
name:
|
|
628
|
+
process.env.NODE_ENV === "production" ? re.exports = $r() : re.exports = Wr();
|
|
629
|
+
var h = re.exports;
|
|
630
|
+
const Nr = ({
|
|
631
|
+
name: s,
|
|
632
632
|
control: u,
|
|
633
633
|
onRemoveButtonClick: n,
|
|
634
|
-
onAddButtonClick:
|
|
635
|
-
definition:
|
|
634
|
+
onAddButtonClick: l,
|
|
635
|
+
definition: o,
|
|
636
636
|
defaultValue: a,
|
|
637
637
|
handleState: t = !0,
|
|
638
638
|
...v
|
|
639
639
|
}) => {
|
|
640
|
-
const { errors: p } =
|
|
641
|
-
name:
|
|
640
|
+
const { errors: p } = Fr({ control: u }), { fields: R, append: f, remove: d } = Ar({
|
|
641
|
+
name: s,
|
|
642
642
|
control: u
|
|
643
643
|
}), x = br(
|
|
644
|
-
() =>
|
|
645
|
-
errorText: (j, D) => _.label &&
|
|
644
|
+
() => o.map((_) => ({
|
|
645
|
+
errorText: (j, D) => _.label && Ir(p, `${s}.${D}.${_.label.toString().toLowerCase()}.message`),
|
|
646
646
|
..._
|
|
647
647
|
})),
|
|
648
|
-
[
|
|
648
|
+
[o, p, s]
|
|
649
649
|
);
|
|
650
|
-
return /* @__PURE__ */
|
|
651
|
-
|
|
650
|
+
return /* @__PURE__ */ h.jsx(
|
|
651
|
+
Er,
|
|
652
652
|
{
|
|
653
653
|
definition: x,
|
|
654
|
-
items:
|
|
654
|
+
items: R || [],
|
|
655
655
|
onRemoveButtonClick: (_) => {
|
|
656
656
|
t && d(_.detail.itemIndex), n == null || n(_, d);
|
|
657
657
|
},
|
|
658
658
|
onAddButtonClick: (_) => {
|
|
659
|
-
t &&
|
|
659
|
+
t && f(a), l == null || l(_, f);
|
|
660
660
|
},
|
|
661
661
|
...v
|
|
662
662
|
}
|
|
663
663
|
);
|
|
664
|
-
},
|
|
665
|
-
name:
|
|
664
|
+
}, Jr = ({
|
|
665
|
+
name: s,
|
|
666
666
|
control: u,
|
|
667
667
|
defaultValue: n,
|
|
668
|
-
rules:
|
|
669
|
-
shouldUnregister:
|
|
668
|
+
rules: l,
|
|
669
|
+
shouldUnregister: o = !1,
|
|
670
670
|
onBlur: a,
|
|
671
671
|
onChange: t,
|
|
672
672
|
...v
|
|
673
673
|
}) => {
|
|
674
|
-
const p =
|
|
675
|
-
(
|
|
676
|
-
a == null || a(
|
|
674
|
+
const p = g(
|
|
675
|
+
(f) => {
|
|
676
|
+
a == null || a(f);
|
|
677
677
|
},
|
|
678
678
|
[a]
|
|
679
|
-
),
|
|
680
|
-
(
|
|
681
|
-
t == null || t(
|
|
679
|
+
), R = g(
|
|
680
|
+
(f) => {
|
|
681
|
+
t == null || t(f);
|
|
682
682
|
},
|
|
683
683
|
[t]
|
|
684
684
|
);
|
|
685
|
-
return /* @__PURE__ */
|
|
686
|
-
|
|
685
|
+
return /* @__PURE__ */ h.jsx(
|
|
686
|
+
S,
|
|
687
687
|
{
|
|
688
|
-
name:
|
|
688
|
+
name: s,
|
|
689
689
|
control: u,
|
|
690
690
|
defaultValue: n,
|
|
691
|
-
rules:
|
|
692
|
-
shouldUnregister:
|
|
693
|
-
render: ({ field: { ref:
|
|
694
|
-
|
|
691
|
+
rules: l,
|
|
692
|
+
shouldUnregister: o,
|
|
693
|
+
render: ({ field: { ref: f, onBlur: d, onChange: x, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
694
|
+
hr,
|
|
695
695
|
{
|
|
696
|
-
ref:
|
|
697
|
-
name:
|
|
696
|
+
ref: f,
|
|
697
|
+
name: s,
|
|
698
698
|
value: _ || "",
|
|
699
699
|
onBlur: (j) => {
|
|
700
700
|
d(), p(j);
|
|
701
701
|
},
|
|
702
702
|
onChange: (j) => {
|
|
703
|
-
x(j.detail.value),
|
|
703
|
+
x(j.detail.value), R(j);
|
|
704
704
|
},
|
|
705
705
|
...v
|
|
706
706
|
}
|
|
707
707
|
)
|
|
708
708
|
}
|
|
709
709
|
);
|
|
710
|
-
},
|
|
711
|
-
name:
|
|
710
|
+
}, qr = ({
|
|
711
|
+
name: s,
|
|
712
712
|
control: u,
|
|
713
713
|
onChange: n,
|
|
714
|
-
...
|
|
714
|
+
...l
|
|
715
715
|
}) => {
|
|
716
|
-
const
|
|
716
|
+
const o = g(
|
|
717
717
|
(a, t) => {
|
|
718
718
|
a(t.detail.checked), n == null || n(t);
|
|
719
719
|
},
|
|
720
720
|
[n]
|
|
721
721
|
);
|
|
722
|
-
return /* @__PURE__ */
|
|
723
|
-
|
|
722
|
+
return /* @__PURE__ */ h.jsx(
|
|
723
|
+
S,
|
|
724
724
|
{
|
|
725
|
-
name:
|
|
725
|
+
name: s,
|
|
726
726
|
control: u,
|
|
727
|
-
render: ({ field: { ref: a, onChange: t, value: v = !1 } }) => /* @__PURE__ */
|
|
727
|
+
render: ({ field: { ref: a, onChange: t, value: v = !1 } }) => /* @__PURE__ */ h.jsx(mr, { ref: a, onChange: o.bind(null, t), checked: v, ...l })
|
|
728
728
|
}
|
|
729
729
|
);
|
|
730
|
-
},
|
|
731
|
-
name:
|
|
730
|
+
}, Gr = ({
|
|
731
|
+
name: s,
|
|
732
|
+
control: u,
|
|
733
|
+
onSelectionChange: n,
|
|
734
|
+
...l
|
|
735
|
+
}) => {
|
|
736
|
+
const o = g(
|
|
737
|
+
(a, t) => {
|
|
738
|
+
a(t.detail.selectedItems), n == null || n(t);
|
|
739
|
+
},
|
|
740
|
+
[n]
|
|
741
|
+
);
|
|
742
|
+
return /* @__PURE__ */ h.jsx(
|
|
743
|
+
S,
|
|
744
|
+
{
|
|
745
|
+
name: s,
|
|
746
|
+
control: u,
|
|
747
|
+
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ h.jsx(yr, { onSelectionChange: o.bind(null, a), selectedItems: t, ...l })
|
|
748
|
+
}
|
|
749
|
+
);
|
|
750
|
+
}, Kr = ({
|
|
751
|
+
name: s,
|
|
732
752
|
control: u,
|
|
733
753
|
onChange: n,
|
|
734
|
-
...
|
|
754
|
+
...l
|
|
735
755
|
}) => {
|
|
736
|
-
const
|
|
756
|
+
const o = g(
|
|
737
757
|
(a, t) => {
|
|
738
758
|
a(t.detail.value), n == null || n(t);
|
|
739
759
|
},
|
|
740
760
|
[n]
|
|
741
761
|
);
|
|
742
|
-
return /* @__PURE__ */
|
|
743
|
-
|
|
762
|
+
return /* @__PURE__ */ h.jsx(
|
|
763
|
+
S,
|
|
744
764
|
{
|
|
745
|
-
name:
|
|
765
|
+
name: s,
|
|
746
766
|
control: u,
|
|
747
|
-
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */
|
|
767
|
+
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ h.jsx(_r, { value: t || "", onChange: o.bind(null, a), ...l })
|
|
748
768
|
}
|
|
749
769
|
);
|
|
750
|
-
},
|
|
751
|
-
name:
|
|
770
|
+
}, zr = ({
|
|
771
|
+
name: s,
|
|
752
772
|
control: u,
|
|
753
773
|
defaultValue: n,
|
|
754
|
-
rules:
|
|
755
|
-
shouldUnregister:
|
|
774
|
+
rules: l,
|
|
775
|
+
shouldUnregister: o = !1,
|
|
756
776
|
onBlur: a,
|
|
757
777
|
onChange: t,
|
|
758
778
|
...v
|
|
759
779
|
}) => {
|
|
760
|
-
const p =
|
|
761
|
-
(
|
|
762
|
-
a == null || a(
|
|
780
|
+
const p = g(
|
|
781
|
+
(f) => {
|
|
782
|
+
a == null || a(f);
|
|
763
783
|
},
|
|
764
784
|
[a]
|
|
765
|
-
),
|
|
766
|
-
(
|
|
767
|
-
t == null || t(
|
|
785
|
+
), R = g(
|
|
786
|
+
(f) => {
|
|
787
|
+
t == null || t(f);
|
|
768
788
|
},
|
|
769
789
|
[t]
|
|
770
790
|
);
|
|
771
|
-
return /* @__PURE__ */
|
|
772
|
-
|
|
791
|
+
return /* @__PURE__ */ h.jsx(
|
|
792
|
+
S,
|
|
773
793
|
{
|
|
774
|
-
name:
|
|
794
|
+
name: s,
|
|
775
795
|
control: u,
|
|
776
796
|
defaultValue: n,
|
|
777
|
-
rules:
|
|
778
|
-
shouldUnregister:
|
|
779
|
-
render: ({ field: { ref:
|
|
780
|
-
|
|
797
|
+
rules: l,
|
|
798
|
+
shouldUnregister: o,
|
|
799
|
+
render: ({ field: { ref: f, onChange: d, onBlur: x, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
800
|
+
Rr,
|
|
781
801
|
{
|
|
782
|
-
ref:
|
|
783
|
-
name:
|
|
802
|
+
ref: f,
|
|
803
|
+
name: s,
|
|
784
804
|
value: _,
|
|
785
805
|
onBlur: (j) => {
|
|
786
806
|
x(), p(j);
|
|
787
807
|
},
|
|
788
808
|
onChange: (j) => {
|
|
789
|
-
d(j.detail.value),
|
|
809
|
+
d(j.detail.value), R(j);
|
|
790
810
|
},
|
|
791
811
|
...v
|
|
792
812
|
}
|
|
793
813
|
)
|
|
794
814
|
}
|
|
795
815
|
);
|
|
796
|
-
},
|
|
797
|
-
name:
|
|
816
|
+
}, Xr = ({
|
|
817
|
+
name: s,
|
|
798
818
|
control: u,
|
|
799
819
|
onBlur: n,
|
|
800
|
-
onChange:
|
|
801
|
-
...
|
|
820
|
+
onChange: l,
|
|
821
|
+
...o
|
|
802
822
|
}) => {
|
|
803
|
-
const a =
|
|
823
|
+
const a = g(
|
|
804
824
|
(v) => {
|
|
805
825
|
n == null || n(v);
|
|
806
826
|
},
|
|
807
827
|
[n]
|
|
808
|
-
), t =
|
|
828
|
+
), t = g(
|
|
809
829
|
(v) => {
|
|
810
|
-
|
|
830
|
+
l == null || l(v);
|
|
811
831
|
},
|
|
812
|
-
[
|
|
832
|
+
[l]
|
|
813
833
|
);
|
|
814
|
-
return /* @__PURE__ */
|
|
815
|
-
|
|
834
|
+
return /* @__PURE__ */ h.jsx(
|
|
835
|
+
S,
|
|
816
836
|
{
|
|
817
|
-
name:
|
|
837
|
+
name: s,
|
|
818
838
|
control: u,
|
|
819
|
-
render: ({ field: { ref: v, onBlur: p, onChange:
|
|
839
|
+
render: ({ field: { ref: v, onBlur: p, onChange: R, value: f } }) => /* @__PURE__ */ h.jsx(
|
|
820
840
|
gr,
|
|
821
841
|
{
|
|
822
842
|
ref: v,
|
|
823
|
-
value:
|
|
843
|
+
value: f,
|
|
824
844
|
onBlur: (d) => {
|
|
825
845
|
p(), a(d);
|
|
826
846
|
},
|
|
827
847
|
onChange: (d) => {
|
|
828
|
-
|
|
848
|
+
R(d.detail.value), t(d);
|
|
829
849
|
},
|
|
830
|
-
...
|
|
850
|
+
...o
|
|
831
851
|
}
|
|
832
852
|
)
|
|
833
853
|
}
|
|
834
854
|
);
|
|
835
|
-
},
|
|
836
|
-
name:
|
|
855
|
+
}, Hr = ({
|
|
856
|
+
name: s,
|
|
837
857
|
control: u,
|
|
838
858
|
defaultValue: n,
|
|
839
|
-
rules:
|
|
840
|
-
shouldUnregister:
|
|
859
|
+
rules: l,
|
|
860
|
+
shouldUnregister: o = !1,
|
|
841
861
|
onBlur: a,
|
|
842
862
|
onChange: t,
|
|
843
863
|
...v
|
|
844
864
|
}) => {
|
|
845
|
-
const p =
|
|
846
|
-
(
|
|
847
|
-
a == null || a(
|
|
865
|
+
const p = g(
|
|
866
|
+
(f) => {
|
|
867
|
+
a == null || a(f);
|
|
848
868
|
},
|
|
849
869
|
[a]
|
|
850
|
-
),
|
|
851
|
-
(
|
|
852
|
-
t == null || t(
|
|
870
|
+
), R = g(
|
|
871
|
+
(f) => {
|
|
872
|
+
t == null || t(f);
|
|
853
873
|
},
|
|
854
874
|
[t]
|
|
855
875
|
);
|
|
856
|
-
return /* @__PURE__ */
|
|
857
|
-
|
|
876
|
+
return /* @__PURE__ */ h.jsx(
|
|
877
|
+
S,
|
|
858
878
|
{
|
|
859
|
-
name:
|
|
879
|
+
name: s,
|
|
860
880
|
control: u,
|
|
861
881
|
defaultValue: n,
|
|
862
|
-
rules:
|
|
863
|
-
shouldUnregister:
|
|
864
|
-
render: ({ field: { ref:
|
|
865
|
-
|
|
882
|
+
rules: l,
|
|
883
|
+
shouldUnregister: o,
|
|
884
|
+
render: ({ field: { ref: f, onBlur: d, onChange: x, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
885
|
+
xr,
|
|
866
886
|
{
|
|
867
|
-
ref:
|
|
868
|
-
name:
|
|
887
|
+
ref: f,
|
|
888
|
+
name: s,
|
|
869
889
|
value: _,
|
|
870
890
|
onBlur: (j) => {
|
|
871
891
|
d(), p(j);
|
|
872
892
|
},
|
|
873
893
|
onChange: (j) => {
|
|
874
|
-
x(j.detail.value),
|
|
894
|
+
x(j.detail.value), R(j);
|
|
875
895
|
},
|
|
876
896
|
...v
|
|
877
897
|
}
|
|
878
898
|
)
|
|
879
899
|
}
|
|
880
900
|
);
|
|
881
|
-
}, ke = (
|
|
882
|
-
if (
|
|
883
|
-
if ("options" in
|
|
884
|
-
const
|
|
885
|
-
|
|
901
|
+
}, ke = (s = []) => s != null && s.length ? s.map((u) => "options" in u ? ke(u.options) : u.value).flat() : [], Ce = (s = [], u = []) => s != null && s.length && (u != null && u.length) ? s.reduce((n, l) => {
|
|
902
|
+
if (s != null && s.length) {
|
|
903
|
+
if ("options" in l) {
|
|
904
|
+
const o = Ce(l.options, u);
|
|
905
|
+
o != null && o.length && n.push(...o);
|
|
886
906
|
}
|
|
887
|
-
"value" in
|
|
907
|
+
"value" in l && u.find((o) => o === l.value) && n.push(l);
|
|
888
908
|
}
|
|
889
909
|
return n;
|
|
890
|
-
}, []).flat() : [],
|
|
910
|
+
}, []).flat() : [], Yr = {
|
|
891
911
|
transformMultiselectOptionsToArray: ke,
|
|
892
912
|
mapSelectedOptionsWithOptions: Ce
|
|
893
|
-
},
|
|
894
|
-
name:
|
|
913
|
+
}, Zr = ({
|
|
914
|
+
name: s,
|
|
895
915
|
control: u,
|
|
896
916
|
options: n,
|
|
897
|
-
defaultValue:
|
|
898
|
-
rules:
|
|
917
|
+
defaultValue: l,
|
|
918
|
+
rules: o,
|
|
899
919
|
onBlur: a,
|
|
900
920
|
onChange: t,
|
|
901
921
|
shouldUnregister: v = !1,
|
|
902
922
|
...p
|
|
903
923
|
}) => {
|
|
904
|
-
const
|
|
924
|
+
const R = g(
|
|
905
925
|
(d) => {
|
|
906
926
|
a == null || a(d);
|
|
907
927
|
},
|
|
908
928
|
[a]
|
|
909
|
-
),
|
|
929
|
+
), f = g(
|
|
910
930
|
(d) => {
|
|
911
931
|
t == null || t(d);
|
|
912
932
|
},
|
|
913
933
|
[t]
|
|
914
934
|
);
|
|
915
|
-
return /* @__PURE__ */
|
|
916
|
-
|
|
935
|
+
return /* @__PURE__ */ h.jsx(
|
|
936
|
+
S,
|
|
917
937
|
{
|
|
918
|
-
name:
|
|
938
|
+
name: s,
|
|
919
939
|
control: u,
|
|
920
|
-
defaultValue:
|
|
921
|
-
rules:
|
|
940
|
+
defaultValue: l,
|
|
941
|
+
rules: o,
|
|
922
942
|
shouldUnregister: v,
|
|
923
|
-
render: ({ field: { ref: d, onBlur: x, onChange: _, value: j } }) => /* @__PURE__ */
|
|
924
|
-
|
|
943
|
+
render: ({ field: { ref: d, onBlur: x, onChange: _, value: j } }) => /* @__PURE__ */ h.jsx(
|
|
944
|
+
Tr,
|
|
925
945
|
{
|
|
926
946
|
ref: d,
|
|
927
947
|
options: n,
|
|
928
948
|
onBlur: (D) => {
|
|
929
|
-
x(),
|
|
949
|
+
x(), R(D);
|
|
930
950
|
},
|
|
931
951
|
onChange: (D) => {
|
|
932
|
-
_(
|
|
952
|
+
_(Yr.transformMultiselectOptionsToArray(D.detail.selectedOptions)), f(D);
|
|
933
953
|
},
|
|
934
954
|
selectedOptions: j,
|
|
935
955
|
...p
|
|
@@ -937,269 +957,270 @@ const Vr = ({
|
|
|
937
957
|
)
|
|
938
958
|
}
|
|
939
959
|
);
|
|
940
|
-
},
|
|
941
|
-
name:
|
|
960
|
+
}, Qr = ({
|
|
961
|
+
name: s,
|
|
942
962
|
control: u,
|
|
943
963
|
onChange: n,
|
|
944
|
-
...
|
|
964
|
+
...l
|
|
945
965
|
}) => {
|
|
946
|
-
const
|
|
966
|
+
const o = g(
|
|
947
967
|
(a, t) => {
|
|
948
968
|
a(t.detail.value), n == null || n(t);
|
|
949
969
|
},
|
|
950
970
|
[n]
|
|
951
971
|
);
|
|
952
|
-
return /* @__PURE__ */
|
|
953
|
-
|
|
972
|
+
return /* @__PURE__ */ h.jsx(
|
|
973
|
+
S,
|
|
954
974
|
{
|
|
955
|
-
name:
|
|
975
|
+
name: s,
|
|
956
976
|
control: u,
|
|
957
|
-
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */
|
|
977
|
+
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ h.jsx(jr, { onChange: o.bind(null, a), value: t, items: l.items, ...l })
|
|
958
978
|
}
|
|
959
979
|
);
|
|
960
|
-
}, De = (
|
|
980
|
+
}, De = (s = [], u) => {
|
|
961
981
|
let n = null;
|
|
962
|
-
return
|
|
963
|
-
(
|
|
964
|
-
if ("options" in
|
|
965
|
-
const a = De(
|
|
966
|
-
a &&
|
|
982
|
+
return s && u && (n = s.reduce(
|
|
983
|
+
(l, o) => {
|
|
984
|
+
if ("options" in o) {
|
|
985
|
+
const a = De(o.options, u);
|
|
986
|
+
a && l.push(a);
|
|
967
987
|
}
|
|
968
|
-
return "value" in
|
|
988
|
+
return "value" in o && o.value === u && l.push(o), l;
|
|
969
989
|
},
|
|
970
990
|
[]
|
|
971
991
|
)[0]), n || null;
|
|
972
|
-
},
|
|
992
|
+
}, Mr = {
|
|
973
993
|
mapSelectedOptionWithOptions: De
|
|
974
|
-
},
|
|
975
|
-
name:
|
|
994
|
+
}, Br = ({
|
|
995
|
+
name: s,
|
|
976
996
|
control: u,
|
|
977
997
|
defaultValue: n,
|
|
978
|
-
rules:
|
|
979
|
-
shouldUnregister:
|
|
998
|
+
rules: l,
|
|
999
|
+
shouldUnregister: o = !1,
|
|
980
1000
|
onBlur: a,
|
|
981
1001
|
onChange: t,
|
|
982
1002
|
...v
|
|
983
1003
|
}) => {
|
|
984
|
-
const p =
|
|
985
|
-
(
|
|
986
|
-
|
|
1004
|
+
const p = g(
|
|
1005
|
+
(f, d) => {
|
|
1006
|
+
f(), a == null || a(d);
|
|
987
1007
|
},
|
|
988
1008
|
[a]
|
|
989
|
-
),
|
|
990
|
-
(
|
|
991
|
-
|
|
1009
|
+
), R = g(
|
|
1010
|
+
(f, d) => {
|
|
1011
|
+
f(d.detail.selectedOption.value), t == null || t(d);
|
|
992
1012
|
},
|
|
993
1013
|
[t]
|
|
994
1014
|
);
|
|
995
|
-
return /* @__PURE__ */
|
|
996
|
-
|
|
1015
|
+
return /* @__PURE__ */ h.jsx(
|
|
1016
|
+
S,
|
|
997
1017
|
{
|
|
998
|
-
name:
|
|
1018
|
+
name: s,
|
|
999
1019
|
control: u,
|
|
1000
1020
|
defaultValue: n,
|
|
1001
|
-
rules:
|
|
1002
|
-
shouldUnregister:
|
|
1003
|
-
render: ({ field: { ref:
|
|
1004
|
-
|
|
1021
|
+
rules: l,
|
|
1022
|
+
shouldUnregister: o,
|
|
1023
|
+
render: ({ field: { ref: f, onChange: d, onBlur: x, value: _ } }) => /* @__PURE__ */ h.jsx(
|
|
1024
|
+
Or,
|
|
1005
1025
|
{
|
|
1006
|
-
ref:
|
|
1007
|
-
selectedOption:
|
|
1026
|
+
ref: f,
|
|
1027
|
+
selectedOption: Mr.mapSelectedOptionWithOptions(v.options, _),
|
|
1008
1028
|
onBlur: p.bind(null, x),
|
|
1009
|
-
onChange:
|
|
1029
|
+
onChange: R.bind(null, d),
|
|
1010
1030
|
...v
|
|
1011
1031
|
}
|
|
1012
1032
|
)
|
|
1013
1033
|
}
|
|
1014
1034
|
);
|
|
1015
|
-
},
|
|
1016
|
-
name:
|
|
1035
|
+
}, et = ({
|
|
1036
|
+
name: s,
|
|
1017
1037
|
control: u,
|
|
1018
1038
|
onChange: n,
|
|
1019
|
-
...
|
|
1039
|
+
...l
|
|
1020
1040
|
}) => {
|
|
1021
|
-
const
|
|
1041
|
+
const o = g(
|
|
1022
1042
|
(a, t) => {
|
|
1023
1043
|
a([...t.detail.tags]), n == null || n(t);
|
|
1024
1044
|
},
|
|
1025
1045
|
[n]
|
|
1026
1046
|
);
|
|
1027
|
-
return /* @__PURE__ */
|
|
1028
|
-
|
|
1047
|
+
return /* @__PURE__ */ h.jsx(
|
|
1048
|
+
S,
|
|
1029
1049
|
{
|
|
1030
|
-
name:
|
|
1050
|
+
name: s,
|
|
1031
1051
|
control: u,
|
|
1032
|
-
render: ({ field: { ref: a, onChange: t, value: v } }) => /* @__PURE__ */
|
|
1033
|
-
|
|
1052
|
+
render: ({ field: { ref: a, onChange: t, value: v } }) => /* @__PURE__ */ h.jsx(
|
|
1053
|
+
Sr,
|
|
1034
1054
|
{
|
|
1035
1055
|
ref: a,
|
|
1036
1056
|
tags: v || [],
|
|
1037
|
-
onChange:
|
|
1038
|
-
...
|
|
1057
|
+
onChange: o.bind(null, t),
|
|
1058
|
+
...l
|
|
1039
1059
|
}
|
|
1040
1060
|
)
|
|
1041
1061
|
}
|
|
1042
1062
|
);
|
|
1043
|
-
},
|
|
1044
|
-
name:
|
|
1063
|
+
}, rt = ({
|
|
1064
|
+
name: s,
|
|
1045
1065
|
control: u,
|
|
1046
1066
|
onChange: n,
|
|
1047
|
-
...
|
|
1067
|
+
...l
|
|
1048
1068
|
}) => {
|
|
1049
|
-
const
|
|
1069
|
+
const o = g(
|
|
1050
1070
|
(a, t) => {
|
|
1051
1071
|
a(t.detail.filteringText), n == null || n(t);
|
|
1052
1072
|
},
|
|
1053
1073
|
[n]
|
|
1054
1074
|
);
|
|
1055
|
-
return /* @__PURE__ */
|
|
1056
|
-
|
|
1075
|
+
return /* @__PURE__ */ h.jsx(
|
|
1076
|
+
S,
|
|
1057
1077
|
{
|
|
1058
|
-
name:
|
|
1078
|
+
name: s,
|
|
1059
1079
|
control: u,
|
|
1060
|
-
render: ({ field: { ref: a, onChange: t, value: v } }) => /* @__PURE__ */
|
|
1061
|
-
|
|
1080
|
+
render: ({ field: { ref: a, onChange: t, value: v } }) => /* @__PURE__ */ h.jsx(
|
|
1081
|
+
Pr,
|
|
1062
1082
|
{
|
|
1063
1083
|
ref: a,
|
|
1064
1084
|
filteringText: v,
|
|
1065
|
-
onChange:
|
|
1066
|
-
...
|
|
1085
|
+
onChange: o.bind(null, t),
|
|
1086
|
+
...l
|
|
1067
1087
|
}
|
|
1068
1088
|
)
|
|
1069
1089
|
}
|
|
1070
1090
|
);
|
|
1071
|
-
},
|
|
1072
|
-
name:
|
|
1091
|
+
}, tt = ({
|
|
1092
|
+
name: s,
|
|
1073
1093
|
control: u,
|
|
1074
1094
|
defaultValue: n,
|
|
1075
|
-
rules:
|
|
1076
|
-
shouldUnregister:
|
|
1095
|
+
rules: l,
|
|
1096
|
+
shouldUnregister: o = !1,
|
|
1077
1097
|
onBlur: a,
|
|
1078
1098
|
onChange: t,
|
|
1079
1099
|
...v
|
|
1080
1100
|
}) => {
|
|
1081
|
-
const p =
|
|
1082
|
-
(
|
|
1083
|
-
|
|
1101
|
+
const p = g(
|
|
1102
|
+
(f, d) => {
|
|
1103
|
+
f(), a == null || a(d);
|
|
1084
1104
|
},
|
|
1085
1105
|
[a]
|
|
1086
|
-
),
|
|
1087
|
-
(
|
|
1088
|
-
|
|
1106
|
+
), R = g(
|
|
1107
|
+
(f, d) => {
|
|
1108
|
+
f(d.detail.value), t == null || t(d);
|
|
1089
1109
|
},
|
|
1090
1110
|
[t]
|
|
1091
1111
|
);
|
|
1092
|
-
return /* @__PURE__ */
|
|
1093
|
-
|
|
1112
|
+
return /* @__PURE__ */ h.jsx(
|
|
1113
|
+
S,
|
|
1094
1114
|
{
|
|
1095
|
-
name:
|
|
1115
|
+
name: s,
|
|
1096
1116
|
control: u,
|
|
1097
1117
|
defaultValue: n,
|
|
1098
|
-
rules:
|
|
1099
|
-
shouldUnregister:
|
|
1100
|
-
render: ({ field: { onChange:
|
|
1101
|
-
|
|
1118
|
+
rules: l,
|
|
1119
|
+
shouldUnregister: o,
|
|
1120
|
+
render: ({ field: { onChange: f, onBlur: d, value: x, ref: _ } }) => /* @__PURE__ */ h.jsx(
|
|
1121
|
+
wr,
|
|
1102
1122
|
{
|
|
1103
1123
|
ref: _,
|
|
1104
|
-
name:
|
|
1124
|
+
name: s,
|
|
1105
1125
|
value: x,
|
|
1106
1126
|
onBlur: p.bind(null, d),
|
|
1107
|
-
onChange:
|
|
1127
|
+
onChange: R.bind(null, f),
|
|
1108
1128
|
...v
|
|
1109
1129
|
}
|
|
1110
1130
|
)
|
|
1111
1131
|
}
|
|
1112
1132
|
);
|
|
1113
|
-
},
|
|
1114
|
-
const
|
|
1133
|
+
}, nt = ({ name: s, control: u, onChange: n, ...l }) => {
|
|
1134
|
+
const o = g(
|
|
1115
1135
|
(a, t) => {
|
|
1116
1136
|
a(t.detail.value), n == null || n(t);
|
|
1117
1137
|
},
|
|
1118
1138
|
[n]
|
|
1119
1139
|
);
|
|
1120
|
-
return /* @__PURE__ */
|
|
1121
|
-
|
|
1140
|
+
return /* @__PURE__ */ h.jsx(
|
|
1141
|
+
S,
|
|
1122
1142
|
{
|
|
1123
|
-
name:
|
|
1143
|
+
name: s,
|
|
1124
1144
|
control: u,
|
|
1125
|
-
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */
|
|
1145
|
+
render: ({ field: { onChange: a, value: t } }) => /* @__PURE__ */ h.jsx(kr, { onChange: o.bind(null, a), value: t, items: l.items, ...l })
|
|
1126
1146
|
}
|
|
1127
1147
|
);
|
|
1128
|
-
},
|
|
1129
|
-
name:
|
|
1148
|
+
}, at = ({
|
|
1149
|
+
name: s,
|
|
1130
1150
|
control: u,
|
|
1131
1151
|
onBlur: n,
|
|
1132
|
-
onChange:
|
|
1133
|
-
...
|
|
1152
|
+
onChange: l,
|
|
1153
|
+
...o
|
|
1134
1154
|
}) => {
|
|
1135
|
-
const a =
|
|
1155
|
+
const a = g(
|
|
1136
1156
|
(v, p) => {
|
|
1137
1157
|
v(), n == null || n(p);
|
|
1138
1158
|
},
|
|
1139
1159
|
[n]
|
|
1140
|
-
), t =
|
|
1160
|
+
), t = g(
|
|
1141
1161
|
(v, p) => {
|
|
1142
|
-
v(p.detail.value),
|
|
1162
|
+
v(p.detail.value), l == null || l(p);
|
|
1143
1163
|
},
|
|
1144
|
-
[
|
|
1164
|
+
[l]
|
|
1145
1165
|
);
|
|
1146
|
-
return /* @__PURE__ */
|
|
1147
|
-
|
|
1166
|
+
return /* @__PURE__ */ h.jsx(
|
|
1167
|
+
S,
|
|
1148
1168
|
{
|
|
1149
|
-
name:
|
|
1169
|
+
name: s,
|
|
1150
1170
|
control: u,
|
|
1151
|
-
render: ({ field: { ref: v, onChange: p, onBlur:
|
|
1152
|
-
|
|
1171
|
+
render: ({ field: { ref: v, onChange: p, onBlur: R, value: f } }) => /* @__PURE__ */ h.jsx(
|
|
1172
|
+
Cr,
|
|
1153
1173
|
{
|
|
1154
|
-
name:
|
|
1174
|
+
name: s,
|
|
1155
1175
|
ref: v,
|
|
1156
|
-
value:
|
|
1157
|
-
onBlur: a.bind(null,
|
|
1176
|
+
value: f,
|
|
1177
|
+
onBlur: a.bind(null, R),
|
|
1158
1178
|
onChange: t.bind(null, p),
|
|
1159
|
-
...
|
|
1179
|
+
...o
|
|
1160
1180
|
}
|
|
1161
1181
|
)
|
|
1162
1182
|
}
|
|
1163
1183
|
);
|
|
1164
|
-
},
|
|
1165
|
-
name:
|
|
1184
|
+
}, it = ({
|
|
1185
|
+
name: s,
|
|
1166
1186
|
control: u,
|
|
1167
1187
|
onChange: n,
|
|
1168
|
-
...
|
|
1188
|
+
...l
|
|
1169
1189
|
}) => {
|
|
1170
|
-
const
|
|
1190
|
+
const o = g(
|
|
1171
1191
|
(a, t) => {
|
|
1172
1192
|
a(t.detail.checked), n == null || n(t);
|
|
1173
1193
|
},
|
|
1174
1194
|
[n]
|
|
1175
1195
|
);
|
|
1176
|
-
return /* @__PURE__ */
|
|
1177
|
-
|
|
1196
|
+
return /* @__PURE__ */ h.jsx(
|
|
1197
|
+
S,
|
|
1178
1198
|
{
|
|
1179
|
-
name:
|
|
1199
|
+
name: s,
|
|
1180
1200
|
control: u,
|
|
1181
|
-
render: ({ field: { ref: a, onChange: t, value: v = !1 } }) => /* @__PURE__ */
|
|
1201
|
+
render: ({ field: { ref: a, onChange: t, value: v = !1 } }) => /* @__PURE__ */ h.jsx(Dr, { ref: a, name: s, checked: v, onChange: o.bind(null, t), ...l })
|
|
1182
1202
|
}
|
|
1183
1203
|
);
|
|
1184
1204
|
};
|
|
1185
1205
|
export {
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
qr as
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
Yr as
|
|
1206
|
+
Nr as CAttributeEditor,
|
|
1207
|
+
Jr as CAutosuggest,
|
|
1208
|
+
Gr as CCards,
|
|
1209
|
+
qr as CCheckbox,
|
|
1210
|
+
Kr as CCodeEditor,
|
|
1211
|
+
zr as CDatePicker,
|
|
1212
|
+
Xr as CDateRangePicker,
|
|
1213
|
+
Hr as CInput,
|
|
1214
|
+
Zr as CMultiselect,
|
|
1215
|
+
Qr as CRadioGroup,
|
|
1216
|
+
Br as CSelect,
|
|
1217
|
+
et as CTagEditor,
|
|
1218
|
+
rt as CTextFilter,
|
|
1219
|
+
tt as CTextarea,
|
|
1220
|
+
nt as CTiles,
|
|
1221
|
+
at as CTimeInput,
|
|
1222
|
+
it as CToggle,
|
|
1223
|
+
Yr as MultiSelectUtils,
|
|
1224
|
+
Mr as SelectUtils
|
|
1204
1225
|
};
|
|
1205
1226
|
//# sourceMappingURL=react-hook-form-cloudscape.es.js.map
|