@react-querybuilder/bootstrap 6.0.0-alpha.0 → 6.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{index.es.js → index.mjs} +257 -257
- package/dist/index.mjs.map +1 -0
- package/index.d.mts +4 -0
- package/package.json +18 -11
- package/dist/index.cjs.js +0 -12
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js.map +0 -1
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { useValueEditor as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import { useValueEditor as fr, standardClassnames as M, getFirstOption as dr, ValueEditor as Q, ValueSelector as vr, getCompatContextProvider as mr } from "react-querybuilder";
|
|
2
|
+
import Oe, { forwardRef as br, useId as hr } from "react";
|
|
3
|
+
var v = {}, gr = {
|
|
4
4
|
get exports() {
|
|
5
|
-
return
|
|
5
|
+
return v;
|
|
6
6
|
},
|
|
7
7
|
set exports(a) {
|
|
8
|
-
|
|
8
|
+
v = a;
|
|
9
9
|
}
|
|
10
10
|
}, F = {};
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
if (
|
|
11
|
+
var Te;
|
|
12
|
+
function pr() {
|
|
13
|
+
if (Te)
|
|
14
14
|
return F;
|
|
15
|
-
|
|
16
|
-
var a =
|
|
15
|
+
Te = 1;
|
|
16
|
+
var a = Oe, g = Symbol.for("react.element"), R = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, k = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function y(u, f, E) {
|
|
18
|
-
var
|
|
19
|
-
E !== void 0 && (
|
|
20
|
-
for (
|
|
21
|
-
_.call(f,
|
|
18
|
+
var m, T = {}, j = null, $ = null;
|
|
19
|
+
E !== void 0 && (j = "" + E), f.key !== void 0 && (j = "" + f.key), f.ref !== void 0 && ($ = f.ref);
|
|
20
|
+
for (m in f)
|
|
21
|
+
_.call(f, m) && !C.hasOwnProperty(m) && (T[m] = f[m]);
|
|
22
22
|
if (u && u.defaultProps)
|
|
23
|
-
for (
|
|
24
|
-
T[
|
|
25
|
-
return { $$typeof: g, type: u, key:
|
|
23
|
+
for (m in f = u.defaultProps, f)
|
|
24
|
+
T[m] === void 0 && (T[m] = f[m]);
|
|
25
|
+
return { $$typeof: g, type: u, key: j, ref: $, props: T, _owner: k.current };
|
|
26
26
|
}
|
|
27
27
|
return F.Fragment = R, F.jsx = y, F.jsxs = y, F;
|
|
28
28
|
}
|
|
29
29
|
var I = {};
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
return
|
|
33
|
-
var a =
|
|
34
|
-
function
|
|
30
|
+
var xe;
|
|
31
|
+
function yr() {
|
|
32
|
+
return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
33
|
+
var a = Oe, g = Symbol.for("react.element"), R = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Z = Symbol.iterator, Se = "@@iterator";
|
|
34
|
+
function Pe(e) {
|
|
35
35
|
if (e === null || typeof e != "object")
|
|
36
36
|
return null;
|
|
37
|
-
var r =
|
|
37
|
+
var r = Z && e[Z] || e[Se];
|
|
38
38
|
return typeof r == "function" ? r : null;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
function
|
|
40
|
+
var S = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
41
|
+
function b(e) {
|
|
42
42
|
{
|
|
43
43
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
44
44
|
t[n - 1] = arguments[n];
|
|
45
|
-
|
|
45
|
+
Ne("error", e, t);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ne(e, r, t) {
|
|
49
49
|
{
|
|
50
|
-
var n =
|
|
51
|
-
|
|
52
|
-
var
|
|
50
|
+
var n = S.ReactDebugCurrentFrame, s = n.getStackAddendum();
|
|
51
|
+
s !== "" && (r += "%s", t = t.concat([s]));
|
|
52
|
+
var l = t.map(function(i) {
|
|
53
53
|
return String(i);
|
|
54
54
|
});
|
|
55
|
-
|
|
55
|
+
l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
function
|
|
61
|
-
return !!(typeof e == "string" || typeof e == "function" || e === _ || e === C ||
|
|
58
|
+
var Ae = !1, De = !1, Fe = !1, Ie = !1, $e = !1, ee;
|
|
59
|
+
ee = Symbol.for("react.module.reference");
|
|
60
|
+
function We(e) {
|
|
61
|
+
return !!(typeof e == "string" || typeof e == "function" || e === _ || e === C || $e || e === k || e === E || e === m || Ie || e === $ || Ae || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === T || e.$$typeof === y || e.$$typeof === u || e.$$typeof === f || e.$$typeof === ee || e.getModuleId !== void 0));
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ve(e, r, t) {
|
|
64
64
|
var n = e.displayName;
|
|
65
65
|
if (n)
|
|
66
66
|
return n;
|
|
67
|
-
var
|
|
68
|
-
return
|
|
67
|
+
var s = r.displayName || r.name || "";
|
|
68
|
+
return s !== "" ? t + "(" + s + ")" : t;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function re(e) {
|
|
71
71
|
return e.displayName || "Context";
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function x(e) {
|
|
74
74
|
if (e == null)
|
|
75
75
|
return null;
|
|
76
|
-
if (typeof e.tag == "number" &&
|
|
76
|
+
if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
77
77
|
return e.displayName || e.name || null;
|
|
78
78
|
if (typeof e == "string")
|
|
79
79
|
return e;
|
|
@@ -84,30 +84,30 @@ function Rr() {
|
|
|
84
84
|
return "Portal";
|
|
85
85
|
case C:
|
|
86
86
|
return "Profiler";
|
|
87
|
-
case
|
|
87
|
+
case k:
|
|
88
88
|
return "StrictMode";
|
|
89
89
|
case E:
|
|
90
90
|
return "Suspense";
|
|
91
|
-
case
|
|
91
|
+
case m:
|
|
92
92
|
return "SuspenseList";
|
|
93
93
|
}
|
|
94
94
|
if (typeof e == "object")
|
|
95
95
|
switch (e.$$typeof) {
|
|
96
96
|
case u:
|
|
97
97
|
var r = e;
|
|
98
|
-
return
|
|
98
|
+
return re(r) + ".Consumer";
|
|
99
99
|
case y:
|
|
100
100
|
var t = e;
|
|
101
|
-
return
|
|
101
|
+
return re(t._context) + ".Provider";
|
|
102
102
|
case f:
|
|
103
|
-
return
|
|
103
|
+
return Ve(e, e.render, "ForwardRef");
|
|
104
104
|
case T:
|
|
105
105
|
var n = e.displayName || null;
|
|
106
|
-
return n !== null ? n :
|
|
107
|
-
case
|
|
108
|
-
var
|
|
106
|
+
return n !== null ? n : x(e.type) || "Memo";
|
|
107
|
+
case j: {
|
|
108
|
+
var s = e, l = s._payload, i = s._init;
|
|
109
109
|
try {
|
|
110
|
-
return
|
|
110
|
+
return x(i(l));
|
|
111
111
|
} catch {
|
|
112
112
|
return null;
|
|
113
113
|
}
|
|
@@ -115,18 +115,18 @@ function Rr() {
|
|
|
115
115
|
}
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
118
|
+
var w = Object.assign, A = 0, te, ae, ne, oe, ie, se, le;
|
|
119
|
+
function ue() {
|
|
120
120
|
}
|
|
121
|
-
|
|
122
|
-
function
|
|
121
|
+
ue.__reactDisabledLog = !0;
|
|
122
|
+
function Ye() {
|
|
123
123
|
{
|
|
124
124
|
if (A === 0) {
|
|
125
|
-
|
|
125
|
+
te = console.log, ae = console.info, ne = console.warn, oe = console.error, ie = console.group, se = console.groupCollapsed, le = console.groupEnd;
|
|
126
126
|
var e = {
|
|
127
127
|
configurable: !0,
|
|
128
128
|
enumerable: !0,
|
|
129
|
-
value:
|
|
129
|
+
value: ue,
|
|
130
130
|
writable: !0
|
|
131
131
|
};
|
|
132
132
|
Object.defineProperties(console, {
|
|
@@ -142,7 +142,7 @@ function Rr() {
|
|
|
142
142
|
A++;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Le() {
|
|
146
146
|
{
|
|
147
147
|
if (A--, A === 0) {
|
|
148
148
|
var e = {
|
|
@@ -151,53 +151,53 @@ function Rr() {
|
|
|
151
151
|
writable: !0
|
|
152
152
|
};
|
|
153
153
|
Object.defineProperties(console, {
|
|
154
|
-
log:
|
|
154
|
+
log: w({}, e, {
|
|
155
|
+
value: te
|
|
156
|
+
}),
|
|
157
|
+
info: w({}, e, {
|
|
158
|
+
value: ae
|
|
159
|
+
}),
|
|
160
|
+
warn: w({}, e, {
|
|
155
161
|
value: ne
|
|
156
162
|
}),
|
|
157
|
-
|
|
163
|
+
error: w({}, e, {
|
|
158
164
|
value: oe
|
|
159
165
|
}),
|
|
160
|
-
|
|
166
|
+
group: w({}, e, {
|
|
161
167
|
value: ie
|
|
162
168
|
}),
|
|
163
|
-
|
|
164
|
-
value: le
|
|
165
|
-
}),
|
|
166
|
-
group: S({}, e, {
|
|
169
|
+
groupCollapsed: w({}, e, {
|
|
167
170
|
value: se
|
|
168
171
|
}),
|
|
169
|
-
|
|
170
|
-
value:
|
|
171
|
-
}),
|
|
172
|
-
groupEnd: S({}, e, {
|
|
173
|
-
value: ce
|
|
172
|
+
groupEnd: w({}, e, {
|
|
173
|
+
value: le
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
A < 0 &&
|
|
177
|
+
A < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
var
|
|
180
|
+
var U = S.ReactCurrentDispatcher, H;
|
|
181
181
|
function W(e, r, t) {
|
|
182
182
|
{
|
|
183
|
-
if (
|
|
183
|
+
if (H === void 0)
|
|
184
184
|
try {
|
|
185
185
|
throw Error();
|
|
186
|
-
} catch (
|
|
187
|
-
var n =
|
|
188
|
-
|
|
186
|
+
} catch (s) {
|
|
187
|
+
var n = s.stack.trim().match(/\n( *(at )?)/);
|
|
188
|
+
H = n && n[1] || "";
|
|
189
189
|
}
|
|
190
190
|
return `
|
|
191
|
-
` +
|
|
191
|
+
` + H + e;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
194
|
+
var G = !1, V;
|
|
195
195
|
{
|
|
196
|
-
var
|
|
197
|
-
V = new
|
|
196
|
+
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
197
|
+
V = new Be();
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
if (!e ||
|
|
199
|
+
function ce(e, r) {
|
|
200
|
+
if (!e || G)
|
|
201
201
|
return "";
|
|
202
202
|
{
|
|
203
203
|
var t = V.get(e);
|
|
@@ -205,11 +205,11 @@ function Rr() {
|
|
|
205
205
|
return t;
|
|
206
206
|
}
|
|
207
207
|
var n;
|
|
208
|
-
|
|
209
|
-
var
|
|
208
|
+
G = !0;
|
|
209
|
+
var s = Error.prepareStackTrace;
|
|
210
210
|
Error.prepareStackTrace = void 0;
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var l;
|
|
212
|
+
l = U.current, U.current = null, Ye();
|
|
213
213
|
try {
|
|
214
214
|
if (r) {
|
|
215
215
|
var i = function() {
|
|
@@ -222,37 +222,37 @@ function Rr() {
|
|
|
222
222
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
223
223
|
try {
|
|
224
224
|
Reflect.construct(i, []);
|
|
225
|
-
} catch (
|
|
226
|
-
n =
|
|
225
|
+
} catch (O) {
|
|
226
|
+
n = O;
|
|
227
227
|
}
|
|
228
228
|
Reflect.construct(e, [], i);
|
|
229
229
|
} else {
|
|
230
230
|
try {
|
|
231
231
|
i.call();
|
|
232
|
-
} catch (
|
|
233
|
-
n =
|
|
232
|
+
} catch (O) {
|
|
233
|
+
n = O;
|
|
234
234
|
}
|
|
235
235
|
e.call(i.prototype);
|
|
236
236
|
}
|
|
237
237
|
} else {
|
|
238
238
|
try {
|
|
239
239
|
throw Error();
|
|
240
|
-
} catch (
|
|
241
|
-
n =
|
|
240
|
+
} catch (O) {
|
|
241
|
+
n = O;
|
|
242
242
|
}
|
|
243
243
|
e();
|
|
244
244
|
}
|
|
245
|
-
} catch (
|
|
246
|
-
if (
|
|
247
|
-
for (var o =
|
|
248
|
-
`),
|
|
249
|
-
`), c = o.length - 1, d =
|
|
245
|
+
} catch (O) {
|
|
246
|
+
if (O && n && typeof O.stack == "string") {
|
|
247
|
+
for (var o = O.stack.split(`
|
|
248
|
+
`), h = n.stack.split(`
|
|
249
|
+
`), c = o.length - 1, d = h.length - 1; c >= 1 && d >= 0 && o[c] !== h[d]; )
|
|
250
250
|
d--;
|
|
251
251
|
for (; c >= 1 && d >= 0; c--, d--)
|
|
252
|
-
if (o[c] !==
|
|
252
|
+
if (o[c] !== h[d]) {
|
|
253
253
|
if (c !== 1 || d !== 1)
|
|
254
254
|
do
|
|
255
|
-
if (c--, d--, d < 0 || o[c] !==
|
|
255
|
+
if (c--, d--, d < 0 || o[c] !== h[d]) {
|
|
256
256
|
var p = `
|
|
257
257
|
` + o[c].replace(" at new ", " at ");
|
|
258
258
|
return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, p), p;
|
|
@@ -262,15 +262,15 @@ function Rr() {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
} finally {
|
|
265
|
-
|
|
265
|
+
G = !1, U.current = l, Le(), Error.prepareStackTrace = s;
|
|
266
266
|
}
|
|
267
|
-
var N = e ? e.displayName || e.name : "",
|
|
268
|
-
return typeof e == "function" && V.set(e,
|
|
267
|
+
var N = e ? e.displayName || e.name : "", Ce = N ? W(N) : "";
|
|
268
|
+
return typeof e == "function" && V.set(e, Ce), Ce;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
270
|
+
function Me(e, r, t) {
|
|
271
|
+
return ce(e, !1);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Ue(e) {
|
|
274
274
|
var r = e.prototype;
|
|
275
275
|
return !!(r && r.isReactComponent);
|
|
276
276
|
}
|
|
@@ -278,90 +278,90 @@ function Rr() {
|
|
|
278
278
|
if (e == null)
|
|
279
279
|
return "";
|
|
280
280
|
if (typeof e == "function")
|
|
281
|
-
return
|
|
281
|
+
return ce(e, Ue(e));
|
|
282
282
|
if (typeof e == "string")
|
|
283
283
|
return W(e);
|
|
284
284
|
switch (e) {
|
|
285
285
|
case E:
|
|
286
286
|
return W("Suspense");
|
|
287
|
-
case
|
|
287
|
+
case m:
|
|
288
288
|
return W("SuspenseList");
|
|
289
289
|
}
|
|
290
290
|
if (typeof e == "object")
|
|
291
291
|
switch (e.$$typeof) {
|
|
292
292
|
case f:
|
|
293
|
-
return
|
|
293
|
+
return Me(e.render);
|
|
294
294
|
case T:
|
|
295
295
|
return Y(e.type, r, t);
|
|
296
|
-
case
|
|
297
|
-
var n = e,
|
|
296
|
+
case j: {
|
|
297
|
+
var n = e, s = n._payload, l = n._init;
|
|
298
298
|
try {
|
|
299
|
-
return Y(s
|
|
299
|
+
return Y(l(s), r, t);
|
|
300
300
|
} catch {
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
return "";
|
|
305
305
|
}
|
|
306
|
-
var L = Object.prototype.hasOwnProperty,
|
|
306
|
+
var L = Object.prototype.hasOwnProperty, fe = {}, de = S.ReactDebugCurrentFrame;
|
|
307
307
|
function B(e) {
|
|
308
308
|
if (e) {
|
|
309
309
|
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
310
|
-
|
|
310
|
+
de.setExtraStackFrame(t);
|
|
311
311
|
} else
|
|
312
|
-
|
|
312
|
+
de.setExtraStackFrame(null);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function He(e, r, t, n, s) {
|
|
315
315
|
{
|
|
316
|
-
var
|
|
316
|
+
var l = Function.call.bind(L);
|
|
317
317
|
for (var i in e)
|
|
318
|
-
if (
|
|
318
|
+
if (l(e, i)) {
|
|
319
319
|
var o = void 0;
|
|
320
320
|
try {
|
|
321
321
|
if (typeof e[i] != "function") {
|
|
322
|
-
var
|
|
323
|
-
throw
|
|
322
|
+
var h = 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`.");
|
|
323
|
+
throw h.name = "Invariant Violation", h;
|
|
324
324
|
}
|
|
325
325
|
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
326
326
|
} catch (c) {
|
|
327
327
|
o = c;
|
|
328
328
|
}
|
|
329
|
-
o && !(o instanceof Error) && (B(
|
|
329
|
+
o && !(o instanceof Error) && (B(s), b("%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), B(null)), o instanceof Error && !(o.message in fe) && (fe[o.message] = !0, B(s), b("Failed %s type: %s", t, o.message), B(null));
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
var
|
|
334
|
-
function
|
|
335
|
-
return
|
|
333
|
+
var Ge = Array.isArray;
|
|
334
|
+
function q(e) {
|
|
335
|
+
return Ge(e);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function qe(e) {
|
|
338
338
|
{
|
|
339
339
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
340
340
|
return t;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Je(e) {
|
|
344
344
|
try {
|
|
345
|
-
return
|
|
345
|
+
return ve(e), !1;
|
|
346
346
|
} catch {
|
|
347
347
|
return !0;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function ve(e) {
|
|
351
351
|
return "" + e;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
if (
|
|
355
|
-
return
|
|
353
|
+
function me(e) {
|
|
354
|
+
if (Je(e))
|
|
355
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ve(e);
|
|
356
356
|
}
|
|
357
|
-
var D =
|
|
357
|
+
var D = S.ReactCurrentOwner, ze = {
|
|
358
358
|
key: !0,
|
|
359
359
|
ref: !0,
|
|
360
360
|
__self: !0,
|
|
361
361
|
__source: !0
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
function
|
|
362
|
+
}, be, he, J;
|
|
363
|
+
J = {};
|
|
364
|
+
function Ke(e) {
|
|
365
365
|
if (L.call(e, "ref")) {
|
|
366
366
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
367
367
|
if (r && r.isReactWarning)
|
|
@@ -369,7 +369,7 @@ function Rr() {
|
|
|
369
369
|
}
|
|
370
370
|
return e.ref !== void 0;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Xe(e) {
|
|
373
373
|
if (L.call(e, "key")) {
|
|
374
374
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
375
375
|
if (r && r.isReactWarning)
|
|
@@ -377,16 +377,16 @@ function Rr() {
|
|
|
377
377
|
}
|
|
378
378
|
return e.key !== void 0;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function Qe(e, r) {
|
|
381
381
|
if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) {
|
|
382
|
-
var t =
|
|
383
|
-
|
|
382
|
+
var t = x(D.current.type);
|
|
383
|
+
J[t] || (b('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', x(D.current.type), e.ref), J[t] = !0);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ze(e, r) {
|
|
387
387
|
{
|
|
388
388
|
var t = function() {
|
|
389
|
-
|
|
389
|
+
be || (be = !0, b("%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));
|
|
390
390
|
};
|
|
391
391
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
392
392
|
get: t,
|
|
@@ -394,10 +394,10 @@ function Rr() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function er(e, r) {
|
|
398
398
|
{
|
|
399
399
|
var t = function() {
|
|
400
|
-
|
|
400
|
+
he || (he = !0, b("%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));
|
|
401
401
|
};
|
|
402
402
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
403
403
|
get: t,
|
|
@@ -405,14 +405,14 @@ function Rr() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
var
|
|
408
|
+
var rr = function(e, r, t, n, s, l, i) {
|
|
409
409
|
var o = {
|
|
410
410
|
$$typeof: g,
|
|
411
411
|
type: e,
|
|
412
412
|
key: r,
|
|
413
413
|
ref: t,
|
|
414
414
|
props: i,
|
|
415
|
-
_owner:
|
|
415
|
+
_owner: l
|
|
416
416
|
};
|
|
417
417
|
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
418
418
|
configurable: !1,
|
|
@@ -428,44 +428,44 @@ function Rr() {
|
|
|
428
428
|
configurable: !1,
|
|
429
429
|
enumerable: !1,
|
|
430
430
|
writable: !1,
|
|
431
|
-
value:
|
|
431
|
+
value: s
|
|
432
432
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
433
433
|
};
|
|
434
|
-
function
|
|
434
|
+
function tr(e, r, t, n, s) {
|
|
435
435
|
{
|
|
436
|
-
var
|
|
437
|
-
t !== void 0 && (
|
|
438
|
-
for (
|
|
439
|
-
L.call(r,
|
|
436
|
+
var l, i = {}, o = null, h = null;
|
|
437
|
+
t !== void 0 && (me(t), o = "" + t), Xe(r) && (me(r.key), o = "" + r.key), Ke(r) && (h = r.ref, Qe(r, s));
|
|
438
|
+
for (l in r)
|
|
439
|
+
L.call(r, l) && !ze.hasOwnProperty(l) && (i[l] = r[l]);
|
|
440
440
|
if (e && e.defaultProps) {
|
|
441
441
|
var c = e.defaultProps;
|
|
442
|
-
for (
|
|
443
|
-
i[
|
|
442
|
+
for (l in c)
|
|
443
|
+
i[l] === void 0 && (i[l] = c[l]);
|
|
444
444
|
}
|
|
445
|
-
if (o ||
|
|
445
|
+
if (o || h) {
|
|
446
446
|
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
447
|
-
o &&
|
|
447
|
+
o && Ze(i, d), h && er(i, d);
|
|
448
448
|
}
|
|
449
|
-
return
|
|
449
|
+
return rr(e, o, h, s, n, D.current, i);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
function
|
|
452
|
+
var z = S.ReactCurrentOwner, ge = S.ReactDebugCurrentFrame;
|
|
453
|
+
function P(e) {
|
|
454
454
|
if (e) {
|
|
455
455
|
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
456
|
-
|
|
456
|
+
ge.setExtraStackFrame(t);
|
|
457
457
|
} else
|
|
458
|
-
|
|
458
|
+
ge.setExtraStackFrame(null);
|
|
459
459
|
}
|
|
460
|
-
var
|
|
461
|
-
|
|
462
|
-
function
|
|
460
|
+
var K;
|
|
461
|
+
K = !1;
|
|
462
|
+
function X(e) {
|
|
463
463
|
return typeof e == "object" && e !== null && e.$$typeof === g;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function pe() {
|
|
466
466
|
{
|
|
467
|
-
if (
|
|
468
|
-
var e =
|
|
467
|
+
if (z.current) {
|
|
468
|
+
var e = x(z.current.type);
|
|
469
469
|
if (e)
|
|
470
470
|
return `
|
|
471
471
|
|
|
@@ -474,7 +474,7 @@ Check the render method of \`` + e + "`.";
|
|
|
474
474
|
return "";
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function ar(e) {
|
|
478
478
|
{
|
|
479
479
|
if (e !== void 0) {
|
|
480
480
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
@@ -485,10 +485,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
485
485
|
return "";
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
var
|
|
489
|
-
function
|
|
488
|
+
var ye = {};
|
|
489
|
+
function nr(e) {
|
|
490
490
|
{
|
|
491
|
-
var r =
|
|
491
|
+
var r = pe();
|
|
492
492
|
if (!r) {
|
|
493
493
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
494
494
|
t && (r = `
|
|
@@ -498,39 +498,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
498
498
|
return r;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Ee(e, r) {
|
|
502
502
|
{
|
|
503
503
|
if (!e._store || e._store.validated || e.key != null)
|
|
504
504
|
return;
|
|
505
505
|
e._store.validated = !0;
|
|
506
|
-
var t =
|
|
507
|
-
if (
|
|
506
|
+
var t = nr(r);
|
|
507
|
+
if (ye[t])
|
|
508
508
|
return;
|
|
509
|
-
|
|
509
|
+
ye[t] = !0;
|
|
510
510
|
var n = "";
|
|
511
|
-
e && e._owner && e._owner !==
|
|
511
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + x(e._owner.type) + "."), P(e), b('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), P(null);
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Re(e, r) {
|
|
515
515
|
{
|
|
516
516
|
if (typeof e != "object")
|
|
517
517
|
return;
|
|
518
|
-
if (
|
|
518
|
+
if (q(e))
|
|
519
519
|
for (var t = 0; t < e.length; t++) {
|
|
520
520
|
var n = e[t];
|
|
521
|
-
|
|
521
|
+
X(n) && Ee(n, r);
|
|
522
522
|
}
|
|
523
|
-
else if (
|
|
523
|
+
else if (X(e))
|
|
524
524
|
e._store && (e._store.validated = !0);
|
|
525
525
|
else if (e) {
|
|
526
|
-
var
|
|
527
|
-
if (typeof
|
|
528
|
-
for (var
|
|
529
|
-
|
|
526
|
+
var s = Pe(e);
|
|
527
|
+
if (typeof s == "function" && s !== e.entries)
|
|
528
|
+
for (var l = s.call(e), i; !(i = l.next()).done; )
|
|
529
|
+
X(i.value) && Ee(i.value, r);
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function or(e) {
|
|
534
534
|
{
|
|
535
535
|
var r = e.type;
|
|
536
536
|
if (r == null || typeof r == "string")
|
|
@@ -543,103 +543,103 @@ Check the top-level render call using <` + t + ">.");
|
|
|
543
543
|
else
|
|
544
544
|
return;
|
|
545
545
|
if (t) {
|
|
546
|
-
var n =
|
|
547
|
-
|
|
548
|
-
} else if (r.PropTypes !== void 0 && !
|
|
549
|
-
|
|
550
|
-
var
|
|
551
|
-
|
|
546
|
+
var n = x(r);
|
|
547
|
+
He(t, e.props, "prop", n, e);
|
|
548
|
+
} else if (r.PropTypes !== void 0 && !K) {
|
|
549
|
+
K = !0;
|
|
550
|
+
var s = x(r);
|
|
551
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
552
552
|
}
|
|
553
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
553
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function ir(e) {
|
|
557
557
|
{
|
|
558
558
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
559
559
|
var n = r[t];
|
|
560
560
|
if (n !== "children" && n !== "key") {
|
|
561
|
-
|
|
561
|
+
P(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
|
|
562
562
|
break;
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
e.ref !== null && (
|
|
565
|
+
e.ref !== null && (P(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function _e(e, r, t, n, s, l) {
|
|
569
569
|
{
|
|
570
|
-
var i =
|
|
570
|
+
var i = We(e);
|
|
571
571
|
if (!i) {
|
|
572
572
|
var o = "";
|
|
573
573
|
(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.");
|
|
574
|
-
var
|
|
575
|
-
|
|
574
|
+
var h = ar(s);
|
|
575
|
+
h ? o += h : o += pe();
|
|
576
576
|
var c;
|
|
577
|
-
e === null ? c = "null" :
|
|
577
|
+
e === null ? c = "null" : q(e) ? c = "array" : e !== void 0 && e.$$typeof === g ? (c = "<" + (x(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, o);
|
|
578
578
|
}
|
|
579
|
-
var d =
|
|
579
|
+
var d = tr(e, r, t, s, l);
|
|
580
580
|
if (d == null)
|
|
581
581
|
return d;
|
|
582
582
|
if (i) {
|
|
583
583
|
var p = r.children;
|
|
584
584
|
if (p !== void 0)
|
|
585
585
|
if (n)
|
|
586
|
-
if (
|
|
586
|
+
if (q(p)) {
|
|
587
587
|
for (var N = 0; N < p.length; N++)
|
|
588
|
-
|
|
588
|
+
Re(p[N], e);
|
|
589
589
|
Object.freeze && Object.freeze(p);
|
|
590
590
|
} else
|
|
591
|
-
|
|
591
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
592
592
|
else
|
|
593
|
-
|
|
593
|
+
Re(p, e);
|
|
594
594
|
}
|
|
595
|
-
return e === _ ?
|
|
595
|
+
return e === _ ? ir(d) : or(d), d;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
return
|
|
598
|
+
function sr(e, r, t) {
|
|
599
|
+
return _e(e, r, t, !0);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function lr(e, r, t) {
|
|
602
|
+
return _e(e, r, t, !1);
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
I.Fragment = _, I.jsx =
|
|
604
|
+
var ur = lr, cr = sr;
|
|
605
|
+
I.Fragment = _, I.jsx = ur, I.jsxs = cr;
|
|
606
606
|
}()), I;
|
|
607
607
|
}
|
|
608
608
|
(function(a) {
|
|
609
|
-
process.env.NODE_ENV === "production" ? a.exports =
|
|
610
|
-
})(
|
|
611
|
-
const
|
|
612
|
-
({ className: a, title: g }, R) => /* @__PURE__ */
|
|
609
|
+
process.env.NODE_ENV === "production" ? a.exports = pr() : a.exports = yr();
|
|
610
|
+
})(gr);
|
|
611
|
+
const ke = br(
|
|
612
|
+
({ className: a, title: g }, R) => /* @__PURE__ */ v.jsx("span", { ref: R, className: a, title: g, children: /* @__PURE__ */ v.jsx("i", { className: "bi bi-grip-vertical" }) })
|
|
613
613
|
);
|
|
614
|
-
|
|
615
|
-
const
|
|
614
|
+
ke.displayName = "BootstrapDragHandle";
|
|
615
|
+
const je = ({
|
|
616
616
|
className: a,
|
|
617
617
|
handleOnChange: g,
|
|
618
618
|
title: R,
|
|
619
619
|
label: _,
|
|
620
|
-
checked:
|
|
620
|
+
checked: k,
|
|
621
621
|
disabled: C
|
|
622
622
|
}) => {
|
|
623
|
-
const y =
|
|
624
|
-
return /* @__PURE__ */
|
|
625
|
-
/* @__PURE__ */
|
|
623
|
+
const y = hr();
|
|
624
|
+
return /* @__PURE__ */ v.jsxs("div", { className: `form-check-inline form-switch ${a}`, children: [
|
|
625
|
+
/* @__PURE__ */ v.jsx(
|
|
626
626
|
"input",
|
|
627
627
|
{
|
|
628
628
|
id: y,
|
|
629
629
|
className: "form-check-input",
|
|
630
630
|
type: "checkbox",
|
|
631
631
|
onChange: (u) => g(u.target.checked),
|
|
632
|
-
checked: !!
|
|
632
|
+
checked: !!k,
|
|
633
633
|
disabled: C
|
|
634
634
|
}
|
|
635
635
|
),
|
|
636
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ v.jsx("label", { title: R, htmlFor: y, className: "form-check-label", children: _ })
|
|
637
637
|
] });
|
|
638
638
|
};
|
|
639
|
-
|
|
640
|
-
const
|
|
639
|
+
je.displayName = "BootstrapNotToggle";
|
|
640
|
+
const we = (a) => {
|
|
641
641
|
var C, y;
|
|
642
|
-
const { valArray: g, betweenValueHandler: R } =
|
|
642
|
+
const { valArray: g, betweenValueHandler: R } = fr({
|
|
643
643
|
handleOnChange: a.handleOnChange,
|
|
644
644
|
inputType: a.inputType,
|
|
645
645
|
operator: a.operator,
|
|
@@ -648,36 +648,36 @@ const je = (a) => {
|
|
|
648
648
|
listsAsArrays: a.listsAsArrays,
|
|
649
649
|
parseNumbers: a.parseNumbers,
|
|
650
650
|
values: a.values
|
|
651
|
-
}), { selectorComponent: _ =
|
|
651
|
+
}), { selectorComponent: _ = vr } = a;
|
|
652
652
|
if (a.operator === "null" || a.operator === "notNull")
|
|
653
653
|
return null;
|
|
654
|
-
const
|
|
654
|
+
const k = ((C = a.fieldData) == null ? void 0 : C.placeholder) ?? "";
|
|
655
655
|
if ((a.operator === "between" || a.operator === "notBetween") && (a.type === "select" || a.type === "text")) {
|
|
656
|
-
const u = ["from", "to"].map((f, E) => a.type === "text" ? /* @__PURE__ */
|
|
656
|
+
const u = ["from", "to"].map((f, E) => a.type === "text" ? /* @__PURE__ */ v.jsx(
|
|
657
657
|
"input",
|
|
658
658
|
{
|
|
659
659
|
type: a.inputType || "text",
|
|
660
|
-
placeholder:
|
|
660
|
+
placeholder: k,
|
|
661
661
|
value: g[E] ?? "",
|
|
662
662
|
className: `${M.valueListItem} form-control form-control-sm`,
|
|
663
663
|
disabled: a.disabled,
|
|
664
|
-
onChange: (
|
|
664
|
+
onChange: (m) => R(m.target.value, E)
|
|
665
665
|
},
|
|
666
666
|
f
|
|
667
|
-
) : /* @__PURE__ */
|
|
667
|
+
) : /* @__PURE__ */ v.jsx(
|
|
668
668
|
_,
|
|
669
669
|
{
|
|
670
670
|
...a,
|
|
671
671
|
className: `${M.valueListItem} form-select form-select-sm`,
|
|
672
|
-
handleOnChange: (
|
|
672
|
+
handleOnChange: (m) => R(m, E),
|
|
673
673
|
disabled: a.disabled,
|
|
674
|
-
value: g[E] ??
|
|
674
|
+
value: g[E] ?? dr(a.values),
|
|
675
675
|
options: a.values ?? [],
|
|
676
676
|
listsAsArrays: a.listsAsArrays
|
|
677
677
|
},
|
|
678
678
|
f
|
|
679
679
|
));
|
|
680
|
-
return /* @__PURE__ */
|
|
680
|
+
return /* @__PURE__ */ v.jsxs("span", { "data-testid": a.testID, className: M.value, title: a.title, children: [
|
|
681
681
|
u[0],
|
|
682
682
|
a.separator,
|
|
683
683
|
u[1]
|
|
@@ -686,8 +686,8 @@ const je = (a) => {
|
|
|
686
686
|
switch (a.type) {
|
|
687
687
|
case "select":
|
|
688
688
|
case "multiselect":
|
|
689
|
-
return /* @__PURE__ */
|
|
690
|
-
|
|
689
|
+
return /* @__PURE__ */ v.jsx(
|
|
690
|
+
Q,
|
|
691
691
|
{
|
|
692
692
|
skipHook: !0,
|
|
693
693
|
...a,
|
|
@@ -695,7 +695,7 @@ const je = (a) => {
|
|
|
695
695
|
}
|
|
696
696
|
);
|
|
697
697
|
case "switch":
|
|
698
|
-
return /* @__PURE__ */
|
|
698
|
+
return /* @__PURE__ */ v.jsx("span", { className: `custom-control custom-switch ${a.className}`, children: /* @__PURE__ */ v.jsx(
|
|
699
699
|
"input",
|
|
700
700
|
{
|
|
701
701
|
type: "checkbox",
|
|
@@ -707,10 +707,10 @@ const je = (a) => {
|
|
|
707
707
|
}
|
|
708
708
|
) });
|
|
709
709
|
case "checkbox":
|
|
710
|
-
return /* @__PURE__ */
|
|
710
|
+
return /* @__PURE__ */ v.jsx(Q, { skipHook: !0, ...a, className: `form-check-input ${a.className}` });
|
|
711
711
|
case "radio":
|
|
712
|
-
return /* @__PURE__ */
|
|
713
|
-
/* @__PURE__ */
|
|
712
|
+
return /* @__PURE__ */ v.jsx("span", { title: a.title, className: M.value, children: (y = a.values) == null ? void 0 : y.map((u) => /* @__PURE__ */ v.jsxs("div", { className: "form-check form-check-inline", children: [
|
|
713
|
+
/* @__PURE__ */ v.jsx(
|
|
714
714
|
"input",
|
|
715
715
|
{
|
|
716
716
|
className: "form-check-input",
|
|
@@ -722,17 +722,17 @@ const je = (a) => {
|
|
|
722
722
|
onChange: (f) => a.handleOnChange(f.target.value)
|
|
723
723
|
}
|
|
724
724
|
),
|
|
725
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ v.jsx("label", { className: "form-check-label", htmlFor: u.name, children: u.label })
|
|
726
726
|
] }, u.name)) });
|
|
727
727
|
}
|
|
728
|
-
return /* @__PURE__ */
|
|
728
|
+
return /* @__PURE__ */ v.jsx(Q, { skipHook: !0, ...a });
|
|
729
729
|
};
|
|
730
|
-
|
|
731
|
-
const
|
|
732
|
-
dragHandle:
|
|
733
|
-
notToggle:
|
|
734
|
-
valueEditor:
|
|
735
|
-
},
|
|
730
|
+
we.displayName = "BootstrapValueEditor";
|
|
731
|
+
const Er = {
|
|
732
|
+
dragHandle: ke,
|
|
733
|
+
notToggle: je,
|
|
734
|
+
valueEditor: we
|
|
735
|
+
}, Rr = {
|
|
736
736
|
addGroup: "btn btn-secondary btn-sm",
|
|
737
737
|
addRule: "btn btn-primary btn-sm",
|
|
738
738
|
cloneGroup: "btn btn-secondary btn-sm",
|
|
@@ -746,17 +746,17 @@ const _r = {
|
|
|
746
746
|
operators: "form-select form-select-sm",
|
|
747
747
|
value: "form-control form-control-sm",
|
|
748
748
|
valueSource: "form-select form-select-sm"
|
|
749
|
-
},
|
|
749
|
+
}, Tr = mr({
|
|
750
750
|
key: "bootstrap",
|
|
751
|
-
controlClassnames:
|
|
752
|
-
controlElements:
|
|
751
|
+
controlClassnames: Rr,
|
|
752
|
+
controlElements: Er
|
|
753
753
|
});
|
|
754
754
|
export {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
755
|
+
ke as BootstrapDragHandle,
|
|
756
|
+
je as BootstrapNotToggle,
|
|
757
|
+
we as BootstrapValueEditor,
|
|
758
|
+
Tr as QueryBuilderBootstrap,
|
|
759
|
+
Rr as bootstrapControlClassnames,
|
|
760
|
+
Er as bootstrapControlElements
|
|
761
761
|
};
|
|
762
|
-
//# sourceMappingURL=index.
|
|
762
|
+
//# sourceMappingURL=index.mjs.map
|