@react-querybuilder/antd 4.5.2 → 5.0.0-alpha.3
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 +7 -8
- package/dist/index.cjs.js +20 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +871 -281
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/AntD.test.d.ts +4 -0
- package/dist/types/{AntDActionElement.d.ts → src/AntDActionElement.d.ts} +1 -1
- package/dist/types/src/AntDDragHandle.d.ts +6 -0
- package/dist/types/{AntDNotToggle.d.ts → src/AntDNotToggle.d.ts} +1 -1
- package/dist/types/{AntDValueEditor.d.ts → src/AntDValueEditor.d.ts} +1 -2
- package/dist/types/src/AntDValueSelector.d.ts +9 -0
- package/dist/types/{index.d.ts → src/index.d.ts} +3 -1
- package/dist/types/{utils.d.ts → src/utils.d.ts} +2 -2
- package/package.json +19 -13
- package/dist/types/AntD.test.d.ts +0 -1
- package/dist/types/AntDDragHandle.d.ts +0 -6
- package/dist/types/AntDValueSelector.d.ts +0 -9
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
var
|
|
7
|
-
var reactJsxRuntime_production_min = {};
|
|
1
|
+
import { isOptionGroupArray as br, joinWith as le, splitBy as Le, useValueEditor as Rr, toArray as Tr, standardClassnames as Ie, getCompatContextProvider as wr } from "react-querybuilder";
|
|
2
|
+
import { Button as xr, Switch as Me, Select as Ne, Radio as Sr, Checkbox as Cr, Input as Fe, TimePicker as Pr, DatePicker as $e } from "antd";
|
|
3
|
+
import Ue, { forwardRef as kr, useMemo as Or } from "react";
|
|
4
|
+
import { HolderOutlined as jr } from "@ant-design/icons";
|
|
5
|
+
import Z from "moment";
|
|
6
|
+
var ce = { exports: {} }, B = {};
|
|
8
7
|
/**
|
|
9
8
|
* @license React
|
|
10
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,320 +13,911 @@ var reactJsxRuntime_production_min = {};
|
|
|
14
13
|
* This source code is licensed under the MIT license found in the
|
|
15
14
|
* LICENSE file in the root directory of this source tree.
|
|
16
15
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
m
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
var We;
|
|
17
|
+
function Dr() {
|
|
18
|
+
if (We)
|
|
19
|
+
return B;
|
|
20
|
+
We = 1;
|
|
21
|
+
var h = Ue, u = Symbol.for("react.element"), c = Symbol.for("react.fragment"), f = 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
|
+
function R(T, p, w) {
|
|
23
|
+
var E, m = {}, C = null, k = null;
|
|
24
|
+
w !== void 0 && (C = "" + w), p.key !== void 0 && (C = "" + p.key), p.ref !== void 0 && (k = p.ref);
|
|
25
|
+
for (E in p)
|
|
26
|
+
f.call(p, E) && !v.hasOwnProperty(E) && (m[E] = p[E]);
|
|
27
|
+
if (T && T.defaultProps)
|
|
28
|
+
for (E in p = T.defaultProps, p)
|
|
29
|
+
m[E] === void 0 && (m[E] = p[E]);
|
|
30
|
+
return { $$typeof: u, type: T, key: C, ref: k, props: m, _owner: _.current };
|
|
31
|
+
}
|
|
32
|
+
return B.Fragment = c, B.jsx = R, B.jsxs = R, B;
|
|
29
33
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
var H = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var Ye;
|
|
45
|
+
function Ar() {
|
|
46
|
+
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var h = Ue, u = Symbol.for("react.element"), c = Symbol.for("react.portal"), f = 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
|
+
function L(e) {
|
|
49
|
+
if (e === null || typeof e != "object")
|
|
50
|
+
return null;
|
|
51
|
+
var r = O && e[O] || e[F];
|
|
52
|
+
return typeof r == "function" ? r : null;
|
|
53
|
+
}
|
|
54
|
+
var a = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
+
function s(e) {
|
|
56
|
+
{
|
|
57
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
58
|
+
t[n - 1] = arguments[n];
|
|
59
|
+
M("error", e, t);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function M(e, r, t) {
|
|
63
|
+
{
|
|
64
|
+
var n = a.ReactDebugCurrentFrame, l = n.getStackAddendum();
|
|
65
|
+
l !== "" && (r += "%s", t = t.concat([l]));
|
|
66
|
+
var d = t.map(function(i) {
|
|
67
|
+
return String(i);
|
|
68
|
+
});
|
|
69
|
+
d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
var W = !1, S = !1, G = !1, q = !1, qe = !1, se;
|
|
73
|
+
se = Symbol.for("react.module.reference");
|
|
74
|
+
function Je(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === v || qe || 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
|
+
}
|
|
77
|
+
function ze(e, r, t) {
|
|
78
|
+
var n = e.displayName;
|
|
79
|
+
if (n)
|
|
80
|
+
return n;
|
|
81
|
+
var l = r.displayName || r.name || "";
|
|
82
|
+
return l !== "" ? t + "(" + l + ")" : t;
|
|
83
|
+
}
|
|
84
|
+
function fe(e) {
|
|
85
|
+
return e.displayName || "Context";
|
|
86
|
+
}
|
|
87
|
+
function j(e) {
|
|
88
|
+
if (e == null)
|
|
89
|
+
return null;
|
|
90
|
+
if (typeof e.tag == "number" && s("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
|
+
return e.displayName || e.name || null;
|
|
92
|
+
if (typeof e == "string")
|
|
93
|
+
return e;
|
|
94
|
+
switch (e) {
|
|
95
|
+
case f:
|
|
96
|
+
return "Fragment";
|
|
97
|
+
case c:
|
|
98
|
+
return "Portal";
|
|
99
|
+
case v:
|
|
100
|
+
return "Profiler";
|
|
101
|
+
case _:
|
|
102
|
+
return "StrictMode";
|
|
103
|
+
case w:
|
|
104
|
+
return "Suspense";
|
|
105
|
+
case E:
|
|
106
|
+
return "SuspenseList";
|
|
107
|
+
}
|
|
108
|
+
if (typeof e == "object")
|
|
109
|
+
switch (e.$$typeof) {
|
|
110
|
+
case T:
|
|
111
|
+
var r = e;
|
|
112
|
+
return fe(r) + ".Consumer";
|
|
113
|
+
case R:
|
|
114
|
+
var t = e;
|
|
115
|
+
return fe(t._context) + ".Provider";
|
|
116
|
+
case p:
|
|
117
|
+
return ze(e, e.render, "ForwardRef");
|
|
118
|
+
case m:
|
|
119
|
+
var n = e.displayName || null;
|
|
120
|
+
return n !== null ? n : j(e.type) || "Memo";
|
|
121
|
+
case C: {
|
|
122
|
+
var l = e, d = l._payload, i = l._init;
|
|
123
|
+
try {
|
|
124
|
+
return j(i(d));
|
|
125
|
+
} catch {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
var $ = Object.assign, N = 0, de, ve, pe, me, he, _e, ge;
|
|
133
|
+
function ye() {
|
|
134
|
+
}
|
|
135
|
+
ye.__reactDisabledLog = !0;
|
|
136
|
+
function Ke() {
|
|
137
|
+
{
|
|
138
|
+
if (N === 0) {
|
|
139
|
+
de = console.log, ve = console.info, pe = console.warn, me = console.error, he = console.group, _e = console.groupCollapsed, ge = console.groupEnd;
|
|
140
|
+
var e = {
|
|
141
|
+
configurable: !0,
|
|
142
|
+
enumerable: !0,
|
|
143
|
+
value: ye,
|
|
144
|
+
writable: !0
|
|
145
|
+
};
|
|
146
|
+
Object.defineProperties(console, {
|
|
147
|
+
info: e,
|
|
148
|
+
log: e,
|
|
149
|
+
warn: e,
|
|
150
|
+
error: e,
|
|
151
|
+
group: e,
|
|
152
|
+
groupCollapsed: e,
|
|
153
|
+
groupEnd: e
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
N++;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function Xe() {
|
|
160
|
+
{
|
|
161
|
+
if (N--, N === 0) {
|
|
162
|
+
var e = {
|
|
163
|
+
configurable: !0,
|
|
164
|
+
enumerable: !0,
|
|
165
|
+
writable: !0
|
|
166
|
+
};
|
|
167
|
+
Object.defineProperties(console, {
|
|
168
|
+
log: $({}, e, {
|
|
169
|
+
value: de
|
|
170
|
+
}),
|
|
171
|
+
info: $({}, e, {
|
|
172
|
+
value: ve
|
|
173
|
+
}),
|
|
174
|
+
warn: $({}, e, {
|
|
175
|
+
value: pe
|
|
176
|
+
}),
|
|
177
|
+
error: $({}, e, {
|
|
178
|
+
value: me
|
|
179
|
+
}),
|
|
180
|
+
group: $({}, e, {
|
|
181
|
+
value: he
|
|
182
|
+
}),
|
|
183
|
+
groupCollapsed: $({}, e, {
|
|
184
|
+
value: _e
|
|
185
|
+
}),
|
|
186
|
+
groupEnd: $({}, e, {
|
|
187
|
+
value: ge
|
|
188
|
+
})
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
N < 0 && s("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
var ee = a.ReactCurrentDispatcher, re;
|
|
195
|
+
function J(e, r, t) {
|
|
196
|
+
{
|
|
197
|
+
if (re === void 0)
|
|
198
|
+
try {
|
|
199
|
+
throw Error();
|
|
200
|
+
} catch (l) {
|
|
201
|
+
var n = l.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
re = n && n[1] || "";
|
|
203
|
+
}
|
|
204
|
+
return `
|
|
205
|
+
` + re + e;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
var te = !1, z;
|
|
209
|
+
{
|
|
210
|
+
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
z = new Qe();
|
|
212
|
+
}
|
|
213
|
+
function Ee(e, r) {
|
|
214
|
+
if (!e || te)
|
|
215
|
+
return "";
|
|
216
|
+
{
|
|
217
|
+
var t = z.get(e);
|
|
218
|
+
if (t !== void 0)
|
|
219
|
+
return t;
|
|
220
|
+
}
|
|
221
|
+
var n;
|
|
222
|
+
te = !0;
|
|
223
|
+
var l = Error.prepareStackTrace;
|
|
224
|
+
Error.prepareStackTrace = void 0;
|
|
225
|
+
var d;
|
|
226
|
+
d = ee.current, ee.current = null, Ke();
|
|
227
|
+
try {
|
|
228
|
+
if (r) {
|
|
229
|
+
var i = function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
};
|
|
232
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
233
|
+
set: function() {
|
|
234
|
+
throw Error();
|
|
235
|
+
}
|
|
236
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
|
+
try {
|
|
238
|
+
Reflect.construct(i, []);
|
|
239
|
+
} catch (D) {
|
|
240
|
+
n = D;
|
|
241
|
+
}
|
|
242
|
+
Reflect.construct(e, [], i);
|
|
243
|
+
} else {
|
|
244
|
+
try {
|
|
245
|
+
i.call();
|
|
246
|
+
} catch (D) {
|
|
247
|
+
n = D;
|
|
248
|
+
}
|
|
249
|
+
e.call(i.prototype);
|
|
250
|
+
}
|
|
251
|
+
} else {
|
|
252
|
+
try {
|
|
253
|
+
throw Error();
|
|
254
|
+
} catch (D) {
|
|
255
|
+
n = D;
|
|
256
|
+
}
|
|
257
|
+
e();
|
|
258
|
+
}
|
|
259
|
+
} catch (D) {
|
|
260
|
+
if (D && n && typeof D.stack == "string") {
|
|
261
|
+
for (var o = D.stack.split(`
|
|
262
|
+
`), x = n.stack.split(`
|
|
263
|
+
`), g = o.length - 1, b = x.length - 1; g >= 1 && b >= 0 && o[g] !== x[b]; )
|
|
264
|
+
b--;
|
|
265
|
+
for (; g >= 1 && b >= 0; g--, b--)
|
|
266
|
+
if (o[g] !== x[b]) {
|
|
267
|
+
if (g !== 1 || b !== 1)
|
|
268
|
+
do
|
|
269
|
+
if (g--, b--, b < 0 || o[g] !== x[b]) {
|
|
270
|
+
var P = `
|
|
271
|
+
` + o[g].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, P), P;
|
|
273
|
+
}
|
|
274
|
+
while (g >= 1 && b >= 0);
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
} finally {
|
|
279
|
+
te = !1, ee.current = d, Xe(), Error.prepareStackTrace = l;
|
|
280
|
+
}
|
|
281
|
+
var V = e ? e.displayName || e.name : "", Ae = V ? J(V) : "";
|
|
282
|
+
return typeof e == "function" && z.set(e, Ae), Ae;
|
|
283
|
+
}
|
|
284
|
+
function Ze(e, r, t) {
|
|
285
|
+
return Ee(e, !1);
|
|
286
|
+
}
|
|
287
|
+
function er(e) {
|
|
288
|
+
var r = e.prototype;
|
|
289
|
+
return !!(r && r.isReactComponent);
|
|
290
|
+
}
|
|
291
|
+
function K(e, r, t) {
|
|
292
|
+
if (e == null)
|
|
293
|
+
return "";
|
|
294
|
+
if (typeof e == "function")
|
|
295
|
+
return Ee(e, er(e));
|
|
296
|
+
if (typeof e == "string")
|
|
297
|
+
return J(e);
|
|
298
|
+
switch (e) {
|
|
299
|
+
case w:
|
|
300
|
+
return J("Suspense");
|
|
301
|
+
case E:
|
|
302
|
+
return J("SuspenseList");
|
|
303
|
+
}
|
|
304
|
+
if (typeof e == "object")
|
|
305
|
+
switch (e.$$typeof) {
|
|
306
|
+
case p:
|
|
307
|
+
return Ze(e.render);
|
|
308
|
+
case m:
|
|
309
|
+
return K(e.type, r, t);
|
|
310
|
+
case C: {
|
|
311
|
+
var n = e, l = n._payload, d = n._init;
|
|
312
|
+
try {
|
|
313
|
+
return K(d(l), r, t);
|
|
314
|
+
} catch {
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return "";
|
|
319
|
+
}
|
|
320
|
+
var X = Object.prototype.hasOwnProperty, be = {}, Re = a.ReactDebugCurrentFrame;
|
|
321
|
+
function Q(e) {
|
|
322
|
+
if (e) {
|
|
323
|
+
var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
|
|
324
|
+
Re.setExtraStackFrame(t);
|
|
325
|
+
} else
|
|
326
|
+
Re.setExtraStackFrame(null);
|
|
327
|
+
}
|
|
328
|
+
function rr(e, r, t, n, l) {
|
|
329
|
+
{
|
|
330
|
+
var d = Function.call.bind(X);
|
|
331
|
+
for (var i in e)
|
|
332
|
+
if (d(e, i)) {
|
|
333
|
+
var o = void 0;
|
|
334
|
+
try {
|
|
335
|
+
if (typeof e[i] != "function") {
|
|
336
|
+
var x = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw x.name = "Invariant Violation", x;
|
|
338
|
+
}
|
|
339
|
+
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (g) {
|
|
341
|
+
o = g;
|
|
342
|
+
}
|
|
343
|
+
o && !(o instanceof Error) && (Q(l), s("%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(l), s("Failed %s type: %s", t, o.message), Q(null));
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
var tr = Array.isArray;
|
|
348
|
+
function ne(e) {
|
|
349
|
+
return tr(e);
|
|
350
|
+
}
|
|
351
|
+
function nr(e) {
|
|
352
|
+
{
|
|
353
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
+
return t;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function ar(e) {
|
|
358
|
+
try {
|
|
359
|
+
return Te(e), !1;
|
|
360
|
+
} catch {
|
|
361
|
+
return !0;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function Te(e) {
|
|
365
|
+
return "" + e;
|
|
366
|
+
}
|
|
367
|
+
function we(e) {
|
|
368
|
+
if (ar(e))
|
|
369
|
+
return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Te(e);
|
|
370
|
+
}
|
|
371
|
+
var U = a.ReactCurrentOwner, or = {
|
|
372
|
+
key: !0,
|
|
373
|
+
ref: !0,
|
|
374
|
+
__self: !0,
|
|
375
|
+
__source: !0
|
|
376
|
+
}, xe, Se, ae;
|
|
377
|
+
ae = {};
|
|
378
|
+
function ir(e) {
|
|
379
|
+
if (X.call(e, "ref")) {
|
|
380
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
+
if (r && r.isReactWarning)
|
|
382
|
+
return !1;
|
|
383
|
+
}
|
|
384
|
+
return e.ref !== void 0;
|
|
385
|
+
}
|
|
386
|
+
function ur(e) {
|
|
387
|
+
if (X.call(e, "key")) {
|
|
388
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
+
if (r && r.isReactWarning)
|
|
390
|
+
return !1;
|
|
391
|
+
}
|
|
392
|
+
return e.key !== void 0;
|
|
393
|
+
}
|
|
394
|
+
function lr(e, r) {
|
|
395
|
+
if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
|
|
396
|
+
var t = j(U.current.type);
|
|
397
|
+
ae[t] || (s('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
|
+
}
|
|
399
|
+
}
|
|
400
|
+
function cr(e, r) {
|
|
401
|
+
{
|
|
402
|
+
var t = function() {
|
|
403
|
+
xe || (xe = !0, s("%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
|
+
};
|
|
405
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: t,
|
|
407
|
+
configurable: !0
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function sr(e, r) {
|
|
412
|
+
{
|
|
413
|
+
var t = function() {
|
|
414
|
+
Se || (Se = !0, s("%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
|
+
};
|
|
416
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: t,
|
|
418
|
+
configurable: !0
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var fr = function(e, r, t, n, l, d, i) {
|
|
423
|
+
var o = {
|
|
424
|
+
$$typeof: u,
|
|
425
|
+
type: e,
|
|
426
|
+
key: r,
|
|
427
|
+
ref: t,
|
|
428
|
+
props: i,
|
|
429
|
+
_owner: d
|
|
430
|
+
};
|
|
431
|
+
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
432
|
+
configurable: !1,
|
|
433
|
+
enumerable: !1,
|
|
434
|
+
writable: !0,
|
|
435
|
+
value: !1
|
|
436
|
+
}), Object.defineProperty(o, "_self", {
|
|
437
|
+
configurable: !1,
|
|
438
|
+
enumerable: !1,
|
|
439
|
+
writable: !1,
|
|
440
|
+
value: n
|
|
441
|
+
}), Object.defineProperty(o, "_source", {
|
|
442
|
+
configurable: !1,
|
|
443
|
+
enumerable: !1,
|
|
444
|
+
writable: !1,
|
|
445
|
+
value: l
|
|
446
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
447
|
+
};
|
|
448
|
+
function dr(e, r, t, n, l) {
|
|
449
|
+
{
|
|
450
|
+
var d, i = {}, o = null, x = null;
|
|
451
|
+
t !== void 0 && (we(t), o = "" + t), ur(r) && (we(r.key), o = "" + r.key), ir(r) && (x = r.ref, lr(r, l));
|
|
452
|
+
for (d in r)
|
|
453
|
+
X.call(r, d) && !or.hasOwnProperty(d) && (i[d] = r[d]);
|
|
454
|
+
if (e && e.defaultProps) {
|
|
455
|
+
var g = e.defaultProps;
|
|
456
|
+
for (d in g)
|
|
457
|
+
i[d] === void 0 && (i[d] = g[d]);
|
|
458
|
+
}
|
|
459
|
+
if (o || x) {
|
|
460
|
+
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
o && cr(i, b), x && sr(i, b);
|
|
462
|
+
}
|
|
463
|
+
return fr(e, o, x, l, n, U.current, i);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
var oe = a.ReactCurrentOwner, Ce = a.ReactDebugCurrentFrame;
|
|
467
|
+
function Y(e) {
|
|
468
|
+
if (e) {
|
|
469
|
+
var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
|
|
470
|
+
Ce.setExtraStackFrame(t);
|
|
471
|
+
} else
|
|
472
|
+
Ce.setExtraStackFrame(null);
|
|
473
|
+
}
|
|
474
|
+
var ie;
|
|
475
|
+
ie = !1;
|
|
476
|
+
function ue(e) {
|
|
477
|
+
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
478
|
+
}
|
|
479
|
+
function Pe() {
|
|
480
|
+
{
|
|
481
|
+
if (oe.current) {
|
|
482
|
+
var e = j(oe.current.type);
|
|
483
|
+
if (e)
|
|
484
|
+
return `
|
|
485
|
+
|
|
486
|
+
Check the render method of \`` + e + "`.";
|
|
487
|
+
}
|
|
488
|
+
return "";
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
function vr(e) {
|
|
492
|
+
{
|
|
493
|
+
if (e !== void 0) {
|
|
494
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
495
|
+
return `
|
|
496
|
+
|
|
497
|
+
Check your code at ` + r + ":" + t + ".";
|
|
498
|
+
}
|
|
499
|
+
return "";
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
var ke = {};
|
|
503
|
+
function pr(e) {
|
|
504
|
+
{
|
|
505
|
+
var r = Pe();
|
|
506
|
+
if (!r) {
|
|
507
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
508
|
+
t && (r = `
|
|
509
|
+
|
|
510
|
+
Check the top-level render call using <` + t + ">.");
|
|
511
|
+
}
|
|
512
|
+
return r;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function Oe(e, r) {
|
|
516
|
+
{
|
|
517
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
518
|
+
return;
|
|
519
|
+
e._store.validated = !0;
|
|
520
|
+
var t = pr(r);
|
|
521
|
+
if (ke[t])
|
|
522
|
+
return;
|
|
523
|
+
ke[t] = !0;
|
|
524
|
+
var n = "";
|
|
525
|
+
e && e._owner && e._owner !== oe.current && (n = " It was passed a child from " + j(e._owner.type) + "."), Y(e), s('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
|
+
}
|
|
527
|
+
}
|
|
528
|
+
function je(e, r) {
|
|
529
|
+
{
|
|
530
|
+
if (typeof e != "object")
|
|
531
|
+
return;
|
|
532
|
+
if (ne(e))
|
|
533
|
+
for (var t = 0; t < e.length; t++) {
|
|
534
|
+
var n = e[t];
|
|
535
|
+
ue(n) && Oe(n, r);
|
|
536
|
+
}
|
|
537
|
+
else if (ue(e))
|
|
538
|
+
e._store && (e._store.validated = !0);
|
|
539
|
+
else if (e) {
|
|
540
|
+
var l = L(e);
|
|
541
|
+
if (typeof l == "function" && l !== e.entries)
|
|
542
|
+
for (var d = l.call(e), i; !(i = d.next()).done; )
|
|
543
|
+
ue(i.value) && Oe(i.value, r);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function mr(e) {
|
|
548
|
+
{
|
|
549
|
+
var r = e.type;
|
|
550
|
+
if (r == null || typeof r == "string")
|
|
551
|
+
return;
|
|
552
|
+
var t;
|
|
553
|
+
if (typeof r == "function")
|
|
554
|
+
t = r.propTypes;
|
|
555
|
+
else if (typeof r == "object" && (r.$$typeof === p || r.$$typeof === m))
|
|
556
|
+
t = r.propTypes;
|
|
557
|
+
else
|
|
558
|
+
return;
|
|
559
|
+
if (t) {
|
|
560
|
+
var n = j(r);
|
|
561
|
+
rr(t, e.props, "prop", n, e);
|
|
562
|
+
} else if (r.PropTypes !== void 0 && !ie) {
|
|
563
|
+
ie = !0;
|
|
564
|
+
var l = j(r);
|
|
565
|
+
s("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
|
|
566
|
+
}
|
|
567
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && s("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
function hr(e) {
|
|
571
|
+
{
|
|
572
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
573
|
+
var n = r[t];
|
|
574
|
+
if (n !== "children" && n !== "key") {
|
|
575
|
+
Y(e), s("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), Y(null);
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
e.ref !== null && (Y(e), s("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
function De(e, r, t, n, l, d) {
|
|
583
|
+
{
|
|
584
|
+
var i = Je(e);
|
|
585
|
+
if (!i) {
|
|
586
|
+
var o = "";
|
|
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 = vr(l);
|
|
589
|
+
x ? o += x : o += Pe();
|
|
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, s("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
|
+
}
|
|
593
|
+
var b = dr(e, r, t, l, d);
|
|
594
|
+
if (b == null)
|
|
595
|
+
return b;
|
|
596
|
+
if (i) {
|
|
597
|
+
var P = r.children;
|
|
598
|
+
if (P !== void 0)
|
|
599
|
+
if (n)
|
|
600
|
+
if (ne(P)) {
|
|
601
|
+
for (var V = 0; V < P.length; V++)
|
|
602
|
+
je(P[V], e);
|
|
603
|
+
Object.freeze && Object.freeze(P);
|
|
604
|
+
} else
|
|
605
|
+
s("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
|
+
else
|
|
607
|
+
je(P, e);
|
|
608
|
+
}
|
|
609
|
+
return e === f ? hr(b) : mr(b), b;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
function _r(e, r, t) {
|
|
613
|
+
return De(e, r, t, !0);
|
|
614
|
+
}
|
|
615
|
+
function gr(e, r, t) {
|
|
616
|
+
return De(e, r, t, !1);
|
|
617
|
+
}
|
|
618
|
+
var yr = gr, Er = _r;
|
|
619
|
+
H.Fragment = f, H.jsx = yr, H.jsxs = Er;
|
|
620
|
+
}()), H;
|
|
35
621
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
622
|
+
(function(h) {
|
|
623
|
+
process.env.NODE_ENV === "production" ? h.exports = Dr() : h.exports = Ar();
|
|
624
|
+
})(ce);
|
|
625
|
+
const y = ce.exports.jsx, Ir = ce.exports.jsxs, A = ({
|
|
626
|
+
className: h,
|
|
627
|
+
handleOnClick: u,
|
|
628
|
+
label: c,
|
|
629
|
+
title: f,
|
|
630
|
+
disabled: _,
|
|
631
|
+
disabledTranslation: v,
|
|
632
|
+
testID: R,
|
|
633
|
+
rules: T,
|
|
634
|
+
level: p,
|
|
635
|
+
path: w,
|
|
636
|
+
context: E,
|
|
637
|
+
validation: m,
|
|
638
|
+
...C
|
|
639
|
+
}) => /* @__PURE__ */ y(xr, {
|
|
53
640
|
type: "primary",
|
|
54
|
-
className,
|
|
55
|
-
title:
|
|
56
|
-
onClick: (
|
|
57
|
-
disabled:
|
|
58
|
-
...
|
|
59
|
-
children:
|
|
641
|
+
className: h,
|
|
642
|
+
title: v && _ ? v.title : f,
|
|
643
|
+
onClick: (k) => u(k),
|
|
644
|
+
disabled: _ && !v,
|
|
645
|
+
...C,
|
|
646
|
+
children: v && _ ? v.label : c
|
|
60
647
|
});
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
className,
|
|
64
|
-
title,
|
|
65
|
-
testID:
|
|
66
|
-
level:
|
|
67
|
-
path:
|
|
68
|
-
label:
|
|
69
|
-
disabled:
|
|
70
|
-
context:
|
|
71
|
-
validation:
|
|
72
|
-
...
|
|
73
|
-
},
|
|
74
|
-
ref:
|
|
75
|
-
className,
|
|
76
|
-
title,
|
|
77
|
-
...
|
|
648
|
+
A.displayName = "AntDActionElement";
|
|
649
|
+
const Be = kr(({
|
|
650
|
+
className: h,
|
|
651
|
+
title: u,
|
|
652
|
+
testID: c,
|
|
653
|
+
level: f,
|
|
654
|
+
path: _,
|
|
655
|
+
label: v,
|
|
656
|
+
disabled: R,
|
|
657
|
+
context: T,
|
|
658
|
+
validation: p,
|
|
659
|
+
...w
|
|
660
|
+
}, E) => /* @__PURE__ */ y(jr, {
|
|
661
|
+
ref: E,
|
|
662
|
+
className: h,
|
|
663
|
+
title: u,
|
|
664
|
+
...w
|
|
78
665
|
}));
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
className,
|
|
82
|
-
handleOnChange,
|
|
83
|
-
label,
|
|
84
|
-
checked,
|
|
85
|
-
title,
|
|
86
|
-
disabled,
|
|
87
|
-
path:
|
|
88
|
-
context:
|
|
89
|
-
validation:
|
|
90
|
-
testID:
|
|
91
|
-
...
|
|
92
|
-
}) => /* @__PURE__ */
|
|
93
|
-
title,
|
|
94
|
-
className,
|
|
95
|
-
onChange: (
|
|
96
|
-
checked: !!
|
|
97
|
-
disabled,
|
|
98
|
-
checkedChildren:
|
|
666
|
+
Be.displayName = "AntDDragHandle";
|
|
667
|
+
const He = ({
|
|
668
|
+
className: h,
|
|
669
|
+
handleOnChange: u,
|
|
670
|
+
label: c,
|
|
671
|
+
checked: f,
|
|
672
|
+
title: _,
|
|
673
|
+
disabled: v,
|
|
674
|
+
path: R,
|
|
675
|
+
context: T,
|
|
676
|
+
validation: p,
|
|
677
|
+
testID: w,
|
|
678
|
+
...E
|
|
679
|
+
}) => /* @__PURE__ */ y(Me, {
|
|
680
|
+
title: _,
|
|
681
|
+
className: h,
|
|
682
|
+
onChange: (m) => u(m),
|
|
683
|
+
checked: !!f,
|
|
684
|
+
disabled: v,
|
|
685
|
+
checkedChildren: c,
|
|
99
686
|
unCheckedChildren: "=",
|
|
100
|
-
...
|
|
687
|
+
...E
|
|
101
688
|
});
|
|
102
|
-
|
|
689
|
+
He.displayName = "AntDNotToggle";
|
|
103
690
|
const {
|
|
104
|
-
OptGroup,
|
|
105
|
-
Option
|
|
106
|
-
} =
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
fieldData: _fieldData,
|
|
135
|
-
...extraProps
|
|
691
|
+
OptGroup: Fr,
|
|
692
|
+
Option: Ve
|
|
693
|
+
} = Ne, $r = (h) => br(h) ? h.map((u) => /* @__PURE__ */ y(Fr, {
|
|
694
|
+
label: u.label,
|
|
695
|
+
children: u.options.map((c) => /* @__PURE__ */ y(Ve, {
|
|
696
|
+
value: c.name,
|
|
697
|
+
children: c.label
|
|
698
|
+
}, c.name))
|
|
699
|
+
}, u.label)) : Array.isArray(h) ? h.map((u) => /* @__PURE__ */ y(Ve, {
|
|
700
|
+
value: u.name,
|
|
701
|
+
children: u.label
|
|
702
|
+
}, u.name)) : null, I = ({
|
|
703
|
+
className: h,
|
|
704
|
+
handleOnChange: u,
|
|
705
|
+
options: c,
|
|
706
|
+
value: f,
|
|
707
|
+
title: _,
|
|
708
|
+
disabled: v,
|
|
709
|
+
multiple: R,
|
|
710
|
+
listsAsArrays: T,
|
|
711
|
+
testID: p,
|
|
712
|
+
rules: w,
|
|
713
|
+
level: E,
|
|
714
|
+
path: m,
|
|
715
|
+
context: C,
|
|
716
|
+
validation: k,
|
|
717
|
+
operator: O,
|
|
718
|
+
field: F,
|
|
719
|
+
fieldData: L,
|
|
720
|
+
...a
|
|
136
721
|
}) => {
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
...extraProps,
|
|
152
|
-
children: toOptions(options)
|
|
722
|
+
const s = Or(() => R ? (S) => u(Array.isArray(S) ? T ? S : le(S, ",") : S) : (S) => u(S), [u, T, R]), M = R ? Array.isArray(f) ? f : Le(f, ",") : f;
|
|
723
|
+
return /* @__PURE__ */ y("span", {
|
|
724
|
+
title: _,
|
|
725
|
+
className: h,
|
|
726
|
+
children: /* @__PURE__ */ y(Ne, {
|
|
727
|
+
...R ? {
|
|
728
|
+
mode: "multiple"
|
|
729
|
+
} : {},
|
|
730
|
+
dropdownMatchSelectWidth: !1,
|
|
731
|
+
disabled: v,
|
|
732
|
+
value: M,
|
|
733
|
+
onChange: s,
|
|
734
|
+
...a,
|
|
735
|
+
children: $r(c)
|
|
153
736
|
})
|
|
154
737
|
});
|
|
155
738
|
};
|
|
156
|
-
|
|
157
|
-
const
|
|
158
|
-
fieldData,
|
|
159
|
-
operator,
|
|
160
|
-
value,
|
|
161
|
-
handleOnChange,
|
|
162
|
-
title,
|
|
163
|
-
className,
|
|
164
|
-
type,
|
|
165
|
-
inputType,
|
|
166
|
-
values = [],
|
|
167
|
-
listsAsArrays,
|
|
168
|
-
valueSource:
|
|
169
|
-
disabled,
|
|
170
|
-
testID,
|
|
171
|
-
...
|
|
739
|
+
I.displayName = "AntDValueSelector";
|
|
740
|
+
const Ge = ({
|
|
741
|
+
fieldData: h,
|
|
742
|
+
operator: u,
|
|
743
|
+
value: c,
|
|
744
|
+
handleOnChange: f,
|
|
745
|
+
title: _,
|
|
746
|
+
className: v,
|
|
747
|
+
type: R,
|
|
748
|
+
inputType: T,
|
|
749
|
+
values: p = [],
|
|
750
|
+
listsAsArrays: w,
|
|
751
|
+
valueSource: E,
|
|
752
|
+
disabled: m,
|
|
753
|
+
testID: C,
|
|
754
|
+
...k
|
|
172
755
|
}) => {
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
handleOnChange,
|
|
176
|
-
inputType,
|
|
177
|
-
operator,
|
|
178
|
-
value
|
|
179
|
-
})
|
|
180
|
-
if (operator === "null" || operator === "notNull") {
|
|
756
|
+
var L;
|
|
757
|
+
if (Rr({
|
|
758
|
+
handleOnChange: f,
|
|
759
|
+
inputType: T,
|
|
760
|
+
operator: u,
|
|
761
|
+
value: c
|
|
762
|
+
}), u === "null" || u === "notNull")
|
|
181
763
|
return null;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
};
|
|
192
|
-
const selector2handler = (v) => {
|
|
193
|
-
const val = [valArray[0], v, ...valArray.slice(2)];
|
|
194
|
-
handleOnChange(listsAsArrays ? val : joinWith(val, ","));
|
|
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
|
+
if ((u === "between" || u === "notBetween") && R === "select") {
|
|
766
|
+
const a = Tr(c), s = (W) => {
|
|
767
|
+
var G, q;
|
|
768
|
+
const S = [W, (q = a[1]) != null ? q : (G = p[0]) == null ? void 0 : G.name, ...a.slice(2)];
|
|
769
|
+
f(w ? S : le(S, ","));
|
|
770
|
+
}, M = (W) => {
|
|
771
|
+
const S = [a[0], W, ...a.slice(2)];
|
|
772
|
+
f(w ? S : le(S, ","));
|
|
195
773
|
};
|
|
196
|
-
return /* @__PURE__ */
|
|
197
|
-
"data-testid":
|
|
198
|
-
className,
|
|
199
|
-
title,
|
|
200
|
-
children: [/* @__PURE__ */
|
|
201
|
-
...
|
|
202
|
-
className:
|
|
203
|
-
handleOnChange:
|
|
204
|
-
disabled,
|
|
205
|
-
value:
|
|
206
|
-
options:
|
|
207
|
-
listsAsArrays
|
|
208
|
-
}), /* @__PURE__ */
|
|
209
|
-
...
|
|
210
|
-
className:
|
|
211
|
-
handleOnChange:
|
|
212
|
-
disabled,
|
|
213
|
-
value:
|
|
214
|
-
options:
|
|
215
|
-
listsAsArrays
|
|
774
|
+
return /* @__PURE__ */ Ir("span", {
|
|
775
|
+
"data-testid": C,
|
|
776
|
+
className: v,
|
|
777
|
+
title: _,
|
|
778
|
+
children: [/* @__PURE__ */ y(I, {
|
|
779
|
+
...k,
|
|
780
|
+
className: Ie.valueListItem,
|
|
781
|
+
handleOnChange: s,
|
|
782
|
+
disabled: m,
|
|
783
|
+
value: a[0],
|
|
784
|
+
options: p,
|
|
785
|
+
listsAsArrays: w
|
|
786
|
+
}), /* @__PURE__ */ y(I, {
|
|
787
|
+
...k,
|
|
788
|
+
className: Ie.valueListItem,
|
|
789
|
+
handleOnChange: M,
|
|
790
|
+
disabled: m,
|
|
791
|
+
value: a[1],
|
|
792
|
+
options: p,
|
|
793
|
+
listsAsArrays: w
|
|
216
794
|
})]
|
|
217
795
|
});
|
|
218
796
|
}
|
|
219
|
-
switch (
|
|
797
|
+
switch (R) {
|
|
220
798
|
case "select":
|
|
221
799
|
case "multiselect":
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
...
|
|
224
|
-
className,
|
|
225
|
-
handleOnChange,
|
|
226
|
-
options:
|
|
227
|
-
value,
|
|
228
|
-
title,
|
|
229
|
-
disabled,
|
|
230
|
-
multiple:
|
|
231
|
-
listsAsArrays
|
|
800
|
+
return /* @__PURE__ */ y(I, {
|
|
801
|
+
...k,
|
|
802
|
+
className: v,
|
|
803
|
+
handleOnChange: f,
|
|
804
|
+
options: p,
|
|
805
|
+
value: c,
|
|
806
|
+
title: _,
|
|
807
|
+
disabled: m,
|
|
808
|
+
multiple: R === "multiselect",
|
|
809
|
+
listsAsArrays: w
|
|
232
810
|
});
|
|
233
811
|
case "textarea":
|
|
234
|
-
return /* @__PURE__ */
|
|
235
|
-
value,
|
|
236
|
-
title,
|
|
237
|
-
className,
|
|
238
|
-
disabled,
|
|
239
|
-
placeholder:
|
|
240
|
-
onChange: (
|
|
812
|
+
return /* @__PURE__ */ y(Fe.TextArea, {
|
|
813
|
+
value: c,
|
|
814
|
+
title: _,
|
|
815
|
+
className: v,
|
|
816
|
+
disabled: m,
|
|
817
|
+
placeholder: O,
|
|
818
|
+
onChange: (a) => f(a.target.value)
|
|
241
819
|
});
|
|
242
820
|
case "switch":
|
|
243
|
-
return /* @__PURE__ */
|
|
244
|
-
checked: !!
|
|
245
|
-
title,
|
|
246
|
-
className,
|
|
247
|
-
disabled,
|
|
248
|
-
onChange: (
|
|
821
|
+
return /* @__PURE__ */ y(Me, {
|
|
822
|
+
checked: !!c,
|
|
823
|
+
title: _,
|
|
824
|
+
className: v,
|
|
825
|
+
disabled: m,
|
|
826
|
+
onChange: (a) => f(a)
|
|
249
827
|
});
|
|
250
828
|
case "checkbox":
|
|
251
|
-
return /* @__PURE__ */
|
|
252
|
-
title,
|
|
253
|
-
className,
|
|
254
|
-
children: /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ y("span", {
|
|
830
|
+
title: _,
|
|
831
|
+
className: v,
|
|
832
|
+
children: /* @__PURE__ */ y(Cr, {
|
|
255
833
|
type: "checkbox",
|
|
256
|
-
disabled,
|
|
257
|
-
onChange: (
|
|
258
|
-
checked: !!
|
|
834
|
+
disabled: m,
|
|
835
|
+
onChange: (a) => f(a.target.checked),
|
|
836
|
+
checked: !!c
|
|
259
837
|
})
|
|
260
838
|
});
|
|
261
839
|
case "radio":
|
|
262
|
-
return /* @__PURE__ */
|
|
263
|
-
className,
|
|
264
|
-
title,
|
|
265
|
-
children:
|
|
266
|
-
value:
|
|
267
|
-
checked:
|
|
268
|
-
disabled,
|
|
269
|
-
onChange: (
|
|
270
|
-
children:
|
|
271
|
-
},
|
|
840
|
+
return /* @__PURE__ */ y("span", {
|
|
841
|
+
className: v,
|
|
842
|
+
title: _,
|
|
843
|
+
children: p.map((a) => /* @__PURE__ */ y(Sr, {
|
|
844
|
+
value: a.name,
|
|
845
|
+
checked: c === a.name,
|
|
846
|
+
disabled: m,
|
|
847
|
+
onChange: (s) => f(s.target.value),
|
|
848
|
+
children: a.label
|
|
849
|
+
}, a.name))
|
|
272
850
|
});
|
|
273
851
|
}
|
|
274
|
-
switch (
|
|
852
|
+
switch (F) {
|
|
275
853
|
case "date":
|
|
276
854
|
case "datetime-local":
|
|
277
|
-
return
|
|
278
|
-
value: typeof
|
|
279
|
-
showTime:
|
|
280
|
-
className,
|
|
281
|
-
disabled,
|
|
282
|
-
placeholder: [
|
|
283
|
-
onChange: (
|
|
284
|
-
}) : /* @__PURE__ */
|
|
285
|
-
value:
|
|
286
|
-
showTime:
|
|
287
|
-
className,
|
|
288
|
-
disabled,
|
|
289
|
-
placeholder:
|
|
290
|
-
onChange: (
|
|
855
|
+
return u === "between" || u === "notBetween" ? /* @__PURE__ */ y($e.RangePicker, {
|
|
856
|
+
value: typeof c == "string" && /^[^,]+,[^,]+$/.test(c) ? Le(c, ",").map((a) => Z(a)) : void 0,
|
|
857
|
+
showTime: F === "datetime-local",
|
|
858
|
+
className: v,
|
|
859
|
+
disabled: m,
|
|
860
|
+
placeholder: [O, O],
|
|
861
|
+
onChange: (a) => f(a == null ? void 0 : a.map((s) => s == null ? void 0 : s.format(Z.HTML5_FMT.DATE)).join(","))
|
|
862
|
+
}) : /* @__PURE__ */ y($e, {
|
|
863
|
+
value: c ? Z(c) : null,
|
|
864
|
+
showTime: F === "datetime-local",
|
|
865
|
+
className: v,
|
|
866
|
+
disabled: m,
|
|
867
|
+
placeholder: O,
|
|
868
|
+
onChange: (a, s) => f(s)
|
|
291
869
|
});
|
|
292
870
|
case "time":
|
|
293
|
-
return /* @__PURE__ */
|
|
294
|
-
value:
|
|
295
|
-
className,
|
|
296
|
-
disabled,
|
|
297
|
-
placeholder:
|
|
298
|
-
onChange: (
|
|
299
|
-
var
|
|
300
|
-
return
|
|
871
|
+
return /* @__PURE__ */ y(Pr, {
|
|
872
|
+
value: c ? Z(c, "HH:mm:ss") : null,
|
|
873
|
+
className: v,
|
|
874
|
+
disabled: m,
|
|
875
|
+
placeholder: O,
|
|
876
|
+
onChange: (a) => {
|
|
877
|
+
var s;
|
|
878
|
+
return f((s = a == null ? void 0 : a.format("HH:mm:ss")) != null ? s : "");
|
|
301
879
|
}
|
|
302
880
|
});
|
|
303
881
|
}
|
|
304
|
-
return /* @__PURE__ */
|
|
305
|
-
type:
|
|
306
|
-
value,
|
|
307
|
-
title,
|
|
308
|
-
className,
|
|
309
|
-
disabled,
|
|
310
|
-
placeholder:
|
|
311
|
-
onChange: (
|
|
882
|
+
return /* @__PURE__ */ y(Fe, {
|
|
883
|
+
type: F,
|
|
884
|
+
value: c,
|
|
885
|
+
title: _,
|
|
886
|
+
className: v,
|
|
887
|
+
disabled: m,
|
|
888
|
+
placeholder: O,
|
|
889
|
+
onChange: (a) => f(a.target.value)
|
|
312
890
|
});
|
|
313
891
|
};
|
|
314
|
-
|
|
315
|
-
const
|
|
316
|
-
addGroupAction:
|
|
317
|
-
addRuleAction:
|
|
318
|
-
cloneGroupAction:
|
|
319
|
-
cloneRuleAction:
|
|
320
|
-
lockGroupAction:
|
|
321
|
-
lockRuleAction:
|
|
322
|
-
combinatorSelector:
|
|
323
|
-
fieldSelector:
|
|
324
|
-
notToggle:
|
|
325
|
-
operatorSelector:
|
|
326
|
-
removeGroupAction:
|
|
327
|
-
removeRuleAction:
|
|
328
|
-
valueEditor:
|
|
329
|
-
dragHandle:
|
|
330
|
-
valueSourceSelector:
|
|
892
|
+
Ge.displayName = "AntDValueEditor";
|
|
893
|
+
const Ur = "5.0.0-alpha.3", Wr = {
|
|
894
|
+
addGroupAction: A,
|
|
895
|
+
addRuleAction: A,
|
|
896
|
+
cloneGroupAction: A,
|
|
897
|
+
cloneRuleAction: A,
|
|
898
|
+
lockGroupAction: A,
|
|
899
|
+
lockRuleAction: A,
|
|
900
|
+
combinatorSelector: I,
|
|
901
|
+
fieldSelector: I,
|
|
902
|
+
notToggle: He,
|
|
903
|
+
operatorSelector: I,
|
|
904
|
+
removeGroupAction: A,
|
|
905
|
+
removeRuleAction: A,
|
|
906
|
+
valueEditor: Ge,
|
|
907
|
+
dragHandle: Be,
|
|
908
|
+
valueSourceSelector: I
|
|
909
|
+
}, Br = wr({
|
|
910
|
+
key: "antd",
|
|
911
|
+
controlElements: Wr
|
|
912
|
+
});
|
|
913
|
+
export {
|
|
914
|
+
A as AntDActionElement,
|
|
915
|
+
Be as AntDDragHandle,
|
|
916
|
+
He as AntDNotToggle,
|
|
917
|
+
Ge as AntDValueEditor,
|
|
918
|
+
I as AntDValueSelector,
|
|
919
|
+
Br as QueryBuilderAntD,
|
|
920
|
+
Wr as antdControlElements,
|
|
921
|
+
Ur as version
|
|
331
922
|
};
|
|
332
|
-
export { AntDActionElement, AntDDragHandle, AntDNotToggle, AntDValueEditor, AntDValueSelector, antdControlElements };
|
|
333
923
|
//# sourceMappingURL=index.es.js.map
|