dynamicformdjx-react 0.0.1 → 0.0.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/README.md +47 -2
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +479 -299
- package/dist/origin/DynamicInput.d.ts +12 -2
- package/dist/types/index.d.ts +33 -0
- package/dist/utils/tools.d.ts +8 -0
- package/package.json +25 -10
- package/dist/types/dyForm.d.ts +0 -44
package/dist/index.mjs
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import
|
|
2
|
-
import './index.css';var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
for (
|
|
12
|
-
if (
|
|
13
|
-
return { $$typeof:
|
|
1
|
+
import Ye, { forwardRef as mr, useState as yr, useRef as br, useImperativeHandle as gr, useEffect as hr } from "react";
|
|
2
|
+
import './index.css';var ee = { exports: {} }, K = {};
|
|
3
|
+
var De;
|
|
4
|
+
function Rr() {
|
|
5
|
+
if (De) return K;
|
|
6
|
+
De = 1;
|
|
7
|
+
var s = Ye, v = Symbol.for("react.element"), f = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, l = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
8
|
+
function E(k, p, D) {
|
|
9
|
+
var _, j = {}, P = null, F = null;
|
|
10
|
+
D !== void 0 && (P = "" + D), p.key !== void 0 && (P = "" + p.key), p.ref !== void 0 && (F = p.ref);
|
|
11
|
+
for (_ in p) a.call(p, _) && !h.hasOwnProperty(_) && (j[_] = p[_]);
|
|
12
|
+
if (k && k.defaultProps) for (_ in p = k.defaultProps, p) j[_] === void 0 && (j[_] = p[_]);
|
|
13
|
+
return { $$typeof: v, type: k, key: P, ref: F, props: j, _owner: l.current };
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return K.Fragment = f, K.jsx = E, K.jsxs = E, K;
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
return
|
|
21
|
-
var
|
|
22
|
-
function
|
|
17
|
+
var z = {};
|
|
18
|
+
var $e;
|
|
19
|
+
function Er() {
|
|
20
|
+
return $e || ($e = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
21
|
+
var s = Ye, v = Symbol.for("react.element"), f = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), k = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), A = Symbol.iterator, I = "@@iterator";
|
|
22
|
+
function C(e) {
|
|
23
23
|
if (e === null || typeof e != "object")
|
|
24
24
|
return null;
|
|
25
|
-
var r =
|
|
25
|
+
var r = A && e[A] || e[I];
|
|
26
26
|
return typeof r == "function" ? r : null;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
28
|
+
var N = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
29
|
+
function u(e) {
|
|
30
30
|
{
|
|
31
31
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
32
32
|
t[n - 1] = arguments[n];
|
|
33
|
-
|
|
33
|
+
x("error", e, t);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function x(e, r, t) {
|
|
37
37
|
{
|
|
38
|
-
var n =
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
return String(
|
|
38
|
+
var n = N.ReactDebugCurrentFrame, c = n.getStackAddendum();
|
|
39
|
+
c !== "" && (r += "%s", t = t.concat([c]));
|
|
40
|
+
var d = t.map(function(o) {
|
|
41
|
+
return String(o);
|
|
42
42
|
});
|
|
43
|
-
|
|
43
|
+
d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
function
|
|
49
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
46
|
+
var q = !1, g = !1, R = !1, O = !1, Y = !1, $;
|
|
47
|
+
$ = Symbol.for("react.module.reference");
|
|
48
|
+
function te(e) {
|
|
49
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === h || Y || e === l || e === D || e === _ || O || e === F || q || g || R || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === j || e.$$typeof === E || e.$$typeof === k || e.$$typeof === p || // This needs to include all possible module reference object
|
|
50
50
|
// types supported by any Flight configuration anywhere since
|
|
51
51
|
// we don't know which Flight build this will end up being used
|
|
52
52
|
// with.
|
|
53
|
-
e.$$typeof ===
|
|
53
|
+
e.$$typeof === $ || e.getModuleId !== void 0));
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ve(e, r, t) {
|
|
56
56
|
var n = e.displayName;
|
|
57
57
|
if (n)
|
|
58
58
|
return n;
|
|
59
|
-
var
|
|
60
|
-
return
|
|
59
|
+
var c = r.displayName || r.name || "";
|
|
60
|
+
return c !== "" ? t + "(" + c + ")" : t;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function de(e) {
|
|
63
63
|
return e.displayName || "Context";
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function W(e) {
|
|
66
66
|
if (e == null)
|
|
67
67
|
return null;
|
|
68
|
-
if (typeof e.tag == "number" &&
|
|
68
|
+
if (typeof e.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
69
69
|
return e.displayName || e.name || null;
|
|
70
70
|
if (typeof e == "string")
|
|
71
71
|
return e;
|
|
72
72
|
switch (e) {
|
|
73
|
-
case
|
|
73
|
+
case a:
|
|
74
74
|
return "Fragment";
|
|
75
|
-
case
|
|
75
|
+
case f:
|
|
76
76
|
return "Portal";
|
|
77
|
-
case
|
|
77
|
+
case h:
|
|
78
78
|
return "Profiler";
|
|
79
|
-
case
|
|
79
|
+
case l:
|
|
80
80
|
return "StrictMode";
|
|
81
|
-
case
|
|
81
|
+
case D:
|
|
82
82
|
return "Suspense";
|
|
83
|
-
case
|
|
83
|
+
case _:
|
|
84
84
|
return "SuspenseList";
|
|
85
85
|
}
|
|
86
86
|
if (typeof e == "object")
|
|
87
87
|
switch (e.$$typeof) {
|
|
88
|
-
case
|
|
88
|
+
case k:
|
|
89
89
|
var r = e;
|
|
90
|
-
return
|
|
91
|
-
case
|
|
90
|
+
return de(r) + ".Consumer";
|
|
91
|
+
case E:
|
|
92
92
|
var t = e;
|
|
93
|
-
return
|
|
94
|
-
case
|
|
95
|
-
return
|
|
96
|
-
case
|
|
93
|
+
return de(t._context) + ".Provider";
|
|
94
|
+
case p:
|
|
95
|
+
return Ve(e, e.render, "ForwardRef");
|
|
96
|
+
case j:
|
|
97
97
|
var n = e.displayName || null;
|
|
98
|
-
return n !== null ? n :
|
|
99
|
-
case
|
|
100
|
-
var
|
|
98
|
+
return n !== null ? n : W(e.type) || "Memo";
|
|
99
|
+
case P: {
|
|
100
|
+
var c = e, d = c._payload, o = c._init;
|
|
101
101
|
try {
|
|
102
|
-
return
|
|
102
|
+
return W(o(d));
|
|
103
103
|
} catch {
|
|
104
104
|
return null;
|
|
105
105
|
}
|
|
@@ -107,18 +107,18 @@ function pr() {
|
|
|
107
107
|
}
|
|
108
108
|
return null;
|
|
109
109
|
}
|
|
110
|
-
var
|
|
111
|
-
function
|
|
110
|
+
var L = Object.assign, B = 0, ve, pe, me, ye, be, ge, he;
|
|
111
|
+
function Re() {
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
function
|
|
113
|
+
Re.__reactDisabledLog = !0;
|
|
114
|
+
function Me() {
|
|
115
115
|
{
|
|
116
|
-
if (
|
|
117
|
-
|
|
116
|
+
if (B === 0) {
|
|
117
|
+
ve = console.log, pe = console.info, me = console.warn, ye = console.error, be = console.group, ge = console.groupCollapsed, he = console.groupEnd;
|
|
118
118
|
var e = {
|
|
119
119
|
configurable: !0,
|
|
120
120
|
enumerable: !0,
|
|
121
|
-
value:
|
|
121
|
+
value: Re,
|
|
122
122
|
writable: !0
|
|
123
123
|
};
|
|
124
124
|
Object.defineProperties(console, {
|
|
@@ -131,250 +131,250 @@ function pr() {
|
|
|
131
131
|
groupEnd: e
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
B++;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Ue() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
139
|
+
if (B--, B === 0) {
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
143
|
writable: !0
|
|
144
144
|
};
|
|
145
145
|
Object.defineProperties(console, {
|
|
146
|
-
log:
|
|
147
|
-
value:
|
|
146
|
+
log: L({}, e, {
|
|
147
|
+
value: ve
|
|
148
148
|
}),
|
|
149
|
-
info:
|
|
150
|
-
value:
|
|
149
|
+
info: L({}, e, {
|
|
150
|
+
value: pe
|
|
151
151
|
}),
|
|
152
|
-
warn:
|
|
153
|
-
value:
|
|
152
|
+
warn: L({}, e, {
|
|
153
|
+
value: me
|
|
154
154
|
}),
|
|
155
|
-
error:
|
|
156
|
-
value:
|
|
155
|
+
error: L({}, e, {
|
|
156
|
+
value: ye
|
|
157
157
|
}),
|
|
158
|
-
group:
|
|
159
|
-
value:
|
|
158
|
+
group: L({}, e, {
|
|
159
|
+
value: be
|
|
160
160
|
}),
|
|
161
|
-
groupCollapsed:
|
|
162
|
-
value:
|
|
161
|
+
groupCollapsed: L({}, e, {
|
|
162
|
+
value: ge
|
|
163
163
|
}),
|
|
164
|
-
groupEnd:
|
|
165
|
-
value:
|
|
164
|
+
groupEnd: L({}, e, {
|
|
165
|
+
value: he
|
|
166
166
|
})
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
B < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
var
|
|
173
|
-
function
|
|
172
|
+
var ne = N.ReactCurrentDispatcher, ae;
|
|
173
|
+
function G(e, r, t) {
|
|
174
174
|
{
|
|
175
|
-
if (
|
|
175
|
+
if (ae === void 0)
|
|
176
176
|
try {
|
|
177
177
|
throw Error();
|
|
178
|
-
} catch (
|
|
179
|
-
var n =
|
|
180
|
-
|
|
178
|
+
} catch (c) {
|
|
179
|
+
var n = c.stack.trim().match(/\n( *(at )?)/);
|
|
180
|
+
ae = n && n[1] || "";
|
|
181
181
|
}
|
|
182
182
|
return `
|
|
183
|
-
` +
|
|
183
|
+
` + ae + e;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
var
|
|
186
|
+
var ie = !1, X;
|
|
187
187
|
{
|
|
188
|
-
var
|
|
189
|
-
|
|
188
|
+
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
189
|
+
X = new Je();
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
if (!e ||
|
|
191
|
+
function Ee(e, r) {
|
|
192
|
+
if (!e || ie)
|
|
193
193
|
return "";
|
|
194
194
|
{
|
|
195
|
-
var t =
|
|
195
|
+
var t = X.get(e);
|
|
196
196
|
if (t !== void 0)
|
|
197
197
|
return t;
|
|
198
198
|
}
|
|
199
199
|
var n;
|
|
200
|
-
|
|
201
|
-
var
|
|
200
|
+
ie = !0;
|
|
201
|
+
var c = Error.prepareStackTrace;
|
|
202
202
|
Error.prepareStackTrace = void 0;
|
|
203
|
-
var
|
|
204
|
-
|
|
203
|
+
var d;
|
|
204
|
+
d = ne.current, ne.current = null, Me();
|
|
205
205
|
try {
|
|
206
206
|
if (r) {
|
|
207
|
-
var
|
|
207
|
+
var o = function() {
|
|
208
208
|
throw Error();
|
|
209
209
|
};
|
|
210
|
-
if (Object.defineProperty(
|
|
210
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
211
211
|
set: function() {
|
|
212
212
|
throw Error();
|
|
213
213
|
}
|
|
214
214
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
215
215
|
try {
|
|
216
|
-
Reflect.construct(
|
|
217
|
-
} catch (
|
|
218
|
-
n =
|
|
216
|
+
Reflect.construct(o, []);
|
|
217
|
+
} catch (T) {
|
|
218
|
+
n = T;
|
|
219
219
|
}
|
|
220
|
-
Reflect.construct(e, [],
|
|
220
|
+
Reflect.construct(e, [], o);
|
|
221
221
|
} else {
|
|
222
222
|
try {
|
|
223
|
-
|
|
224
|
-
} catch (
|
|
225
|
-
n =
|
|
223
|
+
o.call();
|
|
224
|
+
} catch (T) {
|
|
225
|
+
n = T;
|
|
226
226
|
}
|
|
227
|
-
e.call(
|
|
227
|
+
e.call(o.prototype);
|
|
228
228
|
}
|
|
229
229
|
} else {
|
|
230
230
|
try {
|
|
231
231
|
throw Error();
|
|
232
|
-
} catch (
|
|
233
|
-
n =
|
|
232
|
+
} catch (T) {
|
|
233
|
+
n = T;
|
|
234
234
|
}
|
|
235
235
|
e();
|
|
236
236
|
}
|
|
237
|
-
} catch (
|
|
238
|
-
if (
|
|
239
|
-
for (var
|
|
240
|
-
`),
|
|
241
|
-
`),
|
|
242
|
-
|
|
243
|
-
for (;
|
|
244
|
-
if (
|
|
245
|
-
if (
|
|
237
|
+
} catch (T) {
|
|
238
|
+
if (T && n && typeof T.stack == "string") {
|
|
239
|
+
for (var i = T.stack.split(`
|
|
240
|
+
`), S = n.stack.split(`
|
|
241
|
+
`), m = i.length - 1, y = S.length - 1; m >= 1 && y >= 0 && i[m] !== S[y]; )
|
|
242
|
+
y--;
|
|
243
|
+
for (; m >= 1 && y >= 0; m--, y--)
|
|
244
|
+
if (i[m] !== S[y]) {
|
|
245
|
+
if (m !== 1 || y !== 1)
|
|
246
246
|
do
|
|
247
|
-
if (
|
|
248
|
-
var
|
|
249
|
-
` +
|
|
250
|
-
return e.displayName &&
|
|
247
|
+
if (m--, y--, y < 0 || i[m] !== S[y]) {
|
|
248
|
+
var w = `
|
|
249
|
+
` + i[m].replace(" at new ", " at ");
|
|
250
|
+
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, w), w;
|
|
251
251
|
}
|
|
252
|
-
while (
|
|
252
|
+
while (m >= 1 && y >= 0);
|
|
253
253
|
break;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
} finally {
|
|
257
|
-
|
|
257
|
+
ie = !1, ne.current = d, Ue(), Error.prepareStackTrace = c;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
return typeof e == "function" &&
|
|
259
|
+
var J = e ? e.displayName || e.name : "", V = J ? G(J) : "";
|
|
260
|
+
return typeof e == "function" && X.set(e, V), V;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
return
|
|
262
|
+
function qe(e, r, t) {
|
|
263
|
+
return Ee(e, !1);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Be(e) {
|
|
266
266
|
var r = e.prototype;
|
|
267
267
|
return !!(r && r.isReactComponent);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Z(e, r, t) {
|
|
270
270
|
if (e == null)
|
|
271
271
|
return "";
|
|
272
272
|
if (typeof e == "function")
|
|
273
|
-
return
|
|
273
|
+
return Ee(e, Be(e));
|
|
274
274
|
if (typeof e == "string")
|
|
275
|
-
return
|
|
275
|
+
return G(e);
|
|
276
276
|
switch (e) {
|
|
277
|
-
case
|
|
278
|
-
return
|
|
279
|
-
case
|
|
280
|
-
return
|
|
277
|
+
case D:
|
|
278
|
+
return G("Suspense");
|
|
279
|
+
case _:
|
|
280
|
+
return G("SuspenseList");
|
|
281
281
|
}
|
|
282
282
|
if (typeof e == "object")
|
|
283
283
|
switch (e.$$typeof) {
|
|
284
|
-
case
|
|
285
|
-
return
|
|
286
|
-
case
|
|
287
|
-
return
|
|
288
|
-
case
|
|
289
|
-
var n = e,
|
|
284
|
+
case p:
|
|
285
|
+
return qe(e.render);
|
|
286
|
+
case j:
|
|
287
|
+
return Z(e.type, r, t);
|
|
288
|
+
case P: {
|
|
289
|
+
var n = e, c = n._payload, d = n._init;
|
|
290
290
|
try {
|
|
291
|
-
return
|
|
291
|
+
return Z(d(c), r, t);
|
|
292
292
|
} catch {
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
return "";
|
|
297
297
|
}
|
|
298
|
-
var
|
|
299
|
-
function
|
|
298
|
+
var H = Object.prototype.hasOwnProperty, _e = {}, xe = N.ReactDebugCurrentFrame;
|
|
299
|
+
function Q(e) {
|
|
300
300
|
if (e) {
|
|
301
|
-
var r = e._owner, t =
|
|
302
|
-
|
|
301
|
+
var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
|
|
302
|
+
xe.setExtraStackFrame(t);
|
|
303
303
|
} else
|
|
304
|
-
|
|
304
|
+
xe.setExtraStackFrame(null);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function He(e, r, t, n, c) {
|
|
307
307
|
{
|
|
308
|
-
var
|
|
309
|
-
for (var
|
|
310
|
-
if (
|
|
311
|
-
var
|
|
308
|
+
var d = Function.call.bind(H);
|
|
309
|
+
for (var o in e)
|
|
310
|
+
if (d(e, o)) {
|
|
311
|
+
var i = void 0;
|
|
312
312
|
try {
|
|
313
|
-
if (typeof e[
|
|
314
|
-
var
|
|
315
|
-
throw
|
|
313
|
+
if (typeof e[o] != "function") {
|
|
314
|
+
var S = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
315
|
+
throw S.name = "Invariant Violation", S;
|
|
316
316
|
}
|
|
317
|
-
|
|
318
|
-
} catch (
|
|
319
|
-
|
|
317
|
+
i = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
318
|
+
} catch (m) {
|
|
319
|
+
i = m;
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
i && !(i instanceof Error) && (Q(c), u("%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).", n || "React class", t, o, typeof i), Q(null)), i instanceof Error && !(i.message in _e) && (_e[i.message] = !0, Q(c), u("Failed %s type: %s", t, i.message), Q(null));
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
327
|
-
return
|
|
325
|
+
var Ke = Array.isArray;
|
|
326
|
+
function oe(e) {
|
|
327
|
+
return Ke(e);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function ze(e) {
|
|
330
330
|
{
|
|
331
331
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
332
332
|
return t;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Ge(e) {
|
|
336
336
|
try {
|
|
337
|
-
return
|
|
337
|
+
return Se(e), !1;
|
|
338
338
|
} catch {
|
|
339
339
|
return !0;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Se(e) {
|
|
343
343
|
return "" + e;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
if (
|
|
347
|
-
return
|
|
345
|
+
function Te(e) {
|
|
346
|
+
if (Ge(e))
|
|
347
|
+
return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), Se(e);
|
|
348
348
|
}
|
|
349
|
-
var
|
|
349
|
+
var je = N.ReactCurrentOwner, Xe = {
|
|
350
350
|
key: !0,
|
|
351
351
|
ref: !0,
|
|
352
352
|
__self: !0,
|
|
353
353
|
__source: !0
|
|
354
|
-
},
|
|
355
|
-
function
|
|
356
|
-
if (
|
|
354
|
+
}, Ce, Oe;
|
|
355
|
+
function Ze(e) {
|
|
356
|
+
if (H.call(e, "ref")) {
|
|
357
357
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
358
358
|
if (r && r.isReactWarning)
|
|
359
359
|
return !1;
|
|
360
360
|
}
|
|
361
361
|
return e.ref !== void 0;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
363
|
+
function Qe(e) {
|
|
364
|
+
if (H.call(e, "key")) {
|
|
365
365
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
366
366
|
if (r && r.isReactWarning)
|
|
367
367
|
return !1;
|
|
368
368
|
}
|
|
369
369
|
return e.key !== void 0;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
typeof e.ref == "string" &&
|
|
371
|
+
function er(e, r) {
|
|
372
|
+
typeof e.ref == "string" && je.current;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function rr(e, r) {
|
|
375
375
|
{
|
|
376
376
|
var t = function() {
|
|
377
|
-
|
|
377
|
+
Ce || (Ce = !0, u("%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));
|
|
378
378
|
};
|
|
379
379
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
380
380
|
get: t,
|
|
@@ -382,10 +382,10 @@ function pr() {
|
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function tr(e, r) {
|
|
386
386
|
{
|
|
387
387
|
var t = function() {
|
|
388
|
-
|
|
388
|
+
Oe || (Oe = !0, u("%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));
|
|
389
389
|
};
|
|
390
390
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
391
391
|
get: t,
|
|
@@ -393,70 +393,70 @@ function pr() {
|
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
var
|
|
397
|
-
var
|
|
396
|
+
var nr = function(e, r, t, n, c, d, o) {
|
|
397
|
+
var i = {
|
|
398
398
|
// This tag allows us to uniquely identify this as a React Element
|
|
399
|
-
$$typeof:
|
|
399
|
+
$$typeof: v,
|
|
400
400
|
// Built-in properties that belong on the element
|
|
401
401
|
type: e,
|
|
402
402
|
key: r,
|
|
403
403
|
ref: t,
|
|
404
|
-
props:
|
|
404
|
+
props: o,
|
|
405
405
|
// Record the component responsible for creating this element.
|
|
406
|
-
_owner:
|
|
406
|
+
_owner: d
|
|
407
407
|
};
|
|
408
|
-
return
|
|
408
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
409
409
|
configurable: !1,
|
|
410
410
|
enumerable: !1,
|
|
411
411
|
writable: !0,
|
|
412
412
|
value: !1
|
|
413
|
-
}), Object.defineProperty(
|
|
413
|
+
}), Object.defineProperty(i, "_self", {
|
|
414
414
|
configurable: !1,
|
|
415
415
|
enumerable: !1,
|
|
416
416
|
writable: !1,
|
|
417
417
|
value: n
|
|
418
|
-
}), Object.defineProperty(
|
|
418
|
+
}), Object.defineProperty(i, "_source", {
|
|
419
419
|
configurable: !1,
|
|
420
420
|
enumerable: !1,
|
|
421
421
|
writable: !1,
|
|
422
|
-
value:
|
|
423
|
-
}), Object.freeze && (Object.freeze(
|
|
422
|
+
value: c
|
|
423
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
424
424
|
};
|
|
425
|
-
function
|
|
425
|
+
function ar(e, r, t, n, c) {
|
|
426
426
|
{
|
|
427
|
-
var
|
|
428
|
-
t !== void 0 && (
|
|
429
|
-
for (
|
|
430
|
-
|
|
427
|
+
var d, o = {}, i = null, S = null;
|
|
428
|
+
t !== void 0 && (Te(t), i = "" + t), Qe(r) && (Te(r.key), i = "" + r.key), Ze(r) && (S = r.ref, er(r, c));
|
|
429
|
+
for (d in r)
|
|
430
|
+
H.call(r, d) && !Xe.hasOwnProperty(d) && (o[d] = r[d]);
|
|
431
431
|
if (e && e.defaultProps) {
|
|
432
|
-
var
|
|
433
|
-
for (
|
|
434
|
-
|
|
432
|
+
var m = e.defaultProps;
|
|
433
|
+
for (d in m)
|
|
434
|
+
o[d] === void 0 && (o[d] = m[d]);
|
|
435
435
|
}
|
|
436
|
-
if (
|
|
437
|
-
var
|
|
438
|
-
|
|
436
|
+
if (i || S) {
|
|
437
|
+
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
438
|
+
i && rr(o, y), S && tr(o, y);
|
|
439
439
|
}
|
|
440
|
-
return
|
|
440
|
+
return nr(e, i, S, c, n, je.current, o);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
var
|
|
444
|
-
function
|
|
443
|
+
var se = N.ReactCurrentOwner, we = N.ReactDebugCurrentFrame;
|
|
444
|
+
function U(e) {
|
|
445
445
|
if (e) {
|
|
446
|
-
var r = e._owner, t =
|
|
447
|
-
|
|
446
|
+
var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
|
|
447
|
+
we.setExtraStackFrame(t);
|
|
448
448
|
} else
|
|
449
|
-
|
|
449
|
+
we.setExtraStackFrame(null);
|
|
450
450
|
}
|
|
451
|
-
var
|
|
452
|
-
|
|
453
|
-
function
|
|
454
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
451
|
+
var ue;
|
|
452
|
+
ue = !1;
|
|
453
|
+
function le(e) {
|
|
454
|
+
return typeof e == "object" && e !== null && e.$$typeof === v;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function ke() {
|
|
457
457
|
{
|
|
458
|
-
if (
|
|
459
|
-
var e =
|
|
458
|
+
if (se.current) {
|
|
459
|
+
var e = W(se.current.type);
|
|
460
460
|
if (e)
|
|
461
461
|
return `
|
|
462
462
|
|
|
@@ -465,13 +465,13 @@ Check the render method of \`` + e + "`.";
|
|
|
465
465
|
return "";
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function ir(e) {
|
|
469
469
|
return "";
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
471
|
+
var Pe = {};
|
|
472
|
+
function or(e) {
|
|
473
473
|
{
|
|
474
|
-
var r =
|
|
474
|
+
var r = ke();
|
|
475
475
|
if (!r) {
|
|
476
476
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
477
477
|
t && (r = `
|
|
@@ -481,39 +481,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
481
481
|
return r;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Ae(e, r) {
|
|
485
485
|
{
|
|
486
486
|
if (!e._store || e._store.validated || e.key != null)
|
|
487
487
|
return;
|
|
488
488
|
e._store.validated = !0;
|
|
489
|
-
var t =
|
|
490
|
-
if (
|
|
489
|
+
var t = or(r);
|
|
490
|
+
if (Pe[t])
|
|
491
491
|
return;
|
|
492
|
-
|
|
492
|
+
Pe[t] = !0;
|
|
493
493
|
var n = "";
|
|
494
|
-
e && e._owner && e._owner !==
|
|
494
|
+
e && e._owner && e._owner !== se.current && (n = " It was passed a child from " + W(e._owner.type) + "."), U(e), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), U(null);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Ie(e, r) {
|
|
498
498
|
{
|
|
499
499
|
if (typeof e != "object")
|
|
500
500
|
return;
|
|
501
|
-
if (
|
|
501
|
+
if (oe(e))
|
|
502
502
|
for (var t = 0; t < e.length; t++) {
|
|
503
503
|
var n = e[t];
|
|
504
|
-
|
|
504
|
+
le(n) && Ae(n, r);
|
|
505
505
|
}
|
|
506
|
-
else if (
|
|
506
|
+
else if (le(e))
|
|
507
507
|
e._store && (e._store.validated = !0);
|
|
508
508
|
else if (e) {
|
|
509
|
-
var
|
|
510
|
-
if (typeof
|
|
511
|
-
for (var
|
|
512
|
-
|
|
509
|
+
var c = C(e);
|
|
510
|
+
if (typeof c == "function" && c !== e.entries)
|
|
511
|
+
for (var d = c.call(e), o; !(o = d.next()).done; )
|
|
512
|
+
le(o.value) && Ae(o.value, r);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function sr(e) {
|
|
517
517
|
{
|
|
518
518
|
var r = e.type;
|
|
519
519
|
if (r == null || typeof r == "string")
|
|
@@ -521,102 +521,282 @@ Check the top-level render call using <` + t + ">.");
|
|
|
521
521
|
var t;
|
|
522
522
|
if (typeof r == "function")
|
|
523
523
|
t = r.propTypes;
|
|
524
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
524
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
525
525
|
// Inner props are checked in the reconciler.
|
|
526
|
-
r.$$typeof ===
|
|
526
|
+
r.$$typeof === j))
|
|
527
527
|
t = r.propTypes;
|
|
528
528
|
else
|
|
529
529
|
return;
|
|
530
530
|
if (t) {
|
|
531
|
-
var n =
|
|
532
|
-
|
|
533
|
-
} else if (r.PropTypes !== void 0 && !
|
|
534
|
-
|
|
535
|
-
var
|
|
536
|
-
|
|
531
|
+
var n = W(r);
|
|
532
|
+
He(t, e.props, "prop", n, e);
|
|
533
|
+
} else if (r.PropTypes !== void 0 && !ue) {
|
|
534
|
+
ue = !0;
|
|
535
|
+
var c = W(r);
|
|
536
|
+
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
|
|
537
537
|
}
|
|
538
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
538
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function ur(e) {
|
|
542
542
|
{
|
|
543
543
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
544
544
|
var n = r[t];
|
|
545
545
|
if (n !== "children" && n !== "key") {
|
|
546
|
-
|
|
546
|
+
U(e), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), U(null);
|
|
547
547
|
break;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
e.ref !== null && (
|
|
550
|
+
e.ref !== null && (U(e), u("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
var
|
|
554
|
-
function
|
|
553
|
+
var Fe = {};
|
|
554
|
+
function Ne(e, r, t, n, c, d) {
|
|
555
555
|
{
|
|
556
|
-
var
|
|
557
|
-
if (!
|
|
558
|
-
var
|
|
559
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
560
|
-
var
|
|
561
|
-
|
|
562
|
-
var
|
|
563
|
-
e === null ?
|
|
556
|
+
var o = te(e);
|
|
557
|
+
if (!o) {
|
|
558
|
+
var i = "";
|
|
559
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
560
|
+
var S = ir();
|
|
561
|
+
S ? i += S : i += ke();
|
|
562
|
+
var m;
|
|
563
|
+
e === null ? m = "null" : oe(e) ? m = "array" : e !== void 0 && e.$$typeof === v ? (m = "<" + (W(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : m = typeof e, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", m, i);
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
if (
|
|
567
|
-
return
|
|
568
|
-
if (
|
|
569
|
-
var
|
|
570
|
-
if (
|
|
565
|
+
var y = ar(e, r, t, c, d);
|
|
566
|
+
if (y == null)
|
|
567
|
+
return y;
|
|
568
|
+
if (o) {
|
|
569
|
+
var w = r.children;
|
|
570
|
+
if (w !== void 0)
|
|
571
571
|
if (n)
|
|
572
|
-
if (
|
|
573
|
-
for (var
|
|
574
|
-
|
|
575
|
-
Object.freeze && Object.freeze(
|
|
572
|
+
if (oe(w)) {
|
|
573
|
+
for (var J = 0; J < w.length; J++)
|
|
574
|
+
Ie(w[J], e);
|
|
575
|
+
Object.freeze && Object.freeze(w);
|
|
576
576
|
} else
|
|
577
|
-
|
|
577
|
+
u("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
578
578
|
else
|
|
579
|
-
|
|
579
|
+
Ie(w, e);
|
|
580
580
|
}
|
|
581
|
-
if (
|
|
582
|
-
var
|
|
583
|
-
return
|
|
584
|
-
}),
|
|
585
|
-
if (!
|
|
586
|
-
var
|
|
587
|
-
|
|
581
|
+
if (H.call(r, "key")) {
|
|
582
|
+
var V = W(e), T = Object.keys(r).filter(function(pr) {
|
|
583
|
+
return pr !== "key";
|
|
584
|
+
}), ce = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
585
|
+
if (!Fe[V + ce]) {
|
|
586
|
+
var vr = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
587
|
+
u(`A props object containing a "key" prop is being spread into JSX:
|
|
588
588
|
let props = %s;
|
|
589
589
|
<%s {...props} />
|
|
590
590
|
React keys must be passed directly to JSX without using spread:
|
|
591
591
|
let props = %s;
|
|
592
|
-
<%s key={someKey} {...props} />`,
|
|
592
|
+
<%s key={someKey} {...props} />`, ce, V, vr, V), Fe[V + ce] = !0;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
return e ===
|
|
595
|
+
return e === a ? ur(y) : sr(y), y;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
return
|
|
598
|
+
function lr(e, r, t) {
|
|
599
|
+
return Ne(e, r, t, !0);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function cr(e, r, t) {
|
|
602
|
+
return Ne(e, r, t, !1);
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
|
|
606
|
-
})()),
|
|
604
|
+
var fr = cr, dr = lr;
|
|
605
|
+
z.Fragment = a, z.jsx = fr, z.jsxs = dr;
|
|
606
|
+
})()), z;
|
|
607
607
|
}
|
|
608
|
-
var
|
|
609
|
-
function
|
|
610
|
-
return
|
|
608
|
+
var We;
|
|
609
|
+
function _r() {
|
|
610
|
+
return We || (We = 1, process.env.NODE_ENV === "production" ? ee.exports = Rr() : ee.exports = Er()), ee.exports;
|
|
611
611
|
}
|
|
612
|
-
var
|
|
613
|
-
const
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
612
|
+
var b = _r();
|
|
613
|
+
const re = (s, v, f) => Object.keys(s).map((a, l) => {
|
|
614
|
+
const h = s[a], E = Array.isArray(h), k = E ? h.every((p) => typeof p == "number") : typeof h == "number";
|
|
615
|
+
return {
|
|
616
|
+
rId: v(l),
|
|
617
|
+
key: a,
|
|
618
|
+
value: E ? h.join(f) : h,
|
|
619
|
+
isArray: E || void 0,
|
|
620
|
+
isNumber: k || void 0
|
|
621
|
+
};
|
|
622
|
+
}), fe = (s, v) => s.reduce((f, a) => (a.key.trim() && (f[a.key] = xr(a.value, a.isArray, a.isNumber, v)), f), {}), xr = (s, v, f, a = ",") => {
|
|
623
|
+
let l;
|
|
624
|
+
return v ? f ? l = String(s).split(a).map(Number).filter((h) => !Number.isNaN(h)) : l = String(s).split(a) : f ? l = parseFloat(s) : l = s.toString(), l;
|
|
625
|
+
}, Sr = (s, v, f = ",") => {
|
|
626
|
+
const a = (l) => {
|
|
627
|
+
l = l.replace(/[^\d.-]/g, "");
|
|
628
|
+
let h = !1;
|
|
629
|
+
l.startsWith("-") && (h = !0), l = l.replace(/-/g, "");
|
|
630
|
+
const E = l.indexOf(".");
|
|
631
|
+
return E !== -1 && (l = l.slice(0, E + 1) + l.slice(E + 1).replace(/\./g, "")), (h ? "-" : "") + l;
|
|
632
|
+
};
|
|
633
|
+
return v ? s.split(f).map((l) => a(l)).join(f) : a(s);
|
|
634
|
+
};
|
|
635
|
+
function Le(s) {
|
|
636
|
+
var v, f, a = "";
|
|
637
|
+
if (typeof s == "string" || typeof s == "number") a += s;
|
|
638
|
+
else if (typeof s == "object") if (Array.isArray(s)) {
|
|
639
|
+
var l = s.length;
|
|
640
|
+
for (v = 0; v < l; v++) s[v] && (f = Le(s[v])) && (a && (a += " "), a += f);
|
|
641
|
+
} else for (f in s) s[f] && (a && (a += " "), a += f);
|
|
642
|
+
return a;
|
|
643
|
+
}
|
|
644
|
+
function M() {
|
|
645
|
+
for (var s, v, f = 0, a = "", l = arguments.length; f < l; f++) (s = arguments[f]) && (v = Le(s)) && (a && (a += " "), a += v);
|
|
646
|
+
return a;
|
|
647
|
+
}
|
|
648
|
+
const jr = mr((s, v) => {
|
|
649
|
+
const {
|
|
650
|
+
value: f,
|
|
651
|
+
size: a,
|
|
652
|
+
isController: l,
|
|
653
|
+
config: h,
|
|
654
|
+
btnConfigs: E,
|
|
655
|
+
dyListConfigs: k,
|
|
656
|
+
randomFun: p = (u) => `${Date.now()}_${u ?? 0}`,
|
|
657
|
+
onReset: D,
|
|
658
|
+
onMerge: _,
|
|
659
|
+
onChange: j
|
|
660
|
+
} = s, P = {
|
|
661
|
+
resetTxt: "重置",
|
|
662
|
+
newTxt: "添加项",
|
|
663
|
+
mergeTxt: "合并",
|
|
664
|
+
...E
|
|
665
|
+
}, F = {
|
|
666
|
+
hideReset: !1,
|
|
667
|
+
maxHeight: "300px",
|
|
668
|
+
autoScroll: !0,
|
|
669
|
+
allowFilter: !0,
|
|
670
|
+
...h
|
|
671
|
+
}, A = {
|
|
672
|
+
arraySplitSymbol: ",",
|
|
673
|
+
...k
|
|
674
|
+
}, [I, C] = yr(() => re(f, p, A.arraySplitSymbol)), N = br(null);
|
|
675
|
+
return gr(v, () => ({
|
|
676
|
+
getResult(u) {
|
|
677
|
+
return u === "ori" ? I : fe(I, A.arraySplitSymbol);
|
|
678
|
+
},
|
|
679
|
+
onSet(u) {
|
|
680
|
+
C(re(u ?? f, p, A.arraySplitSymbol));
|
|
681
|
+
}
|
|
682
|
+
})), hr(() => {
|
|
683
|
+
l && j(fe(I, A.arraySplitSymbol));
|
|
684
|
+
}, [I]), /* @__PURE__ */ b.jsxs("div", { className: s.dyCls ?? `dynamicInput ${a}`, children: [
|
|
685
|
+
/* @__PURE__ */ b.jsx("div", { className: "dyFormList", ref: N, style: { maxHeight: F.maxHeight }, children: I.map((u, x, q) => /* @__PURE__ */ b.jsxs("div", { className: "dItem", children: [
|
|
686
|
+
/* @__PURE__ */ b.jsxs("div", { className: "input", children: [
|
|
687
|
+
/* @__PURE__ */ b.jsx("input", { value: u.key, className: "key nativeInput", onInput: (g) => {
|
|
688
|
+
const R = g.target.value;
|
|
689
|
+
C((O) => {
|
|
690
|
+
const Y = [...O], $ = Y[x];
|
|
691
|
+
return Y[x] = { ...$, key: R }, Y;
|
|
692
|
+
});
|
|
693
|
+
} }),
|
|
694
|
+
":",
|
|
695
|
+
/* @__PURE__ */ b.jsxs("div", { className: "vInput", children: [
|
|
696
|
+
/* @__PURE__ */ b.jsxs("div", { className: "slot", children: [
|
|
697
|
+
/* @__PURE__ */ b.jsx(
|
|
698
|
+
"button",
|
|
699
|
+
{
|
|
700
|
+
className: M([
|
|
701
|
+
u.isArray ? "success" : "default",
|
|
702
|
+
"small",
|
|
703
|
+
"bt"
|
|
704
|
+
]),
|
|
705
|
+
onClick: () => {
|
|
706
|
+
C((g) => {
|
|
707
|
+
const R = [...g], O = R[x];
|
|
708
|
+
return R[x] = { ...O, isArray: !O.isArray }, R;
|
|
709
|
+
});
|
|
710
|
+
},
|
|
711
|
+
children: "Array"
|
|
712
|
+
}
|
|
713
|
+
),
|
|
714
|
+
" ",
|
|
715
|
+
/* @__PURE__ */ b.jsx(
|
|
716
|
+
"button",
|
|
717
|
+
{
|
|
718
|
+
className: M([
|
|
719
|
+
u.isNumber ? "success" : "default",
|
|
720
|
+
"small",
|
|
721
|
+
"bt"
|
|
722
|
+
]),
|
|
723
|
+
onClick: () => {
|
|
724
|
+
C((g) => {
|
|
725
|
+
const R = [...g], O = R[x];
|
|
726
|
+
return R[x] = { ...O, isNumber: !O.isNumber }, R;
|
|
727
|
+
});
|
|
728
|
+
},
|
|
729
|
+
children: "Number"
|
|
730
|
+
}
|
|
731
|
+
)
|
|
732
|
+
] }),
|
|
733
|
+
/* @__PURE__ */ b.jsx("input", { value: u.value, className: "value nativeV", onInput: (g) => {
|
|
734
|
+
const R = g.target.value;
|
|
735
|
+
let O = R;
|
|
736
|
+
u.isNumber && F.allowFilter && (O = Sr(
|
|
737
|
+
R,
|
|
738
|
+
u.isArray,
|
|
739
|
+
A.arraySplitSymbol
|
|
740
|
+
)), C((Y) => {
|
|
741
|
+
const $ = [...Y], te = $[x];
|
|
742
|
+
return $[x] = { ...te, value: O }, $;
|
|
743
|
+
});
|
|
744
|
+
} })
|
|
745
|
+
] })
|
|
746
|
+
] }),
|
|
747
|
+
/* @__PURE__ */ b.jsxs("div", { className: "btn", children: [
|
|
748
|
+
/* @__PURE__ */ b.jsx(
|
|
749
|
+
"button",
|
|
750
|
+
{
|
|
751
|
+
className: M([a, "success", "bt"]),
|
|
752
|
+
disabled: x !== q.length - 1,
|
|
753
|
+
onClick: () => {
|
|
754
|
+
C((g) => [...g, { rId: p(), key: "", value: "" }]), F.autoScroll && setTimeout(() => {
|
|
755
|
+
const g = N.current;
|
|
756
|
+
g?.scrollTo({ top: g?.scrollHeight + 20, behavior: "smooth" });
|
|
757
|
+
});
|
|
758
|
+
},
|
|
759
|
+
children: "+"
|
|
760
|
+
}
|
|
761
|
+
),
|
|
762
|
+
/* @__PURE__ */ b.jsx("button", { className: M([
|
|
763
|
+
"danger",
|
|
764
|
+
a,
|
|
765
|
+
"bt"
|
|
766
|
+
]), onClick: () => {
|
|
767
|
+
C((g) => g.filter((R) => R.rId !== u.rId));
|
|
768
|
+
}, children: "-" })
|
|
769
|
+
] })
|
|
770
|
+
] }, u.rId)) }),
|
|
771
|
+
/* @__PURE__ */ b.jsxs("div", { className: "control", children: [
|
|
772
|
+
!I.length && /* @__PURE__ */ b.jsx("button", { className: M([
|
|
773
|
+
"success",
|
|
774
|
+
a,
|
|
775
|
+
"bt"
|
|
776
|
+
]), onClick: () => {
|
|
777
|
+
C((u) => [...u, { rId: p(), key: "", value: "" }]);
|
|
778
|
+
}, children: P.newTxt }),
|
|
779
|
+
!l && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
780
|
+
!F.hideReset && /* @__PURE__ */ b.jsx("button", { className: M([
|
|
781
|
+
"default",
|
|
782
|
+
a,
|
|
783
|
+
"bt"
|
|
784
|
+
]), onClick: () => {
|
|
785
|
+
C(re(f, p, A.arraySplitSymbol)), D?.();
|
|
786
|
+
}, children: P.resetTxt }),
|
|
787
|
+
/* @__PURE__ */ b.jsx("button", { className: M([
|
|
788
|
+
"info",
|
|
789
|
+
a,
|
|
790
|
+
"bt"
|
|
791
|
+
]), onClick: () => {
|
|
792
|
+
[...I].sort((q, g) => +q.rId - +g.rId);
|
|
793
|
+
const x = fe(I, A.arraySplitSymbol);
|
|
794
|
+
j(x), _?.(x, I), C(re(x, p, A.arraySplitSymbol));
|
|
795
|
+
}, children: P.mergeTxt })
|
|
796
|
+
] })
|
|
797
|
+
] })
|
|
798
|
+
] });
|
|
799
|
+
});
|
|
620
800
|
export {
|
|
621
|
-
|
|
801
|
+
jr as DynamicInput
|
|
622
802
|
};
|