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