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