@react-querybuilder/antd 5.0.0-alpha.7 → 5.0.0-alpha.9
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 +11 -7
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +163 -163
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/AntDDragHandle.d.ts +1 -1
- package/package.json +6 -8
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isOptionGroupArray as
|
|
2
|
-
import { Button as
|
|
3
|
-
import
|
|
1
|
+
import { isOptionGroupArray as Rr, joinWith as le, splitBy as Me, useValueEditor as Tr, toArray as wr, standardClassnames as Ie, getCompatContextProvider as xr } from "react-querybuilder";
|
|
2
|
+
import { Button as Sr, Switch as Ne, Select as Ue, Radio as Cr, Checkbox as Pr, Input as Fe, TimePicker as kr, DatePicker as $e } from "antd";
|
|
3
|
+
import Be, { forwardRef as Or, useMemo as We } from "react";
|
|
4
4
|
import { HolderOutlined as jr } from "@ant-design/icons";
|
|
5
5
|
import Z from "moment";
|
|
6
6
|
var ce = { exports: {} }, B = {};
|
|
@@ -13,23 +13,23 @@ var ce = { exports: {} }, B = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var Ye;
|
|
17
17
|
function Dr() {
|
|
18
|
-
if (
|
|
18
|
+
if (Ye)
|
|
19
19
|
return B;
|
|
20
|
-
|
|
21
|
-
var h =
|
|
20
|
+
Ye = 1;
|
|
21
|
+
var h = Be, u = Symbol.for("react.element"), s = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, _ = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function R(T, p, w) {
|
|
23
23
|
var E, m = {}, C = null, k = null;
|
|
24
24
|
w !== void 0 && (C = "" + w), p.key !== void 0 && (C = "" + p.key), p.ref !== void 0 && (k = p.ref);
|
|
25
25
|
for (E in p)
|
|
26
|
-
|
|
26
|
+
l.call(p, E) && !v.hasOwnProperty(E) && (m[E] = p[E]);
|
|
27
27
|
if (T && T.defaultProps)
|
|
28
28
|
for (E in p = T.defaultProps, p)
|
|
29
29
|
m[E] === void 0 && (m[E] = p[E]);
|
|
30
30
|
return { $$typeof: u, type: T, key: C, ref: k, props: m, _owner: _.current };
|
|
31
31
|
}
|
|
32
|
-
return B.Fragment =
|
|
32
|
+
return B.Fragment = s, B.jsx = R, B.jsxs = R, B;
|
|
33
33
|
}
|
|
34
34
|
var H = {};
|
|
35
35
|
/**
|
|
@@ -41,10 +41,10 @@ var H = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
44
|
+
var Ve;
|
|
45
45
|
function Ar() {
|
|
46
|
-
return
|
|
47
|
-
var h =
|
|
46
|
+
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var h = Be, u = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), T = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), O = Symbol.iterator, F = "@@iterator";
|
|
48
48
|
function L(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
@@ -52,7 +52,7 @@ function Ar() {
|
|
|
52
52
|
return typeof r == "function" ? r : null;
|
|
53
53
|
}
|
|
54
54
|
var a = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
-
function
|
|
55
|
+
function f(e) {
|
|
56
56
|
{
|
|
57
57
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
58
58
|
t[n - 1] = arguments[n];
|
|
@@ -61,25 +61,25 @@ function Ar() {
|
|
|
61
61
|
}
|
|
62
62
|
function M(e, r, t) {
|
|
63
63
|
{
|
|
64
|
-
var n = a.ReactDebugCurrentFrame,
|
|
65
|
-
|
|
64
|
+
var n = a.ReactDebugCurrentFrame, c = n.getStackAddendum();
|
|
65
|
+
c !== "" && (r += "%s", t = t.concat([c]));
|
|
66
66
|
var d = t.map(function(i) {
|
|
67
67
|
return String(i);
|
|
68
68
|
});
|
|
69
69
|
d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var W = !1, S = !1, G = !1, q = !1,
|
|
72
|
+
var W = !1, S = !1, G = !1, q = !1, Je = !1, se;
|
|
73
73
|
se = Symbol.for("react.module.reference");
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
74
|
+
function ze(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === v || Je || e === _ || e === w || e === E || q || e === k || W || S || G || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === m || e.$$typeof === R || e.$$typeof === T || e.$$typeof === p || e.$$typeof === se || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ke(e, r, t) {
|
|
78
78
|
var n = e.displayName;
|
|
79
79
|
if (n)
|
|
80
80
|
return n;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var c = r.displayName || r.name || "";
|
|
82
|
+
return c !== "" ? t + "(" + c + ")" : t;
|
|
83
83
|
}
|
|
84
84
|
function fe(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
@@ -87,14 +87,14 @@ function Ar() {
|
|
|
87
87
|
function j(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case
|
|
95
|
+
case l:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case s:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case v:
|
|
100
100
|
return "Profiler";
|
|
@@ -114,12 +114,12 @@ function Ar() {
|
|
|
114
114
|
var t = e;
|
|
115
115
|
return fe(t._context) + ".Provider";
|
|
116
116
|
case p:
|
|
117
|
-
return
|
|
117
|
+
return Ke(e, e.render, "ForwardRef");
|
|
118
118
|
case m:
|
|
119
119
|
var n = e.displayName || null;
|
|
120
120
|
return n !== null ? n : j(e.type) || "Memo";
|
|
121
121
|
case C: {
|
|
122
|
-
var
|
|
122
|
+
var c = e, d = c._payload, i = c._init;
|
|
123
123
|
try {
|
|
124
124
|
return j(i(d));
|
|
125
125
|
} catch {
|
|
@@ -133,7 +133,7 @@ function Ar() {
|
|
|
133
133
|
function ye() {
|
|
134
134
|
}
|
|
135
135
|
ye.__reactDisabledLog = !0;
|
|
136
|
-
function
|
|
136
|
+
function Xe() {
|
|
137
137
|
{
|
|
138
138
|
if (N === 0) {
|
|
139
139
|
de = console.log, ve = console.info, pe = console.warn, me = console.error, he = console.group, _e = console.groupCollapsed, ge = console.groupEnd;
|
|
@@ -156,7 +156,7 @@ function Ar() {
|
|
|
156
156
|
N++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Qe() {
|
|
160
160
|
{
|
|
161
161
|
if (N--, N === 0) {
|
|
162
162
|
var e = {
|
|
@@ -188,7 +188,7 @@ function Ar() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
N < 0 &&
|
|
191
|
+
N < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var ee = a.ReactCurrentDispatcher, re;
|
|
@@ -197,8 +197,8 @@ function Ar() {
|
|
|
197
197
|
if (re === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var n =
|
|
200
|
+
} catch (c) {
|
|
201
|
+
var n = c.stack.trim().match(/\n( *(at )?)/);
|
|
202
202
|
re = n && n[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
@@ -207,8 +207,8 @@ function Ar() {
|
|
|
207
207
|
}
|
|
208
208
|
var te = !1, z;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
z = new
|
|
210
|
+
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
z = new Ze();
|
|
212
212
|
}
|
|
213
213
|
function Ee(e, r) {
|
|
214
214
|
if (!e || te)
|
|
@@ -220,10 +220,10 @@ function Ar() {
|
|
|
220
220
|
}
|
|
221
221
|
var n;
|
|
222
222
|
te = !0;
|
|
223
|
-
var
|
|
223
|
+
var c = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var d;
|
|
226
|
-
d = ee.current, ee.current = null,
|
|
226
|
+
d = ee.current, ee.current = null, Xe();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
229
|
var i = function() {
|
|
@@ -276,15 +276,15 @@ function Ar() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
te = !1, ee.current = d,
|
|
279
|
+
te = !1, ee.current = d, Qe(), Error.prepareStackTrace = c;
|
|
280
280
|
}
|
|
281
281
|
var V = e ? e.displayName || e.name : "", Ae = V ? J(V) : "";
|
|
282
282
|
return typeof e == "function" && z.set(e, Ae), Ae;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function er(e, r, t) {
|
|
285
285
|
return Ee(e, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function rr(e) {
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
@@ -292,7 +292,7 @@ function Ar() {
|
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return Ee(e,
|
|
295
|
+
return Ee(e, rr(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
297
|
return J(e);
|
|
298
298
|
switch (e) {
|
|
@@ -304,13 +304,13 @@ function Ar() {
|
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case p:
|
|
307
|
-
return
|
|
307
|
+
return er(e.render);
|
|
308
308
|
case m:
|
|
309
309
|
return K(e.type, r, t);
|
|
310
310
|
case C: {
|
|
311
|
-
var n = e,
|
|
311
|
+
var n = e, c = n._payload, d = n._init;
|
|
312
312
|
try {
|
|
313
|
-
return K(d(
|
|
313
|
+
return K(d(c), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -325,7 +325,7 @@ function Ar() {
|
|
|
325
325
|
} else
|
|
326
326
|
Re.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function tr(e, r, t, n, c) {
|
|
329
329
|
{
|
|
330
330
|
var d = Function.call.bind(X);
|
|
331
331
|
for (var i in e)
|
|
@@ -340,21 +340,21 @@ function Ar() {
|
|
|
340
340
|
} catch (g) {
|
|
341
341
|
o = g;
|
|
342
342
|
}
|
|
343
|
-
o && !(o instanceof Error) && (Q(
|
|
343
|
+
o && !(o instanceof Error) && (Q(c), f("%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, i, typeof o), Q(null)), o instanceof Error && !(o.message in be) && (be[o.message] = !0, Q(c), f("Failed %s type: %s", t, o.message), Q(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
347
|
+
var nr = Array.isArray;
|
|
348
348
|
function ne(e) {
|
|
349
|
-
return
|
|
349
|
+
return nr(e);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function ar(e) {
|
|
352
352
|
{
|
|
353
353
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
354
|
return t;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function or(e) {
|
|
358
358
|
try {
|
|
359
359
|
return Te(e), !1;
|
|
360
360
|
} catch {
|
|
@@ -365,17 +365,17 @@ function Ar() {
|
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
367
|
function we(e) {
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
368
|
+
if (or(e))
|
|
369
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(e)), Te(e);
|
|
370
370
|
}
|
|
371
|
-
var U = a.ReactCurrentOwner,
|
|
371
|
+
var U = a.ReactCurrentOwner, ir = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
376
|
}, xe, Se, ae;
|
|
377
377
|
ae = {};
|
|
378
|
-
function
|
|
378
|
+
function ur(e) {
|
|
379
379
|
if (X.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
@@ -383,7 +383,7 @@ function Ar() {
|
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function lr(e) {
|
|
387
387
|
if (X.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
@@ -391,16 +391,16 @@ function Ar() {
|
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function cr(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
|
|
396
396
|
var t = j(U.current.type);
|
|
397
|
-
ae[t] || (
|
|
397
|
+
ae[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(U.current.type), e.ref), ae[t] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function sr(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var t = function() {
|
|
403
|
-
xe || (xe = !0,
|
|
403
|
+
xe || (xe = !0, f("%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));
|
|
404
404
|
};
|
|
405
405
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: t,
|
|
@@ -408,10 +408,10 @@ function Ar() {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function fr(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var t = function() {
|
|
414
|
-
Se || (Se = !0,
|
|
414
|
+
Se || (Se = !0, f("%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));
|
|
415
415
|
};
|
|
416
416
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: t,
|
|
@@ -419,7 +419,7 @@ function Ar() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
422
|
+
var dr = function(e, r, t, n, c, d, i) {
|
|
423
423
|
var o = {
|
|
424
424
|
$$typeof: u,
|
|
425
425
|
type: e,
|
|
@@ -442,15 +442,15 @@ function Ar() {
|
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
445
|
+
value: c
|
|
446
446
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function vr(e, r, t, n, c) {
|
|
449
449
|
{
|
|
450
450
|
var d, i = {}, o = null, x = null;
|
|
451
|
-
t !== void 0 && (we(t), o = "" + t),
|
|
451
|
+
t !== void 0 && (we(t), o = "" + t), lr(r) && (we(r.key), o = "" + r.key), ur(r) && (x = r.ref, cr(r, c));
|
|
452
452
|
for (d in r)
|
|
453
|
-
X.call(r, d) && !
|
|
453
|
+
X.call(r, d) && !ir.hasOwnProperty(d) && (i[d] = r[d]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
455
|
var g = e.defaultProps;
|
|
456
456
|
for (d in g)
|
|
@@ -458,9 +458,9 @@ function Ar() {
|
|
|
458
458
|
}
|
|
459
459
|
if (o || x) {
|
|
460
460
|
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
-
o &&
|
|
461
|
+
o && sr(i, b), x && fr(i, b);
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return dr(e, o, x, c, n, U.current, i);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
var oe = a.ReactCurrentOwner, Ce = a.ReactDebugCurrentFrame;
|
|
@@ -488,7 +488,7 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function pr(e) {
|
|
492
492
|
{
|
|
493
493
|
if (e !== void 0) {
|
|
494
494
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
@@ -500,7 +500,7 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
var ke = {};
|
|
503
|
-
function
|
|
503
|
+
function mr(e) {
|
|
504
504
|
{
|
|
505
505
|
var r = Pe();
|
|
506
506
|
if (!r) {
|
|
@@ -517,12 +517,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
517
517
|
if (!e._store || e._store.validated || e.key != null)
|
|
518
518
|
return;
|
|
519
519
|
e._store.validated = !0;
|
|
520
|
-
var t =
|
|
520
|
+
var t = mr(r);
|
|
521
521
|
if (ke[t])
|
|
522
522
|
return;
|
|
523
523
|
ke[t] = !0;
|
|
524
524
|
var n = "";
|
|
525
|
-
e && e._owner && e._owner !== oe.current && (n = " It was passed a child from " + j(e._owner.type) + "."), Y(e),
|
|
525
|
+
e && e._owner && e._owner !== oe.current && (n = " It was passed a child from " + j(e._owner.type) + "."), Y(e), f('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), Y(null);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
function je(e, r) {
|
|
@@ -537,14 +537,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
537
537
|
else if (ue(e))
|
|
538
538
|
e._store && (e._store.validated = !0);
|
|
539
539
|
else if (e) {
|
|
540
|
-
var
|
|
541
|
-
if (typeof
|
|
542
|
-
for (var d =
|
|
540
|
+
var c = L(e);
|
|
541
|
+
if (typeof c == "function" && c !== e.entries)
|
|
542
|
+
for (var d = c.call(e), i; !(i = d.next()).done; )
|
|
543
543
|
ue(i.value) && Oe(i.value, r);
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function hr(e) {
|
|
548
548
|
{
|
|
549
549
|
var r = e.type;
|
|
550
550
|
if (r == null || typeof r == "string")
|
|
@@ -558,39 +558,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
558
558
|
return;
|
|
559
559
|
if (t) {
|
|
560
560
|
var n = j(r);
|
|
561
|
-
|
|
561
|
+
tr(t, e.props, "prop", n, e);
|
|
562
562
|
} else if (r.PropTypes !== void 0 && !ie) {
|
|
563
563
|
ie = !0;
|
|
564
|
-
var
|
|
565
|
-
|
|
564
|
+
var c = j(r);
|
|
565
|
+
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
|
|
566
566
|
}
|
|
567
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
567
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function _r(e) {
|
|
571
571
|
{
|
|
572
572
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
573
573
|
var n = r[t];
|
|
574
574
|
if (n !== "children" && n !== "key") {
|
|
575
|
-
Y(e),
|
|
575
|
+
Y(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), Y(null);
|
|
576
576
|
break;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
e.ref !== null && (Y(e),
|
|
579
|
+
e.ref !== null && (Y(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function De(e, r, t, n,
|
|
582
|
+
function De(e, r, t, n, c, d) {
|
|
583
583
|
{
|
|
584
|
-
var i =
|
|
584
|
+
var i = ze(e);
|
|
585
585
|
if (!i) {
|
|
586
586
|
var o = "";
|
|
587
587
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
|
-
var x =
|
|
588
|
+
var x = pr(c);
|
|
589
589
|
x ? o += x : o += Pe();
|
|
590
590
|
var g;
|
|
591
|
-
e === null ? g = "null" : ne(e) ? g = "array" : e !== void 0 && e.$$typeof === u ? (g = "<" + (j(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e,
|
|
591
|
+
e === null ? g = "null" : ne(e) ? g = "array" : e !== void 0 && e.$$typeof === u ? (g = "<" + (j(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, o);
|
|
592
592
|
}
|
|
593
|
-
var b =
|
|
593
|
+
var b = vr(e, r, t, c, d);
|
|
594
594
|
if (b == null)
|
|
595
595
|
return b;
|
|
596
596
|
if (i) {
|
|
@@ -602,21 +602,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
602
602
|
je(P[V], e);
|
|
603
603
|
Object.freeze && Object.freeze(P);
|
|
604
604
|
} else
|
|
605
|
-
|
|
605
|
+
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
607
|
je(P, e);
|
|
608
608
|
}
|
|
609
|
-
return e ===
|
|
609
|
+
return e === l ? _r(b) : hr(b), b;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function gr(e, r, t) {
|
|
613
613
|
return De(e, r, t, !0);
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function yr(e, r, t) {
|
|
616
616
|
return De(e, r, t, !1);
|
|
617
617
|
}
|
|
618
|
-
var
|
|
619
|
-
H.Fragment =
|
|
618
|
+
var Er = yr, br = gr;
|
|
619
|
+
H.Fragment = l, H.jsx = Er, H.jsxs = br;
|
|
620
620
|
}()), H;
|
|
621
621
|
}
|
|
622
622
|
(function(h) {
|
|
@@ -625,8 +625,8 @@ Check the top-level render call using <` + t + ">.");
|
|
|
625
625
|
const y = ce.exports.jsx, Ir = ce.exports.jsxs, A = ({
|
|
626
626
|
className: h,
|
|
627
627
|
handleOnClick: u,
|
|
628
|
-
label:
|
|
629
|
-
title:
|
|
628
|
+
label: s,
|
|
629
|
+
title: l,
|
|
630
630
|
disabled: _,
|
|
631
631
|
disabledTranslation: v,
|
|
632
632
|
testID: R,
|
|
@@ -636,21 +636,21 @@ const y = ce.exports.jsx, Ir = ce.exports.jsxs, A = ({
|
|
|
636
636
|
context: E,
|
|
637
637
|
validation: m,
|
|
638
638
|
...C
|
|
639
|
-
}) => /* @__PURE__ */ y(
|
|
639
|
+
}) => /* @__PURE__ */ y(Sr, {
|
|
640
640
|
type: "primary",
|
|
641
641
|
className: h,
|
|
642
|
-
title: v && _ ? v.title :
|
|
642
|
+
title: v && _ ? v.title : l,
|
|
643
643
|
onClick: (k) => u(k),
|
|
644
644
|
disabled: _ && !v,
|
|
645
645
|
...C,
|
|
646
|
-
children: v && _ ? v.label :
|
|
646
|
+
children: v && _ ? v.label : s
|
|
647
647
|
});
|
|
648
648
|
A.displayName = "AntDActionElement";
|
|
649
|
-
const
|
|
649
|
+
const He = Or(({
|
|
650
650
|
className: h,
|
|
651
651
|
title: u,
|
|
652
|
-
testID:
|
|
653
|
-
level:
|
|
652
|
+
testID: s,
|
|
653
|
+
level: l,
|
|
654
654
|
path: _,
|
|
655
655
|
label: v,
|
|
656
656
|
disabled: R,
|
|
@@ -663,12 +663,12 @@ const Be = kr(({
|
|
|
663
663
|
title: u,
|
|
664
664
|
...w
|
|
665
665
|
}));
|
|
666
|
-
|
|
667
|
-
const
|
|
666
|
+
He.displayName = "AntDDragHandle";
|
|
667
|
+
const Ge = ({
|
|
668
668
|
className: h,
|
|
669
669
|
handleOnChange: u,
|
|
670
|
-
label:
|
|
671
|
-
checked:
|
|
670
|
+
label: s,
|
|
671
|
+
checked: l,
|
|
672
672
|
title: _,
|
|
673
673
|
disabled: v,
|
|
674
674
|
path: R,
|
|
@@ -676,34 +676,34 @@ const He = ({
|
|
|
676
676
|
validation: p,
|
|
677
677
|
testID: w,
|
|
678
678
|
...E
|
|
679
|
-
}) => /* @__PURE__ */ y(
|
|
679
|
+
}) => /* @__PURE__ */ y(Ne, {
|
|
680
680
|
title: _,
|
|
681
681
|
className: h,
|
|
682
682
|
onChange: (m) => u(m),
|
|
683
|
-
checked: !!
|
|
683
|
+
checked: !!l,
|
|
684
684
|
disabled: v,
|
|
685
|
-
checkedChildren:
|
|
685
|
+
checkedChildren: s,
|
|
686
686
|
unCheckedChildren: "=",
|
|
687
687
|
...E
|
|
688
688
|
});
|
|
689
|
-
|
|
689
|
+
Ge.displayName = "AntDNotToggle";
|
|
690
690
|
const {
|
|
691
691
|
OptGroup: Fr,
|
|
692
|
-
Option:
|
|
693
|
-
} =
|
|
692
|
+
Option: Le
|
|
693
|
+
} = Ue, $r = (h) => Rr(h) ? h.map((u) => /* @__PURE__ */ y(Fr, {
|
|
694
694
|
label: u.label,
|
|
695
|
-
children: u.options.map((
|
|
696
|
-
value:
|
|
697
|
-
children:
|
|
698
|
-
},
|
|
699
|
-
}, u.label)) : Array.isArray(h) ? h.map((u) => /* @__PURE__ */ y(
|
|
695
|
+
children: u.options.map((s) => /* @__PURE__ */ y(Le, {
|
|
696
|
+
value: s.name,
|
|
697
|
+
children: s.label
|
|
698
|
+
}, s.name))
|
|
699
|
+
}, u.label)) : Array.isArray(h) ? h.map((u) => /* @__PURE__ */ y(Le, {
|
|
700
700
|
value: u.name,
|
|
701
701
|
children: u.label
|
|
702
702
|
}, u.name)) : null, I = ({
|
|
703
703
|
className: h,
|
|
704
704
|
handleOnChange: u,
|
|
705
|
-
options:
|
|
706
|
-
value:
|
|
705
|
+
options: s,
|
|
706
|
+
value: l,
|
|
707
707
|
title: _,
|
|
708
708
|
disabled: v,
|
|
709
709
|
multiple: R,
|
|
@@ -719,29 +719,29 @@ const {
|
|
|
719
719
|
fieldData: L,
|
|
720
720
|
...a
|
|
721
721
|
}) => {
|
|
722
|
-
const
|
|
722
|
+
const f = We(() => R ? (S) => u(Array.isArray(S) ? T ? S : le(S, ",") : S) : (S) => u(S), [u, T, R]), M = We(() => R ? Array.isArray(l) ? l : l === "" ? [] : Me(l, ",") : l, [R, l]);
|
|
723
723
|
return /* @__PURE__ */ y("span", {
|
|
724
724
|
title: _,
|
|
725
725
|
className: h,
|
|
726
|
-
children: /* @__PURE__ */ y(
|
|
726
|
+
children: /* @__PURE__ */ y(Ue, {
|
|
727
727
|
...R ? {
|
|
728
728
|
mode: "multiple"
|
|
729
729
|
} : {},
|
|
730
730
|
dropdownMatchSelectWidth: !1,
|
|
731
731
|
disabled: v,
|
|
732
732
|
value: M,
|
|
733
|
-
onChange:
|
|
733
|
+
onChange: f,
|
|
734
734
|
...a,
|
|
735
|
-
children: $r(
|
|
735
|
+
children: $r(s)
|
|
736
736
|
})
|
|
737
737
|
});
|
|
738
738
|
};
|
|
739
739
|
I.displayName = "AntDValueSelector";
|
|
740
|
-
const
|
|
740
|
+
const qe = ({
|
|
741
741
|
fieldData: h,
|
|
742
742
|
operator: u,
|
|
743
|
-
value:
|
|
744
|
-
handleOnChange:
|
|
743
|
+
value: s,
|
|
744
|
+
handleOnChange: l,
|
|
745
745
|
title: _,
|
|
746
746
|
className: v,
|
|
747
747
|
type: R,
|
|
@@ -754,22 +754,22 @@ const Ge = ({
|
|
|
754
754
|
...k
|
|
755
755
|
}) => {
|
|
756
756
|
var L;
|
|
757
|
-
if (
|
|
758
|
-
handleOnChange:
|
|
757
|
+
if (Tr({
|
|
758
|
+
handleOnChange: l,
|
|
759
759
|
inputType: T,
|
|
760
760
|
operator: u,
|
|
761
|
-
value:
|
|
761
|
+
value: s
|
|
762
762
|
}), u === "null" || u === "notNull")
|
|
763
763
|
return null;
|
|
764
764
|
const O = (L = h == null ? void 0 : h.placeholder) != null ? L : "", F = ["between", "notBetween", "in", "notIn"].includes(u) && !["date", "datetime-local"].includes(`${T}`) ? "text" : T || "text";
|
|
765
765
|
if ((u === "between" || u === "notBetween") && R === "select") {
|
|
766
|
-
const a =
|
|
766
|
+
const a = wr(s), f = (W) => {
|
|
767
767
|
var G, q;
|
|
768
768
|
const S = [W, (q = a[1]) != null ? q : (G = p[0]) == null ? void 0 : G.name, ...a.slice(2)];
|
|
769
|
-
|
|
769
|
+
l(w ? S : le(S, ","));
|
|
770
770
|
}, M = (W) => {
|
|
771
771
|
const S = [a[0], W, ...a.slice(2)];
|
|
772
|
-
|
|
772
|
+
l(w ? S : le(S, ","));
|
|
773
773
|
};
|
|
774
774
|
return /* @__PURE__ */ Ir("span", {
|
|
775
775
|
"data-testid": C,
|
|
@@ -778,7 +778,7 @@ const Ge = ({
|
|
|
778
778
|
children: [/* @__PURE__ */ y(I, {
|
|
779
779
|
...k,
|
|
780
780
|
className: Ie.valueListItem,
|
|
781
|
-
handleOnChange:
|
|
781
|
+
handleOnChange: f,
|
|
782
782
|
disabled: m,
|
|
783
783
|
value: a[0],
|
|
784
784
|
options: p,
|
|
@@ -800,9 +800,9 @@ const Ge = ({
|
|
|
800
800
|
return /* @__PURE__ */ y(I, {
|
|
801
801
|
...k,
|
|
802
802
|
className: v,
|
|
803
|
-
handleOnChange:
|
|
803
|
+
handleOnChange: l,
|
|
804
804
|
options: p,
|
|
805
|
-
value:
|
|
805
|
+
value: s,
|
|
806
806
|
title: _,
|
|
807
807
|
disabled: m,
|
|
808
808
|
multiple: R === "multiselect",
|
|
@@ -810,41 +810,41 @@ const Ge = ({
|
|
|
810
810
|
});
|
|
811
811
|
case "textarea":
|
|
812
812
|
return /* @__PURE__ */ y(Fe.TextArea, {
|
|
813
|
-
value:
|
|
813
|
+
value: s,
|
|
814
814
|
title: _,
|
|
815
815
|
className: v,
|
|
816
816
|
disabled: m,
|
|
817
817
|
placeholder: O,
|
|
818
|
-
onChange: (a) =>
|
|
818
|
+
onChange: (a) => l(a.target.value)
|
|
819
819
|
});
|
|
820
820
|
case "switch":
|
|
821
|
-
return /* @__PURE__ */ y(
|
|
822
|
-
checked: !!
|
|
821
|
+
return /* @__PURE__ */ y(Ne, {
|
|
822
|
+
checked: !!s,
|
|
823
823
|
title: _,
|
|
824
824
|
className: v,
|
|
825
825
|
disabled: m,
|
|
826
|
-
onChange: (a) =>
|
|
826
|
+
onChange: (a) => l(a)
|
|
827
827
|
});
|
|
828
828
|
case "checkbox":
|
|
829
829
|
return /* @__PURE__ */ y("span", {
|
|
830
830
|
title: _,
|
|
831
831
|
className: v,
|
|
832
|
-
children: /* @__PURE__ */ y(
|
|
832
|
+
children: /* @__PURE__ */ y(Pr, {
|
|
833
833
|
type: "checkbox",
|
|
834
834
|
disabled: m,
|
|
835
|
-
onChange: (a) =>
|
|
836
|
-
checked: !!
|
|
835
|
+
onChange: (a) => l(a.target.checked),
|
|
836
|
+
checked: !!s
|
|
837
837
|
})
|
|
838
838
|
});
|
|
839
839
|
case "radio":
|
|
840
840
|
return /* @__PURE__ */ y("span", {
|
|
841
841
|
className: v,
|
|
842
842
|
title: _,
|
|
843
|
-
children: p.map((a) => /* @__PURE__ */ y(
|
|
843
|
+
children: p.map((a) => /* @__PURE__ */ y(Cr, {
|
|
844
844
|
value: a.name,
|
|
845
|
-
checked:
|
|
845
|
+
checked: s === a.name,
|
|
846
846
|
disabled: m,
|
|
847
|
-
onChange: (
|
|
847
|
+
onChange: (f) => l(f.target.value),
|
|
848
848
|
children: a.label
|
|
849
849
|
}, a.name))
|
|
850
850
|
});
|
|
@@ -853,44 +853,44 @@ const Ge = ({
|
|
|
853
853
|
case "date":
|
|
854
854
|
case "datetime-local":
|
|
855
855
|
return u === "between" || u === "notBetween" ? /* @__PURE__ */ y($e.RangePicker, {
|
|
856
|
-
value: typeof
|
|
856
|
+
value: typeof s == "string" && /^[^,]+,[^,]+$/.test(s) ? Me(s, ",").map((a) => Z(a)) : void 0,
|
|
857
857
|
showTime: F === "datetime-local",
|
|
858
858
|
className: v,
|
|
859
859
|
disabled: m,
|
|
860
860
|
placeholder: [O, O],
|
|
861
|
-
onChange: (a) =>
|
|
861
|
+
onChange: (a) => l(a == null ? void 0 : a.map((f) => f == null ? void 0 : f.format(Z.HTML5_FMT.DATE)).join(","))
|
|
862
862
|
}) : /* @__PURE__ */ y($e, {
|
|
863
|
-
value:
|
|
863
|
+
value: s ? Z(s) : null,
|
|
864
864
|
showTime: F === "datetime-local",
|
|
865
865
|
className: v,
|
|
866
866
|
disabled: m,
|
|
867
867
|
placeholder: O,
|
|
868
|
-
onChange: (a,
|
|
868
|
+
onChange: (a, f) => l(f)
|
|
869
869
|
});
|
|
870
870
|
case "time":
|
|
871
|
-
return /* @__PURE__ */ y(
|
|
872
|
-
value:
|
|
871
|
+
return /* @__PURE__ */ y(kr, {
|
|
872
|
+
value: s ? Z(s, "HH:mm:ss") : null,
|
|
873
873
|
className: v,
|
|
874
874
|
disabled: m,
|
|
875
875
|
placeholder: O,
|
|
876
876
|
onChange: (a) => {
|
|
877
|
-
var
|
|
878
|
-
return
|
|
877
|
+
var f;
|
|
878
|
+
return l((f = a == null ? void 0 : a.format("HH:mm:ss")) != null ? f : "");
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
882
|
return /* @__PURE__ */ y(Fe, {
|
|
883
883
|
type: F,
|
|
884
|
-
value:
|
|
884
|
+
value: s,
|
|
885
885
|
title: _,
|
|
886
886
|
className: v,
|
|
887
887
|
disabled: m,
|
|
888
888
|
placeholder: O,
|
|
889
|
-
onChange: (a) =>
|
|
889
|
+
onChange: (a) => l(a.target.value)
|
|
890
890
|
});
|
|
891
891
|
};
|
|
892
|
-
|
|
893
|
-
const Ur = "5.0.0-alpha.
|
|
892
|
+
qe.displayName = "AntDValueEditor";
|
|
893
|
+
const Ur = "5.0.0-alpha.9", Wr = {
|
|
894
894
|
addGroupAction: A,
|
|
895
895
|
addRuleAction: A,
|
|
896
896
|
cloneGroupAction: A,
|
|
@@ -899,22 +899,22 @@ const Ur = "5.0.0-alpha.7", Wr = {
|
|
|
899
899
|
lockRuleAction: A,
|
|
900
900
|
combinatorSelector: I,
|
|
901
901
|
fieldSelector: I,
|
|
902
|
-
notToggle:
|
|
902
|
+
notToggle: Ge,
|
|
903
903
|
operatorSelector: I,
|
|
904
904
|
removeGroupAction: A,
|
|
905
905
|
removeRuleAction: A,
|
|
906
|
-
valueEditor:
|
|
907
|
-
dragHandle:
|
|
906
|
+
valueEditor: qe,
|
|
907
|
+
dragHandle: He,
|
|
908
908
|
valueSourceSelector: I
|
|
909
|
-
}, Br =
|
|
909
|
+
}, Br = xr({
|
|
910
910
|
key: "antd",
|
|
911
911
|
controlElements: Wr
|
|
912
912
|
});
|
|
913
913
|
export {
|
|
914
914
|
A as AntDActionElement,
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
915
|
+
He as AntDDragHandle,
|
|
916
|
+
Ge as AntDNotToggle,
|
|
917
|
+
qe as AntDValueEditor,
|
|
918
918
|
I as AntDValueSelector,
|
|
919
919
|
Br as QueryBuilderAntD,
|
|
920
920
|
Wr as antdControlElements,
|